1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="README" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636SDL_CONFIG 637SDL_LIBS 638SDL_CFLAGS 639PKG_CONFIG 640SDL_VERSION 641WINDRES 642am__fastdepOBJC_FALSE 643am__fastdepOBJC_TRUE 644OBJCDEPMODE 645ac_ct_OBJC 646OBJCFLAGS 647OBJC 648am__fastdepCC_FALSE 649am__fastdepCC_TRUE 650CCDEPMODE 651am__nodep 652AMDEPBACKSLASH 653AMDEP_FALSE 654AMDEP_TRUE 655am__quote 656am__include 657DEPDIR 658am__untar 659am__tar 660AMTAR 661am__leading_dot 662SET_MAKE 663mkdir_p 664MKDIR_P 665INSTALL_STRIP_PROGRAM 666install_sh 667MAKEINFO 668AUTOHEADER 669AUTOMAKE 670AUTOCONF 671ACLOCAL 672PACKAGE 673CYGPATH_W 674am__isrc 675INSTALL_DATA 676INSTALL_SCRIPT 677INSTALL_PROGRAM 678LT_AGE 679LT_REVISION 680LT_CURRENT 681LT_RELEASE 682CPP 683OTOOL64 684OTOOL 685LIPO 686NMEDIT 687DSYMUTIL 688MANIFEST_TOOL 689AWK 690RANLIB 691STRIP 692ac_ct_AR 693AR 694LN_S 695NM 696ac_ct_DUMPBIN 697DUMPBIN 698LD 699FGREP 700EGREP 701GREP 702SED 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710host_os 711host_vendor 712host_cpu 713host 714build_os 715build_vendor 716build_cpu 717build 718LIBTOOL 719OBJDUMP 720DLLTOOL 721AS 722VERSION 723BINARY_AGE 724INTERFACE_AGE 725MICRO_VERSION 726MINOR_VERSION 727MAJOR_VERSION 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_shared 770enable_static 771with_pic 772enable_fast_install 773with_gnu_ld 774with_sysroot 775enable_libtool_lock 776enable_dependency_tracking 777enable_imageio 778enable_mmx 779with_sdl_prefix 780with_sdl_exec_prefix 781enable_sdltest 782' 783 ac_precious_vars='build_alias 784host_alias 785target_alias 786CC 787CFLAGS 788LDFLAGS 789LIBS 790CPPFLAGS 791CPP 792OBJC 793OBJCFLAGS 794PKG_CONFIG 795SDL_CFLAGS 796SDL_LIBS' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 # Accept the important Cygnus configure options, so we can diagnose typos. 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088 ac_prev=sbindir ;; 1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090 | --sbi=* | --sb=*) 1091 sbindir=$ac_optarg ;; 1092 1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095 | --sharedst | --shareds | --shared | --share | --shar \ 1096 | --sha | --sh) 1097 ac_prev=sharedstatedir ;; 1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101 | --sha=* | --sh=*) 1102 sharedstatedir=$ac_optarg ;; 1103 1104 -site | --site | --sit) 1105 ac_prev=site ;; 1106 -site=* | --site=* | --sit=*) 1107 site=$ac_optarg ;; 1108 1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110 ac_prev=srcdir ;; 1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112 srcdir=$ac_optarg ;; 1113 1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115 | --syscon | --sysco | --sysc | --sys | --sy) 1116 ac_prev=sysconfdir ;; 1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119 sysconfdir=$ac_optarg ;; 1120 1121 -target | --target | --targe | --targ | --tar | --ta | --t) 1122 ac_prev=target_alias ;; 1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124 target_alias=$ac_optarg ;; 1125 1126 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127 verbose=yes ;; 1128 1129 -version | --version | --versio | --versi | --vers | -V) 1130 ac_init_version=: ;; 1131 1132 -with-* | --with-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=\$ac_optarg ;; 1147 1148 -without-* | --without-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1183Try \`$0 --help' for more information" 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 case $ac_envvar in #( 1190 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1192 esac 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1202 ;; 1203 1204 esac 1205done 1206 1207if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 as_fn_error $? "missing argument to $ac_option" 1210fi 1211 1212if test -n "$ac_unrecognized_opts"; then 1213 case $enable_option_checking in 1214 no) ;; 1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1217 esac 1218fi 1219 1220# Check all directory arguments for consistency. 1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222 datadir sysconfdir sharedstatedir localstatedir includedir \ 1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224 libdir localedir mandir 1225do 1226 eval ac_val=\$$ac_var 1227 # Remove trailing slashes. 1228 case $ac_val in 1229 */ ) 1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1231 eval $ac_var=\$ac_val;; 1232 esac 1233 # Be sure to have absolute directory names. 1234 case $ac_val in 1235 [\\/$]* | ?:[\\/]* ) continue;; 1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1237 esac 1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1239done 1240 1241# There might be people who depend on the old broken behavior: `$host' 1242# used to hold the argument of --host etc. 1243# FIXME: To remove some day. 1244build=$build_alias 1245host=$host_alias 1246target=$target_alias 1247 1248# FIXME: To remove some day. 1249if test "x$host_alias" != x; then 1250 if test "x$build_alias" = x; then 1251 cross_compiling=maybe 1252 elif test "x$build_alias" != "x$host_alias"; then 1253 cross_compiling=yes 1254 fi 1255fi 1256 1257ac_tool_prefix= 1258test -n "$host_alias" && ac_tool_prefix=$host_alias- 1259 1260test "$silent" = yes && exec 6>/dev/null 1261 1262 1263ac_pwd=`pwd` && test -n "$ac_pwd" && 1264ac_ls_di=`ls -di .` && 1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1266 as_fn_error $? "working directory cannot be determined" 1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1268 as_fn_error $? "pwd does not report name of working directory" 1269 1270 1271# Find the source files, if location was not specified. 1272if test -z "$srcdir"; then 1273 ac_srcdir_defaulted=yes 1274 # Try the directory containing this script, then the parent directory. 1275 ac_confdir=`$as_dirname -- "$as_myself" || 1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1277 X"$as_myself" : 'X\(//\)[^/]' \| \ 1278 X"$as_myself" : 'X\(//\)$' \| \ 1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1280$as_echo X"$as_myself" | 1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)[^/].*/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\).*/{ 1294 s//\1/ 1295 q 1296 } 1297 s/.*/./; q'` 1298 srcdir=$ac_confdir 1299 if test ! -r "$srcdir/$ac_unique_file"; then 1300 srcdir=.. 1301 fi 1302else 1303 ac_srcdir_defaulted=no 1304fi 1305if test ! -r "$srcdir/$ac_unique_file"; then 1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1308fi 1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1310ac_abs_confdir=`( 1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1312 pwd)` 1313# When building in place, set srcdir=. 1314if test "$ac_abs_confdir" = "$ac_pwd"; then 1315 srcdir=. 1316fi 1317# Remove unnecessary trailing slashes from srcdir. 1318# Double slashes in file names in object file debugging info 1319# mess up M-x gdb in Emacs. 1320case $srcdir in 1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1322esac 1323for ac_var in $ac_precious_vars; do 1324 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_env_${ac_var}_value=\$${ac_var} 1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1328done 1329 1330# 1331# Report the --help message. 1332# 1333if test "$ac_init_help" = "long"; then 1334 # Omit some internal or obsolete options to make the list less imposing. 1335 # This message is too long to be a string in the A/UX 3.1 sh. 1336 cat <<_ACEOF 1337\`configure' configures this package to adapt to many kinds of systems. 1338 1339Usage: $0 [OPTION]... [VAR=VALUE]... 1340 1341To assign environment variables (e.g., CC, CFLAGS...), specify them as 1342VAR=VALUE. See below for descriptions of some of the useful variables. 1343 1344Defaults for the options are specified in brackets. 1345 1346Configuration: 1347 -h, --help display this help and exit 1348 --help=short display options specific to this package 1349 --help=recursive display the short help of all the included packages 1350 -V, --version display version information and exit 1351 -q, --quiet, --silent do not print \`checking ...' messages 1352 --cache-file=FILE cache test results in FILE [disabled] 1353 -C, --config-cache alias for \`--cache-file=config.cache' 1354 -n, --no-create do not create output files 1355 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1356 1357Installation directories: 1358 --prefix=PREFIX install architecture-independent files in PREFIX 1359 [$ac_default_prefix] 1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1361 [PREFIX] 1362 1363By default, \`make install' will install all the files in 1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1365an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1366for instance \`--prefix=\$HOME'. 1367 1368For better control, use the options below. 1369 1370Fine tuning of the installation directories: 1371 --bindir=DIR user executables [EPREFIX/bin] 1372 --sbindir=DIR system admin executables [EPREFIX/sbin] 1373 --libexecdir=DIR program executables [EPREFIX/libexec] 1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1377 --libdir=DIR object code libraries [EPREFIX/lib] 1378 --includedir=DIR C header files [PREFIX/include] 1379 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1382 --infodir=DIR info documentation [DATAROOTDIR/info] 1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1384 --mandir=DIR man documentation [DATAROOTDIR/man] 1385 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1386 --htmldir=DIR html documentation [DOCDIR] 1387 --dvidir=DIR dvi documentation [DOCDIR] 1388 --pdfdir=DIR pdf documentation [DOCDIR] 1389 --psdir=DIR ps documentation [DOCDIR] 1390_ACEOF 1391 1392 cat <<\_ACEOF 1393 1394Program names: 1395 --program-prefix=PREFIX prepend PREFIX to installed program names 1396 --program-suffix=SUFFIX append SUFFIX to installed program names 1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1398 1399System types: 1400 --build=BUILD configure for building on BUILD [guessed] 1401 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1402_ACEOF 1403fi 1404 1405if test -n "$ac_init_help"; then 1406 1407 cat <<\_ACEOF 1408 1409Optional Features: 1410 --disable-option-checking ignore unrecognized --enable/--with options 1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1413 --enable-shared[=PKGS] build shared libraries [default=yes] 1414 --enable-static[=PKGS] build static libraries [default=yes] 1415 --enable-fast-install[=PKGS] 1416 optimize for fast installation [default=yes] 1417 --disable-libtool-lock avoid locking (might break parallel builds) 1418 --disable-dependency-tracking speeds up one-time build 1419 --enable-dependency-tracking do not reject slow dependency extractors 1420 --enable-imageio use native Mac OS X frameworks for loading images 1421 [default=yes] 1422 --enable-mmx use mmx assembly on x86 default=yes, disable this on non-x86 platforms 1423 --disable-sdltest Do not try to compile and run a test SDL program 1424 1425Optional Packages: 1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1428 --with-pic try to use only PIC/non-PIC objects [default=use 1429 both] 1430 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1431 --with-sysroot=DIR Search for dependent libraries within DIR 1432 (or the compiler's sysroot if not specified). 1433 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1434 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1435 1436Some influential environment variables: 1437 CC C compiler command 1438 CFLAGS C compiler flags 1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1440 nonstandard directory <lib dir> 1441 LIBS libraries to pass to the linker, e.g. -l<library> 1442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1443 you have headers in a nonstandard directory <include dir> 1444 CPP C preprocessor 1445 OBJC Objective C compiler command 1446 OBJCFLAGS Objective C compiler flags 1447 PKG_CONFIG path to pkg-config utility 1448 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config 1449 SDL_LIBS linker flags for SDL, overriding pkg-config 1450 1451Use these variables to override the choices made by `configure' or to help 1452it to find libraries and programs with nonstandard names/locations. 1453 1454Report bugs to the package provider. 1455_ACEOF 1456ac_status=$? 1457fi 1458 1459if test "$ac_init_help" = "recursive"; then 1460 # If there are subdirs, report their specific --help. 1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1462 test -d "$ac_dir" || 1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1464 continue 1465 ac_builddir=. 1466 1467case "$ac_dir" in 1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1469*) 1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1471 # A ".." for each directory in $ac_dir_suffix. 1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1473 case $ac_top_builddir_sub in 1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1476 esac ;; 1477esac 1478ac_abs_top_builddir=$ac_pwd 1479ac_abs_builddir=$ac_pwd$ac_dir_suffix 1480# for backward compatibility: 1481ac_top_builddir=$ac_top_build_prefix 1482 1483case $srcdir in 1484 .) # We are building in place. 1485 ac_srcdir=. 1486 ac_top_srcdir=$ac_top_builddir_sub 1487 ac_abs_top_srcdir=$ac_pwd ;; 1488 [\\/]* | ?:[\\/]* ) # Absolute name. 1489 ac_srcdir=$srcdir$ac_dir_suffix; 1490 ac_top_srcdir=$srcdir 1491 ac_abs_top_srcdir=$srcdir ;; 1492 *) # Relative name. 1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1494 ac_top_srcdir=$ac_top_build_prefix$srcdir 1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1496esac 1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1498 1499 cd "$ac_dir" || { ac_status=$?; continue; } 1500 # Check for guested configure. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512fi 1513 1514test -n "$ac_init_help" && exit $ac_status 1515if $ac_init_version; then 1516 cat <<\_ACEOF 1517configure 1518generated by GNU Autoconf 2.69 1519 1520Copyright (C) 2012 Free Software Foundation, Inc. 1521This configure script is free software; the Free Software Foundation 1522gives unlimited permission to copy, distribute and modify it. 1523_ACEOF 1524 exit 1525fi 1526 1527## ------------------------ ## 1528## Autoconf initialization. ## 1529## ------------------------ ## 1530 1531# ac_fn_c_try_compile LINENO 1532# -------------------------- 1533# Try to compile conftest.$ac_ext, and return whether this succeeded. 1534ac_fn_c_try_compile () 1535{ 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 rm -f conftest.$ac_objext 1538 if { { ac_try="$ac_compile" 1539case "(($ac_try" in 1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1541 *) ac_try_echo=$ac_try;; 1542esac 1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1544$as_echo "$ac_try_echo"; } >&5 1545 (eval "$ac_compile") 2>conftest.err 1546 ac_status=$? 1547 if test -s conftest.err; then 1548 grep -v '^ *+' conftest.err >conftest.er1 1549 cat conftest.er1 >&5 1550 mv -f conftest.er1 conftest.err 1551 fi 1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1553 test $ac_status = 0; } && { 1554 test -z "$ac_c_werror_flag" || 1555 test ! -s conftest.err 1556 } && test -s conftest.$ac_objext; then : 1557 ac_retval=0 1558else 1559 $as_echo "$as_me: failed program was:" >&5 1560sed 's/^/| /' conftest.$ac_ext >&5 1561 1562 ac_retval=1 1563fi 1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1565 as_fn_set_status $ac_retval 1566 1567} # ac_fn_c_try_compile 1568 1569# ac_fn_c_try_link LINENO 1570# ----------------------- 1571# Try to link conftest.$ac_ext, and return whether this succeeded. 1572ac_fn_c_try_link () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 rm -f conftest.$ac_objext conftest$ac_exeext 1576 if { { ac_try="$ac_link" 1577case "(($ac_try" in 1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1579 *) ac_try_echo=$ac_try;; 1580esac 1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1582$as_echo "$ac_try_echo"; } >&5 1583 (eval "$ac_link") 2>conftest.err 1584 ac_status=$? 1585 if test -s conftest.err; then 1586 grep -v '^ *+' conftest.err >conftest.er1 1587 cat conftest.er1 >&5 1588 mv -f conftest.er1 conftest.err 1589 fi 1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1591 test $ac_status = 0; } && { 1592 test -z "$ac_c_werror_flag" || 1593 test ! -s conftest.err 1594 } && test -s conftest$ac_exeext && { 1595 test "$cross_compiling" = yes || 1596 test -x conftest$ac_exeext 1597 }; then : 1598 ac_retval=0 1599else 1600 $as_echo "$as_me: failed program was:" >&5 1601sed 's/^/| /' conftest.$ac_ext >&5 1602 1603 ac_retval=1 1604fi 1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1607 # interfere with the next link command; also delete a directory that is 1608 # left behind by Apple's compiler. We do this before executing the actions. 1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613} # ac_fn_c_try_link 1614 1615# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1616# ------------------------------------------------------- 1617# Tests whether HEADER exists and can be compiled using the include files in 1618# INCLUDES, setting the cache variable VAR accordingly. 1619ac_fn_c_check_header_compile () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1623$as_echo_n "checking for $2... " >&6; } 1624if eval \${$3+:} false; then : 1625 $as_echo_n "(cached) " >&6 1626else 1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1628/* end confdefs.h. */ 1629$4 1630#include <$2> 1631_ACEOF 1632if ac_fn_c_try_compile "$LINENO"; then : 1633 eval "$3=yes" 1634else 1635 eval "$3=no" 1636fi 1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1638fi 1639eval ac_res=\$$3 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1641$as_echo "$ac_res" >&6; } 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 1644} # ac_fn_c_check_header_compile 1645 1646# ac_fn_c_try_cpp LINENO 1647# ---------------------- 1648# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_cpp () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 if { { ac_try="$ac_cpp conftest.$ac_ext" 1653case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } > conftest.i && { 1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1669 test ! -s conftest.err 1670 }; then : 1671 ac_retval=0 1672else 1673 $as_echo "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=1 1677fi 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 as_fn_set_status $ac_retval 1680 1681} # ac_fn_c_try_cpp 1682 1683# ac_fn_c_try_run LINENO 1684# ---------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1686# that executables *can* be run. 1687ac_fn_c_try_run () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>&5 1698 ac_status=$? 1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1701 { { case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_try") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; }; }; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: program exited with status $ac_status" >&5 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=$ac_status 1718fi 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_run 1724 1725# ac_fn_c_check_func LINENO FUNC VAR 1726# ---------------------------------- 1727# Tests whether FUNC exists, setting the cache variable VAR accordingly 1728ac_fn_c_check_func () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1732$as_echo_n "checking for $2... " >&6; } 1733if eval \${$3+:} false; then : 1734 $as_echo_n "(cached) " >&6 1735else 1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1740#define $2 innocuous_$2 1741 1742/* System header to define __stub macros and hopefully few prototypes, 1743 which can conflict with char $2 (); below. 1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1745 <limits.h> exists even on freestanding compilers. */ 1746 1747#ifdef __STDC__ 1748# include <limits.h> 1749#else 1750# include <assert.h> 1751#endif 1752 1753#undef $2 1754 1755/* Override any GCC internal prototype to avoid an error. 1756 Use char because int might match the return type of a GCC 1757 builtin and then its argument prototype would still apply. */ 1758#ifdef __cplusplus 1759extern "C" 1760#endif 1761char $2 (); 1762/* The GNU C library defines this for functions which it implements 1763 to always fail with ENOSYS. Some functions are actually named 1764 something starting with __ and the normal name is an alias. */ 1765#if defined __stub_$2 || defined __stub___$2 1766choke me 1767#endif 1768 1769int 1770main () 1771{ 1772return $2 (); 1773 ; 1774 return 0; 1775} 1776_ACEOF 1777if ac_fn_c_try_link "$LINENO"; then : 1778 eval "$3=yes" 1779else 1780 eval "$3=no" 1781fi 1782rm -f core conftest.err conftest.$ac_objext \ 1783 conftest$ac_exeext conftest.$ac_ext 1784fi 1785eval ac_res=\$$3 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787$as_echo "$ac_res" >&6; } 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 1790} # ac_fn_c_check_func 1791 1792# ac_fn_objc_try_compile LINENO 1793# ----------------------------- 1794# Try to compile conftest.$ac_ext, and return whether this succeeded. 1795ac_fn_objc_try_compile () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 rm -f conftest.$ac_objext 1799 if { { ac_try="$ac_compile" 1800case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_compile") 2>conftest.err 1807 ac_status=$? 1808 if test -s conftest.err; then 1809 grep -v '^ *+' conftest.err >conftest.er1 1810 cat conftest.er1 >&5 1811 mv -f conftest.er1 conftest.err 1812 fi 1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1814 test $ac_status = 0; } && { 1815 test -z "$ac_objc_werror_flag" || 1816 test ! -s conftest.err 1817 } && test -s conftest.$ac_objext; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=1 1824fi 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828} # ac_fn_objc_try_compile 1829 1830# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1831# -------------------------------------------- 1832# Tries to find the compile-time value of EXPR in a program that includes 1833# INCLUDES, setting VAR accordingly. Returns whether the value could be 1834# computed 1835ac_fn_c_compute_int () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 if test "$cross_compiling" = yes; then 1839 # Depending upon the size, compute the lo and hi bounds. 1840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1841/* end confdefs.h. */ 1842$4 1843int 1844main () 1845{ 1846static int test_array [1 - 2 * !(($2) >= 0)]; 1847test_array [0] = 0; 1848return test_array [0]; 1849 1850 ; 1851 return 0; 1852} 1853_ACEOF 1854if ac_fn_c_try_compile "$LINENO"; then : 1855 ac_lo=0 ac_mid=0 1856 while :; do 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858/* end confdefs.h. */ 1859$4 1860int 1861main () 1862{ 1863static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1864test_array [0] = 0; 1865return test_array [0]; 1866 1867 ; 1868 return 0; 1869} 1870_ACEOF 1871if ac_fn_c_try_compile "$LINENO"; then : 1872 ac_hi=$ac_mid; break 1873else 1874 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1875 if test $ac_lo -le $ac_mid; then 1876 ac_lo= ac_hi= 1877 break 1878 fi 1879 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1880fi 1881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1882 done 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887int 1888main () 1889{ 1890static int test_array [1 - 2 * !(($2) < 0)]; 1891test_array [0] = 0; 1892return test_array [0]; 1893 1894 ; 1895 return 0; 1896} 1897_ACEOF 1898if ac_fn_c_try_compile "$LINENO"; then : 1899 ac_hi=-1 ac_mid=-1 1900 while :; do 1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1902/* end confdefs.h. */ 1903$4 1904int 1905main () 1906{ 1907static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1908test_array [0] = 0; 1909return test_array [0]; 1910 1911 ; 1912 return 0; 1913} 1914_ACEOF 1915if ac_fn_c_try_compile "$LINENO"; then : 1916 ac_lo=$ac_mid; break 1917else 1918 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1919 if test $ac_mid -le $ac_hi; then 1920 ac_lo= ac_hi= 1921 break 1922 fi 1923 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1924fi 1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1926 done 1927else 1928 ac_lo= ac_hi= 1929fi 1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931fi 1932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1933# Binary search between lo and hi bounds. 1934while test "x$ac_lo" != "x$ac_hi"; do 1935 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1937/* end confdefs.h. */ 1938$4 1939int 1940main () 1941{ 1942static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1943test_array [0] = 0; 1944return test_array [0]; 1945 1946 ; 1947 return 0; 1948} 1949_ACEOF 1950if ac_fn_c_try_compile "$LINENO"; then : 1951 ac_hi=$ac_mid 1952else 1953 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1954fi 1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1956done 1957case $ac_lo in #(( 1958?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1959'') ac_retval=1 ;; 1960esac 1961 else 1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964$4 1965static long int longval () { return $2; } 1966static unsigned long int ulongval () { return $2; } 1967#include <stdio.h> 1968#include <stdlib.h> 1969int 1970main () 1971{ 1972 1973 FILE *f = fopen ("conftest.val", "w"); 1974 if (! f) 1975 return 1; 1976 if (($2) < 0) 1977 { 1978 long int i = longval (); 1979 if (i != ($2)) 1980 return 1; 1981 fprintf (f, "%ld", i); 1982 } 1983 else 1984 { 1985 unsigned long int i = ulongval (); 1986 if (i != ($2)) 1987 return 1; 1988 fprintf (f, "%lu", i); 1989 } 1990 /* Do not output a trailing newline, as this causes \r\n confusion 1991 on some platforms. */ 1992 return ferror (f) || fclose (f) != 0; 1993 1994 ; 1995 return 0; 1996} 1997_ACEOF 1998if ac_fn_c_try_run "$LINENO"; then : 1999 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2000else 2001 ac_retval=1 2002fi 2003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2004 conftest.$ac_objext conftest.beam conftest.$ac_ext 2005rm -f conftest.val 2006 2007 fi 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 as_fn_set_status $ac_retval 2010 2011} # ac_fn_c_compute_int 2012cat >config.log <<_ACEOF 2013This file contains any messages produced by compilers while 2014running configure, to aid debugging if configure makes a mistake. 2015 2016It was created by $as_me, which was 2017generated by GNU Autoconf 2.69. Invocation command line was 2018 2019 $ $0 $@ 2020 2021_ACEOF 2022exec 5>>config.log 2023{ 2024cat <<_ASUNAME 2025## --------- ## 2026## Platform. ## 2027## --------- ## 2028 2029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2030uname -m = `(uname -m) 2>/dev/null || echo unknown` 2031uname -r = `(uname -r) 2>/dev/null || echo unknown` 2032uname -s = `(uname -s) 2>/dev/null || echo unknown` 2033uname -v = `(uname -v) 2>/dev/null || echo unknown` 2034 2035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2037 2038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2041/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2045 2046_ASUNAME 2047 2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049for as_dir in $PATH 2050do 2051 IFS=$as_save_IFS 2052 test -z "$as_dir" && as_dir=. 2053 $as_echo "PATH: $as_dir" 2054 done 2055IFS=$as_save_IFS 2056 2057} >&5 2058 2059cat >&5 <<_ACEOF 2060 2061 2062## ----------- ## 2063## Core tests. ## 2064## ----------- ## 2065 2066_ACEOF 2067 2068 2069# Keep a trace of the command line. 2070# Strip out --no-create and --no-recursion so they do not pile up. 2071# Strip out --silent because we don't want to record it for future runs. 2072# Also quote any args containing shell meta-characters. 2073# Make two passes to allow for proper duplicate-argument suppression. 2074ac_configure_args= 2075ac_configure_args0= 2076ac_configure_args1= 2077ac_must_keep_next=false 2078for ac_pass in 1 2 2079do 2080 for ac_arg 2081 do 2082 case $ac_arg in 2083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2085 | -silent | --silent | --silen | --sile | --sil) 2086 continue ;; 2087 *\'*) 2088 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2089 esac 2090 case $ac_pass in 2091 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2092 2) 2093 as_fn_append ac_configure_args1 " '$ac_arg'" 2094 if test $ac_must_keep_next = true; then 2095 ac_must_keep_next=false # Got value, back to normal. 2096 else 2097 case $ac_arg in 2098 *=* | --config-cache | -C | -disable-* | --disable-* \ 2099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2101 | -with-* | --with-* | -without-* | --without-* | --x) 2102 case "$ac_configure_args0 " in 2103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2104 esac 2105 ;; 2106 -* ) ac_must_keep_next=true ;; 2107 esac 2108 fi 2109 as_fn_append ac_configure_args " '$ac_arg'" 2110 ;; 2111 esac 2112 done 2113done 2114{ ac_configure_args0=; unset ac_configure_args0;} 2115{ ac_configure_args1=; unset ac_configure_args1;} 2116 2117# When interrupted or exit'd, cleanup temporary files, and complete 2118# config.log. We remove comments because anyway the quotes in there 2119# would cause problems or look ugly. 2120# WARNING: Use '\'' to represent an apostrophe within the trap. 2121# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2122trap 'exit_status=$? 2123 # Save into config.log some information that might help in debugging. 2124 { 2125 echo 2126 2127 $as_echo "## ---------------- ## 2128## Cache variables. ## 2129## ---------------- ##" 2130 echo 2131 # The following way of writing the cache mishandles newlines in values, 2132( 2133 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2134 eval ac_val=\$$ac_var 2135 case $ac_val in #( 2136 *${as_nl}*) 2137 case $ac_var in #( 2138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2139$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2140 esac 2141 case $ac_var in #( 2142 _ | IFS | as_nl) ;; #( 2143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2144 *) { eval $ac_var=; unset $ac_var;} ;; 2145 esac ;; 2146 esac 2147 done 2148 (set) 2>&1 | 2149 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2150 *${as_nl}ac_space=\ *) 2151 sed -n \ 2152 "s/'\''/'\''\\\\'\'''\''/g; 2153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2154 ;; #( 2155 *) 2156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2157 ;; 2158 esac | 2159 sort 2160) 2161 echo 2162 2163 $as_echo "## ----------------- ## 2164## Output variables. ## 2165## ----------------- ##" 2166 echo 2167 for ac_var in $ac_subst_vars 2168 do 2169 eval ac_val=\$$ac_var 2170 case $ac_val in 2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2172 esac 2173 $as_echo "$ac_var='\''$ac_val'\''" 2174 done | sort 2175 echo 2176 2177 if test -n "$ac_subst_files"; then 2178 $as_echo "## ------------------- ## 2179## File substitutions. ## 2180## ------------------- ##" 2181 echo 2182 for ac_var in $ac_subst_files 2183 do 2184 eval ac_val=\$$ac_var 2185 case $ac_val in 2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2187 esac 2188 $as_echo "$ac_var='\''$ac_val'\''" 2189 done | sort 2190 echo 2191 fi 2192 2193 if test -s confdefs.h; then 2194 $as_echo "## ----------- ## 2195## confdefs.h. ## 2196## ----------- ##" 2197 echo 2198 cat confdefs.h 2199 echo 2200 fi 2201 test "$ac_signal" != 0 && 2202 $as_echo "$as_me: caught signal $ac_signal" 2203 $as_echo "$as_me: exit $exit_status" 2204 } >&5 2205 rm -f core *.core core.conftest.* && 2206 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2207 exit $exit_status 2208' 0 2209for ac_signal in 1 2 13 15; do 2210 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2211done 2212ac_signal=0 2213 2214# confdefs.h avoids OS command line length limits that DEFS can exceed. 2215rm -f -r conftest* confdefs.h 2216 2217$as_echo "/* confdefs.h */" > confdefs.h 2218 2219# Predefined preprocessor variables. 2220 2221cat >>confdefs.h <<_ACEOF 2222#define PACKAGE_NAME "$PACKAGE_NAME" 2223_ACEOF 2224 2225cat >>confdefs.h <<_ACEOF 2226#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2227_ACEOF 2228 2229cat >>confdefs.h <<_ACEOF 2230#define PACKAGE_VERSION "$PACKAGE_VERSION" 2231_ACEOF 2232 2233cat >>confdefs.h <<_ACEOF 2234#define PACKAGE_STRING "$PACKAGE_STRING" 2235_ACEOF 2236 2237cat >>confdefs.h <<_ACEOF 2238#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2239_ACEOF 2240 2241cat >>confdefs.h <<_ACEOF 2242#define PACKAGE_URL "$PACKAGE_URL" 2243_ACEOF 2244 2245 2246# Let the site file select an alternate cache file if it wants to. 2247# Prefer an explicitly selected file to automatically selected ones. 2248ac_site_file1=NONE 2249ac_site_file2=NONE 2250if test -n "$CONFIG_SITE"; then 2251 # We do not want a PATH search for config.site. 2252 case $CONFIG_SITE in #(( 2253 -*) ac_site_file1=./$CONFIG_SITE;; 2254 */*) ac_site_file1=$CONFIG_SITE;; 2255 *) ac_site_file1=./$CONFIG_SITE;; 2256 esac 2257elif test "x$prefix" != xNONE; then 2258 ac_site_file1=$prefix/share/config.site 2259 ac_site_file2=$prefix/etc/config.site 2260else 2261 ac_site_file1=$ac_default_prefix/share/config.site 2262 ac_site_file2=$ac_default_prefix/etc/config.site 2263fi 2264for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2265do 2266 test "x$ac_site_file" = xNONE && continue 2267 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2269$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2270 sed 's/^/| /' "$ac_site_file" >&5 2271 . "$ac_site_file" \ 2272 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2274as_fn_error $? "failed to load site script $ac_site_file 2275See \`config.log' for more details" "$LINENO" 5; } 2276 fi 2277done 2278 2279if test -r "$cache_file"; then 2280 # Some versions of bash will fail to source /dev/null (special files 2281 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2282 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2284$as_echo "$as_me: loading cache $cache_file" >&6;} 2285 case $cache_file in 2286 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2287 *) . "./$cache_file";; 2288 esac 2289 fi 2290else 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2292$as_echo "$as_me: creating cache $cache_file" >&6;} 2293 >$cache_file 2294fi 2295 2296# Check that the precious variables saved in the cache have kept the same 2297# value. 2298ac_cache_corrupted=false 2299for ac_var in $ac_precious_vars; do 2300 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2301 eval ac_new_set=\$ac_env_${ac_var}_set 2302 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2303 eval ac_new_val=\$ac_env_${ac_var}_value 2304 case $ac_old_set,$ac_new_set in 2305 set,) 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2307$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2308 ac_cache_corrupted=: ;; 2309 ,set) 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2311$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2312 ac_cache_corrupted=: ;; 2313 ,);; 2314 *) 2315 if test "x$ac_old_val" != "x$ac_new_val"; then 2316 # differences in whitespace do not lead to failure. 2317 ac_old_val_w=`echo x $ac_old_val` 2318 ac_new_val_w=`echo x $ac_new_val` 2319 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2321$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2322 ac_cache_corrupted=: 2323 else 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2325$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2326 eval $ac_var=\$ac_old_val 2327 fi 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2329$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2331$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2332 fi;; 2333 esac 2334 # Pass precious variables to config.status. 2335 if test "$ac_new_set" = set; then 2336 case $ac_new_val in 2337 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2338 *) ac_arg=$ac_var=$ac_new_val ;; 2339 esac 2340 case " $ac_configure_args " in 2341 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2342 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2343 esac 2344 fi 2345done 2346if $ac_cache_corrupted; then 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2350$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2351 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2352fi 2353## -------------------- ## 2354## Main body of script. ## 2355## -------------------- ## 2356 2357ac_ext=c 2358ac_cpp='$CPP $CPPFLAGS' 2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2361ac_compiler_gnu=$ac_cv_c_compiler_gnu 2362 2363 2364 2365 2366# Making releases: 2367# MICRO_VERSION += 1; 2368# INTERFACE_AGE += 1; 2369# BINARY_AGE += 1; 2370# if any functions have been added, set INTERFACE_AGE to 0. 2371# if backwards compatibility has been broken, 2372# set BINARY_AGE and INTERFACE_AGE to 0. 2373 2374MAJOR_VERSION=1 2375MINOR_VERSION=0 2376MICRO_VERSION=2 2377INTERFACE_AGE=2 2378BINARY_AGE=2 2379VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION 2380 2381 2382 2383 2384 2385 2386 2387 2388# libtool versioning 2389ac_aux_dir= 2390for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2391 if test -f "$ac_dir/install-sh"; then 2392 ac_aux_dir=$ac_dir 2393 ac_install_sh="$ac_aux_dir/install-sh -c" 2394 break 2395 elif test -f "$ac_dir/install.sh"; then 2396 ac_aux_dir=$ac_dir 2397 ac_install_sh="$ac_aux_dir/install.sh -c" 2398 break 2399 elif test -f "$ac_dir/shtool"; then 2400 ac_aux_dir=$ac_dir 2401 ac_install_sh="$ac_aux_dir/shtool install -c" 2402 break 2403 fi 2404done 2405if test -z "$ac_aux_dir"; then 2406 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2407fi 2408 2409# These three variables are undocumented and unsupported, 2410# and are intended to be withdrawn in a future Autoconf release. 2411# They can cause serious problems if a builder's source tree is in a directory 2412# whose full name contains unusual characters. 2413ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2414ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2415ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2416 2417 2418case `pwd` in 2419 *\ * | *\ *) 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2421$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2422esac 2423 2424 2425 2426macro_version='2.4' 2427macro_revision='1.3294' 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441ltmain="$ac_aux_dir/ltmain.sh" 2442 2443# Make sure we can run config.sub. 2444$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2445 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2446 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2448$as_echo_n "checking build system type... " >&6; } 2449if ${ac_cv_build+:} false; then : 2450 $as_echo_n "(cached) " >&6 2451else 2452 ac_build_alias=$build_alias 2453test "x$ac_build_alias" = x && 2454 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2455test "x$ac_build_alias" = x && 2456 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2457ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2459 2460fi 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2462$as_echo "$ac_cv_build" >&6; } 2463case $ac_cv_build in 2464*-*-*) ;; 2465*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2466esac 2467build=$ac_cv_build 2468ac_save_IFS=$IFS; IFS='-' 2469set x $ac_cv_build 2470shift 2471build_cpu=$1 2472build_vendor=$2 2473shift; shift 2474# Remember, the first character of IFS is used to create $*, 2475# except with old shells: 2476build_os=$* 2477IFS=$ac_save_IFS 2478case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2479 2480 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2482$as_echo_n "checking host system type... " >&6; } 2483if ${ac_cv_host+:} false; then : 2484 $as_echo_n "(cached) " >&6 2485else 2486 if test "x$host_alias" = x; then 2487 ac_cv_host=$ac_cv_build 2488else 2489 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2491fi 2492 2493fi 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2495$as_echo "$ac_cv_host" >&6; } 2496case $ac_cv_host in 2497*-*-*) ;; 2498*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2499esac 2500host=$ac_cv_host 2501ac_save_IFS=$IFS; IFS='-' 2502set x $ac_cv_host 2503shift 2504host_cpu=$1 2505host_vendor=$2 2506shift; shift 2507# Remember, the first character of IFS is used to create $*, 2508# except with old shells: 2509host_os=$* 2510IFS=$ac_save_IFS 2511case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2512 2513 2514# Backslashify metacharacters that are still active within 2515# double-quoted strings. 2516sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2517 2518# Same as above, but do not quote variable references. 2519double_quote_subst='s/\(["`\\]\)/\\\1/g' 2520 2521# Sed substitution to delay expansion of an escaped shell variable in a 2522# double_quote_subst'ed string. 2523delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2524 2525# Sed substitution to delay expansion of an escaped single quote. 2526delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2527 2528# Sed substitution to avoid accidental globbing in evaled expressions 2529no_glob_subst='s/\*/\\\*/g' 2530 2531ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2532ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2533ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2534 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2536$as_echo_n "checking how to print strings... " >&6; } 2537# Test print first, because it will be a builtin if present. 2538if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2539 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2540 ECHO='print -r --' 2541elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2542 ECHO='printf %s\n' 2543else 2544 # Use this function as a fallback that always works. 2545 func_fallback_echo () 2546 { 2547 eval 'cat <<_LTECHO_EOF 2548$1 2549_LTECHO_EOF' 2550 } 2551 ECHO='func_fallback_echo' 2552fi 2553 2554# func_echo_all arg... 2555# Invoke $ECHO with all args, space-separated. 2556func_echo_all () 2557{ 2558 $ECHO "" 2559} 2560 2561case "$ECHO" in 2562 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2563$as_echo "printf" >&6; } ;; 2564 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2565$as_echo "print -r" >&6; } ;; 2566 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2567$as_echo "cat" >&6; } ;; 2568esac 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583ac_ext=c 2584ac_cpp='$CPP $CPPFLAGS' 2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2587ac_compiler_gnu=$ac_cv_c_compiler_gnu 2588if test -n "$ac_tool_prefix"; then 2589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2590set dummy ${ac_tool_prefix}gcc; ac_word=$2 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2592$as_echo_n "checking for $ac_word... " >&6; } 2593if ${ac_cv_prog_CC+:} false; then : 2594 $as_echo_n "(cached) " >&6 2595else 2596 if test -n "$CC"; then 2597 ac_cv_prog_CC="$CC" # Let the user override the test. 2598else 2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2600for as_dir in $PATH 2601do 2602 IFS=$as_save_IFS 2603 test -z "$as_dir" && as_dir=. 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2606 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2608 break 2 2609 fi 2610done 2611 done 2612IFS=$as_save_IFS 2613 2614fi 2615fi 2616CC=$ac_cv_prog_CC 2617if test -n "$CC"; then 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2619$as_echo "$CC" >&6; } 2620else 2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2622$as_echo "no" >&6; } 2623fi 2624 2625 2626fi 2627if test -z "$ac_cv_prog_CC"; then 2628 ac_ct_CC=$CC 2629 # Extract the first word of "gcc", so it can be a program name with args. 2630set dummy gcc; ac_word=$2 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2632$as_echo_n "checking for $ac_word... " >&6; } 2633if ${ac_cv_prog_ac_ct_CC+:} false; then : 2634 $as_echo_n "(cached) " >&6 2635else 2636 if test -n "$ac_ct_CC"; then 2637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2638else 2639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2640for as_dir in $PATH 2641do 2642 IFS=$as_save_IFS 2643 test -z "$as_dir" && as_dir=. 2644 for ac_exec_ext in '' $ac_executable_extensions; do 2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2646 ac_cv_prog_ac_ct_CC="gcc" 2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2648 break 2 2649 fi 2650done 2651 done 2652IFS=$as_save_IFS 2653 2654fi 2655fi 2656ac_ct_CC=$ac_cv_prog_ac_ct_CC 2657if test -n "$ac_ct_CC"; then 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2659$as_echo "$ac_ct_CC" >&6; } 2660else 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2662$as_echo "no" >&6; } 2663fi 2664 2665 if test "x$ac_ct_CC" = x; then 2666 CC="" 2667 else 2668 case $cross_compiling:$ac_tool_warned in 2669yes:) 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2672ac_tool_warned=yes ;; 2673esac 2674 CC=$ac_ct_CC 2675 fi 2676else 2677 CC="$ac_cv_prog_CC" 2678fi 2679 2680if test -z "$CC"; then 2681 if test -n "$ac_tool_prefix"; then 2682 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2683set dummy ${ac_tool_prefix}cc; ac_word=$2 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2685$as_echo_n "checking for $ac_word... " >&6; } 2686if ${ac_cv_prog_CC+:} false; then : 2687 $as_echo_n "(cached) " >&6 2688else 2689 if test -n "$CC"; then 2690 ac_cv_prog_CC="$CC" # Let the user override the test. 2691else 2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693for as_dir in $PATH 2694do 2695 IFS=$as_save_IFS 2696 test -z "$as_dir" && as_dir=. 2697 for ac_exec_ext in '' $ac_executable_extensions; do 2698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2699 ac_cv_prog_CC="${ac_tool_prefix}cc" 2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2701 break 2 2702 fi 2703done 2704 done 2705IFS=$as_save_IFS 2706 2707fi 2708fi 2709CC=$ac_cv_prog_CC 2710if test -n "$CC"; then 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2712$as_echo "$CC" >&6; } 2713else 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2715$as_echo "no" >&6; } 2716fi 2717 2718 2719 fi 2720fi 2721if test -z "$CC"; then 2722 # Extract the first word of "cc", so it can be a program name with args. 2723set dummy cc; ac_word=$2 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2725$as_echo_n "checking for $ac_word... " >&6; } 2726if ${ac_cv_prog_CC+:} false; then : 2727 $as_echo_n "(cached) " >&6 2728else 2729 if test -n "$CC"; then 2730 ac_cv_prog_CC="$CC" # Let the user override the test. 2731else 2732 ac_prog_rejected=no 2733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2734for as_dir in $PATH 2735do 2736 IFS=$as_save_IFS 2737 test -z "$as_dir" && as_dir=. 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2741 ac_prog_rejected=yes 2742 continue 2743 fi 2744 ac_cv_prog_CC="cc" 2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2746 break 2 2747 fi 2748done 2749 done 2750IFS=$as_save_IFS 2751 2752if test $ac_prog_rejected = yes; then 2753 # We found a bogon in the path, so make sure we never use it. 2754 set dummy $ac_cv_prog_CC 2755 shift 2756 if test $# != 0; then 2757 # We chose a different compiler from the bogus one. 2758 # However, it has the same basename, so the bogon will be chosen 2759 # first if we set CC to just the basename; use the full file name. 2760 shift 2761 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2762 fi 2763fi 2764fi 2765fi 2766CC=$ac_cv_prog_CC 2767if test -n "$CC"; then 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2769$as_echo "$CC" >&6; } 2770else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2772$as_echo "no" >&6; } 2773fi 2774 2775 2776fi 2777if test -z "$CC"; then 2778 if test -n "$ac_tool_prefix"; then 2779 for ac_prog in cl.exe 2780 do 2781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2782set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784$as_echo_n "checking for $ac_word... " >&6; } 2785if ${ac_cv_prog_CC+:} false; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if test -n "$CC"; then 2789 ac_cv_prog_CC="$CC" # Let the user override the test. 2790else 2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2798 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803 done 2804IFS=$as_save_IFS 2805 2806fi 2807fi 2808CC=$ac_cv_prog_CC 2809if test -n "$CC"; then 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2811$as_echo "$CC" >&6; } 2812else 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814$as_echo "no" >&6; } 2815fi 2816 2817 2818 test -n "$CC" && break 2819 done 2820fi 2821if test -z "$CC"; then 2822 ac_ct_CC=$CC 2823 for ac_prog in cl.exe 2824do 2825 # Extract the first word of "$ac_prog", so it can be a program name with args. 2826set dummy $ac_prog; ac_word=$2 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2828$as_echo_n "checking for $ac_word... " >&6; } 2829if ${ac_cv_prog_ac_ct_CC+:} false; then : 2830 $as_echo_n "(cached) " >&6 2831else 2832 if test -n "$ac_ct_CC"; then 2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2834else 2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836for as_dir in $PATH 2837do 2838 IFS=$as_save_IFS 2839 test -z "$as_dir" && as_dir=. 2840 for ac_exec_ext in '' $ac_executable_extensions; do 2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2842 ac_cv_prog_ac_ct_CC="$ac_prog" 2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2844 break 2 2845 fi 2846done 2847 done 2848IFS=$as_save_IFS 2849 2850fi 2851fi 2852ac_ct_CC=$ac_cv_prog_ac_ct_CC 2853if test -n "$ac_ct_CC"; then 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2855$as_echo "$ac_ct_CC" >&6; } 2856else 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858$as_echo "no" >&6; } 2859fi 2860 2861 2862 test -n "$ac_ct_CC" && break 2863done 2864 2865 if test "x$ac_ct_CC" = x; then 2866 CC="" 2867 else 2868 case $cross_compiling:$ac_tool_warned in 2869yes:) 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2872ac_tool_warned=yes ;; 2873esac 2874 CC=$ac_ct_CC 2875 fi 2876fi 2877 2878fi 2879 2880 2881test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2883as_fn_error $? "no acceptable C compiler found in \$PATH 2884See \`config.log' for more details" "$LINENO" 5; } 2885 2886# Provide some information about the compiler. 2887$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2888set X $ac_compile 2889ac_compiler=$2 2890for ac_option in --version -v -V -qversion; do 2891 { { ac_try="$ac_compiler $ac_option >&5" 2892case "(($ac_try" in 2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2894 *) ac_try_echo=$ac_try;; 2895esac 2896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2897$as_echo "$ac_try_echo"; } >&5 2898 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2899 ac_status=$? 2900 if test -s conftest.err; then 2901 sed '10a\ 2902... rest of stderr output deleted ... 2903 10q' conftest.err >conftest.er1 2904 cat conftest.er1 >&5 2905 fi 2906 rm -f conftest.er1 conftest.err 2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2908 test $ac_status = 0; } 2909done 2910 2911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2912/* end confdefs.h. */ 2913 2914int 2915main () 2916{ 2917 2918 ; 2919 return 0; 2920} 2921_ACEOF 2922ac_clean_files_save=$ac_clean_files 2923ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2924# Try to create an executable without -o first, disregard a.out. 2925# It will help us diagnose broken compilers, and finding out an intuition 2926# of exeext. 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2928$as_echo_n "checking whether the C compiler works... " >&6; } 2929ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2930 2931# The possible output files: 2932ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2933 2934ac_rmfiles= 2935for ac_file in $ac_files 2936do 2937 case $ac_file in 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2939 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2940 esac 2941done 2942rm -f $ac_rmfiles 2943 2944if { { ac_try="$ac_link_default" 2945case "(($ac_try" in 2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2947 *) ac_try_echo=$ac_try;; 2948esac 2949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2950$as_echo "$ac_try_echo"; } >&5 2951 (eval "$ac_link_default") 2>&5 2952 ac_status=$? 2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2954 test $ac_status = 0; }; then : 2955 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2956# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2957# in a Makefile. We should not override ac_cv_exeext if it was cached, 2958# so that the user can short-circuit this test for compilers unknown to 2959# Autoconf. 2960for ac_file in $ac_files '' 2961do 2962 test -f "$ac_file" || continue 2963 case $ac_file in 2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2965 ;; 2966 [ab].out ) 2967 # We found the default executable, but exeext='' is most 2968 # certainly right. 2969 break;; 2970 *.* ) 2971 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2972 then :; else 2973 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2974 fi 2975 # We set ac_cv_exeext here because the later test for it is not 2976 # safe: cross compilers may not add the suffix if given an `-o' 2977 # argument, so we may need to know it at that point already. 2978 # Even if this section looks crufty: it has the advantage of 2979 # actually working. 2980 break;; 2981 * ) 2982 break;; 2983 esac 2984done 2985test "$ac_cv_exeext" = no && ac_cv_exeext= 2986 2987else 2988 ac_file='' 2989fi 2990if test -z "$ac_file"; then : 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992$as_echo "no" >&6; } 2993$as_echo "$as_me: failed program was:" >&5 2994sed 's/^/| /' conftest.$ac_ext >&5 2995 2996{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2998as_fn_error 77 "C compiler cannot create executables 2999See \`config.log' for more details" "$LINENO" 5; } 3000else 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3002$as_echo "yes" >&6; } 3003fi 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3005$as_echo_n "checking for C compiler default output file name... " >&6; } 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3007$as_echo "$ac_file" >&6; } 3008ac_exeext=$ac_cv_exeext 3009 3010rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3011ac_clean_files=$ac_clean_files_save 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3013$as_echo_n "checking for suffix of executables... " >&6; } 3014if { { ac_try="$ac_link" 3015case "(($ac_try" in 3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3017 *) ac_try_echo=$ac_try;; 3018esac 3019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3020$as_echo "$ac_try_echo"; } >&5 3021 (eval "$ac_link") 2>&5 3022 ac_status=$? 3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3024 test $ac_status = 0; }; then : 3025 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3026# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3027# work properly (i.e., refer to `conftest.exe'), while it won't with 3028# `rm'. 3029for ac_file in conftest.exe conftest conftest.*; do 3030 test -f "$ac_file" || continue 3031 case $ac_file in 3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3033 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3034 break;; 3035 * ) break;; 3036 esac 3037done 3038else 3039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3041as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3042See \`config.log' for more details" "$LINENO" 5; } 3043fi 3044rm -f conftest conftest$ac_cv_exeext 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3046$as_echo "$ac_cv_exeext" >&6; } 3047 3048rm -f conftest.$ac_ext 3049EXEEXT=$ac_cv_exeext 3050ac_exeext=$EXEEXT 3051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3052/* end confdefs.h. */ 3053#include <stdio.h> 3054int 3055main () 3056{ 3057FILE *f = fopen ("conftest.out", "w"); 3058 return ferror (f) || fclose (f) != 0; 3059 3060 ; 3061 return 0; 3062} 3063_ACEOF 3064ac_clean_files="$ac_clean_files conftest.out" 3065# Check that the compiler produces executables we can run. If not, either 3066# the compiler is broken, or we cross compile. 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3068$as_echo_n "checking whether we are cross compiling... " >&6; } 3069if test "$cross_compiling" != yes; then 3070 { { ac_try="$ac_link" 3071case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3076$as_echo "$ac_try_echo"; } >&5 3077 (eval "$ac_link") 2>&5 3078 ac_status=$? 3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3080 test $ac_status = 0; } 3081 if { ac_try='./conftest$ac_cv_exeext' 3082 { { case "(($ac_try" in 3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3084 *) ac_try_echo=$ac_try;; 3085esac 3086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3087$as_echo "$ac_try_echo"; } >&5 3088 (eval "$ac_try") 2>&5 3089 ac_status=$? 3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3091 test $ac_status = 0; }; }; then 3092 cross_compiling=no 3093 else 3094 if test "$cross_compiling" = maybe; then 3095 cross_compiling=yes 3096 else 3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3099as_fn_error $? "cannot run C compiled programs. 3100If you meant to cross compile, use \`--host'. 3101See \`config.log' for more details" "$LINENO" 5; } 3102 fi 3103 fi 3104fi 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3106$as_echo "$cross_compiling" >&6; } 3107 3108rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3109ac_clean_files=$ac_clean_files_save 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3111$as_echo_n "checking for suffix of object files... " >&6; } 3112if ${ac_cv_objext+:} false; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3116/* end confdefs.h. */ 3117 3118int 3119main () 3120{ 3121 3122 ; 3123 return 0; 3124} 3125_ACEOF 3126rm -f conftest.o conftest.obj 3127if { { ac_try="$ac_compile" 3128case "(($ac_try" in 3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3130 *) ac_try_echo=$ac_try;; 3131esac 3132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3133$as_echo "$ac_try_echo"; } >&5 3134 (eval "$ac_compile") 2>&5 3135 ac_status=$? 3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3137 test $ac_status = 0; }; then : 3138 for ac_file in conftest.o conftest.obj conftest.*; do 3139 test -f "$ac_file" || continue; 3140 case $ac_file in 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3142 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3143 break;; 3144 esac 3145done 3146else 3147 $as_echo "$as_me: failed program was:" >&5 3148sed 's/^/| /' conftest.$ac_ext >&5 3149 3150{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3152as_fn_error $? "cannot compute suffix of object files: cannot compile 3153See \`config.log' for more details" "$LINENO" 5; } 3154fi 3155rm -f conftest.$ac_cv_objext conftest.$ac_ext 3156fi 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3158$as_echo "$ac_cv_objext" >&6; } 3159OBJEXT=$ac_cv_objext 3160ac_objext=$OBJEXT 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3162$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3163if ${ac_cv_c_compiler_gnu+:} false; then : 3164 $as_echo_n "(cached) " >&6 3165else 3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3167/* end confdefs.h. */ 3168 3169int 3170main () 3171{ 3172#ifndef __GNUC__ 3173 choke me 3174#endif 3175 3176 ; 3177 return 0; 3178} 3179_ACEOF 3180if ac_fn_c_try_compile "$LINENO"; then : 3181 ac_compiler_gnu=yes 3182else 3183 ac_compiler_gnu=no 3184fi 3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3186ac_cv_c_compiler_gnu=$ac_compiler_gnu 3187 3188fi 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3190$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3191if test $ac_compiler_gnu = yes; then 3192 GCC=yes 3193else 3194 GCC= 3195fi 3196ac_test_CFLAGS=${CFLAGS+set} 3197ac_save_CFLAGS=$CFLAGS 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3199$as_echo_n "checking whether $CC accepts -g... " >&6; } 3200if ${ac_cv_prog_cc_g+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202else 3203 ac_save_c_werror_flag=$ac_c_werror_flag 3204 ac_c_werror_flag=yes 3205 ac_cv_prog_cc_g=no 3206 CFLAGS="-g" 3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3208/* end confdefs.h. */ 3209 3210int 3211main () 3212{ 3213 3214 ; 3215 return 0; 3216} 3217_ACEOF 3218if ac_fn_c_try_compile "$LINENO"; then : 3219 ac_cv_prog_cc_g=yes 3220else 3221 CFLAGS="" 3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3223/* end confdefs.h. */ 3224 3225int 3226main () 3227{ 3228 3229 ; 3230 return 0; 3231} 3232_ACEOF 3233if ac_fn_c_try_compile "$LINENO"; then : 3234 3235else 3236 ac_c_werror_flag=$ac_save_c_werror_flag 3237 CFLAGS="-g" 3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3239/* end confdefs.h. */ 3240 3241int 3242main () 3243{ 3244 3245 ; 3246 return 0; 3247} 3248_ACEOF 3249if ac_fn_c_try_compile "$LINENO"; then : 3250 ac_cv_prog_cc_g=yes 3251fi 3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3253fi 3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3255fi 3256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3257 ac_c_werror_flag=$ac_save_c_werror_flag 3258fi 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3260$as_echo "$ac_cv_prog_cc_g" >&6; } 3261if test "$ac_test_CFLAGS" = set; then 3262 CFLAGS=$ac_save_CFLAGS 3263elif test $ac_cv_prog_cc_g = yes; then 3264 if test "$GCC" = yes; then 3265 CFLAGS="-g -O2" 3266 else 3267 CFLAGS="-g" 3268 fi 3269else 3270 if test "$GCC" = yes; then 3271 CFLAGS="-O2" 3272 else 3273 CFLAGS= 3274 fi 3275fi 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3277$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3278if ${ac_cv_prog_cc_c89+:} false; then : 3279 $as_echo_n "(cached) " >&6 3280else 3281 ac_cv_prog_cc_c89=no 3282ac_save_CC=$CC 3283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3284/* end confdefs.h. */ 3285#include <stdarg.h> 3286#include <stdio.h> 3287struct stat; 3288/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3289struct buf { int x; }; 3290FILE * (*rcsopen) (struct buf *, struct stat *, int); 3291static char *e (p, i) 3292 char **p; 3293 int i; 3294{ 3295 return p[i]; 3296} 3297static char *f (char * (*g) (char **, int), char **p, ...) 3298{ 3299 char *s; 3300 va_list v; 3301 va_start (v,p); 3302 s = g (p, va_arg (v,int)); 3303 va_end (v); 3304 return s; 3305} 3306 3307/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3308 function prototypes and stuff, but not '\xHH' hex character constants. 3309 These don't provoke an error unfortunately, instead are silently treated 3310 as 'x'. The following induces an error, until -std is added to get 3311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3312 array size at least. It's necessary to write '\x00'==0 to get something 3313 that's true only with -std. */ 3314int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3315 3316/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3317 inside strings and character constants. */ 3318#define FOO(x) 'x' 3319int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3320 3321int test (int i, double x); 3322struct s1 {int (*f) (int a);}; 3323struct s2 {int (*f) (double a);}; 3324int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3325int argc; 3326char **argv; 3327int 3328main () 3329{ 3330return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3331 ; 3332 return 0; 3333} 3334_ACEOF 3335for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3336 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3337do 3338 CC="$ac_save_CC $ac_arg" 3339 if ac_fn_c_try_compile "$LINENO"; then : 3340 ac_cv_prog_cc_c89=$ac_arg 3341fi 3342rm -f core conftest.err conftest.$ac_objext 3343 test "x$ac_cv_prog_cc_c89" != "xno" && break 3344done 3345rm -f conftest.$ac_ext 3346CC=$ac_save_CC 3347 3348fi 3349# AC_CACHE_VAL 3350case "x$ac_cv_prog_cc_c89" in 3351 x) 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3353$as_echo "none needed" >&6; } ;; 3354 xno) 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3356$as_echo "unsupported" >&6; } ;; 3357 *) 3358 CC="$CC $ac_cv_prog_cc_c89" 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3360$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3361esac 3362if test "x$ac_cv_prog_cc_c89" != xno; then : 3363 3364fi 3365 3366ac_ext=c 3367ac_cpp='$CPP $CPPFLAGS' 3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3370ac_compiler_gnu=$ac_cv_c_compiler_gnu 3371 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3373$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3374if ${ac_cv_path_SED+:} false; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3378 for ac_i in 1 2 3 4 5 6 7; do 3379 ac_script="$ac_script$as_nl$ac_script" 3380 done 3381 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3382 { ac_script=; unset ac_script;} 3383 if test -z "$SED"; then 3384 ac_path_SED_found=false 3385 # Loop through the user's path and test for each of PROGNAME-LIST 3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3387for as_dir in $PATH 3388do 3389 IFS=$as_save_IFS 3390 test -z "$as_dir" && as_dir=. 3391 for ac_prog in sed gsed; do 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3394 as_fn_executable_p "$ac_path_SED" || continue 3395# Check for GNU ac_path_SED and select it if it is found. 3396 # Check for GNU $ac_path_SED 3397case `"$ac_path_SED" --version 2>&1` in 3398*GNU*) 3399 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3400*) 3401 ac_count=0 3402 $as_echo_n 0123456789 >"conftest.in" 3403 while : 3404 do 3405 cat "conftest.in" "conftest.in" >"conftest.tmp" 3406 mv "conftest.tmp" "conftest.in" 3407 cp "conftest.in" "conftest.nl" 3408 $as_echo '' >> "conftest.nl" 3409 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3411 as_fn_arith $ac_count + 1 && ac_count=$as_val 3412 if test $ac_count -gt ${ac_path_SED_max-0}; then 3413 # Best one so far, save it but keep looking for a better one 3414 ac_cv_path_SED="$ac_path_SED" 3415 ac_path_SED_max=$ac_count 3416 fi 3417 # 10*(2^10) chars as input seems more than enough 3418 test $ac_count -gt 10 && break 3419 done 3420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3421esac 3422 3423 $ac_path_SED_found && break 3 3424 done 3425 done 3426 done 3427IFS=$as_save_IFS 3428 if test -z "$ac_cv_path_SED"; then 3429 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3430 fi 3431else 3432 ac_cv_path_SED=$SED 3433fi 3434 3435fi 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3437$as_echo "$ac_cv_path_SED" >&6; } 3438 SED="$ac_cv_path_SED" 3439 rm -f conftest.sed 3440 3441test -z "$SED" && SED=sed 3442Xsed="$SED -e 1s/^X//" 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3455$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3456if ${ac_cv_path_GREP+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 if test -z "$GREP"; then 3460 ac_path_GREP_found=false 3461 # Loop through the user's path and test for each of PROGNAME-LIST 3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_prog in grep ggrep; do 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3470 as_fn_executable_p "$ac_path_GREP" || continue 3471# Check for GNU ac_path_GREP and select it if it is found. 3472 # Check for GNU $ac_path_GREP 3473case `"$ac_path_GREP" --version 2>&1` in 3474*GNU*) 3475 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3476*) 3477 ac_count=0 3478 $as_echo_n 0123456789 >"conftest.in" 3479 while : 3480 do 3481 cat "conftest.in" "conftest.in" >"conftest.tmp" 3482 mv "conftest.tmp" "conftest.in" 3483 cp "conftest.in" "conftest.nl" 3484 $as_echo 'GREP' >> "conftest.nl" 3485 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3487 as_fn_arith $ac_count + 1 && ac_count=$as_val 3488 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3489 # Best one so far, save it but keep looking for a better one 3490 ac_cv_path_GREP="$ac_path_GREP" 3491 ac_path_GREP_max=$ac_count 3492 fi 3493 # 10*(2^10) chars as input seems more than enough 3494 test $ac_count -gt 10 && break 3495 done 3496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3497esac 3498 3499 $ac_path_GREP_found && break 3 3500 done 3501 done 3502 done 3503IFS=$as_save_IFS 3504 if test -z "$ac_cv_path_GREP"; then 3505 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3506 fi 3507else 3508 ac_cv_path_GREP=$GREP 3509fi 3510 3511fi 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3513$as_echo "$ac_cv_path_GREP" >&6; } 3514 GREP="$ac_cv_path_GREP" 3515 3516 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3518$as_echo_n "checking for egrep... " >&6; } 3519if ${ac_cv_path_EGREP+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3523 then ac_cv_path_EGREP="$GREP -E" 3524 else 3525 if test -z "$EGREP"; then 3526 ac_path_EGREP_found=false 3527 # Loop through the user's path and test for each of PROGNAME-LIST 3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_prog in egrep; do 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3536 as_fn_executable_p "$ac_path_EGREP" || continue 3537# Check for GNU ac_path_EGREP and select it if it is found. 3538 # Check for GNU $ac_path_EGREP 3539case `"$ac_path_EGREP" --version 2>&1` in 3540*GNU*) 3541 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3542*) 3543 ac_count=0 3544 $as_echo_n 0123456789 >"conftest.in" 3545 while : 3546 do 3547 cat "conftest.in" "conftest.in" >"conftest.tmp" 3548 mv "conftest.tmp" "conftest.in" 3549 cp "conftest.in" "conftest.nl" 3550 $as_echo 'EGREP' >> "conftest.nl" 3551 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3553 as_fn_arith $ac_count + 1 && ac_count=$as_val 3554 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3555 # Best one so far, save it but keep looking for a better one 3556 ac_cv_path_EGREP="$ac_path_EGREP" 3557 ac_path_EGREP_max=$ac_count 3558 fi 3559 # 10*(2^10) chars as input seems more than enough 3560 test $ac_count -gt 10 && break 3561 done 3562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3563esac 3564 3565 $ac_path_EGREP_found && break 3 3566 done 3567 done 3568 done 3569IFS=$as_save_IFS 3570 if test -z "$ac_cv_path_EGREP"; then 3571 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3572 fi 3573else 3574 ac_cv_path_EGREP=$EGREP 3575fi 3576 3577 fi 3578fi 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3580$as_echo "$ac_cv_path_EGREP" >&6; } 3581 EGREP="$ac_cv_path_EGREP" 3582 3583 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3585$as_echo_n "checking for fgrep... " >&6; } 3586if ${ac_cv_path_FGREP+:} false; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3590 then ac_cv_path_FGREP="$GREP -F" 3591 else 3592 if test -z "$FGREP"; then 3593 ac_path_FGREP_found=false 3594 # Loop through the user's path and test for each of PROGNAME-LIST 3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3597do 3598 IFS=$as_save_IFS 3599 test -z "$as_dir" && as_dir=. 3600 for ac_prog in fgrep; do 3601 for ac_exec_ext in '' $ac_executable_extensions; do 3602 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3603 as_fn_executable_p "$ac_path_FGREP" || continue 3604# Check for GNU ac_path_FGREP and select it if it is found. 3605 # Check for GNU $ac_path_FGREP 3606case `"$ac_path_FGREP" --version 2>&1` in 3607*GNU*) 3608 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3609*) 3610 ac_count=0 3611 $as_echo_n 0123456789 >"conftest.in" 3612 while : 3613 do 3614 cat "conftest.in" "conftest.in" >"conftest.tmp" 3615 mv "conftest.tmp" "conftest.in" 3616 cp "conftest.in" "conftest.nl" 3617 $as_echo 'FGREP' >> "conftest.nl" 3618 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3620 as_fn_arith $ac_count + 1 && ac_count=$as_val 3621 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3622 # Best one so far, save it but keep looking for a better one 3623 ac_cv_path_FGREP="$ac_path_FGREP" 3624 ac_path_FGREP_max=$ac_count 3625 fi 3626 # 10*(2^10) chars as input seems more than enough 3627 test $ac_count -gt 10 && break 3628 done 3629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3630esac 3631 3632 $ac_path_FGREP_found && break 3 3633 done 3634 done 3635 done 3636IFS=$as_save_IFS 3637 if test -z "$ac_cv_path_FGREP"; then 3638 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3639 fi 3640else 3641 ac_cv_path_FGREP=$FGREP 3642fi 3643 3644 fi 3645fi 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3647$as_echo "$ac_cv_path_FGREP" >&6; } 3648 FGREP="$ac_cv_path_FGREP" 3649 3650 3651test -z "$GREP" && GREP=grep 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671# Check whether --with-gnu-ld was given. 3672if test "${with_gnu_ld+set}" = set; then : 3673 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3674else 3675 with_gnu_ld=no 3676fi 3677 3678ac_prog=ld 3679if test "$GCC" = yes; then 3680 # Check if gcc -print-prog-name=ld gives a path. 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3682$as_echo_n "checking for ld used by $CC... " >&6; } 3683 case $host in 3684 *-*-mingw*) 3685 # gcc leaves a trailing carriage return which upsets mingw 3686 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3687 *) 3688 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3689 esac 3690 case $ac_prog in 3691 # Accept absolute paths. 3692 [\\/]* | ?:[\\/]*) 3693 re_direlt='/[^/][^/]*/\.\./' 3694 # Canonicalize the pathname of ld 3695 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3696 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3697 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3698 done 3699 test -z "$LD" && LD="$ac_prog" 3700 ;; 3701 "") 3702 # If it fails, then pretend we aren't using GCC. 3703 ac_prog=ld 3704 ;; 3705 *) 3706 # If it is relative, then search for the first ld in PATH. 3707 with_gnu_ld=unknown 3708 ;; 3709 esac 3710elif test "$with_gnu_ld" = yes; then 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3712$as_echo_n "checking for GNU ld... " >&6; } 3713else 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3715$as_echo_n "checking for non-GNU ld... " >&6; } 3716fi 3717if ${lt_cv_path_LD+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 if test -z "$LD"; then 3721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3722 for ac_dir in $PATH; do 3723 IFS="$lt_save_ifs" 3724 test -z "$ac_dir" && ac_dir=. 3725 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3726 lt_cv_path_LD="$ac_dir/$ac_prog" 3727 # Check to see if the program is GNU ld. I'd rather use --version, 3728 # but apparently some variants of GNU ld only accept -v. 3729 # Break only if it was the GNU/non-GNU ld that we prefer. 3730 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3731 *GNU* | *'with BFD'*) 3732 test "$with_gnu_ld" != no && break 3733 ;; 3734 *) 3735 test "$with_gnu_ld" != yes && break 3736 ;; 3737 esac 3738 fi 3739 done 3740 IFS="$lt_save_ifs" 3741else 3742 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3743fi 3744fi 3745 3746LD="$lt_cv_path_LD" 3747if test -n "$LD"; then 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3749$as_echo "$LD" >&6; } 3750else 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3752$as_echo "no" >&6; } 3753fi 3754test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3756$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3757if ${lt_cv_prog_gnu_ld+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3761case `$LD -v 2>&1 </dev/null` in 3762*GNU* | *'with BFD'*) 3763 lt_cv_prog_gnu_ld=yes 3764 ;; 3765*) 3766 lt_cv_prog_gnu_ld=no 3767 ;; 3768esac 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3771$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3772with_gnu_ld=$lt_cv_prog_gnu_ld 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3783$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3784if ${lt_cv_path_NM+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786else 3787 if test -n "$NM"; then 3788 # Let the user override the test. 3789 lt_cv_path_NM="$NM" 3790else 3791 lt_nm_to_check="${ac_tool_prefix}nm" 3792 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3793 lt_nm_to_check="$lt_nm_to_check nm" 3794 fi 3795 for lt_tmp_nm in $lt_nm_to_check; do 3796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3797 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3798 IFS="$lt_save_ifs" 3799 test -z "$ac_dir" && ac_dir=. 3800 tmp_nm="$ac_dir/$lt_tmp_nm" 3801 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3802 # Check to see if the nm accepts a BSD-compat flag. 3803 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3804 # nm: unknown option "B" ignored 3805 # Tru64's nm complains that /dev/null is an invalid object file 3806 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3807 */dev/null* | *'Invalid file or object type'*) 3808 lt_cv_path_NM="$tmp_nm -B" 3809 break 3810 ;; 3811 *) 3812 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3813 */dev/null*) 3814 lt_cv_path_NM="$tmp_nm -p" 3815 break 3816 ;; 3817 *) 3818 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3819 continue # so that we can try to find one that supports BSD flags 3820 ;; 3821 esac 3822 ;; 3823 esac 3824 fi 3825 done 3826 IFS="$lt_save_ifs" 3827 done 3828 : ${lt_cv_path_NM=no} 3829fi 3830fi 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3832$as_echo "$lt_cv_path_NM" >&6; } 3833if test "$lt_cv_path_NM" != "no"; then 3834 NM="$lt_cv_path_NM" 3835else 3836 # Didn't find any BSD compatible name lister, look for dumpbin. 3837 if test -n "$DUMPBIN"; then : 3838 # Let the user override the test. 3839 else 3840 if test -n "$ac_tool_prefix"; then 3841 for ac_prog in dumpbin "link -dump" 3842 do 3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3844set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3846$as_echo_n "checking for $ac_word... " >&6; } 3847if ${ac_cv_prog_DUMPBIN+:} false; then : 3848 $as_echo_n "(cached) " >&6 3849else 3850 if test -n "$DUMPBIN"; then 3851 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3852else 3853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3854for as_dir in $PATH 3855do 3856 IFS=$as_save_IFS 3857 test -z "$as_dir" && as_dir=. 3858 for ac_exec_ext in '' $ac_executable_extensions; do 3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3860 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3862 break 2 3863 fi 3864done 3865 done 3866IFS=$as_save_IFS 3867 3868fi 3869fi 3870DUMPBIN=$ac_cv_prog_DUMPBIN 3871if test -n "$DUMPBIN"; then 3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3873$as_echo "$DUMPBIN" >&6; } 3874else 3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3876$as_echo "no" >&6; } 3877fi 3878 3879 3880 test -n "$DUMPBIN" && break 3881 done 3882fi 3883if test -z "$DUMPBIN"; then 3884 ac_ct_DUMPBIN=$DUMPBIN 3885 for ac_prog in dumpbin "link -dump" 3886do 3887 # Extract the first word of "$ac_prog", so it can be a program name with args. 3888set dummy $ac_prog; ac_word=$2 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3890$as_echo_n "checking for $ac_word... " >&6; } 3891if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 if test -n "$ac_ct_DUMPBIN"; then 3895 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3896else 3897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3898for as_dir in $PATH 3899do 3900 IFS=$as_save_IFS 3901 test -z "$as_dir" && as_dir=. 3902 for ac_exec_ext in '' $ac_executable_extensions; do 3903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3904 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3906 break 2 3907 fi 3908done 3909 done 3910IFS=$as_save_IFS 3911 3912fi 3913fi 3914ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3915if test -n "$ac_ct_DUMPBIN"; then 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 3917$as_echo "$ac_ct_DUMPBIN" >&6; } 3918else 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3920$as_echo "no" >&6; } 3921fi 3922 3923 3924 test -n "$ac_ct_DUMPBIN" && break 3925done 3926 3927 if test "x$ac_ct_DUMPBIN" = x; then 3928 DUMPBIN=":" 3929 else 3930 case $cross_compiling:$ac_tool_warned in 3931yes:) 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3934ac_tool_warned=yes ;; 3935esac 3936 DUMPBIN=$ac_ct_DUMPBIN 3937 fi 3938fi 3939 3940 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 3941 *COFF*) 3942 DUMPBIN="$DUMPBIN -symbols" 3943 ;; 3944 *) 3945 DUMPBIN=: 3946 ;; 3947 esac 3948 fi 3949 3950 if test "$DUMPBIN" != ":"; then 3951 NM="$DUMPBIN" 3952 fi 3953fi 3954test -z "$NM" && NM=nm 3955 3956 3957 3958 3959 3960 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 3962$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3963if ${lt_cv_nm_interface+:} false; then : 3964 $as_echo_n "(cached) " >&6 3965else 3966 lt_cv_nm_interface="BSD nm" 3967 echo "int some_variable = 0;" > conftest.$ac_ext 3968 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 3969 (eval "$ac_compile" 2>conftest.err) 3970 cat conftest.err >&5 3971 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3972 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3973 cat conftest.err >&5 3974 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 3975 cat conftest.out >&5 3976 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3977 lt_cv_nm_interface="MS dumpbin" 3978 fi 3979 rm -f conftest* 3980fi 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 3982$as_echo "$lt_cv_nm_interface" >&6; } 3983 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3985$as_echo_n "checking whether ln -s works... " >&6; } 3986LN_S=$as_ln_s 3987if test "$LN_S" = "ln -s"; then 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3989$as_echo "yes" >&6; } 3990else 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3992$as_echo "no, using $LN_S" >&6; } 3993fi 3994 3995# find the maximum length of command line arguments 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 3997$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3998if ${lt_cv_sys_max_cmd_len+:} false; then : 3999 $as_echo_n "(cached) " >&6 4000else 4001 i=0 4002 teststring="ABCD" 4003 4004 case $build_os in 4005 msdosdjgpp*) 4006 # On DJGPP, this test can blow up pretty badly due to problems in libc 4007 # (any single argument exceeding 2000 bytes causes a buffer overrun 4008 # during glob expansion). Even if it were fixed, the result of this 4009 # check would be larger than it should be. 4010 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4011 ;; 4012 4013 gnu*) 4014 # Under GNU Hurd, this test is not required because there is 4015 # no limit to the length of command line arguments. 4016 # Libtool will interpret -1 as no limit whatsoever 4017 lt_cv_sys_max_cmd_len=-1; 4018 ;; 4019 4020 cygwin* | mingw* | cegcc*) 4021 # On Win9x/ME, this test blows up -- it succeeds, but takes 4022 # about 5 minutes as the teststring grows exponentially. 4023 # Worse, since 9x/ME are not pre-emptively multitasking, 4024 # you end up with a "frozen" computer, even though with patience 4025 # the test eventually succeeds (with a max line length of 256k). 4026 # Instead, let's just punt: use the minimum linelength reported by 4027 # all of the supported platforms: 8192 (on NT/2K/XP). 4028 lt_cv_sys_max_cmd_len=8192; 4029 ;; 4030 4031 mint*) 4032 # On MiNT this can take a long time and run out of memory. 4033 lt_cv_sys_max_cmd_len=8192; 4034 ;; 4035 4036 amigaos*) 4037 # On AmigaOS with pdksh, this test takes hours, literally. 4038 # So we just punt and use a minimum line length of 8192. 4039 lt_cv_sys_max_cmd_len=8192; 4040 ;; 4041 4042 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4043 # This has been around since 386BSD, at least. Likely further. 4044 if test -x /sbin/sysctl; then 4045 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4046 elif test -x /usr/sbin/sysctl; then 4047 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4048 else 4049 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4050 fi 4051 # And add a safety zone 4052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4054 ;; 4055 4056 interix*) 4057 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4058 lt_cv_sys_max_cmd_len=196608 4059 ;; 4060 4061 osf*) 4062 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4063 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4064 # nice to cause kernel panics so lets avoid the loop below. 4065 # First set a reasonable default. 4066 lt_cv_sys_max_cmd_len=16384 4067 # 4068 if test -x /sbin/sysconfig; then 4069 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4070 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4071 esac 4072 fi 4073 ;; 4074 sco3.2v5*) 4075 lt_cv_sys_max_cmd_len=102400 4076 ;; 4077 sysv5* | sco5v6* | sysv4.2uw2*) 4078 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4079 if test -n "$kargmax"; then 4080 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4081 else 4082 lt_cv_sys_max_cmd_len=32768 4083 fi 4084 ;; 4085 *) 4086 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4087 if test -n "$lt_cv_sys_max_cmd_len"; then 4088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4090 else 4091 # Make teststring a little bigger before we do anything with it. 4092 # a 1K string should be a reasonable start. 4093 for i in 1 2 3 4 5 6 7 8 ; do 4094 teststring=$teststring$teststring 4095 done 4096 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4097 # If test is not a shell built-in, we'll probably end up computing a 4098 # maximum length that is only half of the actual maximum length, but 4099 # we can't tell. 4100 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4101 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4102 test $i != 17 # 1/2 MB should be enough 4103 do 4104 i=`expr $i + 1` 4105 teststring=$teststring$teststring 4106 done 4107 # Only check the string length outside the loop. 4108 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4109 teststring= 4110 # Add a significant safety factor because C++ compilers can tack on 4111 # massive amounts of additional arguments before passing them to the 4112 # linker. It appears as though 1/2 is a usable value. 4113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4114 fi 4115 ;; 4116 esac 4117 4118fi 4119 4120if test -n $lt_cv_sys_max_cmd_len ; then 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4122$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4123else 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4125$as_echo "none" >&6; } 4126fi 4127max_cmd_len=$lt_cv_sys_max_cmd_len 4128 4129 4130 4131 4132 4133 4134: ${CP="cp -f"} 4135: ${MV="mv -f"} 4136: ${RM="rm -f"} 4137 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4139$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4140# Try some XSI features 4141xsi_shell=no 4142( _lt_dummy="a/b/c" 4143 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4144 = c,a/b,b/c, \ 4145 && eval 'test $(( 1 + 1 )) -eq 2 \ 4146 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4147 && xsi_shell=yes 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4149$as_echo "$xsi_shell" >&6; } 4150 4151 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4153$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4154lt_shell_append=no 4155( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4156 >/dev/null 2>&1 \ 4157 && lt_shell_append=yes 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4159$as_echo "$lt_shell_append" >&6; } 4160 4161 4162if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4163 lt_unset=unset 4164else 4165 lt_unset=false 4166fi 4167 4168 4169 4170 4171 4172# test EBCDIC or ASCII 4173case `echo X|tr X '\101'` in 4174 A) # ASCII based system 4175 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4176 lt_SP2NL='tr \040 \012' 4177 lt_NL2SP='tr \015\012 \040\040' 4178 ;; 4179 *) # EBCDIC based system 4180 lt_SP2NL='tr \100 \n' 4181 lt_NL2SP='tr \r\n \100\100' 4182 ;; 4183esac 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4194$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4195if ${lt_cv_to_host_file_cmd+:} false; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 case $host in 4199 *-*-mingw* ) 4200 case $build in 4201 *-*-mingw* ) # actually msys 4202 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4203 ;; 4204 *-*-cygwin* ) 4205 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4206 ;; 4207 * ) # otherwise, assume *nix 4208 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4209 ;; 4210 esac 4211 ;; 4212 *-*-cygwin* ) 4213 case $build in 4214 *-*-mingw* ) # actually msys 4215 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4216 ;; 4217 *-*-cygwin* ) 4218 lt_cv_to_host_file_cmd=func_convert_file_noop 4219 ;; 4220 * ) # otherwise, assume *nix 4221 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4222 ;; 4223 esac 4224 ;; 4225 * ) # unhandled hosts (and "normal" native builds) 4226 lt_cv_to_host_file_cmd=func_convert_file_noop 4227 ;; 4228esac 4229 4230fi 4231 4232to_host_file_cmd=$lt_cv_to_host_file_cmd 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4234$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4235 4236 4237 4238 4239 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4241$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4242if ${lt_cv_to_tool_file_cmd+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 #assume ordinary cross tools, or native build. 4246lt_cv_to_tool_file_cmd=func_convert_file_noop 4247case $host in 4248 *-*-mingw* ) 4249 case $build in 4250 *-*-mingw* ) # actually msys 4251 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4252 ;; 4253 esac 4254 ;; 4255esac 4256 4257fi 4258 4259to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4261$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4262 4263 4264 4265 4266 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4268$as_echo_n "checking for $LD option to reload object files... " >&6; } 4269if ${lt_cv_ld_reload_flag+:} false; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 lt_cv_ld_reload_flag='-r' 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4275$as_echo "$lt_cv_ld_reload_flag" >&6; } 4276reload_flag=$lt_cv_ld_reload_flag 4277case $reload_flag in 4278"" | " "*) ;; 4279*) reload_flag=" $reload_flag" ;; 4280esac 4281reload_cmds='$LD$reload_flag -o $output$reload_objs' 4282case $host_os in 4283 cygwin* | mingw* | pw32* | cegcc*) 4284 if test "$GCC" != yes; then 4285 reload_cmds=false 4286 fi 4287 ;; 4288 darwin*) 4289 if test "$GCC" = yes; then 4290 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4291 else 4292 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4293 fi 4294 ;; 4295esac 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305if test -n "$ac_tool_prefix"; then 4306 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4307set dummy ${ac_tool_prefix}objdump; ac_word=$2 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4309$as_echo_n "checking for $ac_word... " >&6; } 4310if ${ac_cv_prog_OBJDUMP+:} false; then : 4311 $as_echo_n "(cached) " >&6 4312else 4313 if test -n "$OBJDUMP"; then 4314 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4315else 4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4317for as_dir in $PATH 4318do 4319 IFS=$as_save_IFS 4320 test -z "$as_dir" && as_dir=. 4321 for ac_exec_ext in '' $ac_executable_extensions; do 4322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4323 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4325 break 2 4326 fi 4327done 4328 done 4329IFS=$as_save_IFS 4330 4331fi 4332fi 4333OBJDUMP=$ac_cv_prog_OBJDUMP 4334if test -n "$OBJDUMP"; then 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4336$as_echo "$OBJDUMP" >&6; } 4337else 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4339$as_echo "no" >&6; } 4340fi 4341 4342 4343fi 4344if test -z "$ac_cv_prog_OBJDUMP"; then 4345 ac_ct_OBJDUMP=$OBJDUMP 4346 # Extract the first word of "objdump", so it can be a program name with args. 4347set dummy objdump; ac_word=$2 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4349$as_echo_n "checking for $ac_word... " >&6; } 4350if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4351 $as_echo_n "(cached) " >&6 4352else 4353 if test -n "$ac_ct_OBJDUMP"; then 4354 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4355else 4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4357for as_dir in $PATH 4358do 4359 IFS=$as_save_IFS 4360 test -z "$as_dir" && as_dir=. 4361 for ac_exec_ext in '' $ac_executable_extensions; do 4362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4363 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4365 break 2 4366 fi 4367done 4368 done 4369IFS=$as_save_IFS 4370 4371fi 4372fi 4373ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4374if test -n "$ac_ct_OBJDUMP"; then 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4376$as_echo "$ac_ct_OBJDUMP" >&6; } 4377else 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4379$as_echo "no" >&6; } 4380fi 4381 4382 if test "x$ac_ct_OBJDUMP" = x; then 4383 OBJDUMP="false" 4384 else 4385 case $cross_compiling:$ac_tool_warned in 4386yes:) 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4389ac_tool_warned=yes ;; 4390esac 4391 OBJDUMP=$ac_ct_OBJDUMP 4392 fi 4393else 4394 OBJDUMP="$ac_cv_prog_OBJDUMP" 4395fi 4396 4397test -z "$OBJDUMP" && OBJDUMP=objdump 4398 4399 4400 4401 4402 4403 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4405$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4406if ${lt_cv_deplibs_check_method+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 lt_cv_file_magic_cmd='$MAGIC_CMD' 4410lt_cv_file_magic_test_file= 4411lt_cv_deplibs_check_method='unknown' 4412# Need to set the preceding variable on all platforms that support 4413# interlibrary dependencies. 4414# 'none' -- dependencies not supported. 4415# `unknown' -- same as none, but documents that we really don't know. 4416# 'pass_all' -- all dependencies passed with no checks. 4417# 'test_compile' -- check by making test program. 4418# 'file_magic [[regex]]' -- check by looking for files in library path 4419# which responds to the $file_magic_cmd with a given extended regex. 4420# If you have `file' or equivalent on your system and you're not sure 4421# whether `pass_all' will *always* work, you probably want this one. 4422 4423case $host_os in 4424aix[4-9]*) 4425 lt_cv_deplibs_check_method=pass_all 4426 ;; 4427 4428beos*) 4429 lt_cv_deplibs_check_method=pass_all 4430 ;; 4431 4432bsdi[45]*) 4433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4434 lt_cv_file_magic_cmd='/usr/bin/file -L' 4435 lt_cv_file_magic_test_file=/shlib/libc.so 4436 ;; 4437 4438cygwin*) 4439 # func_win32_libid is a shell function defined in ltmain.sh 4440 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4441 lt_cv_file_magic_cmd='func_win32_libid' 4442 ;; 4443 4444mingw* | pw32*) 4445 # Base MSYS/MinGW do not provide the 'file' command needed by 4446 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4447 # unless we find 'file', for example because we are cross-compiling. 4448 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4449 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4450 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4451 lt_cv_file_magic_cmd='func_win32_libid' 4452 else 4453 # Keep this pattern in sync with the one in func_win32_libid. 4454 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4455 lt_cv_file_magic_cmd='$OBJDUMP -f' 4456 fi 4457 ;; 4458 4459cegcc*) 4460 # use the weaker test based on 'objdump'. See mingw*. 4461 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4462 lt_cv_file_magic_cmd='$OBJDUMP -f' 4463 ;; 4464 4465darwin* | rhapsody*) 4466 lt_cv_deplibs_check_method=pass_all 4467 ;; 4468 4469freebsd* | dragonfly*) 4470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4471 case $host_cpu in 4472 i*86 ) 4473 # Not sure whether the presence of OpenBSD here was a mistake. 4474 # Let's accept both of them until this is cleared up. 4475 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4476 lt_cv_file_magic_cmd=/usr/bin/file 4477 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4478 ;; 4479 esac 4480 else 4481 lt_cv_deplibs_check_method=pass_all 4482 fi 4483 ;; 4484 4485gnu*) 4486 lt_cv_deplibs_check_method=pass_all 4487 ;; 4488 4489haiku*) 4490 lt_cv_deplibs_check_method=pass_all 4491 ;; 4492 4493hpux10.20* | hpux11*) 4494 lt_cv_file_magic_cmd=/usr/bin/file 4495 case $host_cpu in 4496 ia64*) 4497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4498 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4499 ;; 4500 hppa*64*) 4501 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]' 4502 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4503 ;; 4504 *) 4505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4506 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4507 ;; 4508 esac 4509 ;; 4510 4511interix[3-9]*) 4512 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4514 ;; 4515 4516irix5* | irix6* | nonstopux*) 4517 case $LD in 4518 *-32|*"-32 ") libmagic=32-bit;; 4519 *-n32|*"-n32 ") libmagic=N32;; 4520 *-64|*"-64 ") libmagic=64-bit;; 4521 *) libmagic=never-match;; 4522 esac 4523 lt_cv_deplibs_check_method=pass_all 4524 ;; 4525 4526# This must be Linux ELF. 4527linux* | k*bsd*-gnu | kopensolaris*-gnu) 4528 lt_cv_deplibs_check_method=pass_all 4529 ;; 4530 4531netbsd*) 4532 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4534 else 4535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4536 fi 4537 ;; 4538 4539newos6*) 4540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4541 lt_cv_file_magic_cmd=/usr/bin/file 4542 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4543 ;; 4544 4545*nto* | *qnx*) 4546 lt_cv_deplibs_check_method=pass_all 4547 ;; 4548 4549openbsd*) 4550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4552 else 4553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4554 fi 4555 ;; 4556 4557osf3* | osf4* | osf5*) 4558 lt_cv_deplibs_check_method=pass_all 4559 ;; 4560 4561rdos*) 4562 lt_cv_deplibs_check_method=pass_all 4563 ;; 4564 4565solaris*) 4566 lt_cv_deplibs_check_method=pass_all 4567 ;; 4568 4569sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4570 lt_cv_deplibs_check_method=pass_all 4571 ;; 4572 4573sysv4 | sysv4.3*) 4574 case $host_vendor in 4575 motorola) 4576 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]' 4577 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4578 ;; 4579 ncr) 4580 lt_cv_deplibs_check_method=pass_all 4581 ;; 4582 sequent) 4583 lt_cv_file_magic_cmd='/bin/file' 4584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4585 ;; 4586 sni) 4587 lt_cv_file_magic_cmd='/bin/file' 4588 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4589 lt_cv_file_magic_test_file=/lib/libc.so 4590 ;; 4591 siemens) 4592 lt_cv_deplibs_check_method=pass_all 4593 ;; 4594 pc) 4595 lt_cv_deplibs_check_method=pass_all 4596 ;; 4597 esac 4598 ;; 4599 4600tpf*) 4601 lt_cv_deplibs_check_method=pass_all 4602 ;; 4603esac 4604 4605fi 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4607$as_echo "$lt_cv_deplibs_check_method" >&6; } 4608 4609file_magic_glob= 4610want_nocaseglob=no 4611if test "$build" = "$host"; then 4612 case $host_os in 4613 mingw* | pw32*) 4614 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4615 want_nocaseglob=yes 4616 else 4617 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4618 fi 4619 ;; 4620 esac 4621fi 4622 4623file_magic_cmd=$lt_cv_file_magic_cmd 4624deplibs_check_method=$lt_cv_deplibs_check_method 4625test -z "$deplibs_check_method" && deplibs_check_method=unknown 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648if test -n "$ac_tool_prefix"; then 4649 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4650set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652$as_echo_n "checking for $ac_word... " >&6; } 4653if ${ac_cv_prog_DLLTOOL+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 if test -n "$DLLTOOL"; then 4657 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4658else 4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4666 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670done 4671 done 4672IFS=$as_save_IFS 4673 4674fi 4675fi 4676DLLTOOL=$ac_cv_prog_DLLTOOL 4677if test -n "$DLLTOOL"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4679$as_echo "$DLLTOOL" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684 4685 4686fi 4687if test -z "$ac_cv_prog_DLLTOOL"; then 4688 ac_ct_DLLTOOL=$DLLTOOL 4689 # Extract the first word of "dlltool", so it can be a program name with args. 4690set dummy dlltool; ac_word=$2 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4692$as_echo_n "checking for $ac_word... " >&6; } 4693if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4694 $as_echo_n "(cached) " >&6 4695else 4696 if test -n "$ac_ct_DLLTOOL"; then 4697 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4698else 4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4700for as_dir in $PATH 4701do 4702 IFS=$as_save_IFS 4703 test -z "$as_dir" && as_dir=. 4704 for ac_exec_ext in '' $ac_executable_extensions; do 4705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4706 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4708 break 2 4709 fi 4710done 4711 done 4712IFS=$as_save_IFS 4713 4714fi 4715fi 4716ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4717if test -n "$ac_ct_DLLTOOL"; then 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4719$as_echo "$ac_ct_DLLTOOL" >&6; } 4720else 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4722$as_echo "no" >&6; } 4723fi 4724 4725 if test "x$ac_ct_DLLTOOL" = x; then 4726 DLLTOOL="false" 4727 else 4728 case $cross_compiling:$ac_tool_warned in 4729yes:) 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4732ac_tool_warned=yes ;; 4733esac 4734 DLLTOOL=$ac_ct_DLLTOOL 4735 fi 4736else 4737 DLLTOOL="$ac_cv_prog_DLLTOOL" 4738fi 4739 4740test -z "$DLLTOOL" && DLLTOOL=dlltool 4741 4742 4743 4744 4745 4746 4747 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 4749$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 4750if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 4751 $as_echo_n "(cached) " >&6 4752else 4753 lt_cv_sharedlib_from_linklib_cmd='unknown' 4754 4755case $host_os in 4756cygwin* | mingw* | pw32* | cegcc*) 4757 # two different shell functions defined in ltmain.sh 4758 # decide which to use based on capabilities of $DLLTOOL 4759 case `$DLLTOOL --help 2>&1` in 4760 *--identify-strict*) 4761 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 4762 ;; 4763 *) 4764 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 4765 ;; 4766 esac 4767 ;; 4768*) 4769 # fallback: assume linklib IS sharedlib 4770 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 4771 ;; 4772esac 4773 4774fi 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 4776$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 4777sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 4778test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 4779 4780 4781 4782 4783 4784 4785 4786 4787if test -n "$ac_tool_prefix"; then 4788 for ac_prog in ar 4789 do 4790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4791set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4793$as_echo_n "checking for $ac_word... " >&6; } 4794if ${ac_cv_prog_AR+:} false; then : 4795 $as_echo_n "(cached) " >&6 4796else 4797 if test -n "$AR"; then 4798 ac_cv_prog_AR="$AR" # Let the user override the test. 4799else 4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4801for as_dir in $PATH 4802do 4803 IFS=$as_save_IFS 4804 test -z "$as_dir" && as_dir=. 4805 for ac_exec_ext in '' $ac_executable_extensions; do 4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4807 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4809 break 2 4810 fi 4811done 4812 done 4813IFS=$as_save_IFS 4814 4815fi 4816fi 4817AR=$ac_cv_prog_AR 4818if test -n "$AR"; then 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4820$as_echo "$AR" >&6; } 4821else 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4823$as_echo "no" >&6; } 4824fi 4825 4826 4827 test -n "$AR" && break 4828 done 4829fi 4830if test -z "$AR"; then 4831 ac_ct_AR=$AR 4832 for ac_prog in ar 4833do 4834 # Extract the first word of "$ac_prog", so it can be a program name with args. 4835set dummy $ac_prog; ac_word=$2 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4837$as_echo_n "checking for $ac_word... " >&6; } 4838if ${ac_cv_prog_ac_ct_AR+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 if test -n "$ac_ct_AR"; then 4842 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4843else 4844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH 4846do 4847 IFS=$as_save_IFS 4848 test -z "$as_dir" && as_dir=. 4849 for ac_exec_ext in '' $ac_executable_extensions; do 4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4851 ac_cv_prog_ac_ct_AR="$ac_prog" 4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4853 break 2 4854 fi 4855done 4856 done 4857IFS=$as_save_IFS 4858 4859fi 4860fi 4861ac_ct_AR=$ac_cv_prog_ac_ct_AR 4862if test -n "$ac_ct_AR"; then 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4864$as_echo "$ac_ct_AR" >&6; } 4865else 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4867$as_echo "no" >&6; } 4868fi 4869 4870 4871 test -n "$ac_ct_AR" && break 4872done 4873 4874 if test "x$ac_ct_AR" = x; then 4875 AR="false" 4876 else 4877 case $cross_compiling:$ac_tool_warned in 4878yes:) 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4881ac_tool_warned=yes ;; 4882esac 4883 AR=$ac_ct_AR 4884 fi 4885fi 4886 4887: ${AR=ar} 4888: ${AR_FLAGS=cru} 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 4901$as_echo_n "checking for archiver @FILE support... " >&6; } 4902if ${lt_cv_ar_at_file+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 lt_cv_ar_at_file=no 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908 4909int 4910main () 4911{ 4912 4913 ; 4914 return 0; 4915} 4916_ACEOF 4917if ac_fn_c_try_compile "$LINENO"; then : 4918 echo conftest.$ac_objext > conftest.lst 4919 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 4920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 4921 (eval $lt_ar_try) 2>&5 4922 ac_status=$? 4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4924 test $ac_status = 0; } 4925 if test "$ac_status" -eq 0; then 4926 # Ensure the archiver fails upon bogus file names. 4927 rm -f conftest.$ac_objext libconftest.a 4928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 4929 (eval $lt_ar_try) 2>&5 4930 ac_status=$? 4931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4932 test $ac_status = 0; } 4933 if test "$ac_status" -ne 0; then 4934 lt_cv_ar_at_file=@ 4935 fi 4936 fi 4937 rm -f conftest.* libconftest.a 4938 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4941 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 4944$as_echo "$lt_cv_ar_at_file" >&6; } 4945 4946if test "x$lt_cv_ar_at_file" = xno; then 4947 archiver_list_spec= 4948else 4949 archiver_list_spec=$lt_cv_ar_at_file 4950fi 4951 4952 4953 4954 4955 4956 4957 4958if test -n "$ac_tool_prefix"; then 4959 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4960set dummy ${ac_tool_prefix}strip; ac_word=$2 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4962$as_echo_n "checking for $ac_word... " >&6; } 4963if ${ac_cv_prog_STRIP+:} false; then : 4964 $as_echo_n "(cached) " >&6 4965else 4966 if test -n "$STRIP"; then 4967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4968else 4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4970for as_dir in $PATH 4971do 4972 IFS=$as_save_IFS 4973 test -z "$as_dir" && as_dir=. 4974 for ac_exec_ext in '' $ac_executable_extensions; do 4975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4976 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4978 break 2 4979 fi 4980done 4981 done 4982IFS=$as_save_IFS 4983 4984fi 4985fi 4986STRIP=$ac_cv_prog_STRIP 4987if test -n "$STRIP"; then 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4989$as_echo "$STRIP" >&6; } 4990else 4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4992$as_echo "no" >&6; } 4993fi 4994 4995 4996fi 4997if test -z "$ac_cv_prog_STRIP"; then 4998 ac_ct_STRIP=$STRIP 4999 # Extract the first word of "strip", so it can be a program name with args. 5000set dummy strip; ac_word=$2 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5002$as_echo_n "checking for $ac_word... " >&6; } 5003if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 if test -n "$ac_ct_STRIP"; then 5007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5008else 5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5010for as_dir in $PATH 5011do 5012 IFS=$as_save_IFS 5013 test -z "$as_dir" && as_dir=. 5014 for ac_exec_ext in '' $ac_executable_extensions; do 5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5016 ac_cv_prog_ac_ct_STRIP="strip" 5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5018 break 2 5019 fi 5020done 5021 done 5022IFS=$as_save_IFS 5023 5024fi 5025fi 5026ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5027if test -n "$ac_ct_STRIP"; then 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5029$as_echo "$ac_ct_STRIP" >&6; } 5030else 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5032$as_echo "no" >&6; } 5033fi 5034 5035 if test "x$ac_ct_STRIP" = x; then 5036 STRIP=":" 5037 else 5038 case $cross_compiling:$ac_tool_warned in 5039yes:) 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5042ac_tool_warned=yes ;; 5043esac 5044 STRIP=$ac_ct_STRIP 5045 fi 5046else 5047 STRIP="$ac_cv_prog_STRIP" 5048fi 5049 5050test -z "$STRIP" && STRIP=: 5051 5052 5053 5054 5055 5056 5057if test -n "$ac_tool_prefix"; then 5058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5059set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5061$as_echo_n "checking for $ac_word... " >&6; } 5062if ${ac_cv_prog_RANLIB+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 if test -n "$RANLIB"; then 5066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5067else 5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5069for as_dir in $PATH 5070do 5071 IFS=$as_save_IFS 5072 test -z "$as_dir" && as_dir=. 5073 for ac_exec_ext in '' $ac_executable_extensions; do 5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5077 break 2 5078 fi 5079done 5080 done 5081IFS=$as_save_IFS 5082 5083fi 5084fi 5085RANLIB=$ac_cv_prog_RANLIB 5086if test -n "$RANLIB"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5088$as_echo "$RANLIB" >&6; } 5089else 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5091$as_echo "no" >&6; } 5092fi 5093 5094 5095fi 5096if test -z "$ac_cv_prog_RANLIB"; then 5097 ac_ct_RANLIB=$RANLIB 5098 # Extract the first word of "ranlib", so it can be a program name with args. 5099set dummy ranlib; ac_word=$2 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5101$as_echo_n "checking for $ac_word... " >&6; } 5102if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5103 $as_echo_n "(cached) " >&6 5104else 5105 if test -n "$ac_ct_RANLIB"; then 5106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5107else 5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5109for as_dir in $PATH 5110do 5111 IFS=$as_save_IFS 5112 test -z "$as_dir" && as_dir=. 5113 for ac_exec_ext in '' $ac_executable_extensions; do 5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5115 ac_cv_prog_ac_ct_RANLIB="ranlib" 5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5117 break 2 5118 fi 5119done 5120 done 5121IFS=$as_save_IFS 5122 5123fi 5124fi 5125ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5126if test -n "$ac_ct_RANLIB"; then 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5128$as_echo "$ac_ct_RANLIB" >&6; } 5129else 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5131$as_echo "no" >&6; } 5132fi 5133 5134 if test "x$ac_ct_RANLIB" = x; then 5135 RANLIB=":" 5136 else 5137 case $cross_compiling:$ac_tool_warned in 5138yes:) 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5141ac_tool_warned=yes ;; 5142esac 5143 RANLIB=$ac_ct_RANLIB 5144 fi 5145else 5146 RANLIB="$ac_cv_prog_RANLIB" 5147fi 5148 5149test -z "$RANLIB" && RANLIB=: 5150 5151 5152 5153 5154 5155 5156# Determine commands to create old-style static archives. 5157old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5158old_postinstall_cmds='chmod 644 $oldlib' 5159old_postuninstall_cmds= 5160 5161if test -n "$RANLIB"; then 5162 case $host_os in 5163 openbsd*) 5164 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5165 ;; 5166 *) 5167 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5168 ;; 5169 esac 5170 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5171fi 5172 5173case $host_os in 5174 darwin*) 5175 lock_old_archive_extraction=yes ;; 5176 *) 5177 lock_old_archive_extraction=no ;; 5178esac 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200for ac_prog in gawk mawk nawk awk 5201do 5202 # Extract the first word of "$ac_prog", so it can be a program name with args. 5203set dummy $ac_prog; ac_word=$2 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5205$as_echo_n "checking for $ac_word... " >&6; } 5206if ${ac_cv_prog_AWK+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 if test -n "$AWK"; then 5210 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5211else 5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5213for as_dir in $PATH 5214do 5215 IFS=$as_save_IFS 5216 test -z "$as_dir" && as_dir=. 5217 for ac_exec_ext in '' $ac_executable_extensions; do 5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5219 ac_cv_prog_AWK="$ac_prog" 5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5221 break 2 5222 fi 5223done 5224 done 5225IFS=$as_save_IFS 5226 5227fi 5228fi 5229AWK=$ac_cv_prog_AWK 5230if test -n "$AWK"; then 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5232$as_echo "$AWK" >&6; } 5233else 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5235$as_echo "no" >&6; } 5236fi 5237 5238 5239 test -n "$AWK" && break 5240done 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260# If no C compiler was specified, use CC. 5261LTCC=${LTCC-"$CC"} 5262 5263# If no C compiler flags were specified, use CFLAGS. 5264LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5265 5266# Allow CC to be a program name with arguments. 5267compiler=$CC 5268 5269 5270# Check for command to grab the raw symbol name followed by C symbol from nm. 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5272$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5273if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 5277# These are sane defaults that work on at least a few old systems. 5278# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5279 5280# Character class describing NM global symbol codes. 5281symcode='[BCDEGRST]' 5282 5283# Regexp to match symbols that can be accessed directly from C. 5284sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5285 5286# Define system-specific variables. 5287case $host_os in 5288aix*) 5289 symcode='[BCDT]' 5290 ;; 5291cygwin* | mingw* | pw32* | cegcc*) 5292 symcode='[ABCDGISTW]' 5293 ;; 5294hpux*) 5295 if test "$host_cpu" = ia64; then 5296 symcode='[ABCDEGRST]' 5297 fi 5298 ;; 5299irix* | nonstopux*) 5300 symcode='[BCDEGRST]' 5301 ;; 5302osf*) 5303 symcode='[BCDEGQRST]' 5304 ;; 5305solaris*) 5306 symcode='[BDRT]' 5307 ;; 5308sco3.2v5*) 5309 symcode='[DT]' 5310 ;; 5311sysv4.2uw2*) 5312 symcode='[DT]' 5313 ;; 5314sysv5* | sco5v6* | unixware* | OpenUNIX*) 5315 symcode='[ABDT]' 5316 ;; 5317sysv4) 5318 symcode='[DFNSTU]' 5319 ;; 5320esac 5321 5322# If we're using GNU nm, then use its standard symbol codes. 5323case `$NM -V 2>&1` in 5324*GNU* | *'with BFD'*) 5325 symcode='[ABCDGIRSTW]' ;; 5326esac 5327 5328# Transform an extracted symbol line into a proper C declaration. 5329# Some systems (esp. on ia64) link data and code symbols differently, 5330# so use this general approach. 5331lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5332 5333# Transform an extracted symbol line into symbol name and symbol address 5334lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5335lt_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'" 5336 5337# Handle CRLF in mingw tool chain 5338opt_cr= 5339case $build_os in 5340mingw*) 5341 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5342 ;; 5343esac 5344 5345# Try without a prefix underscore, then with it. 5346for ac_symprfx in "" "_"; do 5347 5348 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5349 symxfrm="\\1 $ac_symprfx\\2 \\2" 5350 5351 # Write the raw and C identifiers. 5352 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5353 # Fake it for dumpbin and say T for any non-static function 5354 # and D for any global variable. 5355 # Also find C++ and __fastcall symbols from MSVC++, 5356 # which start with @ or ?. 5357 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5358" {last_section=section; section=\$ 3};"\ 5359" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5360" \$ 0!~/External *\|/{next};"\ 5361" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5362" {if(hide[section]) next};"\ 5363" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5364" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5365" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5366" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5367" ' prfx=^$ac_symprfx" 5368 else 5369 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5370 fi 5371 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5372 5373 # Check to see that the pipe works correctly. 5374 pipe_works=no 5375 5376 rm -f conftest* 5377 cat > conftest.$ac_ext <<_LT_EOF 5378#ifdef __cplusplus 5379extern "C" { 5380#endif 5381char nm_test_var; 5382void nm_test_func(void); 5383void nm_test_func(void){} 5384#ifdef __cplusplus 5385} 5386#endif 5387int main(){nm_test_var='a';nm_test_func();return(0);} 5388_LT_EOF 5389 5390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5391 (eval $ac_compile) 2>&5 5392 ac_status=$? 5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5394 test $ac_status = 0; }; then 5395 # Now try to grab the symbols. 5396 nlist=conftest.nm 5397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5398 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5399 ac_status=$? 5400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5401 test $ac_status = 0; } && test -s "$nlist"; then 5402 # Try sorting and uniquifying the output. 5403 if sort "$nlist" | uniq > "$nlist"T; then 5404 mv -f "$nlist"T "$nlist" 5405 else 5406 rm -f "$nlist"T 5407 fi 5408 5409 # Make sure that we snagged all the symbols we need. 5410 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5411 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5412 cat <<_LT_EOF > conftest.$ac_ext 5413/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5414#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5415/* DATA imports from DLLs on WIN32 con't be const, because runtime 5416 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5417# define LT_DLSYM_CONST 5418#elif defined(__osf__) 5419/* This system does not cope well with relocations in const data. */ 5420# define LT_DLSYM_CONST 5421#else 5422# define LT_DLSYM_CONST const 5423#endif 5424 5425#ifdef __cplusplus 5426extern "C" { 5427#endif 5428 5429_LT_EOF 5430 # Now generate the symbol file. 5431 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5432 5433 cat <<_LT_EOF >> conftest.$ac_ext 5434 5435/* The mapping between symbol names and symbols. */ 5436LT_DLSYM_CONST struct { 5437 const char *name; 5438 void *address; 5439} 5440lt__PROGRAM__LTX_preloaded_symbols[] = 5441{ 5442 { "@PROGRAM@", (void *) 0 }, 5443_LT_EOF 5444 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5445 cat <<\_LT_EOF >> conftest.$ac_ext 5446 {0, (void *) 0} 5447}; 5448 5449/* This works around a problem in FreeBSD linker */ 5450#ifdef FREEBSD_WORKAROUND 5451static const void *lt_preloaded_setup() { 5452 return lt__PROGRAM__LTX_preloaded_symbols; 5453} 5454#endif 5455 5456#ifdef __cplusplus 5457} 5458#endif 5459_LT_EOF 5460 # Now try linking the two files. 5461 mv conftest.$ac_objext conftstm.$ac_objext 5462 lt_globsym_save_LIBS=$LIBS 5463 lt_globsym_save_CFLAGS=$CFLAGS 5464 LIBS="conftstm.$ac_objext" 5465 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5467 (eval $ac_link) 2>&5 5468 ac_status=$? 5469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5470 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5471 pipe_works=yes 5472 fi 5473 LIBS=$lt_globsym_save_LIBS 5474 CFLAGS=$lt_globsym_save_CFLAGS 5475 else 5476 echo "cannot find nm_test_func in $nlist" >&5 5477 fi 5478 else 5479 echo "cannot find nm_test_var in $nlist" >&5 5480 fi 5481 else 5482 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5483 fi 5484 else 5485 echo "$progname: failed program was:" >&5 5486 cat conftest.$ac_ext >&5 5487 fi 5488 rm -rf conftest* conftst* 5489 5490 # Do not use the global_symbol_pipe unless it works. 5491 if test "$pipe_works" = yes; then 5492 break 5493 else 5494 lt_cv_sys_global_symbol_pipe= 5495 fi 5496done 5497 5498fi 5499 5500if test -z "$lt_cv_sys_global_symbol_pipe"; then 5501 lt_cv_sys_global_symbol_to_cdecl= 5502fi 5503if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5505$as_echo "failed" >&6; } 5506else 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5508$as_echo "ok" >&6; } 5509fi 5510 5511# Response file support. 5512if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5513 nm_file_list_spec='@' 5514elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5515 nm_file_list_spec='@' 5516fi 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5545$as_echo_n "checking for sysroot... " >&6; } 5546 5547# Check whether --with-sysroot was given. 5548if test "${with_sysroot+set}" = set; then : 5549 withval=$with_sysroot; 5550else 5551 with_sysroot=no 5552fi 5553 5554 5555lt_sysroot= 5556case ${with_sysroot} in #( 5557 yes) 5558 if test "$GCC" = yes; then 5559 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5560 fi 5561 ;; #( 5562 /*) 5563 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5564 ;; #( 5565 no|'') 5566 ;; #( 5567 *) 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 5569$as_echo "${with_sysroot}" >&6; } 5570 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5571 ;; 5572esac 5573 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5575$as_echo "${lt_sysroot:-no}" >&6; } 5576 5577 5578 5579 5580 5581# Check whether --enable-libtool-lock was given. 5582if test "${enable_libtool_lock+set}" = set; then : 5583 enableval=$enable_libtool_lock; 5584fi 5585 5586test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5587 5588# Some flags need to be propagated to the compiler or linker for good 5589# libtool support. 5590case $host in 5591ia64-*-hpux*) 5592 # Find out which ABI we are using. 5593 echo 'int i;' > conftest.$ac_ext 5594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5595 (eval $ac_compile) 2>&5 5596 ac_status=$? 5597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5598 test $ac_status = 0; }; then 5599 case `/usr/bin/file conftest.$ac_objext` in 5600 *ELF-32*) 5601 HPUX_IA64_MODE="32" 5602 ;; 5603 *ELF-64*) 5604 HPUX_IA64_MODE="64" 5605 ;; 5606 esac 5607 fi 5608 rm -rf conftest* 5609 ;; 5610*-*-irix6*) 5611 # Find out which ABI we are using. 5612 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5614 (eval $ac_compile) 2>&5 5615 ac_status=$? 5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5617 test $ac_status = 0; }; then 5618 if test "$lt_cv_prog_gnu_ld" = yes; then 5619 case `/usr/bin/file conftest.$ac_objext` in 5620 *32-bit*) 5621 LD="${LD-ld} -melf32bsmip" 5622 ;; 5623 *N32*) 5624 LD="${LD-ld} -melf32bmipn32" 5625 ;; 5626 *64-bit*) 5627 LD="${LD-ld} -melf64bmip" 5628 ;; 5629 esac 5630 else 5631 case `/usr/bin/file conftest.$ac_objext` in 5632 *32-bit*) 5633 LD="${LD-ld} -32" 5634 ;; 5635 *N32*) 5636 LD="${LD-ld} -n32" 5637 ;; 5638 *64-bit*) 5639 LD="${LD-ld} -64" 5640 ;; 5641 esac 5642 fi 5643 fi 5644 rm -rf conftest* 5645 ;; 5646 5647x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5648s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5649 # Find out which ABI we are using. 5650 echo 'int i;' > conftest.$ac_ext 5651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5652 (eval $ac_compile) 2>&5 5653 ac_status=$? 5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5655 test $ac_status = 0; }; then 5656 case `/usr/bin/file conftest.o` in 5657 *32-bit*) 5658 case $host in 5659 x86_64-*kfreebsd*-gnu) 5660 LD="${LD-ld} -m elf_i386_fbsd" 5661 ;; 5662 x86_64-*linux*) 5663 LD="${LD-ld} -m elf_i386" 5664 ;; 5665 ppc64-*linux*|powerpc64-*linux*) 5666 LD="${LD-ld} -m elf32ppclinux" 5667 ;; 5668 s390x-*linux*) 5669 LD="${LD-ld} -m elf_s390" 5670 ;; 5671 sparc64-*linux*) 5672 LD="${LD-ld} -m elf32_sparc" 5673 ;; 5674 esac 5675 ;; 5676 *64-bit*) 5677 case $host in 5678 x86_64-*kfreebsd*-gnu) 5679 LD="${LD-ld} -m elf_x86_64_fbsd" 5680 ;; 5681 x86_64-*linux*) 5682 LD="${LD-ld} -m elf_x86_64" 5683 ;; 5684 ppc*-*linux*|powerpc*-*linux*) 5685 LD="${LD-ld} -m elf64ppc" 5686 ;; 5687 s390*-*linux*|s390*-*tpf*) 5688 LD="${LD-ld} -m elf64_s390" 5689 ;; 5690 sparc*-*linux*) 5691 LD="${LD-ld} -m elf64_sparc" 5692 ;; 5693 esac 5694 ;; 5695 esac 5696 fi 5697 rm -rf conftest* 5698 ;; 5699 5700*-*-sco3.2v5*) 5701 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5702 SAVE_CFLAGS="$CFLAGS" 5703 CFLAGS="$CFLAGS -belf" 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5705$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5706if ${lt_cv_cc_needs_belf+:} false; then : 5707 $as_echo_n "(cached) " >&6 5708else 5709 ac_ext=c 5710ac_cpp='$CPP $CPPFLAGS' 5711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5713ac_compiler_gnu=$ac_cv_c_compiler_gnu 5714 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5716/* end confdefs.h. */ 5717 5718int 5719main () 5720{ 5721 5722 ; 5723 return 0; 5724} 5725_ACEOF 5726if ac_fn_c_try_link "$LINENO"; then : 5727 lt_cv_cc_needs_belf=yes 5728else 5729 lt_cv_cc_needs_belf=no 5730fi 5731rm -f core conftest.err conftest.$ac_objext \ 5732 conftest$ac_exeext conftest.$ac_ext 5733 ac_ext=c 5734ac_cpp='$CPP $CPPFLAGS' 5735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5737ac_compiler_gnu=$ac_cv_c_compiler_gnu 5738 5739fi 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5741$as_echo "$lt_cv_cc_needs_belf" >&6; } 5742 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5743 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5744 CFLAGS="$SAVE_CFLAGS" 5745 fi 5746 ;; 5747sparc*-*solaris*) 5748 # Find out which ABI we are using. 5749 echo 'int i;' > conftest.$ac_ext 5750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5751 (eval $ac_compile) 2>&5 5752 ac_status=$? 5753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5754 test $ac_status = 0; }; then 5755 case `/usr/bin/file conftest.o` in 5756 *64-bit*) 5757 case $lt_cv_prog_gnu_ld in 5758 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5759 *) 5760 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5761 LD="${LD-ld} -64" 5762 fi 5763 ;; 5764 esac 5765 ;; 5766 esac 5767 fi 5768 rm -rf conftest* 5769 ;; 5770esac 5771 5772need_locks="$enable_libtool_lock" 5773 5774if test -n "$ac_tool_prefix"; then 5775 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 5776set dummy ${ac_tool_prefix}mt; ac_word=$2 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5778$as_echo_n "checking for $ac_word... " >&6; } 5779if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 if test -n "$MANIFEST_TOOL"; then 5783 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 5784else 5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5786for as_dir in $PATH 5787do 5788 IFS=$as_save_IFS 5789 test -z "$as_dir" && as_dir=. 5790 for ac_exec_ext in '' $ac_executable_extensions; do 5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5792 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5794 break 2 5795 fi 5796done 5797 done 5798IFS=$as_save_IFS 5799 5800fi 5801fi 5802MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 5803if test -n "$MANIFEST_TOOL"; then 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 5805$as_echo "$MANIFEST_TOOL" >&6; } 5806else 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5808$as_echo "no" >&6; } 5809fi 5810 5811 5812fi 5813if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 5814 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 5815 # Extract the first word of "mt", so it can be a program name with args. 5816set dummy mt; ac_word=$2 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5818$as_echo_n "checking for $ac_word... " >&6; } 5819if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 5820 $as_echo_n "(cached) " >&6 5821else 5822 if test -n "$ac_ct_MANIFEST_TOOL"; then 5823 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 5824else 5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5826for as_dir in $PATH 5827do 5828 IFS=$as_save_IFS 5829 test -z "$as_dir" && as_dir=. 5830 for ac_exec_ext in '' $ac_executable_extensions; do 5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5832 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5834 break 2 5835 fi 5836done 5837 done 5838IFS=$as_save_IFS 5839 5840fi 5841fi 5842ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 5843if test -n "$ac_ct_MANIFEST_TOOL"; then 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 5845$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 5846else 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5848$as_echo "no" >&6; } 5849fi 5850 5851 if test "x$ac_ct_MANIFEST_TOOL" = x; then 5852 MANIFEST_TOOL=":" 5853 else 5854 case $cross_compiling:$ac_tool_warned in 5855yes:) 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5858ac_tool_warned=yes ;; 5859esac 5860 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 5861 fi 5862else 5863 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 5864fi 5865 5866test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 5868$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 5869if ${lt_cv_path_mainfest_tool+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 lt_cv_path_mainfest_tool=no 5873 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 5874 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 5875 cat conftest.err >&5 5876 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 5877 lt_cv_path_mainfest_tool=yes 5878 fi 5879 rm -f conftest* 5880fi 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 5882$as_echo "$lt_cv_path_mainfest_tool" >&6; } 5883if test "x$lt_cv_path_mainfest_tool" != xyes; then 5884 MANIFEST_TOOL=: 5885fi 5886 5887 5888 5889 5890 5891 5892 case $host_os in 5893 rhapsody* | darwin*) 5894 if test -n "$ac_tool_prefix"; then 5895 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5896set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5898$as_echo_n "checking for $ac_word... " >&6; } 5899if ${ac_cv_prog_DSYMUTIL+:} false; then : 5900 $as_echo_n "(cached) " >&6 5901else 5902 if test -n "$DSYMUTIL"; then 5903 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5904else 5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5906for as_dir in $PATH 5907do 5908 IFS=$as_save_IFS 5909 test -z "$as_dir" && as_dir=. 5910 for ac_exec_ext in '' $ac_executable_extensions; do 5911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5912 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5914 break 2 5915 fi 5916done 5917 done 5918IFS=$as_save_IFS 5919 5920fi 5921fi 5922DSYMUTIL=$ac_cv_prog_DSYMUTIL 5923if test -n "$DSYMUTIL"; then 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5925$as_echo "$DSYMUTIL" >&6; } 5926else 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5928$as_echo "no" >&6; } 5929fi 5930 5931 5932fi 5933if test -z "$ac_cv_prog_DSYMUTIL"; then 5934 ac_ct_DSYMUTIL=$DSYMUTIL 5935 # Extract the first word of "dsymutil", so it can be a program name with args. 5936set dummy dsymutil; ac_word=$2 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5938$as_echo_n "checking for $ac_word... " >&6; } 5939if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 if test -n "$ac_ct_DSYMUTIL"; then 5943 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5944else 5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946for as_dir in $PATH 5947do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for ac_exec_ext in '' $ac_executable_extensions; do 5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5952 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5954 break 2 5955 fi 5956done 5957 done 5958IFS=$as_save_IFS 5959 5960fi 5961fi 5962ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5963if test -n "$ac_ct_DSYMUTIL"; then 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5965$as_echo "$ac_ct_DSYMUTIL" >&6; } 5966else 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5968$as_echo "no" >&6; } 5969fi 5970 5971 if test "x$ac_ct_DSYMUTIL" = x; then 5972 DSYMUTIL=":" 5973 else 5974 case $cross_compiling:$ac_tool_warned in 5975yes:) 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5978ac_tool_warned=yes ;; 5979esac 5980 DSYMUTIL=$ac_ct_DSYMUTIL 5981 fi 5982else 5983 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5984fi 5985 5986 if test -n "$ac_tool_prefix"; then 5987 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5988set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5990$as_echo_n "checking for $ac_word... " >&6; } 5991if ${ac_cv_prog_NMEDIT+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 if test -n "$NMEDIT"; then 5995 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6004 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009 done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014NMEDIT=$ac_cv_prog_NMEDIT 6015if test -n "$NMEDIT"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6017$as_echo "$NMEDIT" >&6; } 6018else 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022 6023 6024fi 6025if test -z "$ac_cv_prog_NMEDIT"; then 6026 ac_ct_NMEDIT=$NMEDIT 6027 # Extract the first word of "nmedit", so it can be a program name with args. 6028set dummy nmedit; ac_word=$2 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6030$as_echo_n "checking for $ac_word... " >&6; } 6031if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6032 $as_echo_n "(cached) " >&6 6033else 6034 if test -n "$ac_ct_NMEDIT"; then 6035 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6036else 6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6038for as_dir in $PATH 6039do 6040 IFS=$as_save_IFS 6041 test -z "$as_dir" && as_dir=. 6042 for ac_exec_ext in '' $ac_executable_extensions; do 6043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6044 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6046 break 2 6047 fi 6048done 6049 done 6050IFS=$as_save_IFS 6051 6052fi 6053fi 6054ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6055if test -n "$ac_ct_NMEDIT"; then 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6057$as_echo "$ac_ct_NMEDIT" >&6; } 6058else 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6060$as_echo "no" >&6; } 6061fi 6062 6063 if test "x$ac_ct_NMEDIT" = x; then 6064 NMEDIT=":" 6065 else 6066 case $cross_compiling:$ac_tool_warned in 6067yes:) 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6070ac_tool_warned=yes ;; 6071esac 6072 NMEDIT=$ac_ct_NMEDIT 6073 fi 6074else 6075 NMEDIT="$ac_cv_prog_NMEDIT" 6076fi 6077 6078 if test -n "$ac_tool_prefix"; then 6079 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6080set dummy ${ac_tool_prefix}lipo; ac_word=$2 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6082$as_echo_n "checking for $ac_word... " >&6; } 6083if ${ac_cv_prog_LIPO+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 if test -n "$LIPO"; then 6087 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6088else 6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6090for as_dir in $PATH 6091do 6092 IFS=$as_save_IFS 6093 test -z "$as_dir" && as_dir=. 6094 for ac_exec_ext in '' $ac_executable_extensions; do 6095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6096 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6098 break 2 6099 fi 6100done 6101 done 6102IFS=$as_save_IFS 6103 6104fi 6105fi 6106LIPO=$ac_cv_prog_LIPO 6107if test -n "$LIPO"; then 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6109$as_echo "$LIPO" >&6; } 6110else 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6112$as_echo "no" >&6; } 6113fi 6114 6115 6116fi 6117if test -z "$ac_cv_prog_LIPO"; then 6118 ac_ct_LIPO=$LIPO 6119 # Extract the first word of "lipo", so it can be a program name with args. 6120set dummy lipo; ac_word=$2 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6122$as_echo_n "checking for $ac_word... " >&6; } 6123if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 if test -n "$ac_ct_LIPO"; then 6127 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6128else 6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130for as_dir in $PATH 6131do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6136 ac_cv_prog_ac_ct_LIPO="lipo" 6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6138 break 2 6139 fi 6140done 6141 done 6142IFS=$as_save_IFS 6143 6144fi 6145fi 6146ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6147if test -n "$ac_ct_LIPO"; then 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6149$as_echo "$ac_ct_LIPO" >&6; } 6150else 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6152$as_echo "no" >&6; } 6153fi 6154 6155 if test "x$ac_ct_LIPO" = x; then 6156 LIPO=":" 6157 else 6158 case $cross_compiling:$ac_tool_warned in 6159yes:) 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6162ac_tool_warned=yes ;; 6163esac 6164 LIPO=$ac_ct_LIPO 6165 fi 6166else 6167 LIPO="$ac_cv_prog_LIPO" 6168fi 6169 6170 if test -n "$ac_tool_prefix"; then 6171 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6172set dummy ${ac_tool_prefix}otool; ac_word=$2 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6174$as_echo_n "checking for $ac_word... " >&6; } 6175if ${ac_cv_prog_OTOOL+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 if test -n "$OTOOL"; then 6179 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6180else 6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6182for as_dir in $PATH 6183do 6184 IFS=$as_save_IFS 6185 test -z "$as_dir" && as_dir=. 6186 for ac_exec_ext in '' $ac_executable_extensions; do 6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6188 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6190 break 2 6191 fi 6192done 6193 done 6194IFS=$as_save_IFS 6195 6196fi 6197fi 6198OTOOL=$ac_cv_prog_OTOOL 6199if test -n "$OTOOL"; then 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6201$as_echo "$OTOOL" >&6; } 6202else 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6204$as_echo "no" >&6; } 6205fi 6206 6207 6208fi 6209if test -z "$ac_cv_prog_OTOOL"; then 6210 ac_ct_OTOOL=$OTOOL 6211 # Extract the first word of "otool", so it can be a program name with args. 6212set dummy otool; ac_word=$2 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6214$as_echo_n "checking for $ac_word... " >&6; } 6215if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 if test -n "$ac_ct_OTOOL"; then 6219 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6220else 6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6222for as_dir in $PATH 6223do 6224 IFS=$as_save_IFS 6225 test -z "$as_dir" && as_dir=. 6226 for ac_exec_ext in '' $ac_executable_extensions; do 6227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6228 ac_cv_prog_ac_ct_OTOOL="otool" 6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6230 break 2 6231 fi 6232done 6233 done 6234IFS=$as_save_IFS 6235 6236fi 6237fi 6238ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6239if test -n "$ac_ct_OTOOL"; then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6241$as_echo "$ac_ct_OTOOL" >&6; } 6242else 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244$as_echo "no" >&6; } 6245fi 6246 6247 if test "x$ac_ct_OTOOL" = x; then 6248 OTOOL=":" 6249 else 6250 case $cross_compiling:$ac_tool_warned in 6251yes:) 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6254ac_tool_warned=yes ;; 6255esac 6256 OTOOL=$ac_ct_OTOOL 6257 fi 6258else 6259 OTOOL="$ac_cv_prog_OTOOL" 6260fi 6261 6262 if test -n "$ac_tool_prefix"; then 6263 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6264set dummy ${ac_tool_prefix}otool64; ac_word=$2 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6266$as_echo_n "checking for $ac_word... " >&6; } 6267if ${ac_cv_prog_OTOOL64+:} false; then : 6268 $as_echo_n "(cached) " >&6 6269else 6270 if test -n "$OTOOL64"; then 6271 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6272else 6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6274for as_dir in $PATH 6275do 6276 IFS=$as_save_IFS 6277 test -z "$as_dir" && as_dir=. 6278 for ac_exec_ext in '' $ac_executable_extensions; do 6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6280 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6282 break 2 6283 fi 6284done 6285 done 6286IFS=$as_save_IFS 6287 6288fi 6289fi 6290OTOOL64=$ac_cv_prog_OTOOL64 6291if test -n "$OTOOL64"; then 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6293$as_echo "$OTOOL64" >&6; } 6294else 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6296$as_echo "no" >&6; } 6297fi 6298 6299 6300fi 6301if test -z "$ac_cv_prog_OTOOL64"; then 6302 ac_ct_OTOOL64=$OTOOL64 6303 # Extract the first word of "otool64", so it can be a program name with args. 6304set dummy otool64; ac_word=$2 6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6306$as_echo_n "checking for $ac_word... " >&6; } 6307if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6308 $as_echo_n "(cached) " >&6 6309else 6310 if test -n "$ac_ct_OTOOL64"; then 6311 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6312else 6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6314for as_dir in $PATH 6315do 6316 IFS=$as_save_IFS 6317 test -z "$as_dir" && as_dir=. 6318 for ac_exec_ext in '' $ac_executable_extensions; do 6319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6320 ac_cv_prog_ac_ct_OTOOL64="otool64" 6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6322 break 2 6323 fi 6324done 6325 done 6326IFS=$as_save_IFS 6327 6328fi 6329fi 6330ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6331if test -n "$ac_ct_OTOOL64"; then 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6333$as_echo "$ac_ct_OTOOL64" >&6; } 6334else 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6336$as_echo "no" >&6; } 6337fi 6338 6339 if test "x$ac_ct_OTOOL64" = x; then 6340 OTOOL64=":" 6341 else 6342 case $cross_compiling:$ac_tool_warned in 6343yes:) 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6346ac_tool_warned=yes ;; 6347esac 6348 OTOOL64=$ac_ct_OTOOL64 6349 fi 6350else 6351 OTOOL64="$ac_cv_prog_OTOOL64" 6352fi 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6381$as_echo_n "checking for -single_module linker flag... " >&6; } 6382if ${lt_cv_apple_cc_single_mod+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 lt_cv_apple_cc_single_mod=no 6386 if test -z "${LT_MULTI_MODULE}"; then 6387 # By default we will add the -single_module flag. You can override 6388 # by either setting the environment variable LT_MULTI_MODULE 6389 # non-empty at configure time, or by adding -multi_module to the 6390 # link flags. 6391 rm -rf libconftest.dylib* 6392 echo "int foo(void){return 1;}" > conftest.c 6393 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6394-dynamiclib -Wl,-single_module conftest.c" >&5 6395 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6396 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6397 _lt_result=$? 6398 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6399 lt_cv_apple_cc_single_mod=yes 6400 else 6401 cat conftest.err >&5 6402 fi 6403 rm -rf libconftest.dylib* 6404 rm -f conftest.* 6405 fi 6406fi 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6408$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6410$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6411if ${lt_cv_ld_exported_symbols_list+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 lt_cv_ld_exported_symbols_list=no 6415 save_LDFLAGS=$LDFLAGS 6416 echo "_main" > conftest.sym 6417 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420 6421int 6422main () 6423{ 6424 6425 ; 6426 return 0; 6427} 6428_ACEOF 6429if ac_fn_c_try_link "$LINENO"; then : 6430 lt_cv_ld_exported_symbols_list=yes 6431else 6432 lt_cv_ld_exported_symbols_list=no 6433fi 6434rm -f core conftest.err conftest.$ac_objext \ 6435 conftest$ac_exeext conftest.$ac_ext 6436 LDFLAGS="$save_LDFLAGS" 6437 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6440$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6442$as_echo_n "checking for -force_load linker flag... " >&6; } 6443if ${lt_cv_ld_force_load+:} false; then : 6444 $as_echo_n "(cached) " >&6 6445else 6446 lt_cv_ld_force_load=no 6447 cat > conftest.c << _LT_EOF 6448int forced_loaded() { return 2;} 6449_LT_EOF 6450 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6451 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6452 echo "$AR cru libconftest.a conftest.o" >&5 6453 $AR cru libconftest.a conftest.o 2>&5 6454 echo "$RANLIB libconftest.a" >&5 6455 $RANLIB libconftest.a 2>&5 6456 cat > conftest.c << _LT_EOF 6457int main() { return 0;} 6458_LT_EOF 6459 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6460 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6461 _lt_result=$? 6462 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6463 lt_cv_ld_force_load=yes 6464 else 6465 cat conftest.err >&5 6466 fi 6467 rm -f conftest.err libconftest.a conftest conftest.c 6468 rm -rf conftest.dSYM 6469 6470fi 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6472$as_echo "$lt_cv_ld_force_load" >&6; } 6473 case $host_os in 6474 rhapsody* | darwin1.[012]) 6475 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6476 darwin1.*) 6477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6478 darwin*) # darwin 5.x on 6479 # if running on 10.5 or later, the deployment target defaults 6480 # to the OS version, if on x86, and 10.4, the deployment 6481 # target defaults to 10.4. Don't you love it? 6482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6483 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6484 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6485 10.[012]*) 6486 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6487 10.*) 6488 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6489 esac 6490 ;; 6491 esac 6492 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6493 _lt_dar_single_mod='$single_module' 6494 fi 6495 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6496 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6497 else 6498 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6499 fi 6500 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6501 _lt_dsymutil='~$DSYMUTIL $lib || :' 6502 else 6503 _lt_dsymutil= 6504 fi 6505 ;; 6506 esac 6507 6508ac_ext=c 6509ac_cpp='$CPP $CPPFLAGS' 6510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6512ac_compiler_gnu=$ac_cv_c_compiler_gnu 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6514$as_echo_n "checking how to run the C preprocessor... " >&6; } 6515# On Suns, sometimes $CPP names a directory. 6516if test -n "$CPP" && test -d "$CPP"; then 6517 CPP= 6518fi 6519if test -z "$CPP"; then 6520 if ${ac_cv_prog_CPP+:} false; then : 6521 $as_echo_n "(cached) " >&6 6522else 6523 # Double quotes because CPP needs to be expanded 6524 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6525 do 6526 ac_preproc_ok=false 6527for ac_c_preproc_warn_flag in '' yes 6528do 6529 # Use a header file that comes with gcc, so configuring glibc 6530 # with a fresh cross-compiler works. 6531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6532 # <limits.h> exists even on freestanding compilers. 6533 # On the NeXT, cc -E runs the code through the compiler's parser, 6534 # not just through cpp. "Syntax error" is here to catch this case. 6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6536/* end confdefs.h. */ 6537#ifdef __STDC__ 6538# include <limits.h> 6539#else 6540# include <assert.h> 6541#endif 6542 Syntax error 6543_ACEOF 6544if ac_fn_c_try_cpp "$LINENO"; then : 6545 6546else 6547 # Broken: fails on valid input. 6548continue 6549fi 6550rm -f conftest.err conftest.i conftest.$ac_ext 6551 6552 # OK, works on sane cases. Now check whether nonexistent headers 6553 # can be detected and how. 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556#include <ac_nonexistent.h> 6557_ACEOF 6558if ac_fn_c_try_cpp "$LINENO"; then : 6559 # Broken: success on invalid input. 6560continue 6561else 6562 # Passes both tests. 6563ac_preproc_ok=: 6564break 6565fi 6566rm -f conftest.err conftest.i conftest.$ac_ext 6567 6568done 6569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6570rm -f conftest.i conftest.err conftest.$ac_ext 6571if $ac_preproc_ok; then : 6572 break 6573fi 6574 6575 done 6576 ac_cv_prog_CPP=$CPP 6577 6578fi 6579 CPP=$ac_cv_prog_CPP 6580else 6581 ac_cv_prog_CPP=$CPP 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6584$as_echo "$CPP" >&6; } 6585ac_preproc_ok=false 6586for ac_c_preproc_warn_flag in '' yes 6587do 6588 # Use a header file that comes with gcc, so configuring glibc 6589 # with a fresh cross-compiler works. 6590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6591 # <limits.h> exists even on freestanding compilers. 6592 # On the NeXT, cc -E runs the code through the compiler's parser, 6593 # not just through cpp. "Syntax error" is here to catch this case. 6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595/* end confdefs.h. */ 6596#ifdef __STDC__ 6597# include <limits.h> 6598#else 6599# include <assert.h> 6600#endif 6601 Syntax error 6602_ACEOF 6603if ac_fn_c_try_cpp "$LINENO"; then : 6604 6605else 6606 # Broken: fails on valid input. 6607continue 6608fi 6609rm -f conftest.err conftest.i conftest.$ac_ext 6610 6611 # OK, works on sane cases. Now check whether nonexistent headers 6612 # can be detected and how. 6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615#include <ac_nonexistent.h> 6616_ACEOF 6617if ac_fn_c_try_cpp "$LINENO"; then : 6618 # Broken: success on invalid input. 6619continue 6620else 6621 # Passes both tests. 6622ac_preproc_ok=: 6623break 6624fi 6625rm -f conftest.err conftest.i conftest.$ac_ext 6626 6627done 6628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6629rm -f conftest.i conftest.err conftest.$ac_ext 6630if $ac_preproc_ok; then : 6631 6632else 6633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6635as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6636See \`config.log' for more details" "$LINENO" 5; } 6637fi 6638 6639ac_ext=c 6640ac_cpp='$CPP $CPPFLAGS' 6641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6643ac_compiler_gnu=$ac_cv_c_compiler_gnu 6644 6645 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6647$as_echo_n "checking for ANSI C header files... " >&6; } 6648if ${ac_cv_header_stdc+:} false; then : 6649 $as_echo_n "(cached) " >&6 6650else 6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652/* end confdefs.h. */ 6653#include <stdlib.h> 6654#include <stdarg.h> 6655#include <string.h> 6656#include <float.h> 6657 6658int 6659main () 6660{ 6661 6662 ; 6663 return 0; 6664} 6665_ACEOF 6666if ac_fn_c_try_compile "$LINENO"; then : 6667 ac_cv_header_stdc=yes 6668else 6669 ac_cv_header_stdc=no 6670fi 6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6672 6673if test $ac_cv_header_stdc = yes; then 6674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6676/* end confdefs.h. */ 6677#include <string.h> 6678 6679_ACEOF 6680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6681 $EGREP "memchr" >/dev/null 2>&1; then : 6682 6683else 6684 ac_cv_header_stdc=no 6685fi 6686rm -f conftest* 6687 6688fi 6689 6690if test $ac_cv_header_stdc = yes; then 6691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6693/* end confdefs.h. */ 6694#include <stdlib.h> 6695 6696_ACEOF 6697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6698 $EGREP "free" >/dev/null 2>&1; then : 6699 6700else 6701 ac_cv_header_stdc=no 6702fi 6703rm -f conftest* 6704 6705fi 6706 6707if test $ac_cv_header_stdc = yes; then 6708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6709 if test "$cross_compiling" = yes; then : 6710 : 6711else 6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6713/* end confdefs.h. */ 6714#include <ctype.h> 6715#include <stdlib.h> 6716#if ((' ' & 0x0FF) == 0x020) 6717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6719#else 6720# define ISLOWER(c) \ 6721 (('a' <= (c) && (c) <= 'i') \ 6722 || ('j' <= (c) && (c) <= 'r') \ 6723 || ('s' <= (c) && (c) <= 'z')) 6724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6725#endif 6726 6727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6728int 6729main () 6730{ 6731 int i; 6732 for (i = 0; i < 256; i++) 6733 if (XOR (islower (i), ISLOWER (i)) 6734 || toupper (i) != TOUPPER (i)) 6735 return 2; 6736 return 0; 6737} 6738_ACEOF 6739if ac_fn_c_try_run "$LINENO"; then : 6740 6741else 6742 ac_cv_header_stdc=no 6743fi 6744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6745 conftest.$ac_objext conftest.beam conftest.$ac_ext 6746fi 6747 6748fi 6749fi 6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6751$as_echo "$ac_cv_header_stdc" >&6; } 6752if test $ac_cv_header_stdc = yes; then 6753 6754$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6755 6756fi 6757 6758# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6759for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6760 inttypes.h stdint.h unistd.h 6761do : 6762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6763ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6764" 6765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6766 cat >>confdefs.h <<_ACEOF 6767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6768_ACEOF 6769 6770fi 6771 6772done 6773 6774 6775for ac_header in dlfcn.h 6776do : 6777 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6778" 6779if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6780 cat >>confdefs.h <<_ACEOF 6781#define HAVE_DLFCN_H 1 6782_ACEOF 6783 6784fi 6785 6786done 6787 6788 6789 6790 6791 6792# Set options 6793enable_win32_dll=yes 6794 6795case $host in 6796*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 6797 if test -n "$ac_tool_prefix"; then 6798 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6799set dummy ${ac_tool_prefix}as; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_AS+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$AS"; then 6806 ac_cv_prog_AS="$AS" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6815 ac_cv_prog_AS="${ac_tool_prefix}as" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825AS=$ac_cv_prog_AS 6826if test -n "$AS"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6828$as_echo "$AS" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 6835fi 6836if test -z "$ac_cv_prog_AS"; then 6837 ac_ct_AS=$AS 6838 # Extract the first word of "as", so it can be a program name with args. 6839set dummy as; ac_word=$2 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if ${ac_cv_prog_ac_ct_AS+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 if test -n "$ac_ct_AS"; then 6846 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6847else 6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_exec_ext in '' $ac_executable_extensions; do 6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6855 ac_cv_prog_ac_ct_AS="as" 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6857 break 2 6858 fi 6859done 6860 done 6861IFS=$as_save_IFS 6862 6863fi 6864fi 6865ac_ct_AS=$ac_cv_prog_ac_ct_AS 6866if test -n "$ac_ct_AS"; then 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6868$as_echo "$ac_ct_AS" >&6; } 6869else 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6871$as_echo "no" >&6; } 6872fi 6873 6874 if test "x$ac_ct_AS" = x; then 6875 AS="false" 6876 else 6877 case $cross_compiling:$ac_tool_warned in 6878yes:) 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6881ac_tool_warned=yes ;; 6882esac 6883 AS=$ac_ct_AS 6884 fi 6885else 6886 AS="$ac_cv_prog_AS" 6887fi 6888 6889 if test -n "$ac_tool_prefix"; then 6890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6891set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6893$as_echo_n "checking for $ac_word... " >&6; } 6894if ${ac_cv_prog_DLLTOOL+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 if test -n "$DLLTOOL"; then 6898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6899else 6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901for as_dir in $PATH 6902do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911done 6912 done 6913IFS=$as_save_IFS 6914 6915fi 6916fi 6917DLLTOOL=$ac_cv_prog_DLLTOOL 6918if test -n "$DLLTOOL"; then 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6920$as_echo "$DLLTOOL" >&6; } 6921else 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6923$as_echo "no" >&6; } 6924fi 6925 6926 6927fi 6928if test -z "$ac_cv_prog_DLLTOOL"; then 6929 ac_ct_DLLTOOL=$DLLTOOL 6930 # Extract the first word of "dlltool", so it can be a program name with args. 6931set dummy dlltool; ac_word=$2 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6933$as_echo_n "checking for $ac_word... " >&6; } 6934if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 if test -n "$ac_ct_DLLTOOL"; then 6938 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6939else 6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941for as_dir in $PATH 6942do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6947 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951done 6952 done 6953IFS=$as_save_IFS 6954 6955fi 6956fi 6957ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6958if test -n "$ac_ct_DLLTOOL"; then 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6960$as_echo "$ac_ct_DLLTOOL" >&6; } 6961else 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6963$as_echo "no" >&6; } 6964fi 6965 6966 if test "x$ac_ct_DLLTOOL" = x; then 6967 DLLTOOL="false" 6968 else 6969 case $cross_compiling:$ac_tool_warned in 6970yes:) 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6973ac_tool_warned=yes ;; 6974esac 6975 DLLTOOL=$ac_ct_DLLTOOL 6976 fi 6977else 6978 DLLTOOL="$ac_cv_prog_DLLTOOL" 6979fi 6980 6981 if test -n "$ac_tool_prefix"; then 6982 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6983set dummy ${ac_tool_prefix}objdump; ac_word=$2 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6985$as_echo_n "checking for $ac_word... " >&6; } 6986if ${ac_cv_prog_OBJDUMP+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 if test -n "$OBJDUMP"; then 6990 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6991else 6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6993for as_dir in $PATH 6994do 6995 IFS=$as_save_IFS 6996 test -z "$as_dir" && as_dir=. 6997 for ac_exec_ext in '' $ac_executable_extensions; do 6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6999 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7001 break 2 7002 fi 7003done 7004 done 7005IFS=$as_save_IFS 7006 7007fi 7008fi 7009OBJDUMP=$ac_cv_prog_OBJDUMP 7010if test -n "$OBJDUMP"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7012$as_echo "$OBJDUMP" >&6; } 7013else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015$as_echo "no" >&6; } 7016fi 7017 7018 7019fi 7020if test -z "$ac_cv_prog_OBJDUMP"; then 7021 ac_ct_OBJDUMP=$OBJDUMP 7022 # Extract the first word of "objdump", so it can be a program name with args. 7023set dummy objdump; ac_word=$2 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7025$as_echo_n "checking for $ac_word... " >&6; } 7026if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028else 7029 if test -n "$ac_ct_OBJDUMP"; then 7030 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7031else 7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7033for as_dir in $PATH 7034do 7035 IFS=$as_save_IFS 7036 test -z "$as_dir" && as_dir=. 7037 for ac_exec_ext in '' $ac_executable_extensions; do 7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7039 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7041 break 2 7042 fi 7043done 7044 done 7045IFS=$as_save_IFS 7046 7047fi 7048fi 7049ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7050if test -n "$ac_ct_OBJDUMP"; then 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7052$as_echo "$ac_ct_OBJDUMP" >&6; } 7053else 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7055$as_echo "no" >&6; } 7056fi 7057 7058 if test "x$ac_ct_OBJDUMP" = x; then 7059 OBJDUMP="false" 7060 else 7061 case $cross_compiling:$ac_tool_warned in 7062yes:) 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7065ac_tool_warned=yes ;; 7066esac 7067 OBJDUMP=$ac_ct_OBJDUMP 7068 fi 7069else 7070 OBJDUMP="$ac_cv_prog_OBJDUMP" 7071fi 7072 7073 ;; 7074esac 7075 7076test -z "$AS" && AS=as 7077 7078 7079 7080 7081 7082test -z "$DLLTOOL" && DLLTOOL=dlltool 7083 7084 7085 7086 7087 7088test -z "$OBJDUMP" && OBJDUMP=objdump 7089 7090 7091 7092 7093 7094 7095 7096 enable_dlopen=no 7097 7098 7099 7100 # Check whether --enable-shared was given. 7101if test "${enable_shared+set}" = set; then : 7102 enableval=$enable_shared; p=${PACKAGE-default} 7103 case $enableval in 7104 yes) enable_shared=yes ;; 7105 no) enable_shared=no ;; 7106 *) 7107 enable_shared=no 7108 # Look at the argument we got. We use all the common list separators. 7109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7110 for pkg in $enableval; do 7111 IFS="$lt_save_ifs" 7112 if test "X$pkg" = "X$p"; then 7113 enable_shared=yes 7114 fi 7115 done 7116 IFS="$lt_save_ifs" 7117 ;; 7118 esac 7119else 7120 enable_shared=yes 7121fi 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 # Check whether --enable-static was given. 7132if test "${enable_static+set}" = set; then : 7133 enableval=$enable_static; p=${PACKAGE-default} 7134 case $enableval in 7135 yes) enable_static=yes ;; 7136 no) enable_static=no ;; 7137 *) 7138 enable_static=no 7139 # Look at the argument we got. We use all the common list separators. 7140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7141 for pkg in $enableval; do 7142 IFS="$lt_save_ifs" 7143 if test "X$pkg" = "X$p"; then 7144 enable_static=yes 7145 fi 7146 done 7147 IFS="$lt_save_ifs" 7148 ;; 7149 esac 7150else 7151 enable_static=yes 7152fi 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163# Check whether --with-pic was given. 7164if test "${with_pic+set}" = set; then : 7165 withval=$with_pic; pic_mode="$withval" 7166else 7167 pic_mode=default 7168fi 7169 7170 7171test -z "$pic_mode" && pic_mode=default 7172 7173 7174 7175 7176 7177 7178 7179 # Check whether --enable-fast-install was given. 7180if test "${enable_fast_install+set}" = set; then : 7181 enableval=$enable_fast_install; p=${PACKAGE-default} 7182 case $enableval in 7183 yes) enable_fast_install=yes ;; 7184 no) enable_fast_install=no ;; 7185 *) 7186 enable_fast_install=no 7187 # Look at the argument we got. We use all the common list separators. 7188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7189 for pkg in $enableval; do 7190 IFS="$lt_save_ifs" 7191 if test "X$pkg" = "X$p"; then 7192 enable_fast_install=yes 7193 fi 7194 done 7195 IFS="$lt_save_ifs" 7196 ;; 7197 esac 7198else 7199 enable_fast_install=yes 7200fi 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212# This can be used to rebuild libtool when needed 7213LIBTOOL_DEPS="$ltmain" 7214 7215# Always use our own libtool. 7216LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243test -z "$LN_S" && LN_S="ln -s" 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258if test -n "${ZSH_VERSION+set}" ; then 7259 setopt NO_GLOB_SUBST 7260fi 7261 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7263$as_echo_n "checking for objdir... " >&6; } 7264if ${lt_cv_objdir+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 rm -f .libs 2>/dev/null 7268mkdir .libs 2>/dev/null 7269if test -d .libs; then 7270 lt_cv_objdir=.libs 7271else 7272 # MS-DOS does not allow filenames that begin with a dot. 7273 lt_cv_objdir=_libs 7274fi 7275rmdir .libs 2>/dev/null 7276fi 7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7278$as_echo "$lt_cv_objdir" >&6; } 7279objdir=$lt_cv_objdir 7280 7281 7282 7283 7284 7285cat >>confdefs.h <<_ACEOF 7286#define LT_OBJDIR "$lt_cv_objdir/" 7287_ACEOF 7288 7289 7290 7291 7292case $host_os in 7293aix3*) 7294 # AIX sometimes has problems with the GCC collect2 program. For some 7295 # reason, if we set the COLLECT_NAMES environment variable, the problems 7296 # vanish in a puff of smoke. 7297 if test "X${COLLECT_NAMES+set}" != Xset; then 7298 COLLECT_NAMES= 7299 export COLLECT_NAMES 7300 fi 7301 ;; 7302esac 7303 7304# Global variables: 7305ofile=libtool 7306can_build_shared=yes 7307 7308# All known linkers require a `.a' archive for static linking (except MSVC, 7309# which needs '.lib'). 7310libext=a 7311 7312with_gnu_ld="$lt_cv_prog_gnu_ld" 7313 7314old_CC="$CC" 7315old_CFLAGS="$CFLAGS" 7316 7317# Set sane defaults for various variables 7318test -z "$CC" && CC=cc 7319test -z "$LTCC" && LTCC=$CC 7320test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7321test -z "$LD" && LD=ld 7322test -z "$ac_objext" && ac_objext=o 7323 7324for cc_temp in $compiler""; do 7325 case $cc_temp in 7326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7328 \-*) ;; 7329 *) break;; 7330 esac 7331done 7332cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7333 7334 7335# Only perform the check for file, if the check method requires it 7336test -z "$MAGIC_CMD" && MAGIC_CMD=file 7337case $deplibs_check_method in 7338file_magic*) 7339 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7341$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7342if ${lt_cv_path_MAGIC_CMD+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 case $MAGIC_CMD in 7346[\\/*] | ?:[\\/]*) 7347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7348 ;; 7349*) 7350 lt_save_MAGIC_CMD="$MAGIC_CMD" 7351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7353 for ac_dir in $ac_dummy; do 7354 IFS="$lt_save_ifs" 7355 test -z "$ac_dir" && ac_dir=. 7356 if test -f $ac_dir/${ac_tool_prefix}file; then 7357 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7358 if test -n "$file_magic_test_file"; then 7359 case $deplibs_check_method in 7360 "file_magic "*) 7361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7364 $EGREP "$file_magic_regex" > /dev/null; then 7365 : 7366 else 7367 cat <<_LT_EOF 1>&2 7368 7369*** Warning: the command libtool uses to detect shared libraries, 7370*** $file_magic_cmd, produces output that libtool cannot recognize. 7371*** The result is that libtool may fail to recognize shared libraries 7372*** as such. This will affect the creation of libtool libraries that 7373*** depend on shared libraries, but programs linked with such libtool 7374*** libraries will work regardless of this problem. Nevertheless, you 7375*** may want to report the problem to your system manager and/or to 7376*** bug-libtool@gnu.org 7377 7378_LT_EOF 7379 fi ;; 7380 esac 7381 fi 7382 break 7383 fi 7384 done 7385 IFS="$lt_save_ifs" 7386 MAGIC_CMD="$lt_save_MAGIC_CMD" 7387 ;; 7388esac 7389fi 7390 7391MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7392if test -n "$MAGIC_CMD"; then 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7394$as_echo "$MAGIC_CMD" >&6; } 7395else 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7397$as_echo "no" >&6; } 7398fi 7399 7400 7401 7402 7403 7404if test -z "$lt_cv_path_MAGIC_CMD"; then 7405 if test -n "$ac_tool_prefix"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7407$as_echo_n "checking for file... " >&6; } 7408if ${lt_cv_path_MAGIC_CMD+:} false; then : 7409 $as_echo_n "(cached) " >&6 7410else 7411 case $MAGIC_CMD in 7412[\\/*] | ?:[\\/]*) 7413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7414 ;; 7415*) 7416 lt_save_MAGIC_CMD="$MAGIC_CMD" 7417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7418 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7419 for ac_dir in $ac_dummy; do 7420 IFS="$lt_save_ifs" 7421 test -z "$ac_dir" && ac_dir=. 7422 if test -f $ac_dir/file; then 7423 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7424 if test -n "$file_magic_test_file"; then 7425 case $deplibs_check_method in 7426 "file_magic "*) 7427 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7430 $EGREP "$file_magic_regex" > /dev/null; then 7431 : 7432 else 7433 cat <<_LT_EOF 1>&2 7434 7435*** Warning: the command libtool uses to detect shared libraries, 7436*** $file_magic_cmd, produces output that libtool cannot recognize. 7437*** The result is that libtool may fail to recognize shared libraries 7438*** as such. This will affect the creation of libtool libraries that 7439*** depend on shared libraries, but programs linked with such libtool 7440*** libraries will work regardless of this problem. Nevertheless, you 7441*** may want to report the problem to your system manager and/or to 7442*** bug-libtool@gnu.org 7443 7444_LT_EOF 7445 fi ;; 7446 esac 7447 fi 7448 break 7449 fi 7450 done 7451 IFS="$lt_save_ifs" 7452 MAGIC_CMD="$lt_save_MAGIC_CMD" 7453 ;; 7454esac 7455fi 7456 7457MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7458if test -n "$MAGIC_CMD"; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7460$as_echo "$MAGIC_CMD" >&6; } 7461else 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7463$as_echo "no" >&6; } 7464fi 7465 7466 7467 else 7468 MAGIC_CMD=: 7469 fi 7470fi 7471 7472 fi 7473 ;; 7474esac 7475 7476# Use C for the default configuration in the libtool script 7477 7478lt_save_CC="$CC" 7479ac_ext=c 7480ac_cpp='$CPP $CPPFLAGS' 7481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7483ac_compiler_gnu=$ac_cv_c_compiler_gnu 7484 7485 7486# Source file extension for C test sources. 7487ac_ext=c 7488 7489# Object file extension for compiled C test sources. 7490objext=o 7491objext=$objext 7492 7493# Code to be used in simple compile tests 7494lt_simple_compile_test_code="int some_variable = 0;" 7495 7496# Code to be used in simple link tests 7497lt_simple_link_test_code='int main(){return(0);}' 7498 7499 7500 7501 7502 7503 7504 7505# If no C compiler was specified, use CC. 7506LTCC=${LTCC-"$CC"} 7507 7508# If no C compiler flags were specified, use CFLAGS. 7509LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7510 7511# Allow CC to be a program name with arguments. 7512compiler=$CC 7513 7514# Save the default compiler, since it gets overwritten when the other 7515# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7516compiler_DEFAULT=$CC 7517 7518# save warnings/boilerplate of simple test code 7519ac_outfile=conftest.$ac_objext 7520echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7521eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7522_lt_compiler_boilerplate=`cat conftest.err` 7523$RM conftest* 7524 7525ac_outfile=conftest.$ac_objext 7526echo "$lt_simple_link_test_code" >conftest.$ac_ext 7527eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7528_lt_linker_boilerplate=`cat conftest.err` 7529$RM -r conftest* 7530 7531 7532## CAVEAT EMPTOR: 7533## There is no encapsulation within the following macros, do not change 7534## the running order or otherwise move them around unless you know exactly 7535## what you are doing... 7536if test -n "$compiler"; then 7537 7538lt_prog_compiler_no_builtin_flag= 7539 7540if test "$GCC" = yes; then 7541 case $cc_basename in 7542 nvcc*) 7543 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7544 *) 7545 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7546 esac 7547 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7549$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7550if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 lt_cv_prog_compiler_rtti_exceptions=no 7554 ac_outfile=conftest.$ac_objext 7555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7556 lt_compiler_flag="-fno-rtti -fno-exceptions" 7557 # Insert the option either (1) after the last *FLAGS variable, or 7558 # (2) before a word containing "conftest.", or (3) at the end. 7559 # Note that $ac_compile itself does not contain backslashes and begins 7560 # with a dollar sign (not a hyphen), so the echo should work correctly. 7561 # The option is referenced via a variable to avoid confusing sed. 7562 lt_compile=`echo "$ac_compile" | $SED \ 7563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7565 -e 's:$: $lt_compiler_flag:'` 7566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7567 (eval "$lt_compile" 2>conftest.err) 7568 ac_status=$? 7569 cat conftest.err >&5 7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7571 if (exit $ac_status) && test -s "$ac_outfile"; then 7572 # The compiler can only warn and ignore the option if not recognized 7573 # So say no if there are warnings other than the usual output. 7574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7577 lt_cv_prog_compiler_rtti_exceptions=yes 7578 fi 7579 fi 7580 $RM conftest* 7581 7582fi 7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7584$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7585 7586if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7587 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7588else 7589 : 7590fi 7591 7592fi 7593 7594 7595 7596 7597 7598 7599 lt_prog_compiler_wl= 7600lt_prog_compiler_pic= 7601lt_prog_compiler_static= 7602 7603 7604 if test "$GCC" = yes; then 7605 lt_prog_compiler_wl='-Wl,' 7606 lt_prog_compiler_static='-static' 7607 7608 case $host_os in 7609 aix*) 7610 # All AIX code is PIC. 7611 if test "$host_cpu" = ia64; then 7612 # AIX 5 now supports IA64 processor 7613 lt_prog_compiler_static='-Bstatic' 7614 fi 7615 ;; 7616 7617 amigaos*) 7618 case $host_cpu in 7619 powerpc) 7620 # see comment about AmigaOS4 .so support 7621 lt_prog_compiler_pic='-fPIC' 7622 ;; 7623 m68k) 7624 # FIXME: we need at least 68020 code to build shared libraries, but 7625 # adding the `-m68020' flag to GCC prevents building anything better, 7626 # like `-m68040'. 7627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7628 ;; 7629 esac 7630 ;; 7631 7632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7633 # PIC is the default for these OSes. 7634 ;; 7635 7636 mingw* | cygwin* | pw32* | os2* | cegcc*) 7637 # This hack is so that the source file can tell whether it is being 7638 # built for inclusion in a dll (and should export symbols for example). 7639 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7640 # (--disable-auto-import) libraries 7641 lt_prog_compiler_pic='-DDLL_EXPORT' 7642 ;; 7643 7644 darwin* | rhapsody*) 7645 # PIC is the default on this platform 7646 # Common symbols not allowed in MH_DYLIB files 7647 lt_prog_compiler_pic='-fno-common' 7648 ;; 7649 7650 haiku*) 7651 # PIC is the default for Haiku. 7652 # The "-static" flag exists, but is broken. 7653 lt_prog_compiler_static= 7654 ;; 7655 7656 hpux*) 7657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7659 # sets the default TLS model and affects inlining. 7660 case $host_cpu in 7661 hppa*64*) 7662 # +Z the default 7663 ;; 7664 *) 7665 lt_prog_compiler_pic='-fPIC' 7666 ;; 7667 esac 7668 ;; 7669 7670 interix[3-9]*) 7671 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7672 # Instead, we relocate shared libraries at runtime. 7673 ;; 7674 7675 msdosdjgpp*) 7676 # Just because we use GCC doesn't mean we suddenly get shared libraries 7677 # on systems that don't support them. 7678 lt_prog_compiler_can_build_shared=no 7679 enable_shared=no 7680 ;; 7681 7682 *nto* | *qnx*) 7683 # QNX uses GNU C++, but need to define -shared option too, otherwise 7684 # it will coredump. 7685 lt_prog_compiler_pic='-fPIC -shared' 7686 ;; 7687 7688 sysv4*MP*) 7689 if test -d /usr/nec; then 7690 lt_prog_compiler_pic=-Kconform_pic 7691 fi 7692 ;; 7693 7694 *) 7695 lt_prog_compiler_pic='-fPIC' 7696 ;; 7697 esac 7698 7699 case $cc_basename in 7700 nvcc*) # Cuda Compiler Driver 2.2 7701 lt_prog_compiler_wl='-Xlinker ' 7702 lt_prog_compiler_pic='-Xcompiler -fPIC' 7703 ;; 7704 esac 7705 else 7706 # PORTME Check for flag to pass linker flags through the system compiler. 7707 case $host_os in 7708 aix*) 7709 lt_prog_compiler_wl='-Wl,' 7710 if test "$host_cpu" = ia64; then 7711 # AIX 5 now supports IA64 processor 7712 lt_prog_compiler_static='-Bstatic' 7713 else 7714 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7715 fi 7716 ;; 7717 7718 mingw* | cygwin* | pw32* | os2* | cegcc*) 7719 # This hack is so that the source file can tell whether it is being 7720 # built for inclusion in a dll (and should export symbols for example). 7721 lt_prog_compiler_pic='-DDLL_EXPORT' 7722 ;; 7723 7724 hpux9* | hpux10* | hpux11*) 7725 lt_prog_compiler_wl='-Wl,' 7726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7727 # not for PA HP-UX. 7728 case $host_cpu in 7729 hppa*64*|ia64*) 7730 # +Z the default 7731 ;; 7732 *) 7733 lt_prog_compiler_pic='+Z' 7734 ;; 7735 esac 7736 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7737 lt_prog_compiler_static='${wl}-a ${wl}archive' 7738 ;; 7739 7740 irix5* | irix6* | nonstopux*) 7741 lt_prog_compiler_wl='-Wl,' 7742 # PIC (with -KPIC) is the default. 7743 lt_prog_compiler_static='-non_shared' 7744 ;; 7745 7746 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7747 case $cc_basename in 7748 # old Intel for x86_64 which still supported -KPIC. 7749 ecc*) 7750 lt_prog_compiler_wl='-Wl,' 7751 lt_prog_compiler_pic='-KPIC' 7752 lt_prog_compiler_static='-static' 7753 ;; 7754 # icc used to be incompatible with GCC. 7755 # ICC 10 doesn't accept -KPIC any more. 7756 icc* | ifort*) 7757 lt_prog_compiler_wl='-Wl,' 7758 lt_prog_compiler_pic='-fPIC' 7759 lt_prog_compiler_static='-static' 7760 ;; 7761 # Lahey Fortran 8.1. 7762 lf95*) 7763 lt_prog_compiler_wl='-Wl,' 7764 lt_prog_compiler_pic='--shared' 7765 lt_prog_compiler_static='--static' 7766 ;; 7767 nagfor*) 7768 # NAG Fortran compiler 7769 lt_prog_compiler_wl='-Wl,-Wl,,' 7770 lt_prog_compiler_pic='-PIC' 7771 lt_prog_compiler_static='-Bstatic' 7772 ;; 7773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7774 # Portland Group compilers (*not* the Pentium gcc compiler, 7775 # which looks to be a dead project) 7776 lt_prog_compiler_wl='-Wl,' 7777 lt_prog_compiler_pic='-fpic' 7778 lt_prog_compiler_static='-Bstatic' 7779 ;; 7780 ccc*) 7781 lt_prog_compiler_wl='-Wl,' 7782 # All Alpha code is PIC. 7783 lt_prog_compiler_static='-non_shared' 7784 ;; 7785 xl* | bgxl* | bgf* | mpixl*) 7786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7787 lt_prog_compiler_wl='-Wl,' 7788 lt_prog_compiler_pic='-qpic' 7789 lt_prog_compiler_static='-qstaticlink' 7790 ;; 7791 *) 7792 case `$CC -V 2>&1 | sed 5q` in 7793 *Sun\ F* | *Sun*Fortran*) 7794 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7795 lt_prog_compiler_pic='-KPIC' 7796 lt_prog_compiler_static='-Bstatic' 7797 lt_prog_compiler_wl='' 7798 ;; 7799 *Sun\ C*) 7800 # Sun C 5.9 7801 lt_prog_compiler_pic='-KPIC' 7802 lt_prog_compiler_static='-Bstatic' 7803 lt_prog_compiler_wl='-Wl,' 7804 ;; 7805 esac 7806 ;; 7807 esac 7808 ;; 7809 7810 newsos6) 7811 lt_prog_compiler_pic='-KPIC' 7812 lt_prog_compiler_static='-Bstatic' 7813 ;; 7814 7815 *nto* | *qnx*) 7816 # QNX uses GNU C++, but need to define -shared option too, otherwise 7817 # it will coredump. 7818 lt_prog_compiler_pic='-fPIC -shared' 7819 ;; 7820 7821 osf3* | osf4* | osf5*) 7822 lt_prog_compiler_wl='-Wl,' 7823 # All OSF/1 code is PIC. 7824 lt_prog_compiler_static='-non_shared' 7825 ;; 7826 7827 rdos*) 7828 lt_prog_compiler_static='-non_shared' 7829 ;; 7830 7831 solaris*) 7832 lt_prog_compiler_pic='-KPIC' 7833 lt_prog_compiler_static='-Bstatic' 7834 case $cc_basename in 7835 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7836 lt_prog_compiler_wl='-Qoption ld ';; 7837 *) 7838 lt_prog_compiler_wl='-Wl,';; 7839 esac 7840 ;; 7841 7842 sunos4*) 7843 lt_prog_compiler_wl='-Qoption ld ' 7844 lt_prog_compiler_pic='-PIC' 7845 lt_prog_compiler_static='-Bstatic' 7846 ;; 7847 7848 sysv4 | sysv4.2uw2* | sysv4.3*) 7849 lt_prog_compiler_wl='-Wl,' 7850 lt_prog_compiler_pic='-KPIC' 7851 lt_prog_compiler_static='-Bstatic' 7852 ;; 7853 7854 sysv4*MP*) 7855 if test -d /usr/nec ;then 7856 lt_prog_compiler_pic='-Kconform_pic' 7857 lt_prog_compiler_static='-Bstatic' 7858 fi 7859 ;; 7860 7861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7862 lt_prog_compiler_wl='-Wl,' 7863 lt_prog_compiler_pic='-KPIC' 7864 lt_prog_compiler_static='-Bstatic' 7865 ;; 7866 7867 unicos*) 7868 lt_prog_compiler_wl='-Wl,' 7869 lt_prog_compiler_can_build_shared=no 7870 ;; 7871 7872 uts4*) 7873 lt_prog_compiler_pic='-pic' 7874 lt_prog_compiler_static='-Bstatic' 7875 ;; 7876 7877 *) 7878 lt_prog_compiler_can_build_shared=no 7879 ;; 7880 esac 7881 fi 7882 7883case $host_os in 7884 # For platforms which do not support PIC, -DPIC is meaningless: 7885 *djgpp*) 7886 lt_prog_compiler_pic= 7887 ;; 7888 *) 7889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7890 ;; 7891esac 7892 7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7894$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7895if ${lt_cv_prog_compiler_pic+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 7901$as_echo "$lt_cv_prog_compiler_pic" >&6; } 7902lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 7903 7904# 7905# Check to make sure the PIC flag actually works. 7906# 7907if test -n "$lt_prog_compiler_pic"; then 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7909$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7910if ${lt_cv_prog_compiler_pic_works+:} false; then : 7911 $as_echo_n "(cached) " >&6 7912else 7913 lt_cv_prog_compiler_pic_works=no 7914 ac_outfile=conftest.$ac_objext 7915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7916 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7917 # Insert the option either (1) after the last *FLAGS variable, or 7918 # (2) before a word containing "conftest.", or (3) at the end. 7919 # Note that $ac_compile itself does not contain backslashes and begins 7920 # with a dollar sign (not a hyphen), so the echo should work correctly. 7921 # The option is referenced via a variable to avoid confusing sed. 7922 lt_compile=`echo "$ac_compile" | $SED \ 7923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7925 -e 's:$: $lt_compiler_flag:'` 7926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7927 (eval "$lt_compile" 2>conftest.err) 7928 ac_status=$? 7929 cat conftest.err >&5 7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7931 if (exit $ac_status) && test -s "$ac_outfile"; then 7932 # The compiler can only warn and ignore the option if not recognized 7933 # So say no if there are warnings other than the usual output. 7934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7937 lt_cv_prog_compiler_pic_works=yes 7938 fi 7939 fi 7940 $RM conftest* 7941 7942fi 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7944$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7945 7946if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7947 case $lt_prog_compiler_pic in 7948 "" | " "*) ;; 7949 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7950 esac 7951else 7952 lt_prog_compiler_pic= 7953 lt_prog_compiler_can_build_shared=no 7954fi 7955 7956fi 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968# 7969# Check to make sure the static flag actually works. 7970# 7971wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7973$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7974if ${lt_cv_prog_compiler_static_works+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 lt_cv_prog_compiler_static_works=no 7978 save_LDFLAGS="$LDFLAGS" 7979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7980 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7982 # The linker can only warn and ignore the option if not recognized 7983 # So say no if there are warnings 7984 if test -s conftest.err; then 7985 # Append any errors to the config.log. 7986 cat conftest.err 1>&5 7987 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7989 if diff conftest.exp conftest.er2 >/dev/null; then 7990 lt_cv_prog_compiler_static_works=yes 7991 fi 7992 else 7993 lt_cv_prog_compiler_static_works=yes 7994 fi 7995 fi 7996 $RM -r conftest* 7997 LDFLAGS="$save_LDFLAGS" 7998 7999fi 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8001$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8002 8003if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8004 : 8005else 8006 lt_prog_compiler_static= 8007fi 8008 8009 8010 8011 8012 8013 8014 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8016$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8017if ${lt_cv_prog_compiler_c_o+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 lt_cv_prog_compiler_c_o=no 8021 $RM -r conftest 2>/dev/null 8022 mkdir conftest 8023 cd conftest 8024 mkdir out 8025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8026 8027 lt_compiler_flag="-o out/conftest2.$ac_objext" 8028 # Insert the option either (1) after the last *FLAGS variable, or 8029 # (2) before a word containing "conftest.", or (3) at the end. 8030 # Note that $ac_compile itself does not contain backslashes and begins 8031 # with a dollar sign (not a hyphen), so the echo should work correctly. 8032 lt_compile=`echo "$ac_compile" | $SED \ 8033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8035 -e 's:$: $lt_compiler_flag:'` 8036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8037 (eval "$lt_compile" 2>out/conftest.err) 8038 ac_status=$? 8039 cat out/conftest.err >&5 8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8041 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8042 then 8043 # The compiler can only warn and ignore the option if not recognized 8044 # So say no if there are warnings 8045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8048 lt_cv_prog_compiler_c_o=yes 8049 fi 8050 fi 8051 chmod u+w . 2>&5 8052 $RM conftest* 8053 # SGI C++ compiler will create directory out/ii_files/ for 8054 # template instantiation 8055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8056 $RM out/* && rmdir out 8057 cd .. 8058 $RM -r conftest 8059 $RM conftest* 8060 8061fi 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8063$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8064 8065 8066 8067 8068 8069 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8071$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8072if ${lt_cv_prog_compiler_c_o+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 lt_cv_prog_compiler_c_o=no 8076 $RM -r conftest 2>/dev/null 8077 mkdir conftest 8078 cd conftest 8079 mkdir out 8080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8081 8082 lt_compiler_flag="-o out/conftest2.$ac_objext" 8083 # Insert the option either (1) after the last *FLAGS variable, or 8084 # (2) before a word containing "conftest.", or (3) at the end. 8085 # Note that $ac_compile itself does not contain backslashes and begins 8086 # with a dollar sign (not a hyphen), so the echo should work correctly. 8087 lt_compile=`echo "$ac_compile" | $SED \ 8088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8090 -e 's:$: $lt_compiler_flag:'` 8091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8092 (eval "$lt_compile" 2>out/conftest.err) 8093 ac_status=$? 8094 cat out/conftest.err >&5 8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8096 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8097 then 8098 # The compiler can only warn and ignore the option if not recognized 8099 # So say no if there are warnings 8100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8103 lt_cv_prog_compiler_c_o=yes 8104 fi 8105 fi 8106 chmod u+w . 2>&5 8107 $RM conftest* 8108 # SGI C++ compiler will create directory out/ii_files/ for 8109 # template instantiation 8110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8111 $RM out/* && rmdir out 8112 cd .. 8113 $RM -r conftest 8114 $RM conftest* 8115 8116fi 8117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8118$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8119 8120 8121 8122 8123hard_links="nottested" 8124if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8125 # do not overwrite the value of need_locks provided by the user 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8127$as_echo_n "checking if we can lock with hard links... " >&6; } 8128 hard_links=yes 8129 $RM conftest* 8130 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8131 touch conftest.a 8132 ln conftest.a conftest.b 2>&5 || hard_links=no 8133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8135$as_echo "$hard_links" >&6; } 8136 if test "$hard_links" = no; then 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8138$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8139 need_locks=warn 8140 fi 8141else 8142 need_locks=no 8143fi 8144 8145 8146 8147 8148 8149 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8151$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8152 8153 runpath_var= 8154 allow_undefined_flag= 8155 always_export_symbols=no 8156 archive_cmds= 8157 archive_expsym_cmds= 8158 compiler_needs_object=no 8159 enable_shared_with_static_runtimes=no 8160 export_dynamic_flag_spec= 8161 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8162 hardcode_automatic=no 8163 hardcode_direct=no 8164 hardcode_direct_absolute=no 8165 hardcode_libdir_flag_spec= 8166 hardcode_libdir_flag_spec_ld= 8167 hardcode_libdir_separator= 8168 hardcode_minus_L=no 8169 hardcode_shlibpath_var=unsupported 8170 inherit_rpath=no 8171 link_all_deplibs=unknown 8172 module_cmds= 8173 module_expsym_cmds= 8174 old_archive_from_new_cmds= 8175 old_archive_from_expsyms_cmds= 8176 thread_safe_flag_spec= 8177 whole_archive_flag_spec= 8178 # include_expsyms should be a list of space-separated symbols to be *always* 8179 # included in the symbol list 8180 include_expsyms= 8181 # exclude_expsyms can be an extended regexp of symbols to exclude 8182 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8183 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8184 # as well as any symbol that contains `d'. 8185 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8186 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8187 # platforms (ab)use it in PIC code, but their linkers get confused if 8188 # the symbol is explicitly referenced. Since portable code cannot 8189 # rely on this symbol name, it's probably fine to never include it in 8190 # preloaded symbol tables. 8191 # Exclude shared library initialization/finalization symbols. 8192 extract_expsyms_cmds= 8193 8194 case $host_os in 8195 cygwin* | mingw* | pw32* | cegcc*) 8196 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8197 # When not using gcc, we currently assume that we are using 8198 # Microsoft Visual C++. 8199 if test "$GCC" != yes; then 8200 with_gnu_ld=no 8201 fi 8202 ;; 8203 interix*) 8204 # we just hope/assume this is gcc and not c89 (= MSVC++) 8205 with_gnu_ld=yes 8206 ;; 8207 openbsd*) 8208 with_gnu_ld=no 8209 ;; 8210 esac 8211 8212 ld_shlibs=yes 8213 8214 # On some targets, GNU ld is compatible enough with the native linker 8215 # that we're better off using the native interface for both. 8216 lt_use_gnu_ld_interface=no 8217 if test "$with_gnu_ld" = yes; then 8218 case $host_os in 8219 aix*) 8220 # The AIX port of GNU ld has always aspired to compatibility 8221 # with the native linker. However, as the warning in the GNU ld 8222 # block says, versions before 2.19.5* couldn't really create working 8223 # shared libraries, regardless of the interface used. 8224 case `$LD -v 2>&1` in 8225 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8226 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8227 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8228 *) 8229 lt_use_gnu_ld_interface=yes 8230 ;; 8231 esac 8232 ;; 8233 *) 8234 lt_use_gnu_ld_interface=yes 8235 ;; 8236 esac 8237 fi 8238 8239 if test "$lt_use_gnu_ld_interface" = yes; then 8240 # If archive_cmds runs LD, not CC, wlarc should be empty 8241 wlarc='${wl}' 8242 8243 # Set some defaults for GNU ld with shared library support. These 8244 # are reset later if shared libraries are not supported. Putting them 8245 # here allows them to be overridden if necessary. 8246 runpath_var=LD_RUN_PATH 8247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8248 export_dynamic_flag_spec='${wl}--export-dynamic' 8249 # ancient GNU ld didn't support --whole-archive et. al. 8250 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8251 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8252 else 8253 whole_archive_flag_spec= 8254 fi 8255 supports_anon_versioning=no 8256 case `$LD -v 2>&1` in 8257 *GNU\ gold*) supports_anon_versioning=yes ;; 8258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8261 *\ 2.11.*) ;; # other 2.11 versions 8262 *) supports_anon_versioning=yes ;; 8263 esac 8264 8265 # See if GNU ld supports shared libraries. 8266 case $host_os in 8267 aix[3-9]*) 8268 # On AIX/PPC, the GNU linker is very broken 8269 if test "$host_cpu" != ia64; then 8270 ld_shlibs=no 8271 cat <<_LT_EOF 1>&2 8272 8273*** Warning: the GNU linker, at least up to release 2.19, is reported 8274*** to be unable to reliably create shared libraries on AIX. 8275*** Therefore, libtool is disabling shared libraries support. If you 8276*** really care for shared libraries, you may want to install binutils 8277*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8278*** You will then need to restart the configuration process. 8279 8280_LT_EOF 8281 fi 8282 ;; 8283 8284 amigaos*) 8285 case $host_cpu in 8286 powerpc) 8287 # see comment about AmigaOS4 .so support 8288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8289 archive_expsym_cmds='' 8290 ;; 8291 m68k) 8292 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)' 8293 hardcode_libdir_flag_spec='-L$libdir' 8294 hardcode_minus_L=yes 8295 ;; 8296 esac 8297 ;; 8298 8299 beos*) 8300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8301 allow_undefined_flag=unsupported 8302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8303 # support --undefined. This deserves some investigation. FIXME 8304 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8305 else 8306 ld_shlibs=no 8307 fi 8308 ;; 8309 8310 cygwin* | mingw* | pw32* | cegcc*) 8311 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8312 # as there is no search path for DLLs. 8313 hardcode_libdir_flag_spec='-L$libdir' 8314 export_dynamic_flag_spec='${wl}--export-all-symbols' 8315 allow_undefined_flag=unsupported 8316 always_export_symbols=no 8317 enable_shared_with_static_runtimes=yes 8318 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' 8319 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8320 8321 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8323 # If the export-symbols file already is a .def file (1st line 8324 # is EXPORTS), use it as is; otherwise, prepend... 8325 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8326 cp $export_symbols $output_objdir/$soname.def; 8327 else 8328 echo EXPORTS > $output_objdir/$soname.def; 8329 cat $export_symbols >> $output_objdir/$soname.def; 8330 fi~ 8331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8332 else 8333 ld_shlibs=no 8334 fi 8335 ;; 8336 8337 haiku*) 8338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8339 link_all_deplibs=yes 8340 ;; 8341 8342 interix[3-9]*) 8343 hardcode_direct=no 8344 hardcode_shlibpath_var=no 8345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8346 export_dynamic_flag_spec='${wl}-E' 8347 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8348 # Instead, shared libraries are loaded at an image base (0x10000000 by 8349 # default) and relocated if they conflict, which is a slow very memory 8350 # consuming and fragmenting process. To avoid this, we pick a random, 8351 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8352 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8354 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' 8355 ;; 8356 8357 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8358 tmp_diet=no 8359 if test "$host_os" = linux-dietlibc; then 8360 case $cc_basename in 8361 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8362 esac 8363 fi 8364 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8365 && test "$tmp_diet" = no 8366 then 8367 tmp_addflag=' $pic_flag' 8368 tmp_sharedflag='-shared' 8369 case $cc_basename,$host_cpu in 8370 pgcc*) # Portland Group C compiler 8371 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' 8372 tmp_addflag=' $pic_flag' 8373 ;; 8374 pgf77* | pgf90* | pgf95* | pgfortran*) 8375 # Portland Group f77 and f90 compilers 8376 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' 8377 tmp_addflag=' $pic_flag -Mnomain' ;; 8378 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8379 tmp_addflag=' -i_dynamic' ;; 8380 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8381 tmp_addflag=' -i_dynamic -nofor_main' ;; 8382 ifc* | ifort*) # Intel Fortran compiler 8383 tmp_addflag=' -nofor_main' ;; 8384 lf95*) # Lahey Fortran 8.1 8385 whole_archive_flag_spec= 8386 tmp_sharedflag='--shared' ;; 8387 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8388 tmp_sharedflag='-qmkshrobj' 8389 tmp_addflag= ;; 8390 nvcc*) # Cuda Compiler Driver 2.2 8391 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' 8392 compiler_needs_object=yes 8393 ;; 8394 esac 8395 case `$CC -V 2>&1 | sed 5q` in 8396 *Sun\ C*) # Sun C 5.9 8397 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' 8398 compiler_needs_object=yes 8399 tmp_sharedflag='-G' ;; 8400 *Sun\ F*) # Sun Fortran 8.3 8401 tmp_sharedflag='-G' ;; 8402 esac 8403 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8404 8405 if test "x$supports_anon_versioning" = xyes; then 8406 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8407 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8408 echo "local: *; };" >> $output_objdir/$libname.ver~ 8409 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8410 fi 8411 8412 case $cc_basename in 8413 xlf* | bgf* | bgxlf* | mpixlf*) 8414 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8415 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8416 hardcode_libdir_flag_spec= 8417 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8418 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8419 if test "x$supports_anon_versioning" = xyes; then 8420 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8422 echo "local: *; };" >> $output_objdir/$libname.ver~ 8423 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8424 fi 8425 ;; 8426 esac 8427 else 8428 ld_shlibs=no 8429 fi 8430 ;; 8431 8432 netbsd*) 8433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8434 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8435 wlarc= 8436 else 8437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8439 fi 8440 ;; 8441 8442 solaris*) 8443 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8444 ld_shlibs=no 8445 cat <<_LT_EOF 1>&2 8446 8447*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8448*** create shared libraries on Solaris systems. Therefore, libtool 8449*** is disabling shared libraries support. We urge you to upgrade GNU 8450*** binutils to release 2.9.1 or newer. Another option is to modify 8451*** your PATH or compiler configuration so that the native linker is 8452*** used, and then restart. 8453 8454_LT_EOF 8455 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8457 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8458 else 8459 ld_shlibs=no 8460 fi 8461 ;; 8462 8463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8464 case `$LD -v 2>&1` in 8465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8466 ld_shlibs=no 8467 cat <<_LT_EOF 1>&2 8468 8469*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8470*** reliably create shared libraries on SCO systems. Therefore, libtool 8471*** is disabling shared libraries support. We urge you to upgrade GNU 8472*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8473*** your PATH or compiler configuration so that the native linker is 8474*** used, and then restart. 8475 8476_LT_EOF 8477 ;; 8478 *) 8479 # For security reasons, it is highly recommended that you always 8480 # use absolute paths for naming shared libraries, and exclude the 8481 # DT_RUNPATH tag from executables and libraries. But doing so 8482 # requires that you compile everything twice, which is a pain. 8483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8487 else 8488 ld_shlibs=no 8489 fi 8490 ;; 8491 esac 8492 ;; 8493 8494 sunos4*) 8495 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8496 wlarc= 8497 hardcode_direct=yes 8498 hardcode_shlibpath_var=no 8499 ;; 8500 8501 *) 8502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8505 else 8506 ld_shlibs=no 8507 fi 8508 ;; 8509 esac 8510 8511 if test "$ld_shlibs" = no; then 8512 runpath_var= 8513 hardcode_libdir_flag_spec= 8514 export_dynamic_flag_spec= 8515 whole_archive_flag_spec= 8516 fi 8517 else 8518 # PORTME fill in a description of your system's linker (not GNU ld) 8519 case $host_os in 8520 aix3*) 8521 allow_undefined_flag=unsupported 8522 always_export_symbols=yes 8523 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' 8524 # Note: this linker hardcodes the directories in LIBPATH if there 8525 # are no directories specified by -L. 8526 hardcode_minus_L=yes 8527 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8528 # Neither direct hardcoding nor static linking is supported with a 8529 # broken collect2. 8530 hardcode_direct=unsupported 8531 fi 8532 ;; 8533 8534 aix[4-9]*) 8535 if test "$host_cpu" = ia64; then 8536 # On IA64, the linker does run time linking by default, so we don't 8537 # have to do anything special. 8538 aix_use_runtimelinking=no 8539 exp_sym_flag='-Bexport' 8540 no_entry_flag="" 8541 else 8542 # If we're using GNU nm, then we don't want the "-C" option. 8543 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8544 # Also, AIX nm treats weak defined symbols like other global 8545 # defined symbols, whereas GNU nm marks them as "W". 8546 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8547 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' 8548 else 8549 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' 8550 fi 8551 aix_use_runtimelinking=no 8552 8553 # Test if we are trying to use run time linking or normal 8554 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8555 # need to do runtime linking. 8556 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8557 for ld_flag in $LDFLAGS; do 8558 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8559 aix_use_runtimelinking=yes 8560 break 8561 fi 8562 done 8563 ;; 8564 esac 8565 8566 exp_sym_flag='-bexport' 8567 no_entry_flag='-bnoentry' 8568 fi 8569 8570 # When large executables or shared objects are built, AIX ld can 8571 # have problems creating the table of contents. If linking a library 8572 # or program results in "error TOC overflow" add -mminimal-toc to 8573 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8574 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8575 8576 archive_cmds='' 8577 hardcode_direct=yes 8578 hardcode_direct_absolute=yes 8579 hardcode_libdir_separator=':' 8580 link_all_deplibs=yes 8581 file_list_spec='${wl}-f,' 8582 8583 if test "$GCC" = yes; then 8584 case $host_os in aix4.[012]|aix4.[012].*) 8585 # We only want to do this on AIX 4.2 and lower, the check 8586 # below for broken collect2 doesn't work under 4.3+ 8587 collect2name=`${CC} -print-prog-name=collect2` 8588 if test -f "$collect2name" && 8589 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8590 then 8591 # We have reworked collect2 8592 : 8593 else 8594 # We have old collect2 8595 hardcode_direct=unsupported 8596 # It fails to find uninstalled libraries when the uninstalled 8597 # path is not listed in the libpath. Setting hardcode_minus_L 8598 # to unsupported forces relinking 8599 hardcode_minus_L=yes 8600 hardcode_libdir_flag_spec='-L$libdir' 8601 hardcode_libdir_separator= 8602 fi 8603 ;; 8604 esac 8605 shared_flag='-shared' 8606 if test "$aix_use_runtimelinking" = yes; then 8607 shared_flag="$shared_flag "'${wl}-G' 8608 fi 8609 else 8610 # not using gcc 8611 if test "$host_cpu" = ia64; then 8612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8613 # chokes on -Wl,-G. The following line is correct: 8614 shared_flag='-G' 8615 else 8616 if test "$aix_use_runtimelinking" = yes; then 8617 shared_flag='${wl}-G' 8618 else 8619 shared_flag='${wl}-bM:SRE' 8620 fi 8621 fi 8622 fi 8623 8624 export_dynamic_flag_spec='${wl}-bexpall' 8625 # It seems that -bexpall does not export symbols beginning with 8626 # underscore (_), so it is better to generate a list of symbols to export. 8627 always_export_symbols=yes 8628 if test "$aix_use_runtimelinking" = yes; then 8629 # Warning - without using the other runtime loading flags (-brtl), 8630 # -berok will link without error, but may produce a broken library. 8631 allow_undefined_flag='-berok' 8632 # Determine the default libpath from the value encoded in an 8633 # empty executable. 8634 if test "${lt_cv_aix_libpath+set}" = set; then 8635 aix_libpath=$lt_cv_aix_libpath 8636else 8637 if ${lt_cv_aix_libpath_+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639else 8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642 8643int 8644main () 8645{ 8646 8647 ; 8648 return 0; 8649} 8650_ACEOF 8651if ac_fn_c_try_link "$LINENO"; then : 8652 8653 lt_aix_libpath_sed=' 8654 /Import File Strings/,/^$/ { 8655 /^0/ { 8656 s/^0 *\([^ ]*\) *$/\1/ 8657 p 8658 } 8659 }' 8660 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8661 # Check for a 64-bit object if we didn't find anything. 8662 if test -z "$lt_cv_aix_libpath_"; then 8663 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8664 fi 8665fi 8666rm -f core conftest.err conftest.$ac_objext \ 8667 conftest$ac_exeext conftest.$ac_ext 8668 if test -z "$lt_cv_aix_libpath_"; then 8669 lt_cv_aix_libpath_="/usr/lib:/lib" 8670 fi 8671 8672fi 8673 8674 aix_libpath=$lt_cv_aix_libpath_ 8675fi 8676 8677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8678 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" 8679 else 8680 if test "$host_cpu" = ia64; then 8681 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8682 allow_undefined_flag="-z nodefs" 8683 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" 8684 else 8685 # Determine the default libpath from the value encoded in an 8686 # empty executable. 8687 if test "${lt_cv_aix_libpath+set}" = set; then 8688 aix_libpath=$lt_cv_aix_libpath 8689else 8690 if ${lt_cv_aix_libpath_+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695 8696int 8697main () 8698{ 8699 8700 ; 8701 return 0; 8702} 8703_ACEOF 8704if ac_fn_c_try_link "$LINENO"; then : 8705 8706 lt_aix_libpath_sed=' 8707 /Import File Strings/,/^$/ { 8708 /^0/ { 8709 s/^0 *\([^ ]*\) *$/\1/ 8710 p 8711 } 8712 }' 8713 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8714 # Check for a 64-bit object if we didn't find anything. 8715 if test -z "$lt_cv_aix_libpath_"; then 8716 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8717 fi 8718fi 8719rm -f core conftest.err conftest.$ac_objext \ 8720 conftest$ac_exeext conftest.$ac_ext 8721 if test -z "$lt_cv_aix_libpath_"; then 8722 lt_cv_aix_libpath_="/usr/lib:/lib" 8723 fi 8724 8725fi 8726 8727 aix_libpath=$lt_cv_aix_libpath_ 8728fi 8729 8730 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8731 # Warning - without using the other run time loading flags, 8732 # -berok will link without error, but may produce a broken library. 8733 no_undefined_flag=' ${wl}-bernotok' 8734 allow_undefined_flag=' ${wl}-berok' 8735 if test "$with_gnu_ld" = yes; then 8736 # We only use this code for GNU lds that support --whole-archive. 8737 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8738 else 8739 # Exported symbols can be pulled into shared objects from archives 8740 whole_archive_flag_spec='$convenience' 8741 fi 8742 archive_cmds_need_lc=yes 8743 # This is similar to how AIX traditionally builds its shared libraries. 8744 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' 8745 fi 8746 fi 8747 ;; 8748 8749 amigaos*) 8750 case $host_cpu in 8751 powerpc) 8752 # see comment about AmigaOS4 .so support 8753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8754 archive_expsym_cmds='' 8755 ;; 8756 m68k) 8757 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)' 8758 hardcode_libdir_flag_spec='-L$libdir' 8759 hardcode_minus_L=yes 8760 ;; 8761 esac 8762 ;; 8763 8764 bsdi[45]*) 8765 export_dynamic_flag_spec=-rdynamic 8766 ;; 8767 8768 cygwin* | mingw* | pw32* | cegcc*) 8769 # When not using gcc, we currently assume that we are using 8770 # Microsoft Visual C++. 8771 # hardcode_libdir_flag_spec is actually meaningless, as there is 8772 # no search path for DLLs. 8773 case $cc_basename in 8774 cl*) 8775 # Native MSVC 8776 hardcode_libdir_flag_spec=' ' 8777 allow_undefined_flag=unsupported 8778 always_export_symbols=yes 8779 file_list_spec='@' 8780 # Tell ltmain to make .lib files, not .a files. 8781 libext=lib 8782 # Tell ltmain to make .dll files, not .so files. 8783 shrext_cmds=".dll" 8784 # FIXME: Setting linknames here is a bad hack. 8785 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 8786 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8787 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 8788 else 8789 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 8790 fi~ 8791 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8792 linknames=' 8793 # The linker will not automatically build a static lib if we build a DLL. 8794 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 8795 enable_shared_with_static_runtimes=yes 8796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8797 # Don't use ranlib 8798 old_postinstall_cmds='chmod 644 $oldlib' 8799 postlink_cmds='lt_outputfile="@OUTPUT@"~ 8800 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8801 case $lt_outputfile in 8802 *.exe|*.EXE) ;; 8803 *) 8804 lt_outputfile="$lt_outputfile.exe" 8805 lt_tool_outputfile="$lt_tool_outputfile.exe" 8806 ;; 8807 esac~ 8808 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 8809 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8810 $RM "$lt_outputfile.manifest"; 8811 fi' 8812 ;; 8813 *) 8814 # Assume MSVC wrapper 8815 hardcode_libdir_flag_spec=' ' 8816 allow_undefined_flag=unsupported 8817 # Tell ltmain to make .lib files, not .a files. 8818 libext=lib 8819 # Tell ltmain to make .dll files, not .so files. 8820 shrext_cmds=".dll" 8821 # FIXME: Setting linknames here is a bad hack. 8822 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8823 # The linker will automatically build a .lib file if we build a DLL. 8824 old_archive_from_new_cmds='true' 8825 # FIXME: Should let the user specify the lib program. 8826 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8827 enable_shared_with_static_runtimes=yes 8828 ;; 8829 esac 8830 ;; 8831 8832 darwin* | rhapsody*) 8833 8834 8835 archive_cmds_need_lc=no 8836 hardcode_direct=no 8837 hardcode_automatic=yes 8838 hardcode_shlibpath_var=unsupported 8839 if test "$lt_cv_ld_force_load" = "yes"; then 8840 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\"`' 8841 else 8842 whole_archive_flag_spec='' 8843 fi 8844 link_all_deplibs=yes 8845 allow_undefined_flag="$_lt_dar_allow_undefined" 8846 case $cc_basename in 8847 ifort*) _lt_dar_can_shared=yes ;; 8848 *) _lt_dar_can_shared=$GCC ;; 8849 esac 8850 if test "$_lt_dar_can_shared" = "yes"; then 8851 output_verbose_link_cmd=func_echo_all 8852 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8853 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8854 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}" 8855 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}" 8856 8857 else 8858 ld_shlibs=no 8859 fi 8860 8861 ;; 8862 8863 dgux*) 8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8865 hardcode_libdir_flag_spec='-L$libdir' 8866 hardcode_shlibpath_var=no 8867 ;; 8868 8869 freebsd1*) 8870 ld_shlibs=no 8871 ;; 8872 8873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8874 # support. Future versions do this automatically, but an explicit c++rt0.o 8875 # does not break anything, and helps significantly (at the cost of a little 8876 # extra space). 8877 freebsd2.2*) 8878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8879 hardcode_libdir_flag_spec='-R$libdir' 8880 hardcode_direct=yes 8881 hardcode_shlibpath_var=no 8882 ;; 8883 8884 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8885 freebsd2*) 8886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8887 hardcode_direct=yes 8888 hardcode_minus_L=yes 8889 hardcode_shlibpath_var=no 8890 ;; 8891 8892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8893 freebsd* | dragonfly*) 8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8895 hardcode_libdir_flag_spec='-R$libdir' 8896 hardcode_direct=yes 8897 hardcode_shlibpath_var=no 8898 ;; 8899 8900 hpux9*) 8901 if test "$GCC" = yes; then 8902 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' 8903 else 8904 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' 8905 fi 8906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8907 hardcode_libdir_separator=: 8908 hardcode_direct=yes 8909 8910 # hardcode_minus_L: Not really in the search PATH, 8911 # but as the default location of the library. 8912 hardcode_minus_L=yes 8913 export_dynamic_flag_spec='${wl}-E' 8914 ;; 8915 8916 hpux10*) 8917 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8918 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8919 else 8920 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8921 fi 8922 if test "$with_gnu_ld" = no; then 8923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8924 hardcode_libdir_flag_spec_ld='+b $libdir' 8925 hardcode_libdir_separator=: 8926 hardcode_direct=yes 8927 hardcode_direct_absolute=yes 8928 export_dynamic_flag_spec='${wl}-E' 8929 # hardcode_minus_L: Not really in the search PATH, 8930 # but as the default location of the library. 8931 hardcode_minus_L=yes 8932 fi 8933 ;; 8934 8935 hpux11*) 8936 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8937 case $host_cpu in 8938 hppa*64*) 8939 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8940 ;; 8941 ia64*) 8942 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8943 ;; 8944 *) 8945 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8946 ;; 8947 esac 8948 else 8949 case $host_cpu in 8950 hppa*64*) 8951 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8952 ;; 8953 ia64*) 8954 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8955 ;; 8956 *) 8957 8958 # Older versions of the 11.00 compiler do not understand -b yet 8959 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8961$as_echo_n "checking if $CC understands -b... " >&6; } 8962if ${lt_cv_prog_compiler__b+:} false; then : 8963 $as_echo_n "(cached) " >&6 8964else 8965 lt_cv_prog_compiler__b=no 8966 save_LDFLAGS="$LDFLAGS" 8967 LDFLAGS="$LDFLAGS -b" 8968 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8970 # The linker can only warn and ignore the option if not recognized 8971 # So say no if there are warnings 8972 if test -s conftest.err; then 8973 # Append any errors to the config.log. 8974 cat conftest.err 1>&5 8975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8977 if diff conftest.exp conftest.er2 >/dev/null; then 8978 lt_cv_prog_compiler__b=yes 8979 fi 8980 else 8981 lt_cv_prog_compiler__b=yes 8982 fi 8983 fi 8984 $RM -r conftest* 8985 LDFLAGS="$save_LDFLAGS" 8986 8987fi 8988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8989$as_echo "$lt_cv_prog_compiler__b" >&6; } 8990 8991if test x"$lt_cv_prog_compiler__b" = xyes; then 8992 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8993else 8994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8995fi 8996 8997 ;; 8998 esac 8999 fi 9000 if test "$with_gnu_ld" = no; then 9001 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9002 hardcode_libdir_separator=: 9003 9004 case $host_cpu in 9005 hppa*64*|ia64*) 9006 hardcode_direct=no 9007 hardcode_shlibpath_var=no 9008 ;; 9009 *) 9010 hardcode_direct=yes 9011 hardcode_direct_absolute=yes 9012 export_dynamic_flag_spec='${wl}-E' 9013 9014 # hardcode_minus_L: Not really in the search PATH, 9015 # but as the default location of the library. 9016 hardcode_minus_L=yes 9017 ;; 9018 esac 9019 fi 9020 ;; 9021 9022 irix5* | irix6* | nonstopux*) 9023 if test "$GCC" = yes; then 9024 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' 9025 # Try to use the -exported_symbol ld option, if it does not 9026 # work, assume that -exports_file does not work either and 9027 # implicitly export all symbols. 9028 # This should be the same for all languages, so no per-tag cache variable. 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9030$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9031if ${lt_cv_irix_exported_symbol+:} false; then : 9032 $as_echo_n "(cached) " >&6 9033else 9034 save_LDFLAGS="$LDFLAGS" 9035 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037/* end confdefs.h. */ 9038int foo (void) { return 0; } 9039_ACEOF 9040if ac_fn_c_try_link "$LINENO"; then : 9041 lt_cv_irix_exported_symbol=yes 9042else 9043 lt_cv_irix_exported_symbol=no 9044fi 9045rm -f core conftest.err conftest.$ac_objext \ 9046 conftest$ac_exeext conftest.$ac_ext 9047 LDFLAGS="$save_LDFLAGS" 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9050$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9051 if test "$lt_cv_irix_exported_symbol" = yes; then 9052 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' 9053 fi 9054 else 9055 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' 9056 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' 9057 fi 9058 archive_cmds_need_lc='no' 9059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9060 hardcode_libdir_separator=: 9061 inherit_rpath=yes 9062 link_all_deplibs=yes 9063 ;; 9064 9065 netbsd*) 9066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9068 else 9069 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9070 fi 9071 hardcode_libdir_flag_spec='-R$libdir' 9072 hardcode_direct=yes 9073 hardcode_shlibpath_var=no 9074 ;; 9075 9076 newsos6) 9077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9078 hardcode_direct=yes 9079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9080 hardcode_libdir_separator=: 9081 hardcode_shlibpath_var=no 9082 ;; 9083 9084 *nto* | *qnx*) 9085 ;; 9086 9087 openbsd*) 9088 if test -f /usr/libexec/ld.so; then 9089 hardcode_direct=yes 9090 hardcode_shlibpath_var=no 9091 hardcode_direct_absolute=yes 9092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9094 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9096 export_dynamic_flag_spec='${wl}-E' 9097 else 9098 case $host_os in 9099 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9101 hardcode_libdir_flag_spec='-R$libdir' 9102 ;; 9103 *) 9104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9105 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9106 ;; 9107 esac 9108 fi 9109 else 9110 ld_shlibs=no 9111 fi 9112 ;; 9113 9114 os2*) 9115 hardcode_libdir_flag_spec='-L$libdir' 9116 hardcode_minus_L=yes 9117 allow_undefined_flag=unsupported 9118 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' 9119 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9120 ;; 9121 9122 osf3*) 9123 if test "$GCC" = yes; then 9124 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9125 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' 9126 else 9127 allow_undefined_flag=' -expect_unresolved \*' 9128 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' 9129 fi 9130 archive_cmds_need_lc='no' 9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9132 hardcode_libdir_separator=: 9133 ;; 9134 9135 osf4* | osf5*) # as osf3* with the addition of -msym flag 9136 if test "$GCC" = yes; then 9137 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9138 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' 9139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9140 else 9141 allow_undefined_flag=' -expect_unresolved \*' 9142 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' 9143 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~ 9144 $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' 9145 9146 # Both c and cxx compiler support -rpath directly 9147 hardcode_libdir_flag_spec='-rpath $libdir' 9148 fi 9149 archive_cmds_need_lc='no' 9150 hardcode_libdir_separator=: 9151 ;; 9152 9153 solaris*) 9154 no_undefined_flag=' -z defs' 9155 if test "$GCC" = yes; then 9156 wlarc='${wl}' 9157 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9159 $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' 9160 else 9161 case `$CC -V 2>&1` in 9162 *"Compilers 5.0"*) 9163 wlarc='' 9164 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9167 ;; 9168 *) 9169 wlarc='${wl}' 9170 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9172 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9173 ;; 9174 esac 9175 fi 9176 hardcode_libdir_flag_spec='-R$libdir' 9177 hardcode_shlibpath_var=no 9178 case $host_os in 9179 solaris2.[0-5] | solaris2.[0-5].*) ;; 9180 *) 9181 # The compiler driver will combine and reorder linker options, 9182 # but understands `-z linker_flag'. GCC discards it without `$wl', 9183 # but is careful enough not to reorder. 9184 # Supported since Solaris 2.6 (maybe 2.5.1?) 9185 if test "$GCC" = yes; then 9186 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9187 else 9188 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9189 fi 9190 ;; 9191 esac 9192 link_all_deplibs=yes 9193 ;; 9194 9195 sunos4*) 9196 if test "x$host_vendor" = xsequent; then 9197 # Use $CC to link under sequent, because it throws in some extra .o 9198 # files that make .init and .fini sections work. 9199 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9200 else 9201 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9202 fi 9203 hardcode_libdir_flag_spec='-L$libdir' 9204 hardcode_direct=yes 9205 hardcode_minus_L=yes 9206 hardcode_shlibpath_var=no 9207 ;; 9208 9209 sysv4) 9210 case $host_vendor in 9211 sni) 9212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9213 hardcode_direct=yes # is this really true??? 9214 ;; 9215 siemens) 9216 ## LD is ld it makes a PLAMLIB 9217 ## CC just makes a GrossModule. 9218 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9219 reload_cmds='$CC -r -o $output$reload_objs' 9220 hardcode_direct=no 9221 ;; 9222 motorola) 9223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9224 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9225 ;; 9226 esac 9227 runpath_var='LD_RUN_PATH' 9228 hardcode_shlibpath_var=no 9229 ;; 9230 9231 sysv4.3*) 9232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9233 hardcode_shlibpath_var=no 9234 export_dynamic_flag_spec='-Bexport' 9235 ;; 9236 9237 sysv4*MP*) 9238 if test -d /usr/nec; then 9239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9240 hardcode_shlibpath_var=no 9241 runpath_var=LD_RUN_PATH 9242 hardcode_runpath_var=yes 9243 ld_shlibs=yes 9244 fi 9245 ;; 9246 9247 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9248 no_undefined_flag='${wl}-z,text' 9249 archive_cmds_need_lc=no 9250 hardcode_shlibpath_var=no 9251 runpath_var='LD_RUN_PATH' 9252 9253 if test "$GCC" = yes; then 9254 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9255 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9256 else 9257 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9258 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9259 fi 9260 ;; 9261 9262 sysv5* | sco3.2v5* | sco5v6*) 9263 # Note: We can NOT use -z defs as we might desire, because we do not 9264 # link with -lc, and that would cause any symbols used from libc to 9265 # always be unresolved, which means just about no library would 9266 # ever link correctly. If we're not using GNU ld we use -z text 9267 # though, which does catch some bad symbols but isn't as heavy-handed 9268 # as -z defs. 9269 no_undefined_flag='${wl}-z,text' 9270 allow_undefined_flag='${wl}-z,nodefs' 9271 archive_cmds_need_lc=no 9272 hardcode_shlibpath_var=no 9273 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9274 hardcode_libdir_separator=':' 9275 link_all_deplibs=yes 9276 export_dynamic_flag_spec='${wl}-Bexport' 9277 runpath_var='LD_RUN_PATH' 9278 9279 if test "$GCC" = yes; then 9280 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9281 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9282 else 9283 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9284 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9285 fi 9286 ;; 9287 9288 uts4*) 9289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9290 hardcode_libdir_flag_spec='-L$libdir' 9291 hardcode_shlibpath_var=no 9292 ;; 9293 9294 *) 9295 ld_shlibs=no 9296 ;; 9297 esac 9298 9299 if test x$host_vendor = xsni; then 9300 case $host in 9301 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9302 export_dynamic_flag_spec='${wl}-Blargedynsym' 9303 ;; 9304 esac 9305 fi 9306 fi 9307 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9309$as_echo "$ld_shlibs" >&6; } 9310test "$ld_shlibs" = no && can_build_shared=no 9311 9312with_gnu_ld=$with_gnu_ld 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328# 9329# Do we need to explicitly link libc? 9330# 9331case "x$archive_cmds_need_lc" in 9332x|xyes) 9333 # Assume -lc should be added 9334 archive_cmds_need_lc=yes 9335 9336 if test "$enable_shared" = yes && test "$GCC" = yes; then 9337 case $archive_cmds in 9338 *'~'*) 9339 # FIXME: we may have to deal with multi-command sequences. 9340 ;; 9341 '$CC '*) 9342 # Test whether the compiler implicitly links with -lc since on some 9343 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9344 # to ld, don't add -lc before -lgcc. 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9346$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9347if ${lt_cv_archive_cmds_need_lc+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349else 9350 $RM conftest* 9351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9352 9353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9354 (eval $ac_compile) 2>&5 9355 ac_status=$? 9356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9357 test $ac_status = 0; } 2>conftest.err; then 9358 soname=conftest 9359 lib=conftest 9360 libobjs=conftest.$ac_objext 9361 deplibs= 9362 wl=$lt_prog_compiler_wl 9363 pic_flag=$lt_prog_compiler_pic 9364 compiler_flags=-v 9365 linker_flags=-v 9366 verstring= 9367 output_objdir=. 9368 libname=conftest 9369 lt_save_allow_undefined_flag=$allow_undefined_flag 9370 allow_undefined_flag= 9371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9372 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9373 ac_status=$? 9374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9375 test $ac_status = 0; } 9376 then 9377 lt_cv_archive_cmds_need_lc=no 9378 else 9379 lt_cv_archive_cmds_need_lc=yes 9380 fi 9381 allow_undefined_flag=$lt_save_allow_undefined_flag 9382 else 9383 cat conftest.err 1>&5 9384 fi 9385 $RM conftest* 9386 9387fi 9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9389$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9390 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9391 ;; 9392 esac 9393 fi 9394 ;; 9395esac 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9554$as_echo_n "checking dynamic linker characteristics... " >&6; } 9555 9556if test "$GCC" = yes; then 9557 case $host_os in 9558 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9559 *) lt_awk_arg="/^libraries:/" ;; 9560 esac 9561 case $host_os in 9562 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9563 *) lt_sed_strip_eq="s,=/,/,g" ;; 9564 esac 9565 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9566 case $lt_search_path_spec in 9567 *\;*) 9568 # if the path contains ";" then we assume it to be the separator 9569 # otherwise default to the standard path separator (i.e. ":") - it is 9570 # assumed that no part of a normal pathname contains ";" but that should 9571 # okay in the real world where ";" in dirpaths is itself problematic. 9572 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9573 ;; 9574 *) 9575 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9576 ;; 9577 esac 9578 # Ok, now we have the path, separated by spaces, we can step through it 9579 # and add multilib dir if necessary. 9580 lt_tmp_lt_search_path_spec= 9581 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9582 for lt_sys_path in $lt_search_path_spec; do 9583 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9584 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9585 else 9586 test -d "$lt_sys_path" && \ 9587 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9588 fi 9589 done 9590 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9591BEGIN {RS=" "; FS="/|\n";} { 9592 lt_foo=""; 9593 lt_count=0; 9594 for (lt_i = NF; lt_i > 0; lt_i--) { 9595 if ($lt_i != "" && $lt_i != ".") { 9596 if ($lt_i == "..") { 9597 lt_count++; 9598 } else { 9599 if (lt_count == 0) { 9600 lt_foo="/" $lt_i lt_foo; 9601 } else { 9602 lt_count--; 9603 } 9604 } 9605 } 9606 } 9607 if (lt_foo != "") { lt_freq[lt_foo]++; } 9608 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9609}'` 9610 # AWK program above erroneously prepends '/' to C:/dos/paths 9611 # for these hosts. 9612 case $host_os in 9613 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9614 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9615 esac 9616 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9617else 9618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9619fi 9620library_names_spec= 9621libname_spec='lib$name' 9622soname_spec= 9623shrext_cmds=".so" 9624postinstall_cmds= 9625postuninstall_cmds= 9626finish_cmds= 9627finish_eval= 9628shlibpath_var= 9629shlibpath_overrides_runpath=unknown 9630version_type=none 9631dynamic_linker="$host_os ld.so" 9632sys_lib_dlsearch_path_spec="/lib /usr/lib" 9633need_lib_prefix=unknown 9634hardcode_into_libs=no 9635 9636# when you set need_version to no, make sure it does not cause -set_version 9637# flags to be left without arguments 9638need_version=unknown 9639 9640case $host_os in 9641aix3*) 9642 version_type=linux 9643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9644 shlibpath_var=LIBPATH 9645 9646 # AIX 3 has no versioning support, so we append a major version to the name. 9647 soname_spec='${libname}${release}${shared_ext}$major' 9648 ;; 9649 9650aix[4-9]*) 9651 version_type=linux 9652 need_lib_prefix=no 9653 need_version=no 9654 hardcode_into_libs=yes 9655 if test "$host_cpu" = ia64; then 9656 # AIX 5 supports IA64 9657 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9658 shlibpath_var=LD_LIBRARY_PATH 9659 else 9660 # With GCC up to 2.95.x, collect2 would create an import file 9661 # for dependence libraries. The import file would start with 9662 # the line `#! .'. This would cause the generated library to 9663 # depend on `.', always an invalid library. This was fixed in 9664 # development snapshots of GCC prior to 3.0. 9665 case $host_os in 9666 aix4 | aix4.[01] | aix4.[01].*) 9667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9668 echo ' yes ' 9669 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9670 : 9671 else 9672 can_build_shared=no 9673 fi 9674 ;; 9675 esac 9676 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9677 # soname into executable. Probably we can add versioning support to 9678 # collect2, so additional links can be useful in future. 9679 if test "$aix_use_runtimelinking" = yes; then 9680 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9681 # instead of lib<name>.a to let people know that these are not 9682 # typical AIX shared libraries. 9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9684 else 9685 # We preserve .a as extension for shared libraries through AIX4.2 9686 # and later when we are not doing run time linking. 9687 library_names_spec='${libname}${release}.a $libname.a' 9688 soname_spec='${libname}${release}${shared_ext}$major' 9689 fi 9690 shlibpath_var=LIBPATH 9691 fi 9692 ;; 9693 9694amigaos*) 9695 case $host_cpu in 9696 powerpc) 9697 # Since July 2007 AmigaOS4 officially supports .so libraries. 9698 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9700 ;; 9701 m68k) 9702 library_names_spec='$libname.ixlibrary $libname.a' 9703 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9704 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' 9705 ;; 9706 esac 9707 ;; 9708 9709beos*) 9710 library_names_spec='${libname}${shared_ext}' 9711 dynamic_linker="$host_os ld.so" 9712 shlibpath_var=LIBRARY_PATH 9713 ;; 9714 9715bsdi[45]*) 9716 version_type=linux 9717 need_version=no 9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9719 soname_spec='${libname}${release}${shared_ext}$major' 9720 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9721 shlibpath_var=LD_LIBRARY_PATH 9722 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9723 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9724 # the default ld.so.conf also contains /usr/contrib/lib and 9725 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9726 # libtool to hard-code these into programs 9727 ;; 9728 9729cygwin* | mingw* | pw32* | cegcc*) 9730 version_type=windows 9731 shrext_cmds=".dll" 9732 need_version=no 9733 need_lib_prefix=no 9734 9735 case $GCC,$cc_basename in 9736 yes,*) 9737 # gcc 9738 library_names_spec='$libname.dll.a' 9739 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9740 postinstall_cmds='base_file=`basename \${file}`~ 9741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9742 dldir=$destdir/`dirname \$dlpath`~ 9743 test -d \$dldir || mkdir -p \$dldir~ 9744 $install_prog $dir/$dlname \$dldir/$dlname~ 9745 chmod a+x \$dldir/$dlname~ 9746 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9747 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9748 fi' 9749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9750 dlpath=$dir/\$dldll~ 9751 $RM \$dlpath' 9752 shlibpath_overrides_runpath=yes 9753 9754 case $host_os in 9755 cygwin*) 9756 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9757 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9758 9759 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9760 ;; 9761 mingw* | cegcc*) 9762 # MinGW DLLs use traditional 'lib' prefix 9763 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9764 ;; 9765 pw32*) 9766 # pw32 DLLs use 'pw' prefix rather than 'lib' 9767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9768 ;; 9769 esac 9770 dynamic_linker='Win32 ld.exe' 9771 ;; 9772 9773 *,cl*) 9774 # Native MSVC 9775 libname_spec='$name' 9776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9777 library_names_spec='${libname}.dll.lib' 9778 9779 case $build_os in 9780 mingw*) 9781 sys_lib_search_path_spec= 9782 lt_save_ifs=$IFS 9783 IFS=';' 9784 for lt_path in $LIB 9785 do 9786 IFS=$lt_save_ifs 9787 # Let DOS variable expansion print the short 8.3 style file name. 9788 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 9789 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 9790 done 9791 IFS=$lt_save_ifs 9792 # Convert to MSYS style. 9793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 9794 ;; 9795 cygwin*) 9796 # Convert to unix form, then to dos form, then back to unix form 9797 # but this time dos style (no spaces!) so that the unix form looks 9798 # like /cygdrive/c/PROGRA~1:/cygdr... 9799 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 9800 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 9801 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9802 ;; 9803 *) 9804 sys_lib_search_path_spec="$LIB" 9805 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9806 # It is most probably a Windows format PATH. 9807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9808 else 9809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9810 fi 9811 # FIXME: find the short name or the path components, as spaces are 9812 # common. (e.g. "Program Files" -> "PROGRA~1") 9813 ;; 9814 esac 9815 9816 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9817 postinstall_cmds='base_file=`basename \${file}`~ 9818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9819 dldir=$destdir/`dirname \$dlpath`~ 9820 test -d \$dldir || mkdir -p \$dldir~ 9821 $install_prog $dir/$dlname \$dldir/$dlname' 9822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9823 dlpath=$dir/\$dldll~ 9824 $RM \$dlpath' 9825 shlibpath_overrides_runpath=yes 9826 dynamic_linker='Win32 link.exe' 9827 ;; 9828 9829 *) 9830 # Assume MSVC wrapper 9831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9832 dynamic_linker='Win32 ld.exe' 9833 ;; 9834 esac 9835 # FIXME: first we should search . and the directory the executable is in 9836 shlibpath_var=PATH 9837 ;; 9838 9839darwin* | rhapsody*) 9840 dynamic_linker="$host_os dyld" 9841 version_type=darwin 9842 need_lib_prefix=no 9843 need_version=no 9844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9845 soname_spec='${libname}${release}${major}$shared_ext' 9846 shlibpath_overrides_runpath=yes 9847 shlibpath_var=DYLD_LIBRARY_PATH 9848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9849 9850 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9852 ;; 9853 9854dgux*) 9855 version_type=linux 9856 need_lib_prefix=no 9857 need_version=no 9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9859 soname_spec='${libname}${release}${shared_ext}$major' 9860 shlibpath_var=LD_LIBRARY_PATH 9861 ;; 9862 9863freebsd1*) 9864 dynamic_linker=no 9865 ;; 9866 9867freebsd* | dragonfly*) 9868 # DragonFly does not have aout. When/if they implement a new 9869 # versioning mechanism, adjust this. 9870 if test -x /usr/bin/objformat; then 9871 objformat=`/usr/bin/objformat` 9872 else 9873 case $host_os in 9874 freebsd[123]*) objformat=aout ;; 9875 *) objformat=elf ;; 9876 esac 9877 fi 9878 version_type=freebsd-$objformat 9879 case $version_type in 9880 freebsd-elf*) 9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9882 need_version=no 9883 need_lib_prefix=no 9884 ;; 9885 freebsd-*) 9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9887 need_version=yes 9888 ;; 9889 esac 9890 shlibpath_var=LD_LIBRARY_PATH 9891 case $host_os in 9892 freebsd2*) 9893 shlibpath_overrides_runpath=yes 9894 ;; 9895 freebsd3.[01]* | freebsdelf3.[01]*) 9896 shlibpath_overrides_runpath=yes 9897 hardcode_into_libs=yes 9898 ;; 9899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9901 shlibpath_overrides_runpath=no 9902 hardcode_into_libs=yes 9903 ;; 9904 *) # from 4.6 on, and DragonFly 9905 shlibpath_overrides_runpath=yes 9906 hardcode_into_libs=yes 9907 ;; 9908 esac 9909 ;; 9910 9911gnu*) 9912 version_type=linux 9913 need_lib_prefix=no 9914 need_version=no 9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9916 soname_spec='${libname}${release}${shared_ext}$major' 9917 shlibpath_var=LD_LIBRARY_PATH 9918 hardcode_into_libs=yes 9919 ;; 9920 9921haiku*) 9922 version_type=linux 9923 need_lib_prefix=no 9924 need_version=no 9925 dynamic_linker="$host_os runtime_loader" 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9927 soname_spec='${libname}${release}${shared_ext}$major' 9928 shlibpath_var=LIBRARY_PATH 9929 shlibpath_overrides_runpath=yes 9930 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9931 hardcode_into_libs=yes 9932 ;; 9933 9934hpux9* | hpux10* | hpux11*) 9935 # Give a soname corresponding to the major version so that dld.sl refuses to 9936 # link against other versions. 9937 version_type=sunos 9938 need_lib_prefix=no 9939 need_version=no 9940 case $host_cpu in 9941 ia64*) 9942 shrext_cmds='.so' 9943 hardcode_into_libs=yes 9944 dynamic_linker="$host_os dld.so" 9945 shlibpath_var=LD_LIBRARY_PATH 9946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9948 soname_spec='${libname}${release}${shared_ext}$major' 9949 if test "X$HPUX_IA64_MODE" = X32; then 9950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9951 else 9952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9953 fi 9954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9955 ;; 9956 hppa*64*) 9957 shrext_cmds='.sl' 9958 hardcode_into_libs=yes 9959 dynamic_linker="$host_os dld.sl" 9960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9963 soname_spec='${libname}${release}${shared_ext}$major' 9964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9966 ;; 9967 *) 9968 shrext_cmds='.sl' 9969 dynamic_linker="$host_os dld.sl" 9970 shlibpath_var=SHLIB_PATH 9971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9973 soname_spec='${libname}${release}${shared_ext}$major' 9974 ;; 9975 esac 9976 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9977 postinstall_cmds='chmod 555 $lib' 9978 # or fails outright, so override atomically: 9979 install_override_mode=555 9980 ;; 9981 9982interix[3-9]*) 9983 version_type=linux 9984 need_lib_prefix=no 9985 need_version=no 9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9987 soname_spec='${libname}${release}${shared_ext}$major' 9988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9989 shlibpath_var=LD_LIBRARY_PATH 9990 shlibpath_overrides_runpath=no 9991 hardcode_into_libs=yes 9992 ;; 9993 9994irix5* | irix6* | nonstopux*) 9995 case $host_os in 9996 nonstopux*) version_type=nonstopux ;; 9997 *) 9998 if test "$lt_cv_prog_gnu_ld" = yes; then 9999 version_type=linux 10000 else 10001 version_type=irix 10002 fi ;; 10003 esac 10004 need_lib_prefix=no 10005 need_version=no 10006 soname_spec='${libname}${release}${shared_ext}$major' 10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10008 case $host_os in 10009 irix5* | nonstopux*) 10010 libsuff= shlibsuff= 10011 ;; 10012 *) 10013 case $LD in # libtool.m4 will add one of these switches to LD 10014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10015 libsuff= shlibsuff= libmagic=32-bit;; 10016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10017 libsuff=32 shlibsuff=N32 libmagic=N32;; 10018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10019 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10020 *) libsuff= shlibsuff= libmagic=never-match;; 10021 esac 10022 ;; 10023 esac 10024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10025 shlibpath_overrides_runpath=no 10026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10028 hardcode_into_libs=yes 10029 ;; 10030 10031# No shared lib support for Linux oldld, aout, or coff. 10032linux*oldld* | linux*aout* | linux*coff*) 10033 dynamic_linker=no 10034 ;; 10035 10036# This must be Linux ELF. 10037linux* | k*bsd*-gnu | kopensolaris*-gnu) 10038 version_type=linux 10039 need_lib_prefix=no 10040 need_version=no 10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10042 soname_spec='${libname}${release}${shared_ext}$major' 10043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10044 shlibpath_var=LD_LIBRARY_PATH 10045 shlibpath_overrides_runpath=no 10046 10047 # Some binutils ld are patched to set DT_RUNPATH 10048 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 lt_cv_shlibpath_overrides_runpath=no 10052 save_LDFLAGS=$LDFLAGS 10053 save_libdir=$libdir 10054 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10055 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058 10059int 10060main () 10061{ 10062 10063 ; 10064 return 0; 10065} 10066_ACEOF 10067if ac_fn_c_try_link "$LINENO"; then : 10068 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10069 lt_cv_shlibpath_overrides_runpath=yes 10070fi 10071fi 10072rm -f core conftest.err conftest.$ac_objext \ 10073 conftest$ac_exeext conftest.$ac_ext 10074 LDFLAGS=$save_LDFLAGS 10075 libdir=$save_libdir 10076 10077fi 10078 10079 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10080 10081 # This implies no fast_install, which is unacceptable. 10082 # Some rework will be needed to allow for fast_install 10083 # before this can be enabled. 10084 hardcode_into_libs=yes 10085 10086 # Append ld.so.conf contents to the search path 10087 if test -f /etc/ld.so.conf; then 10088 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' ' '` 10089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10090 fi 10091 10092 # We used to test for /lib/ld.so.1 and disable shared libraries on 10093 # powerpc, because MkLinux only supported shared libraries with the 10094 # GNU dynamic linker. Since this was broken with cross compilers, 10095 # most powerpc-linux boxes support dynamic linking these days and 10096 # people can always --disable-shared, the test was removed, and we 10097 # assume the GNU/Linux dynamic linker is in use. 10098 dynamic_linker='GNU/Linux ld.so' 10099 ;; 10100 10101netbsd*) 10102 version_type=sunos 10103 need_lib_prefix=no 10104 need_version=no 10105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10108 dynamic_linker='NetBSD (a.out) ld.so' 10109 else 10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10111 soname_spec='${libname}${release}${shared_ext}$major' 10112 dynamic_linker='NetBSD ld.elf_so' 10113 fi 10114 shlibpath_var=LD_LIBRARY_PATH 10115 shlibpath_overrides_runpath=yes 10116 hardcode_into_libs=yes 10117 ;; 10118 10119newsos6) 10120 version_type=linux 10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10122 shlibpath_var=LD_LIBRARY_PATH 10123 shlibpath_overrides_runpath=yes 10124 ;; 10125 10126*nto* | *qnx*) 10127 version_type=qnx 10128 need_lib_prefix=no 10129 need_version=no 10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10131 soname_spec='${libname}${release}${shared_ext}$major' 10132 shlibpath_var=LD_LIBRARY_PATH 10133 shlibpath_overrides_runpath=no 10134 hardcode_into_libs=yes 10135 dynamic_linker='ldqnx.so' 10136 ;; 10137 10138openbsd*) 10139 version_type=sunos 10140 sys_lib_dlsearch_path_spec="/usr/lib" 10141 need_lib_prefix=no 10142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10143 case $host_os in 10144 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10145 *) need_version=no ;; 10146 esac 10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10149 shlibpath_var=LD_LIBRARY_PATH 10150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10151 case $host_os in 10152 openbsd2.[89] | openbsd2.[89].*) 10153 shlibpath_overrides_runpath=no 10154 ;; 10155 *) 10156 shlibpath_overrides_runpath=yes 10157 ;; 10158 esac 10159 else 10160 shlibpath_overrides_runpath=yes 10161 fi 10162 ;; 10163 10164os2*) 10165 libname_spec='$name' 10166 shrext_cmds=".dll" 10167 need_lib_prefix=no 10168 library_names_spec='$libname${shared_ext} $libname.a' 10169 dynamic_linker='OS/2 ld.exe' 10170 shlibpath_var=LIBPATH 10171 ;; 10172 10173osf3* | osf4* | osf5*) 10174 version_type=osf 10175 need_lib_prefix=no 10176 need_version=no 10177 soname_spec='${libname}${release}${shared_ext}$major' 10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10179 shlibpath_var=LD_LIBRARY_PATH 10180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10182 ;; 10183 10184rdos*) 10185 dynamic_linker=no 10186 ;; 10187 10188solaris*) 10189 version_type=linux 10190 need_lib_prefix=no 10191 need_version=no 10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10193 soname_spec='${libname}${release}${shared_ext}$major' 10194 shlibpath_var=LD_LIBRARY_PATH 10195 shlibpath_overrides_runpath=yes 10196 hardcode_into_libs=yes 10197 # ldd complains unless libraries are executable 10198 postinstall_cmds='chmod +x $lib' 10199 ;; 10200 10201sunos4*) 10202 version_type=sunos 10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10205 shlibpath_var=LD_LIBRARY_PATH 10206 shlibpath_overrides_runpath=yes 10207 if test "$with_gnu_ld" = yes; then 10208 need_lib_prefix=no 10209 fi 10210 need_version=yes 10211 ;; 10212 10213sysv4 | sysv4.3*) 10214 version_type=linux 10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10216 soname_spec='${libname}${release}${shared_ext}$major' 10217 shlibpath_var=LD_LIBRARY_PATH 10218 case $host_vendor in 10219 sni) 10220 shlibpath_overrides_runpath=no 10221 need_lib_prefix=no 10222 runpath_var=LD_RUN_PATH 10223 ;; 10224 siemens) 10225 need_lib_prefix=no 10226 ;; 10227 motorola) 10228 need_lib_prefix=no 10229 need_version=no 10230 shlibpath_overrides_runpath=no 10231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10232 ;; 10233 esac 10234 ;; 10235 10236sysv4*MP*) 10237 if test -d /usr/nec ;then 10238 version_type=linux 10239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10240 soname_spec='$libname${shared_ext}.$major' 10241 shlibpath_var=LD_LIBRARY_PATH 10242 fi 10243 ;; 10244 10245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10246 version_type=freebsd-elf 10247 need_lib_prefix=no 10248 need_version=no 10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10250 soname_spec='${libname}${release}${shared_ext}$major' 10251 shlibpath_var=LD_LIBRARY_PATH 10252 shlibpath_overrides_runpath=yes 10253 hardcode_into_libs=yes 10254 if test "$with_gnu_ld" = yes; then 10255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10256 else 10257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10258 case $host_os in 10259 sco3.2v5*) 10260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10261 ;; 10262 esac 10263 fi 10264 sys_lib_dlsearch_path_spec='/usr/lib' 10265 ;; 10266 10267tpf*) 10268 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10269 version_type=linux 10270 need_lib_prefix=no 10271 need_version=no 10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10273 shlibpath_var=LD_LIBRARY_PATH 10274 shlibpath_overrides_runpath=no 10275 hardcode_into_libs=yes 10276 ;; 10277 10278uts4*) 10279 version_type=linux 10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10281 soname_spec='${libname}${release}${shared_ext}$major' 10282 shlibpath_var=LD_LIBRARY_PATH 10283 ;; 10284 10285*) 10286 dynamic_linker=no 10287 ;; 10288esac 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10290$as_echo "$dynamic_linker" >&6; } 10291test "$dynamic_linker" = no && can_build_shared=no 10292 10293variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10294if test "$GCC" = yes; then 10295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10296fi 10297 10298if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10299 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10300fi 10301if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10302 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10303fi 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10397$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10398hardcode_action= 10399if test -n "$hardcode_libdir_flag_spec" || 10400 test -n "$runpath_var" || 10401 test "X$hardcode_automatic" = "Xyes" ; then 10402 10403 # We can hardcode non-existent directories. 10404 if test "$hardcode_direct" != no && 10405 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10406 # have to relink, otherwise we might link with an installed library 10407 # when we should be linking with a yet-to-be-installed one 10408 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10409 test "$hardcode_minus_L" != no; then 10410 # Linking always hardcodes the temporary library directory. 10411 hardcode_action=relink 10412 else 10413 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10414 hardcode_action=immediate 10415 fi 10416else 10417 # We cannot hardcode anything, or else we can only hardcode existing 10418 # directories. 10419 hardcode_action=unsupported 10420fi 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10422$as_echo "$hardcode_action" >&6; } 10423 10424if test "$hardcode_action" = relink || 10425 test "$inherit_rpath" = yes; then 10426 # Fast installation is not supported 10427 enable_fast_install=no 10428elif test "$shlibpath_overrides_runpath" = yes || 10429 test "$enable_shared" = no; then 10430 # Fast installation is not necessary 10431 enable_fast_install=needless 10432fi 10433 10434 10435 10436 10437 10438 10439 if test "x$enable_dlopen" != xyes; then 10440 enable_dlopen=unknown 10441 enable_dlopen_self=unknown 10442 enable_dlopen_self_static=unknown 10443else 10444 lt_cv_dlopen=no 10445 lt_cv_dlopen_libs= 10446 10447 case $host_os in 10448 beos*) 10449 lt_cv_dlopen="load_add_on" 10450 lt_cv_dlopen_libs= 10451 lt_cv_dlopen_self=yes 10452 ;; 10453 10454 mingw* | pw32* | cegcc*) 10455 lt_cv_dlopen="LoadLibrary" 10456 lt_cv_dlopen_libs= 10457 ;; 10458 10459 cygwin*) 10460 lt_cv_dlopen="dlopen" 10461 lt_cv_dlopen_libs= 10462 ;; 10463 10464 darwin*) 10465 # if libdl is installed we need to link against it 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10467$as_echo_n "checking for dlopen in -ldl... " >&6; } 10468if ${ac_cv_lib_dl_dlopen+:} false; then : 10469 $as_echo_n "(cached) " >&6 10470else 10471 ac_check_lib_save_LIBS=$LIBS 10472LIBS="-ldl $LIBS" 10473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474/* end confdefs.h. */ 10475 10476/* Override any GCC internal prototype to avoid an error. 10477 Use char because int might match the return type of a GCC 10478 builtin and then its argument prototype would still apply. */ 10479#ifdef __cplusplus 10480extern "C" 10481#endif 10482char dlopen (); 10483int 10484main () 10485{ 10486return dlopen (); 10487 ; 10488 return 0; 10489} 10490_ACEOF 10491if ac_fn_c_try_link "$LINENO"; then : 10492 ac_cv_lib_dl_dlopen=yes 10493else 10494 ac_cv_lib_dl_dlopen=no 10495fi 10496rm -f core conftest.err conftest.$ac_objext \ 10497 conftest$ac_exeext conftest.$ac_ext 10498LIBS=$ac_check_lib_save_LIBS 10499fi 10500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10501$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10502if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10504else 10505 10506 lt_cv_dlopen="dyld" 10507 lt_cv_dlopen_libs= 10508 lt_cv_dlopen_self=yes 10509 10510fi 10511 10512 ;; 10513 10514 *) 10515 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10516if test "x$ac_cv_func_shl_load" = xyes; then : 10517 lt_cv_dlopen="shl_load" 10518else 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10520$as_echo_n "checking for shl_load in -ldld... " >&6; } 10521if ${ac_cv_lib_dld_shl_load+:} false; then : 10522 $as_echo_n "(cached) " >&6 10523else 10524 ac_check_lib_save_LIBS=$LIBS 10525LIBS="-ldld $LIBS" 10526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10527/* end confdefs.h. */ 10528 10529/* Override any GCC internal prototype to avoid an error. 10530 Use char because int might match the return type of a GCC 10531 builtin and then its argument prototype would still apply. */ 10532#ifdef __cplusplus 10533extern "C" 10534#endif 10535char shl_load (); 10536int 10537main () 10538{ 10539return shl_load (); 10540 ; 10541 return 0; 10542} 10543_ACEOF 10544if ac_fn_c_try_link "$LINENO"; then : 10545 ac_cv_lib_dld_shl_load=yes 10546else 10547 ac_cv_lib_dld_shl_load=no 10548fi 10549rm -f core conftest.err conftest.$ac_objext \ 10550 conftest$ac_exeext conftest.$ac_ext 10551LIBS=$ac_check_lib_save_LIBS 10552fi 10553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10554$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10555if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10556 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10557else 10558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10559if test "x$ac_cv_func_dlopen" = xyes; then : 10560 lt_cv_dlopen="dlopen" 10561else 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10563$as_echo_n "checking for dlopen in -ldl... " >&6; } 10564if ${ac_cv_lib_dl_dlopen+:} false; then : 10565 $as_echo_n "(cached) " >&6 10566else 10567 ac_check_lib_save_LIBS=$LIBS 10568LIBS="-ldl $LIBS" 10569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571 10572/* Override any GCC internal prototype to avoid an error. 10573 Use char because int might match the return type of a GCC 10574 builtin and then its argument prototype would still apply. */ 10575#ifdef __cplusplus 10576extern "C" 10577#endif 10578char dlopen (); 10579int 10580main () 10581{ 10582return dlopen (); 10583 ; 10584 return 0; 10585} 10586_ACEOF 10587if ac_fn_c_try_link "$LINENO"; then : 10588 ac_cv_lib_dl_dlopen=yes 10589else 10590 ac_cv_lib_dl_dlopen=no 10591fi 10592rm -f core conftest.err conftest.$ac_objext \ 10593 conftest$ac_exeext conftest.$ac_ext 10594LIBS=$ac_check_lib_save_LIBS 10595fi 10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10597$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10598if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10600else 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10602$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10603if ${ac_cv_lib_svld_dlopen+:} false; then : 10604 $as_echo_n "(cached) " >&6 10605else 10606 ac_check_lib_save_LIBS=$LIBS 10607LIBS="-lsvld $LIBS" 10608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10609/* end confdefs.h. */ 10610 10611/* Override any GCC internal prototype to avoid an error. 10612 Use char because int might match the return type of a GCC 10613 builtin and then its argument prototype would still apply. */ 10614#ifdef __cplusplus 10615extern "C" 10616#endif 10617char dlopen (); 10618int 10619main () 10620{ 10621return dlopen (); 10622 ; 10623 return 0; 10624} 10625_ACEOF 10626if ac_fn_c_try_link "$LINENO"; then : 10627 ac_cv_lib_svld_dlopen=yes 10628else 10629 ac_cv_lib_svld_dlopen=no 10630fi 10631rm -f core conftest.err conftest.$ac_objext \ 10632 conftest$ac_exeext conftest.$ac_ext 10633LIBS=$ac_check_lib_save_LIBS 10634fi 10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10636$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10637if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10639else 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10641$as_echo_n "checking for dld_link in -ldld... " >&6; } 10642if ${ac_cv_lib_dld_dld_link+:} false; then : 10643 $as_echo_n "(cached) " >&6 10644else 10645 ac_check_lib_save_LIBS=$LIBS 10646LIBS="-ldld $LIBS" 10647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649 10650/* Override any GCC internal prototype to avoid an error. 10651 Use char because int might match the return type of a GCC 10652 builtin and then its argument prototype would still apply. */ 10653#ifdef __cplusplus 10654extern "C" 10655#endif 10656char dld_link (); 10657int 10658main () 10659{ 10660return dld_link (); 10661 ; 10662 return 0; 10663} 10664_ACEOF 10665if ac_fn_c_try_link "$LINENO"; then : 10666 ac_cv_lib_dld_dld_link=yes 10667else 10668 ac_cv_lib_dld_dld_link=no 10669fi 10670rm -f core conftest.err conftest.$ac_objext \ 10671 conftest$ac_exeext conftest.$ac_ext 10672LIBS=$ac_check_lib_save_LIBS 10673fi 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10675$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10676if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10677 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10678fi 10679 10680 10681fi 10682 10683 10684fi 10685 10686 10687fi 10688 10689 10690fi 10691 10692 10693fi 10694 10695 ;; 10696 esac 10697 10698 if test "x$lt_cv_dlopen" != xno; then 10699 enable_dlopen=yes 10700 else 10701 enable_dlopen=no 10702 fi 10703 10704 case $lt_cv_dlopen in 10705 dlopen) 10706 save_CPPFLAGS="$CPPFLAGS" 10707 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10708 10709 save_LDFLAGS="$LDFLAGS" 10710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10711 10712 save_LIBS="$LIBS" 10713 LIBS="$lt_cv_dlopen_libs $LIBS" 10714 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10716$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10717if ${lt_cv_dlopen_self+:} false; then : 10718 $as_echo_n "(cached) " >&6 10719else 10720 if test "$cross_compiling" = yes; then : 10721 lt_cv_dlopen_self=cross 10722else 10723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10724 lt_status=$lt_dlunknown 10725 cat > conftest.$ac_ext <<_LT_EOF 10726#line $LINENO "configure" 10727#include "confdefs.h" 10728 10729#if HAVE_DLFCN_H 10730#include <dlfcn.h> 10731#endif 10732 10733#include <stdio.h> 10734 10735#ifdef RTLD_GLOBAL 10736# define LT_DLGLOBAL RTLD_GLOBAL 10737#else 10738# ifdef DL_GLOBAL 10739# define LT_DLGLOBAL DL_GLOBAL 10740# else 10741# define LT_DLGLOBAL 0 10742# endif 10743#endif 10744 10745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10746 find out it does not work in some platform. */ 10747#ifndef LT_DLLAZY_OR_NOW 10748# ifdef RTLD_LAZY 10749# define LT_DLLAZY_OR_NOW RTLD_LAZY 10750# else 10751# ifdef DL_LAZY 10752# define LT_DLLAZY_OR_NOW DL_LAZY 10753# else 10754# ifdef RTLD_NOW 10755# define LT_DLLAZY_OR_NOW RTLD_NOW 10756# else 10757# ifdef DL_NOW 10758# define LT_DLLAZY_OR_NOW DL_NOW 10759# else 10760# define LT_DLLAZY_OR_NOW 0 10761# endif 10762# endif 10763# endif 10764# endif 10765#endif 10766 10767/* When -fvisbility=hidden is used, assume the code has been annotated 10768 correspondingly for the symbols needed. */ 10769#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10770int fnord () __attribute__((visibility("default"))); 10771#endif 10772 10773int fnord () { return 42; } 10774int main () 10775{ 10776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10777 int status = $lt_dlunknown; 10778 10779 if (self) 10780 { 10781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10782 else 10783 { 10784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10785 else puts (dlerror ()); 10786 } 10787 /* dlclose (self); */ 10788 } 10789 else 10790 puts (dlerror ()); 10791 10792 return status; 10793} 10794_LT_EOF 10795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10796 (eval $ac_link) 2>&5 10797 ac_status=$? 10798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10799 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10800 (./conftest; exit; ) >&5 2>/dev/null 10801 lt_status=$? 10802 case x$lt_status in 10803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10806 esac 10807 else : 10808 # compilation failed 10809 lt_cv_dlopen_self=no 10810 fi 10811fi 10812rm -fr conftest* 10813 10814 10815fi 10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10817$as_echo "$lt_cv_dlopen_self" >&6; } 10818 10819 if test "x$lt_cv_dlopen_self" = xyes; then 10820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10822$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10823if ${lt_cv_dlopen_self_static+:} false; then : 10824 $as_echo_n "(cached) " >&6 10825else 10826 if test "$cross_compiling" = yes; then : 10827 lt_cv_dlopen_self_static=cross 10828else 10829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10830 lt_status=$lt_dlunknown 10831 cat > conftest.$ac_ext <<_LT_EOF 10832#line $LINENO "configure" 10833#include "confdefs.h" 10834 10835#if HAVE_DLFCN_H 10836#include <dlfcn.h> 10837#endif 10838 10839#include <stdio.h> 10840 10841#ifdef RTLD_GLOBAL 10842# define LT_DLGLOBAL RTLD_GLOBAL 10843#else 10844# ifdef DL_GLOBAL 10845# define LT_DLGLOBAL DL_GLOBAL 10846# else 10847# define LT_DLGLOBAL 0 10848# endif 10849#endif 10850 10851/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10852 find out it does not work in some platform. */ 10853#ifndef LT_DLLAZY_OR_NOW 10854# ifdef RTLD_LAZY 10855# define LT_DLLAZY_OR_NOW RTLD_LAZY 10856# else 10857# ifdef DL_LAZY 10858# define LT_DLLAZY_OR_NOW DL_LAZY 10859# else 10860# ifdef RTLD_NOW 10861# define LT_DLLAZY_OR_NOW RTLD_NOW 10862# else 10863# ifdef DL_NOW 10864# define LT_DLLAZY_OR_NOW DL_NOW 10865# else 10866# define LT_DLLAZY_OR_NOW 0 10867# endif 10868# endif 10869# endif 10870# endif 10871#endif 10872 10873/* When -fvisbility=hidden is used, assume the code has been annotated 10874 correspondingly for the symbols needed. */ 10875#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10876int fnord () __attribute__((visibility("default"))); 10877#endif 10878 10879int fnord () { return 42; } 10880int main () 10881{ 10882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10883 int status = $lt_dlunknown; 10884 10885 if (self) 10886 { 10887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10888 else 10889 { 10890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10891 else puts (dlerror ()); 10892 } 10893 /* dlclose (self); */ 10894 } 10895 else 10896 puts (dlerror ()); 10897 10898 return status; 10899} 10900_LT_EOF 10901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10902 (eval $ac_link) 2>&5 10903 ac_status=$? 10904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10905 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10906 (./conftest; exit; ) >&5 2>/dev/null 10907 lt_status=$? 10908 case x$lt_status in 10909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10912 esac 10913 else : 10914 # compilation failed 10915 lt_cv_dlopen_self_static=no 10916 fi 10917fi 10918rm -fr conftest* 10919 10920 10921fi 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10923$as_echo "$lt_cv_dlopen_self_static" >&6; } 10924 fi 10925 10926 CPPFLAGS="$save_CPPFLAGS" 10927 LDFLAGS="$save_LDFLAGS" 10928 LIBS="$save_LIBS" 10929 ;; 10930 esac 10931 10932 case $lt_cv_dlopen_self in 10933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10934 *) enable_dlopen_self=unknown ;; 10935 esac 10936 10937 case $lt_cv_dlopen_self_static in 10938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10939 *) enable_dlopen_self_static=unknown ;; 10940 esac 10941fi 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959striplib= 10960old_striplib= 10961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10962$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10963if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10965 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10967$as_echo "yes" >&6; } 10968else 10969# FIXME - insert some real tests, host_os isn't really good enough 10970 case $host_os in 10971 darwin*) 10972 if test -n "$STRIP" ; then 10973 striplib="$STRIP -x" 10974 old_striplib="$STRIP -S" 10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10976$as_echo "yes" >&6; } 10977 else 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10979$as_echo "no" >&6; } 10980 fi 10981 ;; 10982 *) 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10984$as_echo "no" >&6; } 10985 ;; 10986 esac 10987fi 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 # Report which library types will actually be built 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11002$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11004$as_echo "$can_build_shared" >&6; } 11005 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11007$as_echo_n "checking whether to build shared libraries... " >&6; } 11008 test "$can_build_shared" = "no" && enable_shared=no 11009 11010 # On AIX, shared libraries and static libraries use the same namespace, and 11011 # are all built from PIC. 11012 case $host_os in 11013 aix3*) 11014 test "$enable_shared" = yes && enable_static=no 11015 if test -n "$RANLIB"; then 11016 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11017 postinstall_cmds='$RANLIB $lib' 11018 fi 11019 ;; 11020 11021 aix[4-9]*) 11022 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11023 test "$enable_shared" = yes && enable_static=no 11024 fi 11025 ;; 11026 esac 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11028$as_echo "$enable_shared" >&6; } 11029 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11031$as_echo_n "checking whether to build static libraries... " >&6; } 11032 # Make sure either enable_shared or enable_static is yes. 11033 test "$enable_shared" = yes || enable_static=yes 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11035$as_echo "$enable_static" >&6; } 11036 11037 11038 11039 11040fi 11041ac_ext=c 11042ac_cpp='$CPP $CPPFLAGS' 11043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11045ac_compiler_gnu=$ac_cv_c_compiler_gnu 11046 11047CC="$lt_save_CC" 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 ac_config_commands="$ac_config_commands libtool" 11062 11063 11064 11065 11066# Only expand once: 11067 11068 11069 11070LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION 11071LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` 11072LT_REVISION=$INTERFACE_AGE 11073LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` 11074 11075 11076 11077 11078 11079 11080 11081 11082am__api_version='1.11' 11083 11084# Find a good install program. We prefer a C program (faster), 11085# so one script is as good as another. But avoid the broken or 11086# incompatible versions: 11087# SysV /etc/install, /usr/sbin/install 11088# SunOS /usr/etc/install 11089# IRIX /sbin/install 11090# AIX /bin/install 11091# AmigaOS /C/install, which installs bootblocks on floppy discs 11092# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11093# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11094# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11095# OS/2's system install, which has a completely different semantic 11096# ./install, which can be erroneously created by make from ./install.sh. 11097# Reject install programs that cannot install multiple files. 11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 11099$as_echo_n "checking for a BSD-compatible install... " >&6; } 11100if test -z "$INSTALL"; then 11101if ${ac_cv_path_install+:} false; then : 11102 $as_echo_n "(cached) " >&6 11103else 11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11105for as_dir in $PATH 11106do 11107 IFS=$as_save_IFS 11108 test -z "$as_dir" && as_dir=. 11109 # Account for people who put trailing slashes in PATH elements. 11110case $as_dir/ in #(( 11111 ./ | .// | /[cC]/* | \ 11112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11113 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 11114 /usr/ucb/* ) ;; 11115 *) 11116 # OSF1 and SCO ODT 3.0 have their own names for install. 11117 # Don't use installbsd from OSF since it installs stuff as root 11118 # by default. 11119 for ac_prog in ginstall scoinst install; do 11120 for ac_exec_ext in '' $ac_executable_extensions; do 11121 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11122 if test $ac_prog = install && 11123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11124 # AIX install. It has an incompatible calling convention. 11125 : 11126 elif test $ac_prog = install && 11127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11128 # program-specific install script used by HP pwplus--don't use. 11129 : 11130 else 11131 rm -rf conftest.one conftest.two conftest.dir 11132 echo one > conftest.one 11133 echo two > conftest.two 11134 mkdir conftest.dir 11135 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 11136 test -s conftest.one && test -s conftest.two && 11137 test -s conftest.dir/conftest.one && 11138 test -s conftest.dir/conftest.two 11139 then 11140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11141 break 3 11142 fi 11143 fi 11144 fi 11145 done 11146 done 11147 ;; 11148esac 11149 11150 done 11151IFS=$as_save_IFS 11152 11153rm -rf conftest.one conftest.two conftest.dir 11154 11155fi 11156 if test "${ac_cv_path_install+set}" = set; then 11157 INSTALL=$ac_cv_path_install 11158 else 11159 # As a last resort, use the slow shell script. Don't cache a 11160 # value for INSTALL within a source directory, because that will 11161 # break other packages using the cache if that directory is 11162 # removed, or if the value is a relative name. 11163 INSTALL=$ac_install_sh 11164 fi 11165fi 11166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 11167$as_echo "$INSTALL" >&6; } 11168 11169# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11170# It thinks the first close brace ends the variable substitution. 11171test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11172 11173test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11174 11175test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11176 11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 11178$as_echo_n "checking whether build environment is sane... " >&6; } 11179# Just in case 11180sleep 1 11181echo timestamp > conftest.file 11182# Reject unsafe characters in $srcdir or the absolute working directory 11183# name. Accept space and tab only in the latter. 11184am_lf=' 11185' 11186case `pwd` in 11187 *[\\\"\#\$\&\'\`$am_lf]*) 11188 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 11189esac 11190case $srcdir in 11191 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 11192 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 11193esac 11194 11195# Do `set' in a subshell so we don't clobber the current shell's 11196# arguments. Must try -L first in case configure is actually a 11197# symlink; some systems play weird games with the mod time of symlinks 11198# (eg FreeBSD returns the mod time of the symlink's containing 11199# directory). 11200if ( 11201 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 11202 if test "$*" = "X"; then 11203 # -L didn't work. 11204 set X `ls -t "$srcdir/configure" conftest.file` 11205 fi 11206 rm -f conftest.file 11207 if test "$*" != "X $srcdir/configure conftest.file" \ 11208 && test "$*" != "X conftest.file $srcdir/configure"; then 11209 11210 # If neither matched, then we have a broken ls. This can happen 11211 # if, for instance, CONFIG_SHELL is bash and it inherits a 11212 # broken ls alias from the environment. This has actually 11213 # happened. Such a system could not be considered "sane". 11214 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 11215alias in your environment" "$LINENO" 5 11216 fi 11217 11218 test "$2" = conftest.file 11219 ) 11220then 11221 # Ok. 11222 : 11223else 11224 as_fn_error $? "newly created file is older than distributed files! 11225Check your system clock" "$LINENO" 5 11226fi 11227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11228$as_echo "yes" >&6; } 11229test "$program_prefix" != NONE && 11230 program_transform_name="s&^&$program_prefix&;$program_transform_name" 11231# Use a double $ so make ignores it. 11232test "$program_suffix" != NONE && 11233 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 11234# Double any \ or $. 11235# By default was `s,x,x', remove it if useless. 11236ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 11237program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 11238 11239# expand $ac_aux_dir to an absolute path 11240am_aux_dir=`cd $ac_aux_dir && pwd` 11241 11242if test x"${MISSING+set}" != xset; then 11243 case $am_aux_dir in 11244 *\ * | *\ *) 11245 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 11246 *) 11247 MISSING="\${SHELL} $am_aux_dir/missing" ;; 11248 esac 11249fi 11250# Use eval to expand $SHELL 11251if eval "$MISSING --run true"; then 11252 am_missing_run="$MISSING --run " 11253else 11254 am_missing_run= 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 11256$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 11257fi 11258 11259if test x"${install_sh}" != xset; then 11260 case $am_aux_dir in 11261 *\ * | *\ *) 11262 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 11263 *) 11264 install_sh="\${SHELL} $am_aux_dir/install-sh" 11265 esac 11266fi 11267 11268# Installed binaries are usually stripped using `strip' when the user 11269# run `make install-strip'. However `strip' might not be the right 11270# tool to use in cross-compilation environments, therefore Automake 11271# will honor the `STRIP' environment variable to overrule this program. 11272if test "$cross_compiling" != no; then 11273 if test -n "$ac_tool_prefix"; then 11274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11275set dummy ${ac_tool_prefix}strip; ac_word=$2 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11277$as_echo_n "checking for $ac_word... " >&6; } 11278if ${ac_cv_prog_STRIP+:} false; then : 11279 $as_echo_n "(cached) " >&6 11280else 11281 if test -n "$STRIP"; then 11282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11283else 11284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11285for as_dir in $PATH 11286do 11287 IFS=$as_save_IFS 11288 test -z "$as_dir" && as_dir=. 11289 for ac_exec_ext in '' $ac_executable_extensions; do 11290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11291 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11293 break 2 11294 fi 11295done 11296 done 11297IFS=$as_save_IFS 11298 11299fi 11300fi 11301STRIP=$ac_cv_prog_STRIP 11302if test -n "$STRIP"; then 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11304$as_echo "$STRIP" >&6; } 11305else 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11307$as_echo "no" >&6; } 11308fi 11309 11310 11311fi 11312if test -z "$ac_cv_prog_STRIP"; then 11313 ac_ct_STRIP=$STRIP 11314 # Extract the first word of "strip", so it can be a program name with args. 11315set dummy strip; ac_word=$2 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11317$as_echo_n "checking for $ac_word... " >&6; } 11318if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 11319 $as_echo_n "(cached) " >&6 11320else 11321 if test -n "$ac_ct_STRIP"; then 11322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11323else 11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11325for as_dir in $PATH 11326do 11327 IFS=$as_save_IFS 11328 test -z "$as_dir" && as_dir=. 11329 for ac_exec_ext in '' $ac_executable_extensions; do 11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11331 ac_cv_prog_ac_ct_STRIP="strip" 11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11333 break 2 11334 fi 11335done 11336 done 11337IFS=$as_save_IFS 11338 11339fi 11340fi 11341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11342if test -n "$ac_ct_STRIP"; then 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11344$as_echo "$ac_ct_STRIP" >&6; } 11345else 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11347$as_echo "no" >&6; } 11348fi 11349 11350 if test "x$ac_ct_STRIP" = x; then 11351 STRIP=":" 11352 else 11353 case $cross_compiling:$ac_tool_warned in 11354yes:) 11355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11357ac_tool_warned=yes ;; 11358esac 11359 STRIP=$ac_ct_STRIP 11360 fi 11361else 11362 STRIP="$ac_cv_prog_STRIP" 11363fi 11364 11365fi 11366INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 11367 11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 11369$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 11370if test -z "$MKDIR_P"; then 11371 if ${ac_cv_path_mkdir+:} false; then : 11372 $as_echo_n "(cached) " >&6 11373else 11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11375for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 11376do 11377 IFS=$as_save_IFS 11378 test -z "$as_dir" && as_dir=. 11379 for ac_prog in mkdir gmkdir; do 11380 for ac_exec_ext in '' $ac_executable_extensions; do 11381 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 11382 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 11383 'mkdir (GNU coreutils) '* | \ 11384 'mkdir (coreutils) '* | \ 11385 'mkdir (fileutils) '4.1*) 11386 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 11387 break 3;; 11388 esac 11389 done 11390 done 11391 done 11392IFS=$as_save_IFS 11393 11394fi 11395 11396 test -d ./--version && rmdir ./--version 11397 if test "${ac_cv_path_mkdir+set}" = set; then 11398 MKDIR_P="$ac_cv_path_mkdir -p" 11399 else 11400 # As a last resort, use the slow shell script. Don't cache a 11401 # value for MKDIR_P within a source directory, because that will 11402 # break other packages using the cache if that directory is 11403 # removed, or if the value is a relative name. 11404 MKDIR_P="$ac_install_sh -d" 11405 fi 11406fi 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 11408$as_echo "$MKDIR_P" >&6; } 11409 11410mkdir_p="$MKDIR_P" 11411case $mkdir_p in 11412 [\\/$]* | ?:[\\/]*) ;; 11413 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 11414esac 11415 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11417$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11418set x ${MAKE-make} 11419ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11420if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 11421 $as_echo_n "(cached) " >&6 11422else 11423 cat >conftest.make <<\_ACEOF 11424SHELL = /bin/sh 11425all: 11426 @echo '@@@%%%=$(MAKE)=@@@%%%' 11427_ACEOF 11428# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11429case `${MAKE-make} -f conftest.make 2>/dev/null` in 11430 *@@@%%%=?*=@@@%%%*) 11431 eval ac_cv_prog_make_${ac_make}_set=yes;; 11432 *) 11433 eval ac_cv_prog_make_${ac_make}_set=no;; 11434esac 11435rm -f conftest.make 11436fi 11437if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11439$as_echo "yes" >&6; } 11440 SET_MAKE= 11441else 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11443$as_echo "no" >&6; } 11444 SET_MAKE="MAKE=${MAKE-make}" 11445fi 11446 11447rm -rf .tst 2>/dev/null 11448mkdir .tst 2>/dev/null 11449if test -d .tst; then 11450 am__leading_dot=. 11451else 11452 am__leading_dot=_ 11453fi 11454rmdir .tst 2>/dev/null 11455 11456DEPDIR="${am__leading_dot}deps" 11457 11458ac_config_commands="$ac_config_commands depfiles" 11459 11460 11461am_make=${MAKE-make} 11462cat > confinc << 'END' 11463am__doit: 11464 @echo this is the am__doit target 11465.PHONY: am__doit 11466END 11467# If we don't find an include directive, just comment out the code. 11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 11469$as_echo_n "checking for style of include used by $am_make... " >&6; } 11470am__include="#" 11471am__quote= 11472_am_result=none 11473# First try GNU make style include. 11474echo "include confinc" > confmf 11475# Ignore all kinds of additional output from `make'. 11476case `$am_make -s -f confmf 2> /dev/null` in #( 11477*the\ am__doit\ target*) 11478 am__include=include 11479 am__quote= 11480 _am_result=GNU 11481 ;; 11482esac 11483# Now try BSD make style include. 11484if test "$am__include" = "#"; then 11485 echo '.include "confinc"' > confmf 11486 case `$am_make -s -f confmf 2> /dev/null` in #( 11487 *the\ am__doit\ target*) 11488 am__include=.include 11489 am__quote="\"" 11490 _am_result=BSD 11491 ;; 11492 esac 11493fi 11494 11495 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 11497$as_echo "$_am_result" >&6; } 11498rm -f confinc confmf 11499 11500# Check whether --enable-dependency-tracking was given. 11501if test "${enable_dependency_tracking+set}" = set; then : 11502 enableval=$enable_dependency_tracking; 11503fi 11504 11505if test "x$enable_dependency_tracking" != xno; then 11506 am_depcomp="$ac_aux_dir/depcomp" 11507 AMDEPBACKSLASH='\' 11508 am__nodep='_no' 11509fi 11510 if test "x$enable_dependency_tracking" != xno; then 11511 AMDEP_TRUE= 11512 AMDEP_FALSE='#' 11513else 11514 AMDEP_TRUE='#' 11515 AMDEP_FALSE= 11516fi 11517 11518 11519if test "`cd $srcdir && pwd`" != "`pwd`"; then 11520 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 11521 # is not polluted with repeated "-I." 11522 am__isrc=' -I$(srcdir)' 11523 # test to see if srcdir already configured 11524 if test -f $srcdir/config.status; then 11525 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 11526 fi 11527fi 11528 11529# test whether we have cygpath 11530if test -z "$CYGPATH_W"; then 11531 if (cygpath --version) >/dev/null 2>/dev/null; then 11532 CYGPATH_W='cygpath -w' 11533 else 11534 CYGPATH_W=echo 11535 fi 11536fi 11537 11538 11539# Define the identity of the package. 11540 PACKAGE=SDL2_gfx 11541 VERSION=$VERSION 11542 11543 11544cat >>confdefs.h <<_ACEOF 11545#define PACKAGE "$PACKAGE" 11546_ACEOF 11547 11548 11549cat >>confdefs.h <<_ACEOF 11550#define VERSION "$VERSION" 11551_ACEOF 11552 11553# Some tools Automake needs. 11554 11555ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 11556 11557 11558AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 11559 11560 11561AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 11562 11563 11564AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 11565 11566 11567MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 11568 11569# We need awk for the "check" target. The system "awk" is bad on 11570# some platforms. 11571# Always define AMTAR for backward compatibility. Yes, it's still used 11572# in the wild :-( We should find a proper way to deprecate it ... 11573AMTAR='$${TAR-tar}' 11574 11575am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 11576 11577 11578 11579 11580depcc="$CC" am_compiler_list= 11581 11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11583$as_echo_n "checking dependency style of $depcc... " >&6; } 11584if ${am_cv_CC_dependencies_compiler_type+:} false; then : 11585 $as_echo_n "(cached) " >&6 11586else 11587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11588 # We make a subdir and do the tests there. Otherwise we can end up 11589 # making bogus files that we don't know about and never remove. For 11590 # instance it was reported that on HP-UX the gcc test will end up 11591 # making a dummy file named `D' -- because `-MD' means `put the output 11592 # in D'. 11593 rm -rf conftest.dir 11594 mkdir conftest.dir 11595 # Copy depcomp to subdir because otherwise we won't find it if we're 11596 # using a relative directory. 11597 cp "$am_depcomp" conftest.dir 11598 cd conftest.dir 11599 # We will build objects and dependencies in a subdirectory because 11600 # it helps to detect inapplicable dependency modes. For instance 11601 # both Tru64's cc and ICC support -MD to output dependencies as a 11602 # side effect of compilation, but ICC will put the dependencies in 11603 # the current directory while Tru64 will put them in the object 11604 # directory. 11605 mkdir sub 11606 11607 am_cv_CC_dependencies_compiler_type=none 11608 if test "$am_compiler_list" = ""; then 11609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11610 fi 11611 am__universal=false 11612 case " $depcc " in #( 11613 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11614 esac 11615 11616 for depmode in $am_compiler_list; do 11617 # Setup a source with many dependencies, because some compilers 11618 # like to wrap large dependency lists on column 80 (with \), and 11619 # we should not choose a depcomp mode which is confused by this. 11620 # 11621 # We need to recreate these files for each test, as the compiler may 11622 # overwrite some of them when testing with obscure command lines. 11623 # This happens at least with the AIX C compiler. 11624 : > sub/conftest.c 11625 for i in 1 2 3 4 5 6; do 11626 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11627 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11628 # Solaris 8's {/usr,}/bin/sh. 11629 touch sub/conftst$i.h 11630 done 11631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11632 11633 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11634 # mode. It turns out that the SunPro C++ compiler does not properly 11635 # handle `-M -o', and we need to detect this. Also, some Intel 11636 # versions had trouble with output in subdirs 11637 am__obj=sub/conftest.${OBJEXT-o} 11638 am__minus_obj="-o $am__obj" 11639 case $depmode in 11640 gcc) 11641 # This depmode causes a compiler race in universal mode. 11642 test "$am__universal" = false || continue 11643 ;; 11644 nosideeffect) 11645 # after this tag, mechanisms are not by side-effect, so they'll 11646 # only be used when explicitly requested 11647 if test "x$enable_dependency_tracking" = xyes; then 11648 continue 11649 else 11650 break 11651 fi 11652 ;; 11653 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11654 # This compiler won't grok `-c -o', but also, the minuso test has 11655 # not run yet. These depmodes are late enough in the game, and 11656 # so weak that their functioning should not be impacted. 11657 am__obj=conftest.${OBJEXT-o} 11658 am__minus_obj= 11659 ;; 11660 none) break ;; 11661 esac 11662 if depmode=$depmode \ 11663 source=sub/conftest.c object=$am__obj \ 11664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11666 >/dev/null 2>conftest.err && 11667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11671 # icc doesn't choke on unknown options, it will just issue warnings 11672 # or remarks (even with -Werror). So we grep stderr for any message 11673 # that says an option was ignored or not supported. 11674 # When given -MP, icc 7.0 and 7.1 complain thusly: 11675 # icc: Command line warning: ignoring option '-M'; no argument required 11676 # The diagnosis changed in icc 8.0: 11677 # icc: Command line remark: option '-MP' not supported 11678 if (grep 'ignoring option' conftest.err || 11679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11680 am_cv_CC_dependencies_compiler_type=$depmode 11681 break 11682 fi 11683 fi 11684 done 11685 11686 cd .. 11687 rm -rf conftest.dir 11688else 11689 am_cv_CC_dependencies_compiler_type=none 11690fi 11691 11692fi 11693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11694$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11695CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11696 11697 if 11698 test "x$enable_dependency_tracking" != xno \ 11699 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11700 am__fastdepCC_TRUE= 11701 am__fastdepCC_FALSE='#' 11702else 11703 am__fastdepCC_TRUE='#' 11704 am__fastdepCC_FALSE= 11705fi 11706 11707 11708 11709 11710 11711ac_ext=c 11712ac_cpp='$CPP $CPPFLAGS' 11713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11715ac_compiler_gnu=$ac_cv_c_compiler_gnu 11716if test -n "$ac_tool_prefix"; then 11717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11718set dummy ${ac_tool_prefix}gcc; ac_word=$2 11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11720$as_echo_n "checking for $ac_word... " >&6; } 11721if ${ac_cv_prog_CC+:} false; then : 11722 $as_echo_n "(cached) " >&6 11723else 11724 if test -n "$CC"; then 11725 ac_cv_prog_CC="$CC" # Let the user override the test. 11726else 11727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11728for as_dir in $PATH 11729do 11730 IFS=$as_save_IFS 11731 test -z "$as_dir" && as_dir=. 11732 for ac_exec_ext in '' $ac_executable_extensions; do 11733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11734 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11736 break 2 11737 fi 11738done 11739 done 11740IFS=$as_save_IFS 11741 11742fi 11743fi 11744CC=$ac_cv_prog_CC 11745if test -n "$CC"; then 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11747$as_echo "$CC" >&6; } 11748else 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11750$as_echo "no" >&6; } 11751fi 11752 11753 11754fi 11755if test -z "$ac_cv_prog_CC"; then 11756 ac_ct_CC=$CC 11757 # Extract the first word of "gcc", so it can be a program name with args. 11758set dummy gcc; ac_word=$2 11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11760$as_echo_n "checking for $ac_word... " >&6; } 11761if ${ac_cv_prog_ac_ct_CC+:} false; then : 11762 $as_echo_n "(cached) " >&6 11763else 11764 if test -n "$ac_ct_CC"; then 11765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11766else 11767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11768for as_dir in $PATH 11769do 11770 IFS=$as_save_IFS 11771 test -z "$as_dir" && as_dir=. 11772 for ac_exec_ext in '' $ac_executable_extensions; do 11773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11774 ac_cv_prog_ac_ct_CC="gcc" 11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11776 break 2 11777 fi 11778done 11779 done 11780IFS=$as_save_IFS 11781 11782fi 11783fi 11784ac_ct_CC=$ac_cv_prog_ac_ct_CC 11785if test -n "$ac_ct_CC"; then 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11787$as_echo "$ac_ct_CC" >&6; } 11788else 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11790$as_echo "no" >&6; } 11791fi 11792 11793 if test "x$ac_ct_CC" = x; then 11794 CC="" 11795 else 11796 case $cross_compiling:$ac_tool_warned in 11797yes:) 11798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11800ac_tool_warned=yes ;; 11801esac 11802 CC=$ac_ct_CC 11803 fi 11804else 11805 CC="$ac_cv_prog_CC" 11806fi 11807 11808if test -z "$CC"; then 11809 if test -n "$ac_tool_prefix"; then 11810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11811set dummy ${ac_tool_prefix}cc; ac_word=$2 11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11813$as_echo_n "checking for $ac_word... " >&6; } 11814if ${ac_cv_prog_CC+:} false; then : 11815 $as_echo_n "(cached) " >&6 11816else 11817 if test -n "$CC"; then 11818 ac_cv_prog_CC="$CC" # Let the user override the test. 11819else 11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11821for as_dir in $PATH 11822do 11823 IFS=$as_save_IFS 11824 test -z "$as_dir" && as_dir=. 11825 for ac_exec_ext in '' $ac_executable_extensions; do 11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11827 ac_cv_prog_CC="${ac_tool_prefix}cc" 11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11829 break 2 11830 fi 11831done 11832 done 11833IFS=$as_save_IFS 11834 11835fi 11836fi 11837CC=$ac_cv_prog_CC 11838if test -n "$CC"; then 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11840$as_echo "$CC" >&6; } 11841else 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11843$as_echo "no" >&6; } 11844fi 11845 11846 11847 fi 11848fi 11849if test -z "$CC"; then 11850 # Extract the first word of "cc", so it can be a program name with args. 11851set dummy cc; ac_word=$2 11852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11853$as_echo_n "checking for $ac_word... " >&6; } 11854if ${ac_cv_prog_CC+:} false; then : 11855 $as_echo_n "(cached) " >&6 11856else 11857 if test -n "$CC"; then 11858 ac_cv_prog_CC="$CC" # Let the user override the test. 11859else 11860 ac_prog_rejected=no 11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11862for as_dir in $PATH 11863do 11864 IFS=$as_save_IFS 11865 test -z "$as_dir" && as_dir=. 11866 for ac_exec_ext in '' $ac_executable_extensions; do 11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11869 ac_prog_rejected=yes 11870 continue 11871 fi 11872 ac_cv_prog_CC="cc" 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11874 break 2 11875 fi 11876done 11877 done 11878IFS=$as_save_IFS 11879 11880if test $ac_prog_rejected = yes; then 11881 # We found a bogon in the path, so make sure we never use it. 11882 set dummy $ac_cv_prog_CC 11883 shift 11884 if test $# != 0; then 11885 # We chose a different compiler from the bogus one. 11886 # However, it has the same basename, so the bogon will be chosen 11887 # first if we set CC to just the basename; use the full file name. 11888 shift 11889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11890 fi 11891fi 11892fi 11893fi 11894CC=$ac_cv_prog_CC 11895if test -n "$CC"; then 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11897$as_echo "$CC" >&6; } 11898else 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11900$as_echo "no" >&6; } 11901fi 11902 11903 11904fi 11905if test -z "$CC"; then 11906 if test -n "$ac_tool_prefix"; then 11907 for ac_prog in cl.exe 11908 do 11909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11910set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11912$as_echo_n "checking for $ac_word... " >&6; } 11913if ${ac_cv_prog_CC+:} false; then : 11914 $as_echo_n "(cached) " >&6 11915else 11916 if test -n "$CC"; then 11917 ac_cv_prog_CC="$CC" # Let the user override the test. 11918else 11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11920for as_dir in $PATH 11921do 11922 IFS=$as_save_IFS 11923 test -z "$as_dir" && as_dir=. 11924 for ac_exec_ext in '' $ac_executable_extensions; do 11925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11928 break 2 11929 fi 11930done 11931 done 11932IFS=$as_save_IFS 11933 11934fi 11935fi 11936CC=$ac_cv_prog_CC 11937if test -n "$CC"; then 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11939$as_echo "$CC" >&6; } 11940else 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11942$as_echo "no" >&6; } 11943fi 11944 11945 11946 test -n "$CC" && break 11947 done 11948fi 11949if test -z "$CC"; then 11950 ac_ct_CC=$CC 11951 for ac_prog in cl.exe 11952do 11953 # Extract the first word of "$ac_prog", so it can be a program name with args. 11954set dummy $ac_prog; ac_word=$2 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11956$as_echo_n "checking for $ac_word... " >&6; } 11957if ${ac_cv_prog_ac_ct_CC+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 if test -n "$ac_ct_CC"; then 11961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11962else 11963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11964for as_dir in $PATH 11965do 11966 IFS=$as_save_IFS 11967 test -z "$as_dir" && as_dir=. 11968 for ac_exec_ext in '' $ac_executable_extensions; do 11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11970 ac_cv_prog_ac_ct_CC="$ac_prog" 11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11972 break 2 11973 fi 11974done 11975 done 11976IFS=$as_save_IFS 11977 11978fi 11979fi 11980ac_ct_CC=$ac_cv_prog_ac_ct_CC 11981if test -n "$ac_ct_CC"; then 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11983$as_echo "$ac_ct_CC" >&6; } 11984else 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11986$as_echo "no" >&6; } 11987fi 11988 11989 11990 test -n "$ac_ct_CC" && break 11991done 11992 11993 if test "x$ac_ct_CC" = x; then 11994 CC="" 11995 else 11996 case $cross_compiling:$ac_tool_warned in 11997yes:) 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12000ac_tool_warned=yes ;; 12001esac 12002 CC=$ac_ct_CC 12003 fi 12004fi 12005 12006fi 12007 12008 12009test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12011as_fn_error $? "no acceptable C compiler found in \$PATH 12012See \`config.log' for more details" "$LINENO" 5; } 12013 12014# Provide some information about the compiler. 12015$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12016set X $ac_compile 12017ac_compiler=$2 12018for ac_option in --version -v -V -qversion; do 12019 { { ac_try="$ac_compiler $ac_option >&5" 12020case "(($ac_try" in 12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12022 *) ac_try_echo=$ac_try;; 12023esac 12024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12025$as_echo "$ac_try_echo"; } >&5 12026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12027 ac_status=$? 12028 if test -s conftest.err; then 12029 sed '10a\ 12030... rest of stderr output deleted ... 12031 10q' conftest.err >conftest.er1 12032 cat conftest.er1 >&5 12033 fi 12034 rm -f conftest.er1 conftest.err 12035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12036 test $ac_status = 0; } 12037done 12038 12039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12040$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12041if ${ac_cv_c_compiler_gnu+:} false; then : 12042 $as_echo_n "(cached) " >&6 12043else 12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12045/* end confdefs.h. */ 12046 12047int 12048main () 12049{ 12050#ifndef __GNUC__ 12051 choke me 12052#endif 12053 12054 ; 12055 return 0; 12056} 12057_ACEOF 12058if ac_fn_c_try_compile "$LINENO"; then : 12059 ac_compiler_gnu=yes 12060else 12061 ac_compiler_gnu=no 12062fi 12063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12064ac_cv_c_compiler_gnu=$ac_compiler_gnu 12065 12066fi 12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12068$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12069if test $ac_compiler_gnu = yes; then 12070 GCC=yes 12071else 12072 GCC= 12073fi 12074ac_test_CFLAGS=${CFLAGS+set} 12075ac_save_CFLAGS=$CFLAGS 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12077$as_echo_n "checking whether $CC accepts -g... " >&6; } 12078if ${ac_cv_prog_cc_g+:} false; then : 12079 $as_echo_n "(cached) " >&6 12080else 12081 ac_save_c_werror_flag=$ac_c_werror_flag 12082 ac_c_werror_flag=yes 12083 ac_cv_prog_cc_g=no 12084 CFLAGS="-g" 12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12086/* end confdefs.h. */ 12087 12088int 12089main () 12090{ 12091 12092 ; 12093 return 0; 12094} 12095_ACEOF 12096if ac_fn_c_try_compile "$LINENO"; then : 12097 ac_cv_prog_cc_g=yes 12098else 12099 CFLAGS="" 12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12101/* end confdefs.h. */ 12102 12103int 12104main () 12105{ 12106 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111if ac_fn_c_try_compile "$LINENO"; then : 12112 12113else 12114 ac_c_werror_flag=$ac_save_c_werror_flag 12115 CFLAGS="-g" 12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12117/* end confdefs.h. */ 12118 12119int 12120main () 12121{ 12122 12123 ; 12124 return 0; 12125} 12126_ACEOF 12127if ac_fn_c_try_compile "$LINENO"; then : 12128 ac_cv_prog_cc_g=yes 12129fi 12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12131fi 12132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12133fi 12134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12135 ac_c_werror_flag=$ac_save_c_werror_flag 12136fi 12137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12138$as_echo "$ac_cv_prog_cc_g" >&6; } 12139if test "$ac_test_CFLAGS" = set; then 12140 CFLAGS=$ac_save_CFLAGS 12141elif test $ac_cv_prog_cc_g = yes; then 12142 if test "$GCC" = yes; then 12143 CFLAGS="-g -O2" 12144 else 12145 CFLAGS="-g" 12146 fi 12147else 12148 if test "$GCC" = yes; then 12149 CFLAGS="-O2" 12150 else 12151 CFLAGS= 12152 fi 12153fi 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12155$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12156if ${ac_cv_prog_cc_c89+:} false; then : 12157 $as_echo_n "(cached) " >&6 12158else 12159 ac_cv_prog_cc_c89=no 12160ac_save_CC=$CC 12161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12162/* end confdefs.h. */ 12163#include <stdarg.h> 12164#include <stdio.h> 12165struct stat; 12166/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12167struct buf { int x; }; 12168FILE * (*rcsopen) (struct buf *, struct stat *, int); 12169static char *e (p, i) 12170 char **p; 12171 int i; 12172{ 12173 return p[i]; 12174} 12175static char *f (char * (*g) (char **, int), char **p, ...) 12176{ 12177 char *s; 12178 va_list v; 12179 va_start (v,p); 12180 s = g (p, va_arg (v,int)); 12181 va_end (v); 12182 return s; 12183} 12184 12185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12186 function prototypes and stuff, but not '\xHH' hex character constants. 12187 These don't provoke an error unfortunately, instead are silently treated 12188 as 'x'. The following induces an error, until -std is added to get 12189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12190 array size at least. It's necessary to write '\x00'==0 to get something 12191 that's true only with -std. */ 12192int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12193 12194/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12195 inside strings and character constants. */ 12196#define FOO(x) 'x' 12197int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12198 12199int test (int i, double x); 12200struct s1 {int (*f) (int a);}; 12201struct s2 {int (*f) (double a);}; 12202int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12203int argc; 12204char **argv; 12205int 12206main () 12207{ 12208return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12209 ; 12210 return 0; 12211} 12212_ACEOF 12213for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12215do 12216 CC="$ac_save_CC $ac_arg" 12217 if ac_fn_c_try_compile "$LINENO"; then : 12218 ac_cv_prog_cc_c89=$ac_arg 12219fi 12220rm -f core conftest.err conftest.$ac_objext 12221 test "x$ac_cv_prog_cc_c89" != "xno" && break 12222done 12223rm -f conftest.$ac_ext 12224CC=$ac_save_CC 12225 12226fi 12227# AC_CACHE_VAL 12228case "x$ac_cv_prog_cc_c89" in 12229 x) 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12231$as_echo "none needed" >&6; } ;; 12232 xno) 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12234$as_echo "unsupported" >&6; } ;; 12235 *) 12236 CC="$CC $ac_cv_prog_cc_c89" 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12238$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12239esac 12240if test "x$ac_cv_prog_cc_c89" != xno; then : 12241 12242fi 12243 12244ac_ext=c 12245ac_cpp='$CPP $CPPFLAGS' 12246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12248ac_compiler_gnu=$ac_cv_c_compiler_gnu 12249 12250ac_ext=m 12251ac_cpp='$OBJCPP $CPPFLAGS' 12252ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12253ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12254ac_compiler_gnu=$ac_cv_objc_compiler_gnu 12255if test -n "$ac_tool_prefix"; then 12256 for ac_prog in gcc objcc objc cc CC 12257 do 12258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12259set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12261$as_echo_n "checking for $ac_word... " >&6; } 12262if ${ac_cv_prog_OBJC+:} false; then : 12263 $as_echo_n "(cached) " >&6 12264else 12265 if test -n "$OBJC"; then 12266 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 12267else 12268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12269for as_dir in $PATH 12270do 12271 IFS=$as_save_IFS 12272 test -z "$as_dir" && as_dir=. 12273 for ac_exec_ext in '' $ac_executable_extensions; do 12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12275 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12277 break 2 12278 fi 12279done 12280 done 12281IFS=$as_save_IFS 12282 12283fi 12284fi 12285OBJC=$ac_cv_prog_OBJC 12286if test -n "$OBJC"; then 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 12288$as_echo "$OBJC" >&6; } 12289else 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12291$as_echo "no" >&6; } 12292fi 12293 12294 12295 test -n "$OBJC" && break 12296 done 12297fi 12298if test -z "$OBJC"; then 12299 ac_ct_OBJC=$OBJC 12300 for ac_prog in gcc objcc objc cc CC 12301do 12302 # Extract the first word of "$ac_prog", so it can be a program name with args. 12303set dummy $ac_prog; ac_word=$2 12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12305$as_echo_n "checking for $ac_word... " >&6; } 12306if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 12307 $as_echo_n "(cached) " >&6 12308else 12309 if test -n "$ac_ct_OBJC"; then 12310 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 12311else 12312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12313for as_dir in $PATH 12314do 12315 IFS=$as_save_IFS 12316 test -z "$as_dir" && as_dir=. 12317 for ac_exec_ext in '' $ac_executable_extensions; do 12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12319 ac_cv_prog_ac_ct_OBJC="$ac_prog" 12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12321 break 2 12322 fi 12323done 12324 done 12325IFS=$as_save_IFS 12326 12327fi 12328fi 12329ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 12330if test -n "$ac_ct_OBJC"; then 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 12332$as_echo "$ac_ct_OBJC" >&6; } 12333else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335$as_echo "no" >&6; } 12336fi 12337 12338 12339 test -n "$ac_ct_OBJC" && break 12340done 12341 12342 if test "x$ac_ct_OBJC" = x; then 12343 OBJC="gcc" 12344 else 12345 case $cross_compiling:$ac_tool_warned in 12346yes:) 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12349ac_tool_warned=yes ;; 12350esac 12351 OBJC=$ac_ct_OBJC 12352 fi 12353fi 12354 12355# Provide some information about the compiler. 12356$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 12357set X $ac_compile 12358ac_compiler=$2 12359for ac_option in --version -v -V -qversion; do 12360 { { ac_try="$ac_compiler $ac_option >&5" 12361case "(($ac_try" in 12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12363 *) ac_try_echo=$ac_try;; 12364esac 12365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12366$as_echo "$ac_try_echo"; } >&5 12367 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12368 ac_status=$? 12369 if test -s conftest.err; then 12370 sed '10a\ 12371... rest of stderr output deleted ... 12372 10q' conftest.err >conftest.er1 12373 cat conftest.er1 >&5 12374 fi 12375 rm -f conftest.er1 conftest.err 12376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12377 test $ac_status = 0; } 12378done 12379 12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 12381$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 12382if ${ac_cv_objc_compiler_gnu+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12386/* end confdefs.h. */ 12387 12388int 12389main () 12390{ 12391#ifndef __GNUC__ 12392 choke me 12393#endif 12394 12395 ; 12396 return 0; 12397} 12398_ACEOF 12399if ac_fn_objc_try_compile "$LINENO"; then : 12400 ac_compiler_gnu=yes 12401else 12402 ac_compiler_gnu=no 12403fi 12404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12405ac_cv_objc_compiler_gnu=$ac_compiler_gnu 12406 12407fi 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 12409$as_echo "$ac_cv_objc_compiler_gnu" >&6; } 12410if test $ac_compiler_gnu = yes; then 12411 GOBJC=yes 12412else 12413 GOBJC= 12414fi 12415ac_test_OBJCFLAGS=${OBJCFLAGS+set} 12416ac_save_OBJCFLAGS=$OBJCFLAGS 12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 12418$as_echo_n "checking whether $OBJC accepts -g... " >&6; } 12419if ${ac_cv_prog_objc_g+:} false; then : 12420 $as_echo_n "(cached) " >&6 12421else 12422 ac_save_objc_werror_flag=$ac_objc_werror_flag 12423 ac_objc_werror_flag=yes 12424 ac_cv_prog_objc_g=no 12425 OBJCFLAGS="-g" 12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12427/* end confdefs.h. */ 12428 12429int 12430main () 12431{ 12432 12433 ; 12434 return 0; 12435} 12436_ACEOF 12437if ac_fn_objc_try_compile "$LINENO"; then : 12438 ac_cv_prog_objc_g=yes 12439else 12440 OBJCFLAGS="" 12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12442/* end confdefs.h. */ 12443 12444int 12445main () 12446{ 12447 12448 ; 12449 return 0; 12450} 12451_ACEOF 12452if ac_fn_objc_try_compile "$LINENO"; then : 12453 12454else 12455 ac_objc_werror_flag=$ac_save_objc_werror_flag 12456 OBJCFLAGS="-g" 12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12458/* end confdefs.h. */ 12459 12460int 12461main () 12462{ 12463 12464 ; 12465 return 0; 12466} 12467_ACEOF 12468if ac_fn_objc_try_compile "$LINENO"; then : 12469 ac_cv_prog_objc_g=yes 12470fi 12471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12472fi 12473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12474fi 12475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12476 ac_objc_werror_flag=$ac_save_objc_werror_flag 12477fi 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 12479$as_echo "$ac_cv_prog_objc_g" >&6; } 12480if test "$ac_test_OBJCFLAGS" = set; then 12481 OBJCFLAGS=$ac_save_OBJCFLAGS 12482elif test $ac_cv_prog_objc_g = yes; then 12483 if test "$GOBJC" = yes; then 12484 OBJCFLAGS="-g -O2" 12485 else 12486 OBJCFLAGS="-g" 12487 fi 12488else 12489 if test "$GOBJC" = yes; then 12490 OBJCFLAGS="-O2" 12491 else 12492 OBJCFLAGS= 12493 fi 12494fi 12495ac_ext=c 12496ac_cpp='$CPP $CPPFLAGS' 12497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12499ac_compiler_gnu=$ac_cv_c_compiler_gnu 12500 12501depcc="$OBJC" am_compiler_list='gcc3 gcc' 12502 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12504$as_echo_n "checking dependency style of $depcc... " >&6; } 12505if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 12506 $as_echo_n "(cached) " >&6 12507else 12508 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12509 # We make a subdir and do the tests there. Otherwise we can end up 12510 # making bogus files that we don't know about and never remove. For 12511 # instance it was reported that on HP-UX the gcc test will end up 12512 # making a dummy file named `D' -- because `-MD' means `put the output 12513 # in D'. 12514 rm -rf conftest.dir 12515 mkdir conftest.dir 12516 # Copy depcomp to subdir because otherwise we won't find it if we're 12517 # using a relative directory. 12518 cp "$am_depcomp" conftest.dir 12519 cd conftest.dir 12520 # We will build objects and dependencies in a subdirectory because 12521 # it helps to detect inapplicable dependency modes. For instance 12522 # both Tru64's cc and ICC support -MD to output dependencies as a 12523 # side effect of compilation, but ICC will put the dependencies in 12524 # the current directory while Tru64 will put them in the object 12525 # directory. 12526 mkdir sub 12527 12528 am_cv_OBJC_dependencies_compiler_type=none 12529 if test "$am_compiler_list" = ""; then 12530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12531 fi 12532 am__universal=false 12533 12534 12535 for depmode in $am_compiler_list; do 12536 # Setup a source with many dependencies, because some compilers 12537 # like to wrap large dependency lists on column 80 (with \), and 12538 # we should not choose a depcomp mode which is confused by this. 12539 # 12540 # We need to recreate these files for each test, as the compiler may 12541 # overwrite some of them when testing with obscure command lines. 12542 # This happens at least with the AIX C compiler. 12543 : > sub/conftest.c 12544 for i in 1 2 3 4 5 6; do 12545 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12546 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12547 # Solaris 8's {/usr,}/bin/sh. 12548 touch sub/conftst$i.h 12549 done 12550 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12551 12552 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12553 # mode. It turns out that the SunPro C++ compiler does not properly 12554 # handle `-M -o', and we need to detect this. Also, some Intel 12555 # versions had trouble with output in subdirs 12556 am__obj=sub/conftest.${OBJEXT-o} 12557 am__minus_obj="-o $am__obj" 12558 case $depmode in 12559 gcc) 12560 # This depmode causes a compiler race in universal mode. 12561 test "$am__universal" = false || continue 12562 ;; 12563 nosideeffect) 12564 # after this tag, mechanisms are not by side-effect, so they'll 12565 # only be used when explicitly requested 12566 if test "x$enable_dependency_tracking" = xyes; then 12567 continue 12568 else 12569 break 12570 fi 12571 ;; 12572 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12573 # This compiler won't grok `-c -o', but also, the minuso test has 12574 # not run yet. These depmodes are late enough in the game, and 12575 # so weak that their functioning should not be impacted. 12576 am__obj=conftest.${OBJEXT-o} 12577 am__minus_obj= 12578 ;; 12579 none) break ;; 12580 esac 12581 if depmode=$depmode \ 12582 source=sub/conftest.c object=$am__obj \ 12583 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12584 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12585 >/dev/null 2>conftest.err && 12586 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12588 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12590 # icc doesn't choke on unknown options, it will just issue warnings 12591 # or remarks (even with -Werror). So we grep stderr for any message 12592 # that says an option was ignored or not supported. 12593 # When given -MP, icc 7.0 and 7.1 complain thusly: 12594 # icc: Command line warning: ignoring option '-M'; no argument required 12595 # The diagnosis changed in icc 8.0: 12596 # icc: Command line remark: option '-MP' not supported 12597 if (grep 'ignoring option' conftest.err || 12598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12599 am_cv_OBJC_dependencies_compiler_type=$depmode 12600 break 12601 fi 12602 fi 12603 done 12604 12605 cd .. 12606 rm -rf conftest.dir 12607else 12608 am_cv_OBJC_dependencies_compiler_type=none 12609fi 12610 12611fi 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 12613$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 12614OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 12615 12616 if 12617 test "x$enable_dependency_tracking" != xno \ 12618 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 12619 am__fastdepOBJC_TRUE= 12620 am__fastdepOBJC_FALSE='#' 12621else 12622 am__fastdepOBJC_TRUE='#' 12623 am__fastdepOBJC_FALSE= 12624fi 12625 12626 12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12628$as_echo_n "checking for inline... " >&6; } 12629if ${ac_cv_c_inline+:} false; then : 12630 $as_echo_n "(cached) " >&6 12631else 12632 ac_cv_c_inline=no 12633for ac_kw in inline __inline__ __inline; do 12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12635/* end confdefs.h. */ 12636#ifndef __cplusplus 12637typedef int foo_t; 12638static $ac_kw foo_t static_foo () {return 0; } 12639$ac_kw foo_t foo () {return 0; } 12640#endif 12641 12642_ACEOF 12643if ac_fn_c_try_compile "$LINENO"; then : 12644 ac_cv_c_inline=$ac_kw 12645fi 12646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12647 test "$ac_cv_c_inline" != no && break 12648done 12649 12650fi 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12652$as_echo "$ac_cv_c_inline" >&6; } 12653 12654case $ac_cv_c_inline in 12655 inline | yes) ;; 12656 *) 12657 case $ac_cv_c_inline in 12658 no) ac_val=;; 12659 *) ac_val=$ac_cv_c_inline;; 12660 esac 12661 cat >>confdefs.h <<_ACEOF 12662#ifndef __cplusplus 12663#define inline $ac_val 12664#endif 12665_ACEOF 12666 ;; 12667esac 12668 12669 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12671$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12672set x ${MAKE-make} 12673ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12674if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12675 $as_echo_n "(cached) " >&6 12676else 12677 cat >conftest.make <<\_ACEOF 12678SHELL = /bin/sh 12679all: 12680 @echo '@@@%%%=$(MAKE)=@@@%%%' 12681_ACEOF 12682# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12683case `${MAKE-make} -f conftest.make 2>/dev/null` in 12684 *@@@%%%=?*=@@@%%%*) 12685 eval ac_cv_prog_make_${ac_make}_set=yes;; 12686 *) 12687 eval ac_cv_prog_make_${ac_make}_set=no;; 12688esac 12689rm -f conftest.make 12690fi 12691if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12693$as_echo "yes" >&6; } 12694 SET_MAKE= 12695else 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12697$as_echo "no" >&6; } 12698 SET_MAKE="MAKE=${MAKE-make}" 12699fi 12700 12701if test -z "$host_alias"; then 12702 hostaliaswindres= 12703else 12704 hostaliaswindres="$host_alias-windres" 12705fi 12706for ac_prog in windres $hostaliaswindres $host_os-windres 12707do 12708 # Extract the first word of "$ac_prog", so it can be a program name with args. 12709set dummy $ac_prog; ac_word=$2 12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12711$as_echo_n "checking for $ac_word... " >&6; } 12712if ${ac_cv_prog_WINDRES+:} false; then : 12713 $as_echo_n "(cached) " >&6 12714else 12715 if test -n "$WINDRES"; then 12716 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 12717else 12718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12719for as_dir in $PATH 12720do 12721 IFS=$as_save_IFS 12722 test -z "$as_dir" && as_dir=. 12723 for ac_exec_ext in '' $ac_executable_extensions; do 12724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12725 ac_cv_prog_WINDRES="$ac_prog" 12726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12727 break 2 12728 fi 12729done 12730 done 12731IFS=$as_save_IFS 12732 12733fi 12734fi 12735WINDRES=$ac_cv_prog_WINDRES 12736if test -n "$WINDRES"; then 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 12738$as_echo "$WINDRES" >&6; } 12739else 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12741$as_echo "no" >&6; } 12742fi 12743 12744 12745 test -n "$WINDRES" && break 12746done 12747 12748 12749case "$host" in 12750 *-*-beos*) 12751 ac_default_prefix=/boot/develop/tools/gnupro 12752 ;; 12753 *-*-cygwin* | *-*-mingw32*) 12754 if test "$build" != "$host"; then # cross-compiling 12755 # Default cross-compile location 12756 ac_default_prefix=/usr/local/cross-tools/i386-mingw32 12757 else 12758 # Look for the location of the tools and install there 12759 if test "$BUILD_PREFIX" != ""; then 12760 ac_default_prefix=$BUILD_PREFIX 12761 fi 12762 fi 12763 if test x$WINDRES != x; then 12764 use_version_rc=true 12765 fi 12766 ;; 12767 *-*-darwin*) 12768 # Check whether --enable-imageio was given. 12769if test "${enable_imageio+set}" = set; then : 12770 enableval=$enable_imageio; 12771else 12772 enable_imageio=yes 12773fi 12774 12775 if test x$enable_imageio = xyes; then 12776 IMG_LIBS="-Wl,-framework,ApplicationServices $IMG_LIBS" 12777 else 12778 CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND" 12779 fi 12780 ;; 12781esac 12782 12783base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` 12784 12785find_lib() 12786{ 12787 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 12788 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 12789 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'` 12790 if test "$cross_compiling" = yes; then 12791 host_lib_path="" 12792 else 12793 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" 12794 fi 12795 for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do 12796 lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'` 12797 if test x$lib != x; then 12798 echo $lib 12799 return 12800 fi 12801 done 12802} 12803 12804# Check whether --enable-mmx was given. 12805if test "${enable_mmx+set}" = set; then : 12806 enableval=$enable_mmx; 12807else 12808 enable_mmx=yes 12809fi 12810 12811 12812if test x$enable_mmx = xyes; then 12813 CFLAGS="$CFLAGS -O -DUSE_MMX" 12814 # The cast to long int works around a bug in the HP C Compiler 12815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12817# This bug is HP SR number 8606223364. 12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12819$as_echo_n "checking size of long... " >&6; } 12820if ${ac_cv_sizeof_long+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12824 12825else 12826 if test "$ac_cv_type_long" = yes; then 12827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12829as_fn_error 77 "cannot compute sizeof (long) 12830See \`config.log' for more details" "$LINENO" 5; } 12831 else 12832 ac_cv_sizeof_long=0 12833 fi 12834fi 12835 12836fi 12837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12838$as_echo "$ac_cv_sizeof_long" >&6; } 12839 12840 12841 12842cat >>confdefs.h <<_ACEOF 12843#define SIZEOF_LONG $ac_cv_sizeof_long 12844_ACEOF 12845 12846 12847 if test "$ac_cv_sizeof_long" = "4"; then 12848 CFLAGS="$CFLAGS -mmmx" 12849 fi 12850fi 12851 12852SDL_VERSION=2.0.0 12853 12854 12855 12856if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12857 if test -n "$ac_tool_prefix"; then 12858 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12859set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12861$as_echo_n "checking for $ac_word... " >&6; } 12862if ${ac_cv_path_PKG_CONFIG+:} false; then : 12863 $as_echo_n "(cached) " >&6 12864else 12865 case $PKG_CONFIG in 12866 [\\/]* | ?:[\\/]*) 12867 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12868 ;; 12869 *) 12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12871for as_dir in $PATH 12872do 12873 IFS=$as_save_IFS 12874 test -z "$as_dir" && as_dir=. 12875 for ac_exec_ext in '' $ac_executable_extensions; do 12876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12877 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12879 break 2 12880 fi 12881done 12882 done 12883IFS=$as_save_IFS 12884 12885 ;; 12886esac 12887fi 12888PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12889if test -n "$PKG_CONFIG"; then 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12891$as_echo "$PKG_CONFIG" >&6; } 12892else 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12894$as_echo "no" >&6; } 12895fi 12896 12897 12898fi 12899if test -z "$ac_cv_path_PKG_CONFIG"; then 12900 ac_pt_PKG_CONFIG=$PKG_CONFIG 12901 # Extract the first word of "pkg-config", so it can be a program name with args. 12902set dummy pkg-config; ac_word=$2 12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12904$as_echo_n "checking for $ac_word... " >&6; } 12905if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12906 $as_echo_n "(cached) " >&6 12907else 12908 case $ac_pt_PKG_CONFIG in 12909 [\\/]* | ?:[\\/]*) 12910 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12911 ;; 12912 *) 12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12914for as_dir in $PATH 12915do 12916 IFS=$as_save_IFS 12917 test -z "$as_dir" && as_dir=. 12918 for ac_exec_ext in '' $ac_executable_extensions; do 12919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12920 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12922 break 2 12923 fi 12924done 12925 done 12926IFS=$as_save_IFS 12927 12928 ;; 12929esac 12930fi 12931ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12932if test -n "$ac_pt_PKG_CONFIG"; then 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12934$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12935else 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12937$as_echo "no" >&6; } 12938fi 12939 12940 if test "x$ac_pt_PKG_CONFIG" = x; then 12941 PKG_CONFIG="" 12942 else 12943 case $cross_compiling:$ac_tool_warned in 12944yes:) 12945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12947ac_tool_warned=yes ;; 12948esac 12949 PKG_CONFIG=$ac_pt_PKG_CONFIG 12950 fi 12951else 12952 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12953fi 12954 12955fi 12956if test -n "$PKG_CONFIG"; then 12957 _pkg_min_version=0.9.0 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12959$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12960 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12962$as_echo "yes" >&6; } 12963 else 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12965$as_echo "no" >&6; } 12966 PKG_CONFIG="" 12967 fi 12968 12969fi 12970 12971# Check whether --with-sdl-prefix was given. 12972if test "${with_sdl_prefix+set}" = set; then : 12973 withval=$with_sdl_prefix; sdl_prefix="$withval" 12974else 12975 sdl_prefix="" 12976fi 12977 12978 12979# Check whether --with-sdl-exec-prefix was given. 12980if test "${with_sdl_exec_prefix+set}" = set; then : 12981 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 12982else 12983 sdl_exec_prefix="" 12984fi 12985 12986# Check whether --enable-sdltest was given. 12987if test "${enable_sdltest+set}" = set; then : 12988 enableval=$enable_sdltest; 12989else 12990 enable_sdltest=yes 12991fi 12992 12993 12994 min_sdl_version=$SDL_VERSION 12995 12996 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then 12997 12998pkg_failed=no 12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 13000$as_echo_n "checking for SDL... " >&6; } 13001 13002if test -n "$PKG_CONFIG"; then 13003 if test -n "$SDL_CFLAGS"; then 13004 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" 13005 else 13006 if test -n "$PKG_CONFIG" && \ 13007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 13008 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 13009 ac_status=$? 13010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13011 test $ac_status = 0; }; then 13012 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null` 13013else 13014 pkg_failed=yes 13015fi 13016 fi 13017else 13018 pkg_failed=untried 13019fi 13020if test -n "$PKG_CONFIG"; then 13021 if test -n "$SDL_LIBS"; then 13022 pkg_cv_SDL_LIBS="$SDL_LIBS" 13023 else 13024 if test -n "$PKG_CONFIG" && \ 13025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 13026 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 13027 ac_status=$? 13028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13029 test $ac_status = 0; }; then 13030 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null` 13031else 13032 pkg_failed=yes 13033fi 13034 fi 13035else 13036 pkg_failed=untried 13037fi 13038 13039 13040 13041if test $pkg_failed = yes; then 13042 13043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13044 _pkg_short_errors_supported=yes 13045else 13046 _pkg_short_errors_supported=no 13047fi 13048 if test $_pkg_short_errors_supported = yes; then 13049 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"` 13050 else 13051 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"` 13052 fi 13053 # Put the nasty error message in config.log where it belongs 13054 echo "$SDL_PKG_ERRORS" >&5 13055 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13057$as_echo "no" >&6; } 13058 sdl_pc=no 13059elif test $pkg_failed = untried; then 13060 sdl_pc=no 13061else 13062 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS 13063 SDL_LIBS=$pkg_cv_SDL_LIBS 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13065$as_echo "yes" >&6; } 13066 sdl_pc=yes 13067fi 13068 else 13069 sdl_pc=no 13070 if test x$sdl_exec_prefix != x ; then 13071 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 13072 if test x${SDL_CONFIG+set} != xset ; then 13073 SDL_CONFIG=$sdl_exec_prefix/bin/sdl2-config 13074 fi 13075 fi 13076 if test x$sdl_prefix != x ; then 13077 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 13078 if test x${SDL_CONFIG+set} != xset ; then 13079 SDL_CONFIG=$sdl_prefix/bin/sdl2-config 13080 fi 13081 fi 13082 fi 13083 13084 if test "x$sdl_pc" = xyes ; then 13085 no_sdl="" 13086 SDL_CONFIG="pkg-config sdl2" 13087 else 13088 as_save_PATH="$PATH" 13089 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 13090 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 13091 fi 13092 # Extract the first word of "sdl2-config", so it can be a program name with args. 13093set dummy sdl2-config; ac_word=$2 13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13095$as_echo_n "checking for $ac_word... " >&6; } 13096if ${ac_cv_path_SDL_CONFIG+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 case $SDL_CONFIG in 13100 [\\/]* | ?:[\\/]*) 13101 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 13102 ;; 13103 *) 13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13105for as_dir in $PATH 13106do 13107 IFS=$as_save_IFS 13108 test -z "$as_dir" && as_dir=. 13109 for ac_exec_ext in '' $ac_executable_extensions; do 13110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13111 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13113 break 2 13114 fi 13115done 13116 done 13117IFS=$as_save_IFS 13118 13119 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 13120 ;; 13121esac 13122fi 13123SDL_CONFIG=$ac_cv_path_SDL_CONFIG 13124if test -n "$SDL_CONFIG"; then 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 13126$as_echo "$SDL_CONFIG" >&6; } 13127else 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13129$as_echo "no" >&6; } 13130fi 13131 13132 13133 PATH="$as_save_PATH" 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 13135$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 13136 no_sdl="" 13137 13138 if test "$SDL_CONFIG" = "no" ; then 13139 no_sdl=yes 13140 else 13141 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` 13142 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` 13143 13144 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ 13145 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 13146 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ 13147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 13148 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 13149 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 13150 if test "x$enable_sdltest" = "xyes" ; then 13151 ac_save_CFLAGS="$CFLAGS" 13152 ac_save_CXXFLAGS="$CXXFLAGS" 13153 ac_save_LIBS="$LIBS" 13154 CFLAGS="$CFLAGS $SDL_CFLAGS" 13155 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 13156 LIBS="$LIBS $SDL_LIBS" 13157 rm -f conf.sdltest 13158 if test "$cross_compiling" = yes; then : 13159 echo $ac_n "cross compiling; assumed OK... $ac_c" 13160else 13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13162/* end confdefs.h. */ 13163 13164#include <stdio.h> 13165#include <stdlib.h> 13166#include <string.h> 13167#include "SDL.h" 13168 13169char* 13170my_strdup (char *str) 13171{ 13172 char *new_str; 13173 13174 if (str) 13175 { 13176 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 13177 strcpy (new_str, str); 13178 } 13179 else 13180 new_str = NULL; 13181 13182 return new_str; 13183} 13184 13185int main (int argc, char *argv[]) 13186{ 13187 int major, minor, micro; 13188 char *tmp_version; 13189 13190 /* This hangs on some systems (?) 13191 system ("touch conf.sdltest"); 13192 */ 13193 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 13194 13195 /* HP/UX 9 (%@#!) writes to sscanf strings */ 13196 tmp_version = my_strdup("$min_sdl_version"); 13197 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 13198 printf("%s, bad version string\n", "$min_sdl_version"); 13199 exit(1); 13200 } 13201 13202 if (($sdl_major_version > major) || 13203 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 13204 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 13205 { 13206 return 0; 13207 } 13208 else 13209 { 13210 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 13211 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 13212 printf("*** best to upgrade to the required version.\n"); 13213 printf("*** If sdl2-config was wrong, set the environment variable SDL_CONFIG\n"); 13214 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 13215 printf("*** config.cache before re-running configure\n"); 13216 return 1; 13217 } 13218} 13219 13220 13221_ACEOF 13222if ac_fn_c_try_run "$LINENO"; then : 13223 13224else 13225 no_sdl=yes 13226fi 13227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13228 conftest.$ac_objext conftest.beam conftest.$ac_ext 13229fi 13230 13231 CFLAGS="$ac_save_CFLAGS" 13232 CXXFLAGS="$ac_save_CXXFLAGS" 13233 LIBS="$ac_save_LIBS" 13234 fi 13235 fi 13236 if test "x$no_sdl" = x ; then 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13238$as_echo "yes" >&6; } 13239 else 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13241$as_echo "no" >&6; } 13242 fi 13243 fi 13244 if test "x$no_sdl" = x ; then 13245 : 13246 else 13247 if test "$SDL_CONFIG" = "no" ; then 13248 echo "*** The sdl2-config script installed by SDL could not be found" 13249 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 13250 echo "*** your path, or set the SDL_CONFIG environment variable to the" 13251 echo "*** full path to sdl2-config." 13252 else 13253 if test -f conf.sdltest ; then 13254 : 13255 else 13256 echo "*** Could not run SDL test program, checking why..." 13257 CFLAGS="$CFLAGS $SDL_CFLAGS" 13258 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 13259 LIBS="$LIBS $SDL_LIBS" 13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261/* end confdefs.h. */ 13262 13263#include <stdio.h> 13264#include "SDL.h" 13265 13266int main(int argc, char *argv[]) 13267{ return 0; } 13268#undef main 13269#define main K_and_R_C_main 13270 13271int 13272main () 13273{ 13274 return 0; 13275 ; 13276 return 0; 13277} 13278_ACEOF 13279if ac_fn_c_try_link "$LINENO"; then : 13280 echo "*** The test program compiled, but did not run. This usually means" 13281 echo "*** that the run-time linker is not finding SDL or finding the wrong" 13282 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 13283 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 13284 echo "*** to the installed location Also, make sure you have run ldconfig if that" 13285 echo "*** is required on your system" 13286 echo "***" 13287 echo "*** If you have an old version installed, it is best to remove it, although" 13288 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 13289else 13290 echo "*** The test program failed to compile or link. See the file config.log for the" 13291 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 13292 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 13293 echo "*** may want to edit the sdl2-config script: $SDL_CONFIG" 13294fi 13295rm -f core conftest.err conftest.$ac_objext \ 13296 conftest$ac_exeext conftest.$ac_ext 13297 CFLAGS="$ac_save_CFLAGS" 13298 CXXFLAGS="$ac_save_CXXFLAGS" 13299 LIBS="$ac_save_LIBS" 13300 fi 13301 fi 13302 SDL_CFLAGS="" 13303 SDL_LIBS="" 13304 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5 13305 13306 fi 13307 13308 13309 rm -f conf.sdltest 13310 13311CFLAGS="$CFLAGS $SDL_CFLAGS" 13312LIBS="$LIBS $SDL_LIBS" 13313saved_LIBS="$LIBS" 13314 13315 13316 13317OBJCFLAGS=$CFLAGS 13318 13319# Finally create all the generated files 13320ac_config_files="$ac_config_files Makefile SDL2_gfx.pc" 13321 13322cat >confcache <<\_ACEOF 13323# This file is a shell script that caches the results of configure 13324# tests run on this system so they can be shared between configure 13325# scripts and configure runs, see configure's option --config-cache. 13326# It is not useful on other systems. If it contains results you don't 13327# want to keep, you may remove or edit it. 13328# 13329# config.status only pays attention to the cache file if you give it 13330# the --recheck option to rerun configure. 13331# 13332# `ac_cv_env_foo' variables (set or unset) will be overridden when 13333# loading this file, other *unset* `ac_cv_foo' will be assigned the 13334# following values. 13335 13336_ACEOF 13337 13338# The following way of writing the cache mishandles newlines in values, 13339# but we know of no workaround that is simple, portable, and efficient. 13340# So, we kill variables containing newlines. 13341# Ultrix sh set writes to stderr and can't be redirected directly, 13342# and sets the high bit in the cache file unless we assign to the vars. 13343( 13344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13345 eval ac_val=\$$ac_var 13346 case $ac_val in #( 13347 *${as_nl}*) 13348 case $ac_var in #( 13349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13350$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13351 esac 13352 case $ac_var in #( 13353 _ | IFS | as_nl) ;; #( 13354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13355 *) { eval $ac_var=; unset $ac_var;} ;; 13356 esac ;; 13357 esac 13358 done 13359 13360 (set) 2>&1 | 13361 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13362 *${as_nl}ac_space=\ *) 13363 # `set' does not quote correctly, so add quotes: double-quote 13364 # substitution turns \\\\ into \\, and sed turns \\ into \. 13365 sed -n \ 13366 "s/'/'\\\\''/g; 13367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13368 ;; #( 13369 *) 13370 # `set' quotes correctly as required by POSIX, so do not add quotes. 13371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13372 ;; 13373 esac | 13374 sort 13375) | 13376 sed ' 13377 /^ac_cv_env_/b end 13378 t clear 13379 :clear 13380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13381 t end 13382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13383 :end' >>confcache 13384if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13385 if test -w "$cache_file"; then 13386 if test "x$cache_file" != "x/dev/null"; then 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13388$as_echo "$as_me: updating cache $cache_file" >&6;} 13389 if test ! -f "$cache_file" || test -h "$cache_file"; then 13390 cat confcache >"$cache_file" 13391 else 13392 case $cache_file in #( 13393 */* | ?:*) 13394 mv -f confcache "$cache_file"$$ && 13395 mv -f "$cache_file"$$ "$cache_file" ;; #( 13396 *) 13397 mv -f confcache "$cache_file" ;; 13398 esac 13399 fi 13400 fi 13401 else 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13403$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13404 fi 13405fi 13406rm -f confcache 13407 13408test "x$prefix" = xNONE && prefix=$ac_default_prefix 13409# Let make expand exec_prefix. 13410test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13411 13412# Transform confdefs.h into DEFS. 13413# Protect against shell expansion while executing Makefile rules. 13414# Protect against Makefile macro expansion. 13415# 13416# If the first sed substitution is executed (which looks for macros that 13417# take arguments), then branch to the quote section. Otherwise, 13418# look for a macro that doesn't take arguments. 13419ac_script=' 13420:mline 13421/\\$/{ 13422 N 13423 s,\\\n,, 13424 b mline 13425} 13426t clear 13427:clear 13428s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13429t quote 13430s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13431t quote 13432b any 13433:quote 13434s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13435s/\[/\\&/g 13436s/\]/\\&/g 13437s/\$/$$/g 13438H 13439:any 13440${ 13441 g 13442 s/^\n// 13443 s/\n/ /g 13444 p 13445} 13446' 13447DEFS=`sed -n "$ac_script" confdefs.h` 13448 13449 13450ac_libobjs= 13451ac_ltlibobjs= 13452U= 13453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13454 # 1. Remove the extension, and $U if already installed. 13455 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13456 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13457 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13458 # will be set to the directory where LIBOBJS objects are built. 13459 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13460 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13461done 13462LIBOBJS=$ac_libobjs 13463 13464LTLIBOBJS=$ac_ltlibobjs 13465 13466 13467if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13468 as_fn_error $? "conditional \"AMDEP\" was never defined. 13469Usually this means the macro was only invoked conditionally." "$LINENO" 5 13470fi 13471if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13472 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13473Usually this means the macro was only invoked conditionally." "$LINENO" 5 13474fi 13475 if test -n "$EXEEXT"; then 13476 am__EXEEXT_TRUE= 13477 am__EXEEXT_FALSE='#' 13478else 13479 am__EXEEXT_TRUE='#' 13480 am__EXEEXT_FALSE= 13481fi 13482 13483if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 13484 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 13485Usually this means the macro was only invoked conditionally." "$LINENO" 5 13486fi 13487 13488: "${CONFIG_STATUS=./config.status}" 13489ac_write_fail=0 13490ac_clean_files_save=$ac_clean_files 13491ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13492{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13493$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13494as_write_fail=0 13495cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13496#! $SHELL 13497# Generated by $as_me. 13498# Run this file to recreate the current configuration. 13499# Compiler output produced by configure, useful for debugging 13500# configure, is in config.log if it exists. 13501 13502debug=false 13503ac_cs_recheck=false 13504ac_cs_silent=false 13505 13506SHELL=\${CONFIG_SHELL-$SHELL} 13507export SHELL 13508_ASEOF 13509cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13510## -------------------- ## 13511## M4sh Initialization. ## 13512## -------------------- ## 13513 13514# Be more Bourne compatible 13515DUALCASE=1; export DUALCASE # for MKS sh 13516if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13517 emulate sh 13518 NULLCMD=: 13519 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13520 # is contrary to our usage. Disable this feature. 13521 alias -g '${1+"$@"}'='"$@"' 13522 setopt NO_GLOB_SUBST 13523else 13524 case `(set -o) 2>/dev/null` in #( 13525 *posix*) : 13526 set -o posix ;; #( 13527 *) : 13528 ;; 13529esac 13530fi 13531 13532 13533as_nl=' 13534' 13535export as_nl 13536# Printing a long string crashes Solaris 7 /usr/bin/printf. 13537as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13538as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13539as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13540# Prefer a ksh shell builtin over an external printf program on Solaris, 13541# but without wasting forks for bash or zsh. 13542if test -z "$BASH_VERSION$ZSH_VERSION" \ 13543 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13544 as_echo='print -r --' 13545 as_echo_n='print -rn --' 13546elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13547 as_echo='printf %s\n' 13548 as_echo_n='printf %s' 13549else 13550 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13551 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13552 as_echo_n='/usr/ucb/echo -n' 13553 else 13554 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13555 as_echo_n_body='eval 13556 arg=$1; 13557 case $arg in #( 13558 *"$as_nl"*) 13559 expr "X$arg" : "X\\(.*\\)$as_nl"; 13560 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13561 esac; 13562 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13563 ' 13564 export as_echo_n_body 13565 as_echo_n='sh -c $as_echo_n_body as_echo' 13566 fi 13567 export as_echo_body 13568 as_echo='sh -c $as_echo_body as_echo' 13569fi 13570 13571# The user is always right. 13572if test "${PATH_SEPARATOR+set}" != set; then 13573 PATH_SEPARATOR=: 13574 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13575 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13576 PATH_SEPARATOR=';' 13577 } 13578fi 13579 13580 13581# IFS 13582# We need space, tab and new line, in precisely that order. Quoting is 13583# there to prevent editors from complaining about space-tab. 13584# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13585# splitting by setting IFS to empty value.) 13586IFS=" "" $as_nl" 13587 13588# Find who we are. Look in the path if we contain no directory separator. 13589as_myself= 13590case $0 in #(( 13591 *[\\/]* ) as_myself=$0 ;; 13592 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13593for as_dir in $PATH 13594do 13595 IFS=$as_save_IFS 13596 test -z "$as_dir" && as_dir=. 13597 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13598 done 13599IFS=$as_save_IFS 13600 13601 ;; 13602esac 13603# We did not find ourselves, most probably we were run as `sh COMMAND' 13604# in which case we are not to be found in the path. 13605if test "x$as_myself" = x; then 13606 as_myself=$0 13607fi 13608if test ! -f "$as_myself"; then 13609 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13610 exit 1 13611fi 13612 13613# Unset variables that we do not need and which cause bugs (e.g. in 13614# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13615# suppresses any "Segmentation fault" message there. '((' could 13616# trigger a bug in pdksh 5.2.14. 13617for as_var in BASH_ENV ENV MAIL MAILPATH 13618do eval test x\${$as_var+set} = xset \ 13619 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13620done 13621PS1='$ ' 13622PS2='> ' 13623PS4='+ ' 13624 13625# NLS nuisances. 13626LC_ALL=C 13627export LC_ALL 13628LANGUAGE=C 13629export LANGUAGE 13630 13631# CDPATH. 13632(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13633 13634 13635# as_fn_error STATUS ERROR [LINENO LOG_FD] 13636# ---------------------------------------- 13637# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13638# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13639# script with STATUS, using 1 if that was 0. 13640as_fn_error () 13641{ 13642 as_status=$1; test $as_status -eq 0 && as_status=1 13643 if test "$4"; then 13644 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13645 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13646 fi 13647 $as_echo "$as_me: error: $2" >&2 13648 as_fn_exit $as_status 13649} # as_fn_error 13650 13651 13652# as_fn_set_status STATUS 13653# ----------------------- 13654# Set $? to STATUS, without forking. 13655as_fn_set_status () 13656{ 13657 return $1 13658} # as_fn_set_status 13659 13660# as_fn_exit STATUS 13661# ----------------- 13662# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13663as_fn_exit () 13664{ 13665 set +e 13666 as_fn_set_status $1 13667 exit $1 13668} # as_fn_exit 13669 13670# as_fn_unset VAR 13671# --------------- 13672# Portably unset VAR. 13673as_fn_unset () 13674{ 13675 { eval $1=; unset $1;} 13676} 13677as_unset=as_fn_unset 13678# as_fn_append VAR VALUE 13679# ---------------------- 13680# Append the text in VALUE to the end of the definition contained in VAR. Take 13681# advantage of any shell optimizations that allow amortized linear growth over 13682# repeated appends, instead of the typical quadratic growth present in naive 13683# implementations. 13684if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13685 eval 'as_fn_append () 13686 { 13687 eval $1+=\$2 13688 }' 13689else 13690 as_fn_append () 13691 { 13692 eval $1=\$$1\$2 13693 } 13694fi # as_fn_append 13695 13696# as_fn_arith ARG... 13697# ------------------ 13698# Perform arithmetic evaluation on the ARGs, and store the result in the 13699# global $as_val. Take advantage of shells that can avoid forks. The arguments 13700# must be portable across $(()) and expr. 13701if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13702 eval 'as_fn_arith () 13703 { 13704 as_val=$(( $* )) 13705 }' 13706else 13707 as_fn_arith () 13708 { 13709 as_val=`expr "$@" || test $? -eq 1` 13710 } 13711fi # as_fn_arith 13712 13713 13714if expr a : '\(a\)' >/dev/null 2>&1 && 13715 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13716 as_expr=expr 13717else 13718 as_expr=false 13719fi 13720 13721if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13722 as_basename=basename 13723else 13724 as_basename=false 13725fi 13726 13727if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13728 as_dirname=dirname 13729else 13730 as_dirname=false 13731fi 13732 13733as_me=`$as_basename -- "$0" || 13734$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13735 X"$0" : 'X\(//\)$' \| \ 13736 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13737$as_echo X/"$0" | 13738 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13739 s//\1/ 13740 q 13741 } 13742 /^X\/\(\/\/\)$/{ 13743 s//\1/ 13744 q 13745 } 13746 /^X\/\(\/\).*/{ 13747 s//\1/ 13748 q 13749 } 13750 s/.*/./; q'` 13751 13752# Avoid depending upon Character Ranges. 13753as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13754as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13755as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13756as_cr_digits='0123456789' 13757as_cr_alnum=$as_cr_Letters$as_cr_digits 13758 13759ECHO_C= ECHO_N= ECHO_T= 13760case `echo -n x` in #((((( 13761-n*) 13762 case `echo 'xy\c'` in 13763 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13764 xy) ECHO_C='\c';; 13765 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13766 ECHO_T=' ';; 13767 esac;; 13768*) 13769 ECHO_N='-n';; 13770esac 13771 13772rm -f conf$$ conf$$.exe conf$$.file 13773if test -d conf$$.dir; then 13774 rm -f conf$$.dir/conf$$.file 13775else 13776 rm -f conf$$.dir 13777 mkdir conf$$.dir 2>/dev/null 13778fi 13779if (echo >conf$$.file) 2>/dev/null; then 13780 if ln -s conf$$.file conf$$ 2>/dev/null; then 13781 as_ln_s='ln -s' 13782 # ... but there are two gotchas: 13783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13785 # In both cases, we have to default to `cp -pR'. 13786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13787 as_ln_s='cp -pR' 13788 elif ln conf$$.file conf$$ 2>/dev/null; then 13789 as_ln_s=ln 13790 else 13791 as_ln_s='cp -pR' 13792 fi 13793else 13794 as_ln_s='cp -pR' 13795fi 13796rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13797rmdir conf$$.dir 2>/dev/null 13798 13799 13800# as_fn_mkdir_p 13801# ------------- 13802# Create "$as_dir" as a directory, including parents if necessary. 13803as_fn_mkdir_p () 13804{ 13805 13806 case $as_dir in #( 13807 -*) as_dir=./$as_dir;; 13808 esac 13809 test -d "$as_dir" || eval $as_mkdir_p || { 13810 as_dirs= 13811 while :; do 13812 case $as_dir in #( 13813 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13814 *) as_qdir=$as_dir;; 13815 esac 13816 as_dirs="'$as_qdir' $as_dirs" 13817 as_dir=`$as_dirname -- "$as_dir" || 13818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13819 X"$as_dir" : 'X\(//\)[^/]' \| \ 13820 X"$as_dir" : 'X\(//\)$' \| \ 13821 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13822$as_echo X"$as_dir" | 13823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13824 s//\1/ 13825 q 13826 } 13827 /^X\(\/\/\)[^/].*/{ 13828 s//\1/ 13829 q 13830 } 13831 /^X\(\/\/\)$/{ 13832 s//\1/ 13833 q 13834 } 13835 /^X\(\/\).*/{ 13836 s//\1/ 13837 q 13838 } 13839 s/.*/./; q'` 13840 test -d "$as_dir" && break 13841 done 13842 test -z "$as_dirs" || eval "mkdir $as_dirs" 13843 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13844 13845 13846} # as_fn_mkdir_p 13847if mkdir -p . 2>/dev/null; then 13848 as_mkdir_p='mkdir -p "$as_dir"' 13849else 13850 test -d ./-p && rmdir ./-p 13851 as_mkdir_p=false 13852fi 13853 13854 13855# as_fn_executable_p FILE 13856# ----------------------- 13857# Test if FILE is an executable regular file. 13858as_fn_executable_p () 13859{ 13860 test -f "$1" && test -x "$1" 13861} # as_fn_executable_p 13862as_test_x='test -x' 13863as_executable_p=as_fn_executable_p 13864 13865# Sed expression to map a string onto a valid CPP name. 13866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13867 13868# Sed expression to map a string onto a valid variable name. 13869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13870 13871 13872exec 6>&1 13873## ----------------------------------- ## 13874## Main body of $CONFIG_STATUS script. ## 13875## ----------------------------------- ## 13876_ASEOF 13877test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13878 13879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13880# Save the log message, to keep $0 and so on meaningful, and to 13881# report actual input values of CONFIG_FILES etc. instead of their 13882# values after options handling. 13883ac_log=" 13884This file was extended by $as_me, which was 13885generated by GNU Autoconf 2.69. Invocation command line was 13886 13887 CONFIG_FILES = $CONFIG_FILES 13888 CONFIG_HEADERS = $CONFIG_HEADERS 13889 CONFIG_LINKS = $CONFIG_LINKS 13890 CONFIG_COMMANDS = $CONFIG_COMMANDS 13891 $ $0 $@ 13892 13893on `(hostname || uname -n) 2>/dev/null | sed 1q` 13894" 13895 13896_ACEOF 13897 13898case $ac_config_files in *" 13899"*) set x $ac_config_files; shift; ac_config_files=$*;; 13900esac 13901 13902 13903 13904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13905# Files that config.status was made for. 13906config_files="$ac_config_files" 13907config_commands="$ac_config_commands" 13908 13909_ACEOF 13910 13911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13912ac_cs_usage="\ 13913\`$as_me' instantiates files and other configuration actions 13914from templates according to the current configuration. Unless the files 13915and actions are specified as TAGs, all are instantiated by default. 13916 13917Usage: $0 [OPTION]... [TAG]... 13918 13919 -h, --help print this help, then exit 13920 -V, --version print version number and configuration settings, then exit 13921 --config print configuration, then exit 13922 -q, --quiet, --silent 13923 do not print progress messages 13924 -d, --debug don't remove temporary files 13925 --recheck update $as_me by reconfiguring in the same conditions 13926 --file=FILE[:TEMPLATE] 13927 instantiate the configuration file FILE 13928 13929Configuration files: 13930$config_files 13931 13932Configuration commands: 13933$config_commands 13934 13935Report bugs to the package provider." 13936 13937_ACEOF 13938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13939ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13940ac_cs_version="\\ 13941config.status 13942configured by $0, generated by GNU Autoconf 2.69, 13943 with options \\"\$ac_cs_config\\" 13944 13945Copyright (C) 2012 Free Software Foundation, Inc. 13946This config.status script is free software; the Free Software Foundation 13947gives unlimited permission to copy, distribute and modify it." 13948 13949ac_pwd='$ac_pwd' 13950srcdir='$srcdir' 13951INSTALL='$INSTALL' 13952MKDIR_P='$MKDIR_P' 13953AWK='$AWK' 13954test -n "\$AWK" || AWK=awk 13955_ACEOF 13956 13957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13958# The default lists apply if the user does not specify any file. 13959ac_need_defaults=: 13960while test $# != 0 13961do 13962 case $1 in 13963 --*=?*) 13964 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13966 ac_shift=: 13967 ;; 13968 --*=) 13969 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13970 ac_optarg= 13971 ac_shift=: 13972 ;; 13973 *) 13974 ac_option=$1 13975 ac_optarg=$2 13976 ac_shift=shift 13977 ;; 13978 esac 13979 13980 case $ac_option in 13981 # Handling of the options. 13982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13983 ac_cs_recheck=: ;; 13984 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13985 $as_echo "$ac_cs_version"; exit ;; 13986 --config | --confi | --conf | --con | --co | --c ) 13987 $as_echo "$ac_cs_config"; exit ;; 13988 --debug | --debu | --deb | --de | --d | -d ) 13989 debug=: ;; 13990 --file | --fil | --fi | --f ) 13991 $ac_shift 13992 case $ac_optarg in 13993 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13994 '') as_fn_error $? "missing file argument" ;; 13995 esac 13996 as_fn_append CONFIG_FILES " '$ac_optarg'" 13997 ac_need_defaults=false;; 13998 --he | --h | --help | --hel | -h ) 13999 $as_echo "$ac_cs_usage"; exit ;; 14000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14001 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14002 ac_cs_silent=: ;; 14003 14004 # This is an error. 14005 -*) as_fn_error $? "unrecognized option: \`$1' 14006Try \`$0 --help' for more information." ;; 14007 14008 *) as_fn_append ac_config_targets " $1" 14009 ac_need_defaults=false ;; 14010 14011 esac 14012 shift 14013done 14014 14015ac_configure_extra_args= 14016 14017if $ac_cs_silent; then 14018 exec 6>/dev/null 14019 ac_configure_extra_args="$ac_configure_extra_args --silent" 14020fi 14021 14022_ACEOF 14023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14024if \$ac_cs_recheck; then 14025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14026 shift 14027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14028 CONFIG_SHELL='$SHELL' 14029 export CONFIG_SHELL 14030 exec "\$@" 14031fi 14032 14033_ACEOF 14034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14035exec 5>>config.log 14036{ 14037 echo 14038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14039## Running $as_me. ## 14040_ASBOX 14041 $as_echo "$ac_log" 14042} >&5 14043 14044_ACEOF 14045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14046# 14047# INIT-COMMANDS 14048# 14049 14050 14051# The HP-UX ksh and POSIX shell print the target directory to stdout 14052# if CDPATH is set. 14053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14054 14055sed_quote_subst='$sed_quote_subst' 14056double_quote_subst='$double_quote_subst' 14057delay_variable_subst='$delay_variable_subst' 14058macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14059macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14060AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 14061DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14062OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14063enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14064enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14065pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14066enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14067SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14068ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14069host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14070host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14071host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14072build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14073build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14074build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14075SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14076Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14077GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14078EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14079FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14080LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14081NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14082LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14083max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14084ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14085exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14086lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14087lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14088lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14089lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14090lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14091reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14092reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14093deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14094file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14095file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14096want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14097sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14098AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14099AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14100archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14101STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14102RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14103old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14104old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14105old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14106lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14107CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14108CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14109compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14110GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14111lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14112lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14113lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14114lt_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"`' 14115nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14116lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14117objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14118MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14119lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14120lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14121lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14122lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14123lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14124need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14125MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14126DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14127NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14128LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14129OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14130OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14131libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14132shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14133extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14134archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14135enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14136export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14137whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14138compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14139old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14140old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14141archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14142archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14143module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14144module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14145with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14146allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14147no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14148hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14149hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 14150hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14151hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14152hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14153hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14154hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14155hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14156inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14157link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14158always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14159export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14160exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14161include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14162prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14163postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14164file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14165variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14166need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14167need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14168version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14169runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14170shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14171shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14172libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14173library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14174soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14175install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14176postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14177postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14178finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14179finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14180hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14181sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14182sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14183hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14184enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14185enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14186enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14187old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14188striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14189 14190LTCC='$LTCC' 14191LTCFLAGS='$LTCFLAGS' 14192compiler='$compiler_DEFAULT' 14193 14194# A function that is used when there is no print builtin or printf. 14195func_fallback_echo () 14196{ 14197 eval 'cat <<_LTECHO_EOF 14198\$1 14199_LTECHO_EOF' 14200} 14201 14202# Quote evaled strings. 14203for var in AS \ 14204DLLTOOL \ 14205OBJDUMP \ 14206SHELL \ 14207ECHO \ 14208SED \ 14209GREP \ 14210EGREP \ 14211FGREP \ 14212LD \ 14213NM \ 14214LN_S \ 14215lt_SP2NL \ 14216lt_NL2SP \ 14217reload_flag \ 14218deplibs_check_method \ 14219file_magic_cmd \ 14220file_magic_glob \ 14221want_nocaseglob \ 14222sharedlib_from_linklib_cmd \ 14223AR \ 14224AR_FLAGS \ 14225archiver_list_spec \ 14226STRIP \ 14227RANLIB \ 14228CC \ 14229CFLAGS \ 14230compiler \ 14231lt_cv_sys_global_symbol_pipe \ 14232lt_cv_sys_global_symbol_to_cdecl \ 14233lt_cv_sys_global_symbol_to_c_name_address \ 14234lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14235nm_file_list_spec \ 14236lt_prog_compiler_no_builtin_flag \ 14237lt_prog_compiler_pic \ 14238lt_prog_compiler_wl \ 14239lt_prog_compiler_static \ 14240lt_cv_prog_compiler_c_o \ 14241need_locks \ 14242MANIFEST_TOOL \ 14243DSYMUTIL \ 14244NMEDIT \ 14245LIPO \ 14246OTOOL \ 14247OTOOL64 \ 14248shrext_cmds \ 14249export_dynamic_flag_spec \ 14250whole_archive_flag_spec \ 14251compiler_needs_object \ 14252with_gnu_ld \ 14253allow_undefined_flag \ 14254no_undefined_flag \ 14255hardcode_libdir_flag_spec \ 14256hardcode_libdir_flag_spec_ld \ 14257hardcode_libdir_separator \ 14258exclude_expsyms \ 14259include_expsyms \ 14260file_list_spec \ 14261variables_saved_for_relink \ 14262libname_spec \ 14263library_names_spec \ 14264soname_spec \ 14265install_override_mode \ 14266finish_eval \ 14267old_striplib \ 14268striplib; do 14269 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14270 *[\\\\\\\`\\"\\\$]*) 14271 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14272 ;; 14273 *) 14274 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14275 ;; 14276 esac 14277done 14278 14279# Double-quote double-evaled strings. 14280for var in reload_cmds \ 14281old_postinstall_cmds \ 14282old_postuninstall_cmds \ 14283old_archive_cmds \ 14284extract_expsyms_cmds \ 14285old_archive_from_new_cmds \ 14286old_archive_from_expsyms_cmds \ 14287archive_cmds \ 14288archive_expsym_cmds \ 14289module_cmds \ 14290module_expsym_cmds \ 14291export_symbols_cmds \ 14292prelink_cmds \ 14293postlink_cmds \ 14294postinstall_cmds \ 14295postuninstall_cmds \ 14296finish_cmds \ 14297sys_lib_search_path_spec \ 14298sys_lib_dlsearch_path_spec; do 14299 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14300 *[\\\\\\\`\\"\\\$]*) 14301 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14302 ;; 14303 *) 14304 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14305 ;; 14306 esac 14307done 14308 14309ac_aux_dir='$ac_aux_dir' 14310xsi_shell='$xsi_shell' 14311lt_shell_append='$lt_shell_append' 14312 14313# See if we are running on zsh, and set the options which allow our 14314# commands through without removal of \ escapes INIT. 14315if test -n "\${ZSH_VERSION+set}" ; then 14316 setopt NO_GLOB_SUBST 14317fi 14318 14319 14320 PACKAGE='$PACKAGE' 14321 VERSION='$VERSION' 14322 TIMESTAMP='$TIMESTAMP' 14323 RM='$RM' 14324 ofile='$ofile' 14325 14326 14327 14328AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14329 14330_ACEOF 14331 14332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14333 14334# Handling of arguments. 14335for ac_config_target in $ac_config_targets 14336do 14337 case $ac_config_target in 14338 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14339 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14340 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14341 "SDL2_gfx.pc") CONFIG_FILES="$CONFIG_FILES SDL2_gfx.pc" ;; 14342 14343 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14344 esac 14345done 14346 14347 14348# If the user did not use the arguments to specify the items to instantiate, 14349# then the envvar interface is used. Set only those that are not. 14350# We use the long form for the default assignment because of an extremely 14351# bizarre bug on SunOS 4.1.3. 14352if $ac_need_defaults; then 14353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14355fi 14356 14357# Have a temporary directory for convenience. Make it in the build tree 14358# simply because there is no reason against having it here, and in addition, 14359# creating and moving files from /tmp can sometimes cause problems. 14360# Hook for its removal unless debugging. 14361# Note that there is a small window in which the directory will not be cleaned: 14362# after its creation but before its name has been assigned to `$tmp'. 14363$debug || 14364{ 14365 tmp= ac_tmp= 14366 trap 'exit_status=$? 14367 : "${ac_tmp:=$tmp}" 14368 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14369' 0 14370 trap 'as_fn_exit 1' 1 2 13 15 14371} 14372# Create a (secure) tmp directory for tmp files. 14373 14374{ 14375 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14376 test -d "$tmp" 14377} || 14378{ 14379 tmp=./conf$$-$RANDOM 14380 (umask 077 && mkdir "$tmp") 14381} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14382ac_tmp=$tmp 14383 14384# Set up the scripts for CONFIG_FILES section. 14385# No need to generate them if there are no CONFIG_FILES. 14386# This happens for instance with `./config.status config.h'. 14387if test -n "$CONFIG_FILES"; then 14388 14389 14390ac_cr=`echo X | tr X '\015'` 14391# On cygwin, bash can eat \r inside `` if the user requested igncr. 14392# But we know of no other shell where ac_cr would be empty at this 14393# point, so we can use a bashism as a fallback. 14394if test "x$ac_cr" = x; then 14395 eval ac_cr=\$\'\\r\' 14396fi 14397ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14398if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14399 ac_cs_awk_cr='\\r' 14400else 14401 ac_cs_awk_cr=$ac_cr 14402fi 14403 14404echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14405_ACEOF 14406 14407 14408{ 14409 echo "cat >conf$$subs.awk <<_ACEOF" && 14410 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14411 echo "_ACEOF" 14412} >conf$$subs.sh || 14413 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14414ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14415ac_delim='%!_!# ' 14416for ac_last_try in false false false false false :; do 14417 . ./conf$$subs.sh || 14418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14419 14420 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14421 if test $ac_delim_n = $ac_delim_num; then 14422 break 14423 elif $ac_last_try; then 14424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14425 else 14426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14427 fi 14428done 14429rm -f conf$$subs.sh 14430 14431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14432cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14433_ACEOF 14434sed -n ' 14435h 14436s/^/S["/; s/!.*/"]=/ 14437p 14438g 14439s/^[^!]*!// 14440:repl 14441t repl 14442s/'"$ac_delim"'$// 14443t delim 14444:nl 14445h 14446s/\(.\{148\}\)..*/\1/ 14447t more1 14448s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14449p 14450n 14451b repl 14452:more1 14453s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14454p 14455g 14456s/.\{148\}// 14457t nl 14458:delim 14459h 14460s/\(.\{148\}\)..*/\1/ 14461t more2 14462s/["\\]/\\&/g; s/^/"/; s/$/"/ 14463p 14464b 14465:more2 14466s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14467p 14468g 14469s/.\{148\}// 14470t delim 14471' <conf$$subs.awk | sed ' 14472/^[^""]/{ 14473 N 14474 s/\n// 14475} 14476' >>$CONFIG_STATUS || ac_write_fail=1 14477rm -f conf$$subs.awk 14478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14479_ACAWK 14480cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14481 for (key in S) S_is_set[key] = 1 14482 FS = "" 14483 14484} 14485{ 14486 line = $ 0 14487 nfields = split(line, field, "@") 14488 substed = 0 14489 len = length(field[1]) 14490 for (i = 2; i < nfields; i++) { 14491 key = field[i] 14492 keylen = length(key) 14493 if (S_is_set[key]) { 14494 value = S[key] 14495 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14496 len += length(value) + length(field[++i]) 14497 substed = 1 14498 } else 14499 len += 1 + keylen 14500 } 14501 14502 print line 14503} 14504 14505_ACAWK 14506_ACEOF 14507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14508if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14509 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14510else 14511 cat 14512fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14513 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14514_ACEOF 14515 14516# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14517# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14518# trailing colons and then remove the whole line if VPATH becomes empty 14519# (actually we leave an empty line to preserve line numbers). 14520if test "x$srcdir" = x.; then 14521 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14522h 14523s/// 14524s/^/:/ 14525s/[ ]*$/:/ 14526s/:\$(srcdir):/:/g 14527s/:\${srcdir}:/:/g 14528s/:@srcdir@:/:/g 14529s/^:*// 14530s/:*$// 14531x 14532s/\(=[ ]*\).*/\1/ 14533G 14534s/\n// 14535s/^[^=]*=[ ]*$// 14536}' 14537fi 14538 14539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14540fi # test -n "$CONFIG_FILES" 14541 14542 14543eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 14544shift 14545for ac_tag 14546do 14547 case $ac_tag in 14548 :[FHLC]) ac_mode=$ac_tag; continue;; 14549 esac 14550 case $ac_mode$ac_tag in 14551 :[FHL]*:*);; 14552 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14553 :[FH]-) ac_tag=-:-;; 14554 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14555 esac 14556 ac_save_IFS=$IFS 14557 IFS=: 14558 set x $ac_tag 14559 IFS=$ac_save_IFS 14560 shift 14561 ac_file=$1 14562 shift 14563 14564 case $ac_mode in 14565 :L) ac_source=$1;; 14566 :[FH]) 14567 ac_file_inputs= 14568 for ac_f 14569 do 14570 case $ac_f in 14571 -) ac_f="$ac_tmp/stdin";; 14572 *) # Look for the file first in the build tree, then in the source tree 14573 # (if the path is not absolute). The absolute path cannot be DOS-style, 14574 # because $ac_f cannot contain `:'. 14575 test -f "$ac_f" || 14576 case $ac_f in 14577 [\\/$]*) false;; 14578 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14579 esac || 14580 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14581 esac 14582 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14583 as_fn_append ac_file_inputs " '$ac_f'" 14584 done 14585 14586 # Let's still pretend it is `configure' which instantiates (i.e., don't 14587 # use $as_me), people would be surprised to read: 14588 # /* config.h. Generated by config.status. */ 14589 configure_input='Generated from '` 14590 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14591 `' by configure.' 14592 if test x"$ac_file" != x-; then 14593 configure_input="$ac_file. $configure_input" 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14595$as_echo "$as_me: creating $ac_file" >&6;} 14596 fi 14597 # Neutralize special characters interpreted by sed in replacement strings. 14598 case $configure_input in #( 14599 *\&* | *\|* | *\\* ) 14600 ac_sed_conf_input=`$as_echo "$configure_input" | 14601 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14602 *) ac_sed_conf_input=$configure_input;; 14603 esac 14604 14605 case $ac_tag in 14606 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14608 esac 14609 ;; 14610 esac 14611 14612 ac_dir=`$as_dirname -- "$ac_file" || 14613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14614 X"$ac_file" : 'X\(//\)[^/]' \| \ 14615 X"$ac_file" : 'X\(//\)$' \| \ 14616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14617$as_echo X"$ac_file" | 14618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14619 s//\1/ 14620 q 14621 } 14622 /^X\(\/\/\)[^/].*/{ 14623 s//\1/ 14624 q 14625 } 14626 /^X\(\/\/\)$/{ 14627 s//\1/ 14628 q 14629 } 14630 /^X\(\/\).*/{ 14631 s//\1/ 14632 q 14633 } 14634 s/.*/./; q'` 14635 as_dir="$ac_dir"; as_fn_mkdir_p 14636 ac_builddir=. 14637 14638case "$ac_dir" in 14639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14640*) 14641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14642 # A ".." for each directory in $ac_dir_suffix. 14643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14644 case $ac_top_builddir_sub in 14645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14647 esac ;; 14648esac 14649ac_abs_top_builddir=$ac_pwd 14650ac_abs_builddir=$ac_pwd$ac_dir_suffix 14651# for backward compatibility: 14652ac_top_builddir=$ac_top_build_prefix 14653 14654case $srcdir in 14655 .) # We are building in place. 14656 ac_srcdir=. 14657 ac_top_srcdir=$ac_top_builddir_sub 14658 ac_abs_top_srcdir=$ac_pwd ;; 14659 [\\/]* | ?:[\\/]* ) # Absolute name. 14660 ac_srcdir=$srcdir$ac_dir_suffix; 14661 ac_top_srcdir=$srcdir 14662 ac_abs_top_srcdir=$srcdir ;; 14663 *) # Relative name. 14664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14665 ac_top_srcdir=$ac_top_build_prefix$srcdir 14666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14667esac 14668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14669 14670 14671 case $ac_mode in 14672 :F) 14673 # 14674 # CONFIG_FILE 14675 # 14676 14677 case $INSTALL in 14678 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14679 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14680 esac 14681 ac_MKDIR_P=$MKDIR_P 14682 case $MKDIR_P in 14683 [\\/$]* | ?:[\\/]* ) ;; 14684 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14685 esac 14686_ACEOF 14687 14688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14689# If the template does not know about datarootdir, expand it. 14690# FIXME: This hack should be removed a few years after 2.60. 14691ac_datarootdir_hack=; ac_datarootdir_seen= 14692ac_sed_dataroot=' 14693/datarootdir/ { 14694 p 14695 q 14696} 14697/@datadir@/p 14698/@docdir@/p 14699/@infodir@/p 14700/@localedir@/p 14701/@mandir@/p' 14702case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14703*datarootdir*) ac_datarootdir_seen=yes;; 14704*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14706$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14707_ACEOF 14708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14709 ac_datarootdir_hack=' 14710 s&@datadir@&$datadir&g 14711 s&@docdir@&$docdir&g 14712 s&@infodir@&$infodir&g 14713 s&@localedir@&$localedir&g 14714 s&@mandir@&$mandir&g 14715 s&\\\${datarootdir}&$datarootdir&g' ;; 14716esac 14717_ACEOF 14718 14719# Neutralize VPATH when `$srcdir' = `.'. 14720# Shell code in configure.ac might set extrasub. 14721# FIXME: do we really want to maintain this feature? 14722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14723ac_sed_extra="$ac_vpsub 14724$extrasub 14725_ACEOF 14726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14727:t 14728/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14729s|@configure_input@|$ac_sed_conf_input|;t t 14730s&@top_builddir@&$ac_top_builddir_sub&;t t 14731s&@top_build_prefix@&$ac_top_build_prefix&;t t 14732s&@srcdir@&$ac_srcdir&;t t 14733s&@abs_srcdir@&$ac_abs_srcdir&;t t 14734s&@top_srcdir@&$ac_top_srcdir&;t t 14735s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14736s&@builddir@&$ac_builddir&;t t 14737s&@abs_builddir@&$ac_abs_builddir&;t t 14738s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14739s&@INSTALL@&$ac_INSTALL&;t t 14740s&@MKDIR_P@&$ac_MKDIR_P&;t t 14741$ac_datarootdir_hack 14742" 14743eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14744 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14745 14746test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14747 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14749 "$ac_tmp/out"`; test -z "$ac_out"; } && 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14751which seems to be undefined. Please make sure it is defined" >&5 14752$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14753which seems to be undefined. Please make sure it is defined" >&2;} 14754 14755 rm -f "$ac_tmp/stdin" 14756 case $ac_file in 14757 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14758 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14759 esac \ 14760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14761 ;; 14762 14763 14764 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14765$as_echo "$as_me: executing $ac_file commands" >&6;} 14766 ;; 14767 esac 14768 14769 14770 case $ac_file$ac_mode in 14771 "libtool":C) 14772 14773 # See if we are running on zsh, and set the options which allow our 14774 # commands through without removal of \ escapes. 14775 if test -n "${ZSH_VERSION+set}" ; then 14776 setopt NO_GLOB_SUBST 14777 fi 14778 14779 cfgfile="${ofile}T" 14780 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14781 $RM "$cfgfile" 14782 14783 cat <<_LT_EOF >> "$cfgfile" 14784#! $SHELL 14785 14786# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14787# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14788# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14789# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14790# 14791# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14792# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 14793# Inc. 14794# Written by Gordon Matzigkeit, 1996 14795# 14796# This file is part of GNU Libtool. 14797# 14798# GNU Libtool is free software; you can redistribute it and/or 14799# modify it under the terms of the GNU General Public License as 14800# published by the Free Software Foundation; either version 2 of 14801# the License, or (at your option) any later version. 14802# 14803# As a special exception to the GNU General Public License, 14804# if you distribute this file as part of a program or library that 14805# is built using GNU Libtool, you may include this file under the 14806# same distribution terms that you use for the rest of that program. 14807# 14808# GNU Libtool is distributed in the hope that it will be useful, 14809# but WITHOUT ANY WARRANTY; without even the implied warranty of 14810# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14811# GNU General Public License for more details. 14812# 14813# You should have received a copy of the GNU General Public License 14814# along with GNU Libtool; see the file COPYING. If not, a copy 14815# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14816# obtained by writing to the Free Software Foundation, Inc., 14817# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14818 14819 14820# The names of the tagged configurations supported by this script. 14821available_tags="" 14822 14823# ### BEGIN LIBTOOL CONFIG 14824 14825# Which release of libtool.m4 was used? 14826macro_version=$macro_version 14827macro_revision=$macro_revision 14828 14829# Assembler program. 14830AS=$lt_AS 14831 14832# DLL creation program. 14833DLLTOOL=$lt_DLLTOOL 14834 14835# Object dumper program. 14836OBJDUMP=$lt_OBJDUMP 14837 14838# Whether or not to build shared libraries. 14839build_libtool_libs=$enable_shared 14840 14841# Whether or not to build static libraries. 14842build_old_libs=$enable_static 14843 14844# What type of objects to build. 14845pic_mode=$pic_mode 14846 14847# Whether or not to optimize for fast installation. 14848fast_install=$enable_fast_install 14849 14850# Shell to use when invoking shell scripts. 14851SHELL=$lt_SHELL 14852 14853# An echo program that protects backslashes. 14854ECHO=$lt_ECHO 14855 14856# The host system. 14857host_alias=$host_alias 14858host=$host 14859host_os=$host_os 14860 14861# The build system. 14862build_alias=$build_alias 14863build=$build 14864build_os=$build_os 14865 14866# A sed program that does not truncate output. 14867SED=$lt_SED 14868 14869# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14870Xsed="\$SED -e 1s/^X//" 14871 14872# A grep program that handles long lines. 14873GREP=$lt_GREP 14874 14875# An ERE matcher. 14876EGREP=$lt_EGREP 14877 14878# A literal string matcher. 14879FGREP=$lt_FGREP 14880 14881# A BSD- or MS-compatible name lister. 14882NM=$lt_NM 14883 14884# Whether we need soft or hard links. 14885LN_S=$lt_LN_S 14886 14887# What is the maximum length of a command? 14888max_cmd_len=$max_cmd_len 14889 14890# Object file suffix (normally "o"). 14891objext=$ac_objext 14892 14893# Executable file suffix (normally ""). 14894exeext=$exeext 14895 14896# whether the shell understands "unset". 14897lt_unset=$lt_unset 14898 14899# turn spaces into newlines. 14900SP2NL=$lt_lt_SP2NL 14901 14902# turn newlines into spaces. 14903NL2SP=$lt_lt_NL2SP 14904 14905# convert \$build file names to \$host format. 14906to_host_file_cmd=$lt_cv_to_host_file_cmd 14907 14908# convert \$build files to toolchain format. 14909to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14910 14911# Method to check whether dependent libraries are shared objects. 14912deplibs_check_method=$lt_deplibs_check_method 14913 14914# Command to use when deplibs_check_method = "file_magic". 14915file_magic_cmd=$lt_file_magic_cmd 14916 14917# How to find potential files when deplibs_check_method = "file_magic". 14918file_magic_glob=$lt_file_magic_glob 14919 14920# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14921want_nocaseglob=$lt_want_nocaseglob 14922 14923# Command to associate shared and link libraries. 14924sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14925 14926# The archiver. 14927AR=$lt_AR 14928 14929# Flags to create an archive. 14930AR_FLAGS=$lt_AR_FLAGS 14931 14932# How to feed a file listing to the archiver. 14933archiver_list_spec=$lt_archiver_list_spec 14934 14935# A symbol stripping program. 14936STRIP=$lt_STRIP 14937 14938# Commands used to install an old-style archive. 14939RANLIB=$lt_RANLIB 14940old_postinstall_cmds=$lt_old_postinstall_cmds 14941old_postuninstall_cmds=$lt_old_postuninstall_cmds 14942 14943# Whether to use a lock for old archive extraction. 14944lock_old_archive_extraction=$lock_old_archive_extraction 14945 14946# A C compiler. 14947LTCC=$lt_CC 14948 14949# LTCC compiler flags. 14950LTCFLAGS=$lt_CFLAGS 14951 14952# Take the output of nm and produce a listing of raw symbols and C names. 14953global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14954 14955# Transform the output of nm in a proper C declaration. 14956global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14957 14958# Transform the output of nm in a C name address pair. 14959global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14960 14961# Transform the output of nm in a C name address pair when lib prefix is needed. 14962global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14963 14964# Specify filename containing input files for \$NM. 14965nm_file_list_spec=$lt_nm_file_list_spec 14966 14967# The root where to search for dependent libraries,and in which our libraries should be installed. 14968lt_sysroot=$lt_sysroot 14969 14970# The name of the directory that contains temporary libtool files. 14971objdir=$objdir 14972 14973# Used to examine libraries when file_magic_cmd begins with "file". 14974MAGIC_CMD=$MAGIC_CMD 14975 14976# Must we lock files when doing compilation? 14977need_locks=$lt_need_locks 14978 14979# Manifest tool. 14980MANIFEST_TOOL=$lt_MANIFEST_TOOL 14981 14982# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14983DSYMUTIL=$lt_DSYMUTIL 14984 14985# Tool to change global to local symbols on Mac OS X. 14986NMEDIT=$lt_NMEDIT 14987 14988# Tool to manipulate fat objects and archives on Mac OS X. 14989LIPO=$lt_LIPO 14990 14991# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14992OTOOL=$lt_OTOOL 14993 14994# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14995OTOOL64=$lt_OTOOL64 14996 14997# Old archive suffix (normally "a"). 14998libext=$libext 14999 15000# Shared library suffix (normally ".so"). 15001shrext_cmds=$lt_shrext_cmds 15002 15003# The commands to extract the exported symbol list from a shared archive. 15004extract_expsyms_cmds=$lt_extract_expsyms_cmds 15005 15006# Variables whose values should be saved in libtool wrapper scripts and 15007# restored at link time. 15008variables_saved_for_relink=$lt_variables_saved_for_relink 15009 15010# Do we need the "lib" prefix for modules? 15011need_lib_prefix=$need_lib_prefix 15012 15013# Do we need a version for libraries? 15014need_version=$need_version 15015 15016# Library versioning type. 15017version_type=$version_type 15018 15019# Shared library runtime path variable. 15020runpath_var=$runpath_var 15021 15022# Shared library path variable. 15023shlibpath_var=$shlibpath_var 15024 15025# Is shlibpath searched before the hard-coded library search path? 15026shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15027 15028# Format of library name prefix. 15029libname_spec=$lt_libname_spec 15030 15031# List of archive names. First name is the real one, the rest are links. 15032# The last name is the one that the linker finds with -lNAME 15033library_names_spec=$lt_library_names_spec 15034 15035# The coded name of the library, if different from the real name. 15036soname_spec=$lt_soname_spec 15037 15038# Permission mode override for installation of shared libraries. 15039install_override_mode=$lt_install_override_mode 15040 15041# Command to use after installation of a shared archive. 15042postinstall_cmds=$lt_postinstall_cmds 15043 15044# Command to use after uninstallation of a shared archive. 15045postuninstall_cmds=$lt_postuninstall_cmds 15046 15047# Commands used to finish a libtool library installation in a directory. 15048finish_cmds=$lt_finish_cmds 15049 15050# As "finish_cmds", except a single script fragment to be evaled but 15051# not shown. 15052finish_eval=$lt_finish_eval 15053 15054# Whether we should hardcode library paths into libraries. 15055hardcode_into_libs=$hardcode_into_libs 15056 15057# Compile-time system search path for libraries. 15058sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15059 15060# Run-time system search path for libraries. 15061sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15062 15063# Whether dlopen is supported. 15064dlopen_support=$enable_dlopen 15065 15066# Whether dlopen of programs is supported. 15067dlopen_self=$enable_dlopen_self 15068 15069# Whether dlopen of statically linked programs is supported. 15070dlopen_self_static=$enable_dlopen_self_static 15071 15072# Commands to strip libraries. 15073old_striplib=$lt_old_striplib 15074striplib=$lt_striplib 15075 15076 15077# The linker used to build libraries. 15078LD=$lt_LD 15079 15080# How to create reloadable object files. 15081reload_flag=$lt_reload_flag 15082reload_cmds=$lt_reload_cmds 15083 15084# Commands used to build an old-style archive. 15085old_archive_cmds=$lt_old_archive_cmds 15086 15087# A language specific compiler. 15088CC=$lt_compiler 15089 15090# Is the compiler the GNU compiler? 15091with_gcc=$GCC 15092 15093# Compiler flag to turn off builtin functions. 15094no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15095 15096# Additional compiler flags for building library objects. 15097pic_flag=$lt_lt_prog_compiler_pic 15098 15099# How to pass a linker flag through the compiler. 15100wl=$lt_lt_prog_compiler_wl 15101 15102# Compiler flag to prevent dynamic linking. 15103link_static_flag=$lt_lt_prog_compiler_static 15104 15105# Does compiler simultaneously support -c and -o options? 15106compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15107 15108# Whether or not to add -lc for building shared libraries. 15109build_libtool_need_lc=$archive_cmds_need_lc 15110 15111# Whether or not to disallow shared libs when runtime libs are static. 15112allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15113 15114# Compiler flag to allow reflexive dlopens. 15115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15116 15117# Compiler flag to generate shared objects directly from archives. 15118whole_archive_flag_spec=$lt_whole_archive_flag_spec 15119 15120# Whether the compiler copes with passing no objects directly. 15121compiler_needs_object=$lt_compiler_needs_object 15122 15123# Create an old-style archive from a shared archive. 15124old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15125 15126# Create a temporary old-style archive to link instead of a shared archive. 15127old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15128 15129# Commands used to build a shared archive. 15130archive_cmds=$lt_archive_cmds 15131archive_expsym_cmds=$lt_archive_expsym_cmds 15132 15133# Commands used to build a loadable module if different from building 15134# a shared archive. 15135module_cmds=$lt_module_cmds 15136module_expsym_cmds=$lt_module_expsym_cmds 15137 15138# Whether we are building with GNU ld or not. 15139with_gnu_ld=$lt_with_gnu_ld 15140 15141# Flag that allows shared libraries with undefined symbols to be built. 15142allow_undefined_flag=$lt_allow_undefined_flag 15143 15144# Flag that enforces no undefined symbols. 15145no_undefined_flag=$lt_no_undefined_flag 15146 15147# Flag to hardcode \$libdir into a binary during linking. 15148# This must work even if \$libdir does not exist 15149hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15150 15151# If ld is used when linking, flag to hardcode \$libdir into a binary 15152# during linking. This must work even if \$libdir does not exist. 15153hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15154 15155# Whether we need a single "-rpath" flag with a separated argument. 15156hardcode_libdir_separator=$lt_hardcode_libdir_separator 15157 15158# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15159# DIR into the resulting binary. 15160hardcode_direct=$hardcode_direct 15161 15162# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15163# DIR into the resulting binary and the resulting library dependency is 15164# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15165# library is relocated. 15166hardcode_direct_absolute=$hardcode_direct_absolute 15167 15168# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15169# into the resulting binary. 15170hardcode_minus_L=$hardcode_minus_L 15171 15172# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15173# into the resulting binary. 15174hardcode_shlibpath_var=$hardcode_shlibpath_var 15175 15176# Set to "yes" if building a shared library automatically hardcodes DIR 15177# into the library and all subsequent libraries and executables linked 15178# against it. 15179hardcode_automatic=$hardcode_automatic 15180 15181# Set to yes if linker adds runtime paths of dependent libraries 15182# to runtime path list. 15183inherit_rpath=$inherit_rpath 15184 15185# Whether libtool must link a program against all its dependency libraries. 15186link_all_deplibs=$link_all_deplibs 15187 15188# Set to "yes" if exported symbols are required. 15189always_export_symbols=$always_export_symbols 15190 15191# The commands to list exported symbols. 15192export_symbols_cmds=$lt_export_symbols_cmds 15193 15194# Symbols that should not be listed in the preloaded symbols. 15195exclude_expsyms=$lt_exclude_expsyms 15196 15197# Symbols that must always be exported. 15198include_expsyms=$lt_include_expsyms 15199 15200# Commands necessary for linking programs (against libraries) with templates. 15201prelink_cmds=$lt_prelink_cmds 15202 15203# Commands necessary for finishing linking programs. 15204postlink_cmds=$lt_postlink_cmds 15205 15206# Specify filename containing input files. 15207file_list_spec=$lt_file_list_spec 15208 15209# How to hardcode a shared library path into an executable. 15210hardcode_action=$hardcode_action 15211 15212# ### END LIBTOOL CONFIG 15213 15214_LT_EOF 15215 15216 case $host_os in 15217 aix3*) 15218 cat <<\_LT_EOF >> "$cfgfile" 15219# AIX sometimes has problems with the GCC collect2 program. For some 15220# reason, if we set the COLLECT_NAMES environment variable, the problems 15221# vanish in a puff of smoke. 15222if test "X${COLLECT_NAMES+set}" != Xset; then 15223 COLLECT_NAMES= 15224 export COLLECT_NAMES 15225fi 15226_LT_EOF 15227 ;; 15228 esac 15229 15230 15231ltmain="$ac_aux_dir/ltmain.sh" 15232 15233 15234 # We use sed instead of cat because bash on DJGPP gets confused if 15235 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15236 # text mode, it properly converts lines to CR/LF. This bash problem 15237 # is reportedly fixed, but why not run on old versions too? 15238 sed '$q' "$ltmain" >> "$cfgfile" \ 15239 || (rm -f "$cfgfile"; exit 1) 15240 15241 if test x"$xsi_shell" = xyes; then 15242 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15243func_dirname ()\ 15244{\ 15245\ case ${1} in\ 15246\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15247\ * ) func_dirname_result="${3}" ;;\ 15248\ esac\ 15249} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15250 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15251 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15252test 0 -eq $? || _lt_function_replace_fail=: 15253 15254 15255 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15256func_basename ()\ 15257{\ 15258\ func_basename_result="${1##*/}"\ 15259} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15260 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15262test 0 -eq $? || _lt_function_replace_fail=: 15263 15264 15265 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15266func_dirname_and_basename ()\ 15267{\ 15268\ case ${1} in\ 15269\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15270\ * ) func_dirname_result="${3}" ;;\ 15271\ esac\ 15272\ func_basename_result="${1##*/}"\ 15273} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15274 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15276test 0 -eq $? || _lt_function_replace_fail=: 15277 15278 15279 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15280func_stripname ()\ 15281{\ 15282\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15283\ # positional parameters, so assign one to ordinary parameter first.\ 15284\ func_stripname_result=${3}\ 15285\ func_stripname_result=${func_stripname_result#"${1}"}\ 15286\ func_stripname_result=${func_stripname_result%"${2}"}\ 15287} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15288 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15290test 0 -eq $? || _lt_function_replace_fail=: 15291 15292 15293 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15294func_split_long_opt ()\ 15295{\ 15296\ func_split_long_opt_name=${1%%=*}\ 15297\ func_split_long_opt_arg=${1#*=}\ 15298} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15299 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15301test 0 -eq $? || _lt_function_replace_fail=: 15302 15303 15304 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15305func_split_short_opt ()\ 15306{\ 15307\ func_split_short_opt_arg=${1#??}\ 15308\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15309} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15310 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15312test 0 -eq $? || _lt_function_replace_fail=: 15313 15314 15315 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15316func_lo2o ()\ 15317{\ 15318\ case ${1} in\ 15319\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15320\ *) func_lo2o_result=${1} ;;\ 15321\ esac\ 15322} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15323 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15325test 0 -eq $? || _lt_function_replace_fail=: 15326 15327 15328 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15329func_xform ()\ 15330{\ 15331 func_xform_result=${1%.*}.lo\ 15332} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15333 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15335test 0 -eq $? || _lt_function_replace_fail=: 15336 15337 15338 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15339func_arith ()\ 15340{\ 15341 func_arith_result=$(( $* ))\ 15342} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15343 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15345test 0 -eq $? || _lt_function_replace_fail=: 15346 15347 15348 sed -e '/^func_len ()$/,/^} # func_len /c\ 15349func_len ()\ 15350{\ 15351 func_len_result=${#1}\ 15352} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15353 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15355test 0 -eq $? || _lt_function_replace_fail=: 15356 15357fi 15358 15359if test x"$lt_shell_append" = xyes; then 15360 sed -e '/^func_append ()$/,/^} # func_append /c\ 15361func_append ()\ 15362{\ 15363 eval "${1}+=\\${2}"\ 15364} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15365 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15367test 0 -eq $? || _lt_function_replace_fail=: 15368 15369 15370 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15371func_append_quoted ()\ 15372{\ 15373\ func_quote_for_eval "${2}"\ 15374\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15375} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15376 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15378test 0 -eq $? || _lt_function_replace_fail=: 15379 15380 15381 # Save a `func_append' function call where possible by direct use of '+=' 15382 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15383 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15384 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15385 test 0 -eq $? || _lt_function_replace_fail=: 15386else 15387 # Save a `func_append' function call even when '+=' is not available 15388 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15389 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15391 test 0 -eq $? || _lt_function_replace_fail=: 15392fi 15393 15394if test x"$_lt_function_replace_fail" = x":"; then 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15396$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15397fi 15398 15399 15400 mv -f "$cfgfile" "$ofile" || 15401 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15402 chmod +x "$ofile" 15403 15404 ;; 15405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15406 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15407 # are listed without --file. Let's play safe and only enable the eval 15408 # if we detect the quoting. 15409 case $CONFIG_FILES in 15410 *\'*) eval set x "$CONFIG_FILES" ;; 15411 *) set x $CONFIG_FILES ;; 15412 esac 15413 shift 15414 for mf 15415 do 15416 # Strip MF so we end up with the name of the file. 15417 mf=`echo "$mf" | sed -e 's/:.*$//'` 15418 # Check whether this is an Automake generated Makefile or not. 15419 # We used to match only the files named `Makefile.in', but 15420 # some people rename them; so instead we look at the file content. 15421 # Grep'ing the first line is not enough: some people post-process 15422 # each Makefile.in and add a new line on top of each file to say so. 15423 # Grep'ing the whole file is not good either: AIX grep has a line 15424 # limit of 2048, but all sed's we know have understand at least 4000. 15425 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15426 dirpart=`$as_dirname -- "$mf" || 15427$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15428 X"$mf" : 'X\(//\)[^/]' \| \ 15429 X"$mf" : 'X\(//\)$' \| \ 15430 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15431$as_echo X"$mf" | 15432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15433 s//\1/ 15434 q 15435 } 15436 /^X\(\/\/\)[^/].*/{ 15437 s//\1/ 15438 q 15439 } 15440 /^X\(\/\/\)$/{ 15441 s//\1/ 15442 q 15443 } 15444 /^X\(\/\).*/{ 15445 s//\1/ 15446 q 15447 } 15448 s/.*/./; q'` 15449 else 15450 continue 15451 fi 15452 # Extract the definition of DEPDIR, am__include, and am__quote 15453 # from the Makefile without running `make'. 15454 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15455 test -z "$DEPDIR" && continue 15456 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15457 test -z "am__include" && continue 15458 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15459 # When using ansi2knr, U may be empty or an underscore; expand it 15460 U=`sed -n 's/^U = //p' < "$mf"` 15461 # Find all dependency output files, they are included files with 15462 # $(DEPDIR) in their names. We invoke sed twice because it is the 15463 # simplest approach to changing $(DEPDIR) to its actual value in the 15464 # expansion. 15465 for file in `sed -n " 15466 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15467 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15468 # Make sure the directory exists. 15469 test -f "$dirpart/$file" && continue 15470 fdir=`$as_dirname -- "$file" || 15471$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15472 X"$file" : 'X\(//\)[^/]' \| \ 15473 X"$file" : 'X\(//\)$' \| \ 15474 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15475$as_echo X"$file" | 15476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15477 s//\1/ 15478 q 15479 } 15480 /^X\(\/\/\)[^/].*/{ 15481 s//\1/ 15482 q 15483 } 15484 /^X\(\/\/\)$/{ 15485 s//\1/ 15486 q 15487 } 15488 /^X\(\/\).*/{ 15489 s//\1/ 15490 q 15491 } 15492 s/.*/./; q'` 15493 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15494 # echo "creating $dirpart/$file" 15495 echo '# dummy' > "$dirpart/$file" 15496 done 15497 done 15498} 15499 ;; 15500 15501 esac 15502done # for ac_tag 15503 15504 15505as_fn_exit 0 15506_ACEOF 15507ac_clean_files=$ac_clean_files_save 15508 15509test $ac_write_fail = 0 || 15510 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15511 15512 15513# configure is writing to config.log, and then calls config.status. 15514# config.status does its own redirection, appending to config.log. 15515# Unfortunately, on DOS this fails, as config.log is still kept open 15516# by configure, so config.status won't be able to write to it; its 15517# output is simply discarded. So we exec the FD to /dev/null, 15518# effectively closing config.log, so it can be properly (re)opened and 15519# appended to by config.status. When coming back to configure, we 15520# need to make the FD available again. 15521if test "$no_create" != yes; then 15522 ac_cs_success=: 15523 ac_config_status_args= 15524 test "$silent" = yes && 15525 ac_config_status_args="$ac_config_status_args --quiet" 15526 exec 5>/dev/null 15527 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15528 exec 5>>config.log 15529 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15530 # would make configure fail if this is the last instruction. 15531 $ac_cs_success || as_fn_exit 1 15532fi 15533if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15535$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15536fi 15537 15538 15539echo 15540echo "Options summary:" 15541echo "* --enable-mmx: $enable_mmx" 15542