1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1 176 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 PATH=/empty FPATH=/empty; export PATH FPATH 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 184 if (eval "$as_required") 2>/dev/null; then : 185 as_have_required=yes 186else 187 as_have_required=no 188fi 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 190 191else 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 193as_found=false 194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 195do 196 IFS=$as_save_IFS 197 test -z "$as_dir" && as_dir=. 198 as_found=: 199 case $as_dir in #( 200 /*) 201 for as_base in sh bash ksh sh5; do 202 # Try only shells that exist, to save several forks. 203 as_shell=$as_dir/$as_base 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 206 CONFIG_SHELL=$as_shell as_have_required=yes 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 break 2 209fi 210fi 211 done;; 212 esac 213 as_found=false 214done 215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 217 CONFIG_SHELL=$SHELL as_have_required=yes 218fi; } 219IFS=$as_save_IFS 220 221 222 if test "x$CONFIG_SHELL" != x; then : 223 # We cannot yet assume a decent shell, so we have to provide a 224 # neutralization value for shells without unset; and this also 225 # works around shells that cannot unset nonexistent variables. 226 # Preserve -v and -x to the replacement shell. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 case $- in # (((( 232 *v*x* | *x*v* ) as_opts=-vx ;; 233 *v* ) as_opts=-v ;; 234 *x* ) as_opts=-x ;; 235 * ) as_opts= ;; 236 esac 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 238fi 239 240 if test x$as_have_required = xno; then : 241 $as_echo "$0: This script requires a shell more modern than all" 242 $as_echo "$0: the shells that I found on your system." 243 if test x${ZSH_VERSION+set} = xset ; then 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 246 else 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 248$0: including any error possibly output before this 249$0: message. Then install a modern shell, or manually run 250$0: the script under such a shell if you do have one." 251 fi 252 exit 1 253fi 254fi 255fi 256SHELL=${CONFIG_SHELL-/bin/sh} 257export SHELL 258# Unset more variables known to interfere with behavior of common tools. 259CLICOLOR_FORCE= GREP_OPTIONS= 260unset CLICOLOR_FORCE GREP_OPTIONS 261 262## --------------------- ## 263## M4sh Shell Functions. ## 264## --------------------- ## 265# as_fn_unset VAR 266# --------------- 267# Portably unset VAR. 268as_fn_unset () 269{ 270 { eval $1=; unset $1;} 271} 272as_unset=as_fn_unset 273 274# as_fn_set_status STATUS 275# ----------------------- 276# Set $? to STATUS, without forking. 277as_fn_set_status () 278{ 279 return $1 280} # as_fn_set_status 281 282# as_fn_exit STATUS 283# ----------------- 284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 285as_fn_exit () 286{ 287 set +e 288 as_fn_set_status $1 289 exit $1 290} # as_fn_exit 291 292# as_fn_mkdir_p 293# ------------- 294# Create "$as_dir" as a directory, including parents if necessary. 295as_fn_mkdir_p () 296{ 297 298 case $as_dir in #( 299 -*) as_dir=./$as_dir;; 300 esac 301 test -d "$as_dir" || eval $as_mkdir_p || { 302 as_dirs= 303 while :; do 304 case $as_dir in #( 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 306 *) as_qdir=$as_dir;; 307 esac 308 as_dirs="'$as_qdir' $as_dirs" 309 as_dir=`$as_dirname -- "$as_dir" || 310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 311 X"$as_dir" : 'X\(//\)[^/]' \| \ 312 X"$as_dir" : 'X\(//\)$' \| \ 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 314$as_echo X"$as_dir" | 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)[^/].*/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)$/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\).*/{ 328 s//\1/ 329 q 330 } 331 s/.*/./; q'` 332 test -d "$as_dir" && break 333 done 334 test -z "$as_dirs" || eval "mkdir $as_dirs" 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 336 337 338} # as_fn_mkdir_p 339# as_fn_append VAR VALUE 340# ---------------------- 341# Append the text in VALUE to the end of the definition contained in VAR. Take 342# advantage of any shell optimizations that allow amortized linear growth over 343# repeated appends, instead of the typical quadratic growth present in naive 344# implementations. 345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 346 eval 'as_fn_append () 347 { 348 eval $1+=\$2 349 }' 350else 351 as_fn_append () 352 { 353 eval $1=\$$1\$2 354 } 355fi # as_fn_append 356 357# as_fn_arith ARG... 358# ------------------ 359# Perform arithmetic evaluation on the ARGs, and store the result in the 360# global $as_val. Take advantage of shells that can avoid forks. The arguments 361# must be portable across $(()) and expr. 362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 363 eval 'as_fn_arith () 364 { 365 as_val=$(( $* )) 366 }' 367else 368 as_fn_arith () 369 { 370 as_val=`expr "$@" || test $? -eq 1` 371 } 372fi # as_fn_arith 373 374 375# as_fn_error STATUS ERROR [LINENO LOG_FD] 376# ---------------------------------------- 377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 379# script with STATUS, using 1 if that was 0. 380as_fn_error () 381{ 382 as_status=$1; test $as_status -eq 0 && as_status=1 383 if test "$4"; then 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 386 fi 387 $as_echo "$as_me: error: $2" >&2 388 as_fn_exit $as_status 389} # as_fn_error 390 391if expr a : '\(a\)' >/dev/null 2>&1 && 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then 393 as_expr=expr 394else 395 as_expr=false 396fi 397 398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 399 as_basename=basename 400else 401 as_basename=false 402fi 403 404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 405 as_dirname=dirname 406else 407 as_dirname=false 408fi 409 410as_me=`$as_basename -- "$0" || 411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 412 X"$0" : 'X\(//\)$' \| \ 413 X"$0" : 'X\(/\)' \| . 2>/dev/null || 414$as_echo X/"$0" | 415 sed '/^.*\/\([^/][^/]*\)\/*$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\/\)$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\).*/{ 424 s//\1/ 425 q 426 } 427 s/.*/./; q'` 428 429# Avoid depending upon Character Ranges. 430as_cr_letters='abcdefghijklmnopqrstuvwxyz' 431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 432as_cr_Letters=$as_cr_letters$as_cr_LETTERS 433as_cr_digits='0123456789' 434as_cr_alnum=$as_cr_Letters$as_cr_digits 435 436 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 442 sed -n ' 443 p 444 /[$]LINENO/= 445 ' <$as_myself | 446 sed ' 447 s/[$]LINENO.*/&-/ 448 t lineno 449 b 450 :lineno 451 N 452 :loop 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 454 t loop 455 s/-\n.*// 456 ' >$as_me.lineno && 457 chmod +x "$as_me.lineno" || 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in #((((( 470-n*) 471 case `echo 'xy\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 xy) ECHO_C='\c';; 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 475 ECHO_T=' ';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481rm -f conf$$ conf$$.exe conf$$.file 482if test -d conf$$.dir; then 483 rm -f conf$$.dir/conf$$.file 484else 485 rm -f conf$$.dir 486 mkdir conf$$.dir 2>/dev/null 487fi 488if (echo >conf$$.file) 2>/dev/null; then 489 if ln -s conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s='ln -s' 491 # ... but there are two gotchas: 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 494 # In both cases, we have to default to `cp -p'. 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 496 as_ln_s='cp -p' 497 elif ln conf$$.file conf$$ 2>/dev/null; then 498 as_ln_s=ln 499 else 500 as_ln_s='cp -p' 501 fi 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p='mkdir -p "$as_dir"' 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515if test -x / >/dev/null 2>&1; then 516 as_test_x='test -x' 517else 518 if ls -dL / >/dev/null 2>&1; then 519 as_ls_L_option=L 520 else 521 as_ls_L_option= 522 fi 523 as_test_x=' 524 eval sh -c '\'' 525 if test -d "$1"; then 526 test -d "$1/."; 527 else 528 case $1 in #( 529 -*)set "./$1";; 530 esac; 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 532 ???[sx]*):;;*)false;;esac;fi 533 '\'' sh 534 ' 535fi 536as_executable_p=$as_test_x 537 538# Sed expression to map a string onto a valid CPP name. 539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 540 541# Sed expression to map a string onto a valid variable name. 542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 543 544SHELL=${CONFIG_SHELL-/bin/sh} 545 546 547test -n "$DJDIR" || exec 7<&0 </dev/null 548exec 6>&1 549 550# Name of the host. 551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 552# so uname gets run too. 553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 554 555# 556# Initializations. 557# 558ac_default_prefix=/usr/local 559ac_clean_files= 560ac_config_libobj_dir=. 561LIBOBJS= 562cross_compiling=no 563subdirs= 564MFLAGS= 565MAKEFLAGS= 566 567# Identity of this package. 568PACKAGE_NAME= 569PACKAGE_TARNAME= 570PACKAGE_VERSION= 571PACKAGE_STRING= 572PACKAGE_BUGREPORT= 573PACKAGE_URL= 574 575ac_unique_file="README" 576# Factoring default headers for most tests. 577ac_includes_default="\ 578#include <stdio.h> 579#ifdef HAVE_SYS_TYPES_H 580# include <sys/types.h> 581#endif 582#ifdef HAVE_SYS_STAT_H 583# include <sys/stat.h> 584#endif 585#ifdef STDC_HEADERS 586# include <stdlib.h> 587# include <stddef.h> 588#else 589# ifdef HAVE_STDLIB_H 590# include <stdlib.h> 591# endif 592#endif 593#ifdef HAVE_STRING_H 594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 595# include <memory.h> 596# endif 597# include <string.h> 598#endif 599#ifdef HAVE_STRINGS_H 600# include <strings.h> 601#endif 602#ifdef HAVE_INTTYPES_H 603# include <inttypes.h> 604#endif 605#ifdef HAVE_STDINT_H 606# include <stdint.h> 607#endif 608#ifdef HAVE_UNISTD_H 609# include <unistd.h> 610#endif" 611 612ac_subst_vars='LTLIBOBJS 613EXTRA_LDFLAGS 614BUILD_LDFLAGS 615EXTRA_CFLAGS 616BUILD_CFLAGS 617SDLMAIN_OBJECTS 618SDLMAIN_SOURCES 619OBJECTS 620SOURCES 621INCLUDE 622ac_aux_dir 623ENABLE_STATIC_FALSE 624ENABLE_STATIC_TRUE 625ENABLE_SHARED_FALSE 626ENABLE_SHARED_TRUE 627SDL_RLD_FLAGS 628SDL_STATIC_LIBS 629SDL_LIBS 630SDL_CFLAGS 631PTH_CONFIG 632OSMESA_CONFIG 633CACACONFIG 634DIRECTFBCONFIG 635X_EXTRA_LIBS 636X_LIBS 637X_PRE_LIBS 638X_CFLAGS 639XMKMF 640NASMFLAGS 641NASM 642ARTSCONFIG 643PKG_CONFIG 644ESD_LIBS 645ESD_CFLAGS 646ESD_CONFIG 647POW_LIB 648LIBOBJS 649ALLOCA 650WINDRES 651SET_MAKE 652INSTALL_DATA 653INSTALL_SCRIPT 654INSTALL_PROGRAM 655CXXCPP 656ac_ct_CXX 657CXXFLAGS 658CXX 659LT_AGE 660LT_REVISION 661LT_CURRENT 662LT_RELEASE 663OTOOL64 664OTOOL 665LIPO 666NMEDIT 667DSYMUTIL 668MANIFEST_TOOL 669AWK 670RANLIB 671STRIP 672ac_ct_AR 673AR 674LN_S 675NM 676ac_ct_DUMPBIN 677DUMPBIN 678LD 679FGREP 680SED 681host_os 682host_vendor 683host_cpu 684host 685build_os 686build_vendor 687build_cpu 688build 689LIBTOOL 690OBJDUMP 691DLLTOOL 692AS 693SDL_VERSION 694SDL_BINARY_AGE 695SDL_INTERFACE_AGE 696SDL_MICRO_VERSION 697SDL_MINOR_VERSION 698SDL_MAJOR_VERSION 699EGREP 700GREP 701CPP 702OBJEXT 703EXEEXT 704ac_ct_CC 705CPPFLAGS 706LDFLAGS 707CFLAGS 708CC 709target_alias 710host_alias 711build_alias 712LIBS 713ECHO_T 714ECHO_N 715ECHO_C 716DEFS 717mandir 718localedir 719libdir 720psdir 721pdfdir 722dvidir 723htmldir 724infodir 725docdir 726oldincludedir 727includedir 728localstatedir 729sharedstatedir 730sysconfdir 731datadir 732datarootdir 733libexecdir 734sbindir 735bindir 736program_transform_name 737prefix 738exec_prefix 739PACKAGE_URL 740PACKAGE_BUGREPORT 741PACKAGE_STRING 742PACKAGE_VERSION 743PACKAGE_TARNAME 744PACKAGE_NAME 745PATH_SEPARATOR 746SHELL' 747ac_subst_files='' 748ac_user_opts=' 749enable_option_checking 750enable_shared 751enable_static 752with_pic 753enable_fast_install 754with_gnu_ld 755with_sysroot 756enable_libtool_lock 757enable_libc 758enable_audio 759enable_video 760enable_events 761enable_joystick 762enable_cdrom 763enable_threads 764enable_timers 765enable_file 766enable_loadso 767enable_cpuinfo 768enable_assembly 769enable_oss 770enable_alsa 771enable_alsa_shared 772enable_esd 773with_esd_prefix 774with_esd_exec_prefix 775enable_esdtest 776enable_esd_shared 777enable_pulseaudio 778enable_pulseaudio_shared 779enable_arts 780enable_arts_shared 781enable_nas 782enable_nas_shared 783enable_diskaudio 784enable_dummyaudio 785enable_mintaudio 786enable_nasm 787enable_altivec 788enable_ipod 789enable_video_nanox 790enable_nanox_debug 791enable_nanox_share_memory 792enable_nanox_direct_fb 793enable_video_x11 794with_x 795enable_x11_shared 796enable_dga 797enable_video_dga 798enable_video_x11_dgamouse 799enable_video_x11_vm 800enable_video_x11_xv 801enable_video_x11_xinerama 802enable_video_x11_xme 803enable_video_x11_xrandr 804enable_video_photon 805enable_video_carbon 806enable_video_cocoa 807enable_video_fbcon 808enable_video_directfb 809enable_video_ps2gs 810enable_video_ps3 811enable_video_ggi 812enable_video_svga 813enable_video_vgl 814enable_video_wscons 815enable_video_aalib 816enable_video_caca 817enable_video_qtopia 818enable_video_picogui 819enable_xbios 820enable_gem 821enable_video_dummy 822enable_video_opengl 823enable_osmesa_shared 824enable_screensaver 825enable_input_events 826enable_input_tslib 827enable_pth 828enable_pthreads 829enable_pthread_sem 830enable_stdio_redirect 831enable_directx 832enable_sdl_dlopen 833enable_atari_ldg 834enable_clock_gettime 835enable_rpath 836' 837 ac_precious_vars='build_alias 838host_alias 839target_alias 840CC 841CFLAGS 842LDFLAGS 843LIBS 844CPPFLAGS 845CPP 846CXX 847CXXFLAGS 848CCC 849CXXCPP 850XMKMF' 851 852 853# Initialize some variables set by options. 854ac_init_help= 855ac_init_version=false 856ac_unrecognized_opts= 857ac_unrecognized_sep= 858# The variables have the same names as the options, with 859# dashes changed to underlines. 860cache_file=/dev/null 861exec_prefix=NONE 862no_create= 863no_recursion= 864prefix=NONE 865program_prefix=NONE 866program_suffix=NONE 867program_transform_name=s,x,x, 868silent= 869site= 870srcdir= 871verbose= 872x_includes=NONE 873x_libraries=NONE 874 875# Installation directory options. 876# These are left unexpanded so users can "make install exec_prefix=/foo" 877# and all the variables that are supposed to be based on exec_prefix 878# by default will actually change. 879# Use braces instead of parens because sh, perl, etc. also accept them. 880# (The list follows the same order as the GNU Coding Standards.) 881bindir='${exec_prefix}/bin' 882sbindir='${exec_prefix}/sbin' 883libexecdir='${exec_prefix}/libexec' 884datarootdir='${prefix}/share' 885datadir='${datarootdir}' 886sysconfdir='${prefix}/etc' 887sharedstatedir='${prefix}/com' 888localstatedir='${prefix}/var' 889includedir='${prefix}/include' 890oldincludedir='/usr/include' 891docdir='${datarootdir}/doc/${PACKAGE}' 892infodir='${datarootdir}/info' 893htmldir='${docdir}' 894dvidir='${docdir}' 895pdfdir='${docdir}' 896psdir='${docdir}' 897libdir='${exec_prefix}/lib' 898localedir='${datarootdir}/locale' 899mandir='${datarootdir}/man' 900 901ac_prev= 902ac_dashdash= 903for ac_option 904do 905 # If the previous option needs an argument, assign it. 906 if test -n "$ac_prev"; then 907 eval $ac_prev=\$ac_option 908 ac_prev= 909 continue 910 fi 911 912 case $ac_option in 913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 914 *=) ac_optarg= ;; 915 *) ac_optarg=yes ;; 916 esac 917 918 # Accept the important Cygnus configure options, so we can diagnose typos. 919 920 case $ac_dashdash$ac_option in 921 --) 922 ac_dashdash=yes ;; 923 924 -bindir | --bindir | --bindi | --bind | --bin | --bi) 925 ac_prev=bindir ;; 926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 927 bindir=$ac_optarg ;; 928 929 -build | --build | --buil | --bui | --bu) 930 ac_prev=build_alias ;; 931 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 932 build_alias=$ac_optarg ;; 933 934 -cache-file | --cache-file | --cache-fil | --cache-fi \ 935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 936 ac_prev=cache_file ;; 937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 939 cache_file=$ac_optarg ;; 940 941 --config-cache | -C) 942 cache_file=config.cache ;; 943 944 -datadir | --datadir | --datadi | --datad) 945 ac_prev=datadir ;; 946 -datadir=* | --datadir=* | --datadi=* | --datad=*) 947 datadir=$ac_optarg ;; 948 949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 950 | --dataroo | --dataro | --datar) 951 ac_prev=datarootdir ;; 952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 954 datarootdir=$ac_optarg ;; 955 956 -disable-* | --disable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=no ;; 971 972 -docdir | --docdir | --docdi | --doc | --do) 973 ac_prev=docdir ;; 974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 975 docdir=$ac_optarg ;; 976 977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 978 ac_prev=dvidir ;; 979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 980 dvidir=$ac_optarg ;; 981 982 -enable-* | --enable-*) 983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 984 # Reject names that are not valid shell variable names. 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 as_fn_error $? "invalid feature name: $ac_useropt" 987 ac_useropt_orig=$ac_useropt 988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 989 case $ac_user_opts in 990 *" 991"enable_$ac_useropt" 992"*) ;; 993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 994 ac_unrecognized_sep=', ';; 995 esac 996 eval enable_$ac_useropt=\$ac_optarg ;; 997 998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1000 | --exec | --exe | --ex) 1001 ac_prev=exec_prefix ;; 1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1004 | --exec=* | --exe=* | --ex=*) 1005 exec_prefix=$ac_optarg ;; 1006 1007 -gas | --gas | --ga | --g) 1008 # Obsolete; use --with-gas. 1009 with_gas=yes ;; 1010 1011 -help | --help | --hel | --he | -h) 1012 ac_init_help=long ;; 1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1014 ac_init_help=recursive ;; 1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1016 ac_init_help=short ;; 1017 1018 -host | --host | --hos | --ho) 1019 ac_prev=host_alias ;; 1020 -host=* | --host=* | --hos=* | --ho=*) 1021 host_alias=$ac_optarg ;; 1022 1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1024 ac_prev=htmldir ;; 1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1026 | --ht=*) 1027 htmldir=$ac_optarg ;; 1028 1029 -includedir | --includedir | --includedi | --included | --include \ 1030 | --includ | --inclu | --incl | --inc) 1031 ac_prev=includedir ;; 1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1033 | --includ=* | --inclu=* | --incl=* | --inc=*) 1034 includedir=$ac_optarg ;; 1035 1036 -infodir | --infodir | --infodi | --infod | --info | --inf) 1037 ac_prev=infodir ;; 1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1039 infodir=$ac_optarg ;; 1040 1041 -libdir | --libdir | --libdi | --libd) 1042 ac_prev=libdir ;; 1043 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1044 libdir=$ac_optarg ;; 1045 1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1047 | --libexe | --libex | --libe) 1048 ac_prev=libexecdir ;; 1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1050 | --libexe=* | --libex=* | --libe=*) 1051 libexecdir=$ac_optarg ;; 1052 1053 -localedir | --localedir | --localedi | --localed | --locale) 1054 ac_prev=localedir ;; 1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1056 localedir=$ac_optarg ;; 1057 1058 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1059 | --localstate | --localstat | --localsta | --localst | --locals) 1060 ac_prev=localstatedir ;; 1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1063 localstatedir=$ac_optarg ;; 1064 1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1066 ac_prev=mandir ;; 1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1068 mandir=$ac_optarg ;; 1069 1070 -nfp | --nfp | --nf) 1071 # Obsolete; use --without-fp. 1072 with_fp=no ;; 1073 1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1075 | --no-cr | --no-c | -n) 1076 no_create=yes ;; 1077 1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1080 no_recursion=yes ;; 1081 1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1084 | --oldin | --oldi | --old | --ol | --o) 1085 ac_prev=oldincludedir ;; 1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1089 oldincludedir=$ac_optarg ;; 1090 1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1092 ac_prev=prefix ;; 1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1094 prefix=$ac_optarg ;; 1095 1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1097 | --program-pre | --program-pr | --program-p) 1098 ac_prev=program_prefix ;; 1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1101 program_prefix=$ac_optarg ;; 1102 1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1104 | --program-suf | --program-su | --program-s) 1105 ac_prev=program_suffix ;; 1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1108 program_suffix=$ac_optarg ;; 1109 1110 -program-transform-name | --program-transform-name \ 1111 | --program-transform-nam | --program-transform-na \ 1112 | --program-transform-n | --program-transform- \ 1113 | --program-transform | --program-transfor \ 1114 | --program-transfo | --program-transf \ 1115 | --program-trans | --program-tran \ 1116 | --progr-tra | --program-tr | --program-t) 1117 ac_prev=program_transform_name ;; 1118 -program-transform-name=* | --program-transform-name=* \ 1119 | --program-transform-nam=* | --program-transform-na=* \ 1120 | --program-transform-n=* | --program-transform-=* \ 1121 | --program-transform=* | --program-transfor=* \ 1122 | --program-transfo=* | --program-transf=* \ 1123 | --program-trans=* | --program-tran=* \ 1124 | --progr-tra=* | --program-tr=* | --program-t=*) 1125 program_transform_name=$ac_optarg ;; 1126 1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1128 ac_prev=pdfdir ;; 1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1130 pdfdir=$ac_optarg ;; 1131 1132 -psdir | --psdir | --psdi | --psd | --ps) 1133 ac_prev=psdir ;; 1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1135 psdir=$ac_optarg ;; 1136 1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1138 | -silent | --silent | --silen | --sile | --sil) 1139 silent=yes ;; 1140 1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1142 ac_prev=sbindir ;; 1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1144 | --sbi=* | --sb=*) 1145 sbindir=$ac_optarg ;; 1146 1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1149 | --sharedst | --shareds | --shared | --share | --shar \ 1150 | --sha | --sh) 1151 ac_prev=sharedstatedir ;; 1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1155 | --sha=* | --sh=*) 1156 sharedstatedir=$ac_optarg ;; 1157 1158 -site | --site | --sit) 1159 ac_prev=site ;; 1160 -site=* | --site=* | --sit=*) 1161 site=$ac_optarg ;; 1162 1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1164 ac_prev=srcdir ;; 1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1166 srcdir=$ac_optarg ;; 1167 1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1169 | --syscon | --sysco | --sysc | --sys | --sy) 1170 ac_prev=sysconfdir ;; 1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1173 sysconfdir=$ac_optarg ;; 1174 1175 -target | --target | --targe | --targ | --tar | --ta | --t) 1176 ac_prev=target_alias ;; 1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1178 target_alias=$ac_optarg ;; 1179 1180 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1181 verbose=yes ;; 1182 1183 -version | --version | --versio | --versi | --vers | -V) 1184 ac_init_version=: ;; 1185 1186 -with-* | --with-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=\$ac_optarg ;; 1201 1202 -without-* | --without-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=no ;; 1217 1218 --x) 1219 # Obsolete; use --with-x. 1220 with_x=yes ;; 1221 1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1223 | --x-incl | --x-inc | --x-in | --x-i) 1224 ac_prev=x_includes ;; 1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1227 x_includes=$ac_optarg ;; 1228 1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1231 ac_prev=x_libraries ;; 1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1234 x_libraries=$ac_optarg ;; 1235 1236 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1237Try \`$0 --help' for more information" 1238 ;; 1239 1240 *=*) 1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1242 # Reject names that are not valid shell variable names. 1243 case $ac_envvar in #( 1244 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1246 esac 1247 eval $ac_envvar=\$ac_optarg 1248 export $ac_envvar ;; 1249 1250 *) 1251 # FIXME: should be removed in autoconf 3.0. 1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1256 ;; 1257 1258 esac 1259done 1260 1261if test -n "$ac_prev"; then 1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1263 as_fn_error $? "missing argument to $ac_option" 1264fi 1265 1266if test -n "$ac_unrecognized_opts"; then 1267 case $enable_option_checking in 1268 no) ;; 1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1271 esac 1272fi 1273 1274# Check all directory arguments for consistency. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir 1279do 1280 eval ac_val=\$$ac_var 1281 # Remove trailing slashes. 1282 case $ac_val in 1283 */ ) 1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1285 eval $ac_var=\$ac_val;; 1286 esac 1287 # Be sure to have absolute directory names. 1288 case $ac_val in 1289 [\\/$]* | ?:[\\/]* ) continue;; 1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1291 esac 1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1307 If a cross compiler is detected then cross compile mode will be used" >&2 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311fi 1312 1313ac_tool_prefix= 1314test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316test "$silent" = yes && exec 6>/dev/null 1317 1318 1319ac_pwd=`pwd` && test -n "$ac_pwd" && 1320ac_ls_di=`ls -di .` && 1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 as_fn_error $? "working directory cannot be determined" 1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1324 as_fn_error $? "pwd does not report name of working directory" 1325 1326 1327# Find the source files, if location was not specified. 1328if test -z "$srcdir"; then 1329 ac_srcdir_defaulted=yes 1330 # Try the directory containing this script, then the parent directory. 1331 ac_confdir=`$as_dirname -- "$as_myself" || 1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1333 X"$as_myself" : 'X\(//\)[^/]' \| \ 1334 X"$as_myself" : 'X\(//\)$' \| \ 1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1336$as_echo X"$as_myself" | 1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)[^/].*/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\).*/{ 1350 s//\1/ 1351 q 1352 } 1353 s/.*/./; q'` 1354 srcdir=$ac_confdir 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 srcdir=.. 1357 fi 1358else 1359 ac_srcdir_defaulted=no 1360fi 1361if test ! -r "$srcdir/$ac_unique_file"; then 1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1364fi 1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1366ac_abs_confdir=`( 1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1368 pwd)` 1369# When building in place, set srcdir=. 1370if test "$ac_abs_confdir" = "$ac_pwd"; then 1371 srcdir=. 1372fi 1373# Remove unnecessary trailing slashes from srcdir. 1374# Double slashes in file names in object file debugging info 1375# mess up M-x gdb in Emacs. 1376case $srcdir in 1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1378esac 1379for ac_var in $ac_precious_vars; do 1380 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_env_${ac_var}_value=\$${ac_var} 1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1384done 1385 1386# 1387# Report the --help message. 1388# 1389if test "$ac_init_help" = "long"; then 1390 # Omit some internal or obsolete options to make the list less imposing. 1391 # This message is too long to be a string in the A/UX 3.1 sh. 1392 cat <<_ACEOF 1393\`configure' configures this package to adapt to many kinds of systems. 1394 1395Usage: $0 [OPTION]... [VAR=VALUE]... 1396 1397To assign environment variables (e.g., CC, CFLAGS...), specify them as 1398VAR=VALUE. See below for descriptions of some of the useful variables. 1399 1400Defaults for the options are specified in brackets. 1401 1402Configuration: 1403 -h, --help display this help and exit 1404 --help=short display options specific to this package 1405 --help=recursive display the short help of all the included packages 1406 -V, --version display version information and exit 1407 -q, --quiet, --silent do not print \`checking ...' messages 1408 --cache-file=FILE cache test results in FILE [disabled] 1409 -C, --config-cache alias for \`--cache-file=config.cache' 1410 -n, --no-create do not create output files 1411 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1412 1413Installation directories: 1414 --prefix=PREFIX install architecture-independent files in PREFIX 1415 [$ac_default_prefix] 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1417 [PREFIX] 1418 1419By default, \`make install' will install all the files in 1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1421an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1422for instance \`--prefix=\$HOME'. 1423 1424For better control, use the options below. 1425 1426Fine tuning of the installation directories: 1427 --bindir=DIR user executables [EPREFIX/bin] 1428 --sbindir=DIR system admin executables [EPREFIX/sbin] 1429 --libexecdir=DIR program executables [EPREFIX/libexec] 1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1433 --libdir=DIR object code libraries [EPREFIX/lib] 1434 --includedir=DIR C header files [PREFIX/include] 1435 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1438 --infodir=DIR info documentation [DATAROOTDIR/info] 1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1440 --mandir=DIR man documentation [DATAROOTDIR/man] 1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1442 --htmldir=DIR html documentation [DOCDIR] 1443 --dvidir=DIR dvi documentation [DOCDIR] 1444 --pdfdir=DIR pdf documentation [DOCDIR] 1445 --psdir=DIR ps documentation [DOCDIR] 1446_ACEOF 1447 1448 cat <<\_ACEOF 1449 1450X features: 1451 --x-includes=DIR X include files are in DIR 1452 --x-libraries=DIR X library files are in DIR 1453 1454System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457_ACEOF 1458fi 1459 1460if test -n "$ac_init_help"; then 1461 1462 cat <<\_ACEOF 1463 1464Optional Features: 1465 --disable-option-checking ignore unrecognized --enable/--with options 1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-fast-install[=PKGS] 1471 optimize for fast installation [default=yes] 1472 --disable-libtool-lock avoid locking (might break parallel builds) 1473 --enable-libc Use the system C library [[default=yes]] 1474 --enable-audio Enable the audio subsystem [[default=yes]] 1475 --enable-video Enable the video subsystem [[default=yes]] 1476 --enable-events Enable the events subsystem [[default=yes]] 1477 --enable-joystick Enable the joystick subsystem [[default=yes]] 1478 --enable-cdrom Enable the cdrom subsystem [[default=yes]] 1479 --enable-threads Enable the threading subsystem [[default=yes]] 1480 --enable-timers Enable the timer subsystem [[default=yes]] 1481 --enable-file Enable the file subsystem [[default=yes]] 1482 --enable-loadso Enable the shared object loading subsystem 1483 [[default=yes]] 1484 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]] 1485 --enable-assembly Enable assembly routines [[default=yes]] 1486 --enable-oss support the OSS audio API [[default=yes]] 1487 --enable-alsa support the ALSA audio API [[default=yes]] 1488 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]] 1489 --enable-esd support the Enlightened Sound Daemon [[default=yes]] 1490 --disable-esdtest Do not try to compile and run a test ESD program 1491 --enable-esd-shared dynamically load ESD audio support [[default=yes]] 1492 --enable-pulseaudio use PulseAudio [[default=yes]] 1493 --enable-pulseaudio-shared 1494 dynamically load PulseAudio support [[default=yes]] 1495 --enable-arts support the Analog Real Time Synthesizer 1496 [[default=yes]] 1497 --enable-arts-shared dynamically load aRts audio support [[default=yes]] 1498 --enable-nas support the NAS audio API [[default=yes]] 1499 --enable-nas-shared dynamically load NAS audio support [[default=yes]] 1500 --enable-diskaudio support the disk writer audio driver [[default=yes]] 1501 --enable-dummyaudio support the dummy audio driver [[default=yes]] 1502 --enable-mintaudio support Atari audio driver [[default=yes]] 1503 --enable-nasm use nasm assembly blitters on x86 [[default=yes]] 1504 --enable-altivec use altivec assembly blitters on PPC [[default=yes]] 1505 --enable-ipod configure SDL to work with iPodLinux [[default=no]] 1506 --enable-video-nanox use nanox video driver [[default=no]] 1507 --enable-nanox-debug print debug messages [[default=no]] 1508 --enable-nanox-share-memory 1509 use share memory [[default=no]] 1510 --enable-nanox-direct-fb 1511 use direct framebuffer access [[default=no]] 1512 --enable-video-x11 use X11 video driver [[default=yes]] 1513 --enable-x11-shared dynamically load X11 support [[default=maybe]] 1514 --enable-dga allow use of X11 DGA code [[default=yes]] 1515 --enable-video-dga use DGA 2.0 video driver [[default=yes]] 1516 --enable-video-x11-dgamouse 1517 use X11 DGA for mouse events [[default=yes]] 1518 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]] 1519 --enable-video-x11-xv use X11 XvImage extension for video [[default=yes]] 1520 --enable-video-x11-xinerama 1521 enable X11 Xinerama support [[default=yes]] 1522 --enable-video-x11-xme enable Xi Graphics XME for fullscreen 1523 [[default=yes]] 1524 --enable-video-x11-xrandr 1525 enable X11 Xrandr extension for fullscreen 1526 [[default=yes]] 1527 --enable-video-photon use QNX Photon video driver [[default=yes]] 1528 --enable-video-carbon use Carbon/QuickDraw video driver [[default=no]] 1529 --enable-video-cocoa use Cocoa/Quartz video driver [[default=yes]] 1530 --enable-video-fbcon use framebuffer console video driver [[default=yes]] 1531 --enable-video-directfb use DirectFB video driver [[default=yes]] 1532 --enable-video-ps2gs use PlayStation 2 GS video driver [[default=yes]] 1533 --enable-video-ps3 use PlayStation 3 Cell driver [[default=yes]] 1534 --enable-video-ggi use GGI video driver [[default=no]] 1535 --enable-video-svga use SVGAlib video driver [[default=yes]] 1536 --enable-video-vgl use VGL video driver [[default=yes]] 1537 --enable-video-wscons use wscons video driver [[default=yes]] 1538 --enable-video-aalib use AAlib video driver [[default=no]] 1539 --enable-video-caca use libcaca video driver [[default=no]] 1540 --enable-video-qtopia use Qtopia video driver [[default=no]] 1541 --enable-video-picogui use PicoGUI video driver [[default=no]] 1542 --enable-video-xbios use Atari Xbios video driver [[default=yes]] 1543 --enable-video-gem use Atari Gem video driver [[default=yes]] 1544 --enable-video-dummy use dummy video driver [[default=yes]] 1545 --enable-video-opengl include OpenGL context creation [[default=yes]] 1546 --enable-osmesa-shared dynamically load OSMesa OpenGL support 1547 [[default=yes]] 1548 --enable-screensaver enable screensaver by default while any SDL 1549 application is running [[default=no]] 1550 --enable-input-events use Linux 2.4 unified input interface 1551 [[default=yes]] 1552 --enable-input-tslib use the Touchscreen library for input 1553 [[default=yes]] 1554 --enable-pth use GNU pth library for multi-threading 1555 [[default=yes]] 1556 --enable-pthreads use POSIX threads for multi-threading 1557 [[default=yes]] 1558 --enable-pthread-sem use pthread semaphores [[default=yes]] 1559 --enable-stdio-redirect Redirect STDIO to files on Win32 [[default=yes]] 1560 --enable-directx use DirectX for Win32 audio/video [[default=yes]] 1561 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]] 1562 --enable-atari-ldg use Atari LDG for shared object loading 1563 [[default=yes]] 1564 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on 1565 UNIX [[default=no]] 1566 --enable-rpath use an rpath when linking SDL [[default=yes]] 1567 1568Optional Packages: 1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1571 --with-pic try to use only PIC/non-PIC objects [default=use 1572 both] 1573 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1574 --with-sysroot=DIR Search for dependent libraries within DIR 1575 (or the compiler's sysroot if not specified). 1576 --with-esd-prefix=PFX Prefix where ESD is installed (optional) 1577 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional) 1578 --with-x use the X Window System 1579 1580Some influential environment variables: 1581 CC C compiler command 1582 CFLAGS C compiler flags 1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1584 nonstandard directory <lib dir> 1585 LIBS libraries to pass to the linker, e.g. -l<library> 1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1587 you have headers in a nonstandard directory <include dir> 1588 CPP C preprocessor 1589 CXX C++ compiler command 1590 CXXFLAGS C++ compiler flags 1591 CXXCPP C++ preprocessor 1592 XMKMF Path to xmkmf, Makefile generator for X Window System 1593 1594Use these variables to override the choices made by `configure' or to help 1595it to find libraries and programs with nonstandard names/locations. 1596 1597Report bugs to the package provider. 1598_ACEOF 1599ac_status=$? 1600fi 1601 1602if test "$ac_init_help" = "recursive"; then 1603 # If there are subdirs, report their specific --help. 1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1605 test -d "$ac_dir" || 1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1607 continue 1608 ac_builddir=. 1609 1610case "$ac_dir" in 1611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1612*) 1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1614 # A ".." for each directory in $ac_dir_suffix. 1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1616 case $ac_top_builddir_sub in 1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1619 esac ;; 1620esac 1621ac_abs_top_builddir=$ac_pwd 1622ac_abs_builddir=$ac_pwd$ac_dir_suffix 1623# for backward compatibility: 1624ac_top_builddir=$ac_top_build_prefix 1625 1626case $srcdir in 1627 .) # We are building in place. 1628 ac_srcdir=. 1629 ac_top_srcdir=$ac_top_builddir_sub 1630 ac_abs_top_srcdir=$ac_pwd ;; 1631 [\\/]* | ?:[\\/]* ) # Absolute name. 1632 ac_srcdir=$srcdir$ac_dir_suffix; 1633 ac_top_srcdir=$srcdir 1634 ac_abs_top_srcdir=$srcdir ;; 1635 *) # Relative name. 1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1637 ac_top_srcdir=$ac_top_build_prefix$srcdir 1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1639esac 1640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1641 1642 cd "$ac_dir" || { ac_status=$?; continue; } 1643 # Check for guested configure. 1644 if test -f "$ac_srcdir/configure.gnu"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1647 elif test -f "$ac_srcdir/configure"; then 1648 echo && 1649 $SHELL "$ac_srcdir/configure" --help=recursive 1650 else 1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1652 fi || ac_status=$? 1653 cd "$ac_pwd" || { ac_status=$?; break; } 1654 done 1655fi 1656 1657test -n "$ac_init_help" && exit $ac_status 1658if $ac_init_version; then 1659 cat <<\_ACEOF 1660configure 1661generated by GNU Autoconf 2.68 1662 1663Copyright (C) 2010 Free Software Foundation, Inc. 1664This configure script is free software; the Free Software Foundation 1665gives unlimited permission to copy, distribute and modify it. 1666_ACEOF 1667 exit 1668fi 1669 1670## ------------------------ ## 1671## Autoconf initialization. ## 1672## ------------------------ ## 1673 1674# ac_fn_c_try_compile LINENO 1675# -------------------------- 1676# Try to compile conftest.$ac_ext, and return whether this succeeded. 1677ac_fn_c_try_compile () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext 1681 if { { ac_try="$ac_compile" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_compile") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest.$ac_objext; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_compile 1711 1712# ac_fn_c_try_cpp LINENO 1713# ---------------------- 1714# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1715ac_fn_c_try_cpp () 1716{ 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 if { { ac_try="$ac_cpp conftest.$ac_ext" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } > conftest.i && { 1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 as_fn_set_status $ac_retval 1746 1747} # ac_fn_c_try_cpp 1748 1749# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1750# ------------------------------------------------------- 1751# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1752# the include files in INCLUDES and setting the cache variable VAR 1753# accordingly. 1754ac_fn_c_check_header_mongrel () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 if eval \${$3+:} false; then : 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762fi 1763eval ac_res=\$$3 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765$as_echo "$ac_res" >&6; } 1766else 1767 # Is the header compilable? 1768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1769$as_echo_n "checking $2 usability... " >&6; } 1770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772$4 1773#include <$2> 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO"; then : 1776 ac_header_compiler=yes 1777else 1778 ac_header_compiler=no 1779fi 1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1782$as_echo "$ac_header_compiler" >&6; } 1783 1784# Is the header present? 1785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1786$as_echo_n "checking $2 presence... " >&6; } 1787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789#include <$2> 1790_ACEOF 1791if ac_fn_c_try_cpp "$LINENO"; then : 1792 ac_header_preproc=yes 1793else 1794 ac_header_preproc=no 1795fi 1796rm -f conftest.err conftest.i conftest.$ac_ext 1797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1798$as_echo "$ac_header_preproc" >&6; } 1799 1800# So? What about this header? 1801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1802 yes:no: ) 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1804$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1806$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1807 ;; 1808 no:yes:* ) 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1810$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1812$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1814$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1816$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1818$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1819 ;; 1820esac 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1822$as_echo_n "checking for $2... " >&6; } 1823if eval \${$3+:} false; then : 1824 $as_echo_n "(cached) " >&6 1825else 1826 eval "$3=\$ac_header_compiler" 1827fi 1828eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830$as_echo "$ac_res" >&6; } 1831fi 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_header_mongrel 1835 1836# ac_fn_c_try_run LINENO 1837# ---------------------- 1838# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1839# that executables *can* be run. 1840ac_fn_c_try_run () 1841{ 1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1843 if { { ac_try="$ac_link" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_link") 2>&5 1851 ac_status=$? 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1854 { { case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859$as_echo "$ac_try_echo"; } >&5 1860 (eval "$ac_try") 2>&5 1861 ac_status=$? 1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; }; }; then : 1864 ac_retval=0 1865else 1866 $as_echo "$as_me: program exited with status $ac_status" >&5 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=$ac_status 1871fi 1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_c_try_run 1877 1878# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1879# ------------------------------------------------------- 1880# Tests whether HEADER exists and can be compiled using the include files in 1881# INCLUDES, setting the cache variable VAR accordingly. 1882ac_fn_c_check_header_compile () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1886$as_echo_n "checking for $2... " >&6; } 1887if eval \${$3+:} false; then : 1888 $as_echo_n "(cached) " >&6 1889else 1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1891/* end confdefs.h. */ 1892$4 1893#include <$2> 1894_ACEOF 1895if ac_fn_c_try_compile "$LINENO"; then : 1896 eval "$3=yes" 1897else 1898 eval "$3=no" 1899fi 1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1901fi 1902eval ac_res=\$$3 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1904$as_echo "$ac_res" >&6; } 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_header_compile 1908 1909# ac_fn_c_try_link LINENO 1910# ----------------------- 1911# Try to link conftest.$ac_ext, and return whether this succeeded. 1912ac_fn_c_try_link () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 rm -f conftest.$ac_objext conftest$ac_exeext 1916 if { { ac_try="$ac_link" 1917case "(($ac_try" in 1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1919 *) ac_try_echo=$ac_try;; 1920esac 1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1922$as_echo "$ac_try_echo"; } >&5 1923 (eval "$ac_link") 2>conftest.err 1924 ac_status=$? 1925 if test -s conftest.err; then 1926 grep -v '^ *+' conftest.err >conftest.er1 1927 cat conftest.er1 >&5 1928 mv -f conftest.er1 conftest.err 1929 fi 1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1931 test $ac_status = 0; } && { 1932 test -z "$ac_c_werror_flag" || 1933 test ! -s conftest.err 1934 } && test -s conftest$ac_exeext && { 1935 test "$cross_compiling" = yes || 1936 $as_test_x conftest$ac_exeext 1937 }; then : 1938 ac_retval=0 1939else 1940 $as_echo "$as_me: failed program was:" >&5 1941sed 's/^/| /' conftest.$ac_ext >&5 1942 1943 ac_retval=1 1944fi 1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1947 # interfere with the next link command; also delete a directory that is 1948 # left behind by Apple's compiler. We do this before executing the actions. 1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 as_fn_set_status $ac_retval 1952 1953} # ac_fn_c_try_link 1954 1955# ac_fn_c_check_func LINENO FUNC VAR 1956# ---------------------------------- 1957# Tests whether FUNC exists, setting the cache variable VAR accordingly 1958ac_fn_c_check_func () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1962$as_echo_n "checking for $2... " >&6; } 1963if eval \${$3+:} false; then : 1964 $as_echo_n "(cached) " >&6 1965else 1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967/* end confdefs.h. */ 1968/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1970#define $2 innocuous_$2 1971 1972/* System header to define __stub macros and hopefully few prototypes, 1973 which can conflict with char $2 (); below. 1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1975 <limits.h> exists even on freestanding compilers. */ 1976 1977#ifdef __STDC__ 1978# include <limits.h> 1979#else 1980# include <assert.h> 1981#endif 1982 1983#undef $2 1984 1985/* Override any GCC internal prototype to avoid an error. 1986 Use char because int might match the return type of a GCC 1987 builtin and then its argument prototype would still apply. */ 1988#ifdef __cplusplus 1989extern "C" 1990#endif 1991char $2 (); 1992/* The GNU C library defines this for functions which it implements 1993 to always fail with ENOSYS. Some functions are actually named 1994 something starting with __ and the normal name is an alias. */ 1995#if defined __stub_$2 || defined __stub___$2 1996choke me 1997#endif 1998 1999int 2000main () 2001{ 2002return $2 (); 2003 ; 2004 return 0; 2005} 2006_ACEOF 2007if ac_fn_c_try_link "$LINENO"; then : 2008 eval "$3=yes" 2009else 2010 eval "$3=no" 2011fi 2012rm -f core conftest.err conftest.$ac_objext \ 2013 conftest$ac_exeext conftest.$ac_ext 2014fi 2015eval ac_res=\$$3 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2017$as_echo "$ac_res" >&6; } 2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2019 2020} # ac_fn_c_check_func 2021 2022# ac_fn_cxx_try_compile LINENO 2023# ---------------------------- 2024# Try to compile conftest.$ac_ext, and return whether this succeeded. 2025ac_fn_cxx_try_compile () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 rm -f conftest.$ac_objext 2029 if { { ac_try="$ac_compile" 2030case "(($ac_try" in 2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2032 *) ac_try_echo=$ac_try;; 2033esac 2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2035$as_echo "$ac_try_echo"; } >&5 2036 (eval "$ac_compile") 2>conftest.err 2037 ac_status=$? 2038 if test -s conftest.err; then 2039 grep -v '^ *+' conftest.err >conftest.er1 2040 cat conftest.er1 >&5 2041 mv -f conftest.er1 conftest.err 2042 fi 2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2044 test $ac_status = 0; } && { 2045 test -z "$ac_cxx_werror_flag" || 2046 test ! -s conftest.err 2047 } && test -s conftest.$ac_objext; then : 2048 ac_retval=0 2049else 2050 $as_echo "$as_me: failed program was:" >&5 2051sed 's/^/| /' conftest.$ac_ext >&5 2052 2053 ac_retval=1 2054fi 2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2056 as_fn_set_status $ac_retval 2057 2058} # ac_fn_cxx_try_compile 2059 2060# ac_fn_cxx_try_cpp LINENO 2061# ------------------------ 2062# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2063ac_fn_cxx_try_cpp () 2064{ 2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2066 if { { ac_try="$ac_cpp conftest.$ac_ext" 2067case "(($ac_try" in 2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2069 *) ac_try_echo=$ac_try;; 2070esac 2071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2072$as_echo "$ac_try_echo"; } >&5 2073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2074 ac_status=$? 2075 if test -s conftest.err; then 2076 grep -v '^ *+' conftest.err >conftest.er1 2077 cat conftest.er1 >&5 2078 mv -f conftest.er1 conftest.err 2079 fi 2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2081 test $ac_status = 0; } > conftest.i && { 2082 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2083 test ! -s conftest.err 2084 }; then : 2085 ac_retval=0 2086else 2087 $as_echo "$as_me: failed program was:" >&5 2088sed 's/^/| /' conftest.$ac_ext >&5 2089 2090 ac_retval=1 2091fi 2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2093 as_fn_set_status $ac_retval 2094 2095} # ac_fn_cxx_try_cpp 2096 2097# ac_fn_cxx_try_link LINENO 2098# ------------------------- 2099# Try to link conftest.$ac_ext, and return whether this succeeded. 2100ac_fn_cxx_try_link () 2101{ 2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2103 rm -f conftest.$ac_objext conftest$ac_exeext 2104 if { { ac_try="$ac_link" 2105case "(($ac_try" in 2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2107 *) ac_try_echo=$ac_try;; 2108esac 2109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2110$as_echo "$ac_try_echo"; } >&5 2111 (eval "$ac_link") 2>conftest.err 2112 ac_status=$? 2113 if test -s conftest.err; then 2114 grep -v '^ *+' conftest.err >conftest.er1 2115 cat conftest.er1 >&5 2116 mv -f conftest.er1 conftest.err 2117 fi 2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2119 test $ac_status = 0; } && { 2120 test -z "$ac_cxx_werror_flag" || 2121 test ! -s conftest.err 2122 } && test -s conftest$ac_exeext && { 2123 test "$cross_compiling" = yes || 2124 $as_test_x conftest$ac_exeext 2125 }; then : 2126 ac_retval=0 2127else 2128 $as_echo "$as_me: failed program was:" >&5 2129sed 's/^/| /' conftest.$ac_ext >&5 2130 2131 ac_retval=1 2132fi 2133 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2134 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2135 # interfere with the next link command; also delete a directory that is 2136 # left behind by Apple's compiler. We do this before executing the actions. 2137 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2139 as_fn_set_status $ac_retval 2140 2141} # ac_fn_cxx_try_link 2142 2143# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2144# ------------------------------------------- 2145# Tests whether TYPE exists after having included INCLUDES, setting cache 2146# variable VAR accordingly. 2147ac_fn_c_check_type () 2148{ 2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2151$as_echo_n "checking for $2... " >&6; } 2152if eval \${$3+:} false; then : 2153 $as_echo_n "(cached) " >&6 2154else 2155 eval "$3=no" 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159int 2160main () 2161{ 2162if (sizeof ($2)) 2163 return 0; 2164 ; 2165 return 0; 2166} 2167_ACEOF 2168if ac_fn_c_try_compile "$LINENO"; then : 2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2170/* end confdefs.h. */ 2171$4 2172int 2173main () 2174{ 2175if (sizeof (($2))) 2176 return 0; 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_compile "$LINENO"; then : 2182 2183else 2184 eval "$3=yes" 2185fi 2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2189fi 2190eval ac_res=\$$3 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2192$as_echo "$ac_res" >&6; } 2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2194 2195} # ac_fn_c_check_type 2196 2197# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2198# -------------------------------------------- 2199# Tries to find the compile-time value of EXPR in a program that includes 2200# INCLUDES, setting VAR accordingly. Returns whether the value could be 2201# computed 2202ac_fn_c_compute_int () 2203{ 2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2205 if test "$cross_compiling" = yes; then 2206 # Depending upon the size, compute the lo and hi bounds. 2207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2208/* end confdefs.h. */ 2209$4 2210int 2211main () 2212{ 2213static int test_array [1 - 2 * !(($2) >= 0)]; 2214test_array [0] = 0 2215 2216 ; 2217 return 0; 2218} 2219_ACEOF 2220if ac_fn_c_try_compile "$LINENO"; then : 2221 ac_lo=0 ac_mid=0 2222 while :; do 2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2224/* end confdefs.h. */ 2225$4 2226int 2227main () 2228{ 2229static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2230test_array [0] = 0 2231 2232 ; 2233 return 0; 2234} 2235_ACEOF 2236if ac_fn_c_try_compile "$LINENO"; then : 2237 ac_hi=$ac_mid; break 2238else 2239 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2240 if test $ac_lo -le $ac_mid; then 2241 ac_lo= ac_hi= 2242 break 2243 fi 2244 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2245fi 2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2247 done 2248else 2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2250/* end confdefs.h. */ 2251$4 2252int 2253main () 2254{ 2255static int test_array [1 - 2 * !(($2) < 0)]; 2256test_array [0] = 0 2257 2258 ; 2259 return 0; 2260} 2261_ACEOF 2262if ac_fn_c_try_compile "$LINENO"; then : 2263 ac_hi=-1 ac_mid=-1 2264 while :; do 2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2266/* end confdefs.h. */ 2267$4 2268int 2269main () 2270{ 2271static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2272test_array [0] = 0 2273 2274 ; 2275 return 0; 2276} 2277_ACEOF 2278if ac_fn_c_try_compile "$LINENO"; then : 2279 ac_lo=$ac_mid; break 2280else 2281 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2282 if test $ac_mid -le $ac_hi; then 2283 ac_lo= ac_hi= 2284 break 2285 fi 2286 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2287fi 2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2289 done 2290else 2291 ac_lo= ac_hi= 2292fi 2293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2294fi 2295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2296# Binary search between lo and hi bounds. 2297while test "x$ac_lo" != "x$ac_hi"; do 2298 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2300/* end confdefs.h. */ 2301$4 2302int 2303main () 2304{ 2305static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2306test_array [0] = 0 2307 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312if ac_fn_c_try_compile "$LINENO"; then : 2313 ac_hi=$ac_mid 2314else 2315 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2316fi 2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2318done 2319case $ac_lo in #(( 2320?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2321'') ac_retval=1 ;; 2322esac 2323 else 2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2325/* end confdefs.h. */ 2326$4 2327static long int longval () { return $2; } 2328static unsigned long int ulongval () { return $2; } 2329#include <stdio.h> 2330#include <stdlib.h> 2331int 2332main () 2333{ 2334 2335 FILE *f = fopen ("conftest.val", "w"); 2336 if (! f) 2337 return 1; 2338 if (($2) < 0) 2339 { 2340 long int i = longval (); 2341 if (i != ($2)) 2342 return 1; 2343 fprintf (f, "%ld", i); 2344 } 2345 else 2346 { 2347 unsigned long int i = ulongval (); 2348 if (i != ($2)) 2349 return 1; 2350 fprintf (f, "%lu", i); 2351 } 2352 /* Do not output a trailing newline, as this causes \r\n confusion 2353 on some platforms. */ 2354 return ferror (f) || fclose (f) != 0; 2355 2356 ; 2357 return 0; 2358} 2359_ACEOF 2360if ac_fn_c_try_run "$LINENO"; then : 2361 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2362else 2363 ac_retval=1 2364fi 2365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2366 conftest.$ac_objext conftest.beam conftest.$ac_ext 2367rm -f conftest.val 2368 2369 fi 2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2371 as_fn_set_status $ac_retval 2372 2373} # ac_fn_c_compute_int 2374cat >config.log <<_ACEOF 2375This file contains any messages produced by compilers while 2376running configure, to aid debugging if configure makes a mistake. 2377 2378It was created by $as_me, which was 2379generated by GNU Autoconf 2.68. Invocation command line was 2380 2381 $ $0 $@ 2382 2383_ACEOF 2384exec 5>>config.log 2385{ 2386cat <<_ASUNAME 2387## --------- ## 2388## Platform. ## 2389## --------- ## 2390 2391hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2392uname -m = `(uname -m) 2>/dev/null || echo unknown` 2393uname -r = `(uname -r) 2>/dev/null || echo unknown` 2394uname -s = `(uname -s) 2>/dev/null || echo unknown` 2395uname -v = `(uname -v) 2>/dev/null || echo unknown` 2396 2397/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2398/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2399 2400/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2401/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2402/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2403/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2404/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2405/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2406/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2407 2408_ASUNAME 2409 2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 $as_echo "PATH: $as_dir" 2416 done 2417IFS=$as_save_IFS 2418 2419} >&5 2420 2421cat >&5 <<_ACEOF 2422 2423 2424## ----------- ## 2425## Core tests. ## 2426## ----------- ## 2427 2428_ACEOF 2429 2430 2431# Keep a trace of the command line. 2432# Strip out --no-create and --no-recursion so they do not pile up. 2433# Strip out --silent because we don't want to record it for future runs. 2434# Also quote any args containing shell meta-characters. 2435# Make two passes to allow for proper duplicate-argument suppression. 2436ac_configure_args= 2437ac_configure_args0= 2438ac_configure_args1= 2439ac_must_keep_next=false 2440for ac_pass in 1 2 2441do 2442 for ac_arg 2443 do 2444 case $ac_arg in 2445 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2447 | -silent | --silent | --silen | --sile | --sil) 2448 continue ;; 2449 *\'*) 2450 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2451 esac 2452 case $ac_pass in 2453 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2454 2) 2455 as_fn_append ac_configure_args1 " '$ac_arg'" 2456 if test $ac_must_keep_next = true; then 2457 ac_must_keep_next=false # Got value, back to normal. 2458 else 2459 case $ac_arg in 2460 *=* | --config-cache | -C | -disable-* | --disable-* \ 2461 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2462 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2463 | -with-* | --with-* | -without-* | --without-* | --x) 2464 case "$ac_configure_args0 " in 2465 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2466 esac 2467 ;; 2468 -* ) ac_must_keep_next=true ;; 2469 esac 2470 fi 2471 as_fn_append ac_configure_args " '$ac_arg'" 2472 ;; 2473 esac 2474 done 2475done 2476{ ac_configure_args0=; unset ac_configure_args0;} 2477{ ac_configure_args1=; unset ac_configure_args1;} 2478 2479# When interrupted or exit'd, cleanup temporary files, and complete 2480# config.log. We remove comments because anyway the quotes in there 2481# would cause problems or look ugly. 2482# WARNING: Use '\'' to represent an apostrophe within the trap. 2483# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2484trap 'exit_status=$? 2485 # Save into config.log some information that might help in debugging. 2486 { 2487 echo 2488 2489 $as_echo "## ---------------- ## 2490## Cache variables. ## 2491## ---------------- ##" 2492 echo 2493 # The following way of writing the cache mishandles newlines in values, 2494( 2495 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2496 eval ac_val=\$$ac_var 2497 case $ac_val in #( 2498 *${as_nl}*) 2499 case $ac_var in #( 2500 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2501$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2502 esac 2503 case $ac_var in #( 2504 _ | IFS | as_nl) ;; #( 2505 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2506 *) { eval $ac_var=; unset $ac_var;} ;; 2507 esac ;; 2508 esac 2509 done 2510 (set) 2>&1 | 2511 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2512 *${as_nl}ac_space=\ *) 2513 sed -n \ 2514 "s/'\''/'\''\\\\'\'''\''/g; 2515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2516 ;; #( 2517 *) 2518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2519 ;; 2520 esac | 2521 sort 2522) 2523 echo 2524 2525 $as_echo "## ----------------- ## 2526## Output variables. ## 2527## ----------------- ##" 2528 echo 2529 for ac_var in $ac_subst_vars 2530 do 2531 eval ac_val=\$$ac_var 2532 case $ac_val in 2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2534 esac 2535 $as_echo "$ac_var='\''$ac_val'\''" 2536 done | sort 2537 echo 2538 2539 if test -n "$ac_subst_files"; then 2540 $as_echo "## ------------------- ## 2541## File substitutions. ## 2542## ------------------- ##" 2543 echo 2544 for ac_var in $ac_subst_files 2545 do 2546 eval ac_val=\$$ac_var 2547 case $ac_val in 2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2549 esac 2550 $as_echo "$ac_var='\''$ac_val'\''" 2551 done | sort 2552 echo 2553 fi 2554 2555 if test -s confdefs.h; then 2556 $as_echo "## ----------- ## 2557## confdefs.h. ## 2558## ----------- ##" 2559 echo 2560 cat confdefs.h 2561 echo 2562 fi 2563 test "$ac_signal" != 0 && 2564 $as_echo "$as_me: caught signal $ac_signal" 2565 $as_echo "$as_me: exit $exit_status" 2566 } >&5 2567 rm -f core *.core core.conftest.* && 2568 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2569 exit $exit_status 2570' 0 2571for ac_signal in 1 2 13 15; do 2572 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2573done 2574ac_signal=0 2575 2576# confdefs.h avoids OS command line length limits that DEFS can exceed. 2577rm -f -r conftest* confdefs.h 2578 2579$as_echo "/* confdefs.h */" > confdefs.h 2580 2581# Predefined preprocessor variables. 2582 2583cat >>confdefs.h <<_ACEOF 2584#define PACKAGE_NAME "$PACKAGE_NAME" 2585_ACEOF 2586 2587cat >>confdefs.h <<_ACEOF 2588#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2589_ACEOF 2590 2591cat >>confdefs.h <<_ACEOF 2592#define PACKAGE_VERSION "$PACKAGE_VERSION" 2593_ACEOF 2594 2595cat >>confdefs.h <<_ACEOF 2596#define PACKAGE_STRING "$PACKAGE_STRING" 2597_ACEOF 2598 2599cat >>confdefs.h <<_ACEOF 2600#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2601_ACEOF 2602 2603cat >>confdefs.h <<_ACEOF 2604#define PACKAGE_URL "$PACKAGE_URL" 2605_ACEOF 2606 2607 2608# Let the site file select an alternate cache file if it wants to. 2609# Prefer an explicitly selected file to automatically selected ones. 2610ac_site_file1=NONE 2611ac_site_file2=NONE 2612if test -n "$CONFIG_SITE"; then 2613 # We do not want a PATH search for config.site. 2614 case $CONFIG_SITE in #(( 2615 -*) ac_site_file1=./$CONFIG_SITE;; 2616 */*) ac_site_file1=$CONFIG_SITE;; 2617 *) ac_site_file1=./$CONFIG_SITE;; 2618 esac 2619elif test "x$prefix" != xNONE; then 2620 ac_site_file1=$prefix/share/config.site 2621 ac_site_file2=$prefix/etc/config.site 2622else 2623 ac_site_file1=$ac_default_prefix/share/config.site 2624 ac_site_file2=$ac_default_prefix/etc/config.site 2625fi 2626for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2627do 2628 test "x$ac_site_file" = xNONE && continue 2629 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2631$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2632 sed 's/^/| /' "$ac_site_file" >&5 2633 . "$ac_site_file" \ 2634 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2636as_fn_error $? "failed to load site script $ac_site_file 2637See \`config.log' for more details" "$LINENO" 5 ; } 2638 fi 2639done 2640 2641if test -r "$cache_file"; then 2642 # Some versions of bash will fail to source /dev/null (special files 2643 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2644 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2646$as_echo "$as_me: loading cache $cache_file" >&6;} 2647 case $cache_file in 2648 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2649 *) . "./$cache_file";; 2650 esac 2651 fi 2652else 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2654$as_echo "$as_me: creating cache $cache_file" >&6;} 2655 >$cache_file 2656fi 2657 2658# Check that the precious variables saved in the cache have kept the same 2659# value. 2660ac_cache_corrupted=false 2661for ac_var in $ac_precious_vars; do 2662 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2663 eval ac_new_set=\$ac_env_${ac_var}_set 2664 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2665 eval ac_new_val=\$ac_env_${ac_var}_value 2666 case $ac_old_set,$ac_new_set in 2667 set,) 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2669$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2670 ac_cache_corrupted=: ;; 2671 ,set) 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2673$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2674 ac_cache_corrupted=: ;; 2675 ,);; 2676 *) 2677 if test "x$ac_old_val" != "x$ac_new_val"; then 2678 # differences in whitespace do not lead to failure. 2679 ac_old_val_w=`echo x $ac_old_val` 2680 ac_new_val_w=`echo x $ac_new_val` 2681 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2683$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2684 ac_cache_corrupted=: 2685 else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2687$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2688 eval $ac_var=\$ac_old_val 2689 fi 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2691$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2693$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2694 fi;; 2695 esac 2696 # Pass precious variables to config.status. 2697 if test "$ac_new_set" = set; then 2698 case $ac_new_val in 2699 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2700 *) ac_arg=$ac_var=$ac_new_val ;; 2701 esac 2702 case " $ac_configure_args " in 2703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2704 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2705 esac 2706 fi 2707done 2708if $ac_cache_corrupted; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2712$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2713 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2714fi 2715## -------------------- ## 2716## Main body of script. ## 2717## -------------------- ## 2718 2719ac_ext=c 2720ac_cpp='$CPP $CPPFLAGS' 2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2723ac_compiler_gnu=$ac_cv_c_compiler_gnu 2724 2725 2726ac_config_headers="$ac_config_headers include/SDL_config.h" 2727 2728ac_ext=c 2729ac_cpp='$CPP $CPPFLAGS' 2730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2732ac_compiler_gnu=$ac_cv_c_compiler_gnu 2733if test -n "$ac_tool_prefix"; then 2734 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2735set dummy ${ac_tool_prefix}gcc; ac_word=$2 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2737$as_echo_n "checking for $ac_word... " >&6; } 2738if ${ac_cv_prog_CC+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740else 2741 if test -n "$CC"; then 2742 ac_cv_prog_CC="$CC" # Let the user override the test. 2743else 2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2745for as_dir in $PATH 2746do 2747 IFS=$as_save_IFS 2748 test -z "$as_dir" && as_dir=. 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2751 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755done 2756 done 2757IFS=$as_save_IFS 2758 2759fi 2760fi 2761CC=$ac_cv_prog_CC 2762if test -n "$CC"; then 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2764$as_echo "$CC" >&6; } 2765else 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767$as_echo "no" >&6; } 2768fi 2769 2770 2771fi 2772if test -z "$ac_cv_prog_CC"; then 2773 ac_ct_CC=$CC 2774 # Extract the first word of "gcc", so it can be a program name with args. 2775set dummy gcc; ac_word=$2 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2777$as_echo_n "checking for $ac_word... " >&6; } 2778if ${ac_cv_prog_ac_ct_CC+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780else 2781 if test -n "$ac_ct_CC"; then 2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2783else 2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2785for as_dir in $PATH 2786do 2787 IFS=$as_save_IFS 2788 test -z "$as_dir" && as_dir=. 2789 for ac_exec_ext in '' $ac_executable_extensions; do 2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2791 ac_cv_prog_ac_ct_CC="gcc" 2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2793 break 2 2794 fi 2795done 2796 done 2797IFS=$as_save_IFS 2798 2799fi 2800fi 2801ac_ct_CC=$ac_cv_prog_ac_ct_CC 2802if test -n "$ac_ct_CC"; then 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2804$as_echo "$ac_ct_CC" >&6; } 2805else 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2807$as_echo "no" >&6; } 2808fi 2809 2810 if test "x$ac_ct_CC" = x; then 2811 CC="" 2812 else 2813 case $cross_compiling:$ac_tool_warned in 2814yes:) 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2817ac_tool_warned=yes ;; 2818esac 2819 CC=$ac_ct_CC 2820 fi 2821else 2822 CC="$ac_cv_prog_CC" 2823fi 2824 2825if test -z "$CC"; then 2826 if test -n "$ac_tool_prefix"; then 2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2828set dummy ${ac_tool_prefix}cc; ac_word=$2 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2830$as_echo_n "checking for $ac_word... " >&6; } 2831if ${ac_cv_prog_CC+:} false; then : 2832 $as_echo_n "(cached) " >&6 2833else 2834 if test -n "$CC"; then 2835 ac_cv_prog_CC="$CC" # Let the user override the test. 2836else 2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2838for as_dir in $PATH 2839do 2840 IFS=$as_save_IFS 2841 test -z "$as_dir" && as_dir=. 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2844 ac_cv_prog_CC="${ac_tool_prefix}cc" 2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2846 break 2 2847 fi 2848done 2849 done 2850IFS=$as_save_IFS 2851 2852fi 2853fi 2854CC=$ac_cv_prog_CC 2855if test -n "$CC"; then 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2857$as_echo "$CC" >&6; } 2858else 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2860$as_echo "no" >&6; } 2861fi 2862 2863 2864 fi 2865fi 2866if test -z "$CC"; then 2867 # Extract the first word of "cc", so it can be a program name with args. 2868set dummy cc; ac_word=$2 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870$as_echo_n "checking for $ac_word... " >&6; } 2871if ${ac_cv_prog_CC+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873else 2874 if test -n "$CC"; then 2875 ac_cv_prog_CC="$CC" # Let the user override the test. 2876else 2877 ac_prog_rejected=no 2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2879for as_dir in $PATH 2880do 2881 IFS=$as_save_IFS 2882 test -z "$as_dir" && as_dir=. 2883 for ac_exec_ext in '' $ac_executable_extensions; do 2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2886 ac_prog_rejected=yes 2887 continue 2888 fi 2889 ac_cv_prog_CC="cc" 2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2891 break 2 2892 fi 2893done 2894 done 2895IFS=$as_save_IFS 2896 2897if test $ac_prog_rejected = yes; then 2898 # We found a bogon in the path, so make sure we never use it. 2899 set dummy $ac_cv_prog_CC 2900 shift 2901 if test $# != 0; then 2902 # We chose a different compiler from the bogus one. 2903 # However, it has the same basename, so the bogon will be chosen 2904 # first if we set CC to just the basename; use the full file name. 2905 shift 2906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2907 fi 2908fi 2909fi 2910fi 2911CC=$ac_cv_prog_CC 2912if test -n "$CC"; then 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2914$as_echo "$CC" >&6; } 2915else 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917$as_echo "no" >&6; } 2918fi 2919 2920 2921fi 2922if test -z "$CC"; then 2923 if test -n "$ac_tool_prefix"; then 2924 for ac_prog in cl.exe 2925 do 2926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2927set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929$as_echo_n "checking for $ac_word... " >&6; } 2930if ${ac_cv_prog_CC+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 if test -n "$CC"; then 2934 ac_cv_prog_CC="$CC" # Let the user override the test. 2935else 2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937for as_dir in $PATH 2938do 2939 IFS=$as_save_IFS 2940 test -z "$as_dir" && as_dir=. 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2943 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947done 2948 done 2949IFS=$as_save_IFS 2950 2951fi 2952fi 2953CC=$ac_cv_prog_CC 2954if test -n "$CC"; then 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2956$as_echo "$CC" >&6; } 2957else 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959$as_echo "no" >&6; } 2960fi 2961 2962 2963 test -n "$CC" && break 2964 done 2965fi 2966if test -z "$CC"; then 2967 ac_ct_CC=$CC 2968 for ac_prog in cl.exe 2969do 2970 # Extract the first word of "$ac_prog", so it can be a program name with args. 2971set dummy $ac_prog; ac_word=$2 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2973$as_echo_n "checking for $ac_word... " >&6; } 2974if ${ac_cv_prog_ac_ct_CC+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976else 2977 if test -n "$ac_ct_CC"; then 2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2979else 2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2981for as_dir in $PATH 2982do 2983 IFS=$as_save_IFS 2984 test -z "$as_dir" && as_dir=. 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2987 ac_cv_prog_ac_ct_CC="$ac_prog" 2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2989 break 2 2990 fi 2991done 2992 done 2993IFS=$as_save_IFS 2994 2995fi 2996fi 2997ac_ct_CC=$ac_cv_prog_ac_ct_CC 2998if test -n "$ac_ct_CC"; then 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3000$as_echo "$ac_ct_CC" >&6; } 3001else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003$as_echo "no" >&6; } 3004fi 3005 3006 3007 test -n "$ac_ct_CC" && break 3008done 3009 3010 if test "x$ac_ct_CC" = x; then 3011 CC="" 3012 else 3013 case $cross_compiling:$ac_tool_warned in 3014yes:) 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3017ac_tool_warned=yes ;; 3018esac 3019 CC=$ac_ct_CC 3020 fi 3021fi 3022 3023fi 3024 3025 3026test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3028as_fn_error $? "no acceptable C compiler found in \$PATH 3029See \`config.log' for more details" "$LINENO" 5 ; } 3030 3031# Provide some information about the compiler. 3032$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3033set X $ac_compile 3034ac_compiler=$2 3035for ac_option in --version -v -V -qversion; do 3036 { { ac_try="$ac_compiler $ac_option >&5" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3042$as_echo "$ac_try_echo"; } >&5 3043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3044 ac_status=$? 3045 if test -s conftest.err; then 3046 sed '10a\ 3047... rest of stderr output deleted ... 3048 10q' conftest.err >conftest.er1 3049 cat conftest.er1 >&5 3050 fi 3051 rm -f conftest.er1 conftest.err 3052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3053 test $ac_status = 0; } 3054done 3055 3056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3057/* end confdefs.h. */ 3058 3059int 3060main () 3061{ 3062 3063 ; 3064 return 0; 3065} 3066_ACEOF 3067ac_clean_files_save=$ac_clean_files 3068ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3069# Try to create an executable without -o first, disregard a.out. 3070# It will help us diagnose broken compilers, and finding out an intuition 3071# of exeext. 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3073$as_echo_n "checking whether the C compiler works... " >&6; } 3074ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3075 3076# The possible output files: 3077ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3078 3079ac_rmfiles= 3080for ac_file in $ac_files 3081do 3082 case $ac_file in 3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3084 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3085 esac 3086done 3087rm -f $ac_rmfiles 3088 3089if { { ac_try="$ac_link_default" 3090case "(($ac_try" in 3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3092 *) ac_try_echo=$ac_try;; 3093esac 3094eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3095$as_echo "$ac_try_echo"; } >&5 3096 (eval "$ac_link_default") 2>&5 3097 ac_status=$? 3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3099 test $ac_status = 0; }; then : 3100 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3101# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3102# in a Makefile. We should not override ac_cv_exeext if it was cached, 3103# so that the user can short-circuit this test for compilers unknown to 3104# Autoconf. 3105for ac_file in $ac_files '' 3106do 3107 test -f "$ac_file" || continue 3108 case $ac_file in 3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3110 ;; 3111 [ab].out ) 3112 # We found the default executable, but exeext='' is most 3113 # certainly right. 3114 break;; 3115 *.* ) 3116 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3117 then :; else 3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3119 fi 3120 # We set ac_cv_exeext here because the later test for it is not 3121 # safe: cross compilers may not add the suffix if given an `-o' 3122 # argument, so we may need to know it at that point already. 3123 # Even if this section looks crufty: it has the advantage of 3124 # actually working. 3125 break;; 3126 * ) 3127 break;; 3128 esac 3129done 3130test "$ac_cv_exeext" = no && ac_cv_exeext= 3131 3132else 3133 ac_file='' 3134fi 3135if test -z "$ac_file"; then : 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3137$as_echo "no" >&6; } 3138$as_echo "$as_me: failed program was:" >&5 3139sed 's/^/| /' conftest.$ac_ext >&5 3140 3141{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3143as_fn_error 77 "C compiler cannot create executables 3144See \`config.log' for more details" "$LINENO" 5 ; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3147$as_echo "yes" >&6; } 3148fi 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3150$as_echo_n "checking for C compiler default output file name... " >&6; } 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3152$as_echo "$ac_file" >&6; } 3153ac_exeext=$ac_cv_exeext 3154 3155rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3156ac_clean_files=$ac_clean_files_save 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3158$as_echo_n "checking for suffix of executables... " >&6; } 3159if { { ac_try="$ac_link" 3160case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163esac 3164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3165$as_echo "$ac_try_echo"; } >&5 3166 (eval "$ac_link") 2>&5 3167 ac_status=$? 3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3169 test $ac_status = 0; }; then : 3170 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3171# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3172# work properly (i.e., refer to `conftest.exe'), while it won't with 3173# `rm'. 3174for ac_file in conftest.exe conftest conftest.*; do 3175 test -f "$ac_file" || continue 3176 case $ac_file in 3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3178 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3179 break;; 3180 * ) break;; 3181 esac 3182done 3183else 3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3186as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3187See \`config.log' for more details" "$LINENO" 5 ; } 3188fi 3189rm -f conftest conftest$ac_cv_exeext 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3191$as_echo "$ac_cv_exeext" >&6; } 3192 3193rm -f conftest.$ac_ext 3194EXEEXT=$ac_cv_exeext 3195ac_exeext=$EXEEXT 3196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3197/* end confdefs.h. */ 3198#include <stdio.h> 3199int 3200main () 3201{ 3202FILE *f = fopen ("conftest.out", "w"); 3203 return ferror (f) || fclose (f) != 0; 3204 3205 ; 3206 return 0; 3207} 3208_ACEOF 3209ac_clean_files="$ac_clean_files conftest.out" 3210# Check that the compiler produces executables we can run. If not, either 3211# the compiler is broken, or we cross compile. 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3213$as_echo_n "checking whether we are cross compiling... " >&6; } 3214if test "$cross_compiling" != yes; then 3215 { { ac_try="$ac_link" 3216case "(($ac_try" in 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3218 *) ac_try_echo=$ac_try;; 3219esac 3220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3221$as_echo "$ac_try_echo"; } >&5 3222 (eval "$ac_link") 2>&5 3223 ac_status=$? 3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3225 test $ac_status = 0; } 3226 if { ac_try='./conftest$ac_cv_exeext' 3227 { { case "(($ac_try" in 3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3229 *) ac_try_echo=$ac_try;; 3230esac 3231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3232$as_echo "$ac_try_echo"; } >&5 3233 (eval "$ac_try") 2>&5 3234 ac_status=$? 3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3236 test $ac_status = 0; }; }; then 3237 cross_compiling=no 3238 else 3239 if test "$cross_compiling" = maybe; then 3240 cross_compiling=yes 3241 else 3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3244as_fn_error $? "cannot run C compiled programs. 3245If you meant to cross compile, use \`--host'. 3246See \`config.log' for more details" "$LINENO" 5 ; } 3247 fi 3248 fi 3249fi 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3251$as_echo "$cross_compiling" >&6; } 3252 3253rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3254ac_clean_files=$ac_clean_files_save 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3256$as_echo_n "checking for suffix of object files... " >&6; } 3257if ${ac_cv_objext+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3261/* end confdefs.h. */ 3262 3263int 3264main () 3265{ 3266 3267 ; 3268 return 0; 3269} 3270_ACEOF 3271rm -f conftest.o conftest.obj 3272if { { ac_try="$ac_compile" 3273case "(($ac_try" in 3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275 *) ac_try_echo=$ac_try;; 3276esac 3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3278$as_echo "$ac_try_echo"; } >&5 3279 (eval "$ac_compile") 2>&5 3280 ac_status=$? 3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3282 test $ac_status = 0; }; then : 3283 for ac_file in conftest.o conftest.obj conftest.*; do 3284 test -f "$ac_file" || continue; 3285 case $ac_file in 3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3288 break;; 3289 esac 3290done 3291else 3292 $as_echo "$as_me: failed program was:" >&5 3293sed 's/^/| /' conftest.$ac_ext >&5 3294 3295{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3297as_fn_error $? "cannot compute suffix of object files: cannot compile 3298See \`config.log' for more details" "$LINENO" 5 ; } 3299fi 3300rm -f conftest.$ac_cv_objext conftest.$ac_ext 3301fi 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3303$as_echo "$ac_cv_objext" >&6; } 3304OBJEXT=$ac_cv_objext 3305ac_objext=$OBJEXT 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3307$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3308if ${ac_cv_c_compiler_gnu+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3312/* end confdefs.h. */ 3313 3314int 3315main () 3316{ 3317#ifndef __GNUC__ 3318 choke me 3319#endif 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325if ac_fn_c_try_compile "$LINENO"; then : 3326 ac_compiler_gnu=yes 3327else 3328 ac_compiler_gnu=no 3329fi 3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3331ac_cv_c_compiler_gnu=$ac_compiler_gnu 3332 3333fi 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3335$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3336if test $ac_compiler_gnu = yes; then 3337 GCC=yes 3338else 3339 GCC= 3340fi 3341ac_test_CFLAGS=${CFLAGS+set} 3342ac_save_CFLAGS=$CFLAGS 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3344$as_echo_n "checking whether $CC accepts -g... " >&6; } 3345if ${ac_cv_prog_cc_g+:} false; then : 3346 $as_echo_n "(cached) " >&6 3347else 3348 ac_save_c_werror_flag=$ac_c_werror_flag 3349 ac_c_werror_flag=yes 3350 ac_cv_prog_cc_g=no 3351 CFLAGS="-g" 3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3353/* end confdefs.h. */ 3354 3355int 3356main () 3357{ 3358 3359 ; 3360 return 0; 3361} 3362_ACEOF 3363if ac_fn_c_try_compile "$LINENO"; then : 3364 ac_cv_prog_cc_g=yes 3365else 3366 CFLAGS="" 3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378if ac_fn_c_try_compile "$LINENO"; then : 3379 3380else 3381 ac_c_werror_flag=$ac_save_c_werror_flag 3382 CFLAGS="-g" 3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384/* end confdefs.h. */ 3385 3386int 3387main () 3388{ 3389 3390 ; 3391 return 0; 3392} 3393_ACEOF 3394if ac_fn_c_try_compile "$LINENO"; then : 3395 ac_cv_prog_cc_g=yes 3396fi 3397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3398fi 3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3400fi 3401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3402 ac_c_werror_flag=$ac_save_c_werror_flag 3403fi 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3405$as_echo "$ac_cv_prog_cc_g" >&6; } 3406if test "$ac_test_CFLAGS" = set; then 3407 CFLAGS=$ac_save_CFLAGS 3408elif test $ac_cv_prog_cc_g = yes; then 3409 if test "$GCC" = yes; then 3410 CFLAGS="-g -O2" 3411 else 3412 CFLAGS="-g" 3413 fi 3414else 3415 if test "$GCC" = yes; then 3416 CFLAGS="-O2" 3417 else 3418 CFLAGS= 3419 fi 3420fi 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3422$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3423if ${ac_cv_prog_cc_c89+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 ac_cv_prog_cc_c89=no 3427ac_save_CC=$CC 3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430#include <stdarg.h> 3431#include <stdio.h> 3432#include <sys/types.h> 3433#include <sys/stat.h> 3434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3435struct buf { int x; }; 3436FILE * (*rcsopen) (struct buf *, struct stat *, int); 3437static char *e (p, i) 3438 char **p; 3439 int i; 3440{ 3441 return p[i]; 3442} 3443static char *f (char * (*g) (char **, int), char **p, ...) 3444{ 3445 char *s; 3446 va_list v; 3447 va_start (v,p); 3448 s = g (p, va_arg (v,int)); 3449 va_end (v); 3450 return s; 3451} 3452 3453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3454 function prototypes and stuff, but not '\xHH' hex character constants. 3455 These don't provoke an error unfortunately, instead are silently treated 3456 as 'x'. The following induces an error, until -std is added to get 3457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3458 array size at least. It's necessary to write '\x00'==0 to get something 3459 that's true only with -std. */ 3460int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3461 3462/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3463 inside strings and character constants. */ 3464#define FOO(x) 'x' 3465int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3466 3467int test (int i, double x); 3468struct s1 {int (*f) (int a);}; 3469struct s2 {int (*f) (double a);}; 3470int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3471int argc; 3472char **argv; 3473int 3474main () 3475{ 3476return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3477 ; 3478 return 0; 3479} 3480_ACEOF 3481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3482 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3483do 3484 CC="$ac_save_CC $ac_arg" 3485 if ac_fn_c_try_compile "$LINENO"; then : 3486 ac_cv_prog_cc_c89=$ac_arg 3487fi 3488rm -f core conftest.err conftest.$ac_objext 3489 test "x$ac_cv_prog_cc_c89" != "xno" && break 3490done 3491rm -f conftest.$ac_ext 3492CC=$ac_save_CC 3493 3494fi 3495# AC_CACHE_VAL 3496case "x$ac_cv_prog_cc_c89" in 3497 x) 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3499$as_echo "none needed" >&6; } ;; 3500 xno) 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3502$as_echo "unsupported" >&6; } ;; 3503 *) 3504 CC="$CC $ac_cv_prog_cc_c89" 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3506$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3507esac 3508if test "x$ac_cv_prog_cc_c89" != xno; then : 3509 3510fi 3511 3512ac_ext=c 3513ac_cpp='$CPP $CPPFLAGS' 3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3516ac_compiler_gnu=$ac_cv_c_compiler_gnu 3517 3518 3519ac_ext=c 3520ac_cpp='$CPP $CPPFLAGS' 3521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3523ac_compiler_gnu=$ac_cv_c_compiler_gnu 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3525$as_echo_n "checking how to run the C preprocessor... " >&6; } 3526# On Suns, sometimes $CPP names a directory. 3527if test -n "$CPP" && test -d "$CPP"; then 3528 CPP= 3529fi 3530if test -z "$CPP"; then 3531 if ${ac_cv_prog_CPP+:} false; then : 3532 $as_echo_n "(cached) " >&6 3533else 3534 # Double quotes because CPP needs to be expanded 3535 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3536 do 3537 ac_preproc_ok=false 3538for ac_c_preproc_warn_flag in '' yes 3539do 3540 # Use a header file that comes with gcc, so configuring glibc 3541 # with a fresh cross-compiler works. 3542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3543 # <limits.h> exists even on freestanding compilers. 3544 # On the NeXT, cc -E runs the code through the compiler's parser, 3545 # not just through cpp. "Syntax error" is here to catch this case. 3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3547/* end confdefs.h. */ 3548#ifdef __STDC__ 3549# include <limits.h> 3550#else 3551# include <assert.h> 3552#endif 3553 Syntax error 3554_ACEOF 3555if ac_fn_c_try_cpp "$LINENO"; then : 3556 3557else 3558 # Broken: fails on valid input. 3559continue 3560fi 3561rm -f conftest.err conftest.i conftest.$ac_ext 3562 3563 # OK, works on sane cases. Now check whether nonexistent headers 3564 # can be detected and how. 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567#include <ac_nonexistent.h> 3568_ACEOF 3569if ac_fn_c_try_cpp "$LINENO"; then : 3570 # Broken: success on invalid input. 3571continue 3572else 3573 # Passes both tests. 3574ac_preproc_ok=: 3575break 3576fi 3577rm -f conftest.err conftest.i conftest.$ac_ext 3578 3579done 3580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3581rm -f conftest.i conftest.err conftest.$ac_ext 3582if $ac_preproc_ok; then : 3583 break 3584fi 3585 3586 done 3587 ac_cv_prog_CPP=$CPP 3588 3589fi 3590 CPP=$ac_cv_prog_CPP 3591else 3592 ac_cv_prog_CPP=$CPP 3593fi 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3595$as_echo "$CPP" >&6; } 3596ac_preproc_ok=false 3597for ac_c_preproc_warn_flag in '' yes 3598do 3599 # Use a header file that comes with gcc, so configuring glibc 3600 # with a fresh cross-compiler works. 3601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3602 # <limits.h> exists even on freestanding compilers. 3603 # On the NeXT, cc -E runs the code through the compiler's parser, 3604 # not just through cpp. "Syntax error" is here to catch this case. 3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3606/* end confdefs.h. */ 3607#ifdef __STDC__ 3608# include <limits.h> 3609#else 3610# include <assert.h> 3611#endif 3612 Syntax error 3613_ACEOF 3614if ac_fn_c_try_cpp "$LINENO"; then : 3615 3616else 3617 # Broken: fails on valid input. 3618continue 3619fi 3620rm -f conftest.err conftest.i conftest.$ac_ext 3621 3622 # OK, works on sane cases. Now check whether nonexistent headers 3623 # can be detected and how. 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626#include <ac_nonexistent.h> 3627_ACEOF 3628if ac_fn_c_try_cpp "$LINENO"; then : 3629 # Broken: success on invalid input. 3630continue 3631else 3632 # Passes both tests. 3633ac_preproc_ok=: 3634break 3635fi 3636rm -f conftest.err conftest.i conftest.$ac_ext 3637 3638done 3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3640rm -f conftest.i conftest.err conftest.$ac_ext 3641if $ac_preproc_ok; then : 3642 3643else 3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3646as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3647See \`config.log' for more details" "$LINENO" 5 ; } 3648fi 3649 3650ac_ext=c 3651ac_cpp='$CPP $CPPFLAGS' 3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3654ac_compiler_gnu=$ac_cv_c_compiler_gnu 3655 3656 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3658$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3659if ${ac_cv_path_GREP+:} false; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 if test -z "$GREP"; then 3663 ac_path_GREP_found=false 3664 # Loop through the user's path and test for each of PROGNAME-LIST 3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3667do 3668 IFS=$as_save_IFS 3669 test -z "$as_dir" && as_dir=. 3670 for ac_prog in grep ggrep; do 3671 for ac_exec_ext in '' $ac_executable_extensions; do 3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3673 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3674# Check for GNU ac_path_GREP and select it if it is found. 3675 # Check for GNU $ac_path_GREP 3676case `"$ac_path_GREP" --version 2>&1` in 3677*GNU*) 3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3679*) 3680 ac_count=0 3681 $as_echo_n 0123456789 >"conftest.in" 3682 while : 3683 do 3684 cat "conftest.in" "conftest.in" >"conftest.tmp" 3685 mv "conftest.tmp" "conftest.in" 3686 cp "conftest.in" "conftest.nl" 3687 $as_echo 'GREP' >> "conftest.nl" 3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3690 as_fn_arith $ac_count + 1 && ac_count=$as_val 3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3692 # Best one so far, save it but keep looking for a better one 3693 ac_cv_path_GREP="$ac_path_GREP" 3694 ac_path_GREP_max=$ac_count 3695 fi 3696 # 10*(2^10) chars as input seems more than enough 3697 test $ac_count -gt 10 && break 3698 done 3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3700esac 3701 3702 $ac_path_GREP_found && break 3 3703 done 3704 done 3705 done 3706IFS=$as_save_IFS 3707 if test -z "$ac_cv_path_GREP"; then 3708 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3709 fi 3710else 3711 ac_cv_path_GREP=$GREP 3712fi 3713 3714fi 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3716$as_echo "$ac_cv_path_GREP" >&6; } 3717 GREP="$ac_cv_path_GREP" 3718 3719 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3721$as_echo_n "checking for egrep... " >&6; } 3722if ${ac_cv_path_EGREP+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3726 then ac_cv_path_EGREP="$GREP -E" 3727 else 3728 if test -z "$EGREP"; then 3729 ac_path_EGREP_found=false 3730 # Loop through the user's path and test for each of PROGNAME-LIST 3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3733do 3734 IFS=$as_save_IFS 3735 test -z "$as_dir" && as_dir=. 3736 for ac_prog in egrep; do 3737 for ac_exec_ext in '' $ac_executable_extensions; do 3738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3739 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3740# Check for GNU ac_path_EGREP and select it if it is found. 3741 # Check for GNU $ac_path_EGREP 3742case `"$ac_path_EGREP" --version 2>&1` in 3743*GNU*) 3744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3745*) 3746 ac_count=0 3747 $as_echo_n 0123456789 >"conftest.in" 3748 while : 3749 do 3750 cat "conftest.in" "conftest.in" >"conftest.tmp" 3751 mv "conftest.tmp" "conftest.in" 3752 cp "conftest.in" "conftest.nl" 3753 $as_echo 'EGREP' >> "conftest.nl" 3754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3756 as_fn_arith $ac_count + 1 && ac_count=$as_val 3757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3758 # Best one so far, save it but keep looking for a better one 3759 ac_cv_path_EGREP="$ac_path_EGREP" 3760 ac_path_EGREP_max=$ac_count 3761 fi 3762 # 10*(2^10) chars as input seems more than enough 3763 test $ac_count -gt 10 && break 3764 done 3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3766esac 3767 3768 $ac_path_EGREP_found && break 3 3769 done 3770 done 3771 done 3772IFS=$as_save_IFS 3773 if test -z "$ac_cv_path_EGREP"; then 3774 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3775 fi 3776else 3777 ac_cv_path_EGREP=$EGREP 3778fi 3779 3780 fi 3781fi 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3783$as_echo "$ac_cv_path_EGREP" >&6; } 3784 EGREP="$ac_cv_path_EGREP" 3785 3786 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3788$as_echo_n "checking for ANSI C header files... " >&6; } 3789if ${ac_cv_header_stdc+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791else 3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3793/* end confdefs.h. */ 3794#include <stdlib.h> 3795#include <stdarg.h> 3796#include <string.h> 3797#include <float.h> 3798 3799int 3800main () 3801{ 3802 3803 ; 3804 return 0; 3805} 3806_ACEOF 3807if ac_fn_c_try_compile "$LINENO"; then : 3808 ac_cv_header_stdc=yes 3809else 3810 ac_cv_header_stdc=no 3811fi 3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3813 3814if test $ac_cv_header_stdc = yes; then 3815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818#include <string.h> 3819 3820_ACEOF 3821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3822 $EGREP "memchr" >/dev/null 2>&1; then : 3823 3824else 3825 ac_cv_header_stdc=no 3826fi 3827rm -f conftest* 3828 3829fi 3830 3831if test $ac_cv_header_stdc = yes; then 3832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835#include <stdlib.h> 3836 3837_ACEOF 3838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3839 $EGREP "free" >/dev/null 2>&1; then : 3840 3841else 3842 ac_cv_header_stdc=no 3843fi 3844rm -f conftest* 3845 3846fi 3847 3848if test $ac_cv_header_stdc = yes; then 3849 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3850 if test "$cross_compiling" = yes; then : 3851 : 3852else 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855#include <ctype.h> 3856#include <stdlib.h> 3857#if ((' ' & 0x0FF) == 0x020) 3858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3860#else 3861# define ISLOWER(c) \ 3862 (('a' <= (c) && (c) <= 'i') \ 3863 || ('j' <= (c) && (c) <= 'r') \ 3864 || ('s' <= (c) && (c) <= 'z')) 3865# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3866#endif 3867 3868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3869int 3870main () 3871{ 3872 int i; 3873 for (i = 0; i < 256; i++) 3874 if (XOR (islower (i), ISLOWER (i)) 3875 || toupper (i) != TOUPPER (i)) 3876 return 2; 3877 return 0; 3878} 3879_ACEOF 3880if ac_fn_c_try_run "$LINENO"; then : 3881 3882else 3883 ac_cv_header_stdc=no 3884fi 3885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3886 conftest.$ac_objext conftest.beam conftest.$ac_ext 3887fi 3888 3889fi 3890fi 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3892$as_echo "$ac_cv_header_stdc" >&6; } 3893if test $ac_cv_header_stdc = yes; then 3894 3895$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3896 3897fi 3898 3899# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3900for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3901 inttypes.h stdint.h unistd.h 3902do : 3903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3904ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3905" 3906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3907 cat >>confdefs.h <<_ACEOF 3908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3909_ACEOF 3910 3911fi 3912 3913done 3914 3915 3916 3917 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3918if test "x$ac_cv_header_minix_config_h" = xyes; then : 3919 MINIX=yes 3920else 3921 MINIX= 3922fi 3923 3924 3925 if test "$MINIX" = yes; then 3926 3927$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3928 3929 3930$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3931 3932 3933$as_echo "#define _MINIX 1" >>confdefs.h 3934 3935 fi 3936 3937 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3939$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3940if ${ac_cv_safe_to_define___extensions__+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3944/* end confdefs.h. */ 3945 3946# define __EXTENSIONS__ 1 3947 $ac_includes_default 3948int 3949main () 3950{ 3951 3952 ; 3953 return 0; 3954} 3955_ACEOF 3956if ac_fn_c_try_compile "$LINENO"; then : 3957 ac_cv_safe_to_define___extensions__=yes 3958else 3959 ac_cv_safe_to_define___extensions__=no 3960fi 3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3964$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3965 test $ac_cv_safe_to_define___extensions__ = yes && 3966 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3967 3968 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3969 3970 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3971 3972 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3973 3974 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3975 3976 3977 3978ac_aux_dir= 3979for ac_dir in build-scripts "$srcdir"/build-scripts; do 3980 if test -f "$ac_dir/install-sh"; then 3981 ac_aux_dir=$ac_dir 3982 ac_install_sh="$ac_aux_dir/install-sh -c" 3983 break 3984 elif test -f "$ac_dir/install.sh"; then 3985 ac_aux_dir=$ac_dir 3986 ac_install_sh="$ac_aux_dir/install.sh -c" 3987 break 3988 elif test -f "$ac_dir/shtool"; then 3989 ac_aux_dir=$ac_dir 3990 ac_install_sh="$ac_aux_dir/shtool install -c" 3991 break 3992 fi 3993done 3994if test -z "$ac_aux_dir"; then 3995 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5 3996fi 3997 3998# These three variables are undocumented and unsupported, 3999# and are intended to be withdrawn in a future Autoconf release. 4000# They can cause serious problems if a builder's source tree is in a directory 4001# whose full name contains unusual characters. 4002ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4003ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4004ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4005 4006 4007 4008# 4009# Making releases: 4010# Edit include/SDL/SDL_version.h and change the version, then: 4011# SDL_MICRO_VERSION += 1; 4012# SDL_INTERFACE_AGE += 1; 4013# SDL_BINARY_AGE += 1; 4014# if any functions have been added, set SDL_INTERFACE_AGE to 0. 4015# if backwards compatibility has been broken, 4016# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. 4017# 4018SDL_MAJOR_VERSION=1 4019SDL_MINOR_VERSION=2 4020SDL_MICRO_VERSION=14 4021SDL_INTERFACE_AGE=3 4022SDL_BINARY_AGE=14 4023SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION 4024 4025 4026 4027 4028 4029 4030 4031 4032# libtool versioning 4033case `pwd` in 4034 *\ * | *\ *) 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4036$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4037esac 4038 4039 4040 4041macro_version='2.4' 4042macro_revision='1.3294' 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056ltmain="$ac_aux_dir/ltmain.sh" 4057 4058# Make sure we can run config.sub. 4059$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4060 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4061 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4063$as_echo_n "checking build system type... " >&6; } 4064if ${ac_cv_build+:} false; then : 4065 $as_echo_n "(cached) " >&6 4066else 4067 ac_build_alias=$build_alias 4068test "x$ac_build_alias" = x && 4069 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4070test "x$ac_build_alias" = x && 4071 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4072ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4073 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4074 4075fi 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4077$as_echo "$ac_cv_build" >&6; } 4078case $ac_cv_build in 4079*-*-*) ;; 4080*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 4081esac 4082build=$ac_cv_build 4083ac_save_IFS=$IFS; IFS='-' 4084set x $ac_cv_build 4085shift 4086build_cpu=$1 4087build_vendor=$2 4088shift; shift 4089# Remember, the first character of IFS is used to create $*, 4090# except with old shells: 4091build_os=$* 4092IFS=$ac_save_IFS 4093case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4094 4095 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4097$as_echo_n "checking host system type... " >&6; } 4098if ${ac_cv_host+:} false; then : 4099 $as_echo_n "(cached) " >&6 4100else 4101 if test "x$host_alias" = x; then 4102 ac_cv_host=$ac_cv_build 4103else 4104 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4106fi 4107 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4110$as_echo "$ac_cv_host" >&6; } 4111case $ac_cv_host in 4112*-*-*) ;; 4113*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 4114esac 4115host=$ac_cv_host 4116ac_save_IFS=$IFS; IFS='-' 4117set x $ac_cv_host 4118shift 4119host_cpu=$1 4120host_vendor=$2 4121shift; shift 4122# Remember, the first character of IFS is used to create $*, 4123# except with old shells: 4124host_os=$* 4125IFS=$ac_save_IFS 4126case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4127 4128 4129# Backslashify metacharacters that are still active within 4130# double-quoted strings. 4131sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4132 4133# Same as above, but do not quote variable references. 4134double_quote_subst='s/\(["`\\]\)/\\\1/g' 4135 4136# Sed substitution to delay expansion of an escaped shell variable in a 4137# double_quote_subst'ed string. 4138delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4139 4140# Sed substitution to delay expansion of an escaped single quote. 4141delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4142 4143# Sed substitution to avoid accidental globbing in evaled expressions 4144no_glob_subst='s/\*/\\\*/g' 4145 4146ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4147ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4148ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4149 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4151$as_echo_n "checking how to print strings... " >&6; } 4152# Test print first, because it will be a builtin if present. 4153if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4154 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4155 ECHO='print -r --' 4156elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4157 ECHO='printf %s\n' 4158else 4159 # Use this function as a fallback that always works. 4160 func_fallback_echo () 4161 { 4162 eval 'cat <<_LTECHO_EOF 4163$1 4164_LTECHO_EOF' 4165 } 4166 ECHO='func_fallback_echo' 4167fi 4168 4169# func_echo_all arg... 4170# Invoke $ECHO with all args, space-separated. 4171func_echo_all () 4172{ 4173 $ECHO "" 4174} 4175 4176case "$ECHO" in 4177 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4178$as_echo "printf" >&6; } ;; 4179 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4180$as_echo "print -r" >&6; } ;; 4181 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4182$as_echo "cat" >&6; } ;; 4183esac 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4199$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4200if ${ac_cv_path_SED+:} false; then : 4201 $as_echo_n "(cached) " >&6 4202else 4203 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4204 for ac_i in 1 2 3 4 5 6 7; do 4205 ac_script="$ac_script$as_nl$ac_script" 4206 done 4207 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4208 { ac_script=; unset ac_script;} 4209 if test -z "$SED"; then 4210 ac_path_SED_found=false 4211 # Loop through the user's path and test for each of PROGNAME-LIST 4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4213for as_dir in $PATH 4214do 4215 IFS=$as_save_IFS 4216 test -z "$as_dir" && as_dir=. 4217 for ac_prog in sed gsed; do 4218 for ac_exec_ext in '' $ac_executable_extensions; do 4219 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4220 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4221# Check for GNU ac_path_SED and select it if it is found. 4222 # Check for GNU $ac_path_SED 4223case `"$ac_path_SED" --version 2>&1` in 4224*GNU*) 4225 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4226*) 4227 ac_count=0 4228 $as_echo_n 0123456789 >"conftest.in" 4229 while : 4230 do 4231 cat "conftest.in" "conftest.in" >"conftest.tmp" 4232 mv "conftest.tmp" "conftest.in" 4233 cp "conftest.in" "conftest.nl" 4234 $as_echo '' >> "conftest.nl" 4235 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4237 as_fn_arith $ac_count + 1 && ac_count=$as_val 4238 if test $ac_count -gt ${ac_path_SED_max-0}; then 4239 # Best one so far, save it but keep looking for a better one 4240 ac_cv_path_SED="$ac_path_SED" 4241 ac_path_SED_max=$ac_count 4242 fi 4243 # 10*(2^10) chars as input seems more than enough 4244 test $ac_count -gt 10 && break 4245 done 4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4247esac 4248 4249 $ac_path_SED_found && break 3 4250 done 4251 done 4252 done 4253IFS=$as_save_IFS 4254 if test -z "$ac_cv_path_SED"; then 4255 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4256 fi 4257else 4258 ac_cv_path_SED=$SED 4259fi 4260 4261fi 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4263$as_echo "$ac_cv_path_SED" >&6; } 4264 SED="$ac_cv_path_SED" 4265 rm -f conftest.sed 4266 4267test -z "$SED" && SED=sed 4268Xsed="$SED -e 1s/^X//" 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4281$as_echo_n "checking for fgrep... " >&6; } 4282if ${ac_cv_path_FGREP+:} false; then : 4283 $as_echo_n "(cached) " >&6 4284else 4285 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4286 then ac_cv_path_FGREP="$GREP -F" 4287 else 4288 if test -z "$FGREP"; then 4289 ac_path_FGREP_found=false 4290 # Loop through the user's path and test for each of PROGNAME-LIST 4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4293do 4294 IFS=$as_save_IFS 4295 test -z "$as_dir" && as_dir=. 4296 for ac_prog in fgrep; do 4297 for ac_exec_ext in '' $ac_executable_extensions; do 4298 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4299 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4300# Check for GNU ac_path_FGREP and select it if it is found. 4301 # Check for GNU $ac_path_FGREP 4302case `"$ac_path_FGREP" --version 2>&1` in 4303*GNU*) 4304 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4305*) 4306 ac_count=0 4307 $as_echo_n 0123456789 >"conftest.in" 4308 while : 4309 do 4310 cat "conftest.in" "conftest.in" >"conftest.tmp" 4311 mv "conftest.tmp" "conftest.in" 4312 cp "conftest.in" "conftest.nl" 4313 $as_echo 'FGREP' >> "conftest.nl" 4314 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4316 as_fn_arith $ac_count + 1 && ac_count=$as_val 4317 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4318 # Best one so far, save it but keep looking for a better one 4319 ac_cv_path_FGREP="$ac_path_FGREP" 4320 ac_path_FGREP_max=$ac_count 4321 fi 4322 # 10*(2^10) chars as input seems more than enough 4323 test $ac_count -gt 10 && break 4324 done 4325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4326esac 4327 4328 $ac_path_FGREP_found && break 3 4329 done 4330 done 4331 done 4332IFS=$as_save_IFS 4333 if test -z "$ac_cv_path_FGREP"; then 4334 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4335 fi 4336else 4337 ac_cv_path_FGREP=$FGREP 4338fi 4339 4340 fi 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4343$as_echo "$ac_cv_path_FGREP" >&6; } 4344 FGREP="$ac_cv_path_FGREP" 4345 4346 4347test -z "$GREP" && GREP=grep 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367# Check whether --with-gnu-ld was given. 4368if test "${with_gnu_ld+set}" = set; then : 4369 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4370else 4371 with_gnu_ld=no 4372fi 4373 4374ac_prog=ld 4375if test "$GCC" = yes; then 4376 # Check if gcc -print-prog-name=ld gives a path. 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4378$as_echo_n "checking for ld used by $CC... " >&6; } 4379 case $host in 4380 *-*-mingw*) 4381 # gcc leaves a trailing carriage return which upsets mingw 4382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4383 *) 4384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4385 esac 4386 case $ac_prog in 4387 # Accept absolute paths. 4388 [\\/]* | ?:[\\/]*) 4389 re_direlt='/[^/][^/]*/\.\./' 4390 # Canonicalize the pathname of ld 4391 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4392 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4393 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4394 done 4395 test -z "$LD" && LD="$ac_prog" 4396 ;; 4397 "") 4398 # If it fails, then pretend we aren't using GCC. 4399 ac_prog=ld 4400 ;; 4401 *) 4402 # If it is relative, then search for the first ld in PATH. 4403 with_gnu_ld=unknown 4404 ;; 4405 esac 4406elif test "$with_gnu_ld" = yes; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4408$as_echo_n "checking for GNU ld... " >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4411$as_echo_n "checking for non-GNU ld... " >&6; } 4412fi 4413if ${lt_cv_path_LD+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 if test -z "$LD"; then 4417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4418 for ac_dir in $PATH; do 4419 IFS="$lt_save_ifs" 4420 test -z "$ac_dir" && ac_dir=. 4421 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4422 lt_cv_path_LD="$ac_dir/$ac_prog" 4423 # Check to see if the program is GNU ld. I'd rather use --version, 4424 # but apparently some variants of GNU ld only accept -v. 4425 # Break only if it was the GNU/non-GNU ld that we prefer. 4426 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4427 *GNU* | *'with BFD'*) 4428 test "$with_gnu_ld" != no && break 4429 ;; 4430 *) 4431 test "$with_gnu_ld" != yes && break 4432 ;; 4433 esac 4434 fi 4435 done 4436 IFS="$lt_save_ifs" 4437else 4438 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4439fi 4440fi 4441 4442LD="$lt_cv_path_LD" 4443if test -n "$LD"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4445$as_echo "$LD" >&6; } 4446else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448$as_echo "no" >&6; } 4449fi 4450test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4452$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4453if ${lt_cv_prog_gnu_ld+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4457case `$LD -v 2>&1 </dev/null` in 4458*GNU* | *'with BFD'*) 4459 lt_cv_prog_gnu_ld=yes 4460 ;; 4461*) 4462 lt_cv_prog_gnu_ld=no 4463 ;; 4464esac 4465fi 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4467$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4468with_gnu_ld=$lt_cv_prog_gnu_ld 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4479$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4480if ${lt_cv_path_NM+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482else 4483 if test -n "$NM"; then 4484 # Let the user override the test. 4485 lt_cv_path_NM="$NM" 4486else 4487 lt_nm_to_check="${ac_tool_prefix}nm" 4488 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4489 lt_nm_to_check="$lt_nm_to_check nm" 4490 fi 4491 for lt_tmp_nm in $lt_nm_to_check; do 4492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4493 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4494 IFS="$lt_save_ifs" 4495 test -z "$ac_dir" && ac_dir=. 4496 tmp_nm="$ac_dir/$lt_tmp_nm" 4497 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4498 # Check to see if the nm accepts a BSD-compat flag. 4499 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4500 # nm: unknown option "B" ignored 4501 # Tru64's nm complains that /dev/null is an invalid object file 4502 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4503 */dev/null* | *'Invalid file or object type'*) 4504 lt_cv_path_NM="$tmp_nm -B" 4505 break 4506 ;; 4507 *) 4508 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4509 */dev/null*) 4510 lt_cv_path_NM="$tmp_nm -p" 4511 break 4512 ;; 4513 *) 4514 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4515 continue # so that we can try to find one that supports BSD flags 4516 ;; 4517 esac 4518 ;; 4519 esac 4520 fi 4521 done 4522 IFS="$lt_save_ifs" 4523 done 4524 : ${lt_cv_path_NM=no} 4525fi 4526fi 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4528$as_echo "$lt_cv_path_NM" >&6; } 4529if test "$lt_cv_path_NM" != "no"; then 4530 NM="$lt_cv_path_NM" 4531else 4532 # Didn't find any BSD compatible name lister, look for dumpbin. 4533 if test -n "$DUMPBIN"; then : 4534 # Let the user override the test. 4535 else 4536 if test -n "$ac_tool_prefix"; then 4537 for ac_prog in dumpbin "link -dump" 4538 do 4539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4540set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4542$as_echo_n "checking for $ac_word... " >&6; } 4543if ${ac_cv_prog_DUMPBIN+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if test -n "$DUMPBIN"; then 4547 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4548else 4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550for as_dir in $PATH 4551do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4556 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560done 4561 done 4562IFS=$as_save_IFS 4563 4564fi 4565fi 4566DUMPBIN=$ac_cv_prog_DUMPBIN 4567if test -n "$DUMPBIN"; then 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4569$as_echo "$DUMPBIN" >&6; } 4570else 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4572$as_echo "no" >&6; } 4573fi 4574 4575 4576 test -n "$DUMPBIN" && break 4577 done 4578fi 4579if test -z "$DUMPBIN"; then 4580 ac_ct_DUMPBIN=$DUMPBIN 4581 for ac_prog in dumpbin "link -dump" 4582do 4583 # Extract the first word of "$ac_prog", so it can be a program name with args. 4584set dummy $ac_prog; ac_word=$2 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586$as_echo_n "checking for $ac_word... " >&6; } 4587if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 if test -n "$ac_ct_DUMPBIN"; then 4591 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4592else 4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_exec_ext in '' $ac_executable_extensions; do 4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4600 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4602 break 2 4603 fi 4604done 4605 done 4606IFS=$as_save_IFS 4607 4608fi 4609fi 4610ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4611if test -n "$ac_ct_DUMPBIN"; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4613$as_echo "$ac_ct_DUMPBIN" >&6; } 4614else 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4616$as_echo "no" >&6; } 4617fi 4618 4619 4620 test -n "$ac_ct_DUMPBIN" && break 4621done 4622 4623 if test "x$ac_ct_DUMPBIN" = x; then 4624 DUMPBIN=":" 4625 else 4626 case $cross_compiling:$ac_tool_warned in 4627yes:) 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4630ac_tool_warned=yes ;; 4631esac 4632 DUMPBIN=$ac_ct_DUMPBIN 4633 fi 4634fi 4635 4636 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4637 *COFF*) 4638 DUMPBIN="$DUMPBIN -symbols" 4639 ;; 4640 *) 4641 DUMPBIN=: 4642 ;; 4643 esac 4644 fi 4645 4646 if test "$DUMPBIN" != ":"; then 4647 NM="$DUMPBIN" 4648 fi 4649fi 4650test -z "$NM" && NM=nm 4651 4652 4653 4654 4655 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4658$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4659if ${lt_cv_nm_interface+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 lt_cv_nm_interface="BSD nm" 4663 echo "int some_variable = 0;" > conftest.$ac_ext 4664 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4665 (eval "$ac_compile" 2>conftest.err) 4666 cat conftest.err >&5 4667 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4668 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4669 cat conftest.err >&5 4670 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4671 cat conftest.out >&5 4672 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4673 lt_cv_nm_interface="MS dumpbin" 4674 fi 4675 rm -f conftest* 4676fi 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4678$as_echo "$lt_cv_nm_interface" >&6; } 4679 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4681$as_echo_n "checking whether ln -s works... " >&6; } 4682LN_S=$as_ln_s 4683if test "$LN_S" = "ln -s"; then 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4685$as_echo "yes" >&6; } 4686else 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4688$as_echo "no, using $LN_S" >&6; } 4689fi 4690 4691# find the maximum length of command line arguments 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4693$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4694if ${lt_cv_sys_max_cmd_len+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 i=0 4698 teststring="ABCD" 4699 4700 case $build_os in 4701 msdosdjgpp*) 4702 # On DJGPP, this test can blow up pretty badly due to problems in libc 4703 # (any single argument exceeding 2000 bytes causes a buffer overrun 4704 # during glob expansion). Even if it were fixed, the result of this 4705 # check would be larger than it should be. 4706 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4707 ;; 4708 4709 gnu*) 4710 # Under GNU Hurd, this test is not required because there is 4711 # no limit to the length of command line arguments. 4712 # Libtool will interpret -1 as no limit whatsoever 4713 lt_cv_sys_max_cmd_len=-1; 4714 ;; 4715 4716 cygwin* | mingw* | cegcc*) 4717 # On Win9x/ME, this test blows up -- it succeeds, but takes 4718 # about 5 minutes as the teststring grows exponentially. 4719 # Worse, since 9x/ME are not pre-emptively multitasking, 4720 # you end up with a "frozen" computer, even though with patience 4721 # the test eventually succeeds (with a max line length of 256k). 4722 # Instead, let's just punt: use the minimum linelength reported by 4723 # all of the supported platforms: 8192 (on NT/2K/XP). 4724 lt_cv_sys_max_cmd_len=8192; 4725 ;; 4726 4727 mint*) 4728 # On MiNT this can take a long time and run out of memory. 4729 lt_cv_sys_max_cmd_len=8192; 4730 ;; 4731 4732 amigaos*) 4733 # On AmigaOS with pdksh, this test takes hours, literally. 4734 # So we just punt and use a minimum line length of 8192. 4735 lt_cv_sys_max_cmd_len=8192; 4736 ;; 4737 4738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4739 # This has been around since 386BSD, at least. Likely further. 4740 if test -x /sbin/sysctl; then 4741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4742 elif test -x /usr/sbin/sysctl; then 4743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4744 else 4745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4746 fi 4747 # And add a safety zone 4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4750 ;; 4751 4752 interix*) 4753 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4754 lt_cv_sys_max_cmd_len=196608 4755 ;; 4756 4757 osf*) 4758 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4759 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4760 # nice to cause kernel panics so lets avoid the loop below. 4761 # First set a reasonable default. 4762 lt_cv_sys_max_cmd_len=16384 4763 # 4764 if test -x /sbin/sysconfig; then 4765 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4766 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4767 esac 4768 fi 4769 ;; 4770 sco3.2v5*) 4771 lt_cv_sys_max_cmd_len=102400 4772 ;; 4773 sysv5* | sco5v6* | sysv4.2uw2*) 4774 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4775 if test -n "$kargmax"; then 4776 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4777 else 4778 lt_cv_sys_max_cmd_len=32768 4779 fi 4780 ;; 4781 *) 4782 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4783 if test -n "$lt_cv_sys_max_cmd_len"; then 4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4786 else 4787 # Make teststring a little bigger before we do anything with it. 4788 # a 1K string should be a reasonable start. 4789 for i in 1 2 3 4 5 6 7 8 ; do 4790 teststring=$teststring$teststring 4791 done 4792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4793 # If test is not a shell built-in, we'll probably end up computing a 4794 # maximum length that is only half of the actual maximum length, but 4795 # we can't tell. 4796 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4797 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4798 test $i != 17 # 1/2 MB should be enough 4799 do 4800 i=`expr $i + 1` 4801 teststring=$teststring$teststring 4802 done 4803 # Only check the string length outside the loop. 4804 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4805 teststring= 4806 # Add a significant safety factor because C++ compilers can tack on 4807 # massive amounts of additional arguments before passing them to the 4808 # linker. It appears as though 1/2 is a usable value. 4809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4810 fi 4811 ;; 4812 esac 4813 4814fi 4815 4816if test -n $lt_cv_sys_max_cmd_len ; then 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4818$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4819else 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4821$as_echo "none" >&6; } 4822fi 4823max_cmd_len=$lt_cv_sys_max_cmd_len 4824 4825 4826 4827 4828 4829 4830: ${CP="cp -f"} 4831: ${MV="mv -f"} 4832: ${RM="rm -f"} 4833 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4835$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4836# Try some XSI features 4837xsi_shell=no 4838( _lt_dummy="a/b/c" 4839 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4840 = c,a/b,b/c, \ 4841 && eval 'test $(( 1 + 1 )) -eq 2 \ 4842 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4843 && xsi_shell=yes 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4845$as_echo "$xsi_shell" >&6; } 4846 4847 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4849$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4850lt_shell_append=no 4851( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4852 >/dev/null 2>&1 \ 4853 && lt_shell_append=yes 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4855$as_echo "$lt_shell_append" >&6; } 4856 4857 4858if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4859 lt_unset=unset 4860else 4861 lt_unset=false 4862fi 4863 4864 4865 4866 4867 4868# test EBCDIC or ASCII 4869case `echo X|tr X '\101'` in 4870 A) # ASCII based system 4871 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4872 lt_SP2NL='tr \040 \012' 4873 lt_NL2SP='tr \015\012 \040\040' 4874 ;; 4875 *) # EBCDIC based system 4876 lt_SP2NL='tr \100 \n' 4877 lt_NL2SP='tr \r\n \100\100' 4878 ;; 4879esac 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4890$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4891if ${lt_cv_to_host_file_cmd+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 case $host in 4895 *-*-mingw* ) 4896 case $build in 4897 *-*-mingw* ) # actually msys 4898 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4899 ;; 4900 *-*-cygwin* ) 4901 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4902 ;; 4903 * ) # otherwise, assume *nix 4904 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4905 ;; 4906 esac 4907 ;; 4908 *-*-cygwin* ) 4909 case $build in 4910 *-*-mingw* ) # actually msys 4911 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4912 ;; 4913 *-*-cygwin* ) 4914 lt_cv_to_host_file_cmd=func_convert_file_noop 4915 ;; 4916 * ) # otherwise, assume *nix 4917 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4918 ;; 4919 esac 4920 ;; 4921 * ) # unhandled hosts (and "normal" native builds) 4922 lt_cv_to_host_file_cmd=func_convert_file_noop 4923 ;; 4924esac 4925 4926fi 4927 4928to_host_file_cmd=$lt_cv_to_host_file_cmd 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4930$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4931 4932 4933 4934 4935 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4937$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4938if ${lt_cv_to_tool_file_cmd+:} false; then : 4939 $as_echo_n "(cached) " >&6 4940else 4941 #assume ordinary cross tools, or native build. 4942lt_cv_to_tool_file_cmd=func_convert_file_noop 4943case $host in 4944 *-*-mingw* ) 4945 case $build in 4946 *-*-mingw* ) # actually msys 4947 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4948 ;; 4949 esac 4950 ;; 4951esac 4952 4953fi 4954 4955to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4957$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4958 4959 4960 4961 4962 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4964$as_echo_n "checking for $LD option to reload object files... " >&6; } 4965if ${lt_cv_ld_reload_flag+:} false; then : 4966 $as_echo_n "(cached) " >&6 4967else 4968 lt_cv_ld_reload_flag='-r' 4969fi 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4971$as_echo "$lt_cv_ld_reload_flag" >&6; } 4972reload_flag=$lt_cv_ld_reload_flag 4973case $reload_flag in 4974"" | " "*) ;; 4975*) reload_flag=" $reload_flag" ;; 4976esac 4977reload_cmds='$LD$reload_flag -o $output$reload_objs' 4978case $host_os in 4979 cygwin* | mingw* | pw32* | cegcc*) 4980 if test "$GCC" != yes; then 4981 reload_cmds=false 4982 fi 4983 ;; 4984 darwin*) 4985 if test "$GCC" = yes; then 4986 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4987 else 4988 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4989 fi 4990 ;; 4991esac 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001if test -n "$ac_tool_prefix"; then 5002 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5003set dummy ${ac_tool_prefix}objdump; ac_word=$2 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5005$as_echo_n "checking for $ac_word... " >&6; } 5006if ${ac_cv_prog_OBJDUMP+:} false; then : 5007 $as_echo_n "(cached) " >&6 5008else 5009 if test -n "$OBJDUMP"; then 5010 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5011else 5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5013for as_dir in $PATH 5014do 5015 IFS=$as_save_IFS 5016 test -z "$as_dir" && as_dir=. 5017 for ac_exec_ext in '' $ac_executable_extensions; do 5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5019 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5021 break 2 5022 fi 5023done 5024 done 5025IFS=$as_save_IFS 5026 5027fi 5028fi 5029OBJDUMP=$ac_cv_prog_OBJDUMP 5030if test -n "$OBJDUMP"; then 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5032$as_echo "$OBJDUMP" >&6; } 5033else 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5035$as_echo "no" >&6; } 5036fi 5037 5038 5039fi 5040if test -z "$ac_cv_prog_OBJDUMP"; then 5041 ac_ct_OBJDUMP=$OBJDUMP 5042 # Extract the first word of "objdump", so it can be a program name with args. 5043set dummy objdump; ac_word=$2 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5045$as_echo_n "checking for $ac_word... " >&6; } 5046if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5047 $as_echo_n "(cached) " >&6 5048else 5049 if test -n "$ac_ct_OBJDUMP"; then 5050 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5051else 5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5053for as_dir in $PATH 5054do 5055 IFS=$as_save_IFS 5056 test -z "$as_dir" && as_dir=. 5057 for ac_exec_ext in '' $ac_executable_extensions; do 5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5059 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5061 break 2 5062 fi 5063done 5064 done 5065IFS=$as_save_IFS 5066 5067fi 5068fi 5069ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5070if test -n "$ac_ct_OBJDUMP"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5072$as_echo "$ac_ct_OBJDUMP" >&6; } 5073else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5075$as_echo "no" >&6; } 5076fi 5077 5078 if test "x$ac_ct_OBJDUMP" = x; then 5079 OBJDUMP="false" 5080 else 5081 case $cross_compiling:$ac_tool_warned in 5082yes:) 5083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5085ac_tool_warned=yes ;; 5086esac 5087 OBJDUMP=$ac_ct_OBJDUMP 5088 fi 5089else 5090 OBJDUMP="$ac_cv_prog_OBJDUMP" 5091fi 5092 5093test -z "$OBJDUMP" && OBJDUMP=objdump 5094 5095 5096 5097 5098 5099 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5101$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5102if ${lt_cv_deplibs_check_method+:} false; then : 5103 $as_echo_n "(cached) " >&6 5104else 5105 lt_cv_file_magic_cmd='$MAGIC_CMD' 5106lt_cv_file_magic_test_file= 5107lt_cv_deplibs_check_method='unknown' 5108# Need to set the preceding variable on all platforms that support 5109# interlibrary dependencies. 5110# 'none' -- dependencies not supported. 5111# `unknown' -- same as none, but documents that we really don't know. 5112# 'pass_all' -- all dependencies passed with no checks. 5113# 'test_compile' -- check by making test program. 5114# 'file_magic [[regex]]' -- check by looking for files in library path 5115# which responds to the $file_magic_cmd with a given extended regex. 5116# If you have `file' or equivalent on your system and you're not sure 5117# whether `pass_all' will *always* work, you probably want this one. 5118 5119case $host_os in 5120aix[4-9]*) 5121 lt_cv_deplibs_check_method=pass_all 5122 ;; 5123 5124beos*) 5125 lt_cv_deplibs_check_method=pass_all 5126 ;; 5127 5128bsdi[45]*) 5129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5130 lt_cv_file_magic_cmd='/usr/bin/file -L' 5131 lt_cv_file_magic_test_file=/shlib/libc.so 5132 ;; 5133 5134cygwin*) 5135 # func_win32_libid is a shell function defined in ltmain.sh 5136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5137 lt_cv_file_magic_cmd='func_win32_libid' 5138 ;; 5139 5140mingw* | pw32*) 5141 # Base MSYS/MinGW do not provide the 'file' command needed by 5142 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5143 # unless we find 'file', for example because we are cross-compiling. 5144 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5145 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5146 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5147 lt_cv_file_magic_cmd='func_win32_libid' 5148 else 5149 # Keep this pattern in sync with the one in func_win32_libid. 5150 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5151 lt_cv_file_magic_cmd='$OBJDUMP -f' 5152 fi 5153 ;; 5154 5155cegcc*) 5156 # use the weaker test based on 'objdump'. See mingw*. 5157 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5158 lt_cv_file_magic_cmd='$OBJDUMP -f' 5159 ;; 5160 5161darwin* | rhapsody*) 5162 lt_cv_deplibs_check_method=pass_all 5163 ;; 5164 5165freebsd* | dragonfly*) 5166 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5167 case $host_cpu in 5168 i*86 ) 5169 # Not sure whether the presence of OpenBSD here was a mistake. 5170 # Let's accept both of them until this is cleared up. 5171 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5172 lt_cv_file_magic_cmd=/usr/bin/file 5173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5174 ;; 5175 esac 5176 else 5177 lt_cv_deplibs_check_method=pass_all 5178 fi 5179 ;; 5180 5181gnu*) 5182 lt_cv_deplibs_check_method=pass_all 5183 ;; 5184 5185haiku*) 5186 lt_cv_deplibs_check_method=pass_all 5187 ;; 5188 5189hpux10.20* | hpux11*) 5190 lt_cv_file_magic_cmd=/usr/bin/file 5191 case $host_cpu in 5192 ia64*) 5193 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5194 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5195 ;; 5196 hppa*64*) 5197 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]' 5198 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5199 ;; 5200 *) 5201 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5202 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5203 ;; 5204 esac 5205 ;; 5206 5207interix[3-9]*) 5208 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5210 ;; 5211 5212irix5* | irix6* | nonstopux*) 5213 case $LD in 5214 *-32|*"-32 ") libmagic=32-bit;; 5215 *-n32|*"-n32 ") libmagic=N32;; 5216 *-64|*"-64 ") libmagic=64-bit;; 5217 *) libmagic=never-match;; 5218 esac 5219 lt_cv_deplibs_check_method=pass_all 5220 ;; 5221 5222# This must be Linux ELF. 5223linux* | k*bsd*-gnu | kopensolaris*-gnu) 5224 lt_cv_deplibs_check_method=pass_all 5225 ;; 5226 5227netbsd*) 5228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5230 else 5231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5232 fi 5233 ;; 5234 5235newos6*) 5236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5237 lt_cv_file_magic_cmd=/usr/bin/file 5238 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5239 ;; 5240 5241*nto* | *qnx*) 5242 lt_cv_deplibs_check_method=pass_all 5243 ;; 5244 5245openbsd*) 5246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5248 else 5249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5250 fi 5251 ;; 5252 5253osf3* | osf4* | osf5*) 5254 lt_cv_deplibs_check_method=pass_all 5255 ;; 5256 5257rdos*) 5258 lt_cv_deplibs_check_method=pass_all 5259 ;; 5260 5261solaris*) 5262 lt_cv_deplibs_check_method=pass_all 5263 ;; 5264 5265sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5266 lt_cv_deplibs_check_method=pass_all 5267 ;; 5268 5269sysv4 | sysv4.3*) 5270 case $host_vendor in 5271 motorola) 5272 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]' 5273 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5274 ;; 5275 ncr) 5276 lt_cv_deplibs_check_method=pass_all 5277 ;; 5278 sequent) 5279 lt_cv_file_magic_cmd='/bin/file' 5280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5281 ;; 5282 sni) 5283 lt_cv_file_magic_cmd='/bin/file' 5284 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5285 lt_cv_file_magic_test_file=/lib/libc.so 5286 ;; 5287 siemens) 5288 lt_cv_deplibs_check_method=pass_all 5289 ;; 5290 pc) 5291 lt_cv_deplibs_check_method=pass_all 5292 ;; 5293 esac 5294 ;; 5295 5296tpf*) 5297 lt_cv_deplibs_check_method=pass_all 5298 ;; 5299esac 5300 5301fi 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5303$as_echo "$lt_cv_deplibs_check_method" >&6; } 5304 5305file_magic_glob= 5306want_nocaseglob=no 5307if test "$build" = "$host"; then 5308 case $host_os in 5309 mingw* | pw32*) 5310 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5311 want_nocaseglob=yes 5312 else 5313 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5314 fi 5315 ;; 5316 esac 5317fi 5318 5319file_magic_cmd=$lt_cv_file_magic_cmd 5320deplibs_check_method=$lt_cv_deplibs_check_method 5321test -z "$deplibs_check_method" && deplibs_check_method=unknown 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344if test -n "$ac_tool_prefix"; then 5345 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5346set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5348$as_echo_n "checking for $ac_word... " >&6; } 5349if ${ac_cv_prog_DLLTOOL+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 if test -n "$DLLTOOL"; then 5353 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5354else 5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $PATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5362 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370fi 5371fi 5372DLLTOOL=$ac_cv_prog_DLLTOOL 5373if test -n "$DLLTOOL"; then 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5375$as_echo "$DLLTOOL" >&6; } 5376else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379fi 5380 5381 5382fi 5383if test -z "$ac_cv_prog_DLLTOOL"; then 5384 ac_ct_DLLTOOL=$DLLTOOL 5385 # Extract the first word of "dlltool", so it can be a program name with args. 5386set dummy dlltool; ac_word=$2 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5388$as_echo_n "checking for $ac_word... " >&6; } 5389if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 if test -n "$ac_ct_DLLTOOL"; then 5393 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5394else 5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5396for as_dir in $PATH 5397do 5398 IFS=$as_save_IFS 5399 test -z "$as_dir" && as_dir=. 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5402 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5404 break 2 5405 fi 5406done 5407 done 5408IFS=$as_save_IFS 5409 5410fi 5411fi 5412ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5413if test -n "$ac_ct_DLLTOOL"; then 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5415$as_echo "$ac_ct_DLLTOOL" >&6; } 5416else 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5418$as_echo "no" >&6; } 5419fi 5420 5421 if test "x$ac_ct_DLLTOOL" = x; then 5422 DLLTOOL="false" 5423 else 5424 case $cross_compiling:$ac_tool_warned in 5425yes:) 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5428ac_tool_warned=yes ;; 5429esac 5430 DLLTOOL=$ac_ct_DLLTOOL 5431 fi 5432else 5433 DLLTOOL="$ac_cv_prog_DLLTOOL" 5434fi 5435 5436test -z "$DLLTOOL" && DLLTOOL=dlltool 5437 5438 5439 5440 5441 5442 5443 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5445$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5446if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 lt_cv_sharedlib_from_linklib_cmd='unknown' 5450 5451case $host_os in 5452cygwin* | mingw* | pw32* | cegcc*) 5453 # two different shell functions defined in ltmain.sh 5454 # decide which to use based on capabilities of $DLLTOOL 5455 case `$DLLTOOL --help 2>&1` in 5456 *--identify-strict*) 5457 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5458 ;; 5459 *) 5460 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5461 ;; 5462 esac 5463 ;; 5464*) 5465 # fallback: assume linklib IS sharedlib 5466 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5467 ;; 5468esac 5469 5470fi 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5472$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5473sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5474test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5475 5476 5477 5478 5479 5480 5481 5482if test -n "$ac_tool_prefix"; then 5483 for ac_prog in ar 5484 do 5485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5486set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5488$as_echo_n "checking for $ac_word... " >&6; } 5489if ${ac_cv_prog_AR+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 if test -n "$AR"; then 5493 ac_cv_prog_AR="$AR" # Let the user override the test. 5494else 5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5496for as_dir in $PATH 5497do 5498 IFS=$as_save_IFS 5499 test -z "$as_dir" && as_dir=. 5500 for ac_exec_ext in '' $ac_executable_extensions; do 5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5502 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5504 break 2 5505 fi 5506done 5507 done 5508IFS=$as_save_IFS 5509 5510fi 5511fi 5512AR=$ac_cv_prog_AR 5513if test -n "$AR"; then 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5515$as_echo "$AR" >&6; } 5516else 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5518$as_echo "no" >&6; } 5519fi 5520 5521 5522 test -n "$AR" && break 5523 done 5524fi 5525if test -z "$AR"; then 5526 ac_ct_AR=$AR 5527 for ac_prog in ar 5528do 5529 # Extract the first word of "$ac_prog", so it can be a program name with args. 5530set dummy $ac_prog; ac_word=$2 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5532$as_echo_n "checking for $ac_word... " >&6; } 5533if ${ac_cv_prog_ac_ct_AR+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 if test -n "$ac_ct_AR"; then 5537 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5538else 5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5540for as_dir in $PATH 5541do 5542 IFS=$as_save_IFS 5543 test -z "$as_dir" && as_dir=. 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5546 ac_cv_prog_ac_ct_AR="$ac_prog" 5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551 done 5552IFS=$as_save_IFS 5553 5554fi 5555fi 5556ac_ct_AR=$ac_cv_prog_ac_ct_AR 5557if test -n "$ac_ct_AR"; then 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5559$as_echo "$ac_ct_AR" >&6; } 5560else 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5562$as_echo "no" >&6; } 5563fi 5564 5565 5566 test -n "$ac_ct_AR" && break 5567done 5568 5569 if test "x$ac_ct_AR" = x; then 5570 AR="false" 5571 else 5572 case $cross_compiling:$ac_tool_warned in 5573yes:) 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5576ac_tool_warned=yes ;; 5577esac 5578 AR=$ac_ct_AR 5579 fi 5580fi 5581 5582: ${AR=ar} 5583: ${AR_FLAGS=cru} 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5596$as_echo_n "checking for archiver @FILE support... " >&6; } 5597if ${lt_cv_ar_at_file+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 lt_cv_ar_at_file=no 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603 5604int 5605main () 5606{ 5607 5608 ; 5609 return 0; 5610} 5611_ACEOF 5612if ac_fn_c_try_compile "$LINENO"; then : 5613 echo conftest.$ac_objext > conftest.lst 5614 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5616 (eval $lt_ar_try) 2>&5 5617 ac_status=$? 5618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5619 test $ac_status = 0; } 5620 if test "$ac_status" -eq 0; then 5621 # Ensure the archiver fails upon bogus file names. 5622 rm -f conftest.$ac_objext libconftest.a 5623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5624 (eval $lt_ar_try) 2>&5 5625 ac_status=$? 5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5627 test $ac_status = 0; } 5628 if test "$ac_status" -ne 0; then 5629 lt_cv_ar_at_file=@ 5630 fi 5631 fi 5632 rm -f conftest.* libconftest.a 5633 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5636 5637fi 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5639$as_echo "$lt_cv_ar_at_file" >&6; } 5640 5641if test "x$lt_cv_ar_at_file" = xno; then 5642 archiver_list_spec= 5643else 5644 archiver_list_spec=$lt_cv_ar_at_file 5645fi 5646 5647 5648 5649 5650 5651 5652 5653if test -n "$ac_tool_prefix"; then 5654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5655set dummy ${ac_tool_prefix}strip; ac_word=$2 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657$as_echo_n "checking for $ac_word... " >&6; } 5658if ${ac_cv_prog_STRIP+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 if test -n "$STRIP"; then 5662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5663else 5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5665for as_dir in $PATH 5666do 5667 IFS=$as_save_IFS 5668 test -z "$as_dir" && as_dir=. 5669 for ac_exec_ext in '' $ac_executable_extensions; do 5670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5671 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5673 break 2 5674 fi 5675done 5676 done 5677IFS=$as_save_IFS 5678 5679fi 5680fi 5681STRIP=$ac_cv_prog_STRIP 5682if test -n "$STRIP"; then 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5684$as_echo "$STRIP" >&6; } 5685else 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5687$as_echo "no" >&6; } 5688fi 5689 5690 5691fi 5692if test -z "$ac_cv_prog_STRIP"; then 5693 ac_ct_STRIP=$STRIP 5694 # Extract the first word of "strip", so it can be a program name with args. 5695set dummy strip; ac_word=$2 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5697$as_echo_n "checking for $ac_word... " >&6; } 5698if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5699 $as_echo_n "(cached) " >&6 5700else 5701 if test -n "$ac_ct_STRIP"; then 5702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5703else 5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5705for as_dir in $PATH 5706do 5707 IFS=$as_save_IFS 5708 test -z "$as_dir" && as_dir=. 5709 for ac_exec_ext in '' $ac_executable_extensions; do 5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5711 ac_cv_prog_ac_ct_STRIP="strip" 5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5713 break 2 5714 fi 5715done 5716 done 5717IFS=$as_save_IFS 5718 5719fi 5720fi 5721ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5722if test -n "$ac_ct_STRIP"; then 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5724$as_echo "$ac_ct_STRIP" >&6; } 5725else 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5727$as_echo "no" >&6; } 5728fi 5729 5730 if test "x$ac_ct_STRIP" = x; then 5731 STRIP=":" 5732 else 5733 case $cross_compiling:$ac_tool_warned in 5734yes:) 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5737ac_tool_warned=yes ;; 5738esac 5739 STRIP=$ac_ct_STRIP 5740 fi 5741else 5742 STRIP="$ac_cv_prog_STRIP" 5743fi 5744 5745test -z "$STRIP" && STRIP=: 5746 5747 5748 5749 5750 5751 5752if test -n "$ac_tool_prefix"; then 5753 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5754set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5756$as_echo_n "checking for $ac_word... " >&6; } 5757if ${ac_cv_prog_RANLIB+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 if test -n "$RANLIB"; then 5761 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5762else 5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764for as_dir in $PATH 5765do 5766 IFS=$as_save_IFS 5767 test -z "$as_dir" && as_dir=. 5768 for ac_exec_ext in '' $ac_executable_extensions; do 5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5772 break 2 5773 fi 5774done 5775 done 5776IFS=$as_save_IFS 5777 5778fi 5779fi 5780RANLIB=$ac_cv_prog_RANLIB 5781if test -n "$RANLIB"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5783$as_echo "$RANLIB" >&6; } 5784else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5786$as_echo "no" >&6; } 5787fi 5788 5789 5790fi 5791if test -z "$ac_cv_prog_RANLIB"; then 5792 ac_ct_RANLIB=$RANLIB 5793 # Extract the first word of "ranlib", so it can be a program name with args. 5794set dummy ranlib; ac_word=$2 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5796$as_echo_n "checking for $ac_word... " >&6; } 5797if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799else 5800 if test -n "$ac_ct_RANLIB"; then 5801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5802else 5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5804for as_dir in $PATH 5805do 5806 IFS=$as_save_IFS 5807 test -z "$as_dir" && as_dir=. 5808 for ac_exec_ext in '' $ac_executable_extensions; do 5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5810 ac_cv_prog_ac_ct_RANLIB="ranlib" 5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5812 break 2 5813 fi 5814done 5815 done 5816IFS=$as_save_IFS 5817 5818fi 5819fi 5820ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5821if test -n "$ac_ct_RANLIB"; then 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5823$as_echo "$ac_ct_RANLIB" >&6; } 5824else 5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5826$as_echo "no" >&6; } 5827fi 5828 5829 if test "x$ac_ct_RANLIB" = x; then 5830 RANLIB=":" 5831 else 5832 case $cross_compiling:$ac_tool_warned in 5833yes:) 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5836ac_tool_warned=yes ;; 5837esac 5838 RANLIB=$ac_ct_RANLIB 5839 fi 5840else 5841 RANLIB="$ac_cv_prog_RANLIB" 5842fi 5843 5844test -z "$RANLIB" && RANLIB=: 5845 5846 5847 5848 5849 5850 5851# Determine commands to create old-style static archives. 5852old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5853old_postinstall_cmds='chmod 644 $oldlib' 5854old_postuninstall_cmds= 5855 5856if test -n "$RANLIB"; then 5857 case $host_os in 5858 openbsd*) 5859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5860 ;; 5861 *) 5862 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5863 ;; 5864 esac 5865 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5866fi 5867 5868case $host_os in 5869 darwin*) 5870 lock_old_archive_extraction=yes ;; 5871 *) 5872 lock_old_archive_extraction=no ;; 5873esac 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895for ac_prog in gawk mawk nawk awk 5896do 5897 # Extract the first word of "$ac_prog", so it can be a program name with args. 5898set dummy $ac_prog; ac_word=$2 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900$as_echo_n "checking for $ac_word... " >&6; } 5901if ${ac_cv_prog_AWK+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 if test -n "$AWK"; then 5905 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5906else 5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908for as_dir in $PATH 5909do 5910 IFS=$as_save_IFS 5911 test -z "$as_dir" && as_dir=. 5912 for ac_exec_ext in '' $ac_executable_extensions; do 5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5914 ac_cv_prog_AWK="$ac_prog" 5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5916 break 2 5917 fi 5918done 5919 done 5920IFS=$as_save_IFS 5921 5922fi 5923fi 5924AWK=$ac_cv_prog_AWK 5925if test -n "$AWK"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5927$as_echo "$AWK" >&6; } 5928else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931fi 5932 5933 5934 test -n "$AWK" && break 5935done 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955# If no C compiler was specified, use CC. 5956LTCC=${LTCC-"$CC"} 5957 5958# If no C compiler flags were specified, use CFLAGS. 5959LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5960 5961# Allow CC to be a program name with arguments. 5962compiler=$CC 5963 5964 5965# Check for command to grab the raw symbol name followed by C symbol from nm. 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5967$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5968if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 5972# These are sane defaults that work on at least a few old systems. 5973# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5974 5975# Character class describing NM global symbol codes. 5976symcode='[BCDEGRST]' 5977 5978# Regexp to match symbols that can be accessed directly from C. 5979sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5980 5981# Define system-specific variables. 5982case $host_os in 5983aix*) 5984 symcode='[BCDT]' 5985 ;; 5986cygwin* | mingw* | pw32* | cegcc*) 5987 symcode='[ABCDGISTW]' 5988 ;; 5989hpux*) 5990 if test "$host_cpu" = ia64; then 5991 symcode='[ABCDEGRST]' 5992 fi 5993 ;; 5994irix* | nonstopux*) 5995 symcode='[BCDEGRST]' 5996 ;; 5997osf*) 5998 symcode='[BCDEGQRST]' 5999 ;; 6000solaris*) 6001 symcode='[BDRT]' 6002 ;; 6003sco3.2v5*) 6004 symcode='[DT]' 6005 ;; 6006sysv4.2uw2*) 6007 symcode='[DT]' 6008 ;; 6009sysv5* | sco5v6* | unixware* | OpenUNIX*) 6010 symcode='[ABDT]' 6011 ;; 6012sysv4) 6013 symcode='[DFNSTU]' 6014 ;; 6015esac 6016 6017# If we're using GNU nm, then use its standard symbol codes. 6018case `$NM -V 2>&1` in 6019*GNU* | *'with BFD'*) 6020 symcode='[ABCDGIRSTW]' ;; 6021esac 6022 6023# Transform an extracted symbol line into a proper C declaration. 6024# Some systems (esp. on ia64) link data and code symbols differently, 6025# so use this general approach. 6026lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6027 6028# Transform an extracted symbol line into symbol name and symbol address 6029lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6030lt_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'" 6031 6032# Handle CRLF in mingw tool chain 6033opt_cr= 6034case $build_os in 6035mingw*) 6036 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6037 ;; 6038esac 6039 6040# Try without a prefix underscore, then with it. 6041for ac_symprfx in "" "_"; do 6042 6043 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6044 symxfrm="\\1 $ac_symprfx\\2 \\2" 6045 6046 # Write the raw and C identifiers. 6047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6048 # Fake it for dumpbin and say T for any non-static function 6049 # and D for any global variable. 6050 # Also find C++ and __fastcall symbols from MSVC++, 6051 # which start with @ or ?. 6052 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6053" {last_section=section; section=\$ 3};"\ 6054" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6055" \$ 0!~/External *\|/{next};"\ 6056" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6057" {if(hide[section]) next};"\ 6058" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6059" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6060" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6061" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6062" ' prfx=^$ac_symprfx" 6063 else 6064 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6065 fi 6066 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6067 6068 # Check to see that the pipe works correctly. 6069 pipe_works=no 6070 6071 rm -f conftest* 6072 cat > conftest.$ac_ext <<_LT_EOF 6073#ifdef __cplusplus 6074extern "C" { 6075#endif 6076char nm_test_var; 6077void nm_test_func(void); 6078void nm_test_func(void){} 6079#ifdef __cplusplus 6080} 6081#endif 6082int main(){nm_test_var='a';nm_test_func();return(0);} 6083_LT_EOF 6084 6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6086 (eval $ac_compile) 2>&5 6087 ac_status=$? 6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6089 test $ac_status = 0; }; then 6090 # Now try to grab the symbols. 6091 nlist=conftest.nm 6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6093 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6094 ac_status=$? 6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6096 test $ac_status = 0; } && test -s "$nlist"; then 6097 # Try sorting and uniquifying the output. 6098 if sort "$nlist" | uniq > "$nlist"T; then 6099 mv -f "$nlist"T "$nlist" 6100 else 6101 rm -f "$nlist"T 6102 fi 6103 6104 # Make sure that we snagged all the symbols we need. 6105 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6106 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6107 cat <<_LT_EOF > conftest.$ac_ext 6108/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6109#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6110/* DATA imports from DLLs on WIN32 con't be const, because runtime 6111 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6112# define LT_DLSYM_CONST 6113#elif defined(__osf__) 6114/* This system does not cope well with relocations in const data. */ 6115# define LT_DLSYM_CONST 6116#else 6117# define LT_DLSYM_CONST const 6118#endif 6119 6120#ifdef __cplusplus 6121extern "C" { 6122#endif 6123 6124_LT_EOF 6125 # Now generate the symbol file. 6126 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6127 6128 cat <<_LT_EOF >> conftest.$ac_ext 6129 6130/* The mapping between symbol names and symbols. */ 6131LT_DLSYM_CONST struct { 6132 const char *name; 6133 void *address; 6134} 6135lt__PROGRAM__LTX_preloaded_symbols[] = 6136{ 6137 { "@PROGRAM@", (void *) 0 }, 6138_LT_EOF 6139 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6140 cat <<\_LT_EOF >> conftest.$ac_ext 6141 {0, (void *) 0} 6142}; 6143 6144/* This works around a problem in FreeBSD linker */ 6145#ifdef FREEBSD_WORKAROUND 6146static const void *lt_preloaded_setup() { 6147 return lt__PROGRAM__LTX_preloaded_symbols; 6148} 6149#endif 6150 6151#ifdef __cplusplus 6152} 6153#endif 6154_LT_EOF 6155 # Now try linking the two files. 6156 mv conftest.$ac_objext conftstm.$ac_objext 6157 lt_globsym_save_LIBS=$LIBS 6158 lt_globsym_save_CFLAGS=$CFLAGS 6159 LIBS="conftstm.$ac_objext" 6160 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6162 (eval $ac_link) 2>&5 6163 ac_status=$? 6164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6165 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6166 pipe_works=yes 6167 fi 6168 LIBS=$lt_globsym_save_LIBS 6169 CFLAGS=$lt_globsym_save_CFLAGS 6170 else 6171 echo "cannot find nm_test_func in $nlist" >&5 6172 fi 6173 else 6174 echo "cannot find nm_test_var in $nlist" >&5 6175 fi 6176 else 6177 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6178 fi 6179 else 6180 echo "$progname: failed program was:" >&5 6181 cat conftest.$ac_ext >&5 6182 fi 6183 rm -rf conftest* conftst* 6184 6185 # Do not use the global_symbol_pipe unless it works. 6186 if test "$pipe_works" = yes; then 6187 break 6188 else 6189 lt_cv_sys_global_symbol_pipe= 6190 fi 6191done 6192 6193fi 6194 6195if test -z "$lt_cv_sys_global_symbol_pipe"; then 6196 lt_cv_sys_global_symbol_to_cdecl= 6197fi 6198if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6200$as_echo "failed" >&6; } 6201else 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6203$as_echo "ok" >&6; } 6204fi 6205 6206# Response file support. 6207if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6208 nm_file_list_spec='@' 6209elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6210 nm_file_list_spec='@' 6211fi 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6240$as_echo_n "checking for sysroot... " >&6; } 6241 6242# Check whether --with-sysroot was given. 6243if test "${with_sysroot+set}" = set; then : 6244 withval=$with_sysroot; 6245else 6246 with_sysroot=no 6247fi 6248 6249 6250lt_sysroot= 6251case ${with_sysroot} in #( 6252 yes) 6253 if test "$GCC" = yes; then 6254 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6255 fi 6256 ;; #( 6257 /*) 6258 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6259 ;; #( 6260 no|'') 6261 ;; #( 6262 *) 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6264$as_echo "${with_sysroot}" >&6; } 6265 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6266 ;; 6267esac 6268 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6270$as_echo "${lt_sysroot:-no}" >&6; } 6271 6272 6273 6274 6275 6276# Check whether --enable-libtool-lock was given. 6277if test "${enable_libtool_lock+set}" = set; then : 6278 enableval=$enable_libtool_lock; 6279fi 6280 6281test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6282 6283# Some flags need to be propagated to the compiler or linker for good 6284# libtool support. 6285case $host in 6286ia64-*-hpux*) 6287 # Find out which ABI we are using. 6288 echo 'int i;' > conftest.$ac_ext 6289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6290 (eval $ac_compile) 2>&5 6291 ac_status=$? 6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6293 test $ac_status = 0; }; then 6294 case `/usr/bin/file conftest.$ac_objext` in 6295 *ELF-32*) 6296 HPUX_IA64_MODE="32" 6297 ;; 6298 *ELF-64*) 6299 HPUX_IA64_MODE="64" 6300 ;; 6301 esac 6302 fi 6303 rm -rf conftest* 6304 ;; 6305*-*-irix6*) 6306 # Find out which ABI we are using. 6307 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6309 (eval $ac_compile) 2>&5 6310 ac_status=$? 6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6312 test $ac_status = 0; }; then 6313 if test "$lt_cv_prog_gnu_ld" = yes; then 6314 case `/usr/bin/file conftest.$ac_objext` in 6315 *32-bit*) 6316 LD="${LD-ld} -melf32bsmip" 6317 ;; 6318 *N32*) 6319 LD="${LD-ld} -melf32bmipn32" 6320 ;; 6321 *64-bit*) 6322 LD="${LD-ld} -melf64bmip" 6323 ;; 6324 esac 6325 else 6326 case `/usr/bin/file conftest.$ac_objext` in 6327 *32-bit*) 6328 LD="${LD-ld} -32" 6329 ;; 6330 *N32*) 6331 LD="${LD-ld} -n32" 6332 ;; 6333 *64-bit*) 6334 LD="${LD-ld} -64" 6335 ;; 6336 esac 6337 fi 6338 fi 6339 rm -rf conftest* 6340 ;; 6341 6342x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6343s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6344 # Find out which ABI we are using. 6345 echo 'int i;' > conftest.$ac_ext 6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6347 (eval $ac_compile) 2>&5 6348 ac_status=$? 6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6350 test $ac_status = 0; }; then 6351 case `/usr/bin/file conftest.o` in 6352 *32-bit*) 6353 case $host in 6354 x86_64-*kfreebsd*-gnu) 6355 LD="${LD-ld} -m elf_i386_fbsd" 6356 ;; 6357 x86_64-*linux*) 6358 LD="${LD-ld} -m elf_i386" 6359 ;; 6360 ppc64-*linux*|powerpc64-*linux*) 6361 LD="${LD-ld} -m elf32ppclinux" 6362 ;; 6363 s390x-*linux*) 6364 LD="${LD-ld} -m elf_s390" 6365 ;; 6366 sparc64-*linux*) 6367 LD="${LD-ld} -m elf32_sparc" 6368 ;; 6369 esac 6370 ;; 6371 *64-bit*) 6372 case $host in 6373 x86_64-*kfreebsd*-gnu) 6374 LD="${LD-ld} -m elf_x86_64_fbsd" 6375 ;; 6376 x86_64-*linux*) 6377 LD="${LD-ld} -m elf_x86_64" 6378 ;; 6379 ppc*-*linux*|powerpc*-*linux*) 6380 LD="${LD-ld} -m elf64ppc" 6381 ;; 6382 s390*-*linux*|s390*-*tpf*) 6383 LD="${LD-ld} -m elf64_s390" 6384 ;; 6385 sparc*-*linux*) 6386 LD="${LD-ld} -m elf64_sparc" 6387 ;; 6388 esac 6389 ;; 6390 esac 6391 fi 6392 rm -rf conftest* 6393 ;; 6394 6395*-*-sco3.2v5*) 6396 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6397 SAVE_CFLAGS="$CFLAGS" 6398 CFLAGS="$CFLAGS -belf" 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6400$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6401if ${lt_cv_cc_needs_belf+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 ac_ext=c 6405ac_cpp='$CPP $CPPFLAGS' 6406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6408ac_compiler_gnu=$ac_cv_c_compiler_gnu 6409 6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411/* end confdefs.h. */ 6412 6413int 6414main () 6415{ 6416 6417 ; 6418 return 0; 6419} 6420_ACEOF 6421if ac_fn_c_try_link "$LINENO"; then : 6422 lt_cv_cc_needs_belf=yes 6423else 6424 lt_cv_cc_needs_belf=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext \ 6427 conftest$ac_exeext conftest.$ac_ext 6428 ac_ext=c 6429ac_cpp='$CPP $CPPFLAGS' 6430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6432ac_compiler_gnu=$ac_cv_c_compiler_gnu 6433 6434fi 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6436$as_echo "$lt_cv_cc_needs_belf" >&6; } 6437 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6438 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6439 CFLAGS="$SAVE_CFLAGS" 6440 fi 6441 ;; 6442sparc*-*solaris*) 6443 # Find out which ABI we are using. 6444 echo 'int i;' > conftest.$ac_ext 6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6446 (eval $ac_compile) 2>&5 6447 ac_status=$? 6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6449 test $ac_status = 0; }; then 6450 case `/usr/bin/file conftest.o` in 6451 *64-bit*) 6452 case $lt_cv_prog_gnu_ld in 6453 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6454 *) 6455 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6456 LD="${LD-ld} -64" 6457 fi 6458 ;; 6459 esac 6460 ;; 6461 esac 6462 fi 6463 rm -rf conftest* 6464 ;; 6465esac 6466 6467need_locks="$enable_libtool_lock" 6468 6469if test -n "$ac_tool_prefix"; then 6470 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6471set dummy ${ac_tool_prefix}mt; ac_word=$2 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6473$as_echo_n "checking for $ac_word... " >&6; } 6474if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 if test -n "$MANIFEST_TOOL"; then 6478 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6479else 6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481for as_dir in $PATH 6482do 6483 IFS=$as_save_IFS 6484 test -z "$as_dir" && as_dir=. 6485 for ac_exec_ext in '' $ac_executable_extensions; do 6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6487 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6489 break 2 6490 fi 6491done 6492 done 6493IFS=$as_save_IFS 6494 6495fi 6496fi 6497MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6498if test -n "$MANIFEST_TOOL"; then 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6500$as_echo "$MANIFEST_TOOL" >&6; } 6501else 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503$as_echo "no" >&6; } 6504fi 6505 6506 6507fi 6508if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6509 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6510 # Extract the first word of "mt", so it can be a program name with args. 6511set dummy mt; ac_word=$2 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6513$as_echo_n "checking for $ac_word... " >&6; } 6514if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 if test -n "$ac_ct_MANIFEST_TOOL"; then 6518 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6519else 6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6521for as_dir in $PATH 6522do 6523 IFS=$as_save_IFS 6524 test -z "$as_dir" && as_dir=. 6525 for ac_exec_ext in '' $ac_executable_extensions; do 6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6527 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6529 break 2 6530 fi 6531done 6532 done 6533IFS=$as_save_IFS 6534 6535fi 6536fi 6537ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6538if test -n "$ac_ct_MANIFEST_TOOL"; then 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6540$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6541else 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6543$as_echo "no" >&6; } 6544fi 6545 6546 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6547 MANIFEST_TOOL=":" 6548 else 6549 case $cross_compiling:$ac_tool_warned in 6550yes:) 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6553ac_tool_warned=yes ;; 6554esac 6555 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6556 fi 6557else 6558 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6559fi 6560 6561test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6563$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6564if ${lt_cv_path_mainfest_tool+:} false; then : 6565 $as_echo_n "(cached) " >&6 6566else 6567 lt_cv_path_mainfest_tool=no 6568 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6569 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6570 cat conftest.err >&5 6571 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6572 lt_cv_path_mainfest_tool=yes 6573 fi 6574 rm -f conftest* 6575fi 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6577$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6578if test "x$lt_cv_path_mainfest_tool" != xyes; then 6579 MANIFEST_TOOL=: 6580fi 6581 6582 6583 6584 6585 6586 6587 case $host_os in 6588 rhapsody* | darwin*) 6589 if test -n "$ac_tool_prefix"; then 6590 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6591set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6593$as_echo_n "checking for $ac_word... " >&6; } 6594if ${ac_cv_prog_DSYMUTIL+:} false; then : 6595 $as_echo_n "(cached) " >&6 6596else 6597 if test -n "$DSYMUTIL"; then 6598 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6599else 6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6601for as_dir in $PATH 6602do 6603 IFS=$as_save_IFS 6604 test -z "$as_dir" && as_dir=. 6605 for ac_exec_ext in '' $ac_executable_extensions; do 6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6607 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6609 break 2 6610 fi 6611done 6612 done 6613IFS=$as_save_IFS 6614 6615fi 6616fi 6617DSYMUTIL=$ac_cv_prog_DSYMUTIL 6618if test -n "$DSYMUTIL"; then 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6620$as_echo "$DSYMUTIL" >&6; } 6621else 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6623$as_echo "no" >&6; } 6624fi 6625 6626 6627fi 6628if test -z "$ac_cv_prog_DSYMUTIL"; then 6629 ac_ct_DSYMUTIL=$DSYMUTIL 6630 # Extract the first word of "dsymutil", so it can be a program name with args. 6631set dummy dsymutil; ac_word=$2 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633$as_echo_n "checking for $ac_word... " >&6; } 6634if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 if test -n "$ac_ct_DSYMUTIL"; then 6638 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6639else 6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6647 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6658if test -n "$ac_ct_DSYMUTIL"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6660$as_echo "$ac_ct_DSYMUTIL" >&6; } 6661else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663$as_echo "no" >&6; } 6664fi 6665 6666 if test "x$ac_ct_DSYMUTIL" = x; then 6667 DSYMUTIL=":" 6668 else 6669 case $cross_compiling:$ac_tool_warned in 6670yes:) 6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6673ac_tool_warned=yes ;; 6674esac 6675 DSYMUTIL=$ac_ct_DSYMUTIL 6676 fi 6677else 6678 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6679fi 6680 6681 if test -n "$ac_tool_prefix"; then 6682 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6683set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6685$as_echo_n "checking for $ac_word... " >&6; } 6686if ${ac_cv_prog_NMEDIT+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 if test -n "$NMEDIT"; then 6690 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6691else 6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6693for as_dir in $PATH 6694do 6695 IFS=$as_save_IFS 6696 test -z "$as_dir" && as_dir=. 6697 for ac_exec_ext in '' $ac_executable_extensions; do 6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6699 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6701 break 2 6702 fi 6703done 6704 done 6705IFS=$as_save_IFS 6706 6707fi 6708fi 6709NMEDIT=$ac_cv_prog_NMEDIT 6710if test -n "$NMEDIT"; then 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6712$as_echo "$NMEDIT" >&6; } 6713else 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6715$as_echo "no" >&6; } 6716fi 6717 6718 6719fi 6720if test -z "$ac_cv_prog_NMEDIT"; then 6721 ac_ct_NMEDIT=$NMEDIT 6722 # Extract the first word of "nmedit", so it can be a program name with args. 6723set dummy nmedit; ac_word=$2 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725$as_echo_n "checking for $ac_word... " >&6; } 6726if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 if test -n "$ac_ct_NMEDIT"; then 6730 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6731else 6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733for as_dir in $PATH 6734do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6739 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743done 6744 done 6745IFS=$as_save_IFS 6746 6747fi 6748fi 6749ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6750if test -n "$ac_ct_NMEDIT"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6752$as_echo "$ac_ct_NMEDIT" >&6; } 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755$as_echo "no" >&6; } 6756fi 6757 6758 if test "x$ac_ct_NMEDIT" = x; then 6759 NMEDIT=":" 6760 else 6761 case $cross_compiling:$ac_tool_warned in 6762yes:) 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6765ac_tool_warned=yes ;; 6766esac 6767 NMEDIT=$ac_ct_NMEDIT 6768 fi 6769else 6770 NMEDIT="$ac_cv_prog_NMEDIT" 6771fi 6772 6773 if test -n "$ac_tool_prefix"; then 6774 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6775set dummy ${ac_tool_prefix}lipo; ac_word=$2 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6777$as_echo_n "checking for $ac_word... " >&6; } 6778if ${ac_cv_prog_LIPO+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 if test -n "$LIPO"; then 6782 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6783else 6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6785for as_dir in $PATH 6786do 6787 IFS=$as_save_IFS 6788 test -z "$as_dir" && as_dir=. 6789 for ac_exec_ext in '' $ac_executable_extensions; do 6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6791 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6793 break 2 6794 fi 6795done 6796 done 6797IFS=$as_save_IFS 6798 6799fi 6800fi 6801LIPO=$ac_cv_prog_LIPO 6802if test -n "$LIPO"; then 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6804$as_echo "$LIPO" >&6; } 6805else 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6807$as_echo "no" >&6; } 6808fi 6809 6810 6811fi 6812if test -z "$ac_cv_prog_LIPO"; then 6813 ac_ct_LIPO=$LIPO 6814 # Extract the first word of "lipo", so it can be a program name with args. 6815set dummy lipo; ac_word=$2 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817$as_echo_n "checking for $ac_word... " >&6; } 6818if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 if test -n "$ac_ct_LIPO"; then 6822 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6823else 6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825for as_dir in $PATH 6826do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6831 ac_cv_prog_ac_ct_LIPO="lipo" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835done 6836 done 6837IFS=$as_save_IFS 6838 6839fi 6840fi 6841ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6842if test -n "$ac_ct_LIPO"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6844$as_echo "$ac_ct_LIPO" >&6; } 6845else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847$as_echo "no" >&6; } 6848fi 6849 6850 if test "x$ac_ct_LIPO" = x; then 6851 LIPO=":" 6852 else 6853 case $cross_compiling:$ac_tool_warned in 6854yes:) 6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6857ac_tool_warned=yes ;; 6858esac 6859 LIPO=$ac_ct_LIPO 6860 fi 6861else 6862 LIPO="$ac_cv_prog_LIPO" 6863fi 6864 6865 if test -n "$ac_tool_prefix"; then 6866 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6867set dummy ${ac_tool_prefix}otool; ac_word=$2 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869$as_echo_n "checking for $ac_word... " >&6; } 6870if ${ac_cv_prog_OTOOL+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872else 6873 if test -n "$OTOOL"; then 6874 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6875else 6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877for as_dir in $PATH 6878do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_exec_ext in '' $ac_executable_extensions; do 6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6883 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6885 break 2 6886 fi 6887done 6888 done 6889IFS=$as_save_IFS 6890 6891fi 6892fi 6893OTOOL=$ac_cv_prog_OTOOL 6894if test -n "$OTOOL"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6896$as_echo "$OTOOL" >&6; } 6897else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899$as_echo "no" >&6; } 6900fi 6901 6902 6903fi 6904if test -z "$ac_cv_prog_OTOOL"; then 6905 ac_ct_OTOOL=$OTOOL 6906 # Extract the first word of "otool", so it can be a program name with args. 6907set dummy otool; ac_word=$2 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909$as_echo_n "checking for $ac_word... " >&6; } 6910if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 if test -n "$ac_ct_OTOOL"; then 6914 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6923 ac_cv_prog_ac_ct_OTOOL="otool" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6934if test -n "$ac_ct_OTOOL"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6936$as_echo "$ac_ct_OTOOL" >&6; } 6937else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939$as_echo "no" >&6; } 6940fi 6941 6942 if test "x$ac_ct_OTOOL" = x; then 6943 OTOOL=":" 6944 else 6945 case $cross_compiling:$ac_tool_warned in 6946yes:) 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6949ac_tool_warned=yes ;; 6950esac 6951 OTOOL=$ac_ct_OTOOL 6952 fi 6953else 6954 OTOOL="$ac_cv_prog_OTOOL" 6955fi 6956 6957 if test -n "$ac_tool_prefix"; then 6958 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6959set dummy ${ac_tool_prefix}otool64; ac_word=$2 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6961$as_echo_n "checking for $ac_word... " >&6; } 6962if ${ac_cv_prog_OTOOL64+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 if test -n "$OTOOL64"; then 6966 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6967else 6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6969for as_dir in $PATH 6970do 6971 IFS=$as_save_IFS 6972 test -z "$as_dir" && as_dir=. 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6975 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979done 6980 done 6981IFS=$as_save_IFS 6982 6983fi 6984fi 6985OTOOL64=$ac_cv_prog_OTOOL64 6986if test -n "$OTOOL64"; then 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6988$as_echo "$OTOOL64" >&6; } 6989else 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6991$as_echo "no" >&6; } 6992fi 6993 6994 6995fi 6996if test -z "$ac_cv_prog_OTOOL64"; then 6997 ac_ct_OTOOL64=$OTOOL64 6998 # Extract the first word of "otool64", so it can be a program name with args. 6999set dummy otool64; ac_word=$2 7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7001$as_echo_n "checking for $ac_word... " >&6; } 7002if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 if test -n "$ac_ct_OTOOL64"; then 7006 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7007else 7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009for as_dir in $PATH 7010do 7011 IFS=$as_save_IFS 7012 test -z "$as_dir" && as_dir=. 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7015 ac_cv_prog_ac_ct_OTOOL64="otool64" 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019done 7020 done 7021IFS=$as_save_IFS 7022 7023fi 7024fi 7025ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7026if test -n "$ac_ct_OTOOL64"; then 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7028$as_echo "$ac_ct_OTOOL64" >&6; } 7029else 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031$as_echo "no" >&6; } 7032fi 7033 7034 if test "x$ac_ct_OTOOL64" = x; then 7035 OTOOL64=":" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038yes:) 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041ac_tool_warned=yes ;; 7042esac 7043 OTOOL64=$ac_ct_OTOOL64 7044 fi 7045else 7046 OTOOL64="$ac_cv_prog_OTOOL64" 7047fi 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7076$as_echo_n "checking for -single_module linker flag... " >&6; } 7077if ${lt_cv_apple_cc_single_mod+:} false; then : 7078 $as_echo_n "(cached) " >&6 7079else 7080 lt_cv_apple_cc_single_mod=no 7081 if test -z "${LT_MULTI_MODULE}"; then 7082 # By default we will add the -single_module flag. You can override 7083 # by either setting the environment variable LT_MULTI_MODULE 7084 # non-empty at configure time, or by adding -multi_module to the 7085 # link flags. 7086 rm -rf libconftest.dylib* 7087 echo "int foo(void){return 1;}" > conftest.c 7088 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7089-dynamiclib -Wl,-single_module conftest.c" >&5 7090 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7091 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7092 _lt_result=$? 7093 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7094 lt_cv_apple_cc_single_mod=yes 7095 else 7096 cat conftest.err >&5 7097 fi 7098 rm -rf libconftest.dylib* 7099 rm -f conftest.* 7100 fi 7101fi 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7103$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7105$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7106if ${lt_cv_ld_exported_symbols_list+:} false; then : 7107 $as_echo_n "(cached) " >&6 7108else 7109 lt_cv_ld_exported_symbols_list=no 7110 save_LDFLAGS=$LDFLAGS 7111 echo "_main" > conftest.sym 7112 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114/* end confdefs.h. */ 7115 7116int 7117main () 7118{ 7119 7120 ; 7121 return 0; 7122} 7123_ACEOF 7124if ac_fn_c_try_link "$LINENO"; then : 7125 lt_cv_ld_exported_symbols_list=yes 7126else 7127 lt_cv_ld_exported_symbols_list=no 7128fi 7129rm -f core conftest.err conftest.$ac_objext \ 7130 conftest$ac_exeext conftest.$ac_ext 7131 LDFLAGS="$save_LDFLAGS" 7132 7133fi 7134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7135$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7137$as_echo_n "checking for -force_load linker flag... " >&6; } 7138if ${lt_cv_ld_force_load+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 lt_cv_ld_force_load=no 7142 cat > conftest.c << _LT_EOF 7143int forced_loaded() { return 2;} 7144_LT_EOF 7145 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7146 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7147 echo "$AR cru libconftest.a conftest.o" >&5 7148 $AR cru libconftest.a conftest.o 2>&5 7149 echo "$RANLIB libconftest.a" >&5 7150 $RANLIB libconftest.a 2>&5 7151 cat > conftest.c << _LT_EOF 7152int main() { return 0;} 7153_LT_EOF 7154 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7155 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7156 _lt_result=$? 7157 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7158 lt_cv_ld_force_load=yes 7159 else 7160 cat conftest.err >&5 7161 fi 7162 rm -f conftest.err libconftest.a conftest conftest.c 7163 rm -rf conftest.dSYM 7164 7165fi 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7167$as_echo "$lt_cv_ld_force_load" >&6; } 7168 case $host_os in 7169 rhapsody* | darwin1.[012]) 7170 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7171 darwin1.*) 7172 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7173 darwin*) # darwin 5.x on 7174 # if running on 10.5 or later, the deployment target defaults 7175 # to the OS version, if on x86, and 10.4, the deployment 7176 # target defaults to 10.4. Don't you love it? 7177 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7178 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7179 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7180 10.[012]*) 7181 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7182 10.*) 7183 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7184 esac 7185 ;; 7186 esac 7187 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7188 _lt_dar_single_mod='$single_module' 7189 fi 7190 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7191 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7192 else 7193 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7194 fi 7195 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7196 _lt_dsymutil='~$DSYMUTIL $lib || :' 7197 else 7198 _lt_dsymutil= 7199 fi 7200 ;; 7201 esac 7202 7203for ac_header in dlfcn.h 7204do : 7205 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7206" 7207if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7208 cat >>confdefs.h <<_ACEOF 7209#define HAVE_DLFCN_H 1 7210_ACEOF 7211 7212fi 7213 7214done 7215 7216 7217 7218 7219 7220# Set options 7221enable_win32_dll=yes 7222 7223case $host in 7224*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7225 if test -n "$ac_tool_prefix"; then 7226 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7227set dummy ${ac_tool_prefix}as; ac_word=$2 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229$as_echo_n "checking for $ac_word... " >&6; } 7230if ${ac_cv_prog_AS+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 if test -n "$AS"; then 7234 ac_cv_prog_AS="$AS" # Let the user override the test. 7235else 7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237for as_dir in $PATH 7238do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7243 ac_cv_prog_AS="${ac_tool_prefix}as" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247done 7248 done 7249IFS=$as_save_IFS 7250 7251fi 7252fi 7253AS=$ac_cv_prog_AS 7254if test -n "$AS"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7256$as_echo "$AS" >&6; } 7257else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259$as_echo "no" >&6; } 7260fi 7261 7262 7263fi 7264if test -z "$ac_cv_prog_AS"; then 7265 ac_ct_AS=$AS 7266 # Extract the first word of "as", so it can be a program name with args. 7267set dummy as; ac_word=$2 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7269$as_echo_n "checking for $ac_word... " >&6; } 7270if ${ac_cv_prog_ac_ct_AS+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 if test -n "$ac_ct_AS"; then 7274 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7275else 7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277for as_dir in $PATH 7278do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7283 ac_cv_prog_ac_ct_AS="as" 7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288 done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293ac_ct_AS=$ac_cv_prog_ac_ct_AS 7294if test -n "$ac_ct_AS"; then 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7296$as_echo "$ac_ct_AS" >&6; } 7297else 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7299$as_echo "no" >&6; } 7300fi 7301 7302 if test "x$ac_ct_AS" = x; then 7303 AS="false" 7304 else 7305 case $cross_compiling:$ac_tool_warned in 7306yes:) 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7309ac_tool_warned=yes ;; 7310esac 7311 AS=$ac_ct_AS 7312 fi 7313else 7314 AS="$ac_cv_prog_AS" 7315fi 7316 7317 if test -n "$ac_tool_prefix"; then 7318 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7319set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321$as_echo_n "checking for $ac_word... " >&6; } 7322if ${ac_cv_prog_DLLTOOL+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 if test -n "$DLLTOOL"; then 7326 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7327else 7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329for as_dir in $PATH 7330do 7331 IFS=$as_save_IFS 7332 test -z "$as_dir" && as_dir=. 7333 for ac_exec_ext in '' $ac_executable_extensions; do 7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7335 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7337 break 2 7338 fi 7339done 7340 done 7341IFS=$as_save_IFS 7342 7343fi 7344fi 7345DLLTOOL=$ac_cv_prog_DLLTOOL 7346if test -n "$DLLTOOL"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7348$as_echo "$DLLTOOL" >&6; } 7349else 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7351$as_echo "no" >&6; } 7352fi 7353 7354 7355fi 7356if test -z "$ac_cv_prog_DLLTOOL"; then 7357 ac_ct_DLLTOOL=$DLLTOOL 7358 # Extract the first word of "dlltool", so it can be a program name with args. 7359set dummy dlltool; ac_word=$2 7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7361$as_echo_n "checking for $ac_word... " >&6; } 7362if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 if test -n "$ac_ct_DLLTOOL"; then 7366 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7367else 7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7369for as_dir in $PATH 7370do 7371 IFS=$as_save_IFS 7372 test -z "$as_dir" && as_dir=. 7373 for ac_exec_ext in '' $ac_executable_extensions; do 7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7375 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7377 break 2 7378 fi 7379done 7380 done 7381IFS=$as_save_IFS 7382 7383fi 7384fi 7385ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7386if test -n "$ac_ct_DLLTOOL"; then 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7388$as_echo "$ac_ct_DLLTOOL" >&6; } 7389else 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7391$as_echo "no" >&6; } 7392fi 7393 7394 if test "x$ac_ct_DLLTOOL" = x; then 7395 DLLTOOL="false" 7396 else 7397 case $cross_compiling:$ac_tool_warned in 7398yes:) 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7401ac_tool_warned=yes ;; 7402esac 7403 DLLTOOL=$ac_ct_DLLTOOL 7404 fi 7405else 7406 DLLTOOL="$ac_cv_prog_DLLTOOL" 7407fi 7408 7409 if test -n "$ac_tool_prefix"; then 7410 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7411set dummy ${ac_tool_prefix}objdump; ac_word=$2 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7413$as_echo_n "checking for $ac_word... " >&6; } 7414if ${ac_cv_prog_OBJDUMP+:} false; then : 7415 $as_echo_n "(cached) " >&6 7416else 7417 if test -n "$OBJDUMP"; then 7418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7419else 7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7421for as_dir in $PATH 7422do 7423 IFS=$as_save_IFS 7424 test -z "$as_dir" && as_dir=. 7425 for ac_exec_ext in '' $ac_executable_extensions; do 7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7429 break 2 7430 fi 7431done 7432 done 7433IFS=$as_save_IFS 7434 7435fi 7436fi 7437OBJDUMP=$ac_cv_prog_OBJDUMP 7438if test -n "$OBJDUMP"; then 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7440$as_echo "$OBJDUMP" >&6; } 7441else 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7443$as_echo "no" >&6; } 7444fi 7445 7446 7447fi 7448if test -z "$ac_cv_prog_OBJDUMP"; then 7449 ac_ct_OBJDUMP=$OBJDUMP 7450 # Extract the first word of "objdump", so it can be a program name with args. 7451set dummy objdump; ac_word=$2 7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7453$as_echo_n "checking for $ac_word... " >&6; } 7454if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7455 $as_echo_n "(cached) " >&6 7456else 7457 if test -n "$ac_ct_OBJDUMP"; then 7458 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7459else 7460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7461for as_dir in $PATH 7462do 7463 IFS=$as_save_IFS 7464 test -z "$as_dir" && as_dir=. 7465 for ac_exec_ext in '' $ac_executable_extensions; do 7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7467 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7469 break 2 7470 fi 7471done 7472 done 7473IFS=$as_save_IFS 7474 7475fi 7476fi 7477ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7478if test -n "$ac_ct_OBJDUMP"; then 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7480$as_echo "$ac_ct_OBJDUMP" >&6; } 7481else 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7483$as_echo "no" >&6; } 7484fi 7485 7486 if test "x$ac_ct_OBJDUMP" = x; then 7487 OBJDUMP="false" 7488 else 7489 case $cross_compiling:$ac_tool_warned in 7490yes:) 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7493ac_tool_warned=yes ;; 7494esac 7495 OBJDUMP=$ac_ct_OBJDUMP 7496 fi 7497else 7498 OBJDUMP="$ac_cv_prog_OBJDUMP" 7499fi 7500 7501 ;; 7502esac 7503 7504test -z "$AS" && AS=as 7505 7506 7507 7508 7509 7510test -z "$DLLTOOL" && DLLTOOL=dlltool 7511 7512 7513 7514 7515 7516test -z "$OBJDUMP" && OBJDUMP=objdump 7517 7518 7519 7520 7521 7522 7523 7524 enable_dlopen=no 7525 7526 7527 7528 # Check whether --enable-shared was given. 7529if test "${enable_shared+set}" = set; then : 7530 enableval=$enable_shared; p=${PACKAGE-default} 7531 case $enableval in 7532 yes) enable_shared=yes ;; 7533 no) enable_shared=no ;; 7534 *) 7535 enable_shared=no 7536 # Look at the argument we got. We use all the common list separators. 7537 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7538 for pkg in $enableval; do 7539 IFS="$lt_save_ifs" 7540 if test "X$pkg" = "X$p"; then 7541 enable_shared=yes 7542 fi 7543 done 7544 IFS="$lt_save_ifs" 7545 ;; 7546 esac 7547else 7548 enable_shared=yes 7549fi 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 # Check whether --enable-static was given. 7560if test "${enable_static+set}" = set; then : 7561 enableval=$enable_static; p=${PACKAGE-default} 7562 case $enableval in 7563 yes) enable_static=yes ;; 7564 no) enable_static=no ;; 7565 *) 7566 enable_static=no 7567 # Look at the argument we got. We use all the common list separators. 7568 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7569 for pkg in $enableval; do 7570 IFS="$lt_save_ifs" 7571 if test "X$pkg" = "X$p"; then 7572 enable_static=yes 7573 fi 7574 done 7575 IFS="$lt_save_ifs" 7576 ;; 7577 esac 7578else 7579 enable_static=yes 7580fi 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591# Check whether --with-pic was given. 7592if test "${with_pic+set}" = set; then : 7593 withval=$with_pic; pic_mode="$withval" 7594else 7595 pic_mode=default 7596fi 7597 7598 7599test -z "$pic_mode" && pic_mode=default 7600 7601 7602 7603 7604 7605 7606 7607 # Check whether --enable-fast-install was given. 7608if test "${enable_fast_install+set}" = set; then : 7609 enableval=$enable_fast_install; p=${PACKAGE-default} 7610 case $enableval in 7611 yes) enable_fast_install=yes ;; 7612 no) enable_fast_install=no ;; 7613 *) 7614 enable_fast_install=no 7615 # Look at the argument we got. We use all the common list separators. 7616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7617 for pkg in $enableval; do 7618 IFS="$lt_save_ifs" 7619 if test "X$pkg" = "X$p"; then 7620 enable_fast_install=yes 7621 fi 7622 done 7623 IFS="$lt_save_ifs" 7624 ;; 7625 esac 7626else 7627 enable_fast_install=yes 7628fi 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640# This can be used to rebuild libtool when needed 7641LIBTOOL_DEPS="$ltmain" 7642 7643# Always use our own libtool. 7644LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671test -z "$LN_S" && LN_S="ln -s" 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686if test -n "${ZSH_VERSION+set}" ; then 7687 setopt NO_GLOB_SUBST 7688fi 7689 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7691$as_echo_n "checking for objdir... " >&6; } 7692if ${lt_cv_objdir+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 rm -f .libs 2>/dev/null 7696mkdir .libs 2>/dev/null 7697if test -d .libs; then 7698 lt_cv_objdir=.libs 7699else 7700 # MS-DOS does not allow filenames that begin with a dot. 7701 lt_cv_objdir=_libs 7702fi 7703rmdir .libs 2>/dev/null 7704fi 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7706$as_echo "$lt_cv_objdir" >&6; } 7707objdir=$lt_cv_objdir 7708 7709 7710 7711 7712 7713cat >>confdefs.h <<_ACEOF 7714#define LT_OBJDIR "$lt_cv_objdir/" 7715_ACEOF 7716 7717 7718 7719 7720case $host_os in 7721aix3*) 7722 # AIX sometimes has problems with the GCC collect2 program. For some 7723 # reason, if we set the COLLECT_NAMES environment variable, the problems 7724 # vanish in a puff of smoke. 7725 if test "X${COLLECT_NAMES+set}" != Xset; then 7726 COLLECT_NAMES= 7727 export COLLECT_NAMES 7728 fi 7729 ;; 7730esac 7731 7732# Global variables: 7733ofile=libtool 7734can_build_shared=yes 7735 7736# All known linkers require a `.a' archive for static linking (except MSVC, 7737# which needs '.lib'). 7738libext=a 7739 7740with_gnu_ld="$lt_cv_prog_gnu_ld" 7741 7742old_CC="$CC" 7743old_CFLAGS="$CFLAGS" 7744 7745# Set sane defaults for various variables 7746test -z "$CC" && CC=cc 7747test -z "$LTCC" && LTCC=$CC 7748test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7749test -z "$LD" && LD=ld 7750test -z "$ac_objext" && ac_objext=o 7751 7752for cc_temp in $compiler""; do 7753 case $cc_temp in 7754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7756 \-*) ;; 7757 *) break;; 7758 esac 7759done 7760cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7761 7762 7763# Only perform the check for file, if the check method requires it 7764test -z "$MAGIC_CMD" && MAGIC_CMD=file 7765case $deplibs_check_method in 7766file_magic*) 7767 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7769$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7770if ${lt_cv_path_MAGIC_CMD+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 case $MAGIC_CMD in 7774[\\/*] | ?:[\\/]*) 7775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7776 ;; 7777*) 7778 lt_save_MAGIC_CMD="$MAGIC_CMD" 7779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7781 for ac_dir in $ac_dummy; do 7782 IFS="$lt_save_ifs" 7783 test -z "$ac_dir" && ac_dir=. 7784 if test -f $ac_dir/${ac_tool_prefix}file; then 7785 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7786 if test -n "$file_magic_test_file"; then 7787 case $deplibs_check_method in 7788 "file_magic "*) 7789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7792 $EGREP "$file_magic_regex" > /dev/null; then 7793 : 7794 else 7795 cat <<_LT_EOF 1>&2 7796 7797*** Warning: the command libtool uses to detect shared libraries, 7798*** $file_magic_cmd, produces output that libtool cannot recognize. 7799*** The result is that libtool may fail to recognize shared libraries 7800*** as such. This will affect the creation of libtool libraries that 7801*** depend on shared libraries, but programs linked with such libtool 7802*** libraries will work regardless of this problem. Nevertheless, you 7803*** may want to report the problem to your system manager and/or to 7804*** bug-libtool@gnu.org 7805 7806_LT_EOF 7807 fi ;; 7808 esac 7809 fi 7810 break 7811 fi 7812 done 7813 IFS="$lt_save_ifs" 7814 MAGIC_CMD="$lt_save_MAGIC_CMD" 7815 ;; 7816esac 7817fi 7818 7819MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7820if test -n "$MAGIC_CMD"; then 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7822$as_echo "$MAGIC_CMD" >&6; } 7823else 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7825$as_echo "no" >&6; } 7826fi 7827 7828 7829 7830 7831 7832if test -z "$lt_cv_path_MAGIC_CMD"; then 7833 if test -n "$ac_tool_prefix"; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7835$as_echo_n "checking for file... " >&6; } 7836if ${lt_cv_path_MAGIC_CMD+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 case $MAGIC_CMD in 7840[\\/*] | ?:[\\/]*) 7841 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7842 ;; 7843*) 7844 lt_save_MAGIC_CMD="$MAGIC_CMD" 7845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7846 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7847 for ac_dir in $ac_dummy; do 7848 IFS="$lt_save_ifs" 7849 test -z "$ac_dir" && ac_dir=. 7850 if test -f $ac_dir/file; then 7851 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7852 if test -n "$file_magic_test_file"; then 7853 case $deplibs_check_method in 7854 "file_magic "*) 7855 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7857 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7858 $EGREP "$file_magic_regex" > /dev/null; then 7859 : 7860 else 7861 cat <<_LT_EOF 1>&2 7862 7863*** Warning: the command libtool uses to detect shared libraries, 7864*** $file_magic_cmd, produces output that libtool cannot recognize. 7865*** The result is that libtool may fail to recognize shared libraries 7866*** as such. This will affect the creation of libtool libraries that 7867*** depend on shared libraries, but programs linked with such libtool 7868*** libraries will work regardless of this problem. Nevertheless, you 7869*** may want to report the problem to your system manager and/or to 7870*** bug-libtool@gnu.org 7871 7872_LT_EOF 7873 fi ;; 7874 esac 7875 fi 7876 break 7877 fi 7878 done 7879 IFS="$lt_save_ifs" 7880 MAGIC_CMD="$lt_save_MAGIC_CMD" 7881 ;; 7882esac 7883fi 7884 7885MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7886if test -n "$MAGIC_CMD"; then 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7888$as_echo "$MAGIC_CMD" >&6; } 7889else 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7891$as_echo "no" >&6; } 7892fi 7893 7894 7895 else 7896 MAGIC_CMD=: 7897 fi 7898fi 7899 7900 fi 7901 ;; 7902esac 7903 7904# Use C for the default configuration in the libtool script 7905 7906lt_save_CC="$CC" 7907ac_ext=c 7908ac_cpp='$CPP $CPPFLAGS' 7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7911ac_compiler_gnu=$ac_cv_c_compiler_gnu 7912 7913 7914# Source file extension for C test sources. 7915ac_ext=c 7916 7917# Object file extension for compiled C test sources. 7918objext=o 7919objext=$objext 7920 7921# Code to be used in simple compile tests 7922lt_simple_compile_test_code="int some_variable = 0;" 7923 7924# Code to be used in simple link tests 7925lt_simple_link_test_code='int main(){return(0);}' 7926 7927 7928 7929 7930 7931 7932 7933# If no C compiler was specified, use CC. 7934LTCC=${LTCC-"$CC"} 7935 7936# If no C compiler flags were specified, use CFLAGS. 7937LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7938 7939# Allow CC to be a program name with arguments. 7940compiler=$CC 7941 7942# Save the default compiler, since it gets overwritten when the other 7943# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7944compiler_DEFAULT=$CC 7945 7946# save warnings/boilerplate of simple test code 7947ac_outfile=conftest.$ac_objext 7948echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7949eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7950_lt_compiler_boilerplate=`cat conftest.err` 7951$RM conftest* 7952 7953ac_outfile=conftest.$ac_objext 7954echo "$lt_simple_link_test_code" >conftest.$ac_ext 7955eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7956_lt_linker_boilerplate=`cat conftest.err` 7957$RM -r conftest* 7958 7959 7960if test -n "$compiler"; then 7961 7962lt_prog_compiler_no_builtin_flag= 7963 7964if test "$GCC" = yes; then 7965 case $cc_basename in 7966 nvcc*) 7967 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7968 *) 7969 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7970 esac 7971 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7973$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7974if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 lt_cv_prog_compiler_rtti_exceptions=no 7978 ac_outfile=conftest.$ac_objext 7979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7980 lt_compiler_flag="-fno-rtti -fno-exceptions" 7981 # Insert the option either (1) after the last *FLAGS variable, or 7982 # (2) before a word containing "conftest.", or (3) at the end. 7983 # Note that $ac_compile itself does not contain backslashes and begins 7984 # with a dollar sign (not a hyphen), so the echo should work correctly. 7985 # The option is referenced via a variable to avoid confusing sed. 7986 lt_compile=`echo "$ac_compile" | $SED \ 7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7989 -e 's:$: $lt_compiler_flag:'` 7990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7991 (eval "$lt_compile" 2>conftest.err) 7992 ac_status=$? 7993 cat conftest.err >&5 7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7995 if (exit $ac_status) && test -s "$ac_outfile"; then 7996 # The compiler can only warn and ignore the option if not recognized 7997 # So say no if there are warnings other than the usual output. 7998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8001 lt_cv_prog_compiler_rtti_exceptions=yes 8002 fi 8003 fi 8004 $RM conftest* 8005 8006fi 8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8008$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8009 8010if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8012else 8013 : 8014fi 8015 8016fi 8017 8018 8019 8020 8021 8022 8023 lt_prog_compiler_wl= 8024lt_prog_compiler_pic= 8025lt_prog_compiler_static= 8026 8027 8028 if test "$GCC" = yes; then 8029 lt_prog_compiler_wl='-Wl,' 8030 lt_prog_compiler_static='-static' 8031 8032 case $host_os in 8033 aix*) 8034 # All AIX code is PIC. 8035 if test "$host_cpu" = ia64; then 8036 # AIX 5 now supports IA64 processor 8037 lt_prog_compiler_static='-Bstatic' 8038 fi 8039 ;; 8040 8041 amigaos*) 8042 case $host_cpu in 8043 powerpc) 8044 # see comment about AmigaOS4 .so support 8045 lt_prog_compiler_pic='-fPIC' 8046 ;; 8047 m68k) 8048 # FIXME: we need at least 68020 code to build shared libraries, but 8049 # adding the `-m68020' flag to GCC prevents building anything better, 8050 # like `-m68040'. 8051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8052 ;; 8053 esac 8054 ;; 8055 8056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8057 # PIC is the default for these OSes. 8058 ;; 8059 8060 mingw* | cygwin* | pw32* | os2* | cegcc*) 8061 # This hack is so that the source file can tell whether it is being 8062 # built for inclusion in a dll (and should export symbols for example). 8063 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8064 # (--disable-auto-import) libraries 8065 lt_prog_compiler_pic='-DDLL_EXPORT' 8066 ;; 8067 8068 darwin* | rhapsody*) 8069 # PIC is the default on this platform 8070 # Common symbols not allowed in MH_DYLIB files 8071 lt_prog_compiler_pic='-fno-common' 8072 ;; 8073 8074 haiku*) 8075 # PIC is the default for Haiku. 8076 # The "-static" flag exists, but is broken. 8077 lt_prog_compiler_static= 8078 ;; 8079 8080 hpux*) 8081 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8082 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8083 # sets the default TLS model and affects inlining. 8084 case $host_cpu in 8085 hppa*64*) 8086 # +Z the default 8087 ;; 8088 *) 8089 lt_prog_compiler_pic='-fPIC' 8090 ;; 8091 esac 8092 ;; 8093 8094 interix[3-9]*) 8095 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8096 # Instead, we relocate shared libraries at runtime. 8097 ;; 8098 8099 msdosdjgpp*) 8100 # Just because we use GCC doesn't mean we suddenly get shared libraries 8101 # on systems that don't support them. 8102 lt_prog_compiler_can_build_shared=no 8103 enable_shared=no 8104 ;; 8105 8106 *nto* | *qnx*) 8107 # QNX uses GNU C++, but need to define -shared option too, otherwise 8108 # it will coredump. 8109 lt_prog_compiler_pic='-fPIC -shared' 8110 ;; 8111 8112 sysv4*MP*) 8113 if test -d /usr/nec; then 8114 lt_prog_compiler_pic=-Kconform_pic 8115 fi 8116 ;; 8117 8118 *) 8119 lt_prog_compiler_pic='-fPIC' 8120 ;; 8121 esac 8122 8123 case $cc_basename in 8124 nvcc*) # Cuda Compiler Driver 2.2 8125 lt_prog_compiler_wl='-Xlinker ' 8126 lt_prog_compiler_pic='-Xcompiler -fPIC' 8127 ;; 8128 esac 8129 else 8130 # PORTME Check for flag to pass linker flags through the system compiler. 8131 case $host_os in 8132 aix*) 8133 lt_prog_compiler_wl='-Wl,' 8134 if test "$host_cpu" = ia64; then 8135 # AIX 5 now supports IA64 processor 8136 lt_prog_compiler_static='-Bstatic' 8137 else 8138 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8139 fi 8140 ;; 8141 8142 mingw* | cygwin* | pw32* | os2* | cegcc*) 8143 # This hack is so that the source file can tell whether it is being 8144 # built for inclusion in a dll (and should export symbols for example). 8145 lt_prog_compiler_pic='-DDLL_EXPORT' 8146 ;; 8147 8148 hpux9* | hpux10* | hpux11*) 8149 lt_prog_compiler_wl='-Wl,' 8150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8151 # not for PA HP-UX. 8152 case $host_cpu in 8153 hppa*64*|ia64*) 8154 # +Z the default 8155 ;; 8156 *) 8157 lt_prog_compiler_pic='+Z' 8158 ;; 8159 esac 8160 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8161 lt_prog_compiler_static='${wl}-a ${wl}archive' 8162 ;; 8163 8164 irix5* | irix6* | nonstopux*) 8165 lt_prog_compiler_wl='-Wl,' 8166 # PIC (with -KPIC) is the default. 8167 lt_prog_compiler_static='-non_shared' 8168 ;; 8169 8170 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8171 case $cc_basename in 8172 # old Intel for x86_64 which still supported -KPIC. 8173 ecc*) 8174 lt_prog_compiler_wl='-Wl,' 8175 lt_prog_compiler_pic='-KPIC' 8176 lt_prog_compiler_static='-static' 8177 ;; 8178 # icc used to be incompatible with GCC. 8179 # ICC 10 doesn't accept -KPIC any more. 8180 icc* | ifort*) 8181 lt_prog_compiler_wl='-Wl,' 8182 lt_prog_compiler_pic='-fPIC' 8183 lt_prog_compiler_static='-static' 8184 ;; 8185 # Lahey Fortran 8.1. 8186 lf95*) 8187 lt_prog_compiler_wl='-Wl,' 8188 lt_prog_compiler_pic='--shared' 8189 lt_prog_compiler_static='--static' 8190 ;; 8191 nagfor*) 8192 # NAG Fortran compiler 8193 lt_prog_compiler_wl='-Wl,-Wl,,' 8194 lt_prog_compiler_pic='-PIC' 8195 lt_prog_compiler_static='-Bstatic' 8196 ;; 8197 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8198 # Portland Group compilers (*not* the Pentium gcc compiler, 8199 # which looks to be a dead project) 8200 lt_prog_compiler_wl='-Wl,' 8201 lt_prog_compiler_pic='-fpic' 8202 lt_prog_compiler_static='-Bstatic' 8203 ;; 8204 ccc*) 8205 lt_prog_compiler_wl='-Wl,' 8206 # All Alpha code is PIC. 8207 lt_prog_compiler_static='-non_shared' 8208 ;; 8209 xl* | bgxl* | bgf* | mpixl*) 8210 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8211 lt_prog_compiler_wl='-Wl,' 8212 lt_prog_compiler_pic='-qpic' 8213 lt_prog_compiler_static='-qstaticlink' 8214 ;; 8215 *) 8216 case `$CC -V 2>&1 | sed 5q` in 8217 *Sun\ F* | *Sun*Fortran*) 8218 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8219 lt_prog_compiler_pic='-KPIC' 8220 lt_prog_compiler_static='-Bstatic' 8221 lt_prog_compiler_wl='' 8222 ;; 8223 *Sun\ C*) 8224 # Sun C 5.9 8225 lt_prog_compiler_pic='-KPIC' 8226 lt_prog_compiler_static='-Bstatic' 8227 lt_prog_compiler_wl='-Wl,' 8228 ;; 8229 esac 8230 ;; 8231 esac 8232 ;; 8233 8234 newsos6) 8235 lt_prog_compiler_pic='-KPIC' 8236 lt_prog_compiler_static='-Bstatic' 8237 ;; 8238 8239 *nto* | *qnx*) 8240 # QNX uses GNU C++, but need to define -shared option too, otherwise 8241 # it will coredump. 8242 lt_prog_compiler_pic='-fPIC -shared' 8243 ;; 8244 8245 osf3* | osf4* | osf5*) 8246 lt_prog_compiler_wl='-Wl,' 8247 # All OSF/1 code is PIC. 8248 lt_prog_compiler_static='-non_shared' 8249 ;; 8250 8251 rdos*) 8252 lt_prog_compiler_static='-non_shared' 8253 ;; 8254 8255 solaris*) 8256 lt_prog_compiler_pic='-KPIC' 8257 lt_prog_compiler_static='-Bstatic' 8258 case $cc_basename in 8259 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8260 lt_prog_compiler_wl='-Qoption ld ';; 8261 *) 8262 lt_prog_compiler_wl='-Wl,';; 8263 esac 8264 ;; 8265 8266 sunos4*) 8267 lt_prog_compiler_wl='-Qoption ld ' 8268 lt_prog_compiler_pic='-PIC' 8269 lt_prog_compiler_static='-Bstatic' 8270 ;; 8271 8272 sysv4 | sysv4.2uw2* | sysv4.3*) 8273 lt_prog_compiler_wl='-Wl,' 8274 lt_prog_compiler_pic='-KPIC' 8275 lt_prog_compiler_static='-Bstatic' 8276 ;; 8277 8278 sysv4*MP*) 8279 if test -d /usr/nec ;then 8280 lt_prog_compiler_pic='-Kconform_pic' 8281 lt_prog_compiler_static='-Bstatic' 8282 fi 8283 ;; 8284 8285 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8286 lt_prog_compiler_wl='-Wl,' 8287 lt_prog_compiler_pic='-KPIC' 8288 lt_prog_compiler_static='-Bstatic' 8289 ;; 8290 8291 unicos*) 8292 lt_prog_compiler_wl='-Wl,' 8293 lt_prog_compiler_can_build_shared=no 8294 ;; 8295 8296 uts4*) 8297 lt_prog_compiler_pic='-pic' 8298 lt_prog_compiler_static='-Bstatic' 8299 ;; 8300 8301 *) 8302 lt_prog_compiler_can_build_shared=no 8303 ;; 8304 esac 8305 fi 8306 8307case $host_os in 8308 # For platforms which do not support PIC, -DPIC is meaningless: 8309 *djgpp*) 8310 lt_prog_compiler_pic= 8311 ;; 8312 *) 8313 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8314 ;; 8315esac 8316 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8318$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8319if ${lt_cv_prog_compiler_pic+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8323fi 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8325$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8326lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8327 8328# 8329# Check to make sure the PIC flag actually works. 8330# 8331if test -n "$lt_prog_compiler_pic"; then 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8333$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8334if ${lt_cv_prog_compiler_pic_works+:} false; then : 8335 $as_echo_n "(cached) " >&6 8336else 8337 lt_cv_prog_compiler_pic_works=no 8338 ac_outfile=conftest.$ac_objext 8339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8340 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8341 # Insert the option either (1) after the last *FLAGS variable, or 8342 # (2) before a word containing "conftest.", or (3) at the end. 8343 # Note that $ac_compile itself does not contain backslashes and begins 8344 # with a dollar sign (not a hyphen), so the echo should work correctly. 8345 # The option is referenced via a variable to avoid confusing sed. 8346 lt_compile=`echo "$ac_compile" | $SED \ 8347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8349 -e 's:$: $lt_compiler_flag:'` 8350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8351 (eval "$lt_compile" 2>conftest.err) 8352 ac_status=$? 8353 cat conftest.err >&5 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8355 if (exit $ac_status) && test -s "$ac_outfile"; then 8356 # The compiler can only warn and ignore the option if not recognized 8357 # So say no if there are warnings other than the usual output. 8358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8360 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8361 lt_cv_prog_compiler_pic_works=yes 8362 fi 8363 fi 8364 $RM conftest* 8365 8366fi 8367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8368$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8369 8370if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8371 case $lt_prog_compiler_pic in 8372 "" | " "*) ;; 8373 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8374 esac 8375else 8376 lt_prog_compiler_pic= 8377 lt_prog_compiler_can_build_shared=no 8378fi 8379 8380fi 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392# 8393# Check to make sure the static flag actually works. 8394# 8395wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8397$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8398if ${lt_cv_prog_compiler_static_works+:} false; then : 8399 $as_echo_n "(cached) " >&6 8400else 8401 lt_cv_prog_compiler_static_works=no 8402 save_LDFLAGS="$LDFLAGS" 8403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8404 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8406 # The linker can only warn and ignore the option if not recognized 8407 # So say no if there are warnings 8408 if test -s conftest.err; then 8409 # Append any errors to the config.log. 8410 cat conftest.err 1>&5 8411 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8413 if diff conftest.exp conftest.er2 >/dev/null; then 8414 lt_cv_prog_compiler_static_works=yes 8415 fi 8416 else 8417 lt_cv_prog_compiler_static_works=yes 8418 fi 8419 fi 8420 $RM -r conftest* 8421 LDFLAGS="$save_LDFLAGS" 8422 8423fi 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8425$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8426 8427if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8428 : 8429else 8430 lt_prog_compiler_static= 8431fi 8432 8433 8434 8435 8436 8437 8438 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8440$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8441if ${lt_cv_prog_compiler_c_o+:} false; then : 8442 $as_echo_n "(cached) " >&6 8443else 8444 lt_cv_prog_compiler_c_o=no 8445 $RM -r conftest 2>/dev/null 8446 mkdir conftest 8447 cd conftest 8448 mkdir out 8449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8450 8451 lt_compiler_flag="-o out/conftest2.$ac_objext" 8452 # Insert the option either (1) after the last *FLAGS variable, or 8453 # (2) before a word containing "conftest.", or (3) at the end. 8454 # Note that $ac_compile itself does not contain backslashes and begins 8455 # with a dollar sign (not a hyphen), so the echo should work correctly. 8456 lt_compile=`echo "$ac_compile" | $SED \ 8457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8459 -e 's:$: $lt_compiler_flag:'` 8460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8461 (eval "$lt_compile" 2>out/conftest.err) 8462 ac_status=$? 8463 cat out/conftest.err >&5 8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8465 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8466 then 8467 # The compiler can only warn and ignore the option if not recognized 8468 # So say no if there are warnings 8469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8470 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8471 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8472 lt_cv_prog_compiler_c_o=yes 8473 fi 8474 fi 8475 chmod u+w . 2>&5 8476 $RM conftest* 8477 # SGI C++ compiler will create directory out/ii_files/ for 8478 # template instantiation 8479 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8480 $RM out/* && rmdir out 8481 cd .. 8482 $RM -r conftest 8483 $RM conftest* 8484 8485fi 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8487$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8488 8489 8490 8491 8492 8493 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8495$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8496if ${lt_cv_prog_compiler_c_o+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498else 8499 lt_cv_prog_compiler_c_o=no 8500 $RM -r conftest 2>/dev/null 8501 mkdir conftest 8502 cd conftest 8503 mkdir out 8504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8505 8506 lt_compiler_flag="-o out/conftest2.$ac_objext" 8507 # Insert the option either (1) after the last *FLAGS variable, or 8508 # (2) before a word containing "conftest.", or (3) at the end. 8509 # Note that $ac_compile itself does not contain backslashes and begins 8510 # with a dollar sign (not a hyphen), so the echo should work correctly. 8511 lt_compile=`echo "$ac_compile" | $SED \ 8512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8514 -e 's:$: $lt_compiler_flag:'` 8515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8516 (eval "$lt_compile" 2>out/conftest.err) 8517 ac_status=$? 8518 cat out/conftest.err >&5 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8520 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8521 then 8522 # The compiler can only warn and ignore the option if not recognized 8523 # So say no if there are warnings 8524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8527 lt_cv_prog_compiler_c_o=yes 8528 fi 8529 fi 8530 chmod u+w . 2>&5 8531 $RM conftest* 8532 # SGI C++ compiler will create directory out/ii_files/ for 8533 # template instantiation 8534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8535 $RM out/* && rmdir out 8536 cd .. 8537 $RM -r conftest 8538 $RM conftest* 8539 8540fi 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8542$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8543 8544 8545 8546 8547hard_links="nottested" 8548if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8549 # do not overwrite the value of need_locks provided by the user 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8551$as_echo_n "checking if we can lock with hard links... " >&6; } 8552 hard_links=yes 8553 $RM conftest* 8554 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8555 touch conftest.a 8556 ln conftest.a conftest.b 2>&5 || hard_links=no 8557 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8559$as_echo "$hard_links" >&6; } 8560 if test "$hard_links" = no; then 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8562$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8563 need_locks=warn 8564 fi 8565else 8566 need_locks=no 8567fi 8568 8569 8570 8571 8572 8573 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8575$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8576 8577 runpath_var= 8578 allow_undefined_flag= 8579 always_export_symbols=no 8580 archive_cmds= 8581 archive_expsym_cmds= 8582 compiler_needs_object=no 8583 enable_shared_with_static_runtimes=no 8584 export_dynamic_flag_spec= 8585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8586 hardcode_automatic=no 8587 hardcode_direct=no 8588 hardcode_direct_absolute=no 8589 hardcode_libdir_flag_spec= 8590 hardcode_libdir_flag_spec_ld= 8591 hardcode_libdir_separator= 8592 hardcode_minus_L=no 8593 hardcode_shlibpath_var=unsupported 8594 inherit_rpath=no 8595 link_all_deplibs=unknown 8596 module_cmds= 8597 module_expsym_cmds= 8598 old_archive_from_new_cmds= 8599 old_archive_from_expsyms_cmds= 8600 thread_safe_flag_spec= 8601 whole_archive_flag_spec= 8602 # include_expsyms should be a list of space-separated symbols to be *always* 8603 # included in the symbol list 8604 include_expsyms= 8605 # exclude_expsyms can be an extended regexp of symbols to exclude 8606 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8607 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8608 # as well as any symbol that contains `d'. 8609 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8610 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8611 # platforms (ab)use it in PIC code, but their linkers get confused if 8612 # the symbol is explicitly referenced. Since portable code cannot 8613 # rely on this symbol name, it's probably fine to never include it in 8614 # preloaded symbol tables. 8615 # Exclude shared library initialization/finalization symbols. 8616 extract_expsyms_cmds= 8617 8618 case $host_os in 8619 cygwin* | mingw* | pw32* | cegcc*) 8620 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8621 # When not using gcc, we currently assume that we are using 8622 # Microsoft Visual C++. 8623 if test "$GCC" != yes; then 8624 with_gnu_ld=no 8625 fi 8626 ;; 8627 interix*) 8628 # we just hope/assume this is gcc and not c89 (= MSVC++) 8629 with_gnu_ld=yes 8630 ;; 8631 openbsd*) 8632 with_gnu_ld=no 8633 ;; 8634 esac 8635 8636 ld_shlibs=yes 8637 8638 # On some targets, GNU ld is compatible enough with the native linker 8639 # that we're better off using the native interface for both. 8640 lt_use_gnu_ld_interface=no 8641 if test "$with_gnu_ld" = yes; then 8642 case $host_os in 8643 aix*) 8644 # The AIX port of GNU ld has always aspired to compatibility 8645 # with the native linker. However, as the warning in the GNU ld 8646 # block says, versions before 2.19.5* couldn't really create working 8647 # shared libraries, regardless of the interface used. 8648 case `$LD -v 2>&1` in 8649 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8650 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8651 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8652 *) 8653 lt_use_gnu_ld_interface=yes 8654 ;; 8655 esac 8656 ;; 8657 *) 8658 lt_use_gnu_ld_interface=yes 8659 ;; 8660 esac 8661 fi 8662 8663 if test "$lt_use_gnu_ld_interface" = yes; then 8664 # If archive_cmds runs LD, not CC, wlarc should be empty 8665 wlarc='${wl}' 8666 8667 # Set some defaults for GNU ld with shared library support. These 8668 # are reset later if shared libraries are not supported. Putting them 8669 # here allows them to be overridden if necessary. 8670 runpath_var=LD_RUN_PATH 8671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8672 export_dynamic_flag_spec='${wl}--export-dynamic' 8673 # ancient GNU ld didn't support --whole-archive et. al. 8674 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8675 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8676 else 8677 whole_archive_flag_spec= 8678 fi 8679 supports_anon_versioning=no 8680 case `$LD -v 2>&1` in 8681 *GNU\ gold*) supports_anon_versioning=yes ;; 8682 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8683 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8684 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8685 *\ 2.11.*) ;; # other 2.11 versions 8686 *) supports_anon_versioning=yes ;; 8687 esac 8688 8689 # See if GNU ld supports shared libraries. 8690 case $host_os in 8691 aix[3-9]*) 8692 # On AIX/PPC, the GNU linker is very broken 8693 if test "$host_cpu" != ia64; then 8694 ld_shlibs=no 8695 cat <<_LT_EOF 1>&2 8696 8697*** Warning: the GNU linker, at least up to release 2.19, is reported 8698*** to be unable to reliably create shared libraries on AIX. 8699*** Therefore, libtool is disabling shared libraries support. If you 8700*** really care for shared libraries, you may want to install binutils 8701*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8702*** You will then need to restart the configuration process. 8703 8704_LT_EOF 8705 fi 8706 ;; 8707 8708 amigaos*) 8709 case $host_cpu in 8710 powerpc) 8711 # see comment about AmigaOS4 .so support 8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8713 archive_expsym_cmds='' 8714 ;; 8715 m68k) 8716 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)' 8717 hardcode_libdir_flag_spec='-L$libdir' 8718 hardcode_minus_L=yes 8719 ;; 8720 esac 8721 ;; 8722 8723 beos*) 8724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8725 allow_undefined_flag=unsupported 8726 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8727 # support --undefined. This deserves some investigation. FIXME 8728 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8729 else 8730 ld_shlibs=no 8731 fi 8732 ;; 8733 8734 cygwin* | mingw* | pw32* | cegcc*) 8735 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8736 # as there is no search path for DLLs. 8737 hardcode_libdir_flag_spec='-L$libdir' 8738 export_dynamic_flag_spec='${wl}--export-all-symbols' 8739 allow_undefined_flag=unsupported 8740 always_export_symbols=no 8741 enable_shared_with_static_runtimes=yes 8742 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' 8743 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8744 8745 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8747 # If the export-symbols file already is a .def file (1st line 8748 # is EXPORTS), use it as is; otherwise, prepend... 8749 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8750 cp $export_symbols $output_objdir/$soname.def; 8751 else 8752 echo EXPORTS > $output_objdir/$soname.def; 8753 cat $export_symbols >> $output_objdir/$soname.def; 8754 fi~ 8755 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8756 else 8757 ld_shlibs=no 8758 fi 8759 ;; 8760 8761 haiku*) 8762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8763 link_all_deplibs=yes 8764 ;; 8765 8766 interix[3-9]*) 8767 hardcode_direct=no 8768 hardcode_shlibpath_var=no 8769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8770 export_dynamic_flag_spec='${wl}-E' 8771 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8772 # Instead, shared libraries are loaded at an image base (0x10000000 by 8773 # default) and relocated if they conflict, which is a slow very memory 8774 # consuming and fragmenting process. To avoid this, we pick a random, 8775 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8776 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8778 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' 8779 ;; 8780 8781 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8782 tmp_diet=no 8783 if test "$host_os" = linux-dietlibc; then 8784 case $cc_basename in 8785 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8786 esac 8787 fi 8788 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8789 && test "$tmp_diet" = no 8790 then 8791 tmp_addflag=' $pic_flag' 8792 tmp_sharedflag='-shared' 8793 case $cc_basename,$host_cpu in 8794 pgcc*) # Portland Group C compiler 8795 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' 8796 tmp_addflag=' $pic_flag' 8797 ;; 8798 pgf77* | pgf90* | pgf95* | pgfortran*) 8799 # Portland Group f77 and f90 compilers 8800 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' 8801 tmp_addflag=' $pic_flag -Mnomain' ;; 8802 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8803 tmp_addflag=' -i_dynamic' ;; 8804 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8805 tmp_addflag=' -i_dynamic -nofor_main' ;; 8806 ifc* | ifort*) # Intel Fortran compiler 8807 tmp_addflag=' -nofor_main' ;; 8808 lf95*) # Lahey Fortran 8.1 8809 whole_archive_flag_spec= 8810 tmp_sharedflag='--shared' ;; 8811 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8812 tmp_sharedflag='-qmkshrobj' 8813 tmp_addflag= ;; 8814 nvcc*) # Cuda Compiler Driver 2.2 8815 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' 8816 compiler_needs_object=yes 8817 ;; 8818 esac 8819 case `$CC -V 2>&1 | sed 5q` in 8820 *Sun\ C*) # Sun C 5.9 8821 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' 8822 compiler_needs_object=yes 8823 tmp_sharedflag='-G' ;; 8824 *Sun\ F*) # Sun Fortran 8.3 8825 tmp_sharedflag='-G' ;; 8826 esac 8827 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8828 8829 if test "x$supports_anon_versioning" = xyes; then 8830 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8831 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8832 echo "local: *; };" >> $output_objdir/$libname.ver~ 8833 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8834 fi 8835 8836 case $cc_basename in 8837 xlf* | bgf* | bgxlf* | mpixlf*) 8838 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8839 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8840 hardcode_libdir_flag_spec= 8841 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8842 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8843 if test "x$supports_anon_versioning" = xyes; then 8844 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8846 echo "local: *; };" >> $output_objdir/$libname.ver~ 8847 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8848 fi 8849 ;; 8850 esac 8851 else 8852 ld_shlibs=no 8853 fi 8854 ;; 8855 8856 netbsd*) 8857 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8858 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8859 wlarc= 8860 else 8861 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8862 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8863 fi 8864 ;; 8865 8866 solaris*) 8867 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8868 ld_shlibs=no 8869 cat <<_LT_EOF 1>&2 8870 8871*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8872*** create shared libraries on Solaris systems. Therefore, libtool 8873*** is disabling shared libraries support. We urge you to upgrade GNU 8874*** binutils to release 2.9.1 or newer. Another option is to modify 8875*** your PATH or compiler configuration so that the native linker is 8876*** used, and then restart. 8877 8878_LT_EOF 8879 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8881 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8882 else 8883 ld_shlibs=no 8884 fi 8885 ;; 8886 8887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8888 case `$LD -v 2>&1` in 8889 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8890 ld_shlibs=no 8891 cat <<_LT_EOF 1>&2 8892 8893*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8894*** reliably create shared libraries on SCO systems. Therefore, libtool 8895*** is disabling shared libraries support. We urge you to upgrade GNU 8896*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8897*** your PATH or compiler configuration so that the native linker is 8898*** used, and then restart. 8899 8900_LT_EOF 8901 ;; 8902 *) 8903 # For security reasons, it is highly recommended that you always 8904 # use absolute paths for naming shared libraries, and exclude the 8905 # DT_RUNPATH tag from executables and libraries. But doing so 8906 # requires that you compile everything twice, which is a pain. 8907 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8910 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8911 else 8912 ld_shlibs=no 8913 fi 8914 ;; 8915 esac 8916 ;; 8917 8918 sunos4*) 8919 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8920 wlarc= 8921 hardcode_direct=yes 8922 hardcode_shlibpath_var=no 8923 ;; 8924 8925 *) 8926 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8928 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8929 else 8930 ld_shlibs=no 8931 fi 8932 ;; 8933 esac 8934 8935 if test "$ld_shlibs" = no; then 8936 runpath_var= 8937 hardcode_libdir_flag_spec= 8938 export_dynamic_flag_spec= 8939 whole_archive_flag_spec= 8940 fi 8941 else 8942 # PORTME fill in a description of your system's linker (not GNU ld) 8943 case $host_os in 8944 aix3*) 8945 allow_undefined_flag=unsupported 8946 always_export_symbols=yes 8947 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' 8948 # Note: this linker hardcodes the directories in LIBPATH if there 8949 # are no directories specified by -L. 8950 hardcode_minus_L=yes 8951 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8952 # Neither direct hardcoding nor static linking is supported with a 8953 # broken collect2. 8954 hardcode_direct=unsupported 8955 fi 8956 ;; 8957 8958 aix[4-9]*) 8959 if test "$host_cpu" = ia64; then 8960 # On IA64, the linker does run time linking by default, so we don't 8961 # have to do anything special. 8962 aix_use_runtimelinking=no 8963 exp_sym_flag='-Bexport' 8964 no_entry_flag="" 8965 else 8966 # If we're using GNU nm, then we don't want the "-C" option. 8967 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8968 # Also, AIX nm treats weak defined symbols like other global 8969 # defined symbols, whereas GNU nm marks them as "W". 8970 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8971 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' 8972 else 8973 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' 8974 fi 8975 aix_use_runtimelinking=no 8976 8977 # Test if we are trying to use run time linking or normal 8978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8979 # need to do runtime linking. 8980 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8981 for ld_flag in $LDFLAGS; do 8982 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8983 aix_use_runtimelinking=yes 8984 break 8985 fi 8986 done 8987 ;; 8988 esac 8989 8990 exp_sym_flag='-bexport' 8991 no_entry_flag='-bnoentry' 8992 fi 8993 8994 # When large executables or shared objects are built, AIX ld can 8995 # have problems creating the table of contents. If linking a library 8996 # or program results in "error TOC overflow" add -mminimal-toc to 8997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8999 9000 archive_cmds='' 9001 hardcode_direct=yes 9002 hardcode_direct_absolute=yes 9003 hardcode_libdir_separator=':' 9004 link_all_deplibs=yes 9005 file_list_spec='${wl}-f,' 9006 9007 if test "$GCC" = yes; then 9008 case $host_os in aix4.[012]|aix4.[012].*) 9009 # We only want to do this on AIX 4.2 and lower, the check 9010 # below for broken collect2 doesn't work under 4.3+ 9011 collect2name=`${CC} -print-prog-name=collect2` 9012 if test -f "$collect2name" && 9013 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9014 then 9015 # We have reworked collect2 9016 : 9017 else 9018 # We have old collect2 9019 hardcode_direct=unsupported 9020 # It fails to find uninstalled libraries when the uninstalled 9021 # path is not listed in the libpath. Setting hardcode_minus_L 9022 # to unsupported forces relinking 9023 hardcode_minus_L=yes 9024 hardcode_libdir_flag_spec='-L$libdir' 9025 hardcode_libdir_separator= 9026 fi 9027 ;; 9028 esac 9029 shared_flag='-shared' 9030 if test "$aix_use_runtimelinking" = yes; then 9031 shared_flag="$shared_flag "'${wl}-G' 9032 fi 9033 else 9034 # not using gcc 9035 if test "$host_cpu" = ia64; then 9036 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9037 # chokes on -Wl,-G. The following line is correct: 9038 shared_flag='-G' 9039 else 9040 if test "$aix_use_runtimelinking" = yes; then 9041 shared_flag='${wl}-G' 9042 else 9043 shared_flag='${wl}-bM:SRE' 9044 fi 9045 fi 9046 fi 9047 9048 export_dynamic_flag_spec='${wl}-bexpall' 9049 # It seems that -bexpall does not export symbols beginning with 9050 # underscore (_), so it is better to generate a list of symbols to export. 9051 always_export_symbols=yes 9052 if test "$aix_use_runtimelinking" = yes; then 9053 # Warning - without using the other runtime loading flags (-brtl), 9054 # -berok will link without error, but may produce a broken library. 9055 allow_undefined_flag='-berok' 9056 # Determine the default libpath from the value encoded in an 9057 # empty executable. 9058 if test "${lt_cv_aix_libpath+set}" = set; then 9059 aix_libpath=$lt_cv_aix_libpath 9060else 9061 if ${lt_cv_aix_libpath_+:} false; then : 9062 $as_echo_n "(cached) " >&6 9063else 9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9065/* end confdefs.h. */ 9066 9067int 9068main () 9069{ 9070 9071 ; 9072 return 0; 9073} 9074_ACEOF 9075if ac_fn_c_try_link "$LINENO"; then : 9076 9077 lt_aix_libpath_sed=' 9078 /Import File Strings/,/^$/ { 9079 /^0/ { 9080 s/^0 *\([^ ]*\) *$/\1/ 9081 p 9082 } 9083 }' 9084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9085 # Check for a 64-bit object if we didn't find anything. 9086 if test -z "$lt_cv_aix_libpath_"; then 9087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9088 fi 9089fi 9090rm -f core conftest.err conftest.$ac_objext \ 9091 conftest$ac_exeext conftest.$ac_ext 9092 if test -z "$lt_cv_aix_libpath_"; then 9093 lt_cv_aix_libpath_="/usr/lib:/lib" 9094 fi 9095 9096fi 9097 9098 aix_libpath=$lt_cv_aix_libpath_ 9099fi 9100 9101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9102 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" 9103 else 9104 if test "$host_cpu" = ia64; then 9105 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9106 allow_undefined_flag="-z nodefs" 9107 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" 9108 else 9109 # Determine the default libpath from the value encoded in an 9110 # empty executable. 9111 if test "${lt_cv_aix_libpath+set}" = set; then 9112 aix_libpath=$lt_cv_aix_libpath 9113else 9114 if ${lt_cv_aix_libpath_+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9118/* end confdefs.h. */ 9119 9120int 9121main () 9122{ 9123 9124 ; 9125 return 0; 9126} 9127_ACEOF 9128if ac_fn_c_try_link "$LINENO"; then : 9129 9130 lt_aix_libpath_sed=' 9131 /Import File Strings/,/^$/ { 9132 /^0/ { 9133 s/^0 *\([^ ]*\) *$/\1/ 9134 p 9135 } 9136 }' 9137 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9138 # Check for a 64-bit object if we didn't find anything. 9139 if test -z "$lt_cv_aix_libpath_"; then 9140 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9141 fi 9142fi 9143rm -f core conftest.err conftest.$ac_objext \ 9144 conftest$ac_exeext conftest.$ac_ext 9145 if test -z "$lt_cv_aix_libpath_"; then 9146 lt_cv_aix_libpath_="/usr/lib:/lib" 9147 fi 9148 9149fi 9150 9151 aix_libpath=$lt_cv_aix_libpath_ 9152fi 9153 9154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9155 # Warning - without using the other run time loading flags, 9156 # -berok will link without error, but may produce a broken library. 9157 no_undefined_flag=' ${wl}-bernotok' 9158 allow_undefined_flag=' ${wl}-berok' 9159 if test "$with_gnu_ld" = yes; then 9160 # We only use this code for GNU lds that support --whole-archive. 9161 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9162 else 9163 # Exported symbols can be pulled into shared objects from archives 9164 whole_archive_flag_spec='$convenience' 9165 fi 9166 archive_cmds_need_lc=yes 9167 # This is similar to how AIX traditionally builds its shared libraries. 9168 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' 9169 fi 9170 fi 9171 ;; 9172 9173 amigaos*) 9174 case $host_cpu in 9175 powerpc) 9176 # see comment about AmigaOS4 .so support 9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9178 archive_expsym_cmds='' 9179 ;; 9180 m68k) 9181 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)' 9182 hardcode_libdir_flag_spec='-L$libdir' 9183 hardcode_minus_L=yes 9184 ;; 9185 esac 9186 ;; 9187 9188 bsdi[45]*) 9189 export_dynamic_flag_spec=-rdynamic 9190 ;; 9191 9192 cygwin* | mingw* | pw32* | cegcc*) 9193 # When not using gcc, we currently assume that we are using 9194 # Microsoft Visual C++. 9195 # hardcode_libdir_flag_spec is actually meaningless, as there is 9196 # no search path for DLLs. 9197 case $cc_basename in 9198 cl*) 9199 # Native MSVC 9200 hardcode_libdir_flag_spec=' ' 9201 allow_undefined_flag=unsupported 9202 always_export_symbols=yes 9203 file_list_spec='@' 9204 # Tell ltmain to make .lib files, not .a files. 9205 libext=lib 9206 # Tell ltmain to make .dll files, not .so files. 9207 shrext_cmds=".dll" 9208 # FIXME: Setting linknames here is a bad hack. 9209 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9210 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9211 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9212 else 9213 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9214 fi~ 9215 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9216 linknames=' 9217 # The linker will not automatically build a static lib if we build a DLL. 9218 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9219 enable_shared_with_static_runtimes=yes 9220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9221 # Don't use ranlib 9222 old_postinstall_cmds='chmod 644 $oldlib' 9223 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9224 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9225 case $lt_outputfile in 9226 *.exe|*.EXE) ;; 9227 *) 9228 lt_outputfile="$lt_outputfile.exe" 9229 lt_tool_outputfile="$lt_tool_outputfile.exe" 9230 ;; 9231 esac~ 9232 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9233 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9234 $RM "$lt_outputfile.manifest"; 9235 fi' 9236 ;; 9237 *) 9238 # Assume MSVC wrapper 9239 hardcode_libdir_flag_spec=' ' 9240 allow_undefined_flag=unsupported 9241 # Tell ltmain to make .lib files, not .a files. 9242 libext=lib 9243 # Tell ltmain to make .dll files, not .so files. 9244 shrext_cmds=".dll" 9245 # FIXME: Setting linknames here is a bad hack. 9246 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9247 # The linker will automatically build a .lib file if we build a DLL. 9248 old_archive_from_new_cmds='true' 9249 # FIXME: Should let the user specify the lib program. 9250 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9251 enable_shared_with_static_runtimes=yes 9252 ;; 9253 esac 9254 ;; 9255 9256 darwin* | rhapsody*) 9257 9258 9259 archive_cmds_need_lc=no 9260 hardcode_direct=no 9261 hardcode_automatic=yes 9262 hardcode_shlibpath_var=unsupported 9263 if test "$lt_cv_ld_force_load" = "yes"; then 9264 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\"`' 9265 else 9266 whole_archive_flag_spec='' 9267 fi 9268 link_all_deplibs=yes 9269 allow_undefined_flag="$_lt_dar_allow_undefined" 9270 case $cc_basename in 9271 ifort*) _lt_dar_can_shared=yes ;; 9272 *) _lt_dar_can_shared=$GCC ;; 9273 esac 9274 if test "$_lt_dar_can_shared" = "yes"; then 9275 output_verbose_link_cmd=func_echo_all 9276 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9277 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9278 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}" 9279 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}" 9280 9281 else 9282 ld_shlibs=no 9283 fi 9284 9285 ;; 9286 9287 dgux*) 9288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9289 hardcode_libdir_flag_spec='-L$libdir' 9290 hardcode_shlibpath_var=no 9291 ;; 9292 9293 freebsd1*) 9294 ld_shlibs=no 9295 ;; 9296 9297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9298 # support. Future versions do this automatically, but an explicit c++rt0.o 9299 # does not break anything, and helps significantly (at the cost of a little 9300 # extra space). 9301 freebsd2.2*) 9302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9303 hardcode_libdir_flag_spec='-R$libdir' 9304 hardcode_direct=yes 9305 hardcode_shlibpath_var=no 9306 ;; 9307 9308 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9309 freebsd2*) 9310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9311 hardcode_direct=yes 9312 hardcode_minus_L=yes 9313 hardcode_shlibpath_var=no 9314 ;; 9315 9316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9317 freebsd* | dragonfly*) 9318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9319 hardcode_libdir_flag_spec='-R$libdir' 9320 hardcode_direct=yes 9321 hardcode_shlibpath_var=no 9322 ;; 9323 9324 hpux9*) 9325 if test "$GCC" = yes; then 9326 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' 9327 else 9328 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' 9329 fi 9330 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9331 hardcode_libdir_separator=: 9332 hardcode_direct=yes 9333 9334 # hardcode_minus_L: Not really in the search PATH, 9335 # but as the default location of the library. 9336 hardcode_minus_L=yes 9337 export_dynamic_flag_spec='${wl}-E' 9338 ;; 9339 9340 hpux10*) 9341 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9342 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9343 else 9344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9345 fi 9346 if test "$with_gnu_ld" = no; then 9347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9348 hardcode_libdir_flag_spec_ld='+b $libdir' 9349 hardcode_libdir_separator=: 9350 hardcode_direct=yes 9351 hardcode_direct_absolute=yes 9352 export_dynamic_flag_spec='${wl}-E' 9353 # hardcode_minus_L: Not really in the search PATH, 9354 # but as the default location of the library. 9355 hardcode_minus_L=yes 9356 fi 9357 ;; 9358 9359 hpux11*) 9360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9361 case $host_cpu in 9362 hppa*64*) 9363 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9364 ;; 9365 ia64*) 9366 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9367 ;; 9368 *) 9369 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9370 ;; 9371 esac 9372 else 9373 case $host_cpu in 9374 hppa*64*) 9375 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9376 ;; 9377 ia64*) 9378 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9379 ;; 9380 *) 9381 9382 # Older versions of the 11.00 compiler do not understand -b yet 9383 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9385$as_echo_n "checking if $CC understands -b... " >&6; } 9386if ${lt_cv_prog_compiler__b+:} false; then : 9387 $as_echo_n "(cached) " >&6 9388else 9389 lt_cv_prog_compiler__b=no 9390 save_LDFLAGS="$LDFLAGS" 9391 LDFLAGS="$LDFLAGS -b" 9392 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9394 # The linker can only warn and ignore the option if not recognized 9395 # So say no if there are warnings 9396 if test -s conftest.err; then 9397 # Append any errors to the config.log. 9398 cat conftest.err 1>&5 9399 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9401 if diff conftest.exp conftest.er2 >/dev/null; then 9402 lt_cv_prog_compiler__b=yes 9403 fi 9404 else 9405 lt_cv_prog_compiler__b=yes 9406 fi 9407 fi 9408 $RM -r conftest* 9409 LDFLAGS="$save_LDFLAGS" 9410 9411fi 9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9413$as_echo "$lt_cv_prog_compiler__b" >&6; } 9414 9415if test x"$lt_cv_prog_compiler__b" = xyes; then 9416 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9417else 9418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9419fi 9420 9421 ;; 9422 esac 9423 fi 9424 if test "$with_gnu_ld" = no; then 9425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9426 hardcode_libdir_separator=: 9427 9428 case $host_cpu in 9429 hppa*64*|ia64*) 9430 hardcode_direct=no 9431 hardcode_shlibpath_var=no 9432 ;; 9433 *) 9434 hardcode_direct=yes 9435 hardcode_direct_absolute=yes 9436 export_dynamic_flag_spec='${wl}-E' 9437 9438 # hardcode_minus_L: Not really in the search PATH, 9439 # but as the default location of the library. 9440 hardcode_minus_L=yes 9441 ;; 9442 esac 9443 fi 9444 ;; 9445 9446 irix5* | irix6* | nonstopux*) 9447 if test "$GCC" = yes; then 9448 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' 9449 # Try to use the -exported_symbol ld option, if it does not 9450 # work, assume that -exports_file does not work either and 9451 # implicitly export all symbols. 9452 # This should be the same for all languages, so no per-tag cache variable. 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9454$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9455if ${lt_cv_irix_exported_symbol+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457else 9458 save_LDFLAGS="$LDFLAGS" 9459 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9461/* end confdefs.h. */ 9462int foo (void) { return 0; } 9463_ACEOF 9464if ac_fn_c_try_link "$LINENO"; then : 9465 lt_cv_irix_exported_symbol=yes 9466else 9467 lt_cv_irix_exported_symbol=no 9468fi 9469rm -f core conftest.err conftest.$ac_objext \ 9470 conftest$ac_exeext conftest.$ac_ext 9471 LDFLAGS="$save_LDFLAGS" 9472fi 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9474$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9475 if test "$lt_cv_irix_exported_symbol" = yes; then 9476 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' 9477 fi 9478 else 9479 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' 9480 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' 9481 fi 9482 archive_cmds_need_lc='no' 9483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9484 hardcode_libdir_separator=: 9485 inherit_rpath=yes 9486 link_all_deplibs=yes 9487 ;; 9488 9489 netbsd*) 9490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9492 else 9493 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9494 fi 9495 hardcode_libdir_flag_spec='-R$libdir' 9496 hardcode_direct=yes 9497 hardcode_shlibpath_var=no 9498 ;; 9499 9500 newsos6) 9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9502 hardcode_direct=yes 9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9504 hardcode_libdir_separator=: 9505 hardcode_shlibpath_var=no 9506 ;; 9507 9508 *nto* | *qnx*) 9509 ;; 9510 9511 openbsd*) 9512 if test -f /usr/libexec/ld.so; then 9513 hardcode_direct=yes 9514 hardcode_shlibpath_var=no 9515 hardcode_direct_absolute=yes 9516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9518 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9519 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9520 export_dynamic_flag_spec='${wl}-E' 9521 else 9522 case $host_os in 9523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9525 hardcode_libdir_flag_spec='-R$libdir' 9526 ;; 9527 *) 9528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9530 ;; 9531 esac 9532 fi 9533 else 9534 ld_shlibs=no 9535 fi 9536 ;; 9537 9538 os2*) 9539 hardcode_libdir_flag_spec='-L$libdir' 9540 hardcode_minus_L=yes 9541 allow_undefined_flag=unsupported 9542 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' 9543 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9544 ;; 9545 9546 osf3*) 9547 if test "$GCC" = yes; then 9548 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9549 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' 9550 else 9551 allow_undefined_flag=' -expect_unresolved \*' 9552 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' 9553 fi 9554 archive_cmds_need_lc='no' 9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9556 hardcode_libdir_separator=: 9557 ;; 9558 9559 osf4* | osf5*) # as osf3* with the addition of -msym flag 9560 if test "$GCC" = yes; then 9561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9562 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' 9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9564 else 9565 allow_undefined_flag=' -expect_unresolved \*' 9566 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' 9567 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~ 9568 $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' 9569 9570 # Both c and cxx compiler support -rpath directly 9571 hardcode_libdir_flag_spec='-rpath $libdir' 9572 fi 9573 archive_cmds_need_lc='no' 9574 hardcode_libdir_separator=: 9575 ;; 9576 9577 solaris*) 9578 no_undefined_flag=' -z defs' 9579 if test "$GCC" = yes; then 9580 wlarc='${wl}' 9581 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9582 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9583 $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' 9584 else 9585 case `$CC -V 2>&1` in 9586 *"Compilers 5.0"*) 9587 wlarc='' 9588 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9591 ;; 9592 *) 9593 wlarc='${wl}' 9594 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9596 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9597 ;; 9598 esac 9599 fi 9600 hardcode_libdir_flag_spec='-R$libdir' 9601 hardcode_shlibpath_var=no 9602 case $host_os in 9603 solaris2.[0-5] | solaris2.[0-5].*) ;; 9604 *) 9605 # The compiler driver will combine and reorder linker options, 9606 # but understands `-z linker_flag'. GCC discards it without `$wl', 9607 # but is careful enough not to reorder. 9608 # Supported since Solaris 2.6 (maybe 2.5.1?) 9609 if test "$GCC" = yes; then 9610 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9611 else 9612 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9613 fi 9614 ;; 9615 esac 9616 link_all_deplibs=yes 9617 ;; 9618 9619 sunos4*) 9620 if test "x$host_vendor" = xsequent; then 9621 # Use $CC to link under sequent, because it throws in some extra .o 9622 # files that make .init and .fini sections work. 9623 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9624 else 9625 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9626 fi 9627 hardcode_libdir_flag_spec='-L$libdir' 9628 hardcode_direct=yes 9629 hardcode_minus_L=yes 9630 hardcode_shlibpath_var=no 9631 ;; 9632 9633 sysv4) 9634 case $host_vendor in 9635 sni) 9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9637 hardcode_direct=yes # is this really true??? 9638 ;; 9639 siemens) 9640 ## LD is ld it makes a PLAMLIB 9641 ## CC just makes a GrossModule. 9642 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9643 reload_cmds='$CC -r -o $output$reload_objs' 9644 hardcode_direct=no 9645 ;; 9646 motorola) 9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9648 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9649 ;; 9650 esac 9651 runpath_var='LD_RUN_PATH' 9652 hardcode_shlibpath_var=no 9653 ;; 9654 9655 sysv4.3*) 9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9657 hardcode_shlibpath_var=no 9658 export_dynamic_flag_spec='-Bexport' 9659 ;; 9660 9661 sysv4*MP*) 9662 if test -d /usr/nec; then 9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9664 hardcode_shlibpath_var=no 9665 runpath_var=LD_RUN_PATH 9666 hardcode_runpath_var=yes 9667 ld_shlibs=yes 9668 fi 9669 ;; 9670 9671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9672 no_undefined_flag='${wl}-z,text' 9673 archive_cmds_need_lc=no 9674 hardcode_shlibpath_var=no 9675 runpath_var='LD_RUN_PATH' 9676 9677 if test "$GCC" = yes; then 9678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9680 else 9681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9683 fi 9684 ;; 9685 9686 sysv5* | sco3.2v5* | sco5v6*) 9687 # Note: We can NOT use -z defs as we might desire, because we do not 9688 # link with -lc, and that would cause any symbols used from libc to 9689 # always be unresolved, which means just about no library would 9690 # ever link correctly. If we're not using GNU ld we use -z text 9691 # though, which does catch some bad symbols but isn't as heavy-handed 9692 # as -z defs. 9693 no_undefined_flag='${wl}-z,text' 9694 allow_undefined_flag='${wl}-z,nodefs' 9695 archive_cmds_need_lc=no 9696 hardcode_shlibpath_var=no 9697 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9698 hardcode_libdir_separator=':' 9699 link_all_deplibs=yes 9700 export_dynamic_flag_spec='${wl}-Bexport' 9701 runpath_var='LD_RUN_PATH' 9702 9703 if test "$GCC" = yes; then 9704 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9705 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9706 else 9707 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9708 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9709 fi 9710 ;; 9711 9712 uts4*) 9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9714 hardcode_libdir_flag_spec='-L$libdir' 9715 hardcode_shlibpath_var=no 9716 ;; 9717 9718 *) 9719 ld_shlibs=no 9720 ;; 9721 esac 9722 9723 if test x$host_vendor = xsni; then 9724 case $host in 9725 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9726 export_dynamic_flag_spec='${wl}-Blargedynsym' 9727 ;; 9728 esac 9729 fi 9730 fi 9731 9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9733$as_echo "$ld_shlibs" >&6; } 9734test "$ld_shlibs" = no && can_build_shared=no 9735 9736with_gnu_ld=$with_gnu_ld 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752# 9753# Do we need to explicitly link libc? 9754# 9755case "x$archive_cmds_need_lc" in 9756x|xyes) 9757 # Assume -lc should be added 9758 archive_cmds_need_lc=yes 9759 9760 if test "$enable_shared" = yes && test "$GCC" = yes; then 9761 case $archive_cmds in 9762 *'~'*) 9763 # FIXME: we may have to deal with multi-command sequences. 9764 ;; 9765 '$CC '*) 9766 # Test whether the compiler implicitly links with -lc since on some 9767 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9768 # to ld, don't add -lc before -lgcc. 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9770$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9771if ${lt_cv_archive_cmds_need_lc+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 $RM conftest* 9775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9776 9777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9778 (eval $ac_compile) 2>&5 9779 ac_status=$? 9780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9781 test $ac_status = 0; } 2>conftest.err; then 9782 soname=conftest 9783 lib=conftest 9784 libobjs=conftest.$ac_objext 9785 deplibs= 9786 wl=$lt_prog_compiler_wl 9787 pic_flag=$lt_prog_compiler_pic 9788 compiler_flags=-v 9789 linker_flags=-v 9790 verstring= 9791 output_objdir=. 9792 libname=conftest 9793 lt_save_allow_undefined_flag=$allow_undefined_flag 9794 allow_undefined_flag= 9795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9796 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9797 ac_status=$? 9798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9799 test $ac_status = 0; } 9800 then 9801 lt_cv_archive_cmds_need_lc=no 9802 else 9803 lt_cv_archive_cmds_need_lc=yes 9804 fi 9805 allow_undefined_flag=$lt_save_allow_undefined_flag 9806 else 9807 cat conftest.err 1>&5 9808 fi 9809 $RM conftest* 9810 9811fi 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9813$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9814 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9815 ;; 9816 esac 9817 fi 9818 ;; 9819esac 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9978$as_echo_n "checking dynamic linker characteristics... " >&6; } 9979 9980if test "$GCC" = yes; then 9981 case $host_os in 9982 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9983 *) lt_awk_arg="/^libraries:/" ;; 9984 esac 9985 case $host_os in 9986 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9987 *) lt_sed_strip_eq="s,=/,/,g" ;; 9988 esac 9989 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9990 case $lt_search_path_spec in 9991 *\;*) 9992 # if the path contains ";" then we assume it to be the separator 9993 # otherwise default to the standard path separator (i.e. ":") - it is 9994 # assumed that no part of a normal pathname contains ";" but that should 9995 # okay in the real world where ";" in dirpaths is itself problematic. 9996 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9997 ;; 9998 *) 9999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10000 ;; 10001 esac 10002 # Ok, now we have the path, separated by spaces, we can step through it 10003 # and add multilib dir if necessary. 10004 lt_tmp_lt_search_path_spec= 10005 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10006 for lt_sys_path in $lt_search_path_spec; do 10007 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10008 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10009 else 10010 test -d "$lt_sys_path" && \ 10011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10012 fi 10013 done 10014 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10015BEGIN {RS=" "; FS="/|\n";} { 10016 lt_foo=""; 10017 lt_count=0; 10018 for (lt_i = NF; lt_i > 0; lt_i--) { 10019 if ($lt_i != "" && $lt_i != ".") { 10020 if ($lt_i == "..") { 10021 lt_count++; 10022 } else { 10023 if (lt_count == 0) { 10024 lt_foo="/" $lt_i lt_foo; 10025 } else { 10026 lt_count--; 10027 } 10028 } 10029 } 10030 } 10031 if (lt_foo != "") { lt_freq[lt_foo]++; } 10032 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10033}'` 10034 # AWK program above erroneously prepends '/' to C:/dos/paths 10035 # for these hosts. 10036 case $host_os in 10037 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10038 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10039 esac 10040 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10041else 10042 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10043fi 10044library_names_spec= 10045libname_spec='lib$name' 10046soname_spec= 10047shrext_cmds=".so" 10048postinstall_cmds= 10049postuninstall_cmds= 10050finish_cmds= 10051finish_eval= 10052shlibpath_var= 10053shlibpath_overrides_runpath=unknown 10054version_type=none 10055dynamic_linker="$host_os ld.so" 10056sys_lib_dlsearch_path_spec="/lib /usr/lib" 10057need_lib_prefix=unknown 10058hardcode_into_libs=no 10059 10060# when you set need_version to no, make sure it does not cause -set_version 10061# flags to be left without arguments 10062need_version=unknown 10063 10064case $host_os in 10065aix3*) 10066 version_type=linux 10067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10068 shlibpath_var=LIBPATH 10069 10070 # AIX 3 has no versioning support, so we append a major version to the name. 10071 soname_spec='${libname}${release}${shared_ext}$major' 10072 ;; 10073 10074aix[4-9]*) 10075 version_type=linux 10076 need_lib_prefix=no 10077 need_version=no 10078 hardcode_into_libs=yes 10079 if test "$host_cpu" = ia64; then 10080 # AIX 5 supports IA64 10081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10082 shlibpath_var=LD_LIBRARY_PATH 10083 else 10084 # With GCC up to 2.95.x, collect2 would create an import file 10085 # for dependence libraries. The import file would start with 10086 # the line `#! .'. This would cause the generated library to 10087 # depend on `.', always an invalid library. This was fixed in 10088 # development snapshots of GCC prior to 3.0. 10089 case $host_os in 10090 aix4 | aix4.[01] | aix4.[01].*) 10091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10092 echo ' yes ' 10093 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10094 : 10095 else 10096 can_build_shared=no 10097 fi 10098 ;; 10099 esac 10100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10101 # soname into executable. Probably we can add versioning support to 10102 # collect2, so additional links can be useful in future. 10103 if test "$aix_use_runtimelinking" = yes; then 10104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10105 # instead of lib<name>.a to let people know that these are not 10106 # typical AIX shared libraries. 10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10108 else 10109 # We preserve .a as extension for shared libraries through AIX4.2 10110 # and later when we are not doing run time linking. 10111 library_names_spec='${libname}${release}.a $libname.a' 10112 soname_spec='${libname}${release}${shared_ext}$major' 10113 fi 10114 shlibpath_var=LIBPATH 10115 fi 10116 ;; 10117 10118amigaos*) 10119 case $host_cpu in 10120 powerpc) 10121 # Since July 2007 AmigaOS4 officially supports .so libraries. 10122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10124 ;; 10125 m68k) 10126 library_names_spec='$libname.ixlibrary $libname.a' 10127 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10128 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' 10129 ;; 10130 esac 10131 ;; 10132 10133beos*) 10134 library_names_spec='${libname}${shared_ext}' 10135 dynamic_linker="$host_os ld.so" 10136 shlibpath_var=LIBRARY_PATH 10137 ;; 10138 10139bsdi[45]*) 10140 version_type=linux 10141 need_version=no 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10143 soname_spec='${libname}${release}${shared_ext}$major' 10144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10145 shlibpath_var=LD_LIBRARY_PATH 10146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10148 # the default ld.so.conf also contains /usr/contrib/lib and 10149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10150 # libtool to hard-code these into programs 10151 ;; 10152 10153cygwin* | mingw* | pw32* | cegcc*) 10154 version_type=windows 10155 shrext_cmds=".dll" 10156 need_version=no 10157 need_lib_prefix=no 10158 10159 case $GCC,$cc_basename in 10160 yes,*) 10161 # gcc 10162 library_names_spec='$libname.dll.a' 10163 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10164 postinstall_cmds='base_file=`basename \${file}`~ 10165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10166 dldir=$destdir/`dirname \$dlpath`~ 10167 test -d \$dldir || mkdir -p \$dldir~ 10168 $install_prog $dir/$dlname \$dldir/$dlname~ 10169 chmod a+x \$dldir/$dlname~ 10170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10172 fi' 10173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10174 dlpath=$dir/\$dldll~ 10175 $RM \$dlpath' 10176 shlibpath_overrides_runpath=yes 10177 10178 case $host_os in 10179 cygwin*) 10180 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10182 10183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10184 ;; 10185 mingw* | cegcc*) 10186 # MinGW DLLs use traditional 'lib' prefix 10187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10188 ;; 10189 pw32*) 10190 # pw32 DLLs use 'pw' prefix rather than 'lib' 10191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10192 ;; 10193 esac 10194 dynamic_linker='Win32 ld.exe' 10195 ;; 10196 10197 *,cl*) 10198 # Native MSVC 10199 libname_spec='$name' 10200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10201 library_names_spec='${libname}.dll.lib' 10202 10203 case $build_os in 10204 mingw*) 10205 sys_lib_search_path_spec= 10206 lt_save_ifs=$IFS 10207 IFS=';' 10208 for lt_path in $LIB 10209 do 10210 IFS=$lt_save_ifs 10211 # Let DOS variable expansion print the short 8.3 style file name. 10212 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10213 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10214 done 10215 IFS=$lt_save_ifs 10216 # Convert to MSYS style. 10217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10218 ;; 10219 cygwin*) 10220 # Convert to unix form, then to dos form, then back to unix form 10221 # but this time dos style (no spaces!) so that the unix form looks 10222 # like /cygdrive/c/PROGRA~1:/cygdr... 10223 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10224 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10225 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10226 ;; 10227 *) 10228 sys_lib_search_path_spec="$LIB" 10229 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10230 # It is most probably a Windows format PATH. 10231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10232 else 10233 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10234 fi 10235 # FIXME: find the short name or the path components, as spaces are 10236 # common. (e.g. "Program Files" -> "PROGRA~1") 10237 ;; 10238 esac 10239 10240 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10241 postinstall_cmds='base_file=`basename \${file}`~ 10242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10243 dldir=$destdir/`dirname \$dlpath`~ 10244 test -d \$dldir || mkdir -p \$dldir~ 10245 $install_prog $dir/$dlname \$dldir/$dlname' 10246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10247 dlpath=$dir/\$dldll~ 10248 $RM \$dlpath' 10249 shlibpath_overrides_runpath=yes 10250 dynamic_linker='Win32 link.exe' 10251 ;; 10252 10253 *) 10254 # Assume MSVC wrapper 10255 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10256 dynamic_linker='Win32 ld.exe' 10257 ;; 10258 esac 10259 # FIXME: first we should search . and the directory the executable is in 10260 shlibpath_var=PATH 10261 ;; 10262 10263darwin* | rhapsody*) 10264 dynamic_linker="$host_os dyld" 10265 version_type=darwin 10266 need_lib_prefix=no 10267 need_version=no 10268 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10269 soname_spec='${libname}${release}${major}$shared_ext' 10270 shlibpath_overrides_runpath=yes 10271 shlibpath_var=DYLD_LIBRARY_PATH 10272 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10273 10274 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10275 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10276 ;; 10277 10278dgux*) 10279 version_type=linux 10280 need_lib_prefix=no 10281 need_version=no 10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10283 soname_spec='${libname}${release}${shared_ext}$major' 10284 shlibpath_var=LD_LIBRARY_PATH 10285 ;; 10286 10287freebsd1*) 10288 dynamic_linker=no 10289 ;; 10290 10291freebsd* | dragonfly*) 10292 # DragonFly does not have aout. When/if they implement a new 10293 # versioning mechanism, adjust this. 10294 if test -x /usr/bin/objformat; then 10295 objformat=`/usr/bin/objformat` 10296 else 10297 case $host_os in 10298 freebsd[123]*) objformat=aout ;; 10299 *) objformat=elf ;; 10300 esac 10301 fi 10302 version_type=freebsd-$objformat 10303 case $version_type in 10304 freebsd-elf*) 10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10306 need_version=no 10307 need_lib_prefix=no 10308 ;; 10309 freebsd-*) 10310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10311 need_version=yes 10312 ;; 10313 esac 10314 shlibpath_var=LD_LIBRARY_PATH 10315 case $host_os in 10316 freebsd2*) 10317 shlibpath_overrides_runpath=yes 10318 ;; 10319 freebsd3.[01]* | freebsdelf3.[01]*) 10320 shlibpath_overrides_runpath=yes 10321 hardcode_into_libs=yes 10322 ;; 10323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10325 shlibpath_overrides_runpath=no 10326 hardcode_into_libs=yes 10327 ;; 10328 *) # from 4.6 on, and DragonFly 10329 shlibpath_overrides_runpath=yes 10330 hardcode_into_libs=yes 10331 ;; 10332 esac 10333 ;; 10334 10335gnu*) 10336 version_type=linux 10337 need_lib_prefix=no 10338 need_version=no 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10340 soname_spec='${libname}${release}${shared_ext}$major' 10341 shlibpath_var=LD_LIBRARY_PATH 10342 hardcode_into_libs=yes 10343 ;; 10344 10345haiku*) 10346 version_type=linux 10347 need_lib_prefix=no 10348 need_version=no 10349 dynamic_linker="$host_os runtime_loader" 10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 shlibpath_var=LIBRARY_PATH 10353 shlibpath_overrides_runpath=yes 10354 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10355 hardcode_into_libs=yes 10356 ;; 10357 10358hpux9* | hpux10* | hpux11*) 10359 # Give a soname corresponding to the major version so that dld.sl refuses to 10360 # link against other versions. 10361 version_type=sunos 10362 need_lib_prefix=no 10363 need_version=no 10364 case $host_cpu in 10365 ia64*) 10366 shrext_cmds='.so' 10367 hardcode_into_libs=yes 10368 dynamic_linker="$host_os dld.so" 10369 shlibpath_var=LD_LIBRARY_PATH 10370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10372 soname_spec='${libname}${release}${shared_ext}$major' 10373 if test "X$HPUX_IA64_MODE" = X32; then 10374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10375 else 10376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10377 fi 10378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10379 ;; 10380 hppa*64*) 10381 shrext_cmds='.sl' 10382 hardcode_into_libs=yes 10383 dynamic_linker="$host_os dld.sl" 10384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10387 soname_spec='${libname}${release}${shared_ext}$major' 10388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10390 ;; 10391 *) 10392 shrext_cmds='.sl' 10393 dynamic_linker="$host_os dld.sl" 10394 shlibpath_var=SHLIB_PATH 10395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10397 soname_spec='${libname}${release}${shared_ext}$major' 10398 ;; 10399 esac 10400 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10401 postinstall_cmds='chmod 555 $lib' 10402 # or fails outright, so override atomically: 10403 install_override_mode=555 10404 ;; 10405 10406interix[3-9]*) 10407 version_type=linux 10408 need_lib_prefix=no 10409 need_version=no 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10413 shlibpath_var=LD_LIBRARY_PATH 10414 shlibpath_overrides_runpath=no 10415 hardcode_into_libs=yes 10416 ;; 10417 10418irix5* | irix6* | nonstopux*) 10419 case $host_os in 10420 nonstopux*) version_type=nonstopux ;; 10421 *) 10422 if test "$lt_cv_prog_gnu_ld" = yes; then 10423 version_type=linux 10424 else 10425 version_type=irix 10426 fi ;; 10427 esac 10428 need_lib_prefix=no 10429 need_version=no 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10432 case $host_os in 10433 irix5* | nonstopux*) 10434 libsuff= shlibsuff= 10435 ;; 10436 *) 10437 case $LD in # libtool.m4 will add one of these switches to LD 10438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10439 libsuff= shlibsuff= libmagic=32-bit;; 10440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10441 libsuff=32 shlibsuff=N32 libmagic=N32;; 10442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10443 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10444 *) libsuff= shlibsuff= libmagic=never-match;; 10445 esac 10446 ;; 10447 esac 10448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10449 shlibpath_overrides_runpath=no 10450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10452 hardcode_into_libs=yes 10453 ;; 10454 10455# No shared lib support for Linux oldld, aout, or coff. 10456linux*oldld* | linux*aout* | linux*coff*) 10457 dynamic_linker=no 10458 ;; 10459 10460# This must be Linux ELF. 10461linux* | k*bsd*-gnu | kopensolaris*-gnu) 10462 version_type=linux 10463 need_lib_prefix=no 10464 need_version=no 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10466 soname_spec='${libname}${release}${shared_ext}$major' 10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10468 shlibpath_var=LD_LIBRARY_PATH 10469 shlibpath_overrides_runpath=no 10470 10471 # Some binutils ld are patched to set DT_RUNPATH 10472 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 lt_cv_shlibpath_overrides_runpath=no 10476 save_LDFLAGS=$LDFLAGS 10477 save_libdir=$libdir 10478 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10479 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482 10483int 10484main () 10485{ 10486 10487 ; 10488 return 0; 10489} 10490_ACEOF 10491if ac_fn_c_try_link "$LINENO"; then : 10492 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10493 lt_cv_shlibpath_overrides_runpath=yes 10494fi 10495fi 10496rm -f core conftest.err conftest.$ac_objext \ 10497 conftest$ac_exeext conftest.$ac_ext 10498 LDFLAGS=$save_LDFLAGS 10499 libdir=$save_libdir 10500 10501fi 10502 10503 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10504 10505 # This implies no fast_install, which is unacceptable. 10506 # Some rework will be needed to allow for fast_install 10507 # before this can be enabled. 10508 hardcode_into_libs=yes 10509 10510 # Append ld.so.conf contents to the search path 10511 if test -f /etc/ld.so.conf; then 10512 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' ' '` 10513 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10514 fi 10515 10516 # We used to test for /lib/ld.so.1 and disable shared libraries on 10517 # powerpc, because MkLinux only supported shared libraries with the 10518 # GNU dynamic linker. Since this was broken with cross compilers, 10519 # most powerpc-linux boxes support dynamic linking these days and 10520 # people can always --disable-shared, the test was removed, and we 10521 # assume the GNU/Linux dynamic linker is in use. 10522 dynamic_linker='GNU/Linux ld.so' 10523 ;; 10524 10525netbsd*) 10526 version_type=sunos 10527 need_lib_prefix=no 10528 need_version=no 10529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10532 dynamic_linker='NetBSD (a.out) ld.so' 10533 else 10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10535 soname_spec='${libname}${release}${shared_ext}$major' 10536 dynamic_linker='NetBSD ld.elf_so' 10537 fi 10538 shlibpath_var=LD_LIBRARY_PATH 10539 shlibpath_overrides_runpath=yes 10540 hardcode_into_libs=yes 10541 ;; 10542 10543newsos6) 10544 version_type=linux 10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10546 shlibpath_var=LD_LIBRARY_PATH 10547 shlibpath_overrides_runpath=yes 10548 ;; 10549 10550*nto* | *qnx*) 10551 version_type=qnx 10552 need_lib_prefix=no 10553 need_version=no 10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10555 soname_spec='${libname}${release}${shared_ext}$major' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 shlibpath_overrides_runpath=no 10558 hardcode_into_libs=yes 10559 dynamic_linker='ldqnx.so' 10560 ;; 10561 10562openbsd*) 10563 version_type=sunos 10564 sys_lib_dlsearch_path_spec="/usr/lib" 10565 need_lib_prefix=no 10566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10567 case $host_os in 10568 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10569 *) need_version=no ;; 10570 esac 10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10573 shlibpath_var=LD_LIBRARY_PATH 10574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10575 case $host_os in 10576 openbsd2.[89] | openbsd2.[89].*) 10577 shlibpath_overrides_runpath=no 10578 ;; 10579 *) 10580 shlibpath_overrides_runpath=yes 10581 ;; 10582 esac 10583 else 10584 shlibpath_overrides_runpath=yes 10585 fi 10586 ;; 10587 10588os2*) 10589 libname_spec='$name' 10590 shrext_cmds=".dll" 10591 need_lib_prefix=no 10592 library_names_spec='$libname${shared_ext} $libname.a' 10593 dynamic_linker='OS/2 ld.exe' 10594 shlibpath_var=LIBPATH 10595 ;; 10596 10597osf3* | osf4* | osf5*) 10598 version_type=osf 10599 need_lib_prefix=no 10600 need_version=no 10601 soname_spec='${libname}${release}${shared_ext}$major' 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10603 shlibpath_var=LD_LIBRARY_PATH 10604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10606 ;; 10607 10608rdos*) 10609 dynamic_linker=no 10610 ;; 10611 10612solaris*) 10613 version_type=linux 10614 need_lib_prefix=no 10615 need_version=no 10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10617 soname_spec='${libname}${release}${shared_ext}$major' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 shlibpath_overrides_runpath=yes 10620 hardcode_into_libs=yes 10621 # ldd complains unless libraries are executable 10622 postinstall_cmds='chmod +x $lib' 10623 ;; 10624 10625sunos4*) 10626 version_type=sunos 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10629 shlibpath_var=LD_LIBRARY_PATH 10630 shlibpath_overrides_runpath=yes 10631 if test "$with_gnu_ld" = yes; then 10632 need_lib_prefix=no 10633 fi 10634 need_version=yes 10635 ;; 10636 10637sysv4 | sysv4.3*) 10638 version_type=linux 10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10640 soname_spec='${libname}${release}${shared_ext}$major' 10641 shlibpath_var=LD_LIBRARY_PATH 10642 case $host_vendor in 10643 sni) 10644 shlibpath_overrides_runpath=no 10645 need_lib_prefix=no 10646 runpath_var=LD_RUN_PATH 10647 ;; 10648 siemens) 10649 need_lib_prefix=no 10650 ;; 10651 motorola) 10652 need_lib_prefix=no 10653 need_version=no 10654 shlibpath_overrides_runpath=no 10655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10656 ;; 10657 esac 10658 ;; 10659 10660sysv4*MP*) 10661 if test -d /usr/nec ;then 10662 version_type=linux 10663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10664 soname_spec='$libname${shared_ext}.$major' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 fi 10667 ;; 10668 10669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10670 version_type=freebsd-elf 10671 need_lib_prefix=no 10672 need_version=no 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $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 if test "$with_gnu_ld" = yes; then 10679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10680 else 10681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10682 case $host_os in 10683 sco3.2v5*) 10684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10685 ;; 10686 esac 10687 fi 10688 sys_lib_dlsearch_path_spec='/usr/lib' 10689 ;; 10690 10691tpf*) 10692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10693 version_type=linux 10694 need_lib_prefix=no 10695 need_version=no 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10697 shlibpath_var=LD_LIBRARY_PATH 10698 shlibpath_overrides_runpath=no 10699 hardcode_into_libs=yes 10700 ;; 10701 10702uts4*) 10703 version_type=linux 10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10705 soname_spec='${libname}${release}${shared_ext}$major' 10706 shlibpath_var=LD_LIBRARY_PATH 10707 ;; 10708 10709*) 10710 dynamic_linker=no 10711 ;; 10712esac 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10714$as_echo "$dynamic_linker" >&6; } 10715test "$dynamic_linker" = no && can_build_shared=no 10716 10717variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10718if test "$GCC" = yes; then 10719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10720fi 10721 10722if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10723 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10724fi 10725if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10726 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10727fi 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10821$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10822hardcode_action= 10823if test -n "$hardcode_libdir_flag_spec" || 10824 test -n "$runpath_var" || 10825 test "X$hardcode_automatic" = "Xyes" ; then 10826 10827 # We can hardcode non-existent directories. 10828 if test "$hardcode_direct" != no && 10829 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10830 # have to relink, otherwise we might link with an installed library 10831 # when we should be linking with a yet-to-be-installed one 10832 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10833 test "$hardcode_minus_L" != no; then 10834 # Linking always hardcodes the temporary library directory. 10835 hardcode_action=relink 10836 else 10837 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10838 hardcode_action=immediate 10839 fi 10840else 10841 # We cannot hardcode anything, or else we can only hardcode existing 10842 # directories. 10843 hardcode_action=unsupported 10844fi 10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10846$as_echo "$hardcode_action" >&6; } 10847 10848if test "$hardcode_action" = relink || 10849 test "$inherit_rpath" = yes; then 10850 # Fast installation is not supported 10851 enable_fast_install=no 10852elif test "$shlibpath_overrides_runpath" = yes || 10853 test "$enable_shared" = no; then 10854 # Fast installation is not necessary 10855 enable_fast_install=needless 10856fi 10857 10858 10859 10860 10861 10862 10863 if test "x$enable_dlopen" != xyes; then 10864 enable_dlopen=unknown 10865 enable_dlopen_self=unknown 10866 enable_dlopen_self_static=unknown 10867else 10868 lt_cv_dlopen=no 10869 lt_cv_dlopen_libs= 10870 10871 case $host_os in 10872 beos*) 10873 lt_cv_dlopen="load_add_on" 10874 lt_cv_dlopen_libs= 10875 lt_cv_dlopen_self=yes 10876 ;; 10877 10878 mingw* | pw32* | cegcc*) 10879 lt_cv_dlopen="LoadLibrary" 10880 lt_cv_dlopen_libs= 10881 ;; 10882 10883 cygwin*) 10884 lt_cv_dlopen="dlopen" 10885 lt_cv_dlopen_libs= 10886 ;; 10887 10888 darwin*) 10889 # if libdl is installed we need to link against it 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10891$as_echo_n "checking for dlopen in -ldl... " >&6; } 10892if ${ac_cv_lib_dl_dlopen+:} false; then : 10893 $as_echo_n "(cached) " >&6 10894else 10895 ac_check_lib_save_LIBS=$LIBS 10896LIBS="-ldl $LIBS" 10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900/* Override any GCC internal prototype to avoid an error. 10901 Use char because int might match the return type of a GCC 10902 builtin and then its argument prototype would still apply. */ 10903#ifdef __cplusplus 10904extern "C" 10905#endif 10906char dlopen (); 10907int 10908main () 10909{ 10910return dlopen (); 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915if ac_fn_c_try_link "$LINENO"; then : 10916 ac_cv_lib_dl_dlopen=yes 10917else 10918 ac_cv_lib_dl_dlopen=no 10919fi 10920rm -f core conftest.err conftest.$ac_objext \ 10921 conftest$ac_exeext conftest.$ac_ext 10922LIBS=$ac_check_lib_save_LIBS 10923fi 10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10925$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10926if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10928else 10929 10930 lt_cv_dlopen="dyld" 10931 lt_cv_dlopen_libs= 10932 lt_cv_dlopen_self=yes 10933 10934fi 10935 10936 ;; 10937 10938 *) 10939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10940if test "x$ac_cv_func_shl_load" = xyes; then : 10941 lt_cv_dlopen="shl_load" 10942else 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10944$as_echo_n "checking for shl_load in -ldld... " >&6; } 10945if ${ac_cv_lib_dld_shl_load+:} false; then : 10946 $as_echo_n "(cached) " >&6 10947else 10948 ac_check_lib_save_LIBS=$LIBS 10949LIBS="-ldld $LIBS" 10950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10951/* end confdefs.h. */ 10952 10953/* Override any GCC internal prototype to avoid an error. 10954 Use char because int might match the return type of a GCC 10955 builtin and then its argument prototype would still apply. */ 10956#ifdef __cplusplus 10957extern "C" 10958#endif 10959char shl_load (); 10960int 10961main () 10962{ 10963return shl_load (); 10964 ; 10965 return 0; 10966} 10967_ACEOF 10968if ac_fn_c_try_link "$LINENO"; then : 10969 ac_cv_lib_dld_shl_load=yes 10970else 10971 ac_cv_lib_dld_shl_load=no 10972fi 10973rm -f core conftest.err conftest.$ac_objext \ 10974 conftest$ac_exeext conftest.$ac_ext 10975LIBS=$ac_check_lib_save_LIBS 10976fi 10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10978$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10979if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10981else 10982 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10983if test "x$ac_cv_func_dlopen" = xyes; then : 10984 lt_cv_dlopen="dlopen" 10985else 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10987$as_echo_n "checking for dlopen in -ldl... " >&6; } 10988if ${ac_cv_lib_dl_dlopen+:} false; then : 10989 $as_echo_n "(cached) " >&6 10990else 10991 ac_check_lib_save_LIBS=$LIBS 10992LIBS="-ldl $LIBS" 10993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10994/* end confdefs.h. */ 10995 10996/* Override any GCC internal prototype to avoid an error. 10997 Use char because int might match the return type of a GCC 10998 builtin and then its argument prototype would still apply. */ 10999#ifdef __cplusplus 11000extern "C" 11001#endif 11002char dlopen (); 11003int 11004main () 11005{ 11006return dlopen (); 11007 ; 11008 return 0; 11009} 11010_ACEOF 11011if ac_fn_c_try_link "$LINENO"; then : 11012 ac_cv_lib_dl_dlopen=yes 11013else 11014 ac_cv_lib_dl_dlopen=no 11015fi 11016rm -f core conftest.err conftest.$ac_objext \ 11017 conftest$ac_exeext conftest.$ac_ext 11018LIBS=$ac_check_lib_save_LIBS 11019fi 11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11021$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11022if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11024else 11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11026$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11027if ${ac_cv_lib_svld_dlopen+:} false; then : 11028 $as_echo_n "(cached) " >&6 11029else 11030 ac_check_lib_save_LIBS=$LIBS 11031LIBS="-lsvld $LIBS" 11032cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11033/* end confdefs.h. */ 11034 11035/* Override any GCC internal prototype to avoid an error. 11036 Use char because int might match the return type of a GCC 11037 builtin and then its argument prototype would still apply. */ 11038#ifdef __cplusplus 11039extern "C" 11040#endif 11041char dlopen (); 11042int 11043main () 11044{ 11045return dlopen (); 11046 ; 11047 return 0; 11048} 11049_ACEOF 11050if ac_fn_c_try_link "$LINENO"; then : 11051 ac_cv_lib_svld_dlopen=yes 11052else 11053 ac_cv_lib_svld_dlopen=no 11054fi 11055rm -f core conftest.err conftest.$ac_objext \ 11056 conftest$ac_exeext conftest.$ac_ext 11057LIBS=$ac_check_lib_save_LIBS 11058fi 11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11060$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11061if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11063else 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11065$as_echo_n "checking for dld_link in -ldld... " >&6; } 11066if ${ac_cv_lib_dld_dld_link+:} false; then : 11067 $as_echo_n "(cached) " >&6 11068else 11069 ac_check_lib_save_LIBS=$LIBS 11070LIBS="-ldld $LIBS" 11071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11072/* end confdefs.h. */ 11073 11074/* Override any GCC internal prototype to avoid an error. 11075 Use char because int might match the return type of a GCC 11076 builtin and then its argument prototype would still apply. */ 11077#ifdef __cplusplus 11078extern "C" 11079#endif 11080char dld_link (); 11081int 11082main () 11083{ 11084return dld_link (); 11085 ; 11086 return 0; 11087} 11088_ACEOF 11089if ac_fn_c_try_link "$LINENO"; then : 11090 ac_cv_lib_dld_dld_link=yes 11091else 11092 ac_cv_lib_dld_dld_link=no 11093fi 11094rm -f core conftest.err conftest.$ac_objext \ 11095 conftest$ac_exeext conftest.$ac_ext 11096LIBS=$ac_check_lib_save_LIBS 11097fi 11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11099$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11100if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11102fi 11103 11104 11105fi 11106 11107 11108fi 11109 11110 11111fi 11112 11113 11114fi 11115 11116 11117fi 11118 11119 ;; 11120 esac 11121 11122 if test "x$lt_cv_dlopen" != xno; then 11123 enable_dlopen=yes 11124 else 11125 enable_dlopen=no 11126 fi 11127 11128 case $lt_cv_dlopen in 11129 dlopen) 11130 save_CPPFLAGS="$CPPFLAGS" 11131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11132 11133 save_LDFLAGS="$LDFLAGS" 11134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11135 11136 save_LIBS="$LIBS" 11137 LIBS="$lt_cv_dlopen_libs $LIBS" 11138 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11140$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11141if ${lt_cv_dlopen_self+:} false; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 if test "$cross_compiling" = yes; then : 11145 lt_cv_dlopen_self=cross 11146else 11147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11148 lt_status=$lt_dlunknown 11149 cat > conftest.$ac_ext <<_LT_EOF 11150#line $LINENO "configure" 11151#include "confdefs.h" 11152 11153#if HAVE_DLFCN_H 11154#include <dlfcn.h> 11155#endif 11156 11157#include <stdio.h> 11158 11159#ifdef RTLD_GLOBAL 11160# define LT_DLGLOBAL RTLD_GLOBAL 11161#else 11162# ifdef DL_GLOBAL 11163# define LT_DLGLOBAL DL_GLOBAL 11164# else 11165# define LT_DLGLOBAL 0 11166# endif 11167#endif 11168 11169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11170 find out it does not work in some platform. */ 11171#ifndef LT_DLLAZY_OR_NOW 11172# ifdef RTLD_LAZY 11173# define LT_DLLAZY_OR_NOW RTLD_LAZY 11174# else 11175# ifdef DL_LAZY 11176# define LT_DLLAZY_OR_NOW DL_LAZY 11177# else 11178# ifdef RTLD_NOW 11179# define LT_DLLAZY_OR_NOW RTLD_NOW 11180# else 11181# ifdef DL_NOW 11182# define LT_DLLAZY_OR_NOW DL_NOW 11183# else 11184# define LT_DLLAZY_OR_NOW 0 11185# endif 11186# endif 11187# endif 11188# endif 11189#endif 11190 11191/* When -fvisbility=hidden is used, assume the code has been annotated 11192 correspondingly for the symbols needed. */ 11193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11194int fnord () __attribute__((visibility("default"))); 11195#endif 11196 11197int fnord () { return 42; } 11198int main () 11199{ 11200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11201 int status = $lt_dlunknown; 11202 11203 if (self) 11204 { 11205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11206 else 11207 { 11208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11209 else puts (dlerror ()); 11210 } 11211 /* dlclose (self); */ 11212 } 11213 else 11214 puts (dlerror ()); 11215 11216 return status; 11217} 11218_LT_EOF 11219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11220 (eval $ac_link) 2>&5 11221 ac_status=$? 11222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11224 (./conftest; exit; ) >&5 2>/dev/null 11225 lt_status=$? 11226 case x$lt_status in 11227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11229 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11230 esac 11231 else : 11232 # compilation failed 11233 lt_cv_dlopen_self=no 11234 fi 11235fi 11236rm -fr conftest* 11237 11238 11239fi 11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11241$as_echo "$lt_cv_dlopen_self" >&6; } 11242 11243 if test "x$lt_cv_dlopen_self" = xyes; then 11244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11246$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11247if ${lt_cv_dlopen_self_static+:} false; then : 11248 $as_echo_n "(cached) " >&6 11249else 11250 if test "$cross_compiling" = yes; then : 11251 lt_cv_dlopen_self_static=cross 11252else 11253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11254 lt_status=$lt_dlunknown 11255 cat > conftest.$ac_ext <<_LT_EOF 11256#line $LINENO "configure" 11257#include "confdefs.h" 11258 11259#if HAVE_DLFCN_H 11260#include <dlfcn.h> 11261#endif 11262 11263#include <stdio.h> 11264 11265#ifdef RTLD_GLOBAL 11266# define LT_DLGLOBAL RTLD_GLOBAL 11267#else 11268# ifdef DL_GLOBAL 11269# define LT_DLGLOBAL DL_GLOBAL 11270# else 11271# define LT_DLGLOBAL 0 11272# endif 11273#endif 11274 11275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11276 find out it does not work in some platform. */ 11277#ifndef LT_DLLAZY_OR_NOW 11278# ifdef RTLD_LAZY 11279# define LT_DLLAZY_OR_NOW RTLD_LAZY 11280# else 11281# ifdef DL_LAZY 11282# define LT_DLLAZY_OR_NOW DL_LAZY 11283# else 11284# ifdef RTLD_NOW 11285# define LT_DLLAZY_OR_NOW RTLD_NOW 11286# else 11287# ifdef DL_NOW 11288# define LT_DLLAZY_OR_NOW DL_NOW 11289# else 11290# define LT_DLLAZY_OR_NOW 0 11291# endif 11292# endif 11293# endif 11294# endif 11295#endif 11296 11297/* When -fvisbility=hidden is used, assume the code has been annotated 11298 correspondingly for the symbols needed. */ 11299#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11300int fnord () __attribute__((visibility("default"))); 11301#endif 11302 11303int fnord () { return 42; } 11304int main () 11305{ 11306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11307 int status = $lt_dlunknown; 11308 11309 if (self) 11310 { 11311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11312 else 11313 { 11314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11315 else puts (dlerror ()); 11316 } 11317 /* dlclose (self); */ 11318 } 11319 else 11320 puts (dlerror ()); 11321 11322 return status; 11323} 11324_LT_EOF 11325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11326 (eval $ac_link) 2>&5 11327 ac_status=$? 11328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11329 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11330 (./conftest; exit; ) >&5 2>/dev/null 11331 lt_status=$? 11332 case x$lt_status in 11333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11335 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11336 esac 11337 else : 11338 # compilation failed 11339 lt_cv_dlopen_self_static=no 11340 fi 11341fi 11342rm -fr conftest* 11343 11344 11345fi 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11347$as_echo "$lt_cv_dlopen_self_static" >&6; } 11348 fi 11349 11350 CPPFLAGS="$save_CPPFLAGS" 11351 LDFLAGS="$save_LDFLAGS" 11352 LIBS="$save_LIBS" 11353 ;; 11354 esac 11355 11356 case $lt_cv_dlopen_self in 11357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11358 *) enable_dlopen_self=unknown ;; 11359 esac 11360 11361 case $lt_cv_dlopen_self_static in 11362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11363 *) enable_dlopen_self_static=unknown ;; 11364 esac 11365fi 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383striplib= 11384old_striplib= 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11386$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11387if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11389 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11391$as_echo "yes" >&6; } 11392else 11393# FIXME - insert some real tests, host_os isn't really good enough 11394 case $host_os in 11395 darwin*) 11396 if test -n "$STRIP" ; then 11397 striplib="$STRIP -x" 11398 old_striplib="$STRIP -S" 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11400$as_echo "yes" >&6; } 11401 else 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11403$as_echo "no" >&6; } 11404 fi 11405 ;; 11406 *) 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11408$as_echo "no" >&6; } 11409 ;; 11410 esac 11411fi 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 # Report which library types will actually be built 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11426$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11428$as_echo "$can_build_shared" >&6; } 11429 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11431$as_echo_n "checking whether to build shared libraries... " >&6; } 11432 test "$can_build_shared" = "no" && enable_shared=no 11433 11434 # On AIX, shared libraries and static libraries use the same namespace, and 11435 # are all built from PIC. 11436 case $host_os in 11437 aix3*) 11438 test "$enable_shared" = yes && enable_static=no 11439 if test -n "$RANLIB"; then 11440 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11441 postinstall_cmds='$RANLIB $lib' 11442 fi 11443 ;; 11444 11445 aix[4-9]*) 11446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11447 test "$enable_shared" = yes && enable_static=no 11448 fi 11449 ;; 11450 esac 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11452$as_echo "$enable_shared" >&6; } 11453 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11455$as_echo_n "checking whether to build static libraries... " >&6; } 11456 # Make sure either enable_shared or enable_static is yes. 11457 test "$enable_shared" = yes || enable_static=yes 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11459$as_echo "$enable_static" >&6; } 11460 11461 11462 11463 11464fi 11465ac_ext=c 11466ac_cpp='$CPP $CPPFLAGS' 11467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11469ac_compiler_gnu=$ac_cv_c_compiler_gnu 11470 11471CC="$lt_save_CC" 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 ac_config_commands="$ac_config_commands libtool" 11486 11487 11488 11489 11490# Only expand once: 11491 11492 11493 11494LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION 11495LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE` 11496LT_REVISION=$SDL_INTERFACE_AGE 11497LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE` 11498 11499 11500 11501 11502 11503 11504 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 11506$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 11507if ${ac_cv_c_bigendian+:} false; then : 11508 $as_echo_n "(cached) " >&6 11509else 11510 ac_cv_c_bigendian=unknown 11511 # See if we're dealing with a universal compiler. 11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11513/* end confdefs.h. */ 11514#ifndef __APPLE_CC__ 11515 not a universal capable compiler 11516 #endif 11517 typedef int dummy; 11518 11519_ACEOF 11520if ac_fn_c_try_compile "$LINENO"; then : 11521 11522 # Check for potential -arch flags. It is not universal unless 11523 # there are at least two -arch flags with different values. 11524 ac_arch= 11525 ac_prev= 11526 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 11527 if test -n "$ac_prev"; then 11528 case $ac_word in 11529 i?86 | x86_64 | ppc | ppc64) 11530 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 11531 ac_arch=$ac_word 11532 else 11533 ac_cv_c_bigendian=universal 11534 break 11535 fi 11536 ;; 11537 esac 11538 ac_prev= 11539 elif test "x$ac_word" = "x-arch"; then 11540 ac_prev=arch 11541 fi 11542 done 11543fi 11544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11545 if test $ac_cv_c_bigendian = unknown; then 11546 # See if sys/param.h defines the BYTE_ORDER macro. 11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11548/* end confdefs.h. */ 11549#include <sys/types.h> 11550 #include <sys/param.h> 11551 11552int 11553main () 11554{ 11555#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 11556 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 11557 && LITTLE_ENDIAN) 11558 bogus endian macros 11559 #endif 11560 11561 ; 11562 return 0; 11563} 11564_ACEOF 11565if ac_fn_c_try_compile "$LINENO"; then : 11566 # It does; now see whether it defined to BIG_ENDIAN or not. 11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11568/* end confdefs.h. */ 11569#include <sys/types.h> 11570 #include <sys/param.h> 11571 11572int 11573main () 11574{ 11575#if BYTE_ORDER != BIG_ENDIAN 11576 not big endian 11577 #endif 11578 11579 ; 11580 return 0; 11581} 11582_ACEOF 11583if ac_fn_c_try_compile "$LINENO"; then : 11584 ac_cv_c_bigendian=yes 11585else 11586 ac_cv_c_bigendian=no 11587fi 11588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11589fi 11590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11591 fi 11592 if test $ac_cv_c_bigendian = unknown; then 11593 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11595/* end confdefs.h. */ 11596#include <limits.h> 11597 11598int 11599main () 11600{ 11601#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11602 bogus endian macros 11603 #endif 11604 11605 ; 11606 return 0; 11607} 11608_ACEOF 11609if ac_fn_c_try_compile "$LINENO"; then : 11610 # It does; now see whether it defined to _BIG_ENDIAN or not. 11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11612/* end confdefs.h. */ 11613#include <limits.h> 11614 11615int 11616main () 11617{ 11618#ifndef _BIG_ENDIAN 11619 not big endian 11620 #endif 11621 11622 ; 11623 return 0; 11624} 11625_ACEOF 11626if ac_fn_c_try_compile "$LINENO"; then : 11627 ac_cv_c_bigendian=yes 11628else 11629 ac_cv_c_bigendian=no 11630fi 11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11632fi 11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11634 fi 11635 if test $ac_cv_c_bigendian = unknown; then 11636 # Compile a test program. 11637 if test "$cross_compiling" = yes; then : 11638 # Try to guess by grepping values from an object file. 11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11640/* end confdefs.h. */ 11641short int ascii_mm[] = 11642 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11643 short int ascii_ii[] = 11644 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11645 int use_ascii (int i) { 11646 return ascii_mm[i] + ascii_ii[i]; 11647 } 11648 short int ebcdic_ii[] = 11649 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11650 short int ebcdic_mm[] = 11651 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11652 int use_ebcdic (int i) { 11653 return ebcdic_mm[i] + ebcdic_ii[i]; 11654 } 11655 extern int foo; 11656 11657int 11658main () 11659{ 11660return use_ascii (foo) == use_ebcdic (foo); 11661 ; 11662 return 0; 11663} 11664_ACEOF 11665if ac_fn_c_try_compile "$LINENO"; then : 11666 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11667 ac_cv_c_bigendian=yes 11668 fi 11669 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11670 if test "$ac_cv_c_bigendian" = unknown; then 11671 ac_cv_c_bigendian=no 11672 else 11673 # finding both strings is unlikely to happen, but who knows? 11674 ac_cv_c_bigendian=unknown 11675 fi 11676 fi 11677fi 11678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11679else 11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11681/* end confdefs.h. */ 11682$ac_includes_default 11683int 11684main () 11685{ 11686 11687 /* Are we little or big endian? From Harbison&Steele. */ 11688 union 11689 { 11690 long int l; 11691 char c[sizeof (long int)]; 11692 } u; 11693 u.l = 1; 11694 return u.c[sizeof (long int) - 1] == 1; 11695 11696 ; 11697 return 0; 11698} 11699_ACEOF 11700if ac_fn_c_try_run "$LINENO"; then : 11701 ac_cv_c_bigendian=no 11702else 11703 ac_cv_c_bigendian=yes 11704fi 11705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11706 conftest.$ac_objext conftest.beam conftest.$ac_ext 11707fi 11708 11709 fi 11710fi 11711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11712$as_echo "$ac_cv_c_bigendian" >&6; } 11713 case $ac_cv_c_bigendian in #( 11714 yes) 11715 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11716;; #( 11717 no) 11718 ;; #( 11719 universal) 11720 11721$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11722 11723 ;; #( 11724 *) 11725 as_fn_error $? "unknown endianness 11726 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11727 esac 11728 11729if test x$ac_cv_c_bigendian = xyes; then 11730 $as_echo "#define SDL_BYTEORDER 4321" >>confdefs.h 11731 11732else 11733 $as_echo "#define SDL_BYTEORDER 1234" >>confdefs.h 11734 11735fi 11736 11737 11738ac_ext=c 11739ac_cpp='$CPP $CPPFLAGS' 11740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11742ac_compiler_gnu=$ac_cv_c_compiler_gnu 11743if test -n "$ac_tool_prefix"; then 11744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11745set dummy ${ac_tool_prefix}gcc; ac_word=$2 11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11747$as_echo_n "checking for $ac_word... " >&6; } 11748if ${ac_cv_prog_CC+:} false; then : 11749 $as_echo_n "(cached) " >&6 11750else 11751 if test -n "$CC"; then 11752 ac_cv_prog_CC="$CC" # Let the user override the test. 11753else 11754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11755for as_dir in $PATH 11756do 11757 IFS=$as_save_IFS 11758 test -z "$as_dir" && as_dir=. 11759 for ac_exec_ext in '' $ac_executable_extensions; do 11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11761 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11763 break 2 11764 fi 11765done 11766 done 11767IFS=$as_save_IFS 11768 11769fi 11770fi 11771CC=$ac_cv_prog_CC 11772if test -n "$CC"; then 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11774$as_echo "$CC" >&6; } 11775else 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11777$as_echo "no" >&6; } 11778fi 11779 11780 11781fi 11782if test -z "$ac_cv_prog_CC"; then 11783 ac_ct_CC=$CC 11784 # Extract the first word of "gcc", so it can be a program name with args. 11785set dummy gcc; ac_word=$2 11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11787$as_echo_n "checking for $ac_word... " >&6; } 11788if ${ac_cv_prog_ac_ct_CC+:} false; then : 11789 $as_echo_n "(cached) " >&6 11790else 11791 if test -n "$ac_ct_CC"; then 11792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11793else 11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11795for as_dir in $PATH 11796do 11797 IFS=$as_save_IFS 11798 test -z "$as_dir" && as_dir=. 11799 for ac_exec_ext in '' $ac_executable_extensions; do 11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11801 ac_cv_prog_ac_ct_CC="gcc" 11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11803 break 2 11804 fi 11805done 11806 done 11807IFS=$as_save_IFS 11808 11809fi 11810fi 11811ac_ct_CC=$ac_cv_prog_ac_ct_CC 11812if test -n "$ac_ct_CC"; then 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11814$as_echo "$ac_ct_CC" >&6; } 11815else 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11817$as_echo "no" >&6; } 11818fi 11819 11820 if test "x$ac_ct_CC" = x; then 11821 CC="" 11822 else 11823 case $cross_compiling:$ac_tool_warned in 11824yes:) 11825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11827ac_tool_warned=yes ;; 11828esac 11829 CC=$ac_ct_CC 11830 fi 11831else 11832 CC="$ac_cv_prog_CC" 11833fi 11834 11835if test -z "$CC"; then 11836 if test -n "$ac_tool_prefix"; then 11837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11838set dummy ${ac_tool_prefix}cc; ac_word=$2 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11840$as_echo_n "checking for $ac_word... " >&6; } 11841if ${ac_cv_prog_CC+:} false; then : 11842 $as_echo_n "(cached) " >&6 11843else 11844 if test -n "$CC"; then 11845 ac_cv_prog_CC="$CC" # Let the user override the test. 11846else 11847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11848for as_dir in $PATH 11849do 11850 IFS=$as_save_IFS 11851 test -z "$as_dir" && as_dir=. 11852 for ac_exec_ext in '' $ac_executable_extensions; do 11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11854 ac_cv_prog_CC="${ac_tool_prefix}cc" 11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11856 break 2 11857 fi 11858done 11859 done 11860IFS=$as_save_IFS 11861 11862fi 11863fi 11864CC=$ac_cv_prog_CC 11865if test -n "$CC"; then 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11867$as_echo "$CC" >&6; } 11868else 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11870$as_echo "no" >&6; } 11871fi 11872 11873 11874 fi 11875fi 11876if test -z "$CC"; then 11877 # Extract the first word of "cc", so it can be a program name with args. 11878set dummy cc; ac_word=$2 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11880$as_echo_n "checking for $ac_word... " >&6; } 11881if ${ac_cv_prog_CC+:} false; then : 11882 $as_echo_n "(cached) " >&6 11883else 11884 if test -n "$CC"; then 11885 ac_cv_prog_CC="$CC" # Let the user override the test. 11886else 11887 ac_prog_rejected=no 11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11889for as_dir in $PATH 11890do 11891 IFS=$as_save_IFS 11892 test -z "$as_dir" && as_dir=. 11893 for ac_exec_ext in '' $ac_executable_extensions; do 11894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11896 ac_prog_rejected=yes 11897 continue 11898 fi 11899 ac_cv_prog_CC="cc" 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11901 break 2 11902 fi 11903done 11904 done 11905IFS=$as_save_IFS 11906 11907if test $ac_prog_rejected = yes; then 11908 # We found a bogon in the path, so make sure we never use it. 11909 set dummy $ac_cv_prog_CC 11910 shift 11911 if test $# != 0; then 11912 # We chose a different compiler from the bogus one. 11913 # However, it has the same basename, so the bogon will be chosen 11914 # first if we set CC to just the basename; use the full file name. 11915 shift 11916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11917 fi 11918fi 11919fi 11920fi 11921CC=$ac_cv_prog_CC 11922if test -n "$CC"; then 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11924$as_echo "$CC" >&6; } 11925else 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11927$as_echo "no" >&6; } 11928fi 11929 11930 11931fi 11932if test -z "$CC"; then 11933 if test -n "$ac_tool_prefix"; then 11934 for ac_prog in cl.exe 11935 do 11936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11937set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11939$as_echo_n "checking for $ac_word... " >&6; } 11940if ${ac_cv_prog_CC+:} false; then : 11941 $as_echo_n "(cached) " >&6 11942else 11943 if test -n "$CC"; then 11944 ac_cv_prog_CC="$CC" # Let the user override the test. 11945else 11946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11947for as_dir in $PATH 11948do 11949 IFS=$as_save_IFS 11950 test -z "$as_dir" && as_dir=. 11951 for ac_exec_ext in '' $ac_executable_extensions; do 11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11955 break 2 11956 fi 11957done 11958 done 11959IFS=$as_save_IFS 11960 11961fi 11962fi 11963CC=$ac_cv_prog_CC 11964if test -n "$CC"; then 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11966$as_echo "$CC" >&6; } 11967else 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11969$as_echo "no" >&6; } 11970fi 11971 11972 11973 test -n "$CC" && break 11974 done 11975fi 11976if test -z "$CC"; then 11977 ac_ct_CC=$CC 11978 for ac_prog in cl.exe 11979do 11980 # Extract the first word of "$ac_prog", so it can be a program name with args. 11981set dummy $ac_prog; ac_word=$2 11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11983$as_echo_n "checking for $ac_word... " >&6; } 11984if ${ac_cv_prog_ac_ct_CC+:} false; then : 11985 $as_echo_n "(cached) " >&6 11986else 11987 if test -n "$ac_ct_CC"; then 11988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11989else 11990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11991for as_dir in $PATH 11992do 11993 IFS=$as_save_IFS 11994 test -z "$as_dir" && as_dir=. 11995 for ac_exec_ext in '' $ac_executable_extensions; do 11996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11997 ac_cv_prog_ac_ct_CC="$ac_prog" 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11999 break 2 12000 fi 12001done 12002 done 12003IFS=$as_save_IFS 12004 12005fi 12006fi 12007ac_ct_CC=$ac_cv_prog_ac_ct_CC 12008if test -n "$ac_ct_CC"; then 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12010$as_echo "$ac_ct_CC" >&6; } 12011else 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12013$as_echo "no" >&6; } 12014fi 12015 12016 12017 test -n "$ac_ct_CC" && break 12018done 12019 12020 if test "x$ac_ct_CC" = x; then 12021 CC="" 12022 else 12023 case $cross_compiling:$ac_tool_warned in 12024yes:) 12025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12027ac_tool_warned=yes ;; 12028esac 12029 CC=$ac_ct_CC 12030 fi 12031fi 12032 12033fi 12034 12035 12036test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12038as_fn_error $? "no acceptable C compiler found in \$PATH 12039See \`config.log' for more details" "$LINENO" 5 ; } 12040 12041# Provide some information about the compiler. 12042$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12043set X $ac_compile 12044ac_compiler=$2 12045for ac_option in --version -v -V -qversion; do 12046 { { ac_try="$ac_compiler $ac_option >&5" 12047case "(($ac_try" in 12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12049 *) ac_try_echo=$ac_try;; 12050esac 12051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12052$as_echo "$ac_try_echo"; } >&5 12053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12054 ac_status=$? 12055 if test -s conftest.err; then 12056 sed '10a\ 12057... rest of stderr output deleted ... 12058 10q' conftest.err >conftest.er1 12059 cat conftest.er1 >&5 12060 fi 12061 rm -f conftest.er1 conftest.err 12062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12063 test $ac_status = 0; } 12064done 12065 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12067$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12068if ${ac_cv_c_compiler_gnu+:} false; then : 12069 $as_echo_n "(cached) " >&6 12070else 12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12072/* end confdefs.h. */ 12073 12074int 12075main () 12076{ 12077#ifndef __GNUC__ 12078 choke me 12079#endif 12080 12081 ; 12082 return 0; 12083} 12084_ACEOF 12085if ac_fn_c_try_compile "$LINENO"; then : 12086 ac_compiler_gnu=yes 12087else 12088 ac_compiler_gnu=no 12089fi 12090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12091ac_cv_c_compiler_gnu=$ac_compiler_gnu 12092 12093fi 12094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12095$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12096if test $ac_compiler_gnu = yes; then 12097 GCC=yes 12098else 12099 GCC= 12100fi 12101ac_test_CFLAGS=${CFLAGS+set} 12102ac_save_CFLAGS=$CFLAGS 12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12104$as_echo_n "checking whether $CC accepts -g... " >&6; } 12105if ${ac_cv_prog_cc_g+:} false; then : 12106 $as_echo_n "(cached) " >&6 12107else 12108 ac_save_c_werror_flag=$ac_c_werror_flag 12109 ac_c_werror_flag=yes 12110 ac_cv_prog_cc_g=no 12111 CFLAGS="-g" 12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12113/* end confdefs.h. */ 12114 12115int 12116main () 12117{ 12118 12119 ; 12120 return 0; 12121} 12122_ACEOF 12123if ac_fn_c_try_compile "$LINENO"; then : 12124 ac_cv_prog_cc_g=yes 12125else 12126 CFLAGS="" 12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12128/* end confdefs.h. */ 12129 12130int 12131main () 12132{ 12133 12134 ; 12135 return 0; 12136} 12137_ACEOF 12138if ac_fn_c_try_compile "$LINENO"; then : 12139 12140else 12141 ac_c_werror_flag=$ac_save_c_werror_flag 12142 CFLAGS="-g" 12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12144/* end confdefs.h. */ 12145 12146int 12147main () 12148{ 12149 12150 ; 12151 return 0; 12152} 12153_ACEOF 12154if ac_fn_c_try_compile "$LINENO"; then : 12155 ac_cv_prog_cc_g=yes 12156fi 12157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12158fi 12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12160fi 12161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12162 ac_c_werror_flag=$ac_save_c_werror_flag 12163fi 12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12165$as_echo "$ac_cv_prog_cc_g" >&6; } 12166if test "$ac_test_CFLAGS" = set; then 12167 CFLAGS=$ac_save_CFLAGS 12168elif test $ac_cv_prog_cc_g = yes; then 12169 if test "$GCC" = yes; then 12170 CFLAGS="-g -O2" 12171 else 12172 CFLAGS="-g" 12173 fi 12174else 12175 if test "$GCC" = yes; then 12176 CFLAGS="-O2" 12177 else 12178 CFLAGS= 12179 fi 12180fi 12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12182$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12183if ${ac_cv_prog_cc_c89+:} false; then : 12184 $as_echo_n "(cached) " >&6 12185else 12186 ac_cv_prog_cc_c89=no 12187ac_save_CC=$CC 12188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189/* end confdefs.h. */ 12190#include <stdarg.h> 12191#include <stdio.h> 12192#include <sys/types.h> 12193#include <sys/stat.h> 12194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12195struct buf { int x; }; 12196FILE * (*rcsopen) (struct buf *, struct stat *, int); 12197static char *e (p, i) 12198 char **p; 12199 int i; 12200{ 12201 return p[i]; 12202} 12203static char *f (char * (*g) (char **, int), char **p, ...) 12204{ 12205 char *s; 12206 va_list v; 12207 va_start (v,p); 12208 s = g (p, va_arg (v,int)); 12209 va_end (v); 12210 return s; 12211} 12212 12213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12214 function prototypes and stuff, but not '\xHH' hex character constants. 12215 These don't provoke an error unfortunately, instead are silently treated 12216 as 'x'. The following induces an error, until -std is added to get 12217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12218 array size at least. It's necessary to write '\x00'==0 to get something 12219 that's true only with -std. */ 12220int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12221 12222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12223 inside strings and character constants. */ 12224#define FOO(x) 'x' 12225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12226 12227int test (int i, double x); 12228struct s1 {int (*f) (int a);}; 12229struct s2 {int (*f) (double a);}; 12230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12231int argc; 12232char **argv; 12233int 12234main () 12235{ 12236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12237 ; 12238 return 0; 12239} 12240_ACEOF 12241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12243do 12244 CC="$ac_save_CC $ac_arg" 12245 if ac_fn_c_try_compile "$LINENO"; then : 12246 ac_cv_prog_cc_c89=$ac_arg 12247fi 12248rm -f core conftest.err conftest.$ac_objext 12249 test "x$ac_cv_prog_cc_c89" != "xno" && break 12250done 12251rm -f conftest.$ac_ext 12252CC=$ac_save_CC 12253 12254fi 12255# AC_CACHE_VAL 12256case "x$ac_cv_prog_cc_c89" in 12257 x) 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12259$as_echo "none needed" >&6; } ;; 12260 xno) 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12262$as_echo "unsupported" >&6; } ;; 12263 *) 12264 CC="$CC $ac_cv_prog_cc_c89" 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12267esac 12268if test "x$ac_cv_prog_cc_c89" != xno; then : 12269 12270fi 12271 12272ac_ext=c 12273ac_cpp='$CPP $CPPFLAGS' 12274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12276ac_compiler_gnu=$ac_cv_c_compiler_gnu 12277 12278ac_ext=cpp 12279ac_cpp='$CXXCPP $CPPFLAGS' 12280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12283if test -z "$CXX"; then 12284 if test -n "$CCC"; then 12285 CXX=$CCC 12286 else 12287 if test -n "$ac_tool_prefix"; then 12288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12289 do 12290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12291set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12293$as_echo_n "checking for $ac_word... " >&6; } 12294if ${ac_cv_prog_CXX+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 if test -n "$CXX"; then 12298 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12299else 12300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12301for as_dir in $PATH 12302do 12303 IFS=$as_save_IFS 12304 test -z "$as_dir" && as_dir=. 12305 for ac_exec_ext in '' $ac_executable_extensions; do 12306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12309 break 2 12310 fi 12311done 12312 done 12313IFS=$as_save_IFS 12314 12315fi 12316fi 12317CXX=$ac_cv_prog_CXX 12318if test -n "$CXX"; then 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12320$as_echo "$CXX" >&6; } 12321else 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12323$as_echo "no" >&6; } 12324fi 12325 12326 12327 test -n "$CXX" && break 12328 done 12329fi 12330if test -z "$CXX"; then 12331 ac_ct_CXX=$CXX 12332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12333do 12334 # Extract the first word of "$ac_prog", so it can be a program name with args. 12335set dummy $ac_prog; ac_word=$2 12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12337$as_echo_n "checking for $ac_word... " >&6; } 12338if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 if test -n "$ac_ct_CXX"; then 12342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12343else 12344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12345for as_dir in $PATH 12346do 12347 IFS=$as_save_IFS 12348 test -z "$as_dir" && as_dir=. 12349 for ac_exec_ext in '' $ac_executable_extensions; do 12350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12351 ac_cv_prog_ac_ct_CXX="$ac_prog" 12352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12353 break 2 12354 fi 12355done 12356 done 12357IFS=$as_save_IFS 12358 12359fi 12360fi 12361ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12362if test -n "$ac_ct_CXX"; then 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12364$as_echo "$ac_ct_CXX" >&6; } 12365else 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12367$as_echo "no" >&6; } 12368fi 12369 12370 12371 test -n "$ac_ct_CXX" && break 12372done 12373 12374 if test "x$ac_ct_CXX" = x; then 12375 CXX="g++" 12376 else 12377 case $cross_compiling:$ac_tool_warned in 12378yes:) 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12381ac_tool_warned=yes ;; 12382esac 12383 CXX=$ac_ct_CXX 12384 fi 12385fi 12386 12387 fi 12388fi 12389# Provide some information about the compiler. 12390$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12391set X $ac_compile 12392ac_compiler=$2 12393for ac_option in --version -v -V -qversion; do 12394 { { ac_try="$ac_compiler $ac_option >&5" 12395case "(($ac_try" in 12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12397 *) ac_try_echo=$ac_try;; 12398esac 12399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12400$as_echo "$ac_try_echo"; } >&5 12401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12402 ac_status=$? 12403 if test -s conftest.err; then 12404 sed '10a\ 12405... rest of stderr output deleted ... 12406 10q' conftest.err >conftest.er1 12407 cat conftest.er1 >&5 12408 fi 12409 rm -f conftest.er1 conftest.err 12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12411 test $ac_status = 0; } 12412done 12413 12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12415$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12416if ${ac_cv_cxx_compiler_gnu+:} false; then : 12417 $as_echo_n "(cached) " >&6 12418else 12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12420/* end confdefs.h. */ 12421 12422int 12423main () 12424{ 12425#ifndef __GNUC__ 12426 choke me 12427#endif 12428 12429 ; 12430 return 0; 12431} 12432_ACEOF 12433if ac_fn_cxx_try_compile "$LINENO"; then : 12434 ac_compiler_gnu=yes 12435else 12436 ac_compiler_gnu=no 12437fi 12438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12439ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12440 12441fi 12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12443$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12444if test $ac_compiler_gnu = yes; then 12445 GXX=yes 12446else 12447 GXX= 12448fi 12449ac_test_CXXFLAGS=${CXXFLAGS+set} 12450ac_save_CXXFLAGS=$CXXFLAGS 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12452$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12453if ${ac_cv_prog_cxx_g+:} false; then : 12454 $as_echo_n "(cached) " >&6 12455else 12456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12457 ac_cxx_werror_flag=yes 12458 ac_cv_prog_cxx_g=no 12459 CXXFLAGS="-g" 12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12461/* end confdefs.h. */ 12462 12463int 12464main () 12465{ 12466 12467 ; 12468 return 0; 12469} 12470_ACEOF 12471if ac_fn_cxx_try_compile "$LINENO"; then : 12472 ac_cv_prog_cxx_g=yes 12473else 12474 CXXFLAGS="" 12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12476/* end confdefs.h. */ 12477 12478int 12479main () 12480{ 12481 12482 ; 12483 return 0; 12484} 12485_ACEOF 12486if ac_fn_cxx_try_compile "$LINENO"; then : 12487 12488else 12489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12490 CXXFLAGS="-g" 12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12492/* end confdefs.h. */ 12493 12494int 12495main () 12496{ 12497 12498 ; 12499 return 0; 12500} 12501_ACEOF 12502if ac_fn_cxx_try_compile "$LINENO"; then : 12503 ac_cv_prog_cxx_g=yes 12504fi 12505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12506fi 12507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12508fi 12509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12511fi 12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12513$as_echo "$ac_cv_prog_cxx_g" >&6; } 12514if test "$ac_test_CXXFLAGS" = set; then 12515 CXXFLAGS=$ac_save_CXXFLAGS 12516elif test $ac_cv_prog_cxx_g = yes; then 12517 if test "$GXX" = yes; then 12518 CXXFLAGS="-g -O2" 12519 else 12520 CXXFLAGS="-g" 12521 fi 12522else 12523 if test "$GXX" = yes; then 12524 CXXFLAGS="-O2" 12525 else 12526 CXXFLAGS= 12527 fi 12528fi 12529ac_ext=c 12530ac_cpp='$CPP $CPPFLAGS' 12531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12533ac_compiler_gnu=$ac_cv_c_compiler_gnu 12534 12535 12536 12537func_stripname_cnf () 12538{ 12539 case ${2} in 12540 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12541 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12542 esac 12543} # func_stripname_cnf 12544 12545 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12546 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12547 (test "X$CXX" != "Xg++"))) ; then 12548 ac_ext=cpp 12549ac_cpp='$CXXCPP $CPPFLAGS' 12550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12554$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12555if test -z "$CXXCPP"; then 12556 if ${ac_cv_prog_CXXCPP+:} false; then : 12557 $as_echo_n "(cached) " >&6 12558else 12559 # Double quotes because CXXCPP needs to be expanded 12560 for CXXCPP in "$CXX -E" "/lib/cpp" 12561 do 12562 ac_preproc_ok=false 12563for ac_cxx_preproc_warn_flag in '' yes 12564do 12565 # Use a header file that comes with gcc, so configuring glibc 12566 # with a fresh cross-compiler works. 12567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12568 # <limits.h> exists even on freestanding compilers. 12569 # On the NeXT, cc -E runs the code through the compiler's parser, 12570 # not just through cpp. "Syntax error" is here to catch this case. 12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12572/* end confdefs.h. */ 12573#ifdef __STDC__ 12574# include <limits.h> 12575#else 12576# include <assert.h> 12577#endif 12578 Syntax error 12579_ACEOF 12580if ac_fn_cxx_try_cpp "$LINENO"; then : 12581 12582else 12583 # Broken: fails on valid input. 12584continue 12585fi 12586rm -f conftest.err conftest.i conftest.$ac_ext 12587 12588 # OK, works on sane cases. Now check whether nonexistent headers 12589 # can be detected and how. 12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12591/* end confdefs.h. */ 12592#include <ac_nonexistent.h> 12593_ACEOF 12594if ac_fn_cxx_try_cpp "$LINENO"; then : 12595 # Broken: success on invalid input. 12596continue 12597else 12598 # Passes both tests. 12599ac_preproc_ok=: 12600break 12601fi 12602rm -f conftest.err conftest.i conftest.$ac_ext 12603 12604done 12605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12606rm -f conftest.i conftest.err conftest.$ac_ext 12607if $ac_preproc_ok; then : 12608 break 12609fi 12610 12611 done 12612 ac_cv_prog_CXXCPP=$CXXCPP 12613 12614fi 12615 CXXCPP=$ac_cv_prog_CXXCPP 12616else 12617 ac_cv_prog_CXXCPP=$CXXCPP 12618fi 12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12620$as_echo "$CXXCPP" >&6; } 12621ac_preproc_ok=false 12622for ac_cxx_preproc_warn_flag in '' yes 12623do 12624 # Use a header file that comes with gcc, so configuring glibc 12625 # with a fresh cross-compiler works. 12626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12627 # <limits.h> exists even on freestanding compilers. 12628 # On the NeXT, cc -E runs the code through the compiler's parser, 12629 # not just through cpp. "Syntax error" is here to catch this case. 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632#ifdef __STDC__ 12633# include <limits.h> 12634#else 12635# include <assert.h> 12636#endif 12637 Syntax error 12638_ACEOF 12639if ac_fn_cxx_try_cpp "$LINENO"; then : 12640 12641else 12642 # Broken: fails on valid input. 12643continue 12644fi 12645rm -f conftest.err conftest.i conftest.$ac_ext 12646 12647 # OK, works on sane cases. Now check whether nonexistent headers 12648 # can be detected and how. 12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12650/* end confdefs.h. */ 12651#include <ac_nonexistent.h> 12652_ACEOF 12653if ac_fn_cxx_try_cpp "$LINENO"; then : 12654 # Broken: success on invalid input. 12655continue 12656else 12657 # Passes both tests. 12658ac_preproc_ok=: 12659break 12660fi 12661rm -f conftest.err conftest.i conftest.$ac_ext 12662 12663done 12664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12665rm -f conftest.i conftest.err conftest.$ac_ext 12666if $ac_preproc_ok; then : 12667 12668else 12669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12671as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12672See \`config.log' for more details" "$LINENO" 5 ; } 12673fi 12674 12675ac_ext=c 12676ac_cpp='$CPP $CPPFLAGS' 12677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12679ac_compiler_gnu=$ac_cv_c_compiler_gnu 12680 12681else 12682 _lt_caught_CXX_error=yes 12683fi 12684 12685ac_ext=cpp 12686ac_cpp='$CXXCPP $CPPFLAGS' 12687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12690 12691archive_cmds_need_lc_CXX=no 12692allow_undefined_flag_CXX= 12693always_export_symbols_CXX=no 12694archive_expsym_cmds_CXX= 12695compiler_needs_object_CXX=no 12696export_dynamic_flag_spec_CXX= 12697hardcode_direct_CXX=no 12698hardcode_direct_absolute_CXX=no 12699hardcode_libdir_flag_spec_CXX= 12700hardcode_libdir_flag_spec_ld_CXX= 12701hardcode_libdir_separator_CXX= 12702hardcode_minus_L_CXX=no 12703hardcode_shlibpath_var_CXX=unsupported 12704hardcode_automatic_CXX=no 12705inherit_rpath_CXX=no 12706module_cmds_CXX= 12707module_expsym_cmds_CXX= 12708link_all_deplibs_CXX=unknown 12709old_archive_cmds_CXX=$old_archive_cmds 12710reload_flag_CXX=$reload_flag 12711reload_cmds_CXX=$reload_cmds 12712no_undefined_flag_CXX= 12713whole_archive_flag_spec_CXX= 12714enable_shared_with_static_runtimes_CXX=no 12715 12716# Source file extension for C++ test sources. 12717ac_ext=cpp 12718 12719# Object file extension for compiled C++ test sources. 12720objext=o 12721objext_CXX=$objext 12722 12723# No sense in running all these tests if we already determined that 12724# the CXX compiler isn't working. Some variables (like enable_shared) 12725# are currently assumed to apply to all compilers on this platform, 12726# and will be corrupted by setting them based on a non-working compiler. 12727if test "$_lt_caught_CXX_error" != yes; then 12728 # Code to be used in simple compile tests 12729 lt_simple_compile_test_code="int some_variable = 0;" 12730 12731 # Code to be used in simple link tests 12732 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12733 12734 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12735 12736 12737 12738 12739 12740 12741# If no C compiler was specified, use CC. 12742LTCC=${LTCC-"$CC"} 12743 12744# If no C compiler flags were specified, use CFLAGS. 12745LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12746 12747# Allow CC to be a program name with arguments. 12748compiler=$CC 12749 12750 12751 # save warnings/boilerplate of simple test code 12752 ac_outfile=conftest.$ac_objext 12753echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12754eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12755_lt_compiler_boilerplate=`cat conftest.err` 12756$RM conftest* 12757 12758 ac_outfile=conftest.$ac_objext 12759echo "$lt_simple_link_test_code" >conftest.$ac_ext 12760eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12761_lt_linker_boilerplate=`cat conftest.err` 12762$RM -r conftest* 12763 12764 12765 # Allow CC to be a program name with arguments. 12766 lt_save_CC=$CC 12767 lt_save_CFLAGS=$CFLAGS 12768 lt_save_LD=$LD 12769 lt_save_GCC=$GCC 12770 GCC=$GXX 12771 lt_save_with_gnu_ld=$with_gnu_ld 12772 lt_save_path_LD=$lt_cv_path_LD 12773 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12774 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12775 else 12776 $as_unset lt_cv_prog_gnu_ld 12777 fi 12778 if test -n "${lt_cv_path_LDCXX+set}"; then 12779 lt_cv_path_LD=$lt_cv_path_LDCXX 12780 else 12781 $as_unset lt_cv_path_LD 12782 fi 12783 test -z "${LDCXX+set}" || LD=$LDCXX 12784 CC=${CXX-"c++"} 12785 CFLAGS=$CXXFLAGS 12786 compiler=$CC 12787 compiler_CXX=$CC 12788 for cc_temp in $compiler""; do 12789 case $cc_temp in 12790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12792 \-*) ;; 12793 *) break;; 12794 esac 12795done 12796cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12797 12798 12799 if test -n "$compiler"; then 12800 # We don't want -fno-exception when compiling C++ code, so set the 12801 # no_builtin_flag separately 12802 if test "$GXX" = yes; then 12803 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12804 else 12805 lt_prog_compiler_no_builtin_flag_CXX= 12806 fi 12807 12808 if test "$GXX" = yes; then 12809 # Set up default GNU C++ configuration 12810 12811 12812 12813# Check whether --with-gnu-ld was given. 12814if test "${with_gnu_ld+set}" = set; then : 12815 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12816else 12817 with_gnu_ld=no 12818fi 12819 12820ac_prog=ld 12821if test "$GCC" = yes; then 12822 # Check if gcc -print-prog-name=ld gives a path. 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12824$as_echo_n "checking for ld used by $CC... " >&6; } 12825 case $host in 12826 *-*-mingw*) 12827 # gcc leaves a trailing carriage return which upsets mingw 12828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12829 *) 12830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12831 esac 12832 case $ac_prog in 12833 # Accept absolute paths. 12834 [\\/]* | ?:[\\/]*) 12835 re_direlt='/[^/][^/]*/\.\./' 12836 # Canonicalize the pathname of ld 12837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12840 done 12841 test -z "$LD" && LD="$ac_prog" 12842 ;; 12843 "") 12844 # If it fails, then pretend we aren't using GCC. 12845 ac_prog=ld 12846 ;; 12847 *) 12848 # If it is relative, then search for the first ld in PATH. 12849 with_gnu_ld=unknown 12850 ;; 12851 esac 12852elif test "$with_gnu_ld" = yes; then 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12854$as_echo_n "checking for GNU ld... " >&6; } 12855else 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12857$as_echo_n "checking for non-GNU ld... " >&6; } 12858fi 12859if ${lt_cv_path_LD+:} false; then : 12860 $as_echo_n "(cached) " >&6 12861else 12862 if test -z "$LD"; then 12863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12864 for ac_dir in $PATH; do 12865 IFS="$lt_save_ifs" 12866 test -z "$ac_dir" && ac_dir=. 12867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12868 lt_cv_path_LD="$ac_dir/$ac_prog" 12869 # Check to see if the program is GNU ld. I'd rather use --version, 12870 # but apparently some variants of GNU ld only accept -v. 12871 # Break only if it was the GNU/non-GNU ld that we prefer. 12872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12873 *GNU* | *'with BFD'*) 12874 test "$with_gnu_ld" != no && break 12875 ;; 12876 *) 12877 test "$with_gnu_ld" != yes && break 12878 ;; 12879 esac 12880 fi 12881 done 12882 IFS="$lt_save_ifs" 12883else 12884 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12885fi 12886fi 12887 12888LD="$lt_cv_path_LD" 12889if test -n "$LD"; then 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12891$as_echo "$LD" >&6; } 12892else 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12894$as_echo "no" >&6; } 12895fi 12896test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12898$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12899if ${lt_cv_prog_gnu_ld+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901else 12902 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12903case `$LD -v 2>&1 </dev/null` in 12904*GNU* | *'with BFD'*) 12905 lt_cv_prog_gnu_ld=yes 12906 ;; 12907*) 12908 lt_cv_prog_gnu_ld=no 12909 ;; 12910esac 12911fi 12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12913$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12914with_gnu_ld=$lt_cv_prog_gnu_ld 12915 12916 12917 12918 12919 12920 12921 12922 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12923 # archiving commands below assume that GNU ld is being used. 12924 if test "$with_gnu_ld" = yes; then 12925 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12926 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' 12927 12928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12929 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12930 12931 # If archive_cmds runs LD, not CC, wlarc should be empty 12932 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12933 # investigate it a little bit more. (MM) 12934 wlarc='${wl}' 12935 12936 # ancient GNU ld didn't support --whole-archive et. al. 12937 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12938 $GREP 'no-whole-archive' > /dev/null; then 12939 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12940 else 12941 whole_archive_flag_spec_CXX= 12942 fi 12943 else 12944 with_gnu_ld=no 12945 wlarc= 12946 12947 # A generic and very simple default shared library creation 12948 # command for GNU C++ for the case where it uses the native 12949 # linker, instead of GNU ld. If possible, this setting should 12950 # overridden to take advantage of the native linker features on 12951 # the platform it is being used on. 12952 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12953 fi 12954 12955 # Commands to make compiler produce verbose output that lists 12956 # what "hidden" libraries, object files and flags are used when 12957 # linking a shared library. 12958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12959 12960 else 12961 GXX=no 12962 with_gnu_ld=no 12963 wlarc= 12964 fi 12965 12966 # PORTME: fill in a description of your system's C++ link characteristics 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12968$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12969 ld_shlibs_CXX=yes 12970 case $host_os in 12971 aix3*) 12972 # FIXME: insert proper C++ library support 12973 ld_shlibs_CXX=no 12974 ;; 12975 aix[4-9]*) 12976 if test "$host_cpu" = ia64; then 12977 # On IA64, the linker does run time linking by default, so we don't 12978 # have to do anything special. 12979 aix_use_runtimelinking=no 12980 exp_sym_flag='-Bexport' 12981 no_entry_flag="" 12982 else 12983 aix_use_runtimelinking=no 12984 12985 # Test if we are trying to use run time linking or normal 12986 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12987 # need to do runtime linking. 12988 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12989 for ld_flag in $LDFLAGS; do 12990 case $ld_flag in 12991 *-brtl*) 12992 aix_use_runtimelinking=yes 12993 break 12994 ;; 12995 esac 12996 done 12997 ;; 12998 esac 12999 13000 exp_sym_flag='-bexport' 13001 no_entry_flag='-bnoentry' 13002 fi 13003 13004 # When large executables or shared objects are built, AIX ld can 13005 # have problems creating the table of contents. If linking a library 13006 # or program results in "error TOC overflow" add -mminimal-toc to 13007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13009 13010 archive_cmds_CXX='' 13011 hardcode_direct_CXX=yes 13012 hardcode_direct_absolute_CXX=yes 13013 hardcode_libdir_separator_CXX=':' 13014 link_all_deplibs_CXX=yes 13015 file_list_spec_CXX='${wl}-f,' 13016 13017 if test "$GXX" = yes; then 13018 case $host_os in aix4.[012]|aix4.[012].*) 13019 # We only want to do this on AIX 4.2 and lower, the check 13020 # below for broken collect2 doesn't work under 4.3+ 13021 collect2name=`${CC} -print-prog-name=collect2` 13022 if test -f "$collect2name" && 13023 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13024 then 13025 # We have reworked collect2 13026 : 13027 else 13028 # We have old collect2 13029 hardcode_direct_CXX=unsupported 13030 # It fails to find uninstalled libraries when the uninstalled 13031 # path is not listed in the libpath. Setting hardcode_minus_L 13032 # to unsupported forces relinking 13033 hardcode_minus_L_CXX=yes 13034 hardcode_libdir_flag_spec_CXX='-L$libdir' 13035 hardcode_libdir_separator_CXX= 13036 fi 13037 esac 13038 shared_flag='-shared' 13039 if test "$aix_use_runtimelinking" = yes; then 13040 shared_flag="$shared_flag "'${wl}-G' 13041 fi 13042 else 13043 # not using gcc 13044 if test "$host_cpu" = ia64; then 13045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13046 # chokes on -Wl,-G. The following line is correct: 13047 shared_flag='-G' 13048 else 13049 if test "$aix_use_runtimelinking" = yes; then 13050 shared_flag='${wl}-G' 13051 else 13052 shared_flag='${wl}-bM:SRE' 13053 fi 13054 fi 13055 fi 13056 13057 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13058 # It seems that -bexpall does not export symbols beginning with 13059 # underscore (_), so it is better to generate a list of symbols to 13060 # export. 13061 always_export_symbols_CXX=yes 13062 if test "$aix_use_runtimelinking" = yes; then 13063 # Warning - without using the other runtime loading flags (-brtl), 13064 # -berok will link without error, but may produce a broken library. 13065 allow_undefined_flag_CXX='-berok' 13066 # Determine the default libpath from the value encoded in an empty 13067 # executable. 13068 if test "${lt_cv_aix_libpath+set}" = set; then 13069 aix_libpath=$lt_cv_aix_libpath 13070else 13071 if ${lt_cv_aix_libpath__CXX+:} false; then : 13072 $as_echo_n "(cached) " >&6 13073else 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075/* end confdefs.h. */ 13076 13077int 13078main () 13079{ 13080 13081 ; 13082 return 0; 13083} 13084_ACEOF 13085if ac_fn_cxx_try_link "$LINENO"; then : 13086 13087 lt_aix_libpath_sed=' 13088 /Import File Strings/,/^$/ { 13089 /^0/ { 13090 s/^0 *\([^ ]*\) *$/\1/ 13091 p 13092 } 13093 }' 13094 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13095 # Check for a 64-bit object if we didn't find anything. 13096 if test -z "$lt_cv_aix_libpath__CXX"; then 13097 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13098 fi 13099fi 13100rm -f core conftest.err conftest.$ac_objext \ 13101 conftest$ac_exeext conftest.$ac_ext 13102 if test -z "$lt_cv_aix_libpath__CXX"; then 13103 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13104 fi 13105 13106fi 13107 13108 aix_libpath=$lt_cv_aix_libpath__CXX 13109fi 13110 13111 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13112 13113 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" 13114 else 13115 if test "$host_cpu" = ia64; then 13116 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13117 allow_undefined_flag_CXX="-z nodefs" 13118 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" 13119 else 13120 # Determine the default libpath from the value encoded in an 13121 # empty executable. 13122 if test "${lt_cv_aix_libpath+set}" = set; then 13123 aix_libpath=$lt_cv_aix_libpath 13124else 13125 if ${lt_cv_aix_libpath__CXX+:} false; then : 13126 $as_echo_n "(cached) " >&6 13127else 13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130 13131int 13132main () 13133{ 13134 13135 ; 13136 return 0; 13137} 13138_ACEOF 13139if ac_fn_cxx_try_link "$LINENO"; then : 13140 13141 lt_aix_libpath_sed=' 13142 /Import File Strings/,/^$/ { 13143 /^0/ { 13144 s/^0 *\([^ ]*\) *$/\1/ 13145 p 13146 } 13147 }' 13148 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13149 # Check for a 64-bit object if we didn't find anything. 13150 if test -z "$lt_cv_aix_libpath__CXX"; then 13151 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13152 fi 13153fi 13154rm -f core conftest.err conftest.$ac_objext \ 13155 conftest$ac_exeext conftest.$ac_ext 13156 if test -z "$lt_cv_aix_libpath__CXX"; then 13157 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13158 fi 13159 13160fi 13161 13162 aix_libpath=$lt_cv_aix_libpath__CXX 13163fi 13164 13165 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13166 # Warning - without using the other run time loading flags, 13167 # -berok will link without error, but may produce a broken library. 13168 no_undefined_flag_CXX=' ${wl}-bernotok' 13169 allow_undefined_flag_CXX=' ${wl}-berok' 13170 if test "$with_gnu_ld" = yes; then 13171 # We only use this code for GNU lds that support --whole-archive. 13172 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13173 else 13174 # Exported symbols can be pulled into shared objects from archives 13175 whole_archive_flag_spec_CXX='$convenience' 13176 fi 13177 archive_cmds_need_lc_CXX=yes 13178 # This is similar to how AIX traditionally builds its shared 13179 # libraries. 13180 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' 13181 fi 13182 fi 13183 ;; 13184 13185 beos*) 13186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13187 allow_undefined_flag_CXX=unsupported 13188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13189 # support --undefined. This deserves some investigation. FIXME 13190 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13191 else 13192 ld_shlibs_CXX=no 13193 fi 13194 ;; 13195 13196 chorus*) 13197 case $cc_basename in 13198 *) 13199 # FIXME: insert proper C++ library support 13200 ld_shlibs_CXX=no 13201 ;; 13202 esac 13203 ;; 13204 13205 cygwin* | mingw* | pw32* | cegcc*) 13206 case $GXX,$cc_basename in 13207 ,cl* | no,cl*) 13208 # Native MSVC 13209 # hardcode_libdir_flag_spec is actually meaningless, as there is 13210 # no search path for DLLs. 13211 hardcode_libdir_flag_spec_CXX=' ' 13212 allow_undefined_flag_CXX=unsupported 13213 always_export_symbols_CXX=yes 13214 file_list_spec_CXX='@' 13215 # Tell ltmain to make .lib files, not .a files. 13216 libext=lib 13217 # Tell ltmain to make .dll files, not .so files. 13218 shrext_cmds=".dll" 13219 # FIXME: Setting linknames here is a bad hack. 13220 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13221 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13222 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13223 else 13224 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13225 fi~ 13226 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13227 linknames=' 13228 # The linker will not automatically build a static lib if we build a DLL. 13229 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13230 enable_shared_with_static_runtimes_CXX=yes 13231 # Don't use ranlib 13232 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13233 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13234 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13235 case $lt_outputfile in 13236 *.exe|*.EXE) ;; 13237 *) 13238 lt_outputfile="$lt_outputfile.exe" 13239 lt_tool_outputfile="$lt_tool_outputfile.exe" 13240 ;; 13241 esac~ 13242 func_to_tool_file "$lt_outputfile"~ 13243 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13244 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13245 $RM "$lt_outputfile.manifest"; 13246 fi' 13247 ;; 13248 *) 13249 # g++ 13250 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13251 # as there is no search path for DLLs. 13252 hardcode_libdir_flag_spec_CXX='-L$libdir' 13253 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13254 allow_undefined_flag_CXX=unsupported 13255 always_export_symbols_CXX=no 13256 enable_shared_with_static_runtimes_CXX=yes 13257 13258 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13259 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' 13260 # If the export-symbols file already is a .def file (1st line 13261 # is EXPORTS), use it as is; otherwise, prepend... 13262 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13263 cp $export_symbols $output_objdir/$soname.def; 13264 else 13265 echo EXPORTS > $output_objdir/$soname.def; 13266 cat $export_symbols >> $output_objdir/$soname.def; 13267 fi~ 13268 $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' 13269 else 13270 ld_shlibs_CXX=no 13271 fi 13272 ;; 13273 esac 13274 ;; 13275 darwin* | rhapsody*) 13276 13277 13278 archive_cmds_need_lc_CXX=no 13279 hardcode_direct_CXX=no 13280 hardcode_automatic_CXX=yes 13281 hardcode_shlibpath_var_CXX=unsupported 13282 if test "$lt_cv_ld_force_load" = "yes"; then 13283 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\"`' 13284 else 13285 whole_archive_flag_spec_CXX='' 13286 fi 13287 link_all_deplibs_CXX=yes 13288 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13289 case $cc_basename in 13290 ifort*) _lt_dar_can_shared=yes ;; 13291 *) _lt_dar_can_shared=$GCC ;; 13292 esac 13293 if test "$_lt_dar_can_shared" = "yes"; then 13294 output_verbose_link_cmd=func_echo_all 13295 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}" 13296 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13297 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}" 13298 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}" 13299 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13300 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}" 13301 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}" 13302 fi 13303 13304 else 13305 ld_shlibs_CXX=no 13306 fi 13307 13308 ;; 13309 13310 dgux*) 13311 case $cc_basename in 13312 ec++*) 13313 # FIXME: insert proper C++ library support 13314 ld_shlibs_CXX=no 13315 ;; 13316 ghcx*) 13317 # Green Hills C++ Compiler 13318 # FIXME: insert proper C++ library support 13319 ld_shlibs_CXX=no 13320 ;; 13321 *) 13322 # FIXME: insert proper C++ library support 13323 ld_shlibs_CXX=no 13324 ;; 13325 esac 13326 ;; 13327 13328 freebsd[12]*) 13329 # C++ shared libraries reported to be fairly broken before 13330 # switch to ELF 13331 ld_shlibs_CXX=no 13332 ;; 13333 13334 freebsd-elf*) 13335 archive_cmds_need_lc_CXX=no 13336 ;; 13337 13338 freebsd* | dragonfly*) 13339 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13340 # conventions 13341 ld_shlibs_CXX=yes 13342 ;; 13343 13344 gnu*) 13345 ;; 13346 13347 haiku*) 13348 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13349 link_all_deplibs_CXX=yes 13350 ;; 13351 13352 hpux9*) 13353 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13354 hardcode_libdir_separator_CXX=: 13355 export_dynamic_flag_spec_CXX='${wl}-E' 13356 hardcode_direct_CXX=yes 13357 hardcode_minus_L_CXX=yes # Not in the search PATH, 13358 # but as the default 13359 # location of the library. 13360 13361 case $cc_basename in 13362 CC*) 13363 # FIXME: insert proper C++ library support 13364 ld_shlibs_CXX=no 13365 ;; 13366 aCC*) 13367 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' 13368 # Commands to make compiler produce verbose output that lists 13369 # what "hidden" libraries, object files and flags are used when 13370 # linking a shared library. 13371 # 13372 # There doesn't appear to be a way to prevent this compiler from 13373 # explicitly linking system object files so we need to strip them 13374 # from the output so that they don't get included in the library 13375 # dependencies. 13376 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"' 13377 ;; 13378 *) 13379 if test "$GXX" = yes; then 13380 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' 13381 else 13382 # FIXME: insert proper C++ library support 13383 ld_shlibs_CXX=no 13384 fi 13385 ;; 13386 esac 13387 ;; 13388 13389 hpux10*|hpux11*) 13390 if test $with_gnu_ld = no; then 13391 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13392 hardcode_libdir_separator_CXX=: 13393 13394 case $host_cpu in 13395 hppa*64*|ia64*) 13396 ;; 13397 *) 13398 export_dynamic_flag_spec_CXX='${wl}-E' 13399 ;; 13400 esac 13401 fi 13402 case $host_cpu in 13403 hppa*64*|ia64*) 13404 hardcode_direct_CXX=no 13405 hardcode_shlibpath_var_CXX=no 13406 ;; 13407 *) 13408 hardcode_direct_CXX=yes 13409 hardcode_direct_absolute_CXX=yes 13410 hardcode_minus_L_CXX=yes # Not in the search PATH, 13411 # but as the default 13412 # location of the library. 13413 ;; 13414 esac 13415 13416 case $cc_basename in 13417 CC*) 13418 # FIXME: insert proper C++ library support 13419 ld_shlibs_CXX=no 13420 ;; 13421 aCC*) 13422 case $host_cpu in 13423 hppa*64*) 13424 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13425 ;; 13426 ia64*) 13427 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13428 ;; 13429 *) 13430 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13431 ;; 13432 esac 13433 # Commands to make compiler produce verbose output that lists 13434 # what "hidden" libraries, object files and flags are used when 13435 # linking a shared library. 13436 # 13437 # There doesn't appear to be a way to prevent this compiler from 13438 # explicitly linking system object files so we need to strip them 13439 # from the output so that they don't get included in the library 13440 # dependencies. 13441 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"' 13442 ;; 13443 *) 13444 if test "$GXX" = yes; then 13445 if test $with_gnu_ld = no; then 13446 case $host_cpu in 13447 hppa*64*) 13448 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13449 ;; 13450 ia64*) 13451 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13452 ;; 13453 *) 13454 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' 13455 ;; 13456 esac 13457 fi 13458 else 13459 # FIXME: insert proper C++ library support 13460 ld_shlibs_CXX=no 13461 fi 13462 ;; 13463 esac 13464 ;; 13465 13466 interix[3-9]*) 13467 hardcode_direct_CXX=no 13468 hardcode_shlibpath_var_CXX=no 13469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13470 export_dynamic_flag_spec_CXX='${wl}-E' 13471 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13472 # Instead, shared libraries are loaded at an image base (0x10000000 by 13473 # default) and relocated if they conflict, which is a slow very memory 13474 # consuming and fragmenting process. To avoid this, we pick a random, 13475 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13476 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13477 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' 13478 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' 13479 ;; 13480 irix5* | irix6*) 13481 case $cc_basename in 13482 CC*) 13483 # SGI C++ 13484 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' 13485 13486 # Archives containing C++ object files must be created using 13487 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13488 # necessary to make sure instantiated templates are included 13489 # in the archive. 13490 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13491 ;; 13492 *) 13493 if test "$GXX" = yes; then 13494 if test "$with_gnu_ld" = no; then 13495 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' 13496 else 13497 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' 13498 fi 13499 fi 13500 link_all_deplibs_CXX=yes 13501 ;; 13502 esac 13503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13504 hardcode_libdir_separator_CXX=: 13505 inherit_rpath_CXX=yes 13506 ;; 13507 13508 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13509 case $cc_basename in 13510 KCC*) 13511 # Kuck and Associates, Inc. (KAI) C++ Compiler 13512 13513 # KCC will only create a shared library if the output file 13514 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13515 # to its proper name (with version) after linking. 13516 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' 13517 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' 13518 # Commands to make compiler produce verbose output that lists 13519 # what "hidden" libraries, object files and flags are used when 13520 # linking a shared library. 13521 # 13522 # There doesn't appear to be a way to prevent this compiler from 13523 # explicitly linking system object files so we need to strip them 13524 # from the output so that they don't get included in the library 13525 # dependencies. 13526 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"' 13527 13528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13530 13531 # Archives containing C++ object files must be created using 13532 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13533 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13534 ;; 13535 icpc* | ecpc* ) 13536 # Intel C++ 13537 with_gnu_ld=yes 13538 # version 8.0 and above of icpc choke on multiply defined symbols 13539 # if we add $predep_objects and $postdep_objects, however 7.1 and 13540 # earlier do not add the objects themselves. 13541 case `$CC -V 2>&1` in 13542 *"Version 7."*) 13543 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13544 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' 13545 ;; 13546 *) # Version 8.0 or newer 13547 tmp_idyn= 13548 case $host_cpu in 13549 ia64*) tmp_idyn=' -i_dynamic';; 13550 esac 13551 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13552 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' 13553 ;; 13554 esac 13555 archive_cmds_need_lc_CXX=no 13556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13558 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13559 ;; 13560 pgCC* | pgcpp*) 13561 # Portland Group C++ compiler 13562 case `$CC -V` in 13563 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13564 prelink_cmds_CXX='tpldir=Template.dir~ 13565 rm -rf $tpldir~ 13566 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13567 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13568 old_archive_cmds_CXX='tpldir=Template.dir~ 13569 rm -rf $tpldir~ 13570 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13571 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13572 $RANLIB $oldlib' 13573 archive_cmds_CXX='tpldir=Template.dir~ 13574 rm -rf $tpldir~ 13575 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13576 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13577 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13578 rm -rf $tpldir~ 13579 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13580 $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' 13581 ;; 13582 *) # Version 6 and above use weak symbols 13583 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13584 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' 13585 ;; 13586 esac 13587 13588 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13589 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13590 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' 13591 ;; 13592 cxx*) 13593 # Compaq C++ 13594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13595 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' 13596 13597 runpath_var=LD_RUN_PATH 13598 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13599 hardcode_libdir_separator_CXX=: 13600 13601 # Commands to make compiler produce verbose output that lists 13602 # what "hidden" libraries, object files and flags are used when 13603 # linking a shared library. 13604 # 13605 # There doesn't appear to be a way to prevent this compiler from 13606 # explicitly linking system object files so we need to strip them 13607 # from the output so that they don't get included in the library 13608 # dependencies. 13609 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' 13610 ;; 13611 xl* | mpixl* | bgxl*) 13612 # IBM XL 8.0 on PPC, with GNU ld 13613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13614 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13615 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13616 if test "x$supports_anon_versioning" = xyes; then 13617 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13619 echo "local: *; };" >> $output_objdir/$libname.ver~ 13620 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13621 fi 13622 ;; 13623 *) 13624 case `$CC -V 2>&1 | sed 5q` in 13625 *Sun\ C*) 13626 # Sun C++ 5.9 13627 no_undefined_flag_CXX=' -zdefs' 13628 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13629 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' 13630 hardcode_libdir_flag_spec_CXX='-R$libdir' 13631 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' 13632 compiler_needs_object_CXX=yes 13633 13634 # Not sure whether something based on 13635 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13636 # would be better. 13637 output_verbose_link_cmd='func_echo_all' 13638 13639 # Archives containing C++ object files must be created using 13640 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13641 # necessary to make sure instantiated templates are included 13642 # in the archive. 13643 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13644 ;; 13645 esac 13646 ;; 13647 esac 13648 ;; 13649 13650 lynxos*) 13651 # FIXME: insert proper C++ library support 13652 ld_shlibs_CXX=no 13653 ;; 13654 13655 m88k*) 13656 # FIXME: insert proper C++ library support 13657 ld_shlibs_CXX=no 13658 ;; 13659 13660 mvs*) 13661 case $cc_basename in 13662 cxx*) 13663 # FIXME: insert proper C++ library support 13664 ld_shlibs_CXX=no 13665 ;; 13666 *) 13667 # FIXME: insert proper C++ library support 13668 ld_shlibs_CXX=no 13669 ;; 13670 esac 13671 ;; 13672 13673 netbsd*) 13674 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13675 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13676 wlarc= 13677 hardcode_libdir_flag_spec_CXX='-R$libdir' 13678 hardcode_direct_CXX=yes 13679 hardcode_shlibpath_var_CXX=no 13680 fi 13681 # Workaround some broken pre-1.5 toolchains 13682 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13683 ;; 13684 13685 *nto* | *qnx*) 13686 ld_shlibs_CXX=yes 13687 ;; 13688 13689 openbsd2*) 13690 # C++ shared libraries are fairly broken 13691 ld_shlibs_CXX=no 13692 ;; 13693 13694 openbsd*) 13695 if test -f /usr/libexec/ld.so; then 13696 hardcode_direct_CXX=yes 13697 hardcode_shlibpath_var_CXX=no 13698 hardcode_direct_absolute_CXX=yes 13699 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13702 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13703 export_dynamic_flag_spec_CXX='${wl}-E' 13704 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13705 fi 13706 output_verbose_link_cmd=func_echo_all 13707 else 13708 ld_shlibs_CXX=no 13709 fi 13710 ;; 13711 13712 osf3* | osf4* | osf5*) 13713 case $cc_basename in 13714 KCC*) 13715 # Kuck and Associates, Inc. (KAI) C++ Compiler 13716 13717 # KCC will only create a shared library if the output file 13718 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13719 # to its proper name (with version) after linking. 13720 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' 13721 13722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13723 hardcode_libdir_separator_CXX=: 13724 13725 # Archives containing C++ object files must be created using 13726 # the KAI C++ compiler. 13727 case $host in 13728 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13729 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13730 esac 13731 ;; 13732 RCC*) 13733 # Rational C++ 2.4.1 13734 # FIXME: insert proper C++ library support 13735 ld_shlibs_CXX=no 13736 ;; 13737 cxx*) 13738 case $host in 13739 osf3*) 13740 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13741 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' 13742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13743 ;; 13744 *) 13745 allow_undefined_flag_CXX=' -expect_unresolved \*' 13746 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' 13747 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13748 echo "-hidden">> $lib.exp~ 13749 $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~ 13750 $RM $lib.exp' 13751 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13752 ;; 13753 esac 13754 13755 hardcode_libdir_separator_CXX=: 13756 13757 # Commands to make compiler produce verbose output that lists 13758 # what "hidden" libraries, object files and flags are used when 13759 # linking a shared library. 13760 # 13761 # There doesn't appear to be a way to prevent this compiler from 13762 # explicitly linking system object files so we need to strip them 13763 # from the output so that they don't get included in the library 13764 # dependencies. 13765 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"' 13766 ;; 13767 *) 13768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13769 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13770 case $host in 13771 osf3*) 13772 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' 13773 ;; 13774 *) 13775 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' 13776 ;; 13777 esac 13778 13779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13780 hardcode_libdir_separator_CXX=: 13781 13782 # Commands to make compiler produce verbose output that lists 13783 # what "hidden" libraries, object files and flags are used when 13784 # linking a shared library. 13785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13786 13787 else 13788 # FIXME: insert proper C++ library support 13789 ld_shlibs_CXX=no 13790 fi 13791 ;; 13792 esac 13793 ;; 13794 13795 psos*) 13796 # FIXME: insert proper C++ library support 13797 ld_shlibs_CXX=no 13798 ;; 13799 13800 sunos4*) 13801 case $cc_basename in 13802 CC*) 13803 # Sun C++ 4.x 13804 # FIXME: insert proper C++ library support 13805 ld_shlibs_CXX=no 13806 ;; 13807 lcc*) 13808 # Lucid 13809 # FIXME: insert proper C++ library support 13810 ld_shlibs_CXX=no 13811 ;; 13812 *) 13813 # FIXME: insert proper C++ library support 13814 ld_shlibs_CXX=no 13815 ;; 13816 esac 13817 ;; 13818 13819 solaris*) 13820 case $cc_basename in 13821 CC* | sunCC*) 13822 # Sun C++ 4.2, 5.x and Centerline C++ 13823 archive_cmds_need_lc_CXX=yes 13824 no_undefined_flag_CXX=' -zdefs' 13825 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13826 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13827 $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' 13828 13829 hardcode_libdir_flag_spec_CXX='-R$libdir' 13830 hardcode_shlibpath_var_CXX=no 13831 case $host_os in 13832 solaris2.[0-5] | solaris2.[0-5].*) ;; 13833 *) 13834 # The compiler driver will combine and reorder linker options, 13835 # but understands `-z linker_flag'. 13836 # Supported since Solaris 2.6 (maybe 2.5.1?) 13837 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13838 ;; 13839 esac 13840 link_all_deplibs_CXX=yes 13841 13842 output_verbose_link_cmd='func_echo_all' 13843 13844 # Archives containing C++ object files must be created using 13845 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13846 # necessary to make sure instantiated templates are included 13847 # in the archive. 13848 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13849 ;; 13850 gcx*) 13851 # Green Hills C++ Compiler 13852 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13853 13854 # The C++ compiler must be used to create the archive. 13855 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13856 ;; 13857 *) 13858 # GNU C++ compiler with Solaris linker 13859 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13860 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13861 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13862 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13863 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13864 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13865 13866 # Commands to make compiler produce verbose output that lists 13867 # what "hidden" libraries, object files and flags are used when 13868 # linking a shared library. 13869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13870 else 13871 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13872 # platform. 13873 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13874 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13875 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13876 13877 # Commands to make compiler produce verbose output that lists 13878 # what "hidden" libraries, object files and flags are used when 13879 # linking a shared library. 13880 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13881 fi 13882 13883 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13884 case $host_os in 13885 solaris2.[0-5] | solaris2.[0-5].*) ;; 13886 *) 13887 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13888 ;; 13889 esac 13890 fi 13891 ;; 13892 esac 13893 ;; 13894 13895 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13896 no_undefined_flag_CXX='${wl}-z,text' 13897 archive_cmds_need_lc_CXX=no 13898 hardcode_shlibpath_var_CXX=no 13899 runpath_var='LD_RUN_PATH' 13900 13901 case $cc_basename in 13902 CC*) 13903 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13904 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13905 ;; 13906 *) 13907 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13908 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13909 ;; 13910 esac 13911 ;; 13912 13913 sysv5* | sco3.2v5* | sco5v6*) 13914 # Note: We can NOT use -z defs as we might desire, because we do not 13915 # link with -lc, and that would cause any symbols used from libc to 13916 # always be unresolved, which means just about no library would 13917 # ever link correctly. If we're not using GNU ld we use -z text 13918 # though, which does catch some bad symbols but isn't as heavy-handed 13919 # as -z defs. 13920 no_undefined_flag_CXX='${wl}-z,text' 13921 allow_undefined_flag_CXX='${wl}-z,nodefs' 13922 archive_cmds_need_lc_CXX=no 13923 hardcode_shlibpath_var_CXX=no 13924 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13925 hardcode_libdir_separator_CXX=':' 13926 link_all_deplibs_CXX=yes 13927 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13928 runpath_var='LD_RUN_PATH' 13929 13930 case $cc_basename in 13931 CC*) 13932 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13933 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13934 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13935 '"$old_archive_cmds_CXX" 13936 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13937 '"$reload_cmds_CXX" 13938 ;; 13939 *) 13940 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13941 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13942 ;; 13943 esac 13944 ;; 13945 13946 tandem*) 13947 case $cc_basename in 13948 NCC*) 13949 # NonStop-UX NCC 3.20 13950 # FIXME: insert proper C++ library support 13951 ld_shlibs_CXX=no 13952 ;; 13953 *) 13954 # FIXME: insert proper C++ library support 13955 ld_shlibs_CXX=no 13956 ;; 13957 esac 13958 ;; 13959 13960 vxworks*) 13961 # FIXME: insert proper C++ library support 13962 ld_shlibs_CXX=no 13963 ;; 13964 13965 *) 13966 # FIXME: insert proper C++ library support 13967 ld_shlibs_CXX=no 13968 ;; 13969 esac 13970 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13972$as_echo "$ld_shlibs_CXX" >&6; } 13973 test "$ld_shlibs_CXX" = no && can_build_shared=no 13974 13975 GCC_CXX="$GXX" 13976 LD_CXX="$LD" 13977 13978 ## CAVEAT EMPTOR: 13979 ## There is no encapsulation within the following macros, do not change 13980 ## the running order or otherwise move them around unless you know exactly 13981 ## what you are doing... 13982 # Dependencies to place before and after the object being linked: 13983predep_objects_CXX= 13984postdep_objects_CXX= 13985predeps_CXX= 13986postdeps_CXX= 13987compiler_lib_search_path_CXX= 13988 13989cat > conftest.$ac_ext <<_LT_EOF 13990class Foo 13991{ 13992public: 13993 Foo (void) { a = 0; } 13994private: 13995 int a; 13996}; 13997_LT_EOF 13998 13999 14000_lt_libdeps_save_CFLAGS=$CFLAGS 14001case "$CC $CFLAGS " in #( 14002*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14003*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14004esac 14005 14006if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14007 (eval $ac_compile) 2>&5 14008 ac_status=$? 14009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14010 test $ac_status = 0; }; then 14011 # Parse the compiler output and extract the necessary 14012 # objects, libraries and library flags. 14013 14014 # Sentinel used to keep track of whether or not we are before 14015 # the conftest object file. 14016 pre_test_object_deps_done=no 14017 14018 for p in `eval "$output_verbose_link_cmd"`; do 14019 case ${prev}${p} in 14020 14021 -L* | -R* | -l*) 14022 # Some compilers place space between "-{L,R}" and the path. 14023 # Remove the space. 14024 if test $p = "-L" || 14025 test $p = "-R"; then 14026 prev=$p 14027 continue 14028 fi 14029 14030 # Expand the sysroot to ease extracting the directories later. 14031 if test -z "$prev"; then 14032 case $p in 14033 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14034 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14035 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14036 esac 14037 fi 14038 case $p in 14039 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14040 esac 14041 if test "$pre_test_object_deps_done" = no; then 14042 case ${prev} in 14043 -L | -R) 14044 # Internal compiler library paths should come after those 14045 # provided the user. The postdeps already come after the 14046 # user supplied libs so there is no need to process them. 14047 if test -z "$compiler_lib_search_path_CXX"; then 14048 compiler_lib_search_path_CXX="${prev}${p}" 14049 else 14050 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14051 fi 14052 ;; 14053 # The "-l" case would never come before the object being 14054 # linked, so don't bother handling this case. 14055 esac 14056 else 14057 if test -z "$postdeps_CXX"; then 14058 postdeps_CXX="${prev}${p}" 14059 else 14060 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14061 fi 14062 fi 14063 prev= 14064 ;; 14065 14066 *.lto.$objext) ;; # Ignore GCC LTO objects 14067 *.$objext) 14068 # This assumes that the test object file only shows up 14069 # once in the compiler output. 14070 if test "$p" = "conftest.$objext"; then 14071 pre_test_object_deps_done=yes 14072 continue 14073 fi 14074 14075 if test "$pre_test_object_deps_done" = no; then 14076 if test -z "$predep_objects_CXX"; then 14077 predep_objects_CXX="$p" 14078 else 14079 predep_objects_CXX="$predep_objects_CXX $p" 14080 fi 14081 else 14082 if test -z "$postdep_objects_CXX"; then 14083 postdep_objects_CXX="$p" 14084 else 14085 postdep_objects_CXX="$postdep_objects_CXX $p" 14086 fi 14087 fi 14088 ;; 14089 14090 *) ;; # Ignore the rest. 14091 14092 esac 14093 done 14094 14095 # Clean up. 14096 rm -f a.out a.exe 14097else 14098 echo "libtool.m4: error: problem compiling CXX test program" 14099fi 14100 14101$RM -f confest.$objext 14102CFLAGS=$_lt_libdeps_save_CFLAGS 14103 14104# PORTME: override above test on systems where it is broken 14105case $host_os in 14106interix[3-9]*) 14107 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14108 # hack all around it, let's just trust "g++" to DTRT. 14109 predep_objects_CXX= 14110 postdep_objects_CXX= 14111 postdeps_CXX= 14112 ;; 14113 14114linux*) 14115 case `$CC -V 2>&1 | sed 5q` in 14116 *Sun\ C*) 14117 # Sun C++ 5.9 14118 14119 # The more standards-conforming stlport4 library is 14120 # incompatible with the Cstd library. Avoid specifying 14121 # it if it's in CXXFLAGS. Ignore libCrun as 14122 # -library=stlport4 depends on it. 14123 case " $CXX $CXXFLAGS " in 14124 *" -library=stlport4 "*) 14125 solaris_use_stlport4=yes 14126 ;; 14127 esac 14128 14129 if test "$solaris_use_stlport4" != yes; then 14130 postdeps_CXX='-library=Cstd -library=Crun' 14131 fi 14132 ;; 14133 esac 14134 ;; 14135 14136solaris*) 14137 case $cc_basename in 14138 CC* | sunCC*) 14139 # The more standards-conforming stlport4 library is 14140 # incompatible with the Cstd library. Avoid specifying 14141 # it if it's in CXXFLAGS. Ignore libCrun as 14142 # -library=stlport4 depends on it. 14143 case " $CXX $CXXFLAGS " in 14144 *" -library=stlport4 "*) 14145 solaris_use_stlport4=yes 14146 ;; 14147 esac 14148 14149 # Adding this requires a known-good setup of shared libraries for 14150 # Sun compiler versions before 5.6, else PIC objects from an old 14151 # archive will be linked into the output, leading to subtle bugs. 14152 if test "$solaris_use_stlport4" != yes; then 14153 postdeps_CXX='-library=Cstd -library=Crun' 14154 fi 14155 ;; 14156 esac 14157 ;; 14158esac 14159 14160 14161case " $postdeps_CXX " in 14162*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14163esac 14164 compiler_lib_search_dirs_CXX= 14165if test -n "${compiler_lib_search_path_CXX}"; then 14166 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14167fi 14168 14169 14170 14171 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 lt_prog_compiler_wl_CXX= 14200lt_prog_compiler_pic_CXX= 14201lt_prog_compiler_static_CXX= 14202 14203 14204 # C++ specific cases for pic, static, wl, etc. 14205 if test "$GXX" = yes; then 14206 lt_prog_compiler_wl_CXX='-Wl,' 14207 lt_prog_compiler_static_CXX='-static' 14208 14209 case $host_os in 14210 aix*) 14211 # All AIX code is PIC. 14212 if test "$host_cpu" = ia64; then 14213 # AIX 5 now supports IA64 processor 14214 lt_prog_compiler_static_CXX='-Bstatic' 14215 fi 14216 ;; 14217 14218 amigaos*) 14219 case $host_cpu in 14220 powerpc) 14221 # see comment about AmigaOS4 .so support 14222 lt_prog_compiler_pic_CXX='-fPIC' 14223 ;; 14224 m68k) 14225 # FIXME: we need at least 68020 code to build shared libraries, but 14226 # adding the `-m68020' flag to GCC prevents building anything better, 14227 # like `-m68040'. 14228 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14229 ;; 14230 esac 14231 ;; 14232 14233 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14234 # PIC is the default for these OSes. 14235 ;; 14236 mingw* | cygwin* | os2* | pw32* | cegcc*) 14237 # This hack is so that the source file can tell whether it is being 14238 # built for inclusion in a dll (and should export symbols for example). 14239 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14240 # (--disable-auto-import) libraries 14241 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14242 ;; 14243 darwin* | rhapsody*) 14244 # PIC is the default on this platform 14245 # Common symbols not allowed in MH_DYLIB files 14246 lt_prog_compiler_pic_CXX='-fno-common' 14247 ;; 14248 *djgpp*) 14249 # DJGPP does not support shared libraries at all 14250 lt_prog_compiler_pic_CXX= 14251 ;; 14252 haiku*) 14253 # PIC is the default for Haiku. 14254 # The "-static" flag exists, but is broken. 14255 lt_prog_compiler_static_CXX= 14256 ;; 14257 interix[3-9]*) 14258 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14259 # Instead, we relocate shared libraries at runtime. 14260 ;; 14261 sysv4*MP*) 14262 if test -d /usr/nec; then 14263 lt_prog_compiler_pic_CXX=-Kconform_pic 14264 fi 14265 ;; 14266 hpux*) 14267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14269 # sets the default TLS model and affects inlining. 14270 case $host_cpu in 14271 hppa*64*) 14272 ;; 14273 *) 14274 lt_prog_compiler_pic_CXX='-fPIC' 14275 ;; 14276 esac 14277 ;; 14278 *qnx* | *nto*) 14279 # QNX uses GNU C++, but need to define -shared option too, otherwise 14280 # it will coredump. 14281 lt_prog_compiler_pic_CXX='-fPIC -shared' 14282 ;; 14283 *) 14284 lt_prog_compiler_pic_CXX='-fPIC' 14285 ;; 14286 esac 14287 else 14288 case $host_os in 14289 aix[4-9]*) 14290 # All AIX code is PIC. 14291 if test "$host_cpu" = ia64; then 14292 # AIX 5 now supports IA64 processor 14293 lt_prog_compiler_static_CXX='-Bstatic' 14294 else 14295 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14296 fi 14297 ;; 14298 chorus*) 14299 case $cc_basename in 14300 cxch68*) 14301 # Green Hills C++ Compiler 14302 # _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" 14303 ;; 14304 esac 14305 ;; 14306 mingw* | cygwin* | os2* | pw32* | cegcc*) 14307 # This hack is so that the source file can tell whether it is being 14308 # built for inclusion in a dll (and should export symbols for example). 14309 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14310 ;; 14311 dgux*) 14312 case $cc_basename in 14313 ec++*) 14314 lt_prog_compiler_pic_CXX='-KPIC' 14315 ;; 14316 ghcx*) 14317 # Green Hills C++ Compiler 14318 lt_prog_compiler_pic_CXX='-pic' 14319 ;; 14320 *) 14321 ;; 14322 esac 14323 ;; 14324 freebsd* | dragonfly*) 14325 # FreeBSD uses GNU C++ 14326 ;; 14327 hpux9* | hpux10* | hpux11*) 14328 case $cc_basename in 14329 CC*) 14330 lt_prog_compiler_wl_CXX='-Wl,' 14331 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14332 if test "$host_cpu" != ia64; then 14333 lt_prog_compiler_pic_CXX='+Z' 14334 fi 14335 ;; 14336 aCC*) 14337 lt_prog_compiler_wl_CXX='-Wl,' 14338 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14339 case $host_cpu in 14340 hppa*64*|ia64*) 14341 # +Z the default 14342 ;; 14343 *) 14344 lt_prog_compiler_pic_CXX='+Z' 14345 ;; 14346 esac 14347 ;; 14348 *) 14349 ;; 14350 esac 14351 ;; 14352 interix*) 14353 # This is c89, which is MS Visual C++ (no shared libs) 14354 # Anyone wants to do a port? 14355 ;; 14356 irix5* | irix6* | nonstopux*) 14357 case $cc_basename in 14358 CC*) 14359 lt_prog_compiler_wl_CXX='-Wl,' 14360 lt_prog_compiler_static_CXX='-non_shared' 14361 # CC pic flag -KPIC is the default. 14362 ;; 14363 *) 14364 ;; 14365 esac 14366 ;; 14367 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14368 case $cc_basename in 14369 KCC*) 14370 # KAI C++ Compiler 14371 lt_prog_compiler_wl_CXX='--backend -Wl,' 14372 lt_prog_compiler_pic_CXX='-fPIC' 14373 ;; 14374 ecpc* ) 14375 # old Intel C++ for x86_64 which still supported -KPIC. 14376 lt_prog_compiler_wl_CXX='-Wl,' 14377 lt_prog_compiler_pic_CXX='-KPIC' 14378 lt_prog_compiler_static_CXX='-static' 14379 ;; 14380 icpc* ) 14381 # Intel C++, used to be incompatible with GCC. 14382 # ICC 10 doesn't accept -KPIC any more. 14383 lt_prog_compiler_wl_CXX='-Wl,' 14384 lt_prog_compiler_pic_CXX='-fPIC' 14385 lt_prog_compiler_static_CXX='-static' 14386 ;; 14387 pgCC* | pgcpp*) 14388 # Portland Group C++ compiler 14389 lt_prog_compiler_wl_CXX='-Wl,' 14390 lt_prog_compiler_pic_CXX='-fpic' 14391 lt_prog_compiler_static_CXX='-Bstatic' 14392 ;; 14393 cxx*) 14394 # Compaq C++ 14395 # Make sure the PIC flag is empty. It appears that all Alpha 14396 # Linux and Compaq Tru64 Unix objects are PIC. 14397 lt_prog_compiler_pic_CXX= 14398 lt_prog_compiler_static_CXX='-non_shared' 14399 ;; 14400 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14401 # IBM XL 8.0, 9.0 on PPC and BlueGene 14402 lt_prog_compiler_wl_CXX='-Wl,' 14403 lt_prog_compiler_pic_CXX='-qpic' 14404 lt_prog_compiler_static_CXX='-qstaticlink' 14405 ;; 14406 *) 14407 case `$CC -V 2>&1 | sed 5q` in 14408 *Sun\ C*) 14409 # Sun C++ 5.9 14410 lt_prog_compiler_pic_CXX='-KPIC' 14411 lt_prog_compiler_static_CXX='-Bstatic' 14412 lt_prog_compiler_wl_CXX='-Qoption ld ' 14413 ;; 14414 esac 14415 ;; 14416 esac 14417 ;; 14418 lynxos*) 14419 ;; 14420 m88k*) 14421 ;; 14422 mvs*) 14423 case $cc_basename in 14424 cxx*) 14425 lt_prog_compiler_pic_CXX='-W c,exportall' 14426 ;; 14427 *) 14428 ;; 14429 esac 14430 ;; 14431 netbsd*) 14432 ;; 14433 *qnx* | *nto*) 14434 # QNX uses GNU C++, but need to define -shared option too, otherwise 14435 # it will coredump. 14436 lt_prog_compiler_pic_CXX='-fPIC -shared' 14437 ;; 14438 osf3* | osf4* | osf5*) 14439 case $cc_basename in 14440 KCC*) 14441 lt_prog_compiler_wl_CXX='--backend -Wl,' 14442 ;; 14443 RCC*) 14444 # Rational C++ 2.4.1 14445 lt_prog_compiler_pic_CXX='-pic' 14446 ;; 14447 cxx*) 14448 # Digital/Compaq C++ 14449 lt_prog_compiler_wl_CXX='-Wl,' 14450 # Make sure the PIC flag is empty. It appears that all Alpha 14451 # Linux and Compaq Tru64 Unix objects are PIC. 14452 lt_prog_compiler_pic_CXX= 14453 lt_prog_compiler_static_CXX='-non_shared' 14454 ;; 14455 *) 14456 ;; 14457 esac 14458 ;; 14459 psos*) 14460 ;; 14461 solaris*) 14462 case $cc_basename in 14463 CC* | sunCC*) 14464 # Sun C++ 4.2, 5.x and Centerline C++ 14465 lt_prog_compiler_pic_CXX='-KPIC' 14466 lt_prog_compiler_static_CXX='-Bstatic' 14467 lt_prog_compiler_wl_CXX='-Qoption ld ' 14468 ;; 14469 gcx*) 14470 # Green Hills C++ Compiler 14471 lt_prog_compiler_pic_CXX='-PIC' 14472 ;; 14473 *) 14474 ;; 14475 esac 14476 ;; 14477 sunos4*) 14478 case $cc_basename in 14479 CC*) 14480 # Sun C++ 4.x 14481 lt_prog_compiler_pic_CXX='-pic' 14482 lt_prog_compiler_static_CXX='-Bstatic' 14483 ;; 14484 lcc*) 14485 # Lucid 14486 lt_prog_compiler_pic_CXX='-pic' 14487 ;; 14488 *) 14489 ;; 14490 esac 14491 ;; 14492 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14493 case $cc_basename in 14494 CC*) 14495 lt_prog_compiler_wl_CXX='-Wl,' 14496 lt_prog_compiler_pic_CXX='-KPIC' 14497 lt_prog_compiler_static_CXX='-Bstatic' 14498 ;; 14499 esac 14500 ;; 14501 tandem*) 14502 case $cc_basename in 14503 NCC*) 14504 # NonStop-UX NCC 3.20 14505 lt_prog_compiler_pic_CXX='-KPIC' 14506 ;; 14507 *) 14508 ;; 14509 esac 14510 ;; 14511 vxworks*) 14512 ;; 14513 *) 14514 lt_prog_compiler_can_build_shared_CXX=no 14515 ;; 14516 esac 14517 fi 14518 14519case $host_os in 14520 # For platforms which do not support PIC, -DPIC is meaningless: 14521 *djgpp*) 14522 lt_prog_compiler_pic_CXX= 14523 ;; 14524 *) 14525 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14526 ;; 14527esac 14528 14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14530$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14531if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14532 $as_echo_n "(cached) " >&6 14533else 14534 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14535fi 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14537$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14538lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14539 14540# 14541# Check to make sure the PIC flag actually works. 14542# 14543if test -n "$lt_prog_compiler_pic_CXX"; then 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14545$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14546if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14547 $as_echo_n "(cached) " >&6 14548else 14549 lt_cv_prog_compiler_pic_works_CXX=no 14550 ac_outfile=conftest.$ac_objext 14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14552 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14553 # Insert the option either (1) after the last *FLAGS variable, or 14554 # (2) before a word containing "conftest.", or (3) at the end. 14555 # Note that $ac_compile itself does not contain backslashes and begins 14556 # with a dollar sign (not a hyphen), so the echo should work correctly. 14557 # The option is referenced via a variable to avoid confusing sed. 14558 lt_compile=`echo "$ac_compile" | $SED \ 14559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14561 -e 's:$: $lt_compiler_flag:'` 14562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14563 (eval "$lt_compile" 2>conftest.err) 14564 ac_status=$? 14565 cat conftest.err >&5 14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14567 if (exit $ac_status) && test -s "$ac_outfile"; then 14568 # The compiler can only warn and ignore the option if not recognized 14569 # So say no if there are warnings other than the usual output. 14570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14573 lt_cv_prog_compiler_pic_works_CXX=yes 14574 fi 14575 fi 14576 $RM conftest* 14577 14578fi 14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14580$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14581 14582if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14583 case $lt_prog_compiler_pic_CXX in 14584 "" | " "*) ;; 14585 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14586 esac 14587else 14588 lt_prog_compiler_pic_CXX= 14589 lt_prog_compiler_can_build_shared_CXX=no 14590fi 14591 14592fi 14593 14594 14595 14596 14597 14598# 14599# Check to make sure the static flag actually works. 14600# 14601wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14603$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14604if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14605 $as_echo_n "(cached) " >&6 14606else 14607 lt_cv_prog_compiler_static_works_CXX=no 14608 save_LDFLAGS="$LDFLAGS" 14609 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14610 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14611 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14612 # The linker can only warn and ignore the option if not recognized 14613 # So say no if there are warnings 14614 if test -s conftest.err; then 14615 # Append any errors to the config.log. 14616 cat conftest.err 1>&5 14617 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14619 if diff conftest.exp conftest.er2 >/dev/null; then 14620 lt_cv_prog_compiler_static_works_CXX=yes 14621 fi 14622 else 14623 lt_cv_prog_compiler_static_works_CXX=yes 14624 fi 14625 fi 14626 $RM -r conftest* 14627 LDFLAGS="$save_LDFLAGS" 14628 14629fi 14630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14631$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14632 14633if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14634 : 14635else 14636 lt_prog_compiler_static_CXX= 14637fi 14638 14639 14640 14641 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14644if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14645 $as_echo_n "(cached) " >&6 14646else 14647 lt_cv_prog_compiler_c_o_CXX=no 14648 $RM -r conftest 2>/dev/null 14649 mkdir conftest 14650 cd conftest 14651 mkdir out 14652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14653 14654 lt_compiler_flag="-o out/conftest2.$ac_objext" 14655 # Insert the option either (1) after the last *FLAGS variable, or 14656 # (2) before a word containing "conftest.", or (3) at the end. 14657 # Note that $ac_compile itself does not contain backslashes and begins 14658 # with a dollar sign (not a hyphen), so the echo should work correctly. 14659 lt_compile=`echo "$ac_compile" | $SED \ 14660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14662 -e 's:$: $lt_compiler_flag:'` 14663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14664 (eval "$lt_compile" 2>out/conftest.err) 14665 ac_status=$? 14666 cat out/conftest.err >&5 14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14668 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14669 then 14670 # The compiler can only warn and ignore the option if not recognized 14671 # So say no if there are warnings 14672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14675 lt_cv_prog_compiler_c_o_CXX=yes 14676 fi 14677 fi 14678 chmod u+w . 2>&5 14679 $RM conftest* 14680 # SGI C++ compiler will create directory out/ii_files/ for 14681 # template instantiation 14682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14683 $RM out/* && rmdir out 14684 cd .. 14685 $RM -r conftest 14686 $RM conftest* 14687 14688fi 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14690$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14691 14692 14693 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14695$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14696if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14697 $as_echo_n "(cached) " >&6 14698else 14699 lt_cv_prog_compiler_c_o_CXX=no 14700 $RM -r conftest 2>/dev/null 14701 mkdir conftest 14702 cd conftest 14703 mkdir out 14704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14705 14706 lt_compiler_flag="-o out/conftest2.$ac_objext" 14707 # Insert the option either (1) after the last *FLAGS variable, or 14708 # (2) before a word containing "conftest.", or (3) at the end. 14709 # Note that $ac_compile itself does not contain backslashes and begins 14710 # with a dollar sign (not a hyphen), so the echo should work correctly. 14711 lt_compile=`echo "$ac_compile" | $SED \ 14712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14714 -e 's:$: $lt_compiler_flag:'` 14715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14716 (eval "$lt_compile" 2>out/conftest.err) 14717 ac_status=$? 14718 cat out/conftest.err >&5 14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14720 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14721 then 14722 # The compiler can only warn and ignore the option if not recognized 14723 # So say no if there are warnings 14724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14727 lt_cv_prog_compiler_c_o_CXX=yes 14728 fi 14729 fi 14730 chmod u+w . 2>&5 14731 $RM conftest* 14732 # SGI C++ compiler will create directory out/ii_files/ for 14733 # template instantiation 14734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14735 $RM out/* && rmdir out 14736 cd .. 14737 $RM -r conftest 14738 $RM conftest* 14739 14740fi 14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14742$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14743 14744 14745 14746 14747hard_links="nottested" 14748if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14749 # do not overwrite the value of need_locks provided by the user 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14751$as_echo_n "checking if we can lock with hard links... " >&6; } 14752 hard_links=yes 14753 $RM conftest* 14754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14755 touch conftest.a 14756 ln conftest.a conftest.b 2>&5 || hard_links=no 14757 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14759$as_echo "$hard_links" >&6; } 14760 if test "$hard_links" = no; then 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14762$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14763 need_locks=warn 14764 fi 14765else 14766 need_locks=no 14767fi 14768 14769 14770 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14772$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14773 14774 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14775 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14776 case $host_os in 14777 aix[4-9]*) 14778 # If we're using GNU nm, then we don't want the "-C" option. 14779 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14780 # Also, AIX nm treats weak defined symbols like other global defined 14781 # symbols, whereas GNU nm marks them as "W". 14782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14783 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' 14784 else 14785 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' 14786 fi 14787 ;; 14788 pw32*) 14789 export_symbols_cmds_CXX="$ltdll_cmds" 14790 ;; 14791 cygwin* | mingw* | cegcc*) 14792 case $cc_basename in 14793 cl*) ;; 14794 *) 14795 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' 14796 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14797 ;; 14798 esac 14799 ;; 14800 *) 14801 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14802 ;; 14803 esac 14804 14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14806$as_echo "$ld_shlibs_CXX" >&6; } 14807test "$ld_shlibs_CXX" = no && can_build_shared=no 14808 14809with_gnu_ld_CXX=$with_gnu_ld 14810 14811 14812 14813 14814 14815 14816# 14817# Do we need to explicitly link libc? 14818# 14819case "x$archive_cmds_need_lc_CXX" in 14820x|xyes) 14821 # Assume -lc should be added 14822 archive_cmds_need_lc_CXX=yes 14823 14824 if test "$enable_shared" = yes && test "$GCC" = yes; then 14825 case $archive_cmds_CXX in 14826 *'~'*) 14827 # FIXME: we may have to deal with multi-command sequences. 14828 ;; 14829 '$CC '*) 14830 # Test whether the compiler implicitly links with -lc since on some 14831 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14832 # to ld, don't add -lc before -lgcc. 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14834$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14835if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14836 $as_echo_n "(cached) " >&6 14837else 14838 $RM conftest* 14839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14840 14841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14842 (eval $ac_compile) 2>&5 14843 ac_status=$? 14844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14845 test $ac_status = 0; } 2>conftest.err; then 14846 soname=conftest 14847 lib=conftest 14848 libobjs=conftest.$ac_objext 14849 deplibs= 14850 wl=$lt_prog_compiler_wl_CXX 14851 pic_flag=$lt_prog_compiler_pic_CXX 14852 compiler_flags=-v 14853 linker_flags=-v 14854 verstring= 14855 output_objdir=. 14856 libname=conftest 14857 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14858 allow_undefined_flag_CXX= 14859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14860 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14861 ac_status=$? 14862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14863 test $ac_status = 0; } 14864 then 14865 lt_cv_archive_cmds_need_lc_CXX=no 14866 else 14867 lt_cv_archive_cmds_need_lc_CXX=yes 14868 fi 14869 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14870 else 14871 cat conftest.err 1>&5 14872 fi 14873 $RM conftest* 14874 14875fi 14876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14877$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14878 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14879 ;; 14880 esac 14881 fi 14882 ;; 14883esac 14884 14885 14886 14887 14888 14889 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14949$as_echo_n "checking dynamic linker characteristics... " >&6; } 14950 14951library_names_spec= 14952libname_spec='lib$name' 14953soname_spec= 14954shrext_cmds=".so" 14955postinstall_cmds= 14956postuninstall_cmds= 14957finish_cmds= 14958finish_eval= 14959shlibpath_var= 14960shlibpath_overrides_runpath=unknown 14961version_type=none 14962dynamic_linker="$host_os ld.so" 14963sys_lib_dlsearch_path_spec="/lib /usr/lib" 14964need_lib_prefix=unknown 14965hardcode_into_libs=no 14966 14967# when you set need_version to no, make sure it does not cause -set_version 14968# flags to be left without arguments 14969need_version=unknown 14970 14971case $host_os in 14972aix3*) 14973 version_type=linux 14974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14975 shlibpath_var=LIBPATH 14976 14977 # AIX 3 has no versioning support, so we append a major version to the name. 14978 soname_spec='${libname}${release}${shared_ext}$major' 14979 ;; 14980 14981aix[4-9]*) 14982 version_type=linux 14983 need_lib_prefix=no 14984 need_version=no 14985 hardcode_into_libs=yes 14986 if test "$host_cpu" = ia64; then 14987 # AIX 5 supports IA64 14988 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14989 shlibpath_var=LD_LIBRARY_PATH 14990 else 14991 # With GCC up to 2.95.x, collect2 would create an import file 14992 # for dependence libraries. The import file would start with 14993 # the line `#! .'. This would cause the generated library to 14994 # depend on `.', always an invalid library. This was fixed in 14995 # development snapshots of GCC prior to 3.0. 14996 case $host_os in 14997 aix4 | aix4.[01] | aix4.[01].*) 14998 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14999 echo ' yes ' 15000 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15001 : 15002 else 15003 can_build_shared=no 15004 fi 15005 ;; 15006 esac 15007 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15008 # soname into executable. Probably we can add versioning support to 15009 # collect2, so additional links can be useful in future. 15010 if test "$aix_use_runtimelinking" = yes; then 15011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15012 # instead of lib<name>.a to let people know that these are not 15013 # typical AIX shared libraries. 15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15015 else 15016 # We preserve .a as extension for shared libraries through AIX4.2 15017 # and later when we are not doing run time linking. 15018 library_names_spec='${libname}${release}.a $libname.a' 15019 soname_spec='${libname}${release}${shared_ext}$major' 15020 fi 15021 shlibpath_var=LIBPATH 15022 fi 15023 ;; 15024 15025amigaos*) 15026 case $host_cpu in 15027 powerpc) 15028 # Since July 2007 AmigaOS4 officially supports .so libraries. 15029 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15031 ;; 15032 m68k) 15033 library_names_spec='$libname.ixlibrary $libname.a' 15034 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15035 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' 15036 ;; 15037 esac 15038 ;; 15039 15040beos*) 15041 library_names_spec='${libname}${shared_ext}' 15042 dynamic_linker="$host_os ld.so" 15043 shlibpath_var=LIBRARY_PATH 15044 ;; 15045 15046bsdi[45]*) 15047 version_type=linux 15048 need_version=no 15049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15050 soname_spec='${libname}${release}${shared_ext}$major' 15051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15052 shlibpath_var=LD_LIBRARY_PATH 15053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15055 # the default ld.so.conf also contains /usr/contrib/lib and 15056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15057 # libtool to hard-code these into programs 15058 ;; 15059 15060cygwin* | mingw* | pw32* | cegcc*) 15061 version_type=windows 15062 shrext_cmds=".dll" 15063 need_version=no 15064 need_lib_prefix=no 15065 15066 case $GCC,$cc_basename in 15067 yes,*) 15068 # gcc 15069 library_names_spec='$libname.dll.a' 15070 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15071 postinstall_cmds='base_file=`basename \${file}`~ 15072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15073 dldir=$destdir/`dirname \$dlpath`~ 15074 test -d \$dldir || mkdir -p \$dldir~ 15075 $install_prog $dir/$dlname \$dldir/$dlname~ 15076 chmod a+x \$dldir/$dlname~ 15077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15079 fi' 15080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15081 dlpath=$dir/\$dldll~ 15082 $RM \$dlpath' 15083 shlibpath_overrides_runpath=yes 15084 15085 case $host_os in 15086 cygwin*) 15087 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15089 15090 ;; 15091 mingw* | cegcc*) 15092 # MinGW DLLs use traditional 'lib' prefix 15093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15094 ;; 15095 pw32*) 15096 # pw32 DLLs use 'pw' prefix rather than 'lib' 15097 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15098 ;; 15099 esac 15100 dynamic_linker='Win32 ld.exe' 15101 ;; 15102 15103 *,cl*) 15104 # Native MSVC 15105 libname_spec='$name' 15106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15107 library_names_spec='${libname}.dll.lib' 15108 15109 case $build_os in 15110 mingw*) 15111 sys_lib_search_path_spec= 15112 lt_save_ifs=$IFS 15113 IFS=';' 15114 for lt_path in $LIB 15115 do 15116 IFS=$lt_save_ifs 15117 # Let DOS variable expansion print the short 8.3 style file name. 15118 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15119 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15120 done 15121 IFS=$lt_save_ifs 15122 # Convert to MSYS style. 15123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15124 ;; 15125 cygwin*) 15126 # Convert to unix form, then to dos form, then back to unix form 15127 # but this time dos style (no spaces!) so that the unix form looks 15128 # like /cygdrive/c/PROGRA~1:/cygdr... 15129 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15130 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15131 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15132 ;; 15133 *) 15134 sys_lib_search_path_spec="$LIB" 15135 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15136 # It is most probably a Windows format PATH. 15137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15138 else 15139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15140 fi 15141 # FIXME: find the short name or the path components, as spaces are 15142 # common. (e.g. "Program Files" -> "PROGRA~1") 15143 ;; 15144 esac 15145 15146 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15147 postinstall_cmds='base_file=`basename \${file}`~ 15148 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15149 dldir=$destdir/`dirname \$dlpath`~ 15150 test -d \$dldir || mkdir -p \$dldir~ 15151 $install_prog $dir/$dlname \$dldir/$dlname' 15152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15153 dlpath=$dir/\$dldll~ 15154 $RM \$dlpath' 15155 shlibpath_overrides_runpath=yes 15156 dynamic_linker='Win32 link.exe' 15157 ;; 15158 15159 *) 15160 # Assume MSVC wrapper 15161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15162 dynamic_linker='Win32 ld.exe' 15163 ;; 15164 esac 15165 # FIXME: first we should search . and the directory the executable is in 15166 shlibpath_var=PATH 15167 ;; 15168 15169darwin* | rhapsody*) 15170 dynamic_linker="$host_os dyld" 15171 version_type=darwin 15172 need_lib_prefix=no 15173 need_version=no 15174 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15175 soname_spec='${libname}${release}${major}$shared_ext' 15176 shlibpath_overrides_runpath=yes 15177 shlibpath_var=DYLD_LIBRARY_PATH 15178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15179 15180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15181 ;; 15182 15183dgux*) 15184 version_type=linux 15185 need_lib_prefix=no 15186 need_version=no 15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15188 soname_spec='${libname}${release}${shared_ext}$major' 15189 shlibpath_var=LD_LIBRARY_PATH 15190 ;; 15191 15192freebsd1*) 15193 dynamic_linker=no 15194 ;; 15195 15196freebsd* | dragonfly*) 15197 # DragonFly does not have aout. When/if they implement a new 15198 # versioning mechanism, adjust this. 15199 if test -x /usr/bin/objformat; then 15200 objformat=`/usr/bin/objformat` 15201 else 15202 case $host_os in 15203 freebsd[123]*) objformat=aout ;; 15204 *) objformat=elf ;; 15205 esac 15206 fi 15207 version_type=freebsd-$objformat 15208 case $version_type in 15209 freebsd-elf*) 15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15211 need_version=no 15212 need_lib_prefix=no 15213 ;; 15214 freebsd-*) 15215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15216 need_version=yes 15217 ;; 15218 esac 15219 shlibpath_var=LD_LIBRARY_PATH 15220 case $host_os in 15221 freebsd2*) 15222 shlibpath_overrides_runpath=yes 15223 ;; 15224 freebsd3.[01]* | freebsdelf3.[01]*) 15225 shlibpath_overrides_runpath=yes 15226 hardcode_into_libs=yes 15227 ;; 15228 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15229 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15230 shlibpath_overrides_runpath=no 15231 hardcode_into_libs=yes 15232 ;; 15233 *) # from 4.6 on, and DragonFly 15234 shlibpath_overrides_runpath=yes 15235 hardcode_into_libs=yes 15236 ;; 15237 esac 15238 ;; 15239 15240gnu*) 15241 version_type=linux 15242 need_lib_prefix=no 15243 need_version=no 15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15245 soname_spec='${libname}${release}${shared_ext}$major' 15246 shlibpath_var=LD_LIBRARY_PATH 15247 hardcode_into_libs=yes 15248 ;; 15249 15250haiku*) 15251 version_type=linux 15252 need_lib_prefix=no 15253 need_version=no 15254 dynamic_linker="$host_os runtime_loader" 15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15256 soname_spec='${libname}${release}${shared_ext}$major' 15257 shlibpath_var=LIBRARY_PATH 15258 shlibpath_overrides_runpath=yes 15259 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15260 hardcode_into_libs=yes 15261 ;; 15262 15263hpux9* | hpux10* | hpux11*) 15264 # Give a soname corresponding to the major version so that dld.sl refuses to 15265 # link against other versions. 15266 version_type=sunos 15267 need_lib_prefix=no 15268 need_version=no 15269 case $host_cpu in 15270 ia64*) 15271 shrext_cmds='.so' 15272 hardcode_into_libs=yes 15273 dynamic_linker="$host_os dld.so" 15274 shlibpath_var=LD_LIBRARY_PATH 15275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15277 soname_spec='${libname}${release}${shared_ext}$major' 15278 if test "X$HPUX_IA64_MODE" = X32; then 15279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15280 else 15281 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15282 fi 15283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15284 ;; 15285 hppa*64*) 15286 shrext_cmds='.sl' 15287 hardcode_into_libs=yes 15288 dynamic_linker="$host_os dld.sl" 15289 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15292 soname_spec='${libname}${release}${shared_ext}$major' 15293 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15295 ;; 15296 *) 15297 shrext_cmds='.sl' 15298 dynamic_linker="$host_os dld.sl" 15299 shlibpath_var=SHLIB_PATH 15300 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15302 soname_spec='${libname}${release}${shared_ext}$major' 15303 ;; 15304 esac 15305 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15306 postinstall_cmds='chmod 555 $lib' 15307 # or fails outright, so override atomically: 15308 install_override_mode=555 15309 ;; 15310 15311interix[3-9]*) 15312 version_type=linux 15313 need_lib_prefix=no 15314 need_version=no 15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15316 soname_spec='${libname}${release}${shared_ext}$major' 15317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15318 shlibpath_var=LD_LIBRARY_PATH 15319 shlibpath_overrides_runpath=no 15320 hardcode_into_libs=yes 15321 ;; 15322 15323irix5* | irix6* | nonstopux*) 15324 case $host_os in 15325 nonstopux*) version_type=nonstopux ;; 15326 *) 15327 if test "$lt_cv_prog_gnu_ld" = yes; then 15328 version_type=linux 15329 else 15330 version_type=irix 15331 fi ;; 15332 esac 15333 need_lib_prefix=no 15334 need_version=no 15335 soname_spec='${libname}${release}${shared_ext}$major' 15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15337 case $host_os in 15338 irix5* | nonstopux*) 15339 libsuff= shlibsuff= 15340 ;; 15341 *) 15342 case $LD in # libtool.m4 will add one of these switches to LD 15343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15344 libsuff= shlibsuff= libmagic=32-bit;; 15345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15346 libsuff=32 shlibsuff=N32 libmagic=N32;; 15347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15348 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15349 *) libsuff= shlibsuff= libmagic=never-match;; 15350 esac 15351 ;; 15352 esac 15353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15354 shlibpath_overrides_runpath=no 15355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15357 hardcode_into_libs=yes 15358 ;; 15359 15360# No shared lib support for Linux oldld, aout, or coff. 15361linux*oldld* | linux*aout* | linux*coff*) 15362 dynamic_linker=no 15363 ;; 15364 15365# This must be Linux ELF. 15366linux* | k*bsd*-gnu | kopensolaris*-gnu) 15367 version_type=linux 15368 need_lib_prefix=no 15369 need_version=no 15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15371 soname_spec='${libname}${release}${shared_ext}$major' 15372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15373 shlibpath_var=LD_LIBRARY_PATH 15374 shlibpath_overrides_runpath=no 15375 15376 # Some binutils ld are patched to set DT_RUNPATH 15377 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15378 $as_echo_n "(cached) " >&6 15379else 15380 lt_cv_shlibpath_overrides_runpath=no 15381 save_LDFLAGS=$LDFLAGS 15382 save_libdir=$libdir 15383 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15384 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386/* end confdefs.h. */ 15387 15388int 15389main () 15390{ 15391 15392 ; 15393 return 0; 15394} 15395_ACEOF 15396if ac_fn_cxx_try_link "$LINENO"; then : 15397 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15398 lt_cv_shlibpath_overrides_runpath=yes 15399fi 15400fi 15401rm -f core conftest.err conftest.$ac_objext \ 15402 conftest$ac_exeext conftest.$ac_ext 15403 LDFLAGS=$save_LDFLAGS 15404 libdir=$save_libdir 15405 15406fi 15407 15408 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15409 15410 # This implies no fast_install, which is unacceptable. 15411 # Some rework will be needed to allow for fast_install 15412 # before this can be enabled. 15413 hardcode_into_libs=yes 15414 15415 # Append ld.so.conf contents to the search path 15416 if test -f /etc/ld.so.conf; then 15417 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' ' '` 15418 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15419 fi 15420 15421 # We used to test for /lib/ld.so.1 and disable shared libraries on 15422 # powerpc, because MkLinux only supported shared libraries with the 15423 # GNU dynamic linker. Since this was broken with cross compilers, 15424 # most powerpc-linux boxes support dynamic linking these days and 15425 # people can always --disable-shared, the test was removed, and we 15426 # assume the GNU/Linux dynamic linker is in use. 15427 dynamic_linker='GNU/Linux ld.so' 15428 ;; 15429 15430netbsd*) 15431 version_type=sunos 15432 need_lib_prefix=no 15433 need_version=no 15434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15437 dynamic_linker='NetBSD (a.out) ld.so' 15438 else 15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15440 soname_spec='${libname}${release}${shared_ext}$major' 15441 dynamic_linker='NetBSD ld.elf_so' 15442 fi 15443 shlibpath_var=LD_LIBRARY_PATH 15444 shlibpath_overrides_runpath=yes 15445 hardcode_into_libs=yes 15446 ;; 15447 15448newsos6) 15449 version_type=linux 15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15451 shlibpath_var=LD_LIBRARY_PATH 15452 shlibpath_overrides_runpath=yes 15453 ;; 15454 15455*nto* | *qnx*) 15456 version_type=qnx 15457 need_lib_prefix=no 15458 need_version=no 15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15460 soname_spec='${libname}${release}${shared_ext}$major' 15461 shlibpath_var=LD_LIBRARY_PATH 15462 shlibpath_overrides_runpath=no 15463 hardcode_into_libs=yes 15464 dynamic_linker='ldqnx.so' 15465 ;; 15466 15467openbsd*) 15468 version_type=sunos 15469 sys_lib_dlsearch_path_spec="/usr/lib" 15470 need_lib_prefix=no 15471 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15472 case $host_os in 15473 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15474 *) need_version=no ;; 15475 esac 15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15478 shlibpath_var=LD_LIBRARY_PATH 15479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15480 case $host_os in 15481 openbsd2.[89] | openbsd2.[89].*) 15482 shlibpath_overrides_runpath=no 15483 ;; 15484 *) 15485 shlibpath_overrides_runpath=yes 15486 ;; 15487 esac 15488 else 15489 shlibpath_overrides_runpath=yes 15490 fi 15491 ;; 15492 15493os2*) 15494 libname_spec='$name' 15495 shrext_cmds=".dll" 15496 need_lib_prefix=no 15497 library_names_spec='$libname${shared_ext} $libname.a' 15498 dynamic_linker='OS/2 ld.exe' 15499 shlibpath_var=LIBPATH 15500 ;; 15501 15502osf3* | osf4* | osf5*) 15503 version_type=osf 15504 need_lib_prefix=no 15505 need_version=no 15506 soname_spec='${libname}${release}${shared_ext}$major' 15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15508 shlibpath_var=LD_LIBRARY_PATH 15509 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15510 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15511 ;; 15512 15513rdos*) 15514 dynamic_linker=no 15515 ;; 15516 15517solaris*) 15518 version_type=linux 15519 need_lib_prefix=no 15520 need_version=no 15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15522 soname_spec='${libname}${release}${shared_ext}$major' 15523 shlibpath_var=LD_LIBRARY_PATH 15524 shlibpath_overrides_runpath=yes 15525 hardcode_into_libs=yes 15526 # ldd complains unless libraries are executable 15527 postinstall_cmds='chmod +x $lib' 15528 ;; 15529 15530sunos4*) 15531 version_type=sunos 15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15534 shlibpath_var=LD_LIBRARY_PATH 15535 shlibpath_overrides_runpath=yes 15536 if test "$with_gnu_ld" = yes; then 15537 need_lib_prefix=no 15538 fi 15539 need_version=yes 15540 ;; 15541 15542sysv4 | sysv4.3*) 15543 version_type=linux 15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15545 soname_spec='${libname}${release}${shared_ext}$major' 15546 shlibpath_var=LD_LIBRARY_PATH 15547 case $host_vendor in 15548 sni) 15549 shlibpath_overrides_runpath=no 15550 need_lib_prefix=no 15551 runpath_var=LD_RUN_PATH 15552 ;; 15553 siemens) 15554 need_lib_prefix=no 15555 ;; 15556 motorola) 15557 need_lib_prefix=no 15558 need_version=no 15559 shlibpath_overrides_runpath=no 15560 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15561 ;; 15562 esac 15563 ;; 15564 15565sysv4*MP*) 15566 if test -d /usr/nec ;then 15567 version_type=linux 15568 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15569 soname_spec='$libname${shared_ext}.$major' 15570 shlibpath_var=LD_LIBRARY_PATH 15571 fi 15572 ;; 15573 15574sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15575 version_type=freebsd-elf 15576 need_lib_prefix=no 15577 need_version=no 15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15579 soname_spec='${libname}${release}${shared_ext}$major' 15580 shlibpath_var=LD_LIBRARY_PATH 15581 shlibpath_overrides_runpath=yes 15582 hardcode_into_libs=yes 15583 if test "$with_gnu_ld" = yes; then 15584 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15585 else 15586 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15587 case $host_os in 15588 sco3.2v5*) 15589 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15590 ;; 15591 esac 15592 fi 15593 sys_lib_dlsearch_path_spec='/usr/lib' 15594 ;; 15595 15596tpf*) 15597 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15598 version_type=linux 15599 need_lib_prefix=no 15600 need_version=no 15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15602 shlibpath_var=LD_LIBRARY_PATH 15603 shlibpath_overrides_runpath=no 15604 hardcode_into_libs=yes 15605 ;; 15606 15607uts4*) 15608 version_type=linux 15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15610 soname_spec='${libname}${release}${shared_ext}$major' 15611 shlibpath_var=LD_LIBRARY_PATH 15612 ;; 15613 15614*) 15615 dynamic_linker=no 15616 ;; 15617esac 15618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15619$as_echo "$dynamic_linker" >&6; } 15620test "$dynamic_linker" = no && can_build_shared=no 15621 15622variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15623if test "$GCC" = yes; then 15624 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15625fi 15626 15627if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15628 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15629fi 15630if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15631 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15632fi 15633 15634 15635 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15672$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15673hardcode_action_CXX= 15674if test -n "$hardcode_libdir_flag_spec_CXX" || 15675 test -n "$runpath_var_CXX" || 15676 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15677 15678 # We can hardcode non-existent directories. 15679 if test "$hardcode_direct_CXX" != no && 15680 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15681 # have to relink, otherwise we might link with an installed library 15682 # when we should be linking with a yet-to-be-installed one 15683 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15684 test "$hardcode_minus_L_CXX" != no; then 15685 # Linking always hardcodes the temporary library directory. 15686 hardcode_action_CXX=relink 15687 else 15688 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15689 hardcode_action_CXX=immediate 15690 fi 15691else 15692 # We cannot hardcode anything, or else we can only hardcode existing 15693 # directories. 15694 hardcode_action_CXX=unsupported 15695fi 15696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15697$as_echo "$hardcode_action_CXX" >&6; } 15698 15699if test "$hardcode_action_CXX" = relink || 15700 test "$inherit_rpath_CXX" = yes; then 15701 # Fast installation is not supported 15702 enable_fast_install=no 15703elif test "$shlibpath_overrides_runpath" = yes || 15704 test "$enable_shared" = no; then 15705 # Fast installation is not necessary 15706 enable_fast_install=needless 15707fi 15708 15709 15710 15711 15712 15713 15714 15715 fi # test -n "$compiler" 15716 15717 CC=$lt_save_CC 15718 CFLAGS=$lt_save_CFLAGS 15719 LDCXX=$LD 15720 LD=$lt_save_LD 15721 GCC=$lt_save_GCC 15722 with_gnu_ld=$lt_save_with_gnu_ld 15723 lt_cv_path_LDCXX=$lt_cv_path_LD 15724 lt_cv_path_LD=$lt_save_path_LD 15725 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15726 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15727fi # test "$_lt_caught_CXX_error" != yes 15728 15729ac_ext=c 15730ac_cpp='$CPP $CPPFLAGS' 15731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15733ac_compiler_gnu=$ac_cv_c_compiler_gnu 15734 15735 15736# Find a good install program. We prefer a C program (faster), 15737# so one script is as good as another. But avoid the broken or 15738# incompatible versions: 15739# SysV /etc/install, /usr/sbin/install 15740# SunOS /usr/etc/install 15741# IRIX /sbin/install 15742# AIX /bin/install 15743# AmigaOS /C/install, which installs bootblocks on floppy discs 15744# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 15745# AFS /usr/afsws/bin/install, which mishandles nonexistent args 15746# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 15747# OS/2's system install, which has a completely different semantic 15748# ./install, which can be erroneously created by make from ./install.sh. 15749# Reject install programs that cannot install multiple files. 15750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 15751$as_echo_n "checking for a BSD-compatible install... " >&6; } 15752if test -z "$INSTALL"; then 15753if ${ac_cv_path_install+:} false; then : 15754 $as_echo_n "(cached) " >&6 15755else 15756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15757for as_dir in $PATH 15758do 15759 IFS=$as_save_IFS 15760 test -z "$as_dir" && as_dir=. 15761 # Account for people who put trailing slashes in PATH elements. 15762case $as_dir/ in #(( 15763 ./ | .// | /[cC]/* | \ 15764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 15765 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 15766 /usr/ucb/* ) ;; 15767 *) 15768 # OSF1 and SCO ODT 3.0 have their own names for install. 15769 # Don't use installbsd from OSF since it installs stuff as root 15770 # by default. 15771 for ac_prog in ginstall scoinst install; do 15772 for ac_exec_ext in '' $ac_executable_extensions; do 15773 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 15774 if test $ac_prog = install && 15775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15776 # AIX install. It has an incompatible calling convention. 15777 : 15778 elif test $ac_prog = install && 15779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15780 # program-specific install script used by HP pwplus--don't use. 15781 : 15782 else 15783 rm -rf conftest.one conftest.two conftest.dir 15784 echo one > conftest.one 15785 echo two > conftest.two 15786 mkdir conftest.dir 15787 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 15788 test -s conftest.one && test -s conftest.two && 15789 test -s conftest.dir/conftest.one && 15790 test -s conftest.dir/conftest.two 15791 then 15792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 15793 break 3 15794 fi 15795 fi 15796 fi 15797 done 15798 done 15799 ;; 15800esac 15801 15802 done 15803IFS=$as_save_IFS 15804 15805rm -rf conftest.one conftest.two conftest.dir 15806 15807fi 15808 if test "${ac_cv_path_install+set}" = set; then 15809 INSTALL=$ac_cv_path_install 15810 else 15811 # As a last resort, use the slow shell script. Don't cache a 15812 # value for INSTALL within a source directory, because that will 15813 # break other packages using the cache if that directory is 15814 # removed, or if the value is a relative name. 15815 INSTALL=$ac_install_sh 15816 fi 15817fi 15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 15819$as_echo "$INSTALL" >&6; } 15820 15821# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 15822# It thinks the first close brace ends the variable substitution. 15823test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 15824 15825test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 15826 15827test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 15828 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 15830$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 15831set x ${MAKE-make} 15832ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 15833if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 15834 $as_echo_n "(cached) " >&6 15835else 15836 cat >conftest.make <<\_ACEOF 15837SHELL = /bin/sh 15838all: 15839 @echo '@@@%%%=$(MAKE)=@@@%%%' 15840_ACEOF 15841# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 15842case `${MAKE-make} -f conftest.make 2>/dev/null` in 15843 *@@@%%%=?*=@@@%%%*) 15844 eval ac_cv_prog_make_${ac_make}_set=yes;; 15845 *) 15846 eval ac_cv_prog_make_${ac_make}_set=no;; 15847esac 15848rm -f conftest.make 15849fi 15850if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15852$as_echo "yes" >&6; } 15853 SET_MAKE= 15854else 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15856$as_echo "no" >&6; } 15857 SET_MAKE="MAKE=${MAKE-make}" 15858fi 15859 15860if test -z "$host_alias"; then 15861 hostaliaswindres= 15862else 15863 hostaliaswindres="$host_alias-windres" 15864fi 15865for ac_prog in windres $hostaliaswindres $host_os-windres 15866do 15867 # Extract the first word of "$ac_prog", so it can be a program name with args. 15868set dummy $ac_prog; ac_word=$2 15869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15870$as_echo_n "checking for $ac_word... " >&6; } 15871if ${ac_cv_prog_WINDRES+:} false; then : 15872 $as_echo_n "(cached) " >&6 15873else 15874 if test -n "$WINDRES"; then 15875 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 15876else 15877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15878for as_dir in $PATH 15879do 15880 IFS=$as_save_IFS 15881 test -z "$as_dir" && as_dir=. 15882 for ac_exec_ext in '' $ac_executable_extensions; do 15883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15884 ac_cv_prog_WINDRES="$ac_prog" 15885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15886 break 2 15887 fi 15888done 15889 done 15890IFS=$as_save_IFS 15891 15892fi 15893fi 15894WINDRES=$ac_cv_prog_WINDRES 15895if test -n "$WINDRES"; then 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 15897$as_echo "$WINDRES" >&6; } 15898else 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15900$as_echo "no" >&6; } 15901fi 15902 15903 15904 test -n "$WINDRES" && break 15905done 15906 15907 15908INCLUDE="-I$srcdir/include" 15909if test x$srcdir != x.; then 15910 # Remove SDL_config.h from the source directory, since it's the 15911 # default one, and we want to include the one that we generate. 15912 if test -f $srcdir/include/SDL_config.h; then 15913 rm $srcdir/include/SDL_config.h 15914 fi 15915 INCLUDE="-Iinclude $INCLUDE" 15916fi 15917case "$host" in 15918 *) 15919 BASE_CFLAGS="-D_GNU_SOURCE=1" 15920 BASE_LDFLAGS="" 15921 ;; 15922esac 15923BUILD_CFLAGS="$CFLAGS $CPPFLAGS" 15924EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" 15925BUILD_LDFLAGS="$LDFLAGS" 15926EXTRA_LDFLAGS="$BASE_LDFLAGS" 15927## These are common directories to find software packages 15928#for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do 15929# if test -d $path/include; then 15930# EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" 15931# fi 15932# if test -d $path/lib; then 15933# EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib" 15934# fi 15935#done 15936SDL_CFLAGS="$BASE_CFLAGS" 15937SDL_LIBS="-lSDL $BASE_LDFLAGS" 15938CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" 15939CFLAGS="$CFLAGS $EXTRA_CFLAGS" 15940LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 15941 15942base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` 15943 15944find_lib() 15945{ 15946 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 15947 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 15948 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'` 15949 if test "$cross_compiling" = yes; then 15950 host_lib_path="" 15951 else 15952 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" 15953 fi 15954 for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do 15955 lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'` 15956 if test x$lib != x; then 15957 echo $lib 15958 return 15959 fi 15960 done 15961} 15962 15963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15964$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15965if ${ac_cv_c_const+:} false; then : 15966 $as_echo_n "(cached) " >&6 15967else 15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15969/* end confdefs.h. */ 15970 15971int 15972main () 15973{ 15974/* FIXME: Include the comments suggested by Paul. */ 15975#ifndef __cplusplus 15976 /* Ultrix mips cc rejects this. */ 15977 typedef int charset[2]; 15978 const charset cs; 15979 /* SunOS 4.1.1 cc rejects this. */ 15980 char const *const *pcpcc; 15981 char **ppc; 15982 /* NEC SVR4.0.2 mips cc rejects this. */ 15983 struct point {int x, y;}; 15984 static struct point const zero = {0,0}; 15985 /* AIX XL C 1.02.0.0 rejects this. 15986 It does not let you subtract one const X* pointer from another in 15987 an arm of an if-expression whose if-part is not a constant 15988 expression */ 15989 const char *g = "string"; 15990 pcpcc = &g + (g ? g-g : 0); 15991 /* HPUX 7.0 cc rejects these. */ 15992 ++pcpcc; 15993 ppc = (char**) pcpcc; 15994 pcpcc = (char const *const *) ppc; 15995 { /* SCO 3.2v4 cc rejects this. */ 15996 char *t; 15997 char const *s = 0 ? (char *) 0 : (char const *) 0; 15998 15999 *t++ = 0; 16000 if (s) return 0; 16001 } 16002 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16003 int x[] = {25, 17}; 16004 const int *foo = &x[0]; 16005 ++foo; 16006 } 16007 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16008 typedef const int *iptr; 16009 iptr p = 0; 16010 ++p; 16011 } 16012 { /* AIX XL C 1.02.0.0 rejects this saying 16013 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16014 struct s { int j; const int *ap[3]; }; 16015 struct s *b; b->j = 5; 16016 } 16017 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16018 const int foo = 10; 16019 if (!foo) return 0; 16020 } 16021 return !cs[0] && !zero.x; 16022#endif 16023 16024 ; 16025 return 0; 16026} 16027_ACEOF 16028if ac_fn_c_try_compile "$LINENO"; then : 16029 ac_cv_c_const=yes 16030else 16031 ac_cv_c_const=no 16032fi 16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16034fi 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16036$as_echo "$ac_cv_c_const" >&6; } 16037if test $ac_cv_c_const = no; then 16038 16039$as_echo "#define const /**/" >>confdefs.h 16040 16041fi 16042 16043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16044$as_echo_n "checking for inline... " >&6; } 16045if ${ac_cv_c_inline+:} false; then : 16046 $as_echo_n "(cached) " >&6 16047else 16048 ac_cv_c_inline=no 16049for ac_kw in inline __inline__ __inline; do 16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16051/* end confdefs.h. */ 16052#ifndef __cplusplus 16053typedef int foo_t; 16054static $ac_kw foo_t static_foo () {return 0; } 16055$ac_kw foo_t foo () {return 0; } 16056#endif 16057 16058_ACEOF 16059if ac_fn_c_try_compile "$LINENO"; then : 16060 ac_cv_c_inline=$ac_kw 16061fi 16062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16063 test "$ac_cv_c_inline" != no && break 16064done 16065 16066fi 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16068$as_echo "$ac_cv_c_inline" >&6; } 16069 16070case $ac_cv_c_inline in 16071 inline | yes) ;; 16072 *) 16073 case $ac_cv_c_inline in 16074 no) ac_val=;; 16075 *) ac_val=$ac_cv_c_inline;; 16076 esac 16077 cat >>confdefs.h <<_ACEOF 16078#ifndef __cplusplus 16079#define inline $ac_val 16080#endif 16081_ACEOF 16082 ;; 16083esac 16084 16085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 16086$as_echo_n "checking for working volatile... " >&6; } 16087if ${ac_cv_c_volatile+:} false; then : 16088 $as_echo_n "(cached) " >&6 16089else 16090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16091/* end confdefs.h. */ 16092 16093int 16094main () 16095{ 16096 16097volatile int x; 16098int * volatile y = (int *) 0; 16099return !x && !y; 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_c_try_compile "$LINENO"; then : 16105 ac_cv_c_volatile=yes 16106else 16107 ac_cv_c_volatile=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16110fi 16111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 16112$as_echo "$ac_cv_c_volatile" >&6; } 16113if test $ac_cv_c_volatile = no; then 16114 16115$as_echo "#define volatile /**/" >>confdefs.h 16116 16117fi 16118 16119 16120# Check whether --enable-libc was given. 16121if test "${enable_libc+set}" = set; then : 16122 enableval=$enable_libc; 16123else 16124 enable_libc=yes 16125fi 16126 16127if test x$enable_libc = xyes; then 16128 $as_echo "#define HAVE_LIBC 1" >>confdefs.h 16129 16130 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16132$as_echo_n "checking for ANSI C header files... " >&6; } 16133if ${ac_cv_header_stdc+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138#include <stdlib.h> 16139#include <stdarg.h> 16140#include <string.h> 16141#include <float.h> 16142 16143int 16144main () 16145{ 16146 16147 ; 16148 return 0; 16149} 16150_ACEOF 16151if ac_fn_c_try_compile "$LINENO"; then : 16152 ac_cv_header_stdc=yes 16153else 16154 ac_cv_header_stdc=no 16155fi 16156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16157 16158if test $ac_cv_header_stdc = yes; then 16159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161/* end confdefs.h. */ 16162#include <string.h> 16163 16164_ACEOF 16165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16166 $EGREP "memchr" >/dev/null 2>&1; then : 16167 16168else 16169 ac_cv_header_stdc=no 16170fi 16171rm -f conftest* 16172 16173fi 16174 16175if test $ac_cv_header_stdc = yes; then 16176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178/* end confdefs.h. */ 16179#include <stdlib.h> 16180 16181_ACEOF 16182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16183 $EGREP "free" >/dev/null 2>&1; then : 16184 16185else 16186 ac_cv_header_stdc=no 16187fi 16188rm -f conftest* 16189 16190fi 16191 16192if test $ac_cv_header_stdc = yes; then 16193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16194 if test "$cross_compiling" = yes; then : 16195 : 16196else 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198/* end confdefs.h. */ 16199#include <ctype.h> 16200#include <stdlib.h> 16201#if ((' ' & 0x0FF) == 0x020) 16202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16204#else 16205# define ISLOWER(c) \ 16206 (('a' <= (c) && (c) <= 'i') \ 16207 || ('j' <= (c) && (c) <= 'r') \ 16208 || ('s' <= (c) && (c) <= 'z')) 16209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16210#endif 16211 16212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16213int 16214main () 16215{ 16216 int i; 16217 for (i = 0; i < 256; i++) 16218 if (XOR (islower (i), ISLOWER (i)) 16219 || toupper (i) != TOUPPER (i)) 16220 return 2; 16221 return 0; 16222} 16223_ACEOF 16224if ac_fn_c_try_run "$LINENO"; then : 16225 16226else 16227 ac_cv_header_stdc=no 16228fi 16229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16230 conftest.$ac_objext conftest.beam conftest.$ac_ext 16231fi 16232 16233fi 16234fi 16235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16236$as_echo "$ac_cv_header_stdc" >&6; } 16237if test $ac_cv_header_stdc = yes; then 16238 16239$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16240 16241fi 16242 16243 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h 16244do : 16245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16246ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16248 cat >>confdefs.h <<_ACEOF 16249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16250_ACEOF 16251 16252fi 16253 16254done 16255 16256 16257 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16258if test "x$ac_cv_type_size_t" = xyes; then : 16259 16260else 16261 16262cat >>confdefs.h <<_ACEOF 16263#define size_t unsigned int 16264_ACEOF 16265 16266fi 16267 16268 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then 16269 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 16270if test "x$ac_cv_type_int64_t" = xyes; then : 16271 16272fi 16273 16274 if test x$ac_cv_type_int64_t = xyes; then 16275 $as_echo "#define SDL_HAS_64BIT_TYPE 1" >>confdefs.h 16276 16277 fi 16278 have_inttypes=yes 16279 fi 16280 16281 case "$host" in 16282 *-*-mingw32*) 16283 ;; 16284 *) 16285 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16286# for constant arguments. Useless! 16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16288$as_echo_n "checking for working alloca.h... " >&6; } 16289if ${ac_cv_working_alloca_h+:} false; then : 16290 $as_echo_n "(cached) " >&6 16291else 16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16293/* end confdefs.h. */ 16294#include <alloca.h> 16295int 16296main () 16297{ 16298char *p = (char *) alloca (2 * sizeof (int)); 16299 if (p) return 0; 16300 ; 16301 return 0; 16302} 16303_ACEOF 16304if ac_fn_c_try_link "$LINENO"; then : 16305 ac_cv_working_alloca_h=yes 16306else 16307 ac_cv_working_alloca_h=no 16308fi 16309rm -f core conftest.err conftest.$ac_objext \ 16310 conftest$ac_exeext conftest.$ac_ext 16311fi 16312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16313$as_echo "$ac_cv_working_alloca_h" >&6; } 16314if test $ac_cv_working_alloca_h = yes; then 16315 16316$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16317 16318fi 16319 16320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16321$as_echo_n "checking for alloca... " >&6; } 16322if ${ac_cv_func_alloca_works+:} false; then : 16323 $as_echo_n "(cached) " >&6 16324else 16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16326/* end confdefs.h. */ 16327#ifdef __GNUC__ 16328# define alloca __builtin_alloca 16329#else 16330# ifdef _MSC_VER 16331# include <malloc.h> 16332# define alloca _alloca 16333# else 16334# ifdef HAVE_ALLOCA_H 16335# include <alloca.h> 16336# else 16337# ifdef _AIX 16338 #pragma alloca 16339# else 16340# ifndef alloca /* predefined by HP cc +Olibcalls */ 16341void *alloca (size_t); 16342# endif 16343# endif 16344# endif 16345# endif 16346#endif 16347 16348int 16349main () 16350{ 16351char *p = (char *) alloca (1); 16352 if (p) return 0; 16353 ; 16354 return 0; 16355} 16356_ACEOF 16357if ac_fn_c_try_link "$LINENO"; then : 16358 ac_cv_func_alloca_works=yes 16359else 16360 ac_cv_func_alloca_works=no 16361fi 16362rm -f core conftest.err conftest.$ac_objext \ 16363 conftest$ac_exeext conftest.$ac_ext 16364fi 16365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16366$as_echo "$ac_cv_func_alloca_works" >&6; } 16367 16368if test $ac_cv_func_alloca_works = yes; then 16369 16370$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16371 16372else 16373 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16374# that cause trouble. Some versions do not even contain alloca or 16375# contain a buggy version. If you still want to use their alloca, 16376# use ar to extract alloca.o from them instead of compiling alloca.c. 16377 16378ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16379 16380$as_echo "#define C_ALLOCA 1" >>confdefs.h 16381 16382 16383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16384$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16385if ${ac_cv_os_cray+:} false; then : 16386 $as_echo_n "(cached) " >&6 16387else 16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16389/* end confdefs.h. */ 16390#if defined CRAY && ! defined CRAY2 16391webecray 16392#else 16393wenotbecray 16394#endif 16395 16396_ACEOF 16397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16398 $EGREP "webecray" >/dev/null 2>&1; then : 16399 ac_cv_os_cray=yes 16400else 16401 ac_cv_os_cray=no 16402fi 16403rm -f conftest* 16404 16405fi 16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16407$as_echo "$ac_cv_os_cray" >&6; } 16408if test $ac_cv_os_cray = yes; then 16409 for ac_func in _getb67 GETB67 getb67; do 16410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16412if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16413 16414cat >>confdefs.h <<_ACEOF 16415#define CRAY_STACKSEG_END $ac_func 16416_ACEOF 16417 16418 break 16419fi 16420 16421 done 16422fi 16423 16424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16425$as_echo_n "checking stack direction for C alloca... " >&6; } 16426if ${ac_cv_c_stack_direction+:} false; then : 16427 $as_echo_n "(cached) " >&6 16428else 16429 if test "$cross_compiling" = yes; then : 16430 ac_cv_c_stack_direction=0 16431else 16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16433/* end confdefs.h. */ 16434$ac_includes_default 16435int 16436find_stack_direction () 16437{ 16438 static char *addr = 0; 16439 auto char dummy; 16440 if (addr == 0) 16441 { 16442 addr = &dummy; 16443 return find_stack_direction (); 16444 } 16445 else 16446 return (&dummy > addr) ? 1 : -1; 16447} 16448 16449int 16450main () 16451{ 16452 return find_stack_direction () < 0; 16453} 16454_ACEOF 16455if ac_fn_c_try_run "$LINENO"; then : 16456 ac_cv_c_stack_direction=1 16457else 16458 ac_cv_c_stack_direction=-1 16459fi 16460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16461 conftest.$ac_objext conftest.beam conftest.$ac_ext 16462fi 16463 16464fi 16465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16466$as_echo "$ac_cv_c_stack_direction" >&6; } 16467cat >>confdefs.h <<_ACEOF 16468#define STACK_DIRECTION $ac_cv_c_stack_direction 16469_ACEOF 16470 16471 16472fi 16473 16474 ;; 16475 esac 16476 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 16478$as_echo_n "checking for working memcmp... " >&6; } 16479if ${ac_cv_func_memcmp_working+:} false; then : 16480 $as_echo_n "(cached) " >&6 16481else 16482 if test "$cross_compiling" = yes; then : 16483 ac_cv_func_memcmp_working=no 16484else 16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16486/* end confdefs.h. */ 16487$ac_includes_default 16488int 16489main () 16490{ 16491 16492 /* Some versions of memcmp are not 8-bit clean. */ 16493 char c0 = '\100', c1 = '\200', c2 = '\201'; 16494 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 16495 return 1; 16496 16497 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 16498 or more and with at least one buffer not starting on a 4-byte boundary. 16499 William Lewis provided this test program. */ 16500 { 16501 char foo[21]; 16502 char bar[21]; 16503 int i; 16504 for (i = 0; i < 4; i++) 16505 { 16506 char *a = foo + i; 16507 char *b = bar + i; 16508 strcpy (a, "--------01111111"); 16509 strcpy (b, "--------10000000"); 16510 if (memcmp (a, b, 16) >= 0) 16511 return 1; 16512 } 16513 return 0; 16514 } 16515 16516 ; 16517 return 0; 16518} 16519_ACEOF 16520if ac_fn_c_try_run "$LINENO"; then : 16521 ac_cv_func_memcmp_working=yes 16522else 16523 ac_cv_func_memcmp_working=no 16524fi 16525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16526 conftest.$ac_objext conftest.beam conftest.$ac_ext 16527fi 16528 16529fi 16530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 16531$as_echo "$ac_cv_func_memcmp_working" >&6; } 16532test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 16533 *" memcmp.$ac_objext "* ) ;; 16534 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16535 ;; 16536esac 16537 16538 16539 if test x$ac_cv_func_memcmp_working = xyes; then 16540 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h 16541 16542 fi 16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 16544$as_echo_n "checking for working strtod... " >&6; } 16545if ${ac_cv_func_strtod+:} false; then : 16546 $as_echo_n "(cached) " >&6 16547else 16548 if test "$cross_compiling" = yes; then : 16549 ac_cv_func_strtod=no 16550else 16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16552/* end confdefs.h. */ 16553 16554$ac_includes_default 16555#ifndef strtod 16556double strtod (); 16557#endif 16558int 16559main() 16560{ 16561 { 16562 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 16563 char *string = " +69"; 16564 char *term; 16565 double value; 16566 value = strtod (string, &term); 16567 if (value != 69 || term != (string + 4)) 16568 return 1; 16569 } 16570 16571 { 16572 /* Under Solaris 2.4, strtod returns the wrong value for the 16573 terminating character under some conditions. */ 16574 char *string = "NaN"; 16575 char *term; 16576 strtod (string, &term); 16577 if (term != string && *(term - 1) == 0) 16578 return 1; 16579 } 16580 return 0; 16581} 16582 16583_ACEOF 16584if ac_fn_c_try_run "$LINENO"; then : 16585 ac_cv_func_strtod=yes 16586else 16587 ac_cv_func_strtod=no 16588fi 16589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16590 conftest.$ac_objext conftest.beam conftest.$ac_ext 16591fi 16592 16593fi 16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 16595$as_echo "$ac_cv_func_strtod" >&6; } 16596if test $ac_cv_func_strtod = no; then 16597 case " $LIBOBJS " in 16598 *" strtod.$ac_objext "* ) ;; 16599 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 16600 ;; 16601esac 16602 16603ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 16604if test "x$ac_cv_func_pow" = xyes; then : 16605 16606fi 16607 16608if test $ac_cv_func_pow = no; then 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16610$as_echo_n "checking for pow in -lm... " >&6; } 16611if ${ac_cv_lib_m_pow+:} false; then : 16612 $as_echo_n "(cached) " >&6 16613else 16614 ac_check_lib_save_LIBS=$LIBS 16615LIBS="-lm $LIBS" 16616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16617/* end confdefs.h. */ 16618 16619/* Override any GCC internal prototype to avoid an error. 16620 Use char because int might match the return type of a GCC 16621 builtin and then its argument prototype would still apply. */ 16622#ifdef __cplusplus 16623extern "C" 16624#endif 16625char pow (); 16626int 16627main () 16628{ 16629return pow (); 16630 ; 16631 return 0; 16632} 16633_ACEOF 16634if ac_fn_c_try_link "$LINENO"; then : 16635 ac_cv_lib_m_pow=yes 16636else 16637 ac_cv_lib_m_pow=no 16638fi 16639rm -f core conftest.err conftest.$ac_objext \ 16640 conftest$ac_exeext conftest.$ac_ext 16641LIBS=$ac_check_lib_save_LIBS 16642fi 16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 16644$as_echo "$ac_cv_lib_m_pow" >&6; } 16645if test "x$ac_cv_lib_m_pow" = xyes; then : 16646 POW_LIB=-lm 16647else 16648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 16649$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 16650fi 16651 16652fi 16653 16654fi 16655 16656 if test x$ac_cv_func_strtod = xyes; then 16657 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h 16658 16659 fi 16660 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect" 16661if test "x$ac_cv_func_mprotect" = xyes; then : 16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16663/* end confdefs.h. */ 16664 16665 #include <sys/types.h> 16666 #include <sys/mman.h> 16667 16668int 16669main () 16670{ 16671 16672 16673 ; 16674 return 0; 16675} 16676_ACEOF 16677if ac_fn_c_try_compile "$LINENO"; then : 16678 16679 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h 16680 16681 16682fi 16683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16684fi 16685 16686 for ac_func in malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep 16687do : 16688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16689ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16690if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16691 cat >>confdefs.h <<_ACEOF 16692#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16693_ACEOF 16694 16695fi 16696done 16697 16698 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 16700$as_echo_n "checking for libiconv_open in -liconv... " >&6; } 16701if ${ac_cv_lib_iconv_libiconv_open+:} false; then : 16702 $as_echo_n "(cached) " >&6 16703else 16704 ac_check_lib_save_LIBS=$LIBS 16705LIBS="-liconv $LIBS" 16706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16707/* end confdefs.h. */ 16708 16709/* Override any GCC internal prototype to avoid an error. 16710 Use char because int might match the return type of a GCC 16711 builtin and then its argument prototype would still apply. */ 16712#ifdef __cplusplus 16713extern "C" 16714#endif 16715char libiconv_open (); 16716int 16717main () 16718{ 16719return libiconv_open (); 16720 ; 16721 return 0; 16722} 16723_ACEOF 16724if ac_fn_c_try_link "$LINENO"; then : 16725 ac_cv_lib_iconv_libiconv_open=yes 16726else 16727 ac_cv_lib_iconv_libiconv_open=no 16728fi 16729rm -f core conftest.err conftest.$ac_objext \ 16730 conftest$ac_exeext conftest.$ac_ext 16731LIBS=$ac_check_lib_save_LIBS 16732fi 16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 16734$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } 16735if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : 16736 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv" 16737fi 16738 16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 16740$as_echo_n "checking for pow in -lm... " >&6; } 16741if ${ac_cv_lib_m_pow+:} false; then : 16742 $as_echo_n "(cached) " >&6 16743else 16744 ac_check_lib_save_LIBS=$LIBS 16745LIBS="-lm $LIBS" 16746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747/* end confdefs.h. */ 16748 16749/* Override any GCC internal prototype to avoid an error. 16750 Use char because int might match the return type of a GCC 16751 builtin and then its argument prototype would still apply. */ 16752#ifdef __cplusplus 16753extern "C" 16754#endif 16755char pow (); 16756int 16757main () 16758{ 16759return pow (); 16760 ; 16761 return 0; 16762} 16763_ACEOF 16764if ac_fn_c_try_link "$LINENO"; then : 16765 ac_cv_lib_m_pow=yes 16766else 16767 ac_cv_lib_m_pow=no 16768fi 16769rm -f core conftest.err conftest.$ac_objext \ 16770 conftest$ac_exeext conftest.$ac_ext 16771LIBS=$ac_check_lib_save_LIBS 16772fi 16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 16774$as_echo "$ac_cv_lib_m_pow" >&6; } 16775if test "x$ac_cv_lib_m_pow" = xyes; then : 16776 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm" 16777fi 16778 16779fi 16780 16781if test x$have_inttypes != xyes; then 16782 # The cast to long int works around a bug in the HP C Compiler 16783# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16784# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16785# This bug is HP SR number 8606223364. 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 16787$as_echo_n "checking size of char... " >&6; } 16788if ${ac_cv_sizeof_char+:} false; then : 16789 $as_echo_n "(cached) " >&6 16790else 16791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 16792 16793else 16794 if test "$ac_cv_type_char" = yes; then 16795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16797as_fn_error 77 "cannot compute sizeof (char) 16798See \`config.log' for more details" "$LINENO" 5 ; } 16799 else 16800 ac_cv_sizeof_char=0 16801 fi 16802fi 16803 16804fi 16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 16806$as_echo "$ac_cv_sizeof_char" >&6; } 16807 16808 16809 16810cat >>confdefs.h <<_ACEOF 16811#define SIZEOF_CHAR $ac_cv_sizeof_char 16812_ACEOF 16813 16814 16815 # The cast to long int works around a bug in the HP C Compiler 16816# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16817# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16818# This bug is HP SR number 8606223364. 16819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 16820$as_echo_n "checking size of short... " >&6; } 16821if ${ac_cv_sizeof_short+:} false; then : 16822 $as_echo_n "(cached) " >&6 16823else 16824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 16825 16826else 16827 if test "$ac_cv_type_short" = yes; then 16828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16830as_fn_error 77 "cannot compute sizeof (short) 16831See \`config.log' for more details" "$LINENO" 5 ; } 16832 else 16833 ac_cv_sizeof_short=0 16834 fi 16835fi 16836 16837fi 16838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 16839$as_echo "$ac_cv_sizeof_short" >&6; } 16840 16841 16842 16843cat >>confdefs.h <<_ACEOF 16844#define SIZEOF_SHORT $ac_cv_sizeof_short 16845_ACEOF 16846 16847 16848 # The cast to long int works around a bug in the HP C Compiler 16849# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16850# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16851# This bug is HP SR number 8606223364. 16852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16853$as_echo_n "checking size of int... " >&6; } 16854if ${ac_cv_sizeof_int+:} false; then : 16855 $as_echo_n "(cached) " >&6 16856else 16857 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 16858 16859else 16860 if test "$ac_cv_type_int" = yes; then 16861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16863as_fn_error 77 "cannot compute sizeof (int) 16864See \`config.log' for more details" "$LINENO" 5 ; } 16865 else 16866 ac_cv_sizeof_int=0 16867 fi 16868fi 16869 16870fi 16871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 16872$as_echo "$ac_cv_sizeof_int" >&6; } 16873 16874 16875 16876cat >>confdefs.h <<_ACEOF 16877#define SIZEOF_INT $ac_cv_sizeof_int 16878_ACEOF 16879 16880 16881 # The cast to long int works around a bug in the HP C Compiler 16882# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16883# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16884# This bug is HP SR number 8606223364. 16885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16886$as_echo_n "checking size of long... " >&6; } 16887if ${ac_cv_sizeof_long+:} false; then : 16888 $as_echo_n "(cached) " >&6 16889else 16890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16891 16892else 16893 if test "$ac_cv_type_long" = yes; then 16894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16896as_fn_error 77 "cannot compute sizeof (long) 16897See \`config.log' for more details" "$LINENO" 5 ; } 16898 else 16899 ac_cv_sizeof_long=0 16900 fi 16901fi 16902 16903fi 16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16905$as_echo "$ac_cv_sizeof_long" >&6; } 16906 16907 16908 16909cat >>confdefs.h <<_ACEOF 16910#define SIZEOF_LONG $ac_cv_sizeof_long 16911_ACEOF 16912 16913 16914 # The cast to long int works around a bug in the HP C Compiler 16915# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16916# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16917# This bug is HP SR number 8606223364. 16918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 16919$as_echo_n "checking size of long long... " >&6; } 16920if ${ac_cv_sizeof_long_long+:} false; then : 16921 $as_echo_n "(cached) " >&6 16922else 16923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 16924 16925else 16926 if test "$ac_cv_type_long_long" = yes; then 16927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16929as_fn_error 77 "cannot compute sizeof (long long) 16930See \`config.log' for more details" "$LINENO" 5 ; } 16931 else 16932 ac_cv_sizeof_long_long=0 16933 fi 16934fi 16935 16936fi 16937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 16938$as_echo "$ac_cv_sizeof_long_long" >&6; } 16939 16940 16941 16942cat >>confdefs.h <<_ACEOF 16943#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 16944_ACEOF 16945 16946 16947 if test x$ac_cv_sizeof_char = x1; then 16948 $as_echo "#define int8_t signed char" >>confdefs.h 16949 16950 $as_echo "#define uint8_t unsigned char" >>confdefs.h 16951 16952 fi 16953 if test x$ac_cv_sizeof_short = x2; then 16954 $as_echo "#define int16_t signed short" >>confdefs.h 16955 16956 $as_echo "#define uint16_t unsigned short" >>confdefs.h 16957 16958 else 16959 if test x$ac_cv_sizeof_int = x2; then 16960 $as_echo "#define int16_t signed int" >>confdefs.h 16961 16962 $as_echo "#define uint16_t unsigned int" >>confdefs.h 16963 16964 fi 16965 fi 16966 if test x$ac_cv_sizeof_int = x4; then 16967 $as_echo "#define int32_t signed int" >>confdefs.h 16968 16969 $as_echo "#define uint32_t unsigned int" >>confdefs.h 16970 16971 else 16972 if test x$ac_cv_sizeof_long = x4; then 16973 $as_echo "#define int32_t signed long" >>confdefs.h 16974 16975 $as_echo "#define uint32_t unsigned long" >>confdefs.h 16976 16977 fi 16978 fi 16979 if test x$ac_cv_sizeof_long = x8; then 16980 $as_echo "#define int64_t signed long" >>confdefs.h 16981 16982 $as_echo "#define uint64_t unsigned long" >>confdefs.h 16983 16984 $as_echo "#define SDL_HAS_64BIT_TYPE 1" >>confdefs.h 16985 16986 else 16987 if test x$ac_cv_sizeof_long_long = x8; then 16988 $as_echo "#define int64_t signed long long" >>confdefs.h 16989 16990 $as_echo "#define uint64_t unsigned long long" >>confdefs.h 16991 16992 $as_echo "#define SDL_HAS_64BIT_TYPE 1" >>confdefs.h 16993 16994 fi 16995 fi 16996 $as_echo "#define size_t unsigned int" >>confdefs.h 16997 16998 $as_echo "#define uintptr_t unsigned long" >>confdefs.h 16999 17000fi 17001 17002# Standard C sources 17003SOURCES="$SOURCES $srcdir/src/*.c" 17004SOURCES="$SOURCES $srcdir/src/audio/*.c" 17005SOURCES="$SOURCES $srcdir/src/cdrom/*.c" 17006SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" 17007SOURCES="$SOURCES $srcdir/src/events/*.c" 17008SOURCES="$SOURCES $srcdir/src/file/*.c" 17009SOURCES="$SOURCES $srcdir/src/stdlib/*.c" 17010SOURCES="$SOURCES $srcdir/src/thread/*.c" 17011SOURCES="$SOURCES $srcdir/src/timer/*.c" 17012SOURCES="$SOURCES $srcdir/src/video/*.c" 17013 17014 17015# Check whether --enable-audio was given. 17016if test "${enable_audio+set}" = set; then : 17017 enableval=$enable_audio; 17018else 17019 enable_audio=yes 17020fi 17021 17022if test x$enable_audio != xyes; then 17023 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h 17024 17025fi 17026# Check whether --enable-video was given. 17027if test "${enable_video+set}" = set; then : 17028 enableval=$enable_video; 17029else 17030 enable_video=yes 17031fi 17032 17033if test x$enable_video != xyes; then 17034 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h 17035 17036fi 17037# Check whether --enable-events was given. 17038if test "${enable_events+set}" = set; then : 17039 enableval=$enable_events; 17040else 17041 enable_events=yes 17042fi 17043 17044if test x$enable_events != xyes; then 17045 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h 17046 17047fi 17048# Check whether --enable-joystick was given. 17049if test "${enable_joystick+set}" = set; then : 17050 enableval=$enable_joystick; 17051else 17052 enable_joystick=yes 17053fi 17054 17055if test x$enable_joystick != xyes; then 17056 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h 17057 17058else 17059 SOURCES="$SOURCES $srcdir/src/joystick/*.c" 17060fi 17061# Check whether --enable-cdrom was given. 17062if test "${enable_cdrom+set}" = set; then : 17063 enableval=$enable_cdrom; 17064else 17065 enable_cdrom=yes 17066fi 17067 17068if test x$enable_cdrom != xyes; then 17069 $as_echo "#define SDL_CDROM_DISABLED 1" >>confdefs.h 17070 17071fi 17072# Check whether --enable-threads was given. 17073if test "${enable_threads+set}" = set; then : 17074 enableval=$enable_threads; 17075else 17076 enable_threads=yes 17077fi 17078 17079if test x$enable_threads != xyes; then 17080 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 17081 17082fi 17083# Check whether --enable-timers was given. 17084if test "${enable_timers+set}" = set; then : 17085 enableval=$enable_timers; 17086else 17087 enable_timers=yes 17088fi 17089 17090if test x$enable_timers != xyes; then 17091 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 17092 17093fi 17094# Check whether --enable-file was given. 17095if test "${enable_file+set}" = set; then : 17096 enableval=$enable_file; 17097else 17098 enable_file=yes 17099fi 17100 17101if test x$enable_file != xyes; then 17102 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h 17103 17104fi 17105# Check whether --enable-loadso was given. 17106if test "${enable_loadso+set}" = set; then : 17107 enableval=$enable_loadso; 17108else 17109 enable_loadso=yes 17110fi 17111 17112if test x$enable_loadso != xyes; then 17113 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 17114 17115fi 17116# Check whether --enable-cpuinfo was given. 17117if test "${enable_cpuinfo+set}" = set; then : 17118 enableval=$enable_cpuinfo; 17119else 17120 enable_cpuinfo=yes 17121fi 17122 17123if test x$enable_cpuinfo != xyes; then 17124 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h 17125 17126fi 17127# Check whether --enable-assembly was given. 17128if test "${enable_assembly+set}" = set; then : 17129 enableval=$enable_assembly; 17130else 17131 enable_assembly=yes 17132fi 17133 17134if test x$enable_assembly = xyes; then 17135 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h 17136 17137fi 17138 17139CheckOSS() 17140{ 17141 # Check whether --enable-oss was given. 17142if test "${enable_oss+set}" = set; then : 17143 enableval=$enable_oss; 17144else 17145 enable_oss=yes 17146fi 17147 17148 if test x$enable_audio = xyes -a x$enable_oss = xyes; then 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5 17150$as_echo_n "checking for OSS audio support... " >&6; } 17151 have_oss=no 17152 if test x$have_oss != xyes; then 17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154/* end confdefs.h. */ 17155 17156 #include <sys/soundcard.h> 17157 17158int 17159main () 17160{ 17161 17162 int arg = SNDCTL_DSP_SETFRAGMENT; 17163 17164 ; 17165 return 0; 17166} 17167_ACEOF 17168if ac_fn_c_try_compile "$LINENO"; then : 17169 17170 have_oss=yes 17171 17172fi 17173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17174 fi 17175 if test x$have_oss != xyes; then 17176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17177/* end confdefs.h. */ 17178 17179 #include <soundcard.h> 17180 17181int 17182main () 17183{ 17184 17185 int arg = SNDCTL_DSP_SETFRAGMENT; 17186 17187 ; 17188 return 0; 17189} 17190_ACEOF 17191if ac_fn_c_try_compile "$LINENO"; then : 17192 17193 have_oss=yes 17194 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h 17195 17196 17197fi 17198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17199 fi 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5 17201$as_echo "$have_oss" >&6; } 17202 if test x$have_oss = xyes; then 17203 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h 17204 17205 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c" 17206 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c" 17207 have_audio=yes 17208 17209 # We may need to link with ossaudio emulation library 17210 case "$host" in 17211 *-*-openbsd*|*-*-netbsd*) 17212 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";; 17213 esac 17214 fi 17215 fi 17216} 17217 17218CheckALSA() 17219{ 17220 # Check whether --enable-alsa was given. 17221if test "${enable_alsa+set}" = set; then : 17222 enableval=$enable_alsa; 17223else 17224 enable_alsa=yes 17225fi 17226 17227 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then 17228 # AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no) 17229 # Restore all flags from before the ALSA detection runs 17230 CFLAGS="$alsa_save_CFLAGS" 17231 LDFLAGS="$alsa_save_LDFLAGS" 17232 LIBS="$alsa_save_LIBS" 17233 if test x$have_alsa = xyes; then 17234 # Check whether --enable-alsa-shared was given. 17235if test "${enable_alsa_shared+set}" = set; then : 17236 enableval=$enable_alsa_shared; 17237else 17238 enable_alsa_shared=yes 17239fi 17240 17241 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 17242 17243 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h 17244 17245 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" 17246 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" 17247 if test x$have_loadso != xyes && \ 17248 test x$enable_alsa_shared = xyes; then 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5 17250$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;} 17251 fi 17252 if test x$have_loadso = xyes && \ 17253 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then 17254 echo "-- dynamic libasound -> $alsa_lib" 17255 cat >>confdefs.h <<_ACEOF 17256#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib" 17257_ACEOF 17258 17259 else 17260 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS" 17261 fi 17262 have_audio=yes 17263 fi 17264 fi 17265} 17266 17267CheckDMEDIA() 17268{ 17269 if test x$enable_audio = xyes; then 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmedia audio support" >&5 17271$as_echo_n "checking for dmedia audio support... " >&6; } 17272 have_dmedia=no 17273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17274/* end confdefs.h. */ 17275 17276 #include <dmedia/audio.h> 17277 17278int 17279main () 17280{ 17281 17282 ALport audio_port; 17283 17284 ; 17285 return 0; 17286} 17287_ACEOF 17288if ac_fn_c_try_compile "$LINENO"; then : 17289 17290 have_dmedia=yes 17291 17292fi 17293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dmedia" >&5 17295$as_echo "$have_dmedia" >&6; } 17296 # Set up files for the audio library 17297 if test x$have_dmedia = xyes; then 17298 $as_echo "#define SDL_AUDIO_DRIVER_DMEDIA 1" >>confdefs.h 17299 17300 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c" 17301 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio" 17302 have_audio=yes 17303 fi 17304 fi 17305} 17306 17307CheckMME() 17308{ 17309 case $ARCH in 17310 osf) 17311 ;; 17312 *) 17313 return 17314 ;; 17315 esac 17316 if test x$enable_audio = xyes; then 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MME audio support" >&5 17318$as_echo_n "checking for MME audio support... " >&6; } 17319 MME_CFLAGS="-I/usr/include/mme" 17320 MME_LIBS="-lmme" 17321 have_mme=no 17322 save_CFLAGS="$CFLAGS" 17323 CFLAGS="$CFLAGS $MME_CFLAGS" 17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17325/* end confdefs.h. */ 17326 17327 #include <mme_api.h> 17328 17329int 17330main () 17331{ 17332 17333 HWAVEOUT sound; 17334 17335 ; 17336 return 0; 17337} 17338_ACEOF 17339if ac_fn_c_try_compile "$LINENO"; then : 17340 17341 have_mme=yes 17342 17343fi 17344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17345 CFLAGS="$save_CFLAGS" 17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mme" >&5 17347$as_echo "$have_mme" >&6; } 17348 # Set up files for the audio library 17349 if test x$have_mme = xyes; then 17350 $as_echo "#define SDL_AUDIO_DRIVER_MMEAUDIO 1" >>confdefs.h 17351 17352 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c" 17353 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS" 17354 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS" 17355 have_audio=yes 17356 fi 17357 fi 17358} 17359 17360CheckESD() 17361{ 17362 # Check whether --enable-esd was given. 17363if test "${enable_esd+set}" = set; then : 17364 enableval=$enable_esd; 17365else 17366 enable_esd=yes 17367fi 17368 17369 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 17370 17371# Check whether --with-esd-prefix was given. 17372if test "${with_esd_prefix+set}" = set; then : 17373 withval=$with_esd_prefix; esd_prefix="$withval" 17374else 17375 esd_prefix="" 17376fi 17377 17378 17379# Check whether --with-esd-exec-prefix was given. 17380if test "${with_esd_exec_prefix+set}" = set; then : 17381 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval" 17382else 17383 esd_exec_prefix="" 17384fi 17385 17386# Check whether --enable-esdtest was given. 17387if test "${enable_esdtest+set}" = set; then : 17388 enableval=$enable_esdtest; 17389else 17390 enable_esdtest=yes 17391fi 17392 17393 17394 if test x$esd_exec_prefix != x ; then 17395 esd_args="$esd_args --exec-prefix=$esd_exec_prefix" 17396 if test x${ESD_CONFIG+set} != xset ; then 17397 ESD_CONFIG=$esd_exec_prefix/bin/esd-config 17398 fi 17399 fi 17400 if test x$esd_prefix != x ; then 17401 esd_args="$esd_args --prefix=$esd_prefix" 17402 if test x${ESD_CONFIG+set} != xset ; then 17403 ESD_CONFIG=$esd_prefix/bin/esd-config 17404 fi 17405 fi 17406 17407 # Extract the first word of "esd-config", so it can be a program name with args. 17408set dummy esd-config; ac_word=$2 17409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17410$as_echo_n "checking for $ac_word... " >&6; } 17411if ${ac_cv_path_ESD_CONFIG+:} false; then : 17412 $as_echo_n "(cached) " >&6 17413else 17414 case $ESD_CONFIG in 17415 [\\/]* | ?:[\\/]*) 17416 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. 17417 ;; 17418 *) 17419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17420for as_dir in $PATH 17421do 17422 IFS=$as_save_IFS 17423 test -z "$as_dir" && as_dir=. 17424 for ac_exec_ext in '' $ac_executable_extensions; do 17425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17426 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17428 break 2 17429 fi 17430done 17431 done 17432IFS=$as_save_IFS 17433 17434 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" 17435 ;; 17436esac 17437fi 17438ESD_CONFIG=$ac_cv_path_ESD_CONFIG 17439if test -n "$ESD_CONFIG"; then 17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5 17441$as_echo "$ESD_CONFIG" >&6; } 17442else 17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17444$as_echo "no" >&6; } 17445fi 17446 17447 17448 min_esd_version=0.2.8 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5 17450$as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; } 17451 no_esd="" 17452 if test "$ESD_CONFIG" = "no" ; then 17453 no_esd=yes 17454 else 17455 17456 ac_ext=c 17457ac_cpp='$CPP $CPPFLAGS' 17458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17460ac_compiler_gnu=$ac_cv_c_compiler_gnu 17461 17462 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` 17463 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` 17464 17465 esd_major_version=`$ESD_CONFIG $esd_args --version | \ 17466 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 17467 esd_minor_version=`$ESD_CONFIG $esd_args --version | \ 17468 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 17469 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ 17470 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 17471 if test "x$enable_esdtest" = "xyes" ; then 17472 ac_save_CFLAGS="$CFLAGS" 17473 ac_save_LIBS="$LIBS" 17474 CFLAGS="$CFLAGS $ESD_CFLAGS" 17475 LIBS="$LIBS $ESD_LIBS" 17476 rm -f conf.esdtest 17477 if test "$cross_compiling" = yes; then : 17478 echo $ac_n "cross compiling; assumed OK... $ac_c" 17479else 17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17481/* end confdefs.h. */ 17482 17483#include <stdio.h> 17484#include <stdlib.h> 17485#include <string.h> 17486#include <esd.h> 17487 17488char* 17489my_strdup (char *str) 17490{ 17491 char *new_str; 17492 17493 if (str) 17494 { 17495 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 17496 strcpy (new_str, str); 17497 } 17498 else 17499 new_str = NULL; 17500 17501 return new_str; 17502} 17503 17504int main () 17505{ 17506 int major, minor, micro; 17507 char *tmp_version; 17508 17509 system ("touch conf.esdtest"); 17510 17511 /* HP/UX 9 (%@#!) writes to sscanf strings */ 17512 tmp_version = my_strdup("$min_esd_version"); 17513 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 17514 printf("%s, bad version string\n", "$min_esd_version"); 17515 exit(1); 17516 } 17517 17518 if (($esd_major_version > major) || 17519 (($esd_major_version == major) && ($esd_minor_version > minor)) || 17520 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) 17521 { 17522 return 0; 17523 } 17524 else 17525 { 17526 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); 17527 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); 17528 printf("*** best to upgrade to the required version.\n"); 17529 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); 17530 printf("*** to point to the correct copy of esd-config, and remove the file\n"); 17531 printf("*** config.cache before re-running configure\n"); 17532 return 1; 17533 } 17534} 17535 17536 17537_ACEOF 17538if ac_fn_c_try_run "$LINENO"; then : 17539 17540else 17541 no_esd=yes 17542fi 17543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17544 conftest.$ac_objext conftest.beam conftest.$ac_ext 17545fi 17546 17547 CFLAGS="$ac_save_CFLAGS" 17548 LIBS="$ac_save_LIBS" 17549 ac_ext=c 17550ac_cpp='$CPP $CPPFLAGS' 17551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17553ac_compiler_gnu=$ac_cv_c_compiler_gnu 17554 17555 fi 17556 fi 17557 if test "x$no_esd" = x ; then 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17559$as_echo "yes" >&6; } 17560 have_esd=yes 17561 else 17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17563$as_echo "no" >&6; } 17564 if test "$ESD_CONFIG" = "no" ; then 17565 echo "*** The esd-config script installed by ESD could not be found" 17566 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" 17567 echo "*** your path, or set the ESD_CONFIG environment variable to the" 17568 echo "*** full path to esd-config." 17569 else 17570 if test -f conf.esdtest ; then 17571 : 17572 else 17573 echo "*** Could not run ESD test program, checking why..." 17574 CFLAGS="$CFLAGS $ESD_CFLAGS" 17575 LIBS="$LIBS $ESD_LIBS" 17576 17577 ac_ext=c 17578ac_cpp='$CPP $CPPFLAGS' 17579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17581ac_compiler_gnu=$ac_cv_c_compiler_gnu 17582 17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17584/* end confdefs.h. */ 17585 17586#include <stdio.h> 17587#include <esd.h> 17588 17589int 17590main () 17591{ 17592 return 0; 17593 ; 17594 return 0; 17595} 17596_ACEOF 17597if ac_fn_c_try_link "$LINENO"; then : 17598 echo "*** The test program compiled, but did not run. This usually means" 17599 echo "*** that the run-time linker is not finding ESD or finding the wrong" 17600 echo "*** version of ESD. If it is not finding ESD, you'll need to set your" 17601 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 17602 echo "*** to the installed location Also, make sure you have run ldconfig if that" 17603 echo "*** is required on your system" 17604 echo "***" 17605 echo "*** If you have an old version installed, it is best to remove it, although" 17606 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 17607else 17608 echo "*** The test program failed to compile or link. See the file config.log for the" 17609 echo "*** exact error that occured. This usually means ESD was incorrectly installed" 17610 echo "*** or that you have moved ESD since it was installed. In the latter case, you" 17611 echo "*** may want to edit the esd-config script: $ESD_CONFIG" 17612fi 17613rm -f core conftest.err conftest.$ac_objext \ 17614 conftest$ac_exeext conftest.$ac_ext 17615 CFLAGS="$ac_save_CFLAGS" 17616 LIBS="$ac_save_LIBS" 17617 ac_ext=c 17618ac_cpp='$CPP $CPPFLAGS' 17619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17621ac_compiler_gnu=$ac_cv_c_compiler_gnu 17622 17623 fi 17624 fi 17625 ESD_CFLAGS="" 17626 ESD_LIBS="" 17627 have_esd=no 17628 fi 17629 17630 17631 rm -f conf.esdtest 17632 17633 if test x$have_esd = xyes; then 17634 # Check whether --enable-esd-shared was given. 17635if test "${enable_esd_shared+set}" = set; then : 17636 enableval=$enable_esd_shared; 17637else 17638 enable_esd_shared=yes 17639fi 17640 17641 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 17642 17643 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h 17644 17645 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" 17646 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" 17647 if test x$have_loadso != xyes && \ 17648 test x$enable_esd_shared = xyes; then 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5 17650$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;} 17651 fi 17652 if test x$have_loadso = xyes && \ 17653 test x$enable_esd_shared = xyes && test x$esd_lib != x; then 17654 echo "-- dynamic libesd -> $esd_lib" 17655 cat >>confdefs.h <<_ACEOF 17656#define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib" 17657_ACEOF 17658 17659 else 17660 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" 17661 fi 17662 have_audio=yes 17663 fi 17664 fi 17665} 17666 17667CheckPulseAudio() 17668{ 17669 # Check whether --enable-pulseaudio was given. 17670if test "${enable_pulseaudio+set}" = set; then : 17671 enableval=$enable_pulseaudio; 17672else 17673 enable_pulseaudio=yes 17674fi 17675 17676 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then 17677 audio_pulse=no 17678 17679 PULSE_REQUIRED_VERSION=0.9 17680 17681 # Extract the first word of "pkg-config", so it can be a program name with args. 17682set dummy pkg-config; ac_word=$2 17683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17684$as_echo_n "checking for $ac_word... " >&6; } 17685if ${ac_cv_path_PKG_CONFIG+:} false; then : 17686 $as_echo_n "(cached) " >&6 17687else 17688 case $PKG_CONFIG in 17689 [\\/]* | ?:[\\/]*) 17690 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17691 ;; 17692 *) 17693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17694for as_dir in $PATH 17695do 17696 IFS=$as_save_IFS 17697 test -z "$as_dir" && as_dir=. 17698 for ac_exec_ext in '' $ac_executable_extensions; do 17699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17700 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17702 break 2 17703 fi 17704done 17705 done 17706IFS=$as_save_IFS 17707 17708 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 17709 ;; 17710esac 17711fi 17712PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17713if test -n "$PKG_CONFIG"; then 17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17715$as_echo "$PKG_CONFIG" >&6; } 17716else 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17718$as_echo "no" >&6; } 17719fi 17720 17721 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSE_REQUIRED_VERSION support" >&5 17723$as_echo_n "checking for PulseAudio $PULSE_REQUIRED_VERSION support... " >&6; } 17724 if test x$PKG_CONFIG != xno; then 17725 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then 17726 PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple` 17727 PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple` 17728 audio_pulse=yes 17729 fi 17730 fi 17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulse" >&5 17732$as_echo "$audio_pulse" >&6; } 17733 17734 if test x$audio_pulse = xyes; then 17735 # Check whether --enable-pulseaudio-shared was given. 17736if test "${enable_pulseaudio_shared+set}" = set; then : 17737 enableval=$enable_pulseaudio_shared; 17738else 17739 enable_pulseaudio_shared=yes 17740fi 17741 17742 pulse_lib=`find_lib "libpulse-simple.so.*" "$PULSE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 17743 17744 $as_echo "#define SDL_AUDIO_DRIVER_PULSE 1" >>confdefs.h 17745 17746 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c" 17747 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS" 17748 if test x$have_loadso != xyes && \ 17749 test x$enable_pulseaudio_shared = xyes; then 17750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5 17751$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;} 17752 fi 17753 if test x$have_loadso = xyes && \ 17754 test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then 17755 echo "-- dynamic libpulse-simple -> $pulse_lib" 17756 cat >>confdefs.h <<_ACEOF 17757#define SDL_AUDIO_DRIVER_PULSE_DYNAMIC "$pulse_lib" 17758_ACEOF 17759 17760 else 17761 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS" 17762 fi 17763 have_audio=yes 17764 fi 17765 fi 17766} 17767 17768CheckARTSC() 17769{ 17770 # Check whether --enable-arts was given. 17771if test "${enable_arts+set}" = set; then : 17772 enableval=$enable_arts; 17773else 17774 enable_arts=yes 17775fi 17776 17777 if test x$enable_audio = xyes -a x$enable_arts = xyes; then 17778 # Extract the first word of "artsc-config", so it can be a program name with args. 17779set dummy artsc-config; ac_word=$2 17780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17781$as_echo_n "checking for $ac_word... " >&6; } 17782if ${ac_cv_path_ARTSCONFIG+:} false; then : 17783 $as_echo_n "(cached) " >&6 17784else 17785 case $ARTSCONFIG in 17786 [\\/]* | ?:[\\/]*) 17787 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path. 17788 ;; 17789 *) 17790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17791for as_dir in $PATH 17792do 17793 IFS=$as_save_IFS 17794 test -z "$as_dir" && as_dir=. 17795 for ac_exec_ext in '' $ac_executable_extensions; do 17796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17797 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext" 17798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17799 break 2 17800 fi 17801done 17802 done 17803IFS=$as_save_IFS 17804 17805 ;; 17806esac 17807fi 17808ARTSCONFIG=$ac_cv_path_ARTSCONFIG 17809if test -n "$ARTSCONFIG"; then 17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5 17811$as_echo "$ARTSCONFIG" >&6; } 17812else 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17814$as_echo "no" >&6; } 17815fi 17816 17817 17818 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then 17819 : # arts isn't installed 17820 else 17821 ARTS_CFLAGS=`$ARTSCONFIG --cflags` 17822 ARTS_LIBS=`$ARTSCONFIG --libs` 17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5 17824$as_echo_n "checking for aRts development environment... " >&6; } 17825 audio_arts=no 17826 save_CFLAGS="$CFLAGS" 17827 CFLAGS="$CFLAGS $ARTS_CFLAGS" 17828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17829/* end confdefs.h. */ 17830 17831 #include <artsc.h> 17832 17833int 17834main () 17835{ 17836 17837 arts_stream_t stream; 17838 17839 ; 17840 return 0; 17841} 17842_ACEOF 17843if ac_fn_c_try_compile "$LINENO"; then : 17844 17845 audio_arts=yes 17846 17847fi 17848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17849 CFLAGS="$save_CFLAGS" 17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5 17851$as_echo "$audio_arts" >&6; } 17852 if test x$audio_arts = xyes; then 17853 # Check whether --enable-arts-shared was given. 17854if test "${enable_arts_shared+set}" = set; then : 17855 enableval=$enable_arts_shared; 17856else 17857 enable_arts_shared=yes 17858fi 17859 17860 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 17861 17862 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h 17863 17864 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" 17865 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" 17866 if test x$have_loadso != xyes && \ 17867 test x$enable_arts_shared = xyes; then 17868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5 17869$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;} 17870 fi 17871 if test x$have_loadso = xyes && \ 17872 test x$enable_arts_shared = xyes && test x$arts_lib != x; then 17873 echo "-- dynamic libartsc -> $arts_lib" 17874 cat >>confdefs.h <<_ACEOF 17875#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib" 17876_ACEOF 17877 17878 else 17879 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" 17880 fi 17881 have_audio=yes 17882 fi 17883 fi 17884 fi 17885} 17886 17887CheckNAS() 17888{ 17889 # Check whether --enable-nas was given. 17890if test "${enable_nas+set}" = set; then : 17891 enableval=$enable_nas; 17892else 17893 enable_nas=yes 17894fi 17895 17896 if test x$enable_audio = xyes -a x$enable_nas = xyes; then 17897 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default" 17898if test "x$ac_cv_header_audio_audiolib_h" = xyes; then : 17899 have_nas_hdr=yes 17900fi 17901 17902 17903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5 17904$as_echo_n "checking for AuOpenServer in -laudio... " >&6; } 17905if ${ac_cv_lib_audio_AuOpenServer+:} false; then : 17906 $as_echo_n "(cached) " >&6 17907else 17908 ac_check_lib_save_LIBS=$LIBS 17909LIBS="-laudio $LIBS" 17910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911/* end confdefs.h. */ 17912 17913/* Override any GCC internal prototype to avoid an error. 17914 Use char because int might match the return type of a GCC 17915 builtin and then its argument prototype would still apply. */ 17916#ifdef __cplusplus 17917extern "C" 17918#endif 17919char AuOpenServer (); 17920int 17921main () 17922{ 17923return AuOpenServer (); 17924 ; 17925 return 0; 17926} 17927_ACEOF 17928if ac_fn_c_try_link "$LINENO"; then : 17929 ac_cv_lib_audio_AuOpenServer=yes 17930else 17931 ac_cv_lib_audio_AuOpenServer=no 17932fi 17933rm -f core conftest.err conftest.$ac_objext \ 17934 conftest$ac_exeext conftest.$ac_ext 17935LIBS=$ac_check_lib_save_LIBS 17936fi 17937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5 17938$as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; } 17939if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then : 17940 have_nas_lib=yes 17941fi 17942 17943 17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5 17945$as_echo_n "checking for NAS audio support... " >&6; } 17946 have_nas=no 17947 17948 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then 17949 have_nas=yes 17950 NAS_LIBS="-laudio" 17951 17952 elif test -r /usr/X11R6/include/audio/audiolib.h; then 17953 have_nas=yes 17954 NAS_CFLAGS="-I/usr/X11R6/include/" 17955 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt" 17956 17957 17958 elif test -r /usr/freeware/include/nas/audiolib.h; then 17959 have_nas=yes 17960 NAS_LIBS="-lnas -lXt" 17961 fi 17962 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5 17964$as_echo "$have_nas" >&6; } 17965 17966 if test x$have_nas = xyes; then 17967 # Check whether --enable-nas-shared was given. 17968if test "${enable_nas_shared+set}" = set; then : 17969 enableval=$enable_nas_shared; 17970else 17971 enable_nas_shared=yes 17972fi 17973 17974 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'` 17975 17976 if test x$have_loadso != xyes && \ 17977 test x$enable_nas_shared = xyes; then 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5 17979$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;} 17980 fi 17981 if test x$have_loadso = xyes && \ 17982 test x$enable_nas_shared = xyes && test x$nas_lib != x; then 17983 echo "-- dynamic libaudio -> $nas_lib" 17984 cat >>confdefs.h <<_ACEOF 17985#define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib" 17986_ACEOF 17987 17988 else 17989 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" 17990 fi 17991 17992 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h 17993 17994 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c" 17995 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS" 17996 have_audio=yes 17997 fi 17998 fi 17999} 18000 18001CheckDiskAudio() 18002{ 18003 # Check whether --enable-diskaudio was given. 18004if test "${enable_diskaudio+set}" = set; then : 18005 enableval=$enable_diskaudio; 18006else 18007 enable_diskaudio=yes 18008fi 18009 18010 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then 18011 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h 18012 18013 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c" 18014 fi 18015} 18016 18017CheckDummyAudio() 18018{ 18019 # Check whether --enable-dummyaudio was given. 18020if test "${enable_dummyaudio+set}" = set; then : 18021 enableval=$enable_dummyaudio; 18022else 18023 enable_dummyaudio=yes 18024fi 18025 18026 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then 18027 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h 18028 18029 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c" 18030 fi 18031} 18032 18033CheckAtariAudio() 18034{ 18035 # Check whether --enable-mintaudio was given. 18036if test "${enable_mintaudio+set}" = set; then : 18037 enableval=$enable_mintaudio; 18038else 18039 enable_mintaudio=yes 18040fi 18041 18042 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then 18043 mintaudio=no 18044 ac_fn_c_check_header_mongrel "$LINENO" "mint/falcon.h" "ac_cv_header_mint_falcon_h" "$ac_includes_default" 18045if test "x$ac_cv_header_mint_falcon_h" = xyes; then : 18046 have_mint_falcon_hdr=yes 18047fi 18048 18049 18050 if test x$have_mint_falcon_hdr = xyes; then 18051 mintaudio=yes 18052 $as_echo "#define SDL_AUDIO_DRIVER_MINT 1" >>confdefs.h 18053 18054 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c" 18055 SOURCES="$SOURCES $srcdir/src/audio/mint/*.S" 18056 have_audio=yes 18057 fi 18058 fi 18059} 18060 18061# NASM is available from: http://nasm.sourceforge.net 18062CheckNASM() 18063{ 18064 case $host in 18065 i?86*) 18066 ;; 18067 *) 18068 # Nope, bail early. 18069 return 18070 ;; 18071 esac 18072 18073 # The cast to long int works around a bug in the HP C Compiler 18074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18076# This bug is HP SR number 8606223364. 18077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 18078$as_echo_n "checking size of void *... " >&6; } 18079if ${ac_cv_sizeof_void_p+:} false; then : 18080 $as_echo_n "(cached) " >&6 18081else 18082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 18083 18084else 18085 if test "$ac_cv_type_void_p" = yes; then 18086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18088as_fn_error 77 "cannot compute sizeof (void *) 18089See \`config.log' for more details" "$LINENO" 5 ; } 18090 else 18091 ac_cv_sizeof_void_p=0 18092 fi 18093fi 18094 18095fi 18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 18097$as_echo "$ac_cv_sizeof_void_p" >&6; } 18098 18099 18100 18101cat >>confdefs.h <<_ACEOF 18102#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 18103_ACEOF 18104 18105 18106 if test x$ac_cv_sizeof_void_p != x4; then 18107 return 18108 fi 18109 18110 # Check whether --enable-nasm was given. 18111if test "${enable_nasm+set}" = set; then : 18112 enableval=$enable_nasm; 18113else 18114 enable_nasm=yes 18115fi 18116 18117 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then 18118 CompileNASM() 18119 { 18120 # Usage: CompileNASM <filename> 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if $NASM supports $1" >&5 18122$as_echo_n "checking to see if $NASM supports $1... " >&6; } 18123 if $NASM $NASMFLAGS $1 -o $1.o >&5 2>&1; then 18124 CompileNASM_ret="yes" 18125 else 18126 CompileNASM_ret="no" 18127 fi 18128 rm -f $1 $1.o 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CompileNASM_ret" >&5 18130$as_echo "$CompileNASM_ret" >&6; } 18131 test "$CompileNASM_ret" = "yes" 18132 } 18133 18134 if test x"$NASMFLAGS" = x; then 18135 case $ARCH in 18136 win32|cygwin) 18137 NASMFLAGS="-f win32" 18138 ;; 18139 openbsd) 18140 NASMFLAGS="-f aoutb" 18141 ;; 18142 macosx) 18143 NASMFLAGS="-f macho" 18144 ;; 18145 *) 18146 NASMFLAGS="-f elf" 18147 ;; 18148 esac 18149 fi 18150 18151 # Extract the first word of "yasm", so it can be a program name with args. 18152set dummy yasm; ac_word=$2 18153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18154$as_echo_n "checking for $ac_word... " >&6; } 18155if ${ac_cv_path_NASM+:} false; then : 18156 $as_echo_n "(cached) " >&6 18157else 18158 case $NASM in 18159 [\\/]* | ?:[\\/]*) 18160 ac_cv_path_NASM="$NASM" # Let the user override the test with a path. 18161 ;; 18162 *) 18163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18164for as_dir in $PATH 18165do 18166 IFS=$as_save_IFS 18167 test -z "$as_dir" && as_dir=. 18168 for ac_exec_ext in '' $ac_executable_extensions; do 18169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18170 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext" 18171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18172 break 2 18173 fi 18174done 18175 done 18176IFS=$as_save_IFS 18177 18178 ;; 18179esac 18180fi 18181NASM=$ac_cv_path_NASM 18182if test -n "$NASM"; then 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5 18184$as_echo "$NASM" >&6; } 18185else 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18187$as_echo "no" >&6; } 18188fi 18189 18190 18191 echo "%ifidn __OUTPUT_FORMAT__,elf" > unquoted-sections 18192 echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections 18193 echo "%endif" >> unquoted-sections 18194 CompileNASM unquoted-sections || NASM="" 18195 18196 if test "x$NASM" = x -o "x$NASM" = x'"$NASM"'; then 18197 $as_unset ac_cv_path_NASM 18198 # Extract the first word of "nasm", so it can be a program name with args. 18199set dummy nasm; ac_word=$2 18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18201$as_echo_n "checking for $ac_word... " >&6; } 18202if ${ac_cv_path_NASM+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204else 18205 case $NASM in 18206 [\\/]* | ?:[\\/]*) 18207 ac_cv_path_NASM="$NASM" # Let the user override the test with a path. 18208 ;; 18209 *) 18210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18211for as_dir in $PATH 18212do 18213 IFS=$as_save_IFS 18214 test -z "$as_dir" && as_dir=. 18215 for ac_exec_ext in '' $ac_executable_extensions; do 18216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18217 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext" 18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18219 break 2 18220 fi 18221done 18222 done 18223IFS=$as_save_IFS 18224 18225 ;; 18226esac 18227fi 18228NASM=$ac_cv_path_NASM 18229if test -n "$NASM"; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NASM" >&5 18231$as_echo "$NASM" >&6; } 18232else 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18234$as_echo "no" >&6; } 18235fi 18236 18237 18238 fi 18239 if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then 18240 $as_echo "#define SDL_HERMES_BLITTERS 1" >>confdefs.h 18241 18242 SOURCES="$SOURCES $srcdir/src/hermes/*.asm" 18243 NASMFLAGS="$NASMFLAGS -I $srcdir/src/hermes/" 18244 18245 echo "GLOBAL _bar:function hidden" > symbol-visibility 18246 echo "_bar:" >> symbol-visibility 18247 CompileNASM symbol-visibility && NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY" 18248 18249 18250 18251 18252 case "$host" in 18253 # this line is needed for QNX, because it's not defined the __ELF__ 18254 *-*-qnx*) 18255 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";; 18256 *-*-solaris*) 18257 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";; 18258 esac 18259 fi 18260 fi 18261} 18262 18263CheckAltivec() 18264{ 18265 # Check whether --enable-altivec was given. 18266if test "${enable_altivec+set}" = set; then : 18267 enableval=$enable_altivec; 18268else 18269 enable_altivec=yes 18270fi 18271 18272 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then 18273 save_CFLAGS="$CFLAGS" 18274 have_gcc_altivec=no 18275 have_altivec_h_hdr=no 18276 altivec_CFLAGS="-maltivec" 18277 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 18278 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5 18280$as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; } 18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18282/* end confdefs.h. */ 18283 18284 #include <altivec.h> 18285 vector unsigned int vzero() { 18286 return vec_splat_u32(0); 18287 } 18288 18289int 18290main () 18291{ 18292 18293 18294 ; 18295 return 0; 18296} 18297_ACEOF 18298if ac_fn_c_try_compile "$LINENO"; then : 18299 18300 have_gcc_altivec=yes 18301 have_altivec_h_hdr=yes 18302 18303fi 18304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 18306$as_echo "$have_gcc_altivec" >&6; } 18307 18308 if test x$have_gcc_altivec = xno; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5 18310$as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; } 18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18312/* end confdefs.h. */ 18313 18314 vector unsigned int vzero() { 18315 return vec_splat_u32(0); 18316 } 18317 18318int 18319main () 18320{ 18321 18322 18323 ; 18324 return 0; 18325} 18326_ACEOF 18327if ac_fn_c_try_compile "$LINENO"; then : 18328 18329 have_gcc_altivec=yes 18330 18331fi 18332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 18334$as_echo "$have_gcc_altivec" >&6; } 18335 fi 18336 18337 if test x$have_gcc_altivec = xno; then 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5 18339$as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; } 18340 altivec_CFLAGS="-faltivec" 18341 CFLAGS="$save_CFLAGS $altivec_CFLAGS" 18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18343/* end confdefs.h. */ 18344 18345 #include <altivec.h> 18346 vector unsigned int vzero() { 18347 return vec_splat_u32(0); 18348 } 18349 18350int 18351main () 18352{ 18353 18354 18355 ; 18356 return 0; 18357} 18358_ACEOF 18359if ac_fn_c_try_compile "$LINENO"; then : 18360 18361 have_gcc_altivec=yes 18362 have_altivec_h_hdr=yes 18363 18364fi 18365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 18367$as_echo "$have_gcc_altivec" >&6; } 18368 fi 18369 18370 if test x$have_gcc_altivec = xno; then 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5 18372$as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; } 18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18374/* end confdefs.h. */ 18375 18376 vector unsigned int vzero() { 18377 return vec_splat_u32(0); 18378 } 18379 18380int 18381main () 18382{ 18383 18384 18385 ; 18386 return 0; 18387} 18388_ACEOF 18389if ac_fn_c_try_compile "$LINENO"; then : 18390 18391 have_gcc_altivec=yes 18392 18393fi 18394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5 18396$as_echo "$have_gcc_altivec" >&6; } 18397 fi 18398 CFLAGS="$save_CFLAGS" 18399 18400 if test x$have_gcc_altivec = xyes; then 18401 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h 18402 18403 if test x$have_altivec_h_hdr = xyes; then 18404 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h 18405 18406 fi 18407 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS" 18408 fi 18409 fi 18410} 18411 18412CheckVisibilityHidden() 18413{ 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5 18415$as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; } 18416 have_gcc_fvisibility=no 18417 18418 visibility_CFLAGS="-fvisibility=hidden" 18419 save_CFLAGS="$CFLAGS" 18420 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror" 18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18422/* end confdefs.h. */ 18423 18424 #if !defined(__GNUC__) || __GNUC__ < 4 18425 #error SDL only uses visibility attributes in GCC 4 or newer 18426 #endif 18427 18428int 18429main () 18430{ 18431 18432 18433 ; 18434 return 0; 18435} 18436_ACEOF 18437if ac_fn_c_try_compile "$LINENO"; then : 18438 18439 have_gcc_fvisibility=yes 18440 18441fi 18442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5 18444$as_echo "$have_gcc_fvisibility" >&6; } 18445 CFLAGS="$save_CFLAGS" 18446 18447 if test x$have_gcc_fvisibility = xyes; then 18448 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS" 18449 fi 18450} 18451 18452 18453CheckIPod() 18454{ 18455 # Check whether --enable-ipod was given. 18456if test "${enable_ipod+set}" = set; then : 18457 enableval=$enable_ipod; 18458else 18459 enable_ipod=no 18460fi 18461 18462 18463 if test x$enable_ipod = xyes; then 18464 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD" 18465 $as_echo "#define SDL_VIDEO_DRIVER_IPOD 1" >>confdefs.h 18466 18467 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c" 18468 fi 18469} 18470 18471CheckNANOX() 18472{ 18473 # Check whether --enable-video-nanox was given. 18474if test "${enable_video_nanox+set}" = set; then : 18475 enableval=$enable_video_nanox; 18476else 18477 enable_video_nanox=no 18478fi 18479 18480 18481 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then 18482 # Check whether --enable-nanox-debug was given. 18483if test "${enable_nanox_debug+set}" = set; then : 18484 enableval=$enable_nanox_debug; 18485else 18486 enable_nanox_debug=no 18487fi 18488 18489 if test x$enable_nanox_debug = xyes; then 18490 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG" 18491 fi 18492 18493 # Check whether --enable-nanox-share-memory was given. 18494if test "${enable_nanox_share_memory+set}" = set; then : 18495 enableval=$enable_nanox_share_memory; 18496else 18497 enable_nanox_share_memory=no 18498fi 18499 18500 if test x$enable_nanox_share_memory = xyes; then 18501 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY" 18502 fi 18503 18504 # Check whether --enable-nanox_direct_fb was given. 18505if test "${enable_nanox_direct_fb+set}" = set; then : 18506 enableval=$enable_nanox_direct_fb; 18507else 18508 enable_nanox_direct_fb=no 18509fi 18510 18511 if test x$enable_nanox_direct_fb = xyes; then 18512 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB" 18513 fi 18514 18515 $as_echo "#define SDL_VIDEO_DRIVER_NANOX 1" >>confdefs.h 18516 18517 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c" 18518 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X" 18519 have_video=yes 18520 fi 18521} 18522 18523CheckX11() 18524{ 18525 # Check whether --enable-video-x11 was given. 18526if test "${enable_video_x11+set}" = set; then : 18527 enableval=$enable_video_x11; 18528else 18529 enable_video_x11=yes 18530fi 18531 18532 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then 18533 case "$host" in 18534 *-*-darwin*) 18535 # This isn't necessary for X11, but fixes GLX detection 18536 if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then 18537 x_includes="/usr/X11R6/include" 18538 x_libraries="/usr/X11R6/lib" 18539 fi 18540 ;; 18541 esac 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 18543$as_echo_n "checking for X... " >&6; } 18544 18545 18546# Check whether --with-x was given. 18547if test "${with_x+set}" = set; then : 18548 withval=$with_x; 18549fi 18550 18551# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18552if test "x$with_x" = xno; then 18553 # The user explicitly disabled X. 18554 have_x=disabled 18555else 18556 case $x_includes,$x_libraries in #( 18557 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #( 18558 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18559 $as_echo_n "(cached) " >&6 18560else 18561 # One or both of the vars are not set, and there is no cached value. 18562ac_x_includes=no ac_x_libraries=no 18563rm -f -r conftest.dir 18564if mkdir conftest.dir; then 18565 cd conftest.dir 18566 cat >Imakefile <<'_ACEOF' 18567incroot: 18568 @echo incroot='${INCROOT}' 18569usrlibdir: 18570 @echo usrlibdir='${USRLIBDIR}' 18571libdir: 18572 @echo libdir='${LIBDIR}' 18573_ACEOF 18574 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18575 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18576 for ac_var in incroot usrlibdir libdir; do 18577 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18578 done 18579 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18580 for ac_extension in a so sl dylib la dll; do 18581 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18582 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18583 ac_im_usrlibdir=$ac_im_libdir; break 18584 fi 18585 done 18586 # Screen out bogus values from the imake configuration. They are 18587 # bogus both because they are the default anyway, and because 18588 # using them would break gcc on systems where it needs fixed includes. 18589 case $ac_im_incroot in 18590 /usr/include) ac_x_includes= ;; 18591 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18592 esac 18593 case $ac_im_usrlibdir in 18594 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18595 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18596 esac 18597 fi 18598 cd .. 18599 rm -f -r conftest.dir 18600fi 18601 18602# Standard set of common directories for X headers. 18603# Check X11 before X11Rn because it is often a symlink to the current release. 18604ac_x_header_dirs=' 18605/usr/X11/include 18606/usr/X11R7/include 18607/usr/X11R6/include 18608/usr/X11R5/include 18609/usr/X11R4/include 18610 18611/usr/include/X11 18612/usr/include/X11R7 18613/usr/include/X11R6 18614/usr/include/X11R5 18615/usr/include/X11R4 18616 18617/usr/local/X11/include 18618/usr/local/X11R7/include 18619/usr/local/X11R6/include 18620/usr/local/X11R5/include 18621/usr/local/X11R4/include 18622 18623/usr/local/include/X11 18624/usr/local/include/X11R7 18625/usr/local/include/X11R6 18626/usr/local/include/X11R5 18627/usr/local/include/X11R4 18628 18629/usr/X386/include 18630/usr/x386/include 18631/usr/XFree86/include/X11 18632 18633/usr/include 18634/usr/local/include 18635/usr/unsupported/include 18636/usr/athena/include 18637/usr/local/x11r5/include 18638/usr/lpp/Xamples/include 18639 18640/usr/openwin/include 18641/usr/openwin/share/include' 18642 18643if test "$ac_x_includes" = no; then 18644 # Guess where to find include files, by looking for Xlib.h. 18645 # First, try using that file with no special directory specified. 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647/* end confdefs.h. */ 18648#include <X11/Xlib.h> 18649_ACEOF 18650if ac_fn_c_try_cpp "$LINENO"; then : 18651 # We can compile using X headers with no special include directory. 18652ac_x_includes= 18653else 18654 for ac_dir in $ac_x_header_dirs; do 18655 if test -r "$ac_dir/X11/Xlib.h"; then 18656 ac_x_includes=$ac_dir 18657 break 18658 fi 18659done 18660fi 18661rm -f conftest.err conftest.i conftest.$ac_ext 18662fi # $ac_x_includes = no 18663 18664if test "$ac_x_libraries" = no; then 18665 # Check for the libraries. 18666 # See if we find them without any special options. 18667 # Don't add to $LIBS permanently. 18668 ac_save_LIBS=$LIBS 18669 LIBS="-lX11 $LIBS" 18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672#include <X11/Xlib.h> 18673int 18674main () 18675{ 18676XrmInitialize () 18677 ; 18678 return 0; 18679} 18680_ACEOF 18681if ac_fn_c_try_link "$LINENO"; then : 18682 LIBS=$ac_save_LIBS 18683# We can link X programs with no special library path. 18684ac_x_libraries= 18685else 18686 LIBS=$ac_save_LIBS 18687for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18688do 18689 # Don't even attempt the hair of trying to link an X program! 18690 for ac_extension in a so sl dylib la dll; do 18691 if test -r "$ac_dir/libX11.$ac_extension"; then 18692 ac_x_libraries=$ac_dir 18693 break 2 18694 fi 18695 done 18696done 18697fi 18698rm -f core conftest.err conftest.$ac_objext \ 18699 conftest$ac_exeext conftest.$ac_ext 18700fi # $ac_x_libraries = no 18701 18702case $ac_x_includes,$ac_x_libraries in #( 18703 no,* | *,no | *\'*) 18704 # Didn't find X, or a directory has "'" in its name. 18705 ac_cv_have_x="have_x=no";; #( 18706 *) 18707 # Record where we found X for the cache. 18708 ac_cv_have_x="have_x=yes\ 18709 ac_x_includes='$ac_x_includes'\ 18710 ac_x_libraries='$ac_x_libraries'" 18711esac 18712fi 18713;; #( 18714 *) have_x=yes;; 18715 esac 18716 eval "$ac_cv_have_x" 18717fi # $with_x != no 18718 18719if test "$have_x" != yes; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18721$as_echo "$have_x" >&6; } 18722 no_x=yes 18723else 18724 # If each of the values was on the command line, it overrides each guess. 18725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18727 # Update the cache value to reflect the command line values. 18728 ac_cv_have_x="have_x=yes\ 18729 ac_x_includes='$x_includes'\ 18730 ac_x_libraries='$x_libraries'" 18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18732$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18733fi 18734 18735 if test "$no_x" = yes; then 18736 # Not all programs may use this symbol, but it does not hurt to define it. 18737 18738$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 18739 18740 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 18741else 18742 if test -n "$x_includes"; then 18743 X_CFLAGS="$X_CFLAGS -I$x_includes" 18744 fi 18745 18746 # It would also be nice to do this for all -L options, not just this one. 18747 if test -n "$x_libraries"; then 18748 X_LIBS="$X_LIBS -L$x_libraries" 18749 # For Solaris; some versions of Sun CC require a space after -R and 18750 # others require no space. Words are not sufficient . . . . 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 18752$as_echo_n "checking whether -R must be followed by a space... " >&6; } 18753 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 18754 ac_xsave_c_werror_flag=$ac_c_werror_flag 18755 ac_c_werror_flag=yes 18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18757/* end confdefs.h. */ 18758 18759int 18760main () 18761{ 18762 18763 ; 18764 return 0; 18765} 18766_ACEOF 18767if ac_fn_c_try_link "$LINENO"; then : 18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18769$as_echo "no" >&6; } 18770 X_LIBS="$X_LIBS -R$x_libraries" 18771else 18772 LIBS="$ac_xsave_LIBS -R $x_libraries" 18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18774/* end confdefs.h. */ 18775 18776int 18777main () 18778{ 18779 18780 ; 18781 return 0; 18782} 18783_ACEOF 18784if ac_fn_c_try_link "$LINENO"; then : 18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18786$as_echo "yes" >&6; } 18787 X_LIBS="$X_LIBS -R $x_libraries" 18788else 18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 18790$as_echo "neither works" >&6; } 18791fi 18792rm -f core conftest.err conftest.$ac_objext \ 18793 conftest$ac_exeext conftest.$ac_ext 18794fi 18795rm -f core conftest.err conftest.$ac_objext \ 18796 conftest$ac_exeext conftest.$ac_ext 18797 ac_c_werror_flag=$ac_xsave_c_werror_flag 18798 LIBS=$ac_xsave_LIBS 18799 fi 18800 18801 # Check for system-dependent libraries X programs must link with. 18802 # Do this before checking for the system-independent R6 libraries 18803 # (-lICE), since we may need -lsocket or whatever for X linking. 18804 18805 if test "$ISC" = yes; then 18806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 18807 else 18808 # Martyn Johnson says this is needed for Ultrix, if the X 18809 # libraries were built with DECnet support. And Karl Berry says 18810 # the Alpha needs dnet_stub (dnet does not exist). 18811 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18813/* end confdefs.h. */ 18814 18815/* Override any GCC internal prototype to avoid an error. 18816 Use char because int might match the return type of a GCC 18817 builtin and then its argument prototype would still apply. */ 18818#ifdef __cplusplus 18819extern "C" 18820#endif 18821char XOpenDisplay (); 18822int 18823main () 18824{ 18825return XOpenDisplay (); 18826 ; 18827 return 0; 18828} 18829_ACEOF 18830if ac_fn_c_try_link "$LINENO"; then : 18831 18832else 18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 18834$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 18835if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 18836 $as_echo_n "(cached) " >&6 18837else 18838 ac_check_lib_save_LIBS=$LIBS 18839LIBS="-ldnet $LIBS" 18840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18841/* end confdefs.h. */ 18842 18843/* Override any GCC internal prototype to avoid an error. 18844 Use char because int might match the return type of a GCC 18845 builtin and then its argument prototype would still apply. */ 18846#ifdef __cplusplus 18847extern "C" 18848#endif 18849char dnet_ntoa (); 18850int 18851main () 18852{ 18853return dnet_ntoa (); 18854 ; 18855 return 0; 18856} 18857_ACEOF 18858if ac_fn_c_try_link "$LINENO"; then : 18859 ac_cv_lib_dnet_dnet_ntoa=yes 18860else 18861 ac_cv_lib_dnet_dnet_ntoa=no 18862fi 18863rm -f core conftest.err conftest.$ac_objext \ 18864 conftest$ac_exeext conftest.$ac_ext 18865LIBS=$ac_check_lib_save_LIBS 18866fi 18867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 18868$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 18869if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 18870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 18871fi 18872 18873 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 18875$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 18876if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 18877 $as_echo_n "(cached) " >&6 18878else 18879 ac_check_lib_save_LIBS=$LIBS 18880LIBS="-ldnet_stub $LIBS" 18881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18882/* end confdefs.h. */ 18883 18884/* Override any GCC internal prototype to avoid an error. 18885 Use char because int might match the return type of a GCC 18886 builtin and then its argument prototype would still apply. */ 18887#ifdef __cplusplus 18888extern "C" 18889#endif 18890char dnet_ntoa (); 18891int 18892main () 18893{ 18894return dnet_ntoa (); 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899if ac_fn_c_try_link "$LINENO"; then : 18900 ac_cv_lib_dnet_stub_dnet_ntoa=yes 18901else 18902 ac_cv_lib_dnet_stub_dnet_ntoa=no 18903fi 18904rm -f core conftest.err conftest.$ac_objext \ 18905 conftest$ac_exeext conftest.$ac_ext 18906LIBS=$ac_check_lib_save_LIBS 18907fi 18908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 18909$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 18910if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 18911 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 18912fi 18913 18914 fi 18915fi 18916rm -f core conftest.err conftest.$ac_objext \ 18917 conftest$ac_exeext conftest.$ac_ext 18918 LIBS="$ac_xsave_LIBS" 18919 18920 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 18921 # to get the SysV transport functions. 18922 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 18923 # needs -lnsl. 18924 # The nsl library prevents programs from opening the X display 18925 # on Irix 5.2, according to T.E. Dickey. 18926 # The functions gethostbyname, getservbyname, and inet_addr are 18927 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 18928 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 18929if test "x$ac_cv_func_gethostbyname" = xyes; then : 18930 18931fi 18932 18933 if test $ac_cv_func_gethostbyname = no; then 18934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 18935$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 18936if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 18937 $as_echo_n "(cached) " >&6 18938else 18939 ac_check_lib_save_LIBS=$LIBS 18940LIBS="-lnsl $LIBS" 18941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18942/* end confdefs.h. */ 18943 18944/* Override any GCC internal prototype to avoid an error. 18945 Use char because int might match the return type of a GCC 18946 builtin and then its argument prototype would still apply. */ 18947#ifdef __cplusplus 18948extern "C" 18949#endif 18950char gethostbyname (); 18951int 18952main () 18953{ 18954return gethostbyname (); 18955 ; 18956 return 0; 18957} 18958_ACEOF 18959if ac_fn_c_try_link "$LINENO"; then : 18960 ac_cv_lib_nsl_gethostbyname=yes 18961else 18962 ac_cv_lib_nsl_gethostbyname=no 18963fi 18964rm -f core conftest.err conftest.$ac_objext \ 18965 conftest$ac_exeext conftest.$ac_ext 18966LIBS=$ac_check_lib_save_LIBS 18967fi 18968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 18969$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 18970if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 18971 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 18972fi 18973 18974 if test $ac_cv_lib_nsl_gethostbyname = no; then 18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 18976$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 18977if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 18978 $as_echo_n "(cached) " >&6 18979else 18980 ac_check_lib_save_LIBS=$LIBS 18981LIBS="-lbsd $LIBS" 18982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18983/* end confdefs.h. */ 18984 18985/* Override any GCC internal prototype to avoid an error. 18986 Use char because int might match the return type of a GCC 18987 builtin and then its argument prototype would still apply. */ 18988#ifdef __cplusplus 18989extern "C" 18990#endif 18991char gethostbyname (); 18992int 18993main () 18994{ 18995return gethostbyname (); 18996 ; 18997 return 0; 18998} 18999_ACEOF 19000if ac_fn_c_try_link "$LINENO"; then : 19001 ac_cv_lib_bsd_gethostbyname=yes 19002else 19003 ac_cv_lib_bsd_gethostbyname=no 19004fi 19005rm -f core conftest.err conftest.$ac_objext \ 19006 conftest$ac_exeext conftest.$ac_ext 19007LIBS=$ac_check_lib_save_LIBS 19008fi 19009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 19010$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 19011if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 19012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 19013fi 19014 19015 fi 19016 fi 19017 19018 # lieder@skyler.mavd.honeywell.com says without -lsocket, 19019 # socket/setsockopt and other routines are undefined under SCO ODT 19020 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 19021 # on later versions), says Simon Leinen: it contains gethostby* 19022 # variants that don't use the name server (or something). -lsocket 19023 # must be given before -lnsl if both are needed. We assume that 19024 # if connect needs -lnsl, so does gethostbyname. 19025 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 19026if test "x$ac_cv_func_connect" = xyes; then : 19027 19028fi 19029 19030 if test $ac_cv_func_connect = no; then 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 19032$as_echo_n "checking for connect in -lsocket... " >&6; } 19033if ${ac_cv_lib_socket_connect+:} false; then : 19034 $as_echo_n "(cached) " >&6 19035else 19036 ac_check_lib_save_LIBS=$LIBS 19037LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 19038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19039/* end confdefs.h. */ 19040 19041/* Override any GCC internal prototype to avoid an error. 19042 Use char because int might match the return type of a GCC 19043 builtin and then its argument prototype would still apply. */ 19044#ifdef __cplusplus 19045extern "C" 19046#endif 19047char connect (); 19048int 19049main () 19050{ 19051return connect (); 19052 ; 19053 return 0; 19054} 19055_ACEOF 19056if ac_fn_c_try_link "$LINENO"; then : 19057 ac_cv_lib_socket_connect=yes 19058else 19059 ac_cv_lib_socket_connect=no 19060fi 19061rm -f core conftest.err conftest.$ac_objext \ 19062 conftest$ac_exeext conftest.$ac_ext 19063LIBS=$ac_check_lib_save_LIBS 19064fi 19065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 19066$as_echo "$ac_cv_lib_socket_connect" >&6; } 19067if test "x$ac_cv_lib_socket_connect" = xyes; then : 19068 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 19069fi 19070 19071 fi 19072 19073 # Guillermo Gomez says -lposix is necessary on A/UX. 19074 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 19075if test "x$ac_cv_func_remove" = xyes; then : 19076 19077fi 19078 19079 if test $ac_cv_func_remove = no; then 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 19081$as_echo_n "checking for remove in -lposix... " >&6; } 19082if ${ac_cv_lib_posix_remove+:} false; then : 19083 $as_echo_n "(cached) " >&6 19084else 19085 ac_check_lib_save_LIBS=$LIBS 19086LIBS="-lposix $LIBS" 19087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19088/* end confdefs.h. */ 19089 19090/* Override any GCC internal prototype to avoid an error. 19091 Use char because int might match the return type of a GCC 19092 builtin and then its argument prototype would still apply. */ 19093#ifdef __cplusplus 19094extern "C" 19095#endif 19096char remove (); 19097int 19098main () 19099{ 19100return remove (); 19101 ; 19102 return 0; 19103} 19104_ACEOF 19105if ac_fn_c_try_link "$LINENO"; then : 19106 ac_cv_lib_posix_remove=yes 19107else 19108 ac_cv_lib_posix_remove=no 19109fi 19110rm -f core conftest.err conftest.$ac_objext \ 19111 conftest$ac_exeext conftest.$ac_ext 19112LIBS=$ac_check_lib_save_LIBS 19113fi 19114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 19115$as_echo "$ac_cv_lib_posix_remove" >&6; } 19116if test "x$ac_cv_lib_posix_remove" = xyes; then : 19117 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 19118fi 19119 19120 fi 19121 19122 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 19123 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19124if test "x$ac_cv_func_shmat" = xyes; then : 19125 19126fi 19127 19128 if test $ac_cv_func_shmat = no; then 19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 19130$as_echo_n "checking for shmat in -lipc... " >&6; } 19131if ${ac_cv_lib_ipc_shmat+:} false; then : 19132 $as_echo_n "(cached) " >&6 19133else 19134 ac_check_lib_save_LIBS=$LIBS 19135LIBS="-lipc $LIBS" 19136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19137/* end confdefs.h. */ 19138 19139/* Override any GCC internal prototype to avoid an error. 19140 Use char because int might match the return type of a GCC 19141 builtin and then its argument prototype would still apply. */ 19142#ifdef __cplusplus 19143extern "C" 19144#endif 19145char shmat (); 19146int 19147main () 19148{ 19149return shmat (); 19150 ; 19151 return 0; 19152} 19153_ACEOF 19154if ac_fn_c_try_link "$LINENO"; then : 19155 ac_cv_lib_ipc_shmat=yes 19156else 19157 ac_cv_lib_ipc_shmat=no 19158fi 19159rm -f core conftest.err conftest.$ac_objext \ 19160 conftest$ac_exeext conftest.$ac_ext 19161LIBS=$ac_check_lib_save_LIBS 19162fi 19163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 19164$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 19165if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 19166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 19167fi 19168 19169 fi 19170 fi 19171 19172 # Check for libraries that X11R6 Xt/Xaw programs need. 19173 ac_save_LDFLAGS=$LDFLAGS 19174 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 19175 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 19176 # check for ICE first), but we must link in the order -lSM -lICE or 19177 # we get undefined symbols. So assume we have SM if we have ICE. 19178 # These have to be linked with before -lX11, unlike the other 19179 # libraries we check for below, so use a different variable. 19180 # John Interrante, Karl Berry 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 19182$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 19183if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 19184 $as_echo_n "(cached) " >&6 19185else 19186 ac_check_lib_save_LIBS=$LIBS 19187LIBS="-lICE $X_EXTRA_LIBS $LIBS" 19188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19189/* end confdefs.h. */ 19190 19191/* Override any GCC internal prototype to avoid an error. 19192 Use char because int might match the return type of a GCC 19193 builtin and then its argument prototype would still apply. */ 19194#ifdef __cplusplus 19195extern "C" 19196#endif 19197char IceConnectionNumber (); 19198int 19199main () 19200{ 19201return IceConnectionNumber (); 19202 ; 19203 return 0; 19204} 19205_ACEOF 19206if ac_fn_c_try_link "$LINENO"; then : 19207 ac_cv_lib_ICE_IceConnectionNumber=yes 19208else 19209 ac_cv_lib_ICE_IceConnectionNumber=no 19210fi 19211rm -f core conftest.err conftest.$ac_objext \ 19212 conftest$ac_exeext conftest.$ac_ext 19213LIBS=$ac_check_lib_save_LIBS 19214fi 19215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 19216$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 19217if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 19218 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 19219fi 19220 19221 LDFLAGS=$ac_save_LDFLAGS 19222 19223fi 19224 19225 if test x$have_x = xyes; then 19226 # Only allow dynamically loaded X11 if the X11 function pointers 19227 # will not end up in the global namespace, which causes problems 19228 # with other libraries calling X11 functions. 19229 x11_symbols_private=$have_gcc_fvisibility 19230 19231 # Check whether --enable-x11-shared was given. 19232if test "${enable_x11_shared+set}" = set; then : 19233 enableval=$enable_x11_shared; 19234else 19235 enable_x11_shared=maybe 19236fi 19237 19238 19239 case "$host" in 19240 *-*-cygwin*) 19241 x11_symbols_private=yes 19242 x11_lib='cygX11-6.dll' 19243 x11ext_lib='cygXext-6.dll' 19244 xrender_lib='cygXrender-1.dll' 19245 xrandr_lib='cygXrandr-2.dll' 19246 ;; 19247 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs... 19248 x11_symbols_private=yes 19249 x11_lib='/usr/X11R6/lib/libX11.6.dylib' 19250 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' 19251 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib' 19252 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib' 19253 ;; 19254 *-*-osf*) 19255 x11_lib='libX11.so' 19256 x11ext_lib='libXext.so' 19257 ;; 19258 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32 19259 x11_lib='libX11.so' 19260 x11ext_lib='libXext.so' 19261 ;; 19262 *) 19263 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19264 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19265 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19266 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'` 19267 ;; 19268 esac 19269 19270 X_CFLAGS="$X_CFLAGS -DXTHREADS" 19271 if test x$ac_cv_func_shmat != xyes; then 19272 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY" 19273 fi 19274 CFLAGS="$CFLAGS $X_CFLAGS" 19275 LDFLAGS="$LDFLAGS $X_LIBS" 19276 19277 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h 19278 19279 SOURCES="$SOURCES $srcdir/src/video/x11/*.c" 19280 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS" 19281 19282 if test x$enable_x11_shared = xmaybe; then 19283 enable_x11_shared=$x11_symbols_private 19284 fi 19285 if test x$have_loadso != xyes && \ 19286 test x$enable_x11_shared = xyes; then 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5 19288$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;} 19289 enable_x11_shared=no 19290 fi 19291 if test x$x11_symbols_private != xyes && \ 19292 test x$enable_x11_shared = xyes; then 19293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5 19294$as_echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;} 19295 enable_x11_shared=no 19296 fi 19297 19298 if test x$have_loadso = xyes && \ 19299 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then 19300 echo "-- dynamic libX11 -> $x11_lib" 19301 echo "-- dynamic libX11ext -> $x11ext_lib" 19302 cat >>confdefs.h <<_ACEOF 19303#define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib" 19304_ACEOF 19305 19306 cat >>confdefs.h <<_ACEOF 19307#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib" 19308_ACEOF 19309 19310 else 19311 enable_x11_shared=no 19312 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext" 19313 fi 19314 have_video=yes 19315 19316 # Check whether --enable-dga was given. 19317if test "${enable_dga+set}" = set; then : 19318 enableval=$enable_dga; 19319else 19320 enable_dga=yes 19321fi 19322 19323 if test x$enable_dga = xyes; then 19324 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c" 19325 fi 19326 # Check whether --enable-video-dga was given. 19327if test "${enable_video_dga+set}" = set; then : 19328 enableval=$enable_video_dga; 19329else 19330 enable_video_dga=yes 19331fi 19332 19333 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then 19334 $as_echo "#define SDL_VIDEO_DRIVER_DGA 1" >>confdefs.h 19335 19336 SOURCES="$SOURCES $srcdir/src/video/dga/*.c" 19337 fi 19338 # Check whether --enable-video-x11-dgamouse was given. 19339if test "${enable_video_x11_dgamouse+set}" = set; then : 19340 enableval=$enable_video_x11_dgamouse; 19341else 19342 enable_video_x11_dgamouse=yes 19343fi 19344 19345 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then 19346 $as_echo "#define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1" >>confdefs.h 19347 19348 fi 19349 # Check whether --enable-video-x11-vm was given. 19350if test "${enable_video_x11_vm+set}" = set; then : 19351 enableval=$enable_video_x11_vm; 19352else 19353 enable_video_x11_vm=yes 19354fi 19355 19356 if test x$enable_video_x11_vm = xyes; then 19357 $as_echo "#define SDL_VIDEO_DRIVER_X11_VIDMODE 1" >>confdefs.h 19358 19359 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c" 19360 fi 19361 # Check whether --enable-video-x11-xv was given. 19362if test "${enable_video_x11_xv+set}" = set; then : 19363 enableval=$enable_video_x11_xv; 19364else 19365 enable_video_x11_xv=yes 19366fi 19367 19368 if test x$enable_video_x11_xv = xyes; then 19369 $as_echo "#define SDL_VIDEO_DRIVER_X11_XV 1" >>confdefs.h 19370 19371 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c" 19372 fi 19373 # Check whether --enable-video-x11-xinerama was given. 19374if test "${enable_video_x11_xinerama+set}" = set; then : 19375 enableval=$enable_video_x11_xinerama; 19376else 19377 enable_video_x11_xinerama=yes 19378fi 19379 19380 if test x$enable_video_x11_xinerama = xyes; then 19381 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h 19382 19383 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c" 19384 fi 19385 # Check whether --enable-video-x11-xme was given. 19386if test "${enable_video_x11_xme+set}" = set; then : 19387 enableval=$enable_video_x11_xme; 19388else 19389 enable_video_x11_xme=yes 19390fi 19391 19392 if test x$enable_video_x11_xme = xyes; then 19393 $as_echo "#define SDL_VIDEO_DRIVER_X11_XME 1" >>confdefs.h 19394 19395 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c" 19396 fi 19397 # Check whether --enable-video-x11-xrandr was given. 19398if test "${enable_video_x11_xrandr+set}" = set; then : 19399 enableval=$enable_video_x11_xrandr; 19400else 19401 enable_video_x11_xrandr=yes 19402fi 19403 19404 if test x$enable_video_x11_xrandr = xyes; then 19405 definitely_enable_video_x11_xrandr=no 19406 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "#include <X11/Xlib.h> 19407 19408" 19409if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then : 19410 have_xrandr_h_hdr=yes 19411else 19412 have_xrandr_h_hdr=no 19413fi 19414 19415 19416 if test x$have_xrandr_h_hdr = xyes; then 19417 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then 19418 echo "-- dynamic libXrender -> $xrender_lib" 19419 echo "-- dynamic libXrandr -> $xrandr_lib" 19420 cat >>confdefs.h <<_ACEOF 19421#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "$xrender_lib" 19422_ACEOF 19423 19424 cat >>confdefs.h <<_ACEOF 19425#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib" 19426_ACEOF 19427 19428 definitely_enable_video_x11_xrandr=yes 19429 else 19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 19431$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 19432if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then : 19433 $as_echo_n "(cached) " >&6 19434else 19435 ac_check_lib_save_LIBS=$LIBS 19436LIBS="-lXrender $LIBS" 19437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19438/* end confdefs.h. */ 19439 19440/* Override any GCC internal prototype to avoid an error. 19441 Use char because int might match the return type of a GCC 19442 builtin and then its argument prototype would still apply. */ 19443#ifdef __cplusplus 19444extern "C" 19445#endif 19446char XRenderQueryExtension (); 19447int 19448main () 19449{ 19450return XRenderQueryExtension (); 19451 ; 19452 return 0; 19453} 19454_ACEOF 19455if ac_fn_c_try_link "$LINENO"; then : 19456 ac_cv_lib_Xrender_XRenderQueryExtension=yes 19457else 19458 ac_cv_lib_Xrender_XRenderQueryExtension=no 19459fi 19460rm -f core conftest.err conftest.$ac_objext \ 19461 conftest$ac_exeext conftest.$ac_ext 19462LIBS=$ac_check_lib_save_LIBS 19463fi 19464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 19465$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 19466if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then : 19467 have_xrender_lib=yes 19468fi 19469 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5 19471$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; } 19472if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then : 19473 $as_echo_n "(cached) " >&6 19474else 19475 ac_check_lib_save_LIBS=$LIBS 19476LIBS="-lXrandr $LIBS" 19477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19478/* end confdefs.h. */ 19479 19480/* Override any GCC internal prototype to avoid an error. 19481 Use char because int might match the return type of a GCC 19482 builtin and then its argument prototype would still apply. */ 19483#ifdef __cplusplus 19484extern "C" 19485#endif 19486char XRRQueryExtension (); 19487int 19488main () 19489{ 19490return XRRQueryExtension (); 19491 ; 19492 return 0; 19493} 19494_ACEOF 19495if ac_fn_c_try_link "$LINENO"; then : 19496 ac_cv_lib_Xrandr_XRRQueryExtension=yes 19497else 19498 ac_cv_lib_Xrandr_XRRQueryExtension=no 19499fi 19500rm -f core conftest.err conftest.$ac_objext \ 19501 conftest$ac_exeext conftest.$ac_ext 19502LIBS=$ac_check_lib_save_LIBS 19503fi 19504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5 19505$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; } 19506if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then : 19507 have_xrandr_lib=yes 19508fi 19509 19510 if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then 19511 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender" 19512 definitely_enable_video_x11_xrandr=yes 19513 fi 19514 fi 19515 fi 19516 fi 19517 if test x$definitely_enable_video_x11_xrandr = xyes; then 19518 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h 19519 19520 fi 19521 fi 19522 fi 19523} 19524 19525CheckPHOTON() 19526{ 19527 # Check whether --enable-video-photon was given. 19528if test "${enable_video_photon+set}" = set; then : 19529 enableval=$enable_video_photon; 19530else 19531 enable_video_photon=yes 19532fi 19533 19534 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX Photon support" >&5 19536$as_echo_n "checking for QNX Photon support... " >&6; } 19537 video_photon=no 19538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19539/* end confdefs.h. */ 19540 19541 #include <Ph.h> 19542 #include <Pt.h> 19543 #include <photon/Pg.h> 19544 #include <photon/PdDirect.h> 19545 19546int 19547main () 19548{ 19549 19550 PgDisplaySettings_t *visual; 19551 19552 ; 19553 return 0; 19554} 19555_ACEOF 19556if ac_fn_c_try_compile "$LINENO"; then : 19557 19558 video_photon=yes 19559 19560fi 19561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_photon" >&5 19563$as_echo "$video_photon" >&6; } 19564 if test x$video_photon = xyes; then 19565 $as_echo "#define SDL_VIDEO_DRIVER_PHOTON 1" >>confdefs.h 19566 19567 SOURCES="$SOURCES $srcdir/src/video/photon/*.c" 19568 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph" 19569 have_video=yes 19570 19571 CheckOpenGLQNX 19572 fi 19573 fi 19574} 19575 19576CheckBWINDOW() 19577{ 19578 if test x$enable_video = xyes; then 19579 $as_echo "#define SDL_VIDEO_DRIVER_BWINDOW 1" >>confdefs.h 19580 19581 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc" 19582 have_video=yes 19583 fi 19584} 19585 19586CheckCARBON() 19587{ 19588 # Check whether --enable-video-carbon was given. 19589if test "${enable_video_carbon+set}" = set; then : 19590 enableval=$enable_video_carbon; 19591else 19592 enable_video_carbon=no 19593fi 19594 19595 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then 19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon framework" >&5 19597$as_echo_n "checking for Carbon framework... " >&6; } 19598 have_carbon=no 19599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19600/* end confdefs.h. */ 19601 19602 #include <Carbon/Carbon.h> 19603 19604int 19605main () 19606{ 19607 19608 19609 ; 19610 return 0; 19611} 19612_ACEOF 19613if ac_fn_c_try_compile "$LINENO"; then : 19614 19615 have_carbon=yes 19616 19617fi 19618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_carbon" >&5 19620$as_echo "$have_carbon" >&6; } 19621 if test x$have_carbon = xyes; then 19622 $as_echo "#define SDL_VIDEO_DRIVER_TOOLBOX 1" >>confdefs.h 19623 19624 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c" 19625 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c" 19626 have_video=yes 19627 fi 19628 fi 19629} 19630 19631CheckCOCOA() 19632{ 19633 # Check whether --enable-video-cocoa was given. 19634if test "${enable_video_cocoa+set}" = set; then : 19635 enableval=$enable_video_cocoa; 19636else 19637 enable_video_cocoa=yes 19638fi 19639 19640 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then 19641 save_CFLAGS="$CFLAGS" 19642 CFLAGS="$CFLAGS -x objective-c" 19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5 19644$as_echo_n "checking for Cocoa framework... " >&6; } 19645 have_cocoa=no 19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19647/* end confdefs.h. */ 19648 19649 #import <Cocoa/Cocoa.h> 19650 19651int 19652main () 19653{ 19654 19655 19656 ; 19657 return 0; 19658} 19659_ACEOF 19660if ac_fn_c_try_compile "$LINENO"; then : 19661 19662 have_cocoa=yes 19663 19664fi 19665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5 19667$as_echo "$have_cocoa" >&6; } 19668 CFLAGS="$save_CFLAGS" 19669 if test x$have_cocoa = xyes; then 19670 $as_echo "#define SDL_VIDEO_DRIVER_QUARTZ 1" >>confdefs.h 19671 19672 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m" 19673 have_video=yes 19674 fi 19675 fi 19676} 19677 19678CheckFBCON() 19679{ 19680 # Check whether --enable-video-fbcon was given. 19681if test "${enable_video_fbcon+set}" = set; then : 19682 enableval=$enable_video_fbcon; 19683else 19684 enable_video_fbcon=yes 19685fi 19686 19687 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framebuffer console support" >&5 19689$as_echo_n "checking for framebuffer console support... " >&6; } 19690 video_fbcon=no 19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19692/* end confdefs.h. */ 19693 19694 #include <linux/fb.h> 19695 #include <linux/kd.h> 19696 #include <linux/keyboard.h> 19697 19698int 19699main () 19700{ 19701 19702 19703 ; 19704 return 0; 19705} 19706_ACEOF 19707if ac_fn_c_try_compile "$LINENO"; then : 19708 19709 video_fbcon=yes 19710 19711fi 19712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_fbcon" >&5 19714$as_echo "$video_fbcon" >&6; } 19715 if test x$video_fbcon = xyes; then 19716 for ac_func in getpagesize 19717do : 19718 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 19719if test "x$ac_cv_func_getpagesize" = xyes; then : 19720 cat >>confdefs.h <<_ACEOF 19721#define HAVE_GETPAGESIZE 1 19722_ACEOF 19723 19724fi 19725done 19726 19727 $as_echo "#define SDL_VIDEO_DRIVER_FBCON 1" >>confdefs.h 19728 19729 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c" 19730 have_video=yes 19731 fi 19732 fi 19733} 19734 19735CheckDirectFB() 19736{ 19737 # Check whether --enable-video-directfb was given. 19738if test "${enable_video_directfb+set}" = set; then : 19739 enableval=$enable_video_directfb; 19740else 19741 enable_video_directfb=yes 19742fi 19743 19744 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then 19745 video_directfb=no 19746 19747 DIRECTFB_REQUIRED_VERSION=0.9.15 19748 19749 # Extract the first word of "directfb-config", so it can be a program name with args. 19750set dummy directfb-config; ac_word=$2 19751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19752$as_echo_n "checking for $ac_word... " >&6; } 19753if ${ac_cv_path_DIRECTFBCONFIG+:} false; then : 19754 $as_echo_n "(cached) " >&6 19755else 19756 case $DIRECTFBCONFIG in 19757 [\\/]* | ?:[\\/]*) 19758 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path. 19759 ;; 19760 *) 19761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19762for as_dir in $PATH 19763do 19764 IFS=$as_save_IFS 19765 test -z "$as_dir" && as_dir=. 19766 for ac_exec_ext in '' $ac_executable_extensions; do 19767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19768 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext" 19769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19770 break 2 19771 fi 19772done 19773 done 19774IFS=$as_save_IFS 19775 19776 test -z "$ac_cv_path_DIRECTFBCONFIG" && ac_cv_path_DIRECTFBCONFIG="no" 19777 ;; 19778esac 19779fi 19780DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG 19781if test -n "$DIRECTFBCONFIG"; then 19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5 19783$as_echo "$DIRECTFBCONFIG" >&6; } 19784else 19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19786$as_echo "no" >&6; } 19787fi 19788 19789 19790 if test x$DIRECTFBCONFIG = xno; then 19791 # Extract the first word of "pkg-config", so it can be a program name with args. 19792set dummy pkg-config; ac_word=$2 19793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19794$as_echo_n "checking for $ac_word... " >&6; } 19795if ${ac_cv_path_PKG_CONFIG+:} false; then : 19796 $as_echo_n "(cached) " >&6 19797else 19798 case $PKG_CONFIG in 19799 [\\/]* | ?:[\\/]*) 19800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19801 ;; 19802 *) 19803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19804for as_dir in $PATH 19805do 19806 IFS=$as_save_IFS 19807 test -z "$as_dir" && as_dir=. 19808 for ac_exec_ext in '' $ac_executable_extensions; do 19809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19812 break 2 19813 fi 19814done 19815 done 19816IFS=$as_save_IFS 19817 19818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 19819 ;; 19820esac 19821fi 19822PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19823if test -n "$PKG_CONFIG"; then 19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19825$as_echo "$PKG_CONFIG" >&6; } 19826else 19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19828$as_echo "no" >&6; } 19829fi 19830 19831 19832 if test x$PKG_CONFIG != xno; then 19833 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then 19834 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb` 19835 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb` 19836 video_directfb=yes 19837 fi 19838 fi 19839 else 19840 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'` 19841 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` 19842 set -- `directfb-config --version | sed 's/\./ /g'` 19843 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3` 19844 if test $HAVE_VERSION -ge $NEED_VERSION; then 19845 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags` 19846 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs` 19847 video_directfb=yes 19848 fi 19849 fi 19850 if test x$video_directfb = xyes; then 19851 # SuSE 11.1 installs directfb-config without directfb-devel 19852 save_CFLAGS="$CFLAGS" 19853 CFLAGS="$CFLAGS $DIRECTFB_CFLAGS" 19854 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default" 19855if test "x$ac_cv_header_directfb_h" = xyes; then : 19856 have_directfb_hdr=yes 19857else 19858 have_directfb_hdr=no 19859fi 19860 19861 19862 CFLAGS="$save_CFLAGS" 19863 video_directfb=$have_directfb_hdr 19864 fi 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5 19866$as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; } 19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5 19868$as_echo "$video_directfb" >&6; } 19869 19870 if test x$video_directfb = xyes; then 19871 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h 19872 19873 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" 19874 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" 19875 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" 19876 have_video=yes 19877 fi 19878 fi 19879} 19880 19881CheckPS2GS() 19882{ 19883 # Check whether --enable-video-ps2gs was given. 19884if test "${enable_video_ps2gs+set}" = set; then : 19885 enableval=$enable_video_ps2gs; 19886else 19887 enable_video_ps2gs=yes 19888fi 19889 19890 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then 19891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PlayStation 2 GS support" >&5 19892$as_echo_n "checking for PlayStation 2 GS support... " >&6; } 19893 video_ps2gs=no 19894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19895/* end confdefs.h. */ 19896 19897 #include <linux/ps2/dev.h> 19898 #include <linux/ps2/gs.h> 19899 19900int 19901main () 19902{ 19903 19904 19905 ; 19906 return 0; 19907} 19908_ACEOF 19909if ac_fn_c_try_compile "$LINENO"; then : 19910 19911 video_ps2gs=yes 19912 19913fi 19914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_ps2gs" >&5 19916$as_echo "$video_ps2gs" >&6; } 19917 if test x$video_ps2gs = xyes; then 19918 $as_echo "#define SDL_VIDEO_DRIVER_PS2GS 1" >>confdefs.h 19919 19920 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c" 19921 have_video=yes 19922 fi 19923 fi 19924} 19925 19926CheckPS3() 19927{ 19928 # Check whether --enable-video-ps3 was given. 19929if test "${enable_video_ps3+set}" = set; then : 19930 enableval=$enable_video_ps3; 19931else 19932 enable_video_ps3=yes 19933fi 19934 19935 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then 19936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PlayStation 3 Cell support" >&5 19937$as_echo_n "checking for PlayStation 3 Cell support... " >&6; } 19938 video_ps3=no 19939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19940/* end confdefs.h. */ 19941 19942 #include <linux/fb.h> 19943 #include <asm/ps3fb.h> 19944 19945int 19946main () 19947{ 19948 19949 19950 ; 19951 return 0; 19952} 19953_ACEOF 19954if ac_fn_c_try_compile "$LINENO"; then : 19955 19956 video_ps3=yes 19957 19958fi 19959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_ps3" >&5 19961$as_echo "$video_ps3" >&6; } 19962 if test x$video_ps3 = xyes; then 19963 $as_echo "#define SDL_VIDEO_DRIVER_PS3 1" >>confdefs.h 19964 19965 SOURCES="$SOURCES $srcdir/src/video/ps3/*.c" 19966 EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include" 19967 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lbilin_scaler_spu -lfb_writer_spu -lyuv2rgb_spu -L/opt/cell/sdk/usr/lib -lspe2" 19968 have_video=yes 19969 fi 19970 fi 19971} 19972 19973CheckGGI() 19974{ 19975 # Check whether --enable-video-ggi was given. 19976if test "${enable_video_ggi+set}" = set; then : 19977 enableval=$enable_video_ggi; 19978else 19979 enable_video_ggi=no 19980fi 19981 19982 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then 19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GGI support" >&5 19984$as_echo_n "checking for GGI support... " >&6; } 19985 video_ggi=no 19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19987/* end confdefs.h. */ 19988 19989 #include <ggi/ggi.h> 19990 #include <ggi/gii.h> 19991 19992int 19993main () 19994{ 19995 19996 19997 ; 19998 return 0; 19999} 20000_ACEOF 20001if ac_fn_c_try_compile "$LINENO"; then : 20002 20003 video_ggi=yes 20004 20005fi 20006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_ggi" >&5 20008$as_echo "$video_ggi" >&6; } 20009 if test x$video_ggi = xyes; then 20010 $as_echo "#define SDL_VIDEO_DRIVER_GGI 1" >>confdefs.h 20011 20012 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c" 20013 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg" 20014 have_video=yes 20015 fi 20016 fi 20017} 20018 20019CheckSVGA() 20020{ 20021 # Check whether --enable-video-svga was given. 20022if test "${enable_video_svga+set}" = set; then : 20023 enableval=$enable_video_svga; 20024else 20025 enable_video_svga=yes 20026fi 20027 20028 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then 20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVGAlib (1.4.0+) support" >&5 20030$as_echo_n "checking for SVGAlib (1.4.0+) support... " >&6; } 20031 video_svga=no 20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20033/* end confdefs.h. */ 20034 20035 #include <vga.h> 20036 #include <vgamouse.h> 20037 #include <vgakeyboard.h> 20038 20039int 20040main () 20041{ 20042 20043 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) { 20044 exit(0); 20045 } 20046 20047 ; 20048 return 0; 20049} 20050_ACEOF 20051if ac_fn_c_try_compile "$LINENO"; then : 20052 20053 video_svga=yes 20054 20055fi 20056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_svga" >&5 20058$as_echo "$video_svga" >&6; } 20059 if test x$video_svga = xyes; then 20060 $as_echo "#define SDL_VIDEO_DRIVER_SVGALIB 1" >>confdefs.h 20061 20062 SOURCES="$SOURCES $srcdir/src/video/svga/*.c" 20063 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga" 20064 have_video=yes 20065 fi 20066 fi 20067} 20068 20069CheckVGL() 20070{ 20071 # Check whether --enable-video-vgl was given. 20072if test "${enable_video_vgl+set}" = set; then : 20073 enableval=$enable_video_vgl; 20074else 20075 enable_video_vgl=yes 20076fi 20077 20078 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libVGL support" >&5 20080$as_echo_n "checking for libVGL support... " >&6; } 20081 video_vgl=no 20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20083/* end confdefs.h. */ 20084 20085 #include <sys/fbio.h> 20086 #include <sys/consio.h> 20087 #include <sys/kbio.h> 20088 #include <vgl.h> 20089 20090int 20091main () 20092{ 20093 20094 VGLBitmap bitmap; 20095 bitmap.Type = VIDBUF32; 20096 bitmap.PixelBytes = 4; 20097 exit(bitmap.Bitmap); 20098 20099 ; 20100 return 0; 20101} 20102_ACEOF 20103if ac_fn_c_try_compile "$LINENO"; then : 20104 20105 video_vgl=yes 20106 20107fi 20108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_vgl" >&5 20110$as_echo "$video_vgl" >&6; } 20111 if test x$video_vgl = xyes; then 20112 $as_echo "#define SDL_VIDEO_DRIVER_VGL 1" >>confdefs.h 20113 20114 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c" 20115 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl" 20116 have_video=yes 20117 fi 20118 fi 20119} 20120 20121CheckWscons() 20122{ 20123 # Check whether --enable-video-wscons was given. 20124if test "${enable_video_wscons+set}" = set; then : 20125 enableval=$enable_video_wscons; 20126else 20127 enable_video_wscons=yes 20128fi 20129 20130 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wscons support" >&5 20132$as_echo_n "checking for wscons support... " >&6; } 20133 video_wscons=no 20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20135/* end confdefs.h. */ 20136 20137 #include <sys/time.h> 20138 #include <dev/wscons/wsconsio.h> 20139 #include <dev/wscons/wsdisplay_usl_io.h> 20140 20141int 20142main () 20143{ 20144 20145 int wsmode = WSDISPLAYIO_MODE_DUMBFB; 20146 20147 ; 20148 return 0; 20149} 20150_ACEOF 20151if ac_fn_c_try_compile "$LINENO"; then : 20152 20153 video_wscons=yes 20154 20155fi 20156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wscons" >&5 20158$as_echo "$video_wscons" >&6; } 20159 if test x$video_wscons = xyes; then 20160 $as_echo "#define SDL_VIDEO_DRIVER_WSCONS 1" >>confdefs.h 20161 20162 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c" 20163 have_video=yes 20164 fi 20165 fi 20166} 20167 20168 20169CheckAAlib() 20170{ 20171 # Check whether --enable-video-aalib was given. 20172if test "${enable_video_aalib+set}" = set; then : 20173 enableval=$enable_video_aalib; 20174else 20175 enable_video_aalib=no 20176fi 20177 20178 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then 20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AAlib support" >&5 20180$as_echo_n "checking for AAlib support... " >&6; } 20181 video_aalib=no 20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20183/* end confdefs.h. */ 20184 20185 #include <aalib.h> 20186 20187int 20188main () 20189{ 20190 20191 20192 ; 20193 return 0; 20194} 20195_ACEOF 20196if ac_fn_c_try_compile "$LINENO"; then : 20197 20198 video_aalib=yes 20199 20200fi 20201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_aalib" >&5 20203$as_echo "$video_aalib" >&6; } 20204 if test x$video_aalib = xyes; then 20205 $as_echo "#define SDL_VIDEO_DRIVER_AALIB 1" >>confdefs.h 20206 20207 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c" 20208 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa" 20209 have_video=yes 20210 fi 20211 fi 20212} 20213 20214CheckCaca() 20215{ 20216 # Check whether --enable-video-caca was given. 20217if test "${enable_video_caca+set}" = set; then : 20218 enableval=$enable_video_caca; 20219else 20220 enable_video_caca=no 20221fi 20222 20223 if test x$enable_video = xyes -a x$enable_video_caca = xyes; then 20224 video_caca=no 20225 # Extract the first word of "caca-config", so it can be a program name with args. 20226set dummy caca-config; ac_word=$2 20227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20228$as_echo_n "checking for $ac_word... " >&6; } 20229if ${ac_cv_path_CACACONFIG+:} false; then : 20230 $as_echo_n "(cached) " >&6 20231else 20232 case $CACACONFIG in 20233 [\\/]* | ?:[\\/]*) 20234 ac_cv_path_CACACONFIG="$CACACONFIG" # Let the user override the test with a path. 20235 ;; 20236 *) 20237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20238for as_dir in $PATH 20239do 20240 IFS=$as_save_IFS 20241 test -z "$as_dir" && as_dir=. 20242 for ac_exec_ext in '' $ac_executable_extensions; do 20243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20244 ac_cv_path_CACACONFIG="$as_dir/$ac_word$ac_exec_ext" 20245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20246 break 2 20247 fi 20248done 20249 done 20250IFS=$as_save_IFS 20251 20252 test -z "$ac_cv_path_CACACONFIG" && ac_cv_path_CACACONFIG="no" 20253 ;; 20254esac 20255fi 20256CACACONFIG=$ac_cv_path_CACACONFIG 20257if test -n "$CACACONFIG"; then 20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACACONFIG" >&5 20259$as_echo "$CACACONFIG" >&6; } 20260else 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20262$as_echo "no" >&6; } 20263fi 20264 20265 20266 if test x$CACACONFIG != xno; then 20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcaca support" >&5 20268$as_echo_n "checking for libcaca support... " >&6; } 20269 CACA_CFLAGS=`$CACACONFIG --cflags` 20270 CACA_LDFLAGS=`$CACACONFIG --libs` 20271 save_CFLAGS="$CFLAGS" 20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20273/* end confdefs.h. */ 20274 20275 #include <caca.h> 20276 20277int 20278main () 20279{ 20280 20281 20282 ; 20283 return 0; 20284} 20285_ACEOF 20286if ac_fn_c_try_compile "$LINENO"; then : 20287 20288 video_caca=yes 20289 20290fi 20291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20292 CFLAGS="$save_CFLAGS" 20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_caca" >&5 20294$as_echo "$video_caca" >&6; } 20295 if test x$video_caca = xyes; then 20296 $as_echo "#define SDL_VIDEO_DRIVER_CACA 1" >>confdefs.h 20297 20298 EXTRA_CFLAGS="$EXTRA_CFLAGS $CACA_CFLAGS" 20299 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LDFLAGS" 20300 SOURCES="$SOURCES $srcdir/src/video/caca/*.c" 20301 fi 20302 fi 20303 fi 20304} 20305 20306CheckQtopia() 20307{ 20308 # Check whether --enable-video-qtopia was given. 20309if test "${enable_video_qtopia+set}" = set; then : 20310 enableval=$enable_video_qtopia; 20311else 20312 enable_video_qtopia=no 20313fi 20314 20315 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qtopia support" >&5 20317$as_echo_n "checking for Qtopia support... " >&6; } 20318 video_qtopia=no 20319 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions" 20320 ac_ext=cpp 20321ac_cpp='$CXXCPP $CPPFLAGS' 20322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20325 20326 OLD_CXX="$CXXFLAGS" 20327 CXXFLAGS="$QTOPIA_FLAGS" 20328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20329/* end confdefs.h. */ 20330 20331 #include <qpe/qpeapplication.h> 20332 20333int 20334main () 20335{ 20336 20337 20338 ; 20339 return 0; 20340} 20341_ACEOF 20342if ac_fn_cxx_try_compile "$LINENO"; then : 20343 20344 video_qtopia=yes 20345 20346fi 20347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20348 CXXFLAGS="$OLD_CXX" 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_qtopia" >&5 20350$as_echo "$video_qtopia" >&6; } 20351 if test x$video_qtopia = xyes; then 20352 $as_echo "#define SDL_VIDEO_DRIVER_QTOPIA 1" >>confdefs.h 20353 20354 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc" 20355 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc" 20356 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS" 20357 SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main" 20358 SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte" 20359 have_video=yes 20360 fi 20361 ac_ext=c 20362ac_cpp='$CPP $CPPFLAGS' 20363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20365ac_compiler_gnu=$ac_cv_c_compiler_gnu 20366 20367 fi 20368} 20369 20370CheckPicoGUI() 20371{ 20372 # Check whether --enable-video-picogui was given. 20373if test "${enable_video_picogui+set}" = set; then : 20374 enableval=$enable_video_picogui; 20375else 20376 enable_video_picogui=no 20377fi 20378 20379 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PicoGUI support" >&5 20381$as_echo_n "checking for PicoGUI support... " >&6; } 20382 video_picogui=no 20383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20384/* end confdefs.h. */ 20385 20386 #include <picogui.h> 20387 20388int 20389main () 20390{ 20391 20392 20393 ; 20394 return 0; 20395} 20396_ACEOF 20397if ac_fn_c_try_compile "$LINENO"; then : 20398 20399 video_picogui=yes 20400 20401fi 20402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_picogui" >&5 20404$as_echo "$video_picogui" >&6; } 20405 if test x$video_picogui = xyes; then 20406 $as_echo "#define SDL_VIDEO_DRIVER_PICOGUI 1" >>confdefs.h 20407 20408 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c" 20409 SDL_LIBS="$SDL_LIBS -lpgui" 20410 have_video=yes 20411 fi 20412 fi 20413} 20414 20415CheckAtariBiosEvent() 20416{ 20417 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c" 20418 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.S" 20419} 20420 20421CheckAtariXbiosVideo() 20422{ 20423 # Check whether --enable-xbios was given. 20424if test "${enable_xbios+set}" = set; then : 20425 enableval=$enable_xbios; 20426else 20427 enable_video_xbios=yes 20428fi 20429 20430 video_xbios=no 20431 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then 20432 video_xbios=yes 20433 $as_echo "#define SDL_VIDEO_DRIVER_XBIOS 1" >>confdefs.h 20434 20435 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c" 20436 have_video=yes 20437 fi 20438} 20439 20440CheckAtariGemVideo() 20441{ 20442 # Check whether --enable-gem was given. 20443if test "${enable_gem+set}" = set; then : 20444 enableval=$enable_gem; 20445else 20446 enable_video_gem=yes 20447fi 20448 20449 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then 20450 video_gem=no 20451 ac_fn_c_check_header_mongrel "$LINENO" "gem.h" "ac_cv_header_gem_h" "$ac_includes_default" 20452if test "x$ac_cv_header_gem_h" = xyes; then : 20453 have_gem_hdr=yes 20454fi 20455 20456 20457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appl_init in -lgem" >&5 20458$as_echo_n "checking for appl_init in -lgem... " >&6; } 20459if ${ac_cv_lib_gem_appl_init+:} false; then : 20460 $as_echo_n "(cached) " >&6 20461else 20462 ac_check_lib_save_LIBS=$LIBS 20463LIBS="-lgem $LIBS" 20464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20465/* end confdefs.h. */ 20466 20467/* Override any GCC internal prototype to avoid an error. 20468 Use char because int might match the return type of a GCC 20469 builtin and then its argument prototype would still apply. */ 20470#ifdef __cplusplus 20471extern "C" 20472#endif 20473char appl_init (); 20474int 20475main () 20476{ 20477return appl_init (); 20478 ; 20479 return 0; 20480} 20481_ACEOF 20482if ac_fn_c_try_link "$LINENO"; then : 20483 ac_cv_lib_gem_appl_init=yes 20484else 20485 ac_cv_lib_gem_appl_init=no 20486fi 20487rm -f core conftest.err conftest.$ac_objext \ 20488 conftest$ac_exeext conftest.$ac_ext 20489LIBS=$ac_check_lib_save_LIBS 20490fi 20491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gem_appl_init" >&5 20492$as_echo "$ac_cv_lib_gem_appl_init" >&6; } 20493if test "x$ac_cv_lib_gem_appl_init" = xyes; then : 20494 have_gem_lib=yes 20495fi 20496 20497 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then 20498 video_gem=yes 20499 $as_echo "#define SDL_VIDEO_DRIVER_GEM 1" >>confdefs.h 20500 20501 SOURCES="$SOURCES $srcdir/src/video/gem/*.c" 20502 SDL_LIBS="$SDL_LIBS -lgem" 20503 have_video=yes 20504 fi 20505 fi 20506} 20507 20508CheckDummyVideo() 20509{ 20510 # Check whether --enable-video-dummy was given. 20511if test "${enable_video_dummy+set}" = set; then : 20512 enableval=$enable_video_dummy; 20513else 20514 enable_video_dummy=yes 20515fi 20516 20517 if test x$enable_video_dummy = xyes; then 20518 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h 20519 20520 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c" 20521 have_video=yes 20522 fi 20523} 20524 20525# Check whether --enable-video-opengl was given. 20526if test "${enable_video_opengl+set}" = set; then : 20527 enableval=$enable_video_opengl; 20528else 20529 enable_video_opengl=yes 20530fi 20531 20532 20533CheckOpenGLX11() 20534{ 20535 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5 20537$as_echo_n "checking for OpenGL (GLX) support... " >&6; } 20538 video_opengl=no 20539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20540/* end confdefs.h. */ 20541 20542 #include <GL/gl.h> 20543 #include <GL/glx.h> 20544 #include <GL/glu.h> 20545 20546int 20547main () 20548{ 20549 20550 20551 ; 20552 return 0; 20553} 20554_ACEOF 20555if ac_fn_c_try_compile "$LINENO"; then : 20556 20557 video_opengl=yes 20558 20559fi 20560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5 20562$as_echo "$video_opengl" >&6; } 20563 if test x$video_opengl = xyes; then 20564 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 20565 20566 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h 20567 20568 fi 20569 fi 20570} 20571 20572CheckOpenGLQNX() 20573{ 20574 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (Photon) support" >&5 20576$as_echo_n "checking for OpenGL (Photon) support... " >&6; } 20577 video_opengl=no 20578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20579/* end confdefs.h. */ 20580 20581 #include <GL/gl.h> 20582 20583int 20584main () 20585{ 20586 20587 20588 ; 20589 return 0; 20590} 20591_ACEOF 20592if ac_fn_c_try_compile "$LINENO"; then : 20593 20594 video_opengl=yes 20595 20596fi 20597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5 20599$as_echo "$video_opengl" >&6; } 20600 if test x$video_opengl = xyes; then 20601 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 20602 20603 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" 20604 fi 20605 fi 20606} 20607 20608CheckWIN32GL() 20609{ 20610 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 20611 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 20612 20613 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h 20614 20615 fi 20616} 20617 20618CheckBeGL() 20619{ 20620 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 20621 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 20622 20623 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL" 20624 fi 20625} 20626 20627CheckMacGL() 20628{ 20629 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then 20630 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 20631 20632 case "$host" in 20633 *-*-darwin*) 20634 if test x$enable_video_cocoa = xyes; then 20635 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL" 20636 fi 20637 if test x$enable_video_carbon = xyes; then 20638 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL" 20639 fi 20640 esac 20641 fi 20642} 20643 20644CheckAtariOSMesa() 20645{ 20646 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then 20647 ac_fn_c_check_header_mongrel "$LINENO" "GL/osmesa.h" "ac_cv_header_GL_osmesa_h" "$ac_includes_default" 20648if test "x$ac_cv_header_GL_osmesa_h" = xyes; then : 20649 have_osmesa_hdr=yes 20650fi 20651 20652 20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMesaCreateContext in -lOSMesa" >&5 20654$as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; } 20655if ${ac_cv_lib_OSMesa_OSMesaCreateContext+:} false; then : 20656 $as_echo_n "(cached) " >&6 20657else 20658 ac_check_lib_save_LIBS=$LIBS 20659LIBS="-lOSMesa -lm $LIBS" 20660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20661/* end confdefs.h. */ 20662 20663/* Override any GCC internal prototype to avoid an error. 20664 Use char because int might match the return type of a GCC 20665 builtin and then its argument prototype would still apply. */ 20666#ifdef __cplusplus 20667extern "C" 20668#endif 20669char OSMesaCreateContext (); 20670int 20671main () 20672{ 20673return OSMesaCreateContext (); 20674 ; 20675 return 0; 20676} 20677_ACEOF 20678if ac_fn_c_try_link "$LINENO"; then : 20679 ac_cv_lib_OSMesa_OSMesaCreateContext=yes 20680else 20681 ac_cv_lib_OSMesa_OSMesaCreateContext=no 20682fi 20683rm -f core conftest.err conftest.$ac_objext \ 20684 conftest$ac_exeext conftest.$ac_ext 20685LIBS=$ac_check_lib_save_LIBS 20686fi 20687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5 20688$as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; } 20689if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = xyes; then : 20690 have_osmesa_lib=yes 20691else 20692 have_osmesa_lib=no 20693fi 20694 20695 20696 # Static linking to -lOSMesa 20697 # Extract the first word of "osmesa-config", so it can be a program name with args. 20698set dummy osmesa-config; ac_word=$2 20699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20700$as_echo_n "checking for $ac_word... " >&6; } 20701if ${ac_cv_path_OSMESA_CONFIG+:} false; then : 20702 $as_echo_n "(cached) " >&6 20703else 20704 case $OSMESA_CONFIG in 20705 [\\/]* | ?:[\\/]*) 20706 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path. 20707 ;; 20708 *) 20709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20710for as_dir in $PATH 20711do 20712 IFS=$as_save_IFS 20713 test -z "$as_dir" && as_dir=. 20714 for ac_exec_ext in '' $ac_executable_extensions; do 20715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20716 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20718 break 2 20719 fi 20720done 20721 done 20722IFS=$as_save_IFS 20723 20724 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no" 20725 ;; 20726esac 20727fi 20728OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG 20729if test -n "$OSMESA_CONFIG"; then 20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5 20731$as_echo "$OSMESA_CONFIG" >&6; } 20732else 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20734$as_echo "no" >&6; } 20735fi 20736 20737 20738 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then 20739 # -lOSMesa is really the static library 20740 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then 20741 OSMESA_LIBS="-lOSMesa" 20742 fi 20743 else 20744 # -lOSMesa is a loader for OSMesa.ldg 20745 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` 20746 OSMESA_LIBS=`$OSMESA_CONFIG --libs` 20747 fi 20748 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h 20749 20750 $as_echo "#define SDL_VIDEO_OPENGL_OSMESA 1" >>confdefs.h 20751 20752 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS" 20753 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS" 20754 20755 # Check whether --enable-osmesa-shared was given. 20756if test "${enable_osmesa_shared+set}" = set; then : 20757 enableval=$enable_osmesa_shared; 20758else 20759 enable_osmesa_shared=yes 20760fi 20761 20762 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then 20763 # Dynamic linking 20764 if test "x$have_osmesa_hdr" = "xyes"; then 20765 $as_echo "#define SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 1" >>confdefs.h 20766 20767 fi 20768 fi 20769 fi 20770} 20771 20772# Check whether --enable-screensaver was given. 20773if test "${enable_screensaver+set}" = set; then : 20774 enableval=$enable_screensaver; 20775else 20776 enable_screensaver=no 20777fi 20778 20779if test x$enable_screensaver = xno; then 20780 $as_echo "#define SDL_VIDEO_DISABLE_SCREENSAVER 1" >>confdefs.h 20781 20782fi 20783 20784CheckInputEvents() 20785{ 20786 # Check whether --enable-input-events was given. 20787if test "${enable_input_events+set}" = set; then : 20788 enableval=$enable_input_events; 20789else 20790 enable_input_events=yes 20791fi 20792 20793 if test x$enable_input_events = xyes; then 20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5 20795$as_echo_n "checking for Linux 2.4 unified input interface... " >&6; } 20796 use_input_events=no 20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20798/* end confdefs.h. */ 20799 20800 #include <linux/input.h> 20801 20802int 20803main () 20804{ 20805 20806 #ifndef EVIOCGNAME 20807 #error EVIOCGNAME() ioctl not available 20808 #endif 20809 20810 ; 20811 return 0; 20812} 20813_ACEOF 20814if ac_fn_c_try_compile "$LINENO"; then : 20815 20816 use_input_events=yes 20817 20818fi 20819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5 20821$as_echo "$use_input_events" >&6; } 20822 if test x$use_input_events = xyes; then 20823 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h 20824 20825 fi 20826 fi 20827} 20828 20829CheckTslib() 20830{ 20831 # Check whether --enable-input-tslib was given. 20832if test "${enable_input_tslib+set}" = set; then : 20833 enableval=$enable_input_tslib; 20834else 20835 enable_input_tslib=yes 20836fi 20837 20838 if test x$enable_input_tslib = xyes; then 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5 20840$as_echo_n "checking for Touchscreen library support... " >&6; } 20841 enable_input_tslib=no 20842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20843/* end confdefs.h. */ 20844 20845 #include "tslib.h" 20846 20847int 20848main () 20849{ 20850 20851 20852 ; 20853 return 0; 20854} 20855_ACEOF 20856if ac_fn_c_try_compile "$LINENO"; then : 20857 20858 enable_input_tslib=yes 20859 20860fi 20861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5 20863$as_echo "$enable_input_tslib" >&6; } 20864 if test x$enable_input_tslib = xyes; then 20865 $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h 20866 20867 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts" 20868 fi 20869 fi 20870} 20871 20872CheckPTH() 20873{ 20874 # Check whether --enable-pth was given. 20875if test "${enable_pth+set}" = set; then : 20876 enableval=$enable_pth; 20877else 20878 enable_pth=yes 20879fi 20880 20881 if test x$enable_threads = xyes -a x$enable_pth = xyes; then 20882 # Extract the first word of "pth-config", so it can be a program name with args. 20883set dummy pth-config; ac_word=$2 20884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20885$as_echo_n "checking for $ac_word... " >&6; } 20886if ${ac_cv_path_PTH_CONFIG+:} false; then : 20887 $as_echo_n "(cached) " >&6 20888else 20889 case $PTH_CONFIG in 20890 [\\/]* | ?:[\\/]*) 20891 ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path. 20892 ;; 20893 *) 20894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20895for as_dir in $PATH 20896do 20897 IFS=$as_save_IFS 20898 test -z "$as_dir" && as_dir=. 20899 for ac_exec_ext in '' $ac_executable_extensions; do 20900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20901 ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20903 break 2 20904 fi 20905done 20906 done 20907IFS=$as_save_IFS 20908 20909 test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no" 20910 ;; 20911esac 20912fi 20913PTH_CONFIG=$ac_cv_path_PTH_CONFIG 20914if test -n "$PTH_CONFIG"; then 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5 20916$as_echo "$PTH_CONFIG" >&6; } 20917else 20918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20919$as_echo "no" >&6; } 20920fi 20921 20922 20923 if test "$PTH_CONFIG" = "no"; then 20924 use_pth=no 20925 else 20926 use_pth=yes 20927 fi 20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pth" >&5 20929$as_echo_n "checking pth... " >&6; } 20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pth" >&5 20931$as_echo "$use_pth" >&6; } 20932 if test "x$use_pth" = xyes; then 20933 $as_echo "#define SDL_THREAD_PTH 1" >>confdefs.h 20934 20935 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c" 20936 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" 20937 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`" 20938 SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`" 20939 have_threads=yes 20940 fi 20941 fi 20942} 20943 20944CheckPTHREAD() 20945{ 20946 # Check whether --enable-pthreads was given. 20947if test "${enable_pthreads+set}" = set; then : 20948 enableval=$enable_pthreads; 20949else 20950 enable_pthreads=yes 20951fi 20952 20953 # Check whether --enable-pthread-sem was given. 20954if test "${enable_pthread_sem+set}" = set; then : 20955 enableval=$enable_pthread_sem; 20956else 20957 enable_pthread_sem=yes 20958fi 20959 20960 case "$host" in 20961 *-*-linux*|*-*-uclinux*) 20962 pthread_cflags="-D_REENTRANT" 20963 pthread_lib="-lpthread" 20964 ;; 20965 *-*-bsdi*) 20966 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 20967 pthread_lib="" 20968 ;; 20969 *-*-darwin*) 20970 pthread_cflags="-D_THREAD_SAFE" 20971# causes Carbon.p complaints? 20972# pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 20973 ;; 20974 *-*-freebsd*|*-*-dragonfly*) 20975 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 20976 pthread_lib="-pthread" 20977 ;; 20978 *-*-netbsd*) 20979 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE" 20980 pthread_lib="-lpthread" 20981 ;; 20982 *-*-openbsd*) 20983 pthread_cflags="-D_REENTRANT" 20984 pthread_lib="-pthread" 20985 ;; 20986 *-*-solaris*) 20987 pthread_cflags="-D_REENTRANT" 20988 pthread_lib="-lpthread -lposix4" 20989 ;; 20990 *-*-sysv5*) 20991 pthread_cflags="-D_REENTRANT -Kthread" 20992 pthread_lib="" 20993 ;; 20994 *-*-irix*) 20995 pthread_cflags="-D_SGI_MP_SOURCE" 20996 pthread_lib="-lpthread" 20997 ;; 20998 *-*-aix*) 20999 pthread_cflags="-D_REENTRANT -mthreads" 21000 pthread_lib="-lpthread" 21001 ;; 21002 *-*-hpux11*) 21003 pthread_cflags="-D_REENTRANT" 21004 pthread_lib="-L/usr/lib -lpthread" 21005 ;; 21006 *-*-qnx*) 21007 pthread_cflags="" 21008 pthread_lib="" 21009 ;; 21010 *-*-osf*) 21011 pthread_cflags="-D_REENTRANT" 21012 if test x$ac_cv_c_compiler_gnu = xyes; then 21013 pthread_lib="-lpthread -lrt" 21014 else 21015 pthread_lib="-lpthread -lexc -lrt" 21016 fi 21017 ;; 21018 *) 21019 pthread_cflags="-D_REENTRANT" 21020 pthread_lib="-lpthread" 21021 ;; 21022 esac 21023 if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then 21024 # Save the original compiler flags and libraries 21025 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 21026 # Add the pthread compiler flags and libraries 21027 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 21028 # Check to see if we have pthread support on this system 21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5 21030$as_echo_n "checking for pthreads... " >&6; } 21031 use_pthreads=no 21032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21033/* end confdefs.h. */ 21034 21035 #include <pthread.h> 21036 21037int 21038main () 21039{ 21040 21041 pthread_attr_t type; 21042 pthread_attr_init(&type); 21043 21044 ; 21045 return 0; 21046} 21047_ACEOF 21048if ac_fn_c_try_link "$LINENO"; then : 21049 21050 use_pthreads=yes 21051 21052fi 21053rm -f core conftest.err conftest.$ac_objext \ 21054 conftest$ac_exeext conftest.$ac_ext 21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5 21056$as_echo "$use_pthreads" >&6; } 21057 # Restore the compiler flags and libraries 21058 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 21059 21060 # Do futher testing if we have pthread support... 21061 if test x$use_pthreads = xyes; then 21062 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h 21063 21064 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags" 21065 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib" 21066 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" 21067 SDL_LIBS="$SDL_LIBS $pthread_lib" 21068 21069 # Save the original compiler flags and libraries 21070 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" 21071 # Add the pthread compiler flags and libraries 21072 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" 21073 21074 # Check to see if recursive mutexes are available 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5 21076$as_echo_n "checking for recursive mutexes... " >&6; } 21077 has_recursive_mutexes=no 21078 if test x$has_recursive_mutexes = xno; then 21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21080/* end confdefs.h. */ 21081 21082 #include <pthread.h> 21083 21084int 21085main () 21086{ 21087 21088 pthread_mutexattr_t attr; 21089 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 21090 21091 ; 21092 return 0; 21093} 21094_ACEOF 21095if ac_fn_c_try_compile "$LINENO"; then : 21096 21097 has_recursive_mutexes=yes 21098 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h 21099 21100 21101fi 21102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21103 fi 21104 if test x$has_recursive_mutexes = xno; then 21105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21106/* end confdefs.h. */ 21107 21108 #include <pthread.h> 21109 21110int 21111main () 21112{ 21113 21114 pthread_mutexattr_t attr; 21115 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); 21116 21117 ; 21118 return 0; 21119} 21120_ACEOF 21121if ac_fn_c_try_compile "$LINENO"; then : 21122 21123 has_recursive_mutexes=yes 21124 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h 21125 21126 21127fi 21128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21129 fi 21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5 21131$as_echo "$has_recursive_mutexes" >&6; } 21132 21133 # Check to see if pthread semaphore support is missing 21134 if test x$enable_pthread_sem = xyes; then 21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5 21136$as_echo_n "checking for pthread semaphores... " >&6; } 21137 have_pthread_sem=no 21138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21139/* end confdefs.h. */ 21140 21141 #include <pthread.h> 21142 #include <semaphore.h> 21143 21144int 21145main () 21146{ 21147 21148 21149 ; 21150 return 0; 21151} 21152_ACEOF 21153if ac_fn_c_try_compile "$LINENO"; then : 21154 21155 have_pthread_sem=yes 21156 21157fi 21158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5 21160$as_echo "$have_pthread_sem" >&6; } 21161 fi 21162 21163 # Restore the compiler flags and libraries 21164 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" 21165 21166 # Basic thread creation functions 21167 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" 21168 21169 # Semaphores 21170 # We can fake these with mutexes and condition variables if necessary 21171 if test x$have_pthread_sem = xyes; then 21172 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c" 21173 else 21174 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c" 21175 fi 21176 21177 # Mutexes 21178 # We can fake these with semaphores if necessary 21179 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c" 21180 21181 # Condition variables 21182 # We can fake these with semaphores and mutexes if necessary 21183 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c" 21184 21185 have_threads=yes 21186 else 21187 CheckPTH 21188 fi 21189 fi 21190} 21191 21192CheckWIN32() 21193{ 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Win32 compiler" >&5 21195$as_echo_n "checking Win32 compiler... " >&6; } 21196 have_win32_gcc=no 21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21198/* end confdefs.h. */ 21199 21200 #include <windows.h> 21201 21202int 21203main () 21204{ 21205 21206 21207 ; 21208 return 0; 21209} 21210_ACEOF 21211if ac_fn_c_try_compile "$LINENO"; then : 21212 21213 have_win32_gcc=yes 21214 21215fi 21216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5 21218$as_echo "$have_win32_gcc" >&6; } 21219 if test x$have_win32_gcc != xyes; then 21220 as_fn_error $? " 21221*** Your compiler ($CC) does not produce Win32 executables! 21222 " "$LINENO" 5 21223 fi 21224 21225 # Check whether --enable-stdio-redirect was given. 21226if test "${enable_stdio_redirect+set}" = set; then : 21227 enableval=$enable_stdio_redirect; 21228else 21229 enable_stdio_redirect=yes 21230fi 21231 21232 if test x$enable_stdio_redirect != xyes; then 21233 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT" 21234 fi 21235 21236 if test x$enable_video = xyes; then 21237 $as_echo "#define SDL_VIDEO_DRIVER_WINDIB 1" >>confdefs.h 21238 21239 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c" 21240 SOURCES="$SOURCES $srcdir/src/video/windib/*.c" 21241 have_video=yes 21242 fi 21243} 21244 21245CheckDIRECTX() 21246{ 21247 # Check whether --enable-directx was given. 21248if test "${enable_directx+set}" = set; then : 21249 enableval=$enable_directx; 21250else 21251 enable_directx=yes 21252fi 21253 21254 if test x$enable_directx = xyes; then 21255 have_directx=no 21256 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default" 21257if test "x$ac_cv_header_ddraw_h" = xyes; then : 21258 have_ddraw=yes 21259fi 21260 21261 21262 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default" 21263if test "x$ac_cv_header_dsound_h" = xyes; then : 21264 have_dsound=yes 21265fi 21266 21267 21268 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default" 21269if test "x$ac_cv_header_dinput_h" = xyes; then : 21270 use_dinput=yes 21271fi 21272 21273 21274 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then 21275 have_directx=yes 21276 fi 21277 if test x$enable_video = xyes -a x$have_directx = xyes; then 21278 $as_echo "#define SDL_VIDEO_DRIVER_DDRAW 1" >>confdefs.h 21279 21280 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c" 21281 have_video=yes 21282 fi 21283 fi 21284} 21285 21286CheckDLOPEN() 21287{ 21288 # Check whether --enable-sdl-dlopen was given. 21289if test "${enable_sdl_dlopen+set}" = set; then : 21290 enableval=$enable_sdl_dlopen; 21291else 21292 enable_sdl_dlopen=yes 21293fi 21294 21295 if test x$enable_sdl_dlopen = xyes; then 21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5 21297$as_echo_n "checking for dlopen... " >&6; } 21298 have_dlopen=no 21299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21300/* end confdefs.h. */ 21301 21302 #include <dlfcn.h> 21303 21304int 21305main () 21306{ 21307 21308 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020 21309 #error Use dlcompat for Mac OS X 10.2 compatibility 21310 #endif 21311 21312 ; 21313 return 0; 21314} 21315_ACEOF 21316if ac_fn_c_try_compile "$LINENO"; then : 21317 21318 have_dlopen=yes 21319 21320fi 21321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5 21323$as_echo "$have_dlopen" >&6; } 21324 21325 if test x$have_dlopen = xyes; then 21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 21327$as_echo_n "checking for dlopen in -lc... " >&6; } 21328if ${ac_cv_lib_c_dlopen+:} false; then : 21329 $as_echo_n "(cached) " >&6 21330else 21331 ac_check_lib_save_LIBS=$LIBS 21332LIBS="-lc $LIBS" 21333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21334/* end confdefs.h. */ 21335 21336/* Override any GCC internal prototype to avoid an error. 21337 Use char because int might match the return type of a GCC 21338 builtin and then its argument prototype would still apply. */ 21339#ifdef __cplusplus 21340extern "C" 21341#endif 21342char dlopen (); 21343int 21344main () 21345{ 21346return dlopen (); 21347 ; 21348 return 0; 21349} 21350_ACEOF 21351if ac_fn_c_try_link "$LINENO"; then : 21352 ac_cv_lib_c_dlopen=yes 21353else 21354 ac_cv_lib_c_dlopen=no 21355fi 21356rm -f core conftest.err conftest.$ac_objext \ 21357 conftest$ac_exeext conftest.$ac_ext 21358LIBS=$ac_check_lib_save_LIBS 21359fi 21360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 21361$as_echo "$ac_cv_lib_c_dlopen" >&6; } 21362if test "x$ac_cv_lib_c_dlopen" = xyes; then : 21363 EXTRA_LDFLAGS="$EXTRA_LDFLAGS" 21364else 21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 21366$as_echo_n "checking for dlopen in -ldl... " >&6; } 21367if ${ac_cv_lib_dl_dlopen+:} false; then : 21368 $as_echo_n "(cached) " >&6 21369else 21370 ac_check_lib_save_LIBS=$LIBS 21371LIBS="-ldl $LIBS" 21372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21373/* end confdefs.h. */ 21374 21375/* Override any GCC internal prototype to avoid an error. 21376 Use char because int might match the return type of a GCC 21377 builtin and then its argument prototype would still apply. */ 21378#ifdef __cplusplus 21379extern "C" 21380#endif 21381char dlopen (); 21382int 21383main () 21384{ 21385return dlopen (); 21386 ; 21387 return 0; 21388} 21389_ACEOF 21390if ac_fn_c_try_link "$LINENO"; then : 21391 ac_cv_lib_dl_dlopen=yes 21392else 21393 ac_cv_lib_dl_dlopen=no 21394fi 21395rm -f core conftest.err conftest.$ac_objext \ 21396 conftest$ac_exeext conftest.$ac_ext 21397LIBS=$ac_check_lib_save_LIBS 21398fi 21399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 21400$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 21401if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 21402 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl" 21403else 21404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5 21405$as_echo_n "checking for dlopen in -lltdl... " >&6; } 21406if ${ac_cv_lib_ltdl_dlopen+:} false; then : 21407 $as_echo_n "(cached) " >&6 21408else 21409 ac_check_lib_save_LIBS=$LIBS 21410LIBS="-lltdl $LIBS" 21411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21412/* end confdefs.h. */ 21413 21414/* Override any GCC internal prototype to avoid an error. 21415 Use char because int might match the return type of a GCC 21416 builtin and then its argument prototype would still apply. */ 21417#ifdef __cplusplus 21418extern "C" 21419#endif 21420char dlopen (); 21421int 21422main () 21423{ 21424return dlopen (); 21425 ; 21426 return 0; 21427} 21428_ACEOF 21429if ac_fn_c_try_link "$LINENO"; then : 21430 ac_cv_lib_ltdl_dlopen=yes 21431else 21432 ac_cv_lib_ltdl_dlopen=no 21433fi 21434rm -f core conftest.err conftest.$ac_objext \ 21435 conftest$ac_exeext conftest.$ac_ext 21436LIBS=$ac_check_lib_save_LIBS 21437fi 21438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5 21439$as_echo "$ac_cv_lib_ltdl_dlopen" >&6; } 21440if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then : 21441 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl" 21442fi 21443 21444fi 21445 21446fi 21447 21448 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h 21449 21450 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" 21451 have_loadso=yes 21452 fi 21453 fi 21454} 21455 21456CheckAtariLdg() 21457{ 21458 # Check whether --enable-atari-ldg was given. 21459if test "${enable_atari_ldg+set}" = set; then : 21460 enableval=$enable_atari_ldg; 21461else 21462 enable_atari_ldg=yes 21463fi 21464 21465 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then 21466 ac_fn_c_check_header_mongrel "$LINENO" "ldg.h" "ac_cv_header_ldg_h" "$ac_includes_default" 21467if test "x$ac_cv_header_ldg_h" = xyes; then : 21468 have_ldg_hdr=yes 21469fi 21470 21471 21472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldg_open in -lldg" >&5 21473$as_echo_n "checking for ldg_open in -lldg... " >&6; } 21474if ${ac_cv_lib_ldg_ldg_open+:} false; then : 21475 $as_echo_n "(cached) " >&6 21476else 21477 ac_check_lib_save_LIBS=$LIBS 21478LIBS="-lldg -lgem $LIBS" 21479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21480/* end confdefs.h. */ 21481 21482/* Override any GCC internal prototype to avoid an error. 21483 Use char because int might match the return type of a GCC 21484 builtin and then its argument prototype would still apply. */ 21485#ifdef __cplusplus 21486extern "C" 21487#endif 21488char ldg_open (); 21489int 21490main () 21491{ 21492return ldg_open (); 21493 ; 21494 return 0; 21495} 21496_ACEOF 21497if ac_fn_c_try_link "$LINENO"; then : 21498 ac_cv_lib_ldg_ldg_open=yes 21499else 21500 ac_cv_lib_ldg_ldg_open=no 21501fi 21502rm -f core conftest.err conftest.$ac_objext \ 21503 conftest$ac_exeext conftest.$ac_ext 21504LIBS=$ac_check_lib_save_LIBS 21505fi 21506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldg_ldg_open" >&5 21507$as_echo "$ac_cv_lib_ldg_ldg_open" >&6; } 21508if test "x$ac_cv_lib_ldg_ldg_open" = xyes; then : 21509 have_ldg_lib=yes 21510else 21511 have_ldg_lib=no 21512fi 21513 21514 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then 21515 $as_echo "#define SDL_LOADSO_LDG 1" >>confdefs.h 21516 21517 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c" 21518 SDL_LIBS="$SDL_LIBS -lldg -lgem" 21519 have_loadso=yes 21520 fi 21521 fi 21522} 21523 21524CheckUSBHID() 21525{ 21526 if test x$enable_joystick = xyes; then 21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5 21528$as_echo_n "checking for hid_init in -lusbhid... " >&6; } 21529if ${ac_cv_lib_usbhid_hid_init+:} false; then : 21530 $as_echo_n "(cached) " >&6 21531else 21532 ac_check_lib_save_LIBS=$LIBS 21533LIBS="-lusbhid $LIBS" 21534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21535/* end confdefs.h. */ 21536 21537/* Override any GCC internal prototype to avoid an error. 21538 Use char because int might match the return type of a GCC 21539 builtin and then its argument prototype would still apply. */ 21540#ifdef __cplusplus 21541extern "C" 21542#endif 21543char hid_init (); 21544int 21545main () 21546{ 21547return hid_init (); 21548 ; 21549 return 0; 21550} 21551_ACEOF 21552if ac_fn_c_try_link "$LINENO"; then : 21553 ac_cv_lib_usbhid_hid_init=yes 21554else 21555 ac_cv_lib_usbhid_hid_init=no 21556fi 21557rm -f core conftest.err conftest.$ac_objext \ 21558 conftest$ac_exeext conftest.$ac_ext 21559LIBS=$ac_check_lib_save_LIBS 21560fi 21561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5 21562$as_echo "$ac_cv_lib_usbhid_hid_init" >&6; } 21563if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then : 21564 have_libusbhid=yes 21565fi 21566 21567 if test x$have_libusbhid = xyes; then 21568 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default" 21569if test "x$ac_cv_header_usbhid_h" = xyes; then : 21570 USB_CFLAGS="-DHAVE_USBHID_H" 21571fi 21572 21573 21574 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default" 21575if test "x$ac_cv_header_libusbhid_h" = xyes; then : 21576 USB_CFLAGS="-DHAVE_LIBUSBHID_H" 21577fi 21578 21579 21580 USB_LIBS="$USB_LIBS -lusbhid" 21581 else 21582 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" 21583if test "x$ac_cv_header_usb_h" = xyes; then : 21584 USB_CFLAGS="-DHAVE_USB_H" 21585fi 21586 21587 21588 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" 21589if test "x$ac_cv_header_libusb_h" = xyes; then : 21590 USB_CFLAGS="-DHAVE_LIBUSB_H" 21591fi 21592 21593 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5 21595$as_echo_n "checking for hid_init in -lusb... " >&6; } 21596if ${ac_cv_lib_usb_hid_init+:} false; then : 21597 $as_echo_n "(cached) " >&6 21598else 21599 ac_check_lib_save_LIBS=$LIBS 21600LIBS="-lusb $LIBS" 21601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21602/* end confdefs.h. */ 21603 21604/* Override any GCC internal prototype to avoid an error. 21605 Use char because int might match the return type of a GCC 21606 builtin and then its argument prototype would still apply. */ 21607#ifdef __cplusplus 21608extern "C" 21609#endif 21610char hid_init (); 21611int 21612main () 21613{ 21614return hid_init (); 21615 ; 21616 return 0; 21617} 21618_ACEOF 21619if ac_fn_c_try_link "$LINENO"; then : 21620 ac_cv_lib_usb_hid_init=yes 21621else 21622 ac_cv_lib_usb_hid_init=no 21623fi 21624rm -f core conftest.err conftest.$ac_objext \ 21625 conftest$ac_exeext conftest.$ac_ext 21626LIBS=$ac_check_lib_save_LIBS 21627fi 21628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5 21629$as_echo "$ac_cv_lib_usb_hid_init" >&6; } 21630if test "x$ac_cv_lib_usb_hid_init" = xyes; then : 21631 USB_LIBS="$USB_LIBS -lusb" 21632fi 21633 21634 fi 21635 21636 save_CFLAGS="$CFLAGS" 21637 CFLAGS="$CFLAGS $USB_CFLAGS" 21638 21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5 21640$as_echo_n "checking for usbhid... " >&6; } 21641 have_usbhid=no 21642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21643/* end confdefs.h. */ 21644 21645 #include <sys/types.h> 21646 #if defined(HAVE_USB_H) 21647 #include <usb.h> 21648 #endif 21649 #ifdef __DragonFly__ 21650 # include <bus/usb/usb.h> 21651 # include <bus/usb/usbhid.h> 21652 #else 21653 # include <dev/usb/usb.h> 21654 # include <dev/usb/usbhid.h> 21655 #endif 21656 #if defined(HAVE_USBHID_H) 21657 #include <usbhid.h> 21658 #elif defined(HAVE_LIBUSB_H) 21659 #include <libusb.h> 21660 #elif defined(HAVE_LIBUSBHID_H) 21661 #include <libusbhid.h> 21662 #endif 21663 21664int 21665main () 21666{ 21667 21668 struct report_desc *repdesc; 21669 struct usb_ctl_report *repbuf; 21670 hid_kind_t hidkind; 21671 21672 ; 21673 return 0; 21674} 21675_ACEOF 21676if ac_fn_c_try_compile "$LINENO"; then : 21677 21678 have_usbhid=yes 21679 21680fi 21681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5 21683$as_echo "$have_usbhid" >&6; } 21684 21685 if test x$have_usbhid = xyes; then 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5 21687$as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; } 21688 have_usbhid_ucr_data=no 21689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21690/* end confdefs.h. */ 21691 21692 #include <sys/types.h> 21693 #if defined(HAVE_USB_H) 21694 #include <usb.h> 21695 #endif 21696 #ifdef __DragonFly__ 21697 # include <bus/usb/usb.h> 21698 # include <bus/usb/usbhid.h> 21699 #else 21700 # include <dev/usb/usb.h> 21701 # include <dev/usb/usbhid.h> 21702 #endif 21703 #if defined(HAVE_USBHID_H) 21704 #include <usbhid.h> 21705 #elif defined(HAVE_LIBUSB_H) 21706 #include <libusb.h> 21707 #elif defined(HAVE_LIBUSBHID_H) 21708 #include <libusbhid.h> 21709 #endif 21710 21711int 21712main () 21713{ 21714 21715 struct usb_ctl_report buf; 21716 if (buf.ucr_data) { } 21717 21718 ; 21719 return 0; 21720} 21721_ACEOF 21722if ac_fn_c_try_compile "$LINENO"; then : 21723 21724 have_usbhid_ucr_data=yes 21725 21726fi 21727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21728 if test x$have_usbhid_ucr_data = xyes; then 21729 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA" 21730 fi 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5 21732$as_echo "$have_usbhid_ucr_data" >&6; } 21733 21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5 21735$as_echo_n "checking for new usbhid API... " >&6; } 21736 have_usbhid_new=no 21737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21738/* end confdefs.h. */ 21739 21740 #include <sys/types.h> 21741 #if defined(HAVE_USB_H) 21742 #include <usb.h> 21743 #endif 21744 #ifdef __DragonFly__ 21745 #include <bus/usb/usb.h> 21746 #include <bus/usb/usbhid.h> 21747 #else 21748 #include <dev/usb/usb.h> 21749 #include <dev/usb/usbhid.h> 21750 #endif 21751 #if defined(HAVE_USBHID_H) 21752 #include <usbhid.h> 21753 #elif defined(HAVE_LIBUSB_H) 21754 #include <libusb.h> 21755 #elif defined(HAVE_LIBUSBHID_H) 21756 #include <libusbhid.h> 21757 #endif 21758 21759int 21760main () 21761{ 21762 21763 report_desc_t d; 21764 hid_start_parse(d, 1, 1); 21765 21766 ; 21767 return 0; 21768} 21769_ACEOF 21770if ac_fn_c_try_compile "$LINENO"; then : 21771 21772 have_usbhid_new=yes 21773 21774fi 21775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21776 if test x$have_usbhid_new = xyes; then 21777 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW" 21778 fi 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5 21780$as_echo "$have_usbhid_new" >&6; } 21781 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5 21783$as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; } 21784 have_machine_joystick=no 21785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21786/* end confdefs.h. */ 21787 21788 #include <machine/joystick.h> 21789 21790int 21791main () 21792{ 21793 21794 struct joystick t; 21795 21796 ; 21797 return 0; 21798} 21799_ACEOF 21800if ac_fn_c_try_compile "$LINENO"; then : 21801 21802 have_machine_joystick=yes 21803 21804fi 21805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21806 if test x$have_machine_joystick = xyes; then 21807 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h 21808 21809 fi 21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5 21811$as_echo "$have_machine_joystick" >&6; } 21812 21813 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h 21814 21815 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c" 21816 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS" 21817 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS" 21818 have_joystick=yes 21819 fi 21820 CFLAGS="$save_CFLAGS" 21821 fi 21822} 21823 21824CheckClockGettime() 21825{ 21826 # Check whether --enable-clock_gettime was given. 21827if test "${enable_clock_gettime+set}" = set; then : 21828 enableval=$enable_clock_gettime; 21829else 21830 enable_clock_gettime=no 21831fi 21832 21833 if test x$enable_clock_gettime = xyes; then 21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 21835$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 21836if ${ac_cv_lib_rt_clock_gettime+:} false; then : 21837 $as_echo_n "(cached) " >&6 21838else 21839 ac_check_lib_save_LIBS=$LIBS 21840LIBS="-lrt $LIBS" 21841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21842/* end confdefs.h. */ 21843 21844/* Override any GCC internal prototype to avoid an error. 21845 Use char because int might match the return type of a GCC 21846 builtin and then its argument prototype would still apply. */ 21847#ifdef __cplusplus 21848extern "C" 21849#endif 21850char clock_gettime (); 21851int 21852main () 21853{ 21854return clock_gettime (); 21855 ; 21856 return 0; 21857} 21858_ACEOF 21859if ac_fn_c_try_link "$LINENO"; then : 21860 ac_cv_lib_rt_clock_gettime=yes 21861else 21862 ac_cv_lib_rt_clock_gettime=no 21863fi 21864rm -f core conftest.err conftest.$ac_objext \ 21865 conftest$ac_exeext conftest.$ac_ext 21866LIBS=$ac_check_lib_save_LIBS 21867fi 21868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 21869$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 21870if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 21871 have_clock_gettime=yes 21872fi 21873 21874 if test x$have_clock_gettime = xyes; then 21875 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 21876 21877 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt" 21878 fi 21879 fi 21880} 21881 21882CheckLinuxVersion() 21883{ 21884 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 21885if test "x$ac_cv_header_linux_version_h" = xyes; then : 21886 have_linux_version_h=yes 21887fi 21888 21889 21890 if test x$have_linux_version_h = xyes; then 21891 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H" 21892 fi 21893} 21894 21895CheckRPATH() 21896{ 21897 # Check whether --enable-rpath was given. 21898if test "${enable_rpath+set}" = set; then : 21899 enableval=$enable_rpath; 21900else 21901 enable_rpath=yes 21902fi 21903 21904} 21905 21906case "$host" in 21907 arm-*-elf*) # FIXME: Can we get more specific for iPodLinux? 21908 ARCH=linux 21909 CheckDummyVideo 21910 CheckIPod 21911 # Set up files for the timer library 21912 if test x$enable_timers = xyes; then 21913 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 21914 21915 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 21916 have_timers=yes 21917 fi 21918 ;; 21919 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*) 21920 case "$host" in 21921 *-*-linux*) ARCH=linux ;; 21922 *-*-uclinux*) ARCH=linux ;; 21923 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;; 21924 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;; 21925 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;; 21926 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants 21927 *-*-bsdi*) ARCH=bsdi ;; 21928 *-*-freebsd*) ARCH=freebsd ;; 21929 *-*-dragonfly*) ARCH=freebsd ;; 21930 *-*-netbsd*) ARCH=netbsd ;; 21931 *-*-openbsd*) ARCH=openbsd ;; 21932 *-*-sysv5*) ARCH=sysv5 ;; 21933 *-*-solaris*) ARCH=solaris ;; 21934 *-*-hpux*) ARCH=hpux ;; 21935 *-*-irix*) ARCH=irix ;; 21936 *-*-aix*) ARCH=aix ;; 21937 *-*-osf*) ARCH=osf ;; 21938 esac 21939 CheckVisibilityHidden 21940 CheckDummyVideo 21941 CheckDiskAudio 21942 CheckDummyAudio 21943 CheckDLOPEN 21944 CheckNASM 21945 CheckAltivec 21946 CheckOSS 21947 CheckDMEDIA 21948 CheckMME 21949 CheckALSA 21950 CheckARTSC 21951 CheckESD 21952 CheckPulseAudio 21953 CheckNAS 21954 CheckX11 21955 CheckNANOX 21956 CheckFBCON 21957 CheckDirectFB 21958 CheckPS2GS 21959 CheckPS3 21960 CheckGGI 21961 CheckSVGA 21962 CheckVGL 21963 CheckWscons 21964 CheckAAlib 21965 CheckCaca 21966 CheckQtopia 21967 CheckPicoGUI 21968 CheckOpenGLX11 21969 CheckInputEvents 21970 CheckTslib 21971 CheckUSBHID 21972 CheckPTHREAD 21973 CheckClockGettime 21974 CheckLinuxVersion 21975 CheckRPATH 21976 # Set up files for the audio library 21977 if test x$enable_audio = xyes; then 21978 case $ARCH in 21979 sysv5|solaris|hpux) 21980 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h 21981 21982 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" 21983 have_audio=yes 21984 ;; 21985 netbsd|openbsd) 21986 $as_echo "#define SDL_AUDIO_DRIVER_BSD 1" >>confdefs.h 21987 21988 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c" 21989 have_audio=yes 21990 ;; 21991 aix) 21992 $as_echo "#define SDL_AUDIO_DRIVER_PAUD 1" >>confdefs.h 21993 21994 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" 21995 have_audio=yes 21996 ;; 21997 esac 21998 fi 21999 # Set up files for the joystick library 22000 if test x$enable_joystick = xyes; then 22001 case $ARCH in 22002 linux) 22003 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h 22004 22005 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c" 22006 have_joystick=yes 22007 ;; 22008 esac 22009 fi 22010 # Set up files for the cdrom library 22011 if test x$enable_cdrom = xyes; then 22012 case $ARCH in 22013 linux|solaris) 22014 $as_echo "#define SDL_CDROM_LINUX 1" >>confdefs.h 22015 22016 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c" 22017 have_cdrom=yes 22018 ;; 22019 *freebsd*) 22020 $as_echo "#define SDL_CDROM_FREEBSD 1" >>confdefs.h 22021 22022 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c" 22023 have_cdrom=yes 22024 ;; 22025 *openbsd*|*netbsd*) 22026 $as_echo "#define SDL_CDROM_OPENBSD 1" >>confdefs.h 22027 22028 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c" 22029 have_cdrom=yes 22030 ;; 22031 bsdi) 22032 $as_echo "#define SDL_CDROM_BSDI 1" >>confdefs.h 22033 22034 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c" 22035 have_cdrom=yes 22036 ;; 22037 aix) 22038 $as_echo "#define SDL_CDROM_AIX 1" >>confdefs.h 22039 22040 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c" 22041 have_cdrom=yes 22042 ;; 22043 osf) 22044 $as_echo "#define SDL_CDROM_OSF 1" >>confdefs.h 22045 22046 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c" 22047 have_cdrom=yes 22048 ;; 22049 esac 22050 fi 22051 # Set up files for the thread library 22052 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then 22053 $as_echo "#define SDL_THREAD_SPROC 1" >>confdefs.h 22054 22055 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c" 22056 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" 22057 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" 22058 have_threads=yes 22059 fi 22060 # Set up files for the timer library 22061 if test x$enable_timers = xyes; then 22062 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 22063 22064 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 22065 have_timers=yes 22066 fi 22067 ;; 22068 *-*-qnx*) 22069 ARCH=qnx 22070 CheckDummyVideo 22071 CheckDiskAudio 22072 CheckDummyAudio 22073 # CheckNASM 22074 CheckDLOPEN 22075 CheckNAS 22076 CheckPHOTON 22077 CheckX11 22078 CheckOpenGLX11 22079 CheckPTHREAD 22080 # Set up files for the audio library 22081 if test x$enable_audio = xyes; then 22082 $as_echo "#define SDL_AUDIO_DRIVER_QNXNTO 1" >>confdefs.h 22083 22084 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c" 22085 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound" 22086 have_audio=yes 22087 fi 22088 # Set up files for the cdrom library 22089 if test x$enable_cdrom = xyes; then 22090 $as_echo "#define SDL_CDROM_QNX 1" >>confdefs.h 22091 22092 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c" 22093 have_cdrom=yes 22094 fi 22095 # Set up files for the timer library 22096 if test x$enable_timers = xyes; then 22097 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 22098 22099 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 22100 have_timers=yes 22101 fi 22102 ;; 22103 *-*-mingw32*) 22104 ARCH=win32 22105 if test "$build" != "$host"; then # cross-compiling 22106 # Default cross-compile location 22107 ac_default_prefix=/usr/local/cross-tools/i386-mingw32 22108 else 22109 # Look for the location of the tools and install there 22110 if test "$BUILD_PREFIX" != ""; then 22111 ac_default_prefix=$BUILD_PREFIX 22112 fi 22113 fi 22114 CheckDummyVideo 22115 CheckDiskAudio 22116 CheckDummyAudio 22117 CheckWIN32 22118 CheckWIN32GL 22119 CheckDIRECTX 22120 CheckNASM 22121 # Set up files for the audio library 22122 if test x$enable_audio = xyes; then 22123 $as_echo "#define SDL_AUDIO_DRIVER_WAVEOUT 1" >>confdefs.h 22124 22125 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" 22126 if test x$have_directx = xyes; then 22127 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h 22128 22129 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c" 22130 fi 22131 have_audio=yes 22132 fi 22133 # Set up files for the joystick library 22134 if test x$enable_joystick = xyes; then 22135 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h 22136 22137 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c" 22138 have_joystick=yes 22139 fi 22140 # Set up files for the cdrom library 22141 if test x$enable_cdrom = xyes; then 22142 $as_echo "#define SDL_CDROM_WIN32 1" >>confdefs.h 22143 22144 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c" 22145 have_cdrom=yes 22146 fi 22147 # Set up files for the thread library 22148 if test x$enable_threads = xyes; then 22149 $as_echo "#define SDL_THREAD_WIN32 1" >>confdefs.h 22150 22151 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c" 22152 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c" 22153 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c" 22154 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" 22155 have_threads=yes 22156 fi 22157 # Set up files for the timer library 22158 if test x$enable_timers = xyes; then 22159 $as_echo "#define SDL_TIMER_WIN32 1" >>confdefs.h 22160 22161 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c" 22162 have_timers=yes 22163 fi 22164 # Set up files for the shared object loading library 22165 if test x$enable_loadso = xyes; then 22166 $as_echo "#define SDL_LOADSO_WIN32 1" >>confdefs.h 22167 22168 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c" 22169 have_loadso=yes 22170 fi 22171 # Set up the system libraries we need 22172 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm" 22173 if test x$have_directx = xyes; then 22174 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid" 22175 fi 22176 # The Win32 platform requires special setup 22177 SOURCES="$SOURCES $srcdir/src/main/win32/*.rc" 22178 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" 22179 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" 22180 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" 22181 ;; 22182 *-*-cygwin*) 22183 ARCH=cygwin 22184 CheckDummyVideo 22185 CheckDiskAudio 22186 CheckDummyAudio 22187 CheckDLOPEN 22188 CheckNASM 22189 CheckOSS 22190 CheckARTSC 22191 CheckESD 22192 CheckNAS 22193 CheckX11 22194 CheckGGI 22195 CheckAAlib 22196 CheckCaca 22197 CheckOpenGLX11 22198 CheckPTHREAD 22199 # Set up files for the joystick library 22200 if test x$enable_joystick = xyes; then 22201 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h 22202 22203 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c" 22204 have_joystick=yes 22205 fi 22206 # Set up files for the cdrom library 22207 if test x$enable_cdrom = xyes; then 22208 $as_echo "#define SDL_CDROM_WIN32 1" >>confdefs.h 22209 22210 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c" 22211 have_cdrom=yes 22212 fi 22213 # Set up files for the timer library 22214 if test x$enable_timers = xyes; then 22215 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 22216 22217 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 22218 have_timers=yes 22219 fi 22220 # Set up the system libraries we need 22221 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm" 22222 ;; 22223 *-wince*) 22224 ARCH=win32 22225 CheckDummyVideo 22226 CheckDiskAudio 22227 CheckDummyAudio 22228 CheckWIN32 22229 CheckNASM 22230 SOURCES="$SOURCES $srcdir/src/video/gapi/*.c" 22231 EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420" 22232 if test x$enable_audio = xyes; then 22233 $as_echo "#define SDL_AUDIO_DRIVER_WAVEOUT 1" >>confdefs.h 22234 22235 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c" 22236 have_audio=yes 22237 fi 22238 # Set up files for the thread library 22239 if test x$enable_threads = xyes; then 22240 $as_echo "#define SDL_THREAD_WIN32 1" >>confdefs.h 22241 22242 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c" 22243 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c" 22244 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c" 22245 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" 22246 have_threads=yes 22247 fi 22248 # Set up files for the timer library 22249 if test x$enable_timers = xyes; then 22250 $as_echo "#define SDL_TIMER_WINCE 1" >>confdefs.h 22251 22252 SOURCES="$SOURCES $srcdir/src/timer/wince/*.c" 22253 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer" 22254 have_timers=yes 22255 fi 22256 # Set up files for the shared object loading library 22257 if test x$enable_loadso = xyes; then 22258 $as_echo "#define SDL_LOADSO_WIN32 1" >>confdefs.h 22259 22260 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c" 22261 have_loadso=yes 22262 fi 22263 # Set up the system libraries we need 22264 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl" 22265 # The Win32 platform requires special setup 22266 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" 22267 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420" 22268 SDL_LIBS="-lSDLmain $SDL_LIBS" 22269 ;; 22270 *-*-beos* | *-*-haiku*) 22271 ARCH=beos 22272 ac_default_prefix=/boot/develop/tools/gnupro 22273 CheckDummyVideo 22274 CheckDiskAudio 22275 CheckDummyAudio 22276 CheckNASM 22277 CheckBWINDOW 22278 CheckBeGL 22279 # Set up files for the audio library 22280 if test x$enable_audio = xyes; then 22281 $as_echo "#define SDL_AUDIO_DRIVER_BAUDIO 1" >>confdefs.h 22282 22283 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc" 22284 have_audio=yes 22285 fi 22286 # Set up files for the joystick library 22287 if test x$enable_joystick = xyes; then 22288 $as_echo "#define SDL_JOYSTICK_BEOS 1" >>confdefs.h 22289 22290 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc" 22291 have_joystick=yes 22292 fi 22293 # Set up files for the cdrom library 22294 if test x$enable_cdrom = xyes; then 22295 $as_echo "#define SDL_CDROM_BEOS 1" >>confdefs.h 22296 22297 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc" 22298 have_cdrom=yes 22299 fi 22300 # Set up files for the thread library 22301 if test x$enable_threads = xyes; then 22302 $as_echo "#define SDL_THREAD_BEOS 1" >>confdefs.h 22303 22304 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c" 22305 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c" 22306 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c" 22307 have_threads=yes 22308 fi 22309 # Set up files for the timer library 22310 if test x$enable_timers = xyes; then 22311 $as_echo "#define SDL_TIMER_BEOS 1" >>confdefs.h 22312 22313 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c" 22314 have_timers=yes 22315 fi 22316 # Set up files for the shared object loading library 22317 if test x$enable_loadso = xyes; then 22318 case "$host" in 22319 *-*-beos*) 22320 $as_echo "#define SDL_LOADSO_BEOS 1" >>confdefs.h 22321 22322 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c" 22323 ;; 22324 *-*-haiku*) 22325 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h 22326 22327 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c" 22328 ;; 22329 esac 22330 have_loadso=yes 22331 fi 22332 # The BeOS platform requires special setup. 22333 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES" 22334 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding" 22335 ;; 22336 *-*-darwin* ) 22337 # This could be either full "Mac OS X", or plain "Darwin" which is 22338 # just the OS X kernel sans upper layers like Carbon and Cocoa. 22339 # Next line is broken, and a few files below require Mac OS X (full) 22340 ARCH=macosx 22341 22342 # Mac OS X builds with both the Carbon and OSX APIs at the moment 22343 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON" 22344 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX" 22345 22346 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point 22347 # is -lm which is not needed under Mac OS X. But for some reasons it 22348 # also tends to contain spurious -L switches, which we don't want to 22349 # use here or in sdl-config. Hence we reset it. 22350 EXTRA_LDFLAGS="" 22351 22352 CheckVisibilityHidden 22353 CheckDummyVideo 22354 CheckDiskAudio 22355 CheckDummyAudio 22356 CheckDLOPEN 22357 CheckNASM 22358 22359 # Set up files for the shared object loading library 22360 # (this needs to be done before the dynamic X11 check) 22361 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then 22362 $as_echo "#define SDL_LOADSO_DLCOMPAT 1" >>confdefs.h 22363 22364 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c" 22365 have_loadso=yes 22366 fi 22367 22368 CheckCOCOA 22369 CheckCARBON 22370 CheckX11 22371 CheckMacGL 22372 CheckOpenGLX11 22373 CheckPTHREAD 22374 CheckAltivec 22375 22376 # Need this or things might misbuild on a G3. 22377 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL" 22378 22379 # Set up files for the audio library 22380 if test x$enable_audio = xyes; then 22381 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h 22382 22383 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c" 22384 have_audio=yes 22385 fi 22386 # Set up files for the joystick library 22387 if test x$enable_joystick = xyes; then 22388 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h 22389 22390 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c" 22391 have_joystick=yes 22392 need_iokit_framework=yes 22393 fi 22394 # Set up files for the cdrom library 22395 if test x$enable_cdrom = xyes; then 22396 $as_echo "#define SDL_CDROM_MACOSX 1" >>confdefs.h 22397 22398 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c" 22399 have_cdrom=yes 22400 fi 22401 # Set up files for the timer library 22402 if test x$enable_timers = xyes; then 22403 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 22404 22405 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 22406 have_timers=yes 22407 fi 22408 # The Mac OS X platform requires special setup. 22409 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" 22410 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings" 22411 SDL_LIBS="-lSDLmain $SDL_LIBS" 22412 if test x$enable_video_cocoa = xyes; then 22413 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa" 22414 need_iokit_framework=yes 22415 fi 22416 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then 22417 # The Cocoa backend still needs Carbon 22418 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ApplicationServices" 22419 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon" 22420 fi 22421 # If either the audio or CD driver is used, add the AudioUnit framework 22422 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then 22423 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit" 22424 fi 22425 # Some subsystems reference IOKit... 22426 if test x$need_iokit_framework = xyes; then 22427 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit" 22428 fi 22429 ;; 22430 *-*-mint*) 22431 ARCH=mint 22432 CheckDummyVideo 22433 CheckDiskAudio 22434 CheckDummyAudio 22435 CheckAtariBiosEvent 22436 CheckAtariXbiosVideo 22437 CheckAtariGemVideo 22438 CheckAtariAudio 22439 CheckAtariLdg 22440 CheckAtariOSMesa 22441 CheckPTH 22442 # Set up files for the audio library 22443 if test x$enable_threads = xyes -a x$enable_pth = xyes; then 22444 if test x$enable_audio = xyes; then 22445 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h 22446 22447 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c" 22448 have_audio=yes 22449 fi 22450 fi 22451 # Set up files for the joystick library 22452 if test x$enable_joystick = xyes; then 22453 $as_echo "#define SDL_JOYSTICK_MINT 1" >>confdefs.h 22454 22455 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c" 22456 have_joystick=yes 22457 fi 22458 # Set up files for the cdrom library 22459 if test x$enable_cdrom = xyes; then 22460 $as_echo "#define SDL_CDROM_MINT 1" >>confdefs.h 22461 22462 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c" 22463 have_cdrom=yes 22464 fi 22465 # Set up files for the timer library 22466 if test x$enable_timers = xyes; then 22467 if test x$enable_threads = xyes -a x$enable_pth = xyes; then 22468 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h 22469 22470 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c" 22471 else 22472 $as_echo "#define SDL_TIMER_MINT 1" >>confdefs.h 22473 22474 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" 22475 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S" 22476 fi 22477 have_timers=yes 22478 fi 22479 ;; 22480 *-riscos) 22481 ARCH=riscos 22482 CheckOSS 22483 CheckPTHREAD 22484 # Set up files for the video library 22485 if test x$enable_video = xyes; then 22486 $as_echo "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h 22487 22488 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c" 22489 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S" 22490 have_video=yes 22491 fi 22492 # Set up files for the joystick library 22493 if test x$enable_joystick = xyes; then 22494 $as_echo "#define SDL_JOYSTICK_RISCOS 1" >>confdefs.h 22495 22496 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c" 22497 have_joystick=yes 22498 fi 22499 # Set up files for the timer library 22500 if test x$enable_timers = xyes; then 22501 $as_echo "#define SDL_TIMER_RISCOS 1" >>confdefs.h 22502 22503 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c" 22504 have_timers=yes 22505 fi 22506 # The RISC OS platform requires special setup. 22507 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz" 22508 ;; 22509 *) 22510 as_fn_error $? " 22511*** Unsupported host: Please add to configure.in 22512 " "$LINENO" 5 22513 ;; 22514esac 22515 22516# Verify that we have all the platform specific files we need 22517 22518if test x$enable_joystick = xyes; then 22519 if test x$have_joystick != xyes; then 22520 # Wants joystick subsystem, but doesn't have a platform-specific backend... 22521 $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h 22522 22523 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" 22524 fi 22525fi 22526if test x$have_cdrom != xyes; then 22527 if test x$enable_cdrom = xyes; then 22528 $as_echo "#define SDL_CDROM_DISABLED 1" >>confdefs.h 22529 22530 fi 22531 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c" 22532fi 22533if test x$have_threads != xyes; then 22534 if test x$enable_threads = xyes; then 22535 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h 22536 22537 fi 22538 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c" 22539fi 22540if test x$have_timers != xyes; then 22541 if test x$enable_timers = xyes; then 22542 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h 22543 22544 fi 22545 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c" 22546fi 22547if test x$have_loadso != xyes; then 22548 if test x$enable_loadso = xyes; then 22549 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h 22550 22551 fi 22552 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" 22553fi 22554if test x$SDLMAIN_SOURCES = x; then 22555 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" 22556fi 22557 22558OBJECTS=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'` 22559OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'` 22560OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'` 22561OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 22562OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'` 22563OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'` 22564 22565SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.o,g'` 22566SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.o,g'` 22567SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'` 22568 22569# Set runtime shared library paths as needed 22570 22571if test "x$enable_rpath" = "xyes"; then 22572 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then 22573 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}" 22574 fi 22575 if test $ARCH = solaris; then 22576 SDL_RLD_FLAGS="-R\${libdir}" 22577 fi 22578else 22579 SDL_RLD_FLAGS="" 22580fi 22581 22582case "$ARCH" in 22583 macosx) 22584 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then 22585 SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa" 22586 fi 22587 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then 22588 SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon" 22589 fi 22590 # Evil hack to allow static linking on Mac OS X 22591 SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS" 22592 ;; 22593 *) 22594 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS" 22595 ;; 22596esac 22597 22598 22599 22600 22601 22602if test x$enable_shared = xyes; then 22603 ENABLE_SHARED_TRUE= 22604 ENABLE_SHARED_FALSE="#" 22605else 22606 ENABLE_SHARED_TRUE="#" 22607 ENABLE_SHARED_FALSE= 22608fi 22609if test x$enable_static = xyes; then 22610 ENABLE_STATIC_TRUE= 22611 ENABLE_STATIC_FALSE="#" 22612else 22613 ENABLE_STATIC_TRUE="#" 22614 ENABLE_STATIC_FALSE= 22615fi 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633ac_config_files="$ac_config_files Makefile sdl-config SDL.spec SDL.qpg sdl.pc" 22634 22635ac_config_commands="$ac_config_commands default" 22636 22637cat >confcache <<\_ACEOF 22638# This file is a shell script that caches the results of configure 22639# tests run on this system so they can be shared between configure 22640# scripts and configure runs, see configure's option --config-cache. 22641# It is not useful on other systems. If it contains results you don't 22642# want to keep, you may remove or edit it. 22643# 22644# config.status only pays attention to the cache file if you give it 22645# the --recheck option to rerun configure. 22646# 22647# `ac_cv_env_foo' variables (set or unset) will be overridden when 22648# loading this file, other *unset* `ac_cv_foo' will be assigned the 22649# following values. 22650 22651_ACEOF 22652 22653# The following way of writing the cache mishandles newlines in values, 22654# but we know of no workaround that is simple, portable, and efficient. 22655# So, we kill variables containing newlines. 22656# Ultrix sh set writes to stderr and can't be redirected directly, 22657# and sets the high bit in the cache file unless we assign to the vars. 22658( 22659 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22660 eval ac_val=\$$ac_var 22661 case $ac_val in #( 22662 *${as_nl}*) 22663 case $ac_var in #( 22664 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22665$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22666 esac 22667 case $ac_var in #( 22668 _ | IFS | as_nl) ;; #( 22669 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22670 *) { eval $ac_var=; unset $ac_var;} ;; 22671 esac ;; 22672 esac 22673 done 22674 22675 (set) 2>&1 | 22676 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22677 *${as_nl}ac_space=\ *) 22678 # `set' does not quote correctly, so add quotes: double-quote 22679 # substitution turns \\\\ into \\, and sed turns \\ into \. 22680 sed -n \ 22681 "s/'/'\\\\''/g; 22682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22683 ;; #( 22684 *) 22685 # `set' quotes correctly as required by POSIX, so do not add quotes. 22686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22687 ;; 22688 esac | 22689 sort 22690) | 22691 sed ' 22692 /^ac_cv_env_/b end 22693 t clear 22694 :clear 22695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22696 t end 22697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22698 :end' >>confcache 22699if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22700 if test -w "$cache_file"; then 22701 if test "x$cache_file" != "x/dev/null"; then 22702 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22703$as_echo "$as_me: updating cache $cache_file" >&6;} 22704 if test ! -f "$cache_file" || test -h "$cache_file"; then 22705 cat confcache >"$cache_file" 22706 else 22707 case $cache_file in #( 22708 */* | ?:*) 22709 mv -f confcache "$cache_file"$$ && 22710 mv -f "$cache_file"$$ "$cache_file" ;; #( 22711 *) 22712 mv -f confcache "$cache_file" ;; 22713 esac 22714 fi 22715 fi 22716 else 22717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22718$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22719 fi 22720fi 22721rm -f confcache 22722 22723test "x$prefix" = xNONE && prefix=$ac_default_prefix 22724# Let make expand exec_prefix. 22725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22726 22727DEFS=-DHAVE_CONFIG_H 22728 22729ac_libobjs= 22730ac_ltlibobjs= 22731U= 22732for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22733 # 1. Remove the extension, and $U if already installed. 22734 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22735 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22736 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22737 # will be set to the directory where LIBOBJS objects are built. 22738 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22739 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22740done 22741LIBOBJS=$ac_libobjs 22742 22743LTLIBOBJS=$ac_ltlibobjs 22744 22745 22746 22747 22748: "${CONFIG_STATUS=./config.status}" 22749ac_write_fail=0 22750ac_clean_files_save=$ac_clean_files 22751ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22752{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22753$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22754as_write_fail=0 22755cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22756#! $SHELL 22757# Generated by $as_me. 22758# Run this file to recreate the current configuration. 22759# Compiler output produced by configure, useful for debugging 22760# configure, is in config.log if it exists. 22761 22762debug=false 22763ac_cs_recheck=false 22764ac_cs_silent=false 22765 22766SHELL=\${CONFIG_SHELL-$SHELL} 22767export SHELL 22768_ASEOF 22769cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22770## -------------------- ## 22771## M4sh Initialization. ## 22772## -------------------- ## 22773 22774# Be more Bourne compatible 22775DUALCASE=1; export DUALCASE # for MKS sh 22776if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22777 emulate sh 22778 NULLCMD=: 22779 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22780 # is contrary to our usage. Disable this feature. 22781 alias -g '${1+"$@"}'='"$@"' 22782 setopt NO_GLOB_SUBST 22783else 22784 case `(set -o) 2>/dev/null` in #( 22785 *posix*) : 22786 set -o posix ;; #( 22787 *) : 22788 ;; 22789esac 22790fi 22791 22792 22793as_nl=' 22794' 22795export as_nl 22796# Printing a long string crashes Solaris 7 /usr/bin/printf. 22797as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22798as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22799as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22800# Prefer a ksh shell builtin over an external printf program on Solaris, 22801# but without wasting forks for bash or zsh. 22802if test -z "$BASH_VERSION$ZSH_VERSION" \ 22803 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22804 as_echo='print -r --' 22805 as_echo_n='print -rn --' 22806elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22807 as_echo='printf %s\n' 22808 as_echo_n='printf %s' 22809else 22810 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22811 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22812 as_echo_n='/usr/ucb/echo -n' 22813 else 22814 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22815 as_echo_n_body='eval 22816 arg=$1; 22817 case $arg in #( 22818 *"$as_nl"*) 22819 expr "X$arg" : "X\\(.*\\)$as_nl"; 22820 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22821 esac; 22822 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22823 ' 22824 export as_echo_n_body 22825 as_echo_n='sh -c $as_echo_n_body as_echo' 22826 fi 22827 export as_echo_body 22828 as_echo='sh -c $as_echo_body as_echo' 22829fi 22830 22831# The user is always right. 22832if test "${PATH_SEPARATOR+set}" != set; then 22833 PATH_SEPARATOR=: 22834 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22835 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22836 PATH_SEPARATOR=';' 22837 } 22838fi 22839 22840 22841# IFS 22842# We need space, tab and new line, in precisely that order. Quoting is 22843# there to prevent editors from complaining about space-tab. 22844# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22845# splitting by setting IFS to empty value.) 22846IFS=" "" $as_nl" 22847 22848# Find who we are. Look in the path if we contain no directory separator. 22849as_myself= 22850case $0 in #(( 22851 *[\\/]* ) as_myself=$0 ;; 22852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22853for as_dir in $PATH 22854do 22855 IFS=$as_save_IFS 22856 test -z "$as_dir" && as_dir=. 22857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22858 done 22859IFS=$as_save_IFS 22860 22861 ;; 22862esac 22863# We did not find ourselves, most probably we were run as `sh COMMAND' 22864# in which case we are not to be found in the path. 22865if test "x$as_myself" = x; then 22866 as_myself=$0 22867fi 22868if test ! -f "$as_myself"; then 22869 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22870 exit 1 22871fi 22872 22873# Unset variables that we do not need and which cause bugs (e.g. in 22874# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22875# suppresses any "Segmentation fault" message there. '((' could 22876# trigger a bug in pdksh 5.2.14. 22877for as_var in BASH_ENV ENV MAIL MAILPATH 22878do eval test x\${$as_var+set} = xset \ 22879 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22880done 22881PS1='$ ' 22882PS2='> ' 22883PS4='+ ' 22884 22885# NLS nuisances. 22886LC_ALL=C 22887export LC_ALL 22888LANGUAGE=C 22889export LANGUAGE 22890 22891# CDPATH. 22892(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22893 22894 22895# as_fn_error STATUS ERROR [LINENO LOG_FD] 22896# ---------------------------------------- 22897# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22898# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22899# script with STATUS, using 1 if that was 0. 22900as_fn_error () 22901{ 22902 as_status=$1; test $as_status -eq 0 && as_status=1 22903 if test "$4"; then 22904 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22905 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22906 fi 22907 $as_echo "$as_me: error: $2" >&2 22908 as_fn_exit $as_status 22909} # as_fn_error 22910 22911 22912# as_fn_set_status STATUS 22913# ----------------------- 22914# Set $? to STATUS, without forking. 22915as_fn_set_status () 22916{ 22917 return $1 22918} # as_fn_set_status 22919 22920# as_fn_exit STATUS 22921# ----------------- 22922# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22923as_fn_exit () 22924{ 22925 set +e 22926 as_fn_set_status $1 22927 exit $1 22928} # as_fn_exit 22929 22930# as_fn_unset VAR 22931# --------------- 22932# Portably unset VAR. 22933as_fn_unset () 22934{ 22935 { eval $1=; unset $1;} 22936} 22937as_unset=as_fn_unset 22938# as_fn_append VAR VALUE 22939# ---------------------- 22940# Append the text in VALUE to the end of the definition contained in VAR. Take 22941# advantage of any shell optimizations that allow amortized linear growth over 22942# repeated appends, instead of the typical quadratic growth present in naive 22943# implementations. 22944if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22945 eval 'as_fn_append () 22946 { 22947 eval $1+=\$2 22948 }' 22949else 22950 as_fn_append () 22951 { 22952 eval $1=\$$1\$2 22953 } 22954fi # as_fn_append 22955 22956# as_fn_arith ARG... 22957# ------------------ 22958# Perform arithmetic evaluation on the ARGs, and store the result in the 22959# global $as_val. Take advantage of shells that can avoid forks. The arguments 22960# must be portable across $(()) and expr. 22961if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22962 eval 'as_fn_arith () 22963 { 22964 as_val=$(( $* )) 22965 }' 22966else 22967 as_fn_arith () 22968 { 22969 as_val=`expr "$@" || test $? -eq 1` 22970 } 22971fi # as_fn_arith 22972 22973 22974if expr a : '\(a\)' >/dev/null 2>&1 && 22975 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22976 as_expr=expr 22977else 22978 as_expr=false 22979fi 22980 22981if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22982 as_basename=basename 22983else 22984 as_basename=false 22985fi 22986 22987if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22988 as_dirname=dirname 22989else 22990 as_dirname=false 22991fi 22992 22993as_me=`$as_basename -- "$0" || 22994$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22995 X"$0" : 'X\(//\)$' \| \ 22996 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22997$as_echo X/"$0" | 22998 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22999 s//\1/ 23000 q 23001 } 23002 /^X\/\(\/\/\)$/{ 23003 s//\1/ 23004 q 23005 } 23006 /^X\/\(\/\).*/{ 23007 s//\1/ 23008 q 23009 } 23010 s/.*/./; q'` 23011 23012# Avoid depending upon Character Ranges. 23013as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23014as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23015as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23016as_cr_digits='0123456789' 23017as_cr_alnum=$as_cr_Letters$as_cr_digits 23018 23019ECHO_C= ECHO_N= ECHO_T= 23020case `echo -n x` in #((((( 23021-n*) 23022 case `echo 'xy\c'` in 23023 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23024 xy) ECHO_C='\c';; 23025 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23026 ECHO_T=' ';; 23027 esac;; 23028*) 23029 ECHO_N='-n';; 23030esac 23031 23032rm -f conf$$ conf$$.exe conf$$.file 23033if test -d conf$$.dir; then 23034 rm -f conf$$.dir/conf$$.file 23035else 23036 rm -f conf$$.dir 23037 mkdir conf$$.dir 2>/dev/null 23038fi 23039if (echo >conf$$.file) 2>/dev/null; then 23040 if ln -s conf$$.file conf$$ 2>/dev/null; then 23041 as_ln_s='ln -s' 23042 # ... but there are two gotchas: 23043 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23044 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23045 # In both cases, we have to default to `cp -p'. 23046 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23047 as_ln_s='cp -p' 23048 elif ln conf$$.file conf$$ 2>/dev/null; then 23049 as_ln_s=ln 23050 else 23051 as_ln_s='cp -p' 23052 fi 23053else 23054 as_ln_s='cp -p' 23055fi 23056rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23057rmdir conf$$.dir 2>/dev/null 23058 23059 23060# as_fn_mkdir_p 23061# ------------- 23062# Create "$as_dir" as a directory, including parents if necessary. 23063as_fn_mkdir_p () 23064{ 23065 23066 case $as_dir in #( 23067 -*) as_dir=./$as_dir;; 23068 esac 23069 test -d "$as_dir" || eval $as_mkdir_p || { 23070 as_dirs= 23071 while :; do 23072 case $as_dir in #( 23073 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23074 *) as_qdir=$as_dir;; 23075 esac 23076 as_dirs="'$as_qdir' $as_dirs" 23077 as_dir=`$as_dirname -- "$as_dir" || 23078$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23079 X"$as_dir" : 'X\(//\)[^/]' \| \ 23080 X"$as_dir" : 'X\(//\)$' \| \ 23081 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23082$as_echo X"$as_dir" | 23083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23084 s//\1/ 23085 q 23086 } 23087 /^X\(\/\/\)[^/].*/{ 23088 s//\1/ 23089 q 23090 } 23091 /^X\(\/\/\)$/{ 23092 s//\1/ 23093 q 23094 } 23095 /^X\(\/\).*/{ 23096 s//\1/ 23097 q 23098 } 23099 s/.*/./; q'` 23100 test -d "$as_dir" && break 23101 done 23102 test -z "$as_dirs" || eval "mkdir $as_dirs" 23103 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23104 23105 23106} # as_fn_mkdir_p 23107if mkdir -p . 2>/dev/null; then 23108 as_mkdir_p='mkdir -p "$as_dir"' 23109else 23110 test -d ./-p && rmdir ./-p 23111 as_mkdir_p=false 23112fi 23113 23114if test -x / >/dev/null 2>&1; then 23115 as_test_x='test -x' 23116else 23117 if ls -dL / >/dev/null 2>&1; then 23118 as_ls_L_option=L 23119 else 23120 as_ls_L_option= 23121 fi 23122 as_test_x=' 23123 eval sh -c '\'' 23124 if test -d "$1"; then 23125 test -d "$1/."; 23126 else 23127 case $1 in #( 23128 -*)set "./$1";; 23129 esac; 23130 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 23131 ???[sx]*):;;*)false;;esac;fi 23132 '\'' sh 23133 ' 23134fi 23135as_executable_p=$as_test_x 23136 23137# Sed expression to map a string onto a valid CPP name. 23138as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23139 23140# Sed expression to map a string onto a valid variable name. 23141as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23142 23143 23144exec 6>&1 23145## ----------------------------------- ## 23146## Main body of $CONFIG_STATUS script. ## 23147## ----------------------------------- ## 23148_ASEOF 23149test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23150 23151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23152# Save the log message, to keep $0 and so on meaningful, and to 23153# report actual input values of CONFIG_FILES etc. instead of their 23154# values after options handling. 23155ac_log=" 23156This file was extended by $as_me, which was 23157generated by GNU Autoconf 2.68. Invocation command line was 23158 23159 CONFIG_FILES = $CONFIG_FILES 23160 CONFIG_HEADERS = $CONFIG_HEADERS 23161 CONFIG_LINKS = $CONFIG_LINKS 23162 CONFIG_COMMANDS = $CONFIG_COMMANDS 23163 $ $0 $@ 23164 23165on `(hostname || uname -n) 2>/dev/null | sed 1q` 23166" 23167 23168_ACEOF 23169 23170case $ac_config_files in *" 23171"*) set x $ac_config_files; shift; ac_config_files=$*;; 23172esac 23173 23174case $ac_config_headers in *" 23175"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23176esac 23177 23178 23179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23180# Files that config.status was made for. 23181config_files="$ac_config_files" 23182config_headers="$ac_config_headers" 23183config_commands="$ac_config_commands" 23184 23185_ACEOF 23186 23187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23188ac_cs_usage="\ 23189\`$as_me' instantiates files and other configuration actions 23190from templates according to the current configuration. Unless the files 23191and actions are specified as TAGs, all are instantiated by default. 23192 23193Usage: $0 [OPTION]... [TAG]... 23194 23195 -h, --help print this help, then exit 23196 -V, --version print version number and configuration settings, then exit 23197 --config print configuration, then exit 23198 -q, --quiet, --silent 23199 do not print progress messages 23200 -d, --debug don't remove temporary files 23201 --recheck update $as_me by reconfiguring in the same conditions 23202 --file=FILE[:TEMPLATE] 23203 instantiate the configuration file FILE 23204 --header=FILE[:TEMPLATE] 23205 instantiate the configuration header FILE 23206 23207Configuration files: 23208$config_files 23209 23210Configuration headers: 23211$config_headers 23212 23213Configuration commands: 23214$config_commands 23215 23216Report bugs to the package provider." 23217 23218_ACEOF 23219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23220ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23221ac_cs_version="\\ 23222config.status 23223configured by $0, generated by GNU Autoconf 2.68, 23224 with options \\"\$ac_cs_config\\" 23225 23226Copyright (C) 2010 Free Software Foundation, Inc. 23227This config.status script is free software; the Free Software Foundation 23228gives unlimited permission to copy, distribute and modify it." 23229 23230ac_pwd='$ac_pwd' 23231srcdir='$srcdir' 23232INSTALL='$INSTALL' 23233AWK='$AWK' 23234test -n "\$AWK" || AWK=awk 23235_ACEOF 23236 23237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23238# The default lists apply if the user does not specify any file. 23239ac_need_defaults=: 23240while test $# != 0 23241do 23242 case $1 in 23243 --*=?*) 23244 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23246 ac_shift=: 23247 ;; 23248 --*=) 23249 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23250 ac_optarg= 23251 ac_shift=: 23252 ;; 23253 *) 23254 ac_option=$1 23255 ac_optarg=$2 23256 ac_shift=shift 23257 ;; 23258 esac 23259 23260 case $ac_option in 23261 # Handling of the options. 23262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23263 ac_cs_recheck=: ;; 23264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23265 $as_echo "$ac_cs_version"; exit ;; 23266 --config | --confi | --conf | --con | --co | --c ) 23267 $as_echo "$ac_cs_config"; exit ;; 23268 --debug | --debu | --deb | --de | --d | -d ) 23269 debug=: ;; 23270 --file | --fil | --fi | --f ) 23271 $ac_shift 23272 case $ac_optarg in 23273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23274 '') as_fn_error $? "missing file argument" ;; 23275 esac 23276 as_fn_append CONFIG_FILES " '$ac_optarg'" 23277 ac_need_defaults=false;; 23278 --header | --heade | --head | --hea ) 23279 $ac_shift 23280 case $ac_optarg in 23281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23282 esac 23283 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23284 ac_need_defaults=false;; 23285 --he | --h) 23286 # Conflict between --help and --header 23287 as_fn_error $? "ambiguous option: \`$1' 23288Try \`$0 --help' for more information.";; 23289 --help | --hel | -h ) 23290 $as_echo "$ac_cs_usage"; exit ;; 23291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23292 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23293 ac_cs_silent=: ;; 23294 23295 # This is an error. 23296 -*) as_fn_error $? "unrecognized option: \`$1' 23297Try \`$0 --help' for more information." ;; 23298 23299 *) as_fn_append ac_config_targets " $1" 23300 ac_need_defaults=false ;; 23301 23302 esac 23303 shift 23304done 23305 23306ac_configure_extra_args= 23307 23308if $ac_cs_silent; then 23309 exec 6>/dev/null 23310 ac_configure_extra_args="$ac_configure_extra_args --silent" 23311fi 23312 23313_ACEOF 23314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23315if \$ac_cs_recheck; then 23316 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23317 shift 23318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23319 CONFIG_SHELL='$SHELL' 23320 export CONFIG_SHELL 23321 exec "\$@" 23322fi 23323 23324_ACEOF 23325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23326exec 5>>config.log 23327{ 23328 echo 23329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23330## Running $as_me. ## 23331_ASBOX 23332 $as_echo "$ac_log" 23333} >&5 23334 23335_ACEOF 23336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23337# 23338# INIT-COMMANDS 23339# 23340 23341 23342# The HP-UX ksh and POSIX shell print the target directory to stdout 23343# if CDPATH is set. 23344(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23345 23346sed_quote_subst='$sed_quote_subst' 23347double_quote_subst='$double_quote_subst' 23348delay_variable_subst='$delay_variable_subst' 23349macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23350macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23351AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 23352DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23353OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23354enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23355enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23356pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23357enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23358SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23359ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23360host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23361host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23362host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23363build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23364build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23365build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23366SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23367Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23368GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23369EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23370FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23371LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23372NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23373LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23374max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23375ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23376exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23377lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23378lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23379lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23380lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23381lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23382reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23383reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23384deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23385file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23386file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23387want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23388sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23389AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23390AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23391archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23392STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23393RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23394old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23395old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23396old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23397lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23398CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23399CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23400compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23401GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23402lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23403lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23404lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23405lt_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"`' 23406nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23407lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23408objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23409MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23410lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23411lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23412lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23413lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23414lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23415need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23416MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23417DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23418NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23419LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23420OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23421OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23422libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23423shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23424extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23425archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23426enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23427export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23428whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23429compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23430old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23431old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23432archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23433archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23434module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23435module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23436with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23437allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23438no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23439hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23440hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 23441hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23442hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23443hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23444hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23445hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23446hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23447inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23448link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23449always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23450export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23451exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23452include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23453prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23454postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23455file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23456variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23457need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23458need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23459version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23460runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23461shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23462shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23463libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23464library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23465soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23466install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23467postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23468postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23469finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23470finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23471hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23472sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23473sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 23474hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23475enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23476enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23477enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23478old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23479striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23480compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 23481predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 23482postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 23483predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 23484postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 23485compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 23486LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 23487reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 23488reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23489old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23490compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 23491GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 23492lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 23493lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 23494lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 23495lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 23496lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 23497archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 23498enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 23499export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23500whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23501compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 23502old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23503old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23504archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23505archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23506module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23507module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23508with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 23509allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23510no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23511hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23512hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 23513hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 23514hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 23515hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 23516hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 23517hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 23518hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 23519inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 23520link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 23521always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 23522export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23523exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23524include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23525prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23526postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23527file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 23528hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 23529compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 23530predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23531postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23532predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 23533postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 23534compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 23535 23536LTCC='$LTCC' 23537LTCFLAGS='$LTCFLAGS' 23538compiler='$compiler_DEFAULT' 23539 23540# A function that is used when there is no print builtin or printf. 23541func_fallback_echo () 23542{ 23543 eval 'cat <<_LTECHO_EOF 23544\$1 23545_LTECHO_EOF' 23546} 23547 23548# Quote evaled strings. 23549for var in AS \ 23550DLLTOOL \ 23551OBJDUMP \ 23552SHELL \ 23553ECHO \ 23554SED \ 23555GREP \ 23556EGREP \ 23557FGREP \ 23558LD \ 23559NM \ 23560LN_S \ 23561lt_SP2NL \ 23562lt_NL2SP \ 23563reload_flag \ 23564deplibs_check_method \ 23565file_magic_cmd \ 23566file_magic_glob \ 23567want_nocaseglob \ 23568sharedlib_from_linklib_cmd \ 23569AR \ 23570AR_FLAGS \ 23571archiver_list_spec \ 23572STRIP \ 23573RANLIB \ 23574CC \ 23575CFLAGS \ 23576compiler \ 23577lt_cv_sys_global_symbol_pipe \ 23578lt_cv_sys_global_symbol_to_cdecl \ 23579lt_cv_sys_global_symbol_to_c_name_address \ 23580lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23581nm_file_list_spec \ 23582lt_prog_compiler_no_builtin_flag \ 23583lt_prog_compiler_pic \ 23584lt_prog_compiler_wl \ 23585lt_prog_compiler_static \ 23586lt_cv_prog_compiler_c_o \ 23587need_locks \ 23588MANIFEST_TOOL \ 23589DSYMUTIL \ 23590NMEDIT \ 23591LIPO \ 23592OTOOL \ 23593OTOOL64 \ 23594shrext_cmds \ 23595export_dynamic_flag_spec \ 23596whole_archive_flag_spec \ 23597compiler_needs_object \ 23598with_gnu_ld \ 23599allow_undefined_flag \ 23600no_undefined_flag \ 23601hardcode_libdir_flag_spec \ 23602hardcode_libdir_flag_spec_ld \ 23603hardcode_libdir_separator \ 23604exclude_expsyms \ 23605include_expsyms \ 23606file_list_spec \ 23607variables_saved_for_relink \ 23608libname_spec \ 23609library_names_spec \ 23610soname_spec \ 23611install_override_mode \ 23612finish_eval \ 23613old_striplib \ 23614striplib \ 23615compiler_lib_search_dirs \ 23616predep_objects \ 23617postdep_objects \ 23618predeps \ 23619postdeps \ 23620compiler_lib_search_path \ 23621LD_CXX \ 23622reload_flag_CXX \ 23623compiler_CXX \ 23624lt_prog_compiler_no_builtin_flag_CXX \ 23625lt_prog_compiler_pic_CXX \ 23626lt_prog_compiler_wl_CXX \ 23627lt_prog_compiler_static_CXX \ 23628lt_cv_prog_compiler_c_o_CXX \ 23629export_dynamic_flag_spec_CXX \ 23630whole_archive_flag_spec_CXX \ 23631compiler_needs_object_CXX \ 23632with_gnu_ld_CXX \ 23633allow_undefined_flag_CXX \ 23634no_undefined_flag_CXX \ 23635hardcode_libdir_flag_spec_CXX \ 23636hardcode_libdir_flag_spec_ld_CXX \ 23637hardcode_libdir_separator_CXX \ 23638exclude_expsyms_CXX \ 23639include_expsyms_CXX \ 23640file_list_spec_CXX \ 23641compiler_lib_search_dirs_CXX \ 23642predep_objects_CXX \ 23643postdep_objects_CXX \ 23644predeps_CXX \ 23645postdeps_CXX \ 23646compiler_lib_search_path_CXX; do 23647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23648 *[\\\\\\\`\\"\\\$]*) 23649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 23650 ;; 23651 *) 23652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23653 ;; 23654 esac 23655done 23656 23657# Double-quote double-evaled strings. 23658for var in reload_cmds \ 23659old_postinstall_cmds \ 23660old_postuninstall_cmds \ 23661old_archive_cmds \ 23662extract_expsyms_cmds \ 23663old_archive_from_new_cmds \ 23664old_archive_from_expsyms_cmds \ 23665archive_cmds \ 23666archive_expsym_cmds \ 23667module_cmds \ 23668module_expsym_cmds \ 23669export_symbols_cmds \ 23670prelink_cmds \ 23671postlink_cmds \ 23672postinstall_cmds \ 23673postuninstall_cmds \ 23674finish_cmds \ 23675sys_lib_search_path_spec \ 23676sys_lib_dlsearch_path_spec \ 23677reload_cmds_CXX \ 23678old_archive_cmds_CXX \ 23679old_archive_from_new_cmds_CXX \ 23680old_archive_from_expsyms_cmds_CXX \ 23681archive_cmds_CXX \ 23682archive_expsym_cmds_CXX \ 23683module_cmds_CXX \ 23684module_expsym_cmds_CXX \ 23685export_symbols_cmds_CXX \ 23686prelink_cmds_CXX \ 23687postlink_cmds_CXX; do 23688 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23689 *[\\\\\\\`\\"\\\$]*) 23690 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 23691 ;; 23692 *) 23693 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23694 ;; 23695 esac 23696done 23697 23698ac_aux_dir='$ac_aux_dir' 23699xsi_shell='$xsi_shell' 23700lt_shell_append='$lt_shell_append' 23701 23702# See if we are running on zsh, and set the options which allow our 23703# commands through without removal of \ escapes INIT. 23704if test -n "\${ZSH_VERSION+set}" ; then 23705 setopt NO_GLOB_SUBST 23706fi 23707 23708 23709 PACKAGE='$PACKAGE' 23710 VERSION='$VERSION' 23711 TIMESTAMP='$TIMESTAMP' 23712 RM='$RM' 23713 ofile='$ofile' 23714 23715 23716 23717 23718 23719 23720_ACEOF 23721 23722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23723 23724# Handling of arguments. 23725for ac_config_target in $ac_config_targets 23726do 23727 case $ac_config_target in 23728 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;; 23729 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23730 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23731 "sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;; 23732 "SDL.spec") CONFIG_FILES="$CONFIG_FILES SDL.spec" ;; 23733 "SDL.qpg") CONFIG_FILES="$CONFIG_FILES SDL.qpg" ;; 23734 "sdl.pc") CONFIG_FILES="$CONFIG_FILES sdl.pc" ;; 23735 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 23736 23737 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 23738 esac 23739done 23740 23741 23742# If the user did not use the arguments to specify the items to instantiate, 23743# then the envvar interface is used. Set only those that are not. 23744# We use the long form for the default assignment because of an extremely 23745# bizarre bug on SunOS 4.1.3. 23746if $ac_need_defaults; then 23747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23750fi 23751 23752# Have a temporary directory for convenience. Make it in the build tree 23753# simply because there is no reason against having it here, and in addition, 23754# creating and moving files from /tmp can sometimes cause problems. 23755# Hook for its removal unless debugging. 23756# Note that there is a small window in which the directory will not be cleaned: 23757# after its creation but before its name has been assigned to `$tmp'. 23758$debug || 23759{ 23760 tmp= ac_tmp= 23761 trap 'exit_status=$? 23762 : "${ac_tmp:=$tmp}" 23763 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23764' 0 23765 trap 'as_fn_exit 1' 1 2 13 15 23766} 23767# Create a (secure) tmp directory for tmp files. 23768 23769{ 23770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23771 test -d "$tmp" 23772} || 23773{ 23774 tmp=./conf$$-$RANDOM 23775 (umask 077 && mkdir "$tmp") 23776} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23777ac_tmp=$tmp 23778 23779# Set up the scripts for CONFIG_FILES section. 23780# No need to generate them if there are no CONFIG_FILES. 23781# This happens for instance with `./config.status config.h'. 23782if test -n "$CONFIG_FILES"; then 23783 23784 23785ac_cr=`echo X | tr X '\015'` 23786# On cygwin, bash can eat \r inside `` if the user requested igncr. 23787# But we know of no other shell where ac_cr would be empty at this 23788# point, so we can use a bashism as a fallback. 23789if test "x$ac_cr" = x; then 23790 eval ac_cr=\$\'\\r\' 23791fi 23792ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23793if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23794 ac_cs_awk_cr='\\r' 23795else 23796 ac_cs_awk_cr=$ac_cr 23797fi 23798 23799echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23800_ACEOF 23801 23802 23803{ 23804 echo "cat >conf$$subs.awk <<_ACEOF" && 23805 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23806 echo "_ACEOF" 23807} >conf$$subs.sh || 23808 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23809ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23810ac_delim='%!_!# ' 23811for ac_last_try in false false false false false :; do 23812 . ./conf$$subs.sh || 23813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23814 23815 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23816 if test $ac_delim_n = $ac_delim_num; then 23817 break 23818 elif $ac_last_try; then 23819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23820 else 23821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23822 fi 23823done 23824rm -f conf$$subs.sh 23825 23826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23827cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23828_ACEOF 23829sed -n ' 23830h 23831s/^/S["/; s/!.*/"]=/ 23832p 23833g 23834s/^[^!]*!// 23835:repl 23836t repl 23837s/'"$ac_delim"'$// 23838t delim 23839:nl 23840h 23841s/\(.\{148\}\)..*/\1/ 23842t more1 23843s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23844p 23845n 23846b repl 23847:more1 23848s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23849p 23850g 23851s/.\{148\}// 23852t nl 23853:delim 23854h 23855s/\(.\{148\}\)..*/\1/ 23856t more2 23857s/["\\]/\\&/g; s/^/"/; s/$/"/ 23858p 23859b 23860:more2 23861s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23862p 23863g 23864s/.\{148\}// 23865t delim 23866' <conf$$subs.awk | sed ' 23867/^[^""]/{ 23868 N 23869 s/\n// 23870} 23871' >>$CONFIG_STATUS || ac_write_fail=1 23872rm -f conf$$subs.awk 23873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23874_ACAWK 23875cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23876 for (key in S) S_is_set[key] = 1 23877 FS = "" 23878 23879} 23880{ 23881 line = $ 0 23882 nfields = split(line, field, "@") 23883 substed = 0 23884 len = length(field[1]) 23885 for (i = 2; i < nfields; i++) { 23886 key = field[i] 23887 keylen = length(key) 23888 if (S_is_set[key]) { 23889 value = S[key] 23890 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23891 len += length(value) + length(field[++i]) 23892 substed = 1 23893 } else 23894 len += 1 + keylen 23895 } 23896 23897 print line 23898} 23899 23900_ACAWK 23901_ACEOF 23902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23903if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23904 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23905else 23906 cat 23907fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23908 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23909_ACEOF 23910 23911# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23912# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23913# trailing colons and then remove the whole line if VPATH becomes empty 23914# (actually we leave an empty line to preserve line numbers). 23915if test "x$srcdir" = x.; then 23916 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23917h 23918s/// 23919s/^/:/ 23920s/[ ]*$/:/ 23921s/:\$(srcdir):/:/g 23922s/:\${srcdir}:/:/g 23923s/:@srcdir@:/:/g 23924s/^:*// 23925s/:*$// 23926x 23927s/\(=[ ]*\).*/\1/ 23928G 23929s/\n// 23930s/^[^=]*=[ ]*$// 23931}' 23932fi 23933 23934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23935fi # test -n "$CONFIG_FILES" 23936 23937# Set up the scripts for CONFIG_HEADERS section. 23938# No need to generate them if there are no CONFIG_HEADERS. 23939# This happens for instance with `./config.status Makefile'. 23940if test -n "$CONFIG_HEADERS"; then 23941cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23942BEGIN { 23943_ACEOF 23944 23945# Transform confdefs.h into an awk script `defines.awk', embedded as 23946# here-document in config.status, that substitutes the proper values into 23947# config.h.in to produce config.h. 23948 23949# Create a delimiter string that does not exist in confdefs.h, to ease 23950# handling of long lines. 23951ac_delim='%!_!# ' 23952for ac_last_try in false false :; do 23953 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23954 if test -z "$ac_tt"; then 23955 break 23956 elif $ac_last_try; then 23957 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23958 else 23959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23960 fi 23961done 23962 23963# For the awk script, D is an array of macro values keyed by name, 23964# likewise P contains macro parameters if any. Preserve backslash 23965# newline sequences. 23966 23967ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23968sed -n ' 23969s/.\{148\}/&'"$ac_delim"'/g 23970t rset 23971:rset 23972s/^[ ]*#[ ]*define[ ][ ]*/ / 23973t def 23974d 23975:def 23976s/\\$// 23977t bsnl 23978s/["\\]/\\&/g 23979s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23980D["\1"]=" \3"/p 23981s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23982d 23983:bsnl 23984s/["\\]/\\&/g 23985s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23986D["\1"]=" \3\\\\\\n"\\/p 23987t cont 23988s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23989t cont 23990d 23991:cont 23992n 23993s/.\{148\}/&'"$ac_delim"'/g 23994t clear 23995:clear 23996s/\\$// 23997t bsnlc 23998s/["\\]/\\&/g; s/^/"/; s/$/"/p 23999d 24000:bsnlc 24001s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24002b cont 24003' <confdefs.h | sed ' 24004s/'"$ac_delim"'/"\\\ 24005"/g' >>$CONFIG_STATUS || ac_write_fail=1 24006 24007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24008 for (key in D) D_is_set[key] = 1 24009 FS = "" 24010} 24011/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24012 line = \$ 0 24013 split(line, arg, " ") 24014 if (arg[1] == "#") { 24015 defundef = arg[2] 24016 mac1 = arg[3] 24017 } else { 24018 defundef = substr(arg[1], 2) 24019 mac1 = arg[2] 24020 } 24021 split(mac1, mac2, "(") #) 24022 macro = mac2[1] 24023 prefix = substr(line, 1, index(line, defundef) - 1) 24024 if (D_is_set[macro]) { 24025 # Preserve the white space surrounding the "#". 24026 print prefix "define", macro P[macro] D[macro] 24027 next 24028 } else { 24029 # Replace #undef with comments. This is necessary, for example, 24030 # in the case of _POSIX_SOURCE, which is predefined and required 24031 # on some systems where configure will not decide to define it. 24032 if (defundef == "undef") { 24033 print "/*", prefix defundef, macro, "*/" 24034 next 24035 } 24036 } 24037} 24038{ print } 24039_ACAWK 24040_ACEOF 24041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24042 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24043fi # test -n "$CONFIG_HEADERS" 24044 24045 24046eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24047shift 24048for ac_tag 24049do 24050 case $ac_tag in 24051 :[FHLC]) ac_mode=$ac_tag; continue;; 24052 esac 24053 case $ac_mode$ac_tag in 24054 :[FHL]*:*);; 24055 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 24056 :[FH]-) ac_tag=-:-;; 24057 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24058 esac 24059 ac_save_IFS=$IFS 24060 IFS=: 24061 set x $ac_tag 24062 IFS=$ac_save_IFS 24063 shift 24064 ac_file=$1 24065 shift 24066 24067 case $ac_mode in 24068 :L) ac_source=$1;; 24069 :[FH]) 24070 ac_file_inputs= 24071 for ac_f 24072 do 24073 case $ac_f in 24074 -) ac_f="$ac_tmp/stdin";; 24075 *) # Look for the file first in the build tree, then in the source tree 24076 # (if the path is not absolute). The absolute path cannot be DOS-style, 24077 # because $ac_f cannot contain `:'. 24078 test -f "$ac_f" || 24079 case $ac_f in 24080 [\\/$]*) false;; 24081 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24082 esac || 24083 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 24084 esac 24085 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24086 as_fn_append ac_file_inputs " '$ac_f'" 24087 done 24088 24089 # Let's still pretend it is `configure' which instantiates (i.e., don't 24090 # use $as_me), people would be surprised to read: 24091 # /* config.h. Generated by config.status. */ 24092 configure_input='Generated from '` 24093 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24094 `' by configure.' 24095 if test x"$ac_file" != x-; then 24096 configure_input="$ac_file. $configure_input" 24097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24098$as_echo "$as_me: creating $ac_file" >&6;} 24099 fi 24100 # Neutralize special characters interpreted by sed in replacement strings. 24101 case $configure_input in #( 24102 *\&* | *\|* | *\\* ) 24103 ac_sed_conf_input=`$as_echo "$configure_input" | 24104 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24105 *) ac_sed_conf_input=$configure_input;; 24106 esac 24107 24108 case $ac_tag in 24109 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24111 esac 24112 ;; 24113 esac 24114 24115 ac_dir=`$as_dirname -- "$ac_file" || 24116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24117 X"$ac_file" : 'X\(//\)[^/]' \| \ 24118 X"$ac_file" : 'X\(//\)$' \| \ 24119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24120$as_echo X"$ac_file" | 24121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24122 s//\1/ 24123 q 24124 } 24125 /^X\(\/\/\)[^/].*/{ 24126 s//\1/ 24127 q 24128 } 24129 /^X\(\/\/\)$/{ 24130 s//\1/ 24131 q 24132 } 24133 /^X\(\/\).*/{ 24134 s//\1/ 24135 q 24136 } 24137 s/.*/./; q'` 24138 as_dir="$ac_dir"; as_fn_mkdir_p 24139 ac_builddir=. 24140 24141case "$ac_dir" in 24142.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24143*) 24144 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24145 # A ".." for each directory in $ac_dir_suffix. 24146 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24147 case $ac_top_builddir_sub in 24148 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24149 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24150 esac ;; 24151esac 24152ac_abs_top_builddir=$ac_pwd 24153ac_abs_builddir=$ac_pwd$ac_dir_suffix 24154# for backward compatibility: 24155ac_top_builddir=$ac_top_build_prefix 24156 24157case $srcdir in 24158 .) # We are building in place. 24159 ac_srcdir=. 24160 ac_top_srcdir=$ac_top_builddir_sub 24161 ac_abs_top_srcdir=$ac_pwd ;; 24162 [\\/]* | ?:[\\/]* ) # Absolute name. 24163 ac_srcdir=$srcdir$ac_dir_suffix; 24164 ac_top_srcdir=$srcdir 24165 ac_abs_top_srcdir=$srcdir ;; 24166 *) # Relative name. 24167 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24168 ac_top_srcdir=$ac_top_build_prefix$srcdir 24169 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24170esac 24171ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24172 24173 24174 case $ac_mode in 24175 :F) 24176 # 24177 # CONFIG_FILE 24178 # 24179 24180 case $INSTALL in 24181 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24182 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24183 esac 24184_ACEOF 24185 24186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24187# If the template does not know about datarootdir, expand it. 24188# FIXME: This hack should be removed a few years after 2.60. 24189ac_datarootdir_hack=; ac_datarootdir_seen= 24190ac_sed_dataroot=' 24191/datarootdir/ { 24192 p 24193 q 24194} 24195/@datadir@/p 24196/@docdir@/p 24197/@infodir@/p 24198/@localedir@/p 24199/@mandir@/p' 24200case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24201*datarootdir*) ac_datarootdir_seen=yes;; 24202*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24204$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24205_ACEOF 24206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24207 ac_datarootdir_hack=' 24208 s&@datadir@&$datadir&g 24209 s&@docdir@&$docdir&g 24210 s&@infodir@&$infodir&g 24211 s&@localedir@&$localedir&g 24212 s&@mandir@&$mandir&g 24213 s&\\\${datarootdir}&$datarootdir&g' ;; 24214esac 24215_ACEOF 24216 24217# Neutralize VPATH when `$srcdir' = `.'. 24218# Shell code in configure.ac might set extrasub. 24219# FIXME: do we really want to maintain this feature? 24220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24221ac_sed_extra="$ac_vpsub 24222$extrasub 24223_ACEOF 24224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24225:t 24226/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24227s|@configure_input@|$ac_sed_conf_input|;t t 24228s&@top_builddir@&$ac_top_builddir_sub&;t t 24229s&@top_build_prefix@&$ac_top_build_prefix&;t t 24230s&@srcdir@&$ac_srcdir&;t t 24231s&@abs_srcdir@&$ac_abs_srcdir&;t t 24232s&@top_srcdir@&$ac_top_srcdir&;t t 24233s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24234s&@builddir@&$ac_builddir&;t t 24235s&@abs_builddir@&$ac_abs_builddir&;t t 24236s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24237s&@INSTALL@&$ac_INSTALL&;t t 24238$ac_datarootdir_hack 24239" 24240eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24241 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24242 24243test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24244 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24245 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24246 "$ac_tmp/out"`; test -z "$ac_out"; } && 24247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24248which seems to be undefined. Please make sure it is defined" >&5 24249$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24250which seems to be undefined. Please make sure it is defined" >&2;} 24251 24252 rm -f "$ac_tmp/stdin" 24253 case $ac_file in 24254 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24255 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24256 esac \ 24257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24258 ;; 24259 :H) 24260 # 24261 # CONFIG_HEADER 24262 # 24263 if test x"$ac_file" != x-; then 24264 { 24265 $as_echo "/* $configure_input */" \ 24266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24267 } >"$ac_tmp/config.h" \ 24268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24269 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24271$as_echo "$as_me: $ac_file is unchanged" >&6;} 24272 else 24273 rm -f "$ac_file" 24274 mv "$ac_tmp/config.h" "$ac_file" \ 24275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24276 fi 24277 else 24278 $as_echo "/* $configure_input */" \ 24279 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24280 || as_fn_error $? "could not create -" "$LINENO" 5 24281 fi 24282 ;; 24283 24284 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24285$as_echo "$as_me: executing $ac_file commands" >&6;} 24286 ;; 24287 esac 24288 24289 24290 case $ac_file$ac_mode in 24291 "libtool":C) 24292 24293 # See if we are running on zsh, and set the options which allow our 24294 # commands through without removal of \ escapes. 24295 if test -n "${ZSH_VERSION+set}" ; then 24296 setopt NO_GLOB_SUBST 24297 fi 24298 24299 cfgfile="${ofile}T" 24300 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24301 $RM "$cfgfile" 24302 24303 cat <<_LT_EOF >> "$cfgfile" 24304#! $SHELL 24305 24306# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 24307# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 24308# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24309# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24310# 24311# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 24312# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 24313# Inc. 24314# Written by Gordon Matzigkeit, 1996 24315# 24316# This file is part of GNU Libtool. 24317# 24318# GNU Libtool is free software; you can redistribute it and/or 24319# modify it under the terms of the GNU General Public License as 24320# published by the Free Software Foundation; either version 2 of 24321# the License, or (at your option) any later version. 24322# 24323# As a special exception to the GNU General Public License, 24324# if you distribute this file as part of a program or library that 24325# is built using GNU Libtool, you may include this file under the 24326# same distribution terms that you use for the rest of that program. 24327# 24328# GNU Libtool is distributed in the hope that it will be useful, 24329# but WITHOUT ANY WARRANTY; without even the implied warranty of 24330# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24331# GNU General Public License for more details. 24332# 24333# You should have received a copy of the GNU General Public License 24334# along with GNU Libtool; see the file COPYING. If not, a copy 24335# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 24336# obtained by writing to the Free Software Foundation, Inc., 24337# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 24338 24339 24340# The names of the tagged configurations supported by this script. 24341available_tags="CXX " 24342 24343# ### BEGIN LIBTOOL CONFIG 24344 24345# Which release of libtool.m4 was used? 24346macro_version=$macro_version 24347macro_revision=$macro_revision 24348 24349# Assembler program. 24350AS=$lt_AS 24351 24352# DLL creation program. 24353DLLTOOL=$lt_DLLTOOL 24354 24355# Object dumper program. 24356OBJDUMP=$lt_OBJDUMP 24357 24358# Whether or not to build shared libraries. 24359build_libtool_libs=$enable_shared 24360 24361# Whether or not to build static libraries. 24362build_old_libs=$enable_static 24363 24364# What type of objects to build. 24365pic_mode=$pic_mode 24366 24367# Whether or not to optimize for fast installation. 24368fast_install=$enable_fast_install 24369 24370# Shell to use when invoking shell scripts. 24371SHELL=$lt_SHELL 24372 24373# An echo program that protects backslashes. 24374ECHO=$lt_ECHO 24375 24376# The host system. 24377host_alias=$host_alias 24378host=$host 24379host_os=$host_os 24380 24381# The build system. 24382build_alias=$build_alias 24383build=$build 24384build_os=$build_os 24385 24386# A sed program that does not truncate output. 24387SED=$lt_SED 24388 24389# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24390Xsed="\$SED -e 1s/^X//" 24391 24392# A grep program that handles long lines. 24393GREP=$lt_GREP 24394 24395# An ERE matcher. 24396EGREP=$lt_EGREP 24397 24398# A literal string matcher. 24399FGREP=$lt_FGREP 24400 24401# A BSD- or MS-compatible name lister. 24402NM=$lt_NM 24403 24404# Whether we need soft or hard links. 24405LN_S=$lt_LN_S 24406 24407# What is the maximum length of a command? 24408max_cmd_len=$max_cmd_len 24409 24410# Object file suffix (normally "o"). 24411objext=$ac_objext 24412 24413# Executable file suffix (normally ""). 24414exeext=$exeext 24415 24416# whether the shell understands "unset". 24417lt_unset=$lt_unset 24418 24419# turn spaces into newlines. 24420SP2NL=$lt_lt_SP2NL 24421 24422# turn newlines into spaces. 24423NL2SP=$lt_lt_NL2SP 24424 24425# convert \$build file names to \$host format. 24426to_host_file_cmd=$lt_cv_to_host_file_cmd 24427 24428# convert \$build files to toolchain format. 24429to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24430 24431# Method to check whether dependent libraries are shared objects. 24432deplibs_check_method=$lt_deplibs_check_method 24433 24434# Command to use when deplibs_check_method = "file_magic". 24435file_magic_cmd=$lt_file_magic_cmd 24436 24437# How to find potential files when deplibs_check_method = "file_magic". 24438file_magic_glob=$lt_file_magic_glob 24439 24440# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24441want_nocaseglob=$lt_want_nocaseglob 24442 24443# Command to associate shared and link libraries. 24444sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24445 24446# The archiver. 24447AR=$lt_AR 24448 24449# Flags to create an archive. 24450AR_FLAGS=$lt_AR_FLAGS 24451 24452# How to feed a file listing to the archiver. 24453archiver_list_spec=$lt_archiver_list_spec 24454 24455# A symbol stripping program. 24456STRIP=$lt_STRIP 24457 24458# Commands used to install an old-style archive. 24459RANLIB=$lt_RANLIB 24460old_postinstall_cmds=$lt_old_postinstall_cmds 24461old_postuninstall_cmds=$lt_old_postuninstall_cmds 24462 24463# Whether to use a lock for old archive extraction. 24464lock_old_archive_extraction=$lock_old_archive_extraction 24465 24466# A C compiler. 24467LTCC=$lt_CC 24468 24469# LTCC compiler flags. 24470LTCFLAGS=$lt_CFLAGS 24471 24472# Take the output of nm and produce a listing of raw symbols and C names. 24473global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24474 24475# Transform the output of nm in a proper C declaration. 24476global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24477 24478# Transform the output of nm in a C name address pair. 24479global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24480 24481# Transform the output of nm in a C name address pair when lib prefix is needed. 24482global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24483 24484# Specify filename containing input files for \$NM. 24485nm_file_list_spec=$lt_nm_file_list_spec 24486 24487# The root where to search for dependent libraries,and in which our libraries should be installed. 24488lt_sysroot=$lt_sysroot 24489 24490# The name of the directory that contains temporary libtool files. 24491objdir=$objdir 24492 24493# Used to examine libraries when file_magic_cmd begins with "file". 24494MAGIC_CMD=$MAGIC_CMD 24495 24496# Must we lock files when doing compilation? 24497need_locks=$lt_need_locks 24498 24499# Manifest tool. 24500MANIFEST_TOOL=$lt_MANIFEST_TOOL 24501 24502# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24503DSYMUTIL=$lt_DSYMUTIL 24504 24505# Tool to change global to local symbols on Mac OS X. 24506NMEDIT=$lt_NMEDIT 24507 24508# Tool to manipulate fat objects and archives on Mac OS X. 24509LIPO=$lt_LIPO 24510 24511# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24512OTOOL=$lt_OTOOL 24513 24514# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24515OTOOL64=$lt_OTOOL64 24516 24517# Old archive suffix (normally "a"). 24518libext=$libext 24519 24520# Shared library suffix (normally ".so"). 24521shrext_cmds=$lt_shrext_cmds 24522 24523# The commands to extract the exported symbol list from a shared archive. 24524extract_expsyms_cmds=$lt_extract_expsyms_cmds 24525 24526# Variables whose values should be saved in libtool wrapper scripts and 24527# restored at link time. 24528variables_saved_for_relink=$lt_variables_saved_for_relink 24529 24530# Do we need the "lib" prefix for modules? 24531need_lib_prefix=$need_lib_prefix 24532 24533# Do we need a version for libraries? 24534need_version=$need_version 24535 24536# Library versioning type. 24537version_type=$version_type 24538 24539# Shared library runtime path variable. 24540runpath_var=$runpath_var 24541 24542# Shared library path variable. 24543shlibpath_var=$shlibpath_var 24544 24545# Is shlibpath searched before the hard-coded library search path? 24546shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24547 24548# Format of library name prefix. 24549libname_spec=$lt_libname_spec 24550 24551# List of archive names. First name is the real one, the rest are links. 24552# The last name is the one that the linker finds with -lNAME 24553library_names_spec=$lt_library_names_spec 24554 24555# The coded name of the library, if different from the real name. 24556soname_spec=$lt_soname_spec 24557 24558# Permission mode override for installation of shared libraries. 24559install_override_mode=$lt_install_override_mode 24560 24561# Command to use after installation of a shared archive. 24562postinstall_cmds=$lt_postinstall_cmds 24563 24564# Command to use after uninstallation of a shared archive. 24565postuninstall_cmds=$lt_postuninstall_cmds 24566 24567# Commands used to finish a libtool library installation in a directory. 24568finish_cmds=$lt_finish_cmds 24569 24570# As "finish_cmds", except a single script fragment to be evaled but 24571# not shown. 24572finish_eval=$lt_finish_eval 24573 24574# Whether we should hardcode library paths into libraries. 24575hardcode_into_libs=$hardcode_into_libs 24576 24577# Compile-time system search path for libraries. 24578sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24579 24580# Run-time system search path for libraries. 24581sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 24582 24583# Whether dlopen is supported. 24584dlopen_support=$enable_dlopen 24585 24586# Whether dlopen of programs is supported. 24587dlopen_self=$enable_dlopen_self 24588 24589# Whether dlopen of statically linked programs is supported. 24590dlopen_self_static=$enable_dlopen_self_static 24591 24592# Commands to strip libraries. 24593old_striplib=$lt_old_striplib 24594striplib=$lt_striplib 24595 24596 24597# The linker used to build libraries. 24598LD=$lt_LD 24599 24600# How to create reloadable object files. 24601reload_flag=$lt_reload_flag 24602reload_cmds=$lt_reload_cmds 24603 24604# Commands used to build an old-style archive. 24605old_archive_cmds=$lt_old_archive_cmds 24606 24607# A language specific compiler. 24608CC=$lt_compiler 24609 24610# Is the compiler the GNU compiler? 24611with_gcc=$GCC 24612 24613# Compiler flag to turn off builtin functions. 24614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24615 24616# Additional compiler flags for building library objects. 24617pic_flag=$lt_lt_prog_compiler_pic 24618 24619# How to pass a linker flag through the compiler. 24620wl=$lt_lt_prog_compiler_wl 24621 24622# Compiler flag to prevent dynamic linking. 24623link_static_flag=$lt_lt_prog_compiler_static 24624 24625# Does compiler simultaneously support -c and -o options? 24626compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24627 24628# Whether or not to add -lc for building shared libraries. 24629build_libtool_need_lc=$archive_cmds_need_lc 24630 24631# Whether or not to disallow shared libs when runtime libs are static. 24632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24633 24634# Compiler flag to allow reflexive dlopens. 24635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24636 24637# Compiler flag to generate shared objects directly from archives. 24638whole_archive_flag_spec=$lt_whole_archive_flag_spec 24639 24640# Whether the compiler copes with passing no objects directly. 24641compiler_needs_object=$lt_compiler_needs_object 24642 24643# Create an old-style archive from a shared archive. 24644old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24645 24646# Create a temporary old-style archive to link instead of a shared archive. 24647old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24648 24649# Commands used to build a shared archive. 24650archive_cmds=$lt_archive_cmds 24651archive_expsym_cmds=$lt_archive_expsym_cmds 24652 24653# Commands used to build a loadable module if different from building 24654# a shared archive. 24655module_cmds=$lt_module_cmds 24656module_expsym_cmds=$lt_module_expsym_cmds 24657 24658# Whether we are building with GNU ld or not. 24659with_gnu_ld=$lt_with_gnu_ld 24660 24661# Flag that allows shared libraries with undefined symbols to be built. 24662allow_undefined_flag=$lt_allow_undefined_flag 24663 24664# Flag that enforces no undefined symbols. 24665no_undefined_flag=$lt_no_undefined_flag 24666 24667# Flag to hardcode \$libdir into a binary during linking. 24668# This must work even if \$libdir does not exist 24669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24670 24671# If ld is used when linking, flag to hardcode \$libdir into a binary 24672# during linking. This must work even if \$libdir does not exist. 24673hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 24674 24675# Whether we need a single "-rpath" flag with a separated argument. 24676hardcode_libdir_separator=$lt_hardcode_libdir_separator 24677 24678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24679# DIR into the resulting binary. 24680hardcode_direct=$hardcode_direct 24681 24682# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24683# DIR into the resulting binary and the resulting library dependency is 24684# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 24685# library is relocated. 24686hardcode_direct_absolute=$hardcode_direct_absolute 24687 24688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24689# into the resulting binary. 24690hardcode_minus_L=$hardcode_minus_L 24691 24692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24693# into the resulting binary. 24694hardcode_shlibpath_var=$hardcode_shlibpath_var 24695 24696# Set to "yes" if building a shared library automatically hardcodes DIR 24697# into the library and all subsequent libraries and executables linked 24698# against it. 24699hardcode_automatic=$hardcode_automatic 24700 24701# Set to yes if linker adds runtime paths of dependent libraries 24702# to runtime path list. 24703inherit_rpath=$inherit_rpath 24704 24705# Whether libtool must link a program against all its dependency libraries. 24706link_all_deplibs=$link_all_deplibs 24707 24708# Set to "yes" if exported symbols are required. 24709always_export_symbols=$always_export_symbols 24710 24711# The commands to list exported symbols. 24712export_symbols_cmds=$lt_export_symbols_cmds 24713 24714# Symbols that should not be listed in the preloaded symbols. 24715exclude_expsyms=$lt_exclude_expsyms 24716 24717# Symbols that must always be exported. 24718include_expsyms=$lt_include_expsyms 24719 24720# Commands necessary for linking programs (against libraries) with templates. 24721prelink_cmds=$lt_prelink_cmds 24722 24723# Commands necessary for finishing linking programs. 24724postlink_cmds=$lt_postlink_cmds 24725 24726# Specify filename containing input files. 24727file_list_spec=$lt_file_list_spec 24728 24729# How to hardcode a shared library path into an executable. 24730hardcode_action=$hardcode_action 24731 24732# The directories searched by this compiler when creating a shared library. 24733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 24734 24735# Dependencies to place before and after the objects being linked to 24736# create a shared library. 24737predep_objects=$lt_predep_objects 24738postdep_objects=$lt_postdep_objects 24739predeps=$lt_predeps 24740postdeps=$lt_postdeps 24741 24742# The library search path used internally by the compiler when linking 24743# a shared library. 24744compiler_lib_search_path=$lt_compiler_lib_search_path 24745 24746# ### END LIBTOOL CONFIG 24747 24748_LT_EOF 24749 24750 case $host_os in 24751 aix3*) 24752 cat <<\_LT_EOF >> "$cfgfile" 24753# AIX sometimes has problems with the GCC collect2 program. For some 24754# reason, if we set the COLLECT_NAMES environment variable, the problems 24755# vanish in a puff of smoke. 24756if test "X${COLLECT_NAMES+set}" != Xset; then 24757 COLLECT_NAMES= 24758 export COLLECT_NAMES 24759fi 24760_LT_EOF 24761 ;; 24762 esac 24763 24764 24765ltmain="$ac_aux_dir/ltmain.sh" 24766 24767 24768 # We use sed instead of cat because bash on DJGPP gets confused if 24769 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24770 # text mode, it properly converts lines to CR/LF. This bash problem 24771 # is reportedly fixed, but why not run on old versions too? 24772 sed '$q' "$ltmain" >> "$cfgfile" \ 24773 || (rm -f "$cfgfile"; exit 1) 24774 24775 if test x"$xsi_shell" = xyes; then 24776 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 24777func_dirname ()\ 24778{\ 24779\ case ${1} in\ 24780\ */*) func_dirname_result="${1%/*}${2}" ;;\ 24781\ * ) func_dirname_result="${3}" ;;\ 24782\ esac\ 24783} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 24784 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24786test 0 -eq $? || _lt_function_replace_fail=: 24787 24788 24789 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 24790func_basename ()\ 24791{\ 24792\ func_basename_result="${1##*/}"\ 24793} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 24794 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24796test 0 -eq $? || _lt_function_replace_fail=: 24797 24798 24799 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 24800func_dirname_and_basename ()\ 24801{\ 24802\ case ${1} in\ 24803\ */*) func_dirname_result="${1%/*}${2}" ;;\ 24804\ * ) func_dirname_result="${3}" ;;\ 24805\ esac\ 24806\ func_basename_result="${1##*/}"\ 24807} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 24808 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24810test 0 -eq $? || _lt_function_replace_fail=: 24811 24812 24813 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 24814func_stripname ()\ 24815{\ 24816\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 24817\ # positional parameters, so assign one to ordinary parameter first.\ 24818\ func_stripname_result=${3}\ 24819\ func_stripname_result=${func_stripname_result#"${1}"}\ 24820\ func_stripname_result=${func_stripname_result%"${2}"}\ 24821} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 24822 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24824test 0 -eq $? || _lt_function_replace_fail=: 24825 24826 24827 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 24828func_split_long_opt ()\ 24829{\ 24830\ func_split_long_opt_name=${1%%=*}\ 24831\ func_split_long_opt_arg=${1#*=}\ 24832} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 24833 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24835test 0 -eq $? || _lt_function_replace_fail=: 24836 24837 24838 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 24839func_split_short_opt ()\ 24840{\ 24841\ func_split_short_opt_arg=${1#??}\ 24842\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 24843} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 24844 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24846test 0 -eq $? || _lt_function_replace_fail=: 24847 24848 24849 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 24850func_lo2o ()\ 24851{\ 24852\ case ${1} in\ 24853\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 24854\ *) func_lo2o_result=${1} ;;\ 24855\ esac\ 24856} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 24857 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24859test 0 -eq $? || _lt_function_replace_fail=: 24860 24861 24862 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 24863func_xform ()\ 24864{\ 24865 func_xform_result=${1%.*}.lo\ 24866} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 24867 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24869test 0 -eq $? || _lt_function_replace_fail=: 24870 24871 24872 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 24873func_arith ()\ 24874{\ 24875 func_arith_result=$(( $* ))\ 24876} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 24877 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24879test 0 -eq $? || _lt_function_replace_fail=: 24880 24881 24882 sed -e '/^func_len ()$/,/^} # func_len /c\ 24883func_len ()\ 24884{\ 24885 func_len_result=${#1}\ 24886} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 24887 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24889test 0 -eq $? || _lt_function_replace_fail=: 24890 24891fi 24892 24893if test x"$lt_shell_append" = xyes; then 24894 sed -e '/^func_append ()$/,/^} # func_append /c\ 24895func_append ()\ 24896{\ 24897 eval "${1}+=\\${2}"\ 24898} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 24899 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24901test 0 -eq $? || _lt_function_replace_fail=: 24902 24903 24904 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 24905func_append_quoted ()\ 24906{\ 24907\ func_quote_for_eval "${2}"\ 24908\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 24909} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 24910 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24912test 0 -eq $? || _lt_function_replace_fail=: 24913 24914 24915 # Save a `func_append' function call where possible by direct use of '+=' 24916 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 24917 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24919 test 0 -eq $? || _lt_function_replace_fail=: 24920else 24921 # Save a `func_append' function call even when '+=' is not available 24922 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 24923 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24925 test 0 -eq $? || _lt_function_replace_fail=: 24926fi 24927 24928if test x"$_lt_function_replace_fail" = x":"; then 24929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 24930$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 24931fi 24932 24933 24934 mv -f "$cfgfile" "$ofile" || 24935 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24936 chmod +x "$ofile" 24937 24938 24939 cat <<_LT_EOF >> "$ofile" 24940 24941# ### BEGIN LIBTOOL TAG CONFIG: CXX 24942 24943# The linker used to build libraries. 24944LD=$lt_LD_CXX 24945 24946# How to create reloadable object files. 24947reload_flag=$lt_reload_flag_CXX 24948reload_cmds=$lt_reload_cmds_CXX 24949 24950# Commands used to build an old-style archive. 24951old_archive_cmds=$lt_old_archive_cmds_CXX 24952 24953# A language specific compiler. 24954CC=$lt_compiler_CXX 24955 24956# Is the compiler the GNU compiler? 24957with_gcc=$GCC_CXX 24958 24959# Compiler flag to turn off builtin functions. 24960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24961 24962# Additional compiler flags for building library objects. 24963pic_flag=$lt_lt_prog_compiler_pic_CXX 24964 24965# How to pass a linker flag through the compiler. 24966wl=$lt_lt_prog_compiler_wl_CXX 24967 24968# Compiler flag to prevent dynamic linking. 24969link_static_flag=$lt_lt_prog_compiler_static_CXX 24970 24971# Does compiler simultaneously support -c and -o options? 24972compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24973 24974# Whether or not to add -lc for building shared libraries. 24975build_libtool_need_lc=$archive_cmds_need_lc_CXX 24976 24977# Whether or not to disallow shared libs when runtime libs are static. 24978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24979 24980# Compiler flag to allow reflexive dlopens. 24981export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24982 24983# Compiler flag to generate shared objects directly from archives. 24984whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24985 24986# Whether the compiler copes with passing no objects directly. 24987compiler_needs_object=$lt_compiler_needs_object_CXX 24988 24989# Create an old-style archive from a shared archive. 24990old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24991 24992# Create a temporary old-style archive to link instead of a shared archive. 24993old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24994 24995# Commands used to build a shared archive. 24996archive_cmds=$lt_archive_cmds_CXX 24997archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24998 24999# Commands used to build a loadable module if different from building 25000# a shared archive. 25001module_cmds=$lt_module_cmds_CXX 25002module_expsym_cmds=$lt_module_expsym_cmds_CXX 25003 25004# Whether we are building with GNU ld or not. 25005with_gnu_ld=$lt_with_gnu_ld_CXX 25006 25007# Flag that allows shared libraries with undefined symbols to be built. 25008allow_undefined_flag=$lt_allow_undefined_flag_CXX 25009 25010# Flag that enforces no undefined symbols. 25011no_undefined_flag=$lt_no_undefined_flag_CXX 25012 25013# Flag to hardcode \$libdir into a binary during linking. 25014# This must work even if \$libdir does not exist 25015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 25016 25017# If ld is used when linking, flag to hardcode \$libdir into a binary 25018# during linking. This must work even if \$libdir does not exist. 25019hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 25020 25021# Whether we need a single "-rpath" flag with a separated argument. 25022hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 25023 25024# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25025# DIR into the resulting binary. 25026hardcode_direct=$hardcode_direct_CXX 25027 25028# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 25029# DIR into the resulting binary and the resulting library dependency is 25030# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 25031# library is relocated. 25032hardcode_direct_absolute=$hardcode_direct_absolute_CXX 25033 25034# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25035# into the resulting binary. 25036hardcode_minus_L=$hardcode_minus_L_CXX 25037 25038# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25039# into the resulting binary. 25040hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 25041 25042# Set to "yes" if building a shared library automatically hardcodes DIR 25043# into the library and all subsequent libraries and executables linked 25044# against it. 25045hardcode_automatic=$hardcode_automatic_CXX 25046 25047# Set to yes if linker adds runtime paths of dependent libraries 25048# to runtime path list. 25049inherit_rpath=$inherit_rpath_CXX 25050 25051# Whether libtool must link a program against all its dependency libraries. 25052link_all_deplibs=$link_all_deplibs_CXX 25053 25054# Set to "yes" if exported symbols are required. 25055always_export_symbols=$always_export_symbols_CXX 25056 25057# The commands to list exported symbols. 25058export_symbols_cmds=$lt_export_symbols_cmds_CXX 25059 25060# Symbols that should not be listed in the preloaded symbols. 25061exclude_expsyms=$lt_exclude_expsyms_CXX 25062 25063# Symbols that must always be exported. 25064include_expsyms=$lt_include_expsyms_CXX 25065 25066# Commands necessary for linking programs (against libraries) with templates. 25067prelink_cmds=$lt_prelink_cmds_CXX 25068 25069# Commands necessary for finishing linking programs. 25070postlink_cmds=$lt_postlink_cmds_CXX 25071 25072# Specify filename containing input files. 25073file_list_spec=$lt_file_list_spec_CXX 25074 25075# How to hardcode a shared library path into an executable. 25076hardcode_action=$hardcode_action_CXX 25077 25078# The directories searched by this compiler when creating a shared library. 25079compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 25080 25081# Dependencies to place before and after the objects being linked to 25082# create a shared library. 25083predep_objects=$lt_predep_objects_CXX 25084postdep_objects=$lt_postdep_objects_CXX 25085predeps=$lt_predeps_CXX 25086postdeps=$lt_postdeps_CXX 25087 25088# The library search path used internally by the compiler when linking 25089# a shared library. 25090compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 25091 25092# ### END LIBTOOL TAG CONFIG: CXX 25093_LT_EOF 25094 25095 ;; 25096 "default":C) 25097 : >build-deps 25098 if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend 25099 ;; 25100 25101 esac 25102done # for ac_tag 25103 25104 25105as_fn_exit 0 25106_ACEOF 25107ac_clean_files=$ac_clean_files_save 25108 25109test $ac_write_fail = 0 || 25110 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25111 25112 25113# configure is writing to config.log, and then calls config.status. 25114# config.status does its own redirection, appending to config.log. 25115# Unfortunately, on DOS this fails, as config.log is still kept open 25116# by configure, so config.status won't be able to write to it; its 25117# output is simply discarded. So we exec the FD to /dev/null, 25118# effectively closing config.log, so it can be properly (re)opened and 25119# appended to by config.status. When coming back to configure, we 25120# need to make the FD available again. 25121if test "$no_create" != yes; then 25122 ac_cs_success=: 25123 ac_config_status_args= 25124 test "$silent" = yes && 25125 ac_config_status_args="$ac_config_status_args --quiet" 25126 exec 5>/dev/null 25127 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25128 exec 5>>config.log 25129 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25130 # would make configure fail if this is the last instruction. 25131 $ac_cs_success || as_fn_exit 1 25132fi 25133if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25135$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25136fi 25137 25138