1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for love 11.3. 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='love' 589PACKAGE_TARNAME='love' 590PACKAGE_VERSION='11.3' 591PACKAGE_STRING='love 11.3' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/love.cpp" 596ac_default_prefix=/usr 597# Factoring default headers for most tests. 598ac_includes_default="\ 599#include <stdio.h> 600#ifdef HAVE_SYS_TYPES_H 601# include <sys/types.h> 602#endif 603#ifdef HAVE_SYS_STAT_H 604# include <sys/stat.h> 605#endif 606#ifdef STDC_HEADERS 607# include <stdlib.h> 608# include <stddef.h> 609#else 610# ifdef HAVE_STDLIB_H 611# include <stdlib.h> 612# endif 613#endif 614#ifdef HAVE_STRING_H 615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616# include <memory.h> 617# endif 618# include <string.h> 619#endif 620#ifdef HAVE_STRINGS_H 621# include <strings.h> 622#endif 623#ifdef HAVE_INTTYPES_H 624# include <inttypes.h> 625#endif 626#ifdef HAVE_STDINT_H 627# include <stdint.h> 628#endif 629#ifdef HAVE_UNISTD_H 630# include <unistd.h> 631#endif" 632 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637LOVE_INCLUDES 638LUA_EXECUTABLE 639LOVE_TARGET_OSX_FALSE 640LOVE_TARGET_OSX_TRUE 641LOVE_NOMPG123_FALSE 642LOVE_NOMPG123_TRUE 643LOVE_BUILD_EXE_FALSE 644LOVE_BUILD_EXE_TRUE 645LOVE_SUFFIX 646LOVE_LIBRARY_XXHASH_FALSE 647LOVE_LIBRARY_XXHASH_TRUE 648LOVE_LIBRARY_WUFF_FALSE 649LOVE_LIBRARY_WUFF_TRUE 650LOVE_LIBRARY_UTF8_FALSE 651LOVE_LIBRARY_UTF8_TRUE 652LOVE_LIBRARY_TINYEXR_FALSE 653LOVE_LIBRARY_TINYEXR_TRUE 654LOVE_LIBRARY_STB_FALSE 655LOVE_LIBRARY_STB_TRUE 656LOVE_LIBRARY_PHYSFS_FALSE 657LOVE_LIBRARY_PHYSFS_TRUE 658LOVE_LIBRARY_NOISE1234_FALSE 659LOVE_LIBRARY_NOISE1234_TRUE 660LOVE_LIBRARY_LZ4_FALSE 661LOVE_LIBRARY_LZ4_TRUE 662LOVE_LIBRARY_LUASOCKET_FALSE 663LOVE_LIBRARY_LUASOCKET_TRUE 664LOVE_LIBRARY_LUA53_FALSE 665LOVE_LIBRARY_LUA53_TRUE 666LOVE_LIBRARY_LODEPNG_FALSE 667LOVE_LIBRARY_LODEPNG_TRUE 668LOVE_LIBRARY_GLSLANG_FALSE 669LOVE_LIBRARY_GLSLANG_TRUE 670LOVE_LIBRARY_GLAD_FALSE 671LOVE_LIBRARY_GLAD_TRUE 672LOVE_LIBRARY_ENET_FALSE 673LOVE_LIBRARY_ENET_TRUE 674LOVE_LIBRARY_DR_FLAC_FALSE 675LOVE_LIBRARY_DR_FLAC_TRUE 676LOVE_LIBRARY_DDSPARSE_FALSE 677LOVE_LIBRARY_DDSPARSE_TRUE 678LOVE_LIBRARY_BOX2D_FALSE 679LOVE_LIBRARY_BOX2D_TRUE 680LOVE_MODULE_WINDOW_FALSE 681LOVE_MODULE_WINDOW_TRUE 682LOVE_MODULE_VIDEO_FALSE 683LOVE_MODULE_VIDEO_TRUE 684LOVE_MODULE_TOUCH_FALSE 685LOVE_MODULE_TOUCH_TRUE 686LOVE_MODULE_TIMER_FALSE 687LOVE_MODULE_TIMER_TRUE 688LOVE_MODULE_THREAD_FALSE 689LOVE_MODULE_THREAD_TRUE 690LOVE_MODULE_SYSTEM_FALSE 691LOVE_MODULE_SYSTEM_TRUE 692LOVE_MODULE_SOUND_FALSE 693LOVE_MODULE_SOUND_TRUE 694LOVE_MODULE_PHYSICS_FALSE 695LOVE_MODULE_PHYSICS_TRUE 696LOVE_MODULE_MOUSE_FALSE 697LOVE_MODULE_MOUSE_TRUE 698LOVE_MODULE_MATH_FALSE 699LOVE_MODULE_MATH_TRUE 700LOVE_MODULE_LOVE_FALSE 701LOVE_MODULE_LOVE_TRUE 702LOVE_MODULE_KEYBOARD_FALSE 703LOVE_MODULE_KEYBOARD_TRUE 704LOVE_MODULE_JOYSTICK_FALSE 705LOVE_MODULE_JOYSTICK_TRUE 706LOVE_MODULE_IMAGE_FALSE 707LOVE_MODULE_IMAGE_TRUE 708LOVE_MODULE_GRAPHICS_FALSE 709LOVE_MODULE_GRAPHICS_TRUE 710LOVE_MODULE_FONT_FALSE 711LOVE_MODULE_FONT_TRUE 712LOVE_MODULE_FILESYSTEM_FALSE 713LOVE_MODULE_FILESYSTEM_TRUE 714LOVE_MODULE_EVENT_FALSE 715LOVE_MODULE_EVENT_TRUE 716LOVE_MODULE_DATA_FALSE 717LOVE_MODULE_DATA_TRUE 718LOVE_MODULE_AUDIO_FALSE 719LOVE_MODULE_AUDIO_TRUE 720FILE_OFFSET 721theora_LIBS 722theora_CFLAGS 723vorbisfile_LIBS 724vorbisfile_CFLAGS 725libmodplug_LIBS 726libmodplug_CFLAGS 727freetype2_LIBS 728freetype2_CFLAGS 729openal_LIBS 730openal_CFLAGS 731zlib_LIBS 732zlib_CFLAGS 733SDL2_CONFIG 734SDL_LIBS 735SDL_CFLAGS 736SDL2_FRAMEWORK 737lua_LIBS 738lua_CFLAGS 739PKG_CONFIG_LIBDIR 740PKG_CONFIG_PATH 741PKG_CONFIG 742am__fastdepOBJCXX_FALSE 743am__fastdepOBJCXX_TRUE 744OBJCXXDEPMODE 745ac_ct_OBJCXX 746OBJCXXFLAGS 747OBJCXX 748CXXCPP 749am__fastdepCXX_FALSE 750am__fastdepCXX_TRUE 751CXXDEPMODE 752ac_ct_CXX 753CXXFLAGS 754CXX 755CPP 756LT_SYS_LIBRARY_PATH 757OTOOL64 758OTOOL 759LIPO 760NMEDIT 761DSYMUTIL 762MANIFEST_TOOL 763RANLIB 764DLLTOOL 765OBJDUMP 766LN_S 767NM 768ac_ct_DUMPBIN 769DUMPBIN 770LD 771FGREP 772EGREP 773GREP 774SED 775host_os 776host_vendor 777host_cpu 778host 779build_os 780build_vendor 781build_cpu 782build 783LIBTOOL 784am__fastdepCC_FALSE 785am__fastdepCC_TRUE 786CCDEPMODE 787am__nodep 788AMDEPBACKSLASH 789AMDEP_FALSE 790AMDEP_TRUE 791am__include 792DEPDIR 793OBJEXT 794EXEEXT 795ac_ct_CC 796CPPFLAGS 797LDFLAGS 798CFLAGS 799CC 800ac_ct_AR 801AR 802AM_BACKSLASH 803AM_DEFAULT_VERBOSITY 804AM_DEFAULT_V 805AM_V 806am__untar 807am__tar 808AMTAR 809am__leading_dot 810SET_MAKE 811AWK 812mkdir_p 813MKDIR_P 814INSTALL_STRIP_PROGRAM 815STRIP 816install_sh 817MAKEINFO 818AUTOHEADER 819AUTOMAKE 820AUTOCONF 821ACLOCAL 822VERSION 823PACKAGE 824CYGPATH_W 825am__isrc 826INSTALL_DATA 827INSTALL_SCRIPT 828INSTALL_PROGRAM 829target_alias 830host_alias 831build_alias 832LIBS 833ECHO_T 834ECHO_N 835ECHO_C 836DEFS 837mandir 838localedir 839libdir 840psdir 841pdfdir 842dvidir 843htmldir 844infodir 845docdir 846oldincludedir 847includedir 848localstatedir 849sharedstatedir 850sysconfdir 851datadir 852datarootdir 853libexecdir 854sbindir 855bindir 856program_transform_name 857prefix 858exec_prefix 859PACKAGE_URL 860PACKAGE_BUGREPORT 861PACKAGE_STRING 862PACKAGE_VERSION 863PACKAGE_TARNAME 864PACKAGE_NAME 865PATH_SEPARATOR 866SHELL 867am__quote' 868ac_subst_files='' 869ac_user_opts=' 870enable_option_checking 871enable_silent_rules 872enable_dependency_tracking 873enable_static 874enable_shared 875with_pic 876enable_fast_install 877with_aix_soname 878with_gnu_ld 879with_sysroot 880enable_libtool_lock 881enable_osx 882enable_stbi_sse2_override 883with_lua 884with_luaversion 885enable_module_audio 886enable_module_data 887enable_module_event 888enable_module_filesystem 889enable_module_font 890enable_module_graphics 891enable_module_image 892enable_module_joystick 893enable_module_keyboard 894enable_module_love 895enable_module_math 896enable_module_mouse 897enable_module_physics 898enable_module_sound 899enable_module_system 900enable_module_thread 901enable_module_timer 902enable_module_touch 903enable_module_video 904enable_module_window 905enable_mpg123 906enable_gme 907with_sdl_prefix 908with_sdl_exec_prefix 909enable_sdltest 910enable_sdlframework 911enable_library_enet 912enable_library_luasocket 913enable_library_lua53 914enable_exe 915' 916 ac_precious_vars='build_alias 917host_alias 918target_alias 919CC 920CFLAGS 921LDFLAGS 922LIBS 923CPPFLAGS 924LT_SYS_LIBRARY_PATH 925CPP 926CXX 927CXXFLAGS 928CCC 929CXXCPP 930OBJCXX 931OBJCXXFLAGS 932PKG_CONFIG 933PKG_CONFIG_PATH 934PKG_CONFIG_LIBDIR 935lua_CFLAGS 936lua_LIBS 937SDL2_FRAMEWORK 938SDL_CFLAGS 939SDL_LIBS 940zlib_CFLAGS 941zlib_LIBS 942openal_CFLAGS 943openal_LIBS 944freetype2_CFLAGS 945freetype2_LIBS 946libmodplug_CFLAGS 947libmodplug_LIBS 948vorbisfile_CFLAGS 949vorbisfile_LIBS 950theora_CFLAGS 951theora_LIBS' 952 953 954# Initialize some variables set by options. 955ac_init_help= 956ac_init_version=false 957ac_unrecognized_opts= 958ac_unrecognized_sep= 959# The variables have the same names as the options, with 960# dashes changed to underlines. 961cache_file=/dev/null 962exec_prefix=NONE 963no_create= 964no_recursion= 965prefix=NONE 966program_prefix=NONE 967program_suffix=NONE 968program_transform_name=s,x,x, 969silent= 970site= 971srcdir= 972verbose= 973x_includes=NONE 974x_libraries=NONE 975 976# Installation directory options. 977# These are left unexpanded so users can "make install exec_prefix=/foo" 978# and all the variables that are supposed to be based on exec_prefix 979# by default will actually change. 980# Use braces instead of parens because sh, perl, etc. also accept them. 981# (The list follows the same order as the GNU Coding Standards.) 982bindir='${exec_prefix}/bin' 983sbindir='${exec_prefix}/sbin' 984libexecdir='${exec_prefix}/libexec' 985datarootdir='${prefix}/share' 986datadir='${datarootdir}' 987sysconfdir='${prefix}/etc' 988sharedstatedir='${prefix}/com' 989localstatedir='${prefix}/var' 990includedir='${prefix}/include' 991oldincludedir='/usr/include' 992docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 993infodir='${datarootdir}/info' 994htmldir='${docdir}' 995dvidir='${docdir}' 996pdfdir='${docdir}' 997psdir='${docdir}' 998libdir='${exec_prefix}/lib' 999localedir='${datarootdir}/locale' 1000mandir='${datarootdir}/man' 1001 1002ac_prev= 1003ac_dashdash= 1004for ac_option 1005do 1006 # If the previous option needs an argument, assign it. 1007 if test -n "$ac_prev"; then 1008 eval $ac_prev=\$ac_option 1009 ac_prev= 1010 continue 1011 fi 1012 1013 case $ac_option in 1014 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1015 *=) ac_optarg= ;; 1016 *) ac_optarg=yes ;; 1017 esac 1018 1019 # Accept the important Cygnus configure options, so we can diagnose typos. 1020 1021 case $ac_dashdash$ac_option in 1022 --) 1023 ac_dashdash=yes ;; 1024 1025 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1026 ac_prev=bindir ;; 1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1028 bindir=$ac_optarg ;; 1029 1030 -build | --build | --buil | --bui | --bu) 1031 ac_prev=build_alias ;; 1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1033 build_alias=$ac_optarg ;; 1034 1035 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1037 ac_prev=cache_file ;; 1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1040 cache_file=$ac_optarg ;; 1041 1042 --config-cache | -C) 1043 cache_file=config.cache ;; 1044 1045 -datadir | --datadir | --datadi | --datad) 1046 ac_prev=datadir ;; 1047 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1048 datadir=$ac_optarg ;; 1049 1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1051 | --dataroo | --dataro | --datar) 1052 ac_prev=datarootdir ;; 1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1055 datarootdir=$ac_optarg ;; 1056 1057 -disable-* | --disable-*) 1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1059 # Reject names that are not valid shell variable names. 1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1061 as_fn_error $? "invalid feature name: $ac_useropt" 1062 ac_useropt_orig=$ac_useropt 1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1064 case $ac_user_opts in 1065 *" 1066"enable_$ac_useropt" 1067"*) ;; 1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1069 ac_unrecognized_sep=', ';; 1070 esac 1071 eval enable_$ac_useropt=no ;; 1072 1073 -docdir | --docdir | --docdi | --doc | --do) 1074 ac_prev=docdir ;; 1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1076 docdir=$ac_optarg ;; 1077 1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1079 ac_prev=dvidir ;; 1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1081 dvidir=$ac_optarg ;; 1082 1083 -enable-* | --enable-*) 1084 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1085 # Reject names that are not valid shell variable names. 1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1087 as_fn_error $? "invalid feature name: $ac_useropt" 1088 ac_useropt_orig=$ac_useropt 1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1090 case $ac_user_opts in 1091 *" 1092"enable_$ac_useropt" 1093"*) ;; 1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1095 ac_unrecognized_sep=', ';; 1096 esac 1097 eval enable_$ac_useropt=\$ac_optarg ;; 1098 1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1101 | --exec | --exe | --ex) 1102 ac_prev=exec_prefix ;; 1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1105 | --exec=* | --exe=* | --ex=*) 1106 exec_prefix=$ac_optarg ;; 1107 1108 -gas | --gas | --ga | --g) 1109 # Obsolete; use --with-gas. 1110 with_gas=yes ;; 1111 1112 -help | --help | --hel | --he | -h) 1113 ac_init_help=long ;; 1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1115 ac_init_help=recursive ;; 1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1117 ac_init_help=short ;; 1118 1119 -host | --host | --hos | --ho) 1120 ac_prev=host_alias ;; 1121 -host=* | --host=* | --hos=* | --ho=*) 1122 host_alias=$ac_optarg ;; 1123 1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1125 ac_prev=htmldir ;; 1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1127 | --ht=*) 1128 htmldir=$ac_optarg ;; 1129 1130 -includedir | --includedir | --includedi | --included | --include \ 1131 | --includ | --inclu | --incl | --inc) 1132 ac_prev=includedir ;; 1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1134 | --includ=* | --inclu=* | --incl=* | --inc=*) 1135 includedir=$ac_optarg ;; 1136 1137 -infodir | --infodir | --infodi | --infod | --info | --inf) 1138 ac_prev=infodir ;; 1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1140 infodir=$ac_optarg ;; 1141 1142 -libdir | --libdir | --libdi | --libd) 1143 ac_prev=libdir ;; 1144 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1145 libdir=$ac_optarg ;; 1146 1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1148 | --libexe | --libex | --libe) 1149 ac_prev=libexecdir ;; 1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1151 | --libexe=* | --libex=* | --libe=*) 1152 libexecdir=$ac_optarg ;; 1153 1154 -localedir | --localedir | --localedi | --localed | --locale) 1155 ac_prev=localedir ;; 1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1157 localedir=$ac_optarg ;; 1158 1159 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1160 | --localstate | --localstat | --localsta | --localst | --locals) 1161 ac_prev=localstatedir ;; 1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1164 localstatedir=$ac_optarg ;; 1165 1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1167 ac_prev=mandir ;; 1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1169 mandir=$ac_optarg ;; 1170 1171 -nfp | --nfp | --nf) 1172 # Obsolete; use --without-fp. 1173 with_fp=no ;; 1174 1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1176 | --no-cr | --no-c | -n) 1177 no_create=yes ;; 1178 1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1181 no_recursion=yes ;; 1182 1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1185 | --oldin | --oldi | --old | --ol | --o) 1186 ac_prev=oldincludedir ;; 1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1190 oldincludedir=$ac_optarg ;; 1191 1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1193 ac_prev=prefix ;; 1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1195 prefix=$ac_optarg ;; 1196 1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1198 | --program-pre | --program-pr | --program-p) 1199 ac_prev=program_prefix ;; 1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1202 program_prefix=$ac_optarg ;; 1203 1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1205 | --program-suf | --program-su | --program-s) 1206 ac_prev=program_suffix ;; 1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1209 program_suffix=$ac_optarg ;; 1210 1211 -program-transform-name | --program-transform-name \ 1212 | --program-transform-nam | --program-transform-na \ 1213 | --program-transform-n | --program-transform- \ 1214 | --program-transform | --program-transfor \ 1215 | --program-transfo | --program-transf \ 1216 | --program-trans | --program-tran \ 1217 | --progr-tra | --program-tr | --program-t) 1218 ac_prev=program_transform_name ;; 1219 -program-transform-name=* | --program-transform-name=* \ 1220 | --program-transform-nam=* | --program-transform-na=* \ 1221 | --program-transform-n=* | --program-transform-=* \ 1222 | --program-transform=* | --program-transfor=* \ 1223 | --program-transfo=* | --program-transf=* \ 1224 | --program-trans=* | --program-tran=* \ 1225 | --progr-tra=* | --program-tr=* | --program-t=*) 1226 program_transform_name=$ac_optarg ;; 1227 1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1229 ac_prev=pdfdir ;; 1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1231 pdfdir=$ac_optarg ;; 1232 1233 -psdir | --psdir | --psdi | --psd | --ps) 1234 ac_prev=psdir ;; 1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1236 psdir=$ac_optarg ;; 1237 1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1239 | -silent | --silent | --silen | --sile | --sil) 1240 silent=yes ;; 1241 1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1243 ac_prev=sbindir ;; 1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1245 | --sbi=* | --sb=*) 1246 sbindir=$ac_optarg ;; 1247 1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1250 | --sharedst | --shareds | --shared | --share | --shar \ 1251 | --sha | --sh) 1252 ac_prev=sharedstatedir ;; 1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1256 | --sha=* | --sh=*) 1257 sharedstatedir=$ac_optarg ;; 1258 1259 -site | --site | --sit) 1260 ac_prev=site ;; 1261 -site=* | --site=* | --sit=*) 1262 site=$ac_optarg ;; 1263 1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1265 ac_prev=srcdir ;; 1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1267 srcdir=$ac_optarg ;; 1268 1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1270 | --syscon | --sysco | --sysc | --sys | --sy) 1271 ac_prev=sysconfdir ;; 1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1274 sysconfdir=$ac_optarg ;; 1275 1276 -target | --target | --targe | --targ | --tar | --ta | --t) 1277 ac_prev=target_alias ;; 1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1279 target_alias=$ac_optarg ;; 1280 1281 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1282 verbose=yes ;; 1283 1284 -version | --version | --versio | --versi | --vers | -V) 1285 ac_init_version=: ;; 1286 1287 -with-* | --with-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 as_fn_error $? "invalid package name: $ac_useropt" 1292 ac_useropt_orig=$ac_useropt 1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1294 case $ac_user_opts in 1295 *" 1296"with_$ac_useropt" 1297"*) ;; 1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1299 ac_unrecognized_sep=', ';; 1300 esac 1301 eval with_$ac_useropt=\$ac_optarg ;; 1302 1303 -without-* | --without-*) 1304 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1305 # Reject names that are not valid shell variable names. 1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1307 as_fn_error $? "invalid package name: $ac_useropt" 1308 ac_useropt_orig=$ac_useropt 1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1310 case $ac_user_opts in 1311 *" 1312"with_$ac_useropt" 1313"*) ;; 1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1315 ac_unrecognized_sep=', ';; 1316 esac 1317 eval with_$ac_useropt=no ;; 1318 1319 --x) 1320 # Obsolete; use --with-x. 1321 with_x=yes ;; 1322 1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1324 | --x-incl | --x-inc | --x-in | --x-i) 1325 ac_prev=x_includes ;; 1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1328 x_includes=$ac_optarg ;; 1329 1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1332 ac_prev=x_libraries ;; 1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1335 x_libraries=$ac_optarg ;; 1336 1337 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1338Try \`$0 --help' for more information" 1339 ;; 1340 1341 *=*) 1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1343 # Reject names that are not valid shell variable names. 1344 case $ac_envvar in #( 1345 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1346 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1347 esac 1348 eval $ac_envvar=\$ac_optarg 1349 export $ac_envvar ;; 1350 1351 *) 1352 # FIXME: should be removed in autoconf 3.0. 1353 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1355 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1356 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1357 ;; 1358 1359 esac 1360done 1361 1362if test -n "$ac_prev"; then 1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1364 as_fn_error $? "missing argument to $ac_option" 1365fi 1366 1367if test -n "$ac_unrecognized_opts"; then 1368 case $enable_option_checking in 1369 no) ;; 1370 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1372 esac 1373fi 1374 1375# Check all directory arguments for consistency. 1376for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1377 datadir sysconfdir sharedstatedir localstatedir includedir \ 1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1379 libdir localedir mandir 1380do 1381 eval ac_val=\$$ac_var 1382 # Remove trailing slashes. 1383 case $ac_val in 1384 */ ) 1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1386 eval $ac_var=\$ac_val;; 1387 esac 1388 # Be sure to have absolute directory names. 1389 case $ac_val in 1390 [\\/$]* | ?:[\\/]* ) continue;; 1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1392 esac 1393 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1394done 1395 1396# There might be people who depend on the old broken behavior: `$host' 1397# used to hold the argument of --host etc. 1398# FIXME: To remove some day. 1399build=$build_alias 1400host=$host_alias 1401target=$target_alias 1402 1403# FIXME: To remove some day. 1404if test "x$host_alias" != x; then 1405 if test "x$build_alias" = x; then 1406 cross_compiling=maybe 1407 elif test "x$build_alias" != "x$host_alias"; then 1408 cross_compiling=yes 1409 fi 1410fi 1411 1412ac_tool_prefix= 1413test -n "$host_alias" && ac_tool_prefix=$host_alias- 1414 1415test "$silent" = yes && exec 6>/dev/null 1416 1417 1418ac_pwd=`pwd` && test -n "$ac_pwd" && 1419ac_ls_di=`ls -di .` && 1420ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1421 as_fn_error $? "working directory cannot be determined" 1422test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1423 as_fn_error $? "pwd does not report name of working directory" 1424 1425 1426# Find the source files, if location was not specified. 1427if test -z "$srcdir"; then 1428 ac_srcdir_defaulted=yes 1429 # Try the directory containing this script, then the parent directory. 1430 ac_confdir=`$as_dirname -- "$as_myself" || 1431$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1432 X"$as_myself" : 'X\(//\)[^/]' \| \ 1433 X"$as_myself" : 'X\(//\)$' \| \ 1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1435$as_echo X"$as_myself" | 1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\/\)[^/].*/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\/\)$/{ 1445 s//\1/ 1446 q 1447 } 1448 /^X\(\/\).*/{ 1449 s//\1/ 1450 q 1451 } 1452 s/.*/./; q'` 1453 srcdir=$ac_confdir 1454 if test ! -r "$srcdir/$ac_unique_file"; then 1455 srcdir=.. 1456 fi 1457else 1458 ac_srcdir_defaulted=no 1459fi 1460if test ! -r "$srcdir/$ac_unique_file"; then 1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1462 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1463fi 1464ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1465ac_abs_confdir=`( 1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1467 pwd)` 1468# When building in place, set srcdir=. 1469if test "$ac_abs_confdir" = "$ac_pwd"; then 1470 srcdir=. 1471fi 1472# Remove unnecessary trailing slashes from srcdir. 1473# Double slashes in file names in object file debugging info 1474# mess up M-x gdb in Emacs. 1475case $srcdir in 1476*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1477esac 1478for ac_var in $ac_precious_vars; do 1479 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1480 eval ac_env_${ac_var}_value=\$${ac_var} 1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1482 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1483done 1484 1485# 1486# Report the --help message. 1487# 1488if test "$ac_init_help" = "long"; then 1489 # Omit some internal or obsolete options to make the list less imposing. 1490 # This message is too long to be a string in the A/UX 3.1 sh. 1491 cat <<_ACEOF 1492\`configure' configures love 11.3 to adapt to many kinds of systems. 1493 1494Usage: $0 [OPTION]... [VAR=VALUE]... 1495 1496To assign environment variables (e.g., CC, CFLAGS...), specify them as 1497VAR=VALUE. See below for descriptions of some of the useful variables. 1498 1499Defaults for the options are specified in brackets. 1500 1501Configuration: 1502 -h, --help display this help and exit 1503 --help=short display options specific to this package 1504 --help=recursive display the short help of all the included packages 1505 -V, --version display version information and exit 1506 -q, --quiet, --silent do not print \`checking ...' messages 1507 --cache-file=FILE cache test results in FILE [disabled] 1508 -C, --config-cache alias for \`--cache-file=config.cache' 1509 -n, --no-create do not create output files 1510 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1511 1512Installation directories: 1513 --prefix=PREFIX install architecture-independent files in PREFIX 1514 [$ac_default_prefix] 1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1516 [PREFIX] 1517 1518By default, \`make install' will install all the files in 1519\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1520an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1521for instance \`--prefix=\$HOME'. 1522 1523For better control, use the options below. 1524 1525Fine tuning of the installation directories: 1526 --bindir=DIR user executables [EPREFIX/bin] 1527 --sbindir=DIR system admin executables [EPREFIX/sbin] 1528 --libexecdir=DIR program executables [EPREFIX/libexec] 1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1532 --libdir=DIR object code libraries [EPREFIX/lib] 1533 --includedir=DIR C header files [PREFIX/include] 1534 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1537 --infodir=DIR info documentation [DATAROOTDIR/info] 1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1539 --mandir=DIR man documentation [DATAROOTDIR/man] 1540 --docdir=DIR documentation root [DATAROOTDIR/doc/love] 1541 --htmldir=DIR html documentation [DOCDIR] 1542 --dvidir=DIR dvi documentation [DOCDIR] 1543 --pdfdir=DIR pdf documentation [DOCDIR] 1544 --psdir=DIR ps documentation [DOCDIR] 1545_ACEOF 1546 1547 cat <<\_ACEOF 1548 1549Program names: 1550 --program-prefix=PREFIX prepend PREFIX to installed program names 1551 --program-suffix=SUFFIX append SUFFIX to installed program names 1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1553 1554System types: 1555 --build=BUILD configure for building on BUILD [guessed] 1556 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1557_ACEOF 1558fi 1559 1560if test -n "$ac_init_help"; then 1561 case $ac_init_help in 1562 short | recursive ) echo "Configuration of love 11.3:";; 1563 esac 1564 cat <<\_ACEOF 1565 1566Optional Features: 1567 --disable-option-checking ignore unrecognized --enable/--with options 1568 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1569 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1570 --enable-silent-rules less verbose build output (undo: "make V=1") 1571 --disable-silent-rules verbose build output (undo: "make V=0") 1572 --enable-dependency-tracking 1573 do not reject slow dependency extractors 1574 --disable-dependency-tracking 1575 speeds up one-time build 1576 --enable-static[=PKGS] build static libraries [default=no] 1577 --enable-shared[=PKGS] build shared libraries [default=yes] 1578 --enable-fast-install[=PKGS] 1579 optimize for fast installation [default=yes] 1580 --disable-libtool-lock avoid locking (might break parallel builds) 1581 --enable-osx Compile platform-specific files for OSX 1582 --enable-stbi-sse2-override 1583 Force stb_image SSE2 support 1584 --disable-module-audio Turn off module love.audio 1585 --disable-module-data Turn off module love.data 1586 --disable-module-event Turn off module love.event 1587 --disable-module-filesystem Turn off module love.filesystem 1588 --disable-module-font Turn off module love.font 1589 --disable-module-graphics Turn off module love.graphics 1590 --disable-module-image Turn off module love.image 1591 --disable-module-joystick Turn off module love.joystick 1592 --disable-module-keyboard Turn off module love.keyboard 1593 --disable-module-love Turn off module love.love 1594 --disable-module-math Turn off module love.math 1595 --disable-module-mouse Turn off module love.mouse 1596 --disable-module-physics Turn off module love.physics 1597 --disable-module-sound Turn off module love.sound 1598 --disable-module-system Turn off module love.system 1599 --disable-module-thread Turn off module love.thread 1600 --disable-module-timer Turn off module love.timer 1601 --disable-module-touch Turn off module love.touch 1602 --disable-module-video Turn off module love.video 1603 --disable-module-window Turn off module love.window 1604 --disable-mpg123 Disable mp3 support, for patent-free builds 1605 --enable-gme Enable GME support, for more chiptuney goodness 1606 --disable-sdltest Do not try to compile and run a test SDL program 1607 --disable-sdlframework Do not search for SDL2.framework 1608 --disable-library-enet Turn off library enet 1609 --disable-library-luasocket Turn off library luasocket 1610 --disable-library-lua53 Turn off library lua53 (lua 5.3 backports, required by love.data) 1611 --disable-exe Disable building of executable launcher 1612 1613Optional Packages: 1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1616 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1617 both] 1618 --with-aix-soname=aix|svr4|both 1619 shared library versioning (aka "SONAME") variant to 1620 provide on AIX, [default=aix]. 1621 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1622 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1623 compiler's sysroot if not specified). 1624 --with-lua Select the lua implementation 1625 --with-luaversion Select the lua version 1626 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1627 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1628 1629Some influential environment variables: 1630 CC C compiler command 1631 CFLAGS C compiler flags 1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1633 nonstandard directory <lib dir> 1634 LIBS libraries to pass to the linker, e.g. -l<library> 1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1636 you have headers in a nonstandard directory <include dir> 1637 LT_SYS_LIBRARY_PATH 1638 User-defined run-time library search path. 1639 CPP C preprocessor 1640 CXX C++ compiler command 1641 CXXFLAGS C++ compiler flags 1642 CXXCPP C++ preprocessor 1643 OBJCXX Objective C++ compiler command 1644 OBJCXXFLAGS Objective C++ compiler flags 1645 PKG_CONFIG path to pkg-config utility 1646 PKG_CONFIG_PATH 1647 directories to add to pkg-config's search path 1648 PKG_CONFIG_LIBDIR 1649 path overriding pkg-config's built-in search path 1650 lua_CFLAGS C compiler flags for lua, overriding pkg-config 1651 lua_LIBS linker flags for lua, overriding pkg-config 1652 SDL2_FRAMEWORK 1653 Path to SDL2.framework 1654 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config 1655 SDL_LIBS linker flags for SDL, overriding pkg-config 1656 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config 1657 zlib_LIBS linker flags for zlib, overriding pkg-config 1658 openal_CFLAGS 1659 C compiler flags for openal, overriding pkg-config 1660 openal_LIBS linker flags for openal, overriding pkg-config 1661 freetype2_CFLAGS 1662 C compiler flags for freetype2, overriding pkg-config 1663 freetype2_LIBS 1664 linker flags for freetype2, overriding pkg-config 1665 libmodplug_CFLAGS 1666 C compiler flags for libmodplug, overriding pkg-config 1667 libmodplug_LIBS 1668 linker flags for libmodplug, overriding pkg-config 1669 vorbisfile_CFLAGS 1670 C compiler flags for vorbisfile, overriding pkg-config 1671 vorbisfile_LIBS 1672 linker flags for vorbisfile, overriding pkg-config 1673 theora_CFLAGS 1674 C compiler flags for theora, overriding pkg-config 1675 theora_LIBS linker flags for theora, overriding pkg-config 1676 1677Use these variables to override the choices made by `configure' or to help 1678it to find libraries and programs with nonstandard names/locations. 1679 1680Report bugs to the package provider. 1681_ACEOF 1682ac_status=$? 1683fi 1684 1685if test "$ac_init_help" = "recursive"; then 1686 # If there are subdirs, report their specific --help. 1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1688 test -d "$ac_dir" || 1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1690 continue 1691 ac_builddir=. 1692 1693case "$ac_dir" in 1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1695*) 1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1697 # A ".." for each directory in $ac_dir_suffix. 1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1699 case $ac_top_builddir_sub in 1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1702 esac ;; 1703esac 1704ac_abs_top_builddir=$ac_pwd 1705ac_abs_builddir=$ac_pwd$ac_dir_suffix 1706# for backward compatibility: 1707ac_top_builddir=$ac_top_build_prefix 1708 1709case $srcdir in 1710 .) # We are building in place. 1711 ac_srcdir=. 1712 ac_top_srcdir=$ac_top_builddir_sub 1713 ac_abs_top_srcdir=$ac_pwd ;; 1714 [\\/]* | ?:[\\/]* ) # Absolute name. 1715 ac_srcdir=$srcdir$ac_dir_suffix; 1716 ac_top_srcdir=$srcdir 1717 ac_abs_top_srcdir=$srcdir ;; 1718 *) # Relative name. 1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1720 ac_top_srcdir=$ac_top_build_prefix$srcdir 1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1722esac 1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1724 1725 cd "$ac_dir" || { ac_status=$?; continue; } 1726 # Check for guested configure. 1727 if test -f "$ac_srcdir/configure.gnu"; then 1728 echo && 1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1730 elif test -f "$ac_srcdir/configure"; then 1731 echo && 1732 $SHELL "$ac_srcdir/configure" --help=recursive 1733 else 1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1735 fi || ac_status=$? 1736 cd "$ac_pwd" || { ac_status=$?; break; } 1737 done 1738fi 1739 1740test -n "$ac_init_help" && exit $ac_status 1741if $ac_init_version; then 1742 cat <<\_ACEOF 1743love configure 11.3 1744generated by GNU Autoconf 2.69 1745 1746Copyright (C) 2012 Free Software Foundation, Inc. 1747This configure script is free software; the Free Software Foundation 1748gives unlimited permission to copy, distribute and modify it. 1749_ACEOF 1750 exit 1751fi 1752 1753## ------------------------ ## 1754## Autoconf initialization. ## 1755## ------------------------ ## 1756 1757# ac_fn_c_try_compile LINENO 1758# -------------------------- 1759# Try to compile conftest.$ac_ext, and return whether this succeeded. 1760ac_fn_c_try_compile () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 rm -f conftest.$ac_objext 1764 if { { ac_try="$ac_compile" 1765case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_compile") 2>conftest.err 1772 ac_status=$? 1773 if test -s conftest.err; then 1774 grep -v '^ *+' conftest.err >conftest.er1 1775 cat conftest.er1 >&5 1776 mv -f conftest.er1 conftest.err 1777 fi 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { 1780 test -z "$ac_c_werror_flag" || 1781 test ! -s conftest.err 1782 } && test -s conftest.$ac_objext; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: failed program was:" >&5 1786sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=1 1789fi 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 as_fn_set_status $ac_retval 1792 1793} # ac_fn_c_try_compile 1794 1795# ac_fn_c_try_link LINENO 1796# ----------------------- 1797# Try to link conftest.$ac_ext, and return whether this succeeded. 1798ac_fn_c_try_link () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 rm -f conftest.$ac_objext conftest$ac_exeext 1802 if { { ac_try="$ac_link" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_link") 2>conftest.err 1810 ac_status=$? 1811 if test -s conftest.err; then 1812 grep -v '^ *+' conftest.err >conftest.er1 1813 cat conftest.er1 >&5 1814 mv -f conftest.er1 conftest.err 1815 fi 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } && { 1818 test -z "$ac_c_werror_flag" || 1819 test ! -s conftest.err 1820 } && test -s conftest$ac_exeext && { 1821 test "$cross_compiling" = yes || 1822 test -x conftest$ac_exeext 1823 }; then : 1824 ac_retval=0 1825else 1826 $as_echo "$as_me: failed program was:" >&5 1827sed 's/^/| /' conftest.$ac_ext >&5 1828 1829 ac_retval=1 1830fi 1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1833 # interfere with the next link command; also delete a directory that is 1834 # left behind by Apple's compiler. We do this before executing the actions. 1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 as_fn_set_status $ac_retval 1838 1839} # ac_fn_c_try_link 1840 1841# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1842# ------------------------------------------------------- 1843# Tests whether HEADER exists and can be compiled using the include files in 1844# INCLUDES, setting the cache variable VAR accordingly. 1845ac_fn_c_check_header_compile () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1849$as_echo_n "checking for $2... " >&6; } 1850if eval \${$3+:} false; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855$4 1856#include <$2> 1857_ACEOF 1858if ac_fn_c_try_compile "$LINENO"; then : 1859 eval "$3=yes" 1860else 1861 eval "$3=no" 1862fi 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 1870} # ac_fn_c_check_header_compile 1871 1872# ac_fn_c_try_cpp LINENO 1873# ---------------------- 1874# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1875ac_fn_c_try_cpp () 1876{ 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 if { { ac_try="$ac_cpp conftest.$ac_ext" 1879case "(($ac_try" in 1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1881 *) ac_try_echo=$ac_try;; 1882esac 1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1884$as_echo "$ac_try_echo"; } >&5 1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1886 ac_status=$? 1887 if test -s conftest.err; then 1888 grep -v '^ *+' conftest.err >conftest.er1 1889 cat conftest.er1 >&5 1890 mv -f conftest.er1 conftest.err 1891 fi 1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1893 test $ac_status = 0; } > conftest.i && { 1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1895 test ! -s conftest.err 1896 }; then : 1897 ac_retval=0 1898else 1899 $as_echo "$as_me: failed program was:" >&5 1900sed 's/^/| /' conftest.$ac_ext >&5 1901 1902 ac_retval=1 1903fi 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 as_fn_set_status $ac_retval 1906 1907} # ac_fn_c_try_cpp 1908 1909# ac_fn_c_try_run LINENO 1910# ---------------------- 1911# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1912# that executables *can* be run. 1913ac_fn_c_try_run () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 if { { ac_try="$ac_link" 1917case "(($ac_try" in 1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1919 *) ac_try_echo=$ac_try;; 1920esac 1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1922$as_echo "$ac_try_echo"; } >&5 1923 (eval "$ac_link") 2>&5 1924 ac_status=$? 1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1926 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1927 { { case "(($ac_try" in 1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1929 *) ac_try_echo=$ac_try;; 1930esac 1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1932$as_echo "$ac_try_echo"; } >&5 1933 (eval "$ac_try") 2>&5 1934 ac_status=$? 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; }; }; then : 1937 ac_retval=0 1938else 1939 $as_echo "$as_me: program exited with status $ac_status" >&5 1940 $as_echo "$as_me: failed program was:" >&5 1941sed 's/^/| /' conftest.$ac_ext >&5 1942 1943 ac_retval=$ac_status 1944fi 1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1947 as_fn_set_status $ac_retval 1948 1949} # ac_fn_c_try_run 1950 1951# ac_fn_c_check_func LINENO FUNC VAR 1952# ---------------------------------- 1953# Tests whether FUNC exists, setting the cache variable VAR accordingly 1954ac_fn_c_check_func () 1955{ 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if eval \${$3+:} false; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1966#define $2 innocuous_$2 1967 1968/* System header to define __stub macros and hopefully few prototypes, 1969 which can conflict with char $2 (); below. 1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1971 <limits.h> exists even on freestanding compilers. */ 1972 1973#ifdef __STDC__ 1974# include <limits.h> 1975#else 1976# include <assert.h> 1977#endif 1978 1979#undef $2 1980 1981/* Override any GCC internal prototype to avoid an error. 1982 Use char because int might match the return type of a GCC 1983 builtin and then its argument prototype would still apply. */ 1984#ifdef __cplusplus 1985extern "C" 1986#endif 1987char $2 (); 1988/* The GNU C library defines this for functions which it implements 1989 to always fail with ENOSYS. Some functions are actually named 1990 something starting with __ and the normal name is an alias. */ 1991#if defined __stub_$2 || defined __stub___$2 1992choke me 1993#endif 1994 1995int 1996main () 1997{ 1998return $2 (); 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_link "$LINENO"; then : 2004 eval "$3=yes" 2005else 2006 eval "$3=no" 2007fi 2008rm -f core conftest.err conftest.$ac_objext \ 2009 conftest$ac_exeext conftest.$ac_ext 2010fi 2011eval ac_res=\$$3 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2013$as_echo "$ac_res" >&6; } 2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2015 2016} # ac_fn_c_check_func 2017 2018# ac_fn_cxx_try_compile LINENO 2019# ---------------------------- 2020# Try to compile conftest.$ac_ext, and return whether this succeeded. 2021ac_fn_cxx_try_compile () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 rm -f conftest.$ac_objext 2025 if { { ac_try="$ac_compile" 2026case "(($ac_try" in 2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2028 *) ac_try_echo=$ac_try;; 2029esac 2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2031$as_echo "$ac_try_echo"; } >&5 2032 (eval "$ac_compile") 2>conftest.err 2033 ac_status=$? 2034 if test -s conftest.err; then 2035 grep -v '^ *+' conftest.err >conftest.er1 2036 cat conftest.er1 >&5 2037 mv -f conftest.er1 conftest.err 2038 fi 2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2040 test $ac_status = 0; } && { 2041 test -z "$ac_cxx_werror_flag" || 2042 test ! -s conftest.err 2043 } && test -s conftest.$ac_objext; then : 2044 ac_retval=0 2045else 2046 $as_echo "$as_me: failed program was:" >&5 2047sed 's/^/| /' conftest.$ac_ext >&5 2048 2049 ac_retval=1 2050fi 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 as_fn_set_status $ac_retval 2053 2054} # ac_fn_cxx_try_compile 2055 2056# ac_fn_cxx_try_cpp LINENO 2057# ------------------------ 2058# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2059ac_fn_cxx_try_cpp () 2060{ 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 if { { ac_try="$ac_cpp conftest.$ac_ext" 2063case "(($ac_try" in 2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2065 *) ac_try_echo=$ac_try;; 2066esac 2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2068$as_echo "$ac_try_echo"; } >&5 2069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2070 ac_status=$? 2071 if test -s conftest.err; then 2072 grep -v '^ *+' conftest.err >conftest.er1 2073 cat conftest.er1 >&5 2074 mv -f conftest.er1 conftest.err 2075 fi 2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2077 test $ac_status = 0; } > conftest.i && { 2078 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2079 test ! -s conftest.err 2080 }; then : 2081 ac_retval=0 2082else 2083 $as_echo "$as_me: failed program was:" >&5 2084sed 's/^/| /' conftest.$ac_ext >&5 2085 2086 ac_retval=1 2087fi 2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2089 as_fn_set_status $ac_retval 2090 2091} # ac_fn_cxx_try_cpp 2092 2093# ac_fn_cxx_try_link LINENO 2094# ------------------------- 2095# Try to link conftest.$ac_ext, and return whether this succeeded. 2096ac_fn_cxx_try_link () 2097{ 2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2099 rm -f conftest.$ac_objext conftest$ac_exeext 2100 if { { ac_try="$ac_link" 2101case "(($ac_try" in 2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2103 *) ac_try_echo=$ac_try;; 2104esac 2105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2106$as_echo "$ac_try_echo"; } >&5 2107 (eval "$ac_link") 2>conftest.err 2108 ac_status=$? 2109 if test -s conftest.err; then 2110 grep -v '^ *+' conftest.err >conftest.er1 2111 cat conftest.er1 >&5 2112 mv -f conftest.er1 conftest.err 2113 fi 2114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2115 test $ac_status = 0; } && { 2116 test -z "$ac_cxx_werror_flag" || 2117 test ! -s conftest.err 2118 } && test -s conftest$ac_exeext && { 2119 test "$cross_compiling" = yes || 2120 test -x conftest$ac_exeext 2121 }; then : 2122 ac_retval=0 2123else 2124 $as_echo "$as_me: failed program was:" >&5 2125sed 's/^/| /' conftest.$ac_ext >&5 2126 2127 ac_retval=1 2128fi 2129 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2130 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2131 # interfere with the next link command; also delete a directory that is 2132 # left behind by Apple's compiler. We do this before executing the actions. 2133 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2135 as_fn_set_status $ac_retval 2136 2137} # ac_fn_cxx_try_link 2138 2139# ac_fn_objcxx_try_compile LINENO 2140# ------------------------------- 2141# Try to compile conftest.$ac_ext, and return whether this succeeded. 2142ac_fn_objcxx_try_compile () 2143{ 2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2145 rm -f conftest.$ac_objext 2146 if { { ac_try="$ac_compile" 2147case "(($ac_try" in 2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2149 *) ac_try_echo=$ac_try;; 2150esac 2151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2152$as_echo "$ac_try_echo"; } >&5 2153 (eval "$ac_compile") 2>conftest.err 2154 ac_status=$? 2155 if test -s conftest.err; then 2156 grep -v '^ *+' conftest.err >conftest.er1 2157 cat conftest.er1 >&5 2158 mv -f conftest.er1 conftest.err 2159 fi 2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2161 test $ac_status = 0; } && { 2162 test -z "$ac_objcxx_werror_flag" || 2163 test ! -s conftest.err 2164 } && test -s conftest.$ac_objext; then : 2165 ac_retval=0 2166else 2167 $as_echo "$as_me: failed program was:" >&5 2168sed 's/^/| /' conftest.$ac_ext >&5 2169 2170 ac_retval=1 2171fi 2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2173 as_fn_set_status $ac_retval 2174 2175} # ac_fn_objcxx_try_compile 2176 2177# ac_fn_cxx_try_run LINENO 2178# ------------------------ 2179# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2180# that executables *can* be run. 2181ac_fn_cxx_try_run () 2182{ 2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2184 if { { ac_try="$ac_link" 2185case "(($ac_try" in 2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2187 *) ac_try_echo=$ac_try;; 2188esac 2189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2190$as_echo "$ac_try_echo"; } >&5 2191 (eval "$ac_link") 2>&5 2192 ac_status=$? 2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2194 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2195 { { case "(($ac_try" in 2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2197 *) ac_try_echo=$ac_try;; 2198esac 2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2200$as_echo "$ac_try_echo"; } >&5 2201 (eval "$ac_try") 2>&5 2202 ac_status=$? 2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2204 test $ac_status = 0; }; }; then : 2205 ac_retval=0 2206else 2207 $as_echo "$as_me: program exited with status $ac_status" >&5 2208 $as_echo "$as_me: failed program was:" >&5 2209sed 's/^/| /' conftest.$ac_ext >&5 2210 2211 ac_retval=$ac_status 2212fi 2213 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2215 as_fn_set_status $ac_retval 2216 2217} # ac_fn_cxx_try_run 2218 2219# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2220# ---------------------------------------------- 2221# Tries to find the compile-time value of EXPR in a program that includes 2222# INCLUDES, setting VAR accordingly. Returns whether the value could be 2223# computed 2224ac_fn_cxx_compute_int () 2225{ 2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2227 if test "$cross_compiling" = yes; then 2228 # Depending upon the size, compute the lo and hi bounds. 2229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230/* end confdefs.h. */ 2231$4 2232int 2233main () 2234{ 2235static int test_array [1 - 2 * !(($2) >= 0)]; 2236test_array [0] = 0; 2237return test_array [0]; 2238 2239 ; 2240 return 0; 2241} 2242_ACEOF 2243if ac_fn_cxx_try_compile "$LINENO"; then : 2244 ac_lo=0 ac_mid=0 2245 while :; do 2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2253test_array [0] = 0; 2254return test_array [0]; 2255 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_cxx_try_compile "$LINENO"; then : 2261 ac_hi=$ac_mid; break 2262else 2263 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2264 if test $ac_lo -le $ac_mid; then 2265 ac_lo= ac_hi= 2266 break 2267 fi 2268 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2269fi 2270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2271 done 2272else 2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2274/* end confdefs.h. */ 2275$4 2276int 2277main () 2278{ 2279static int test_array [1 - 2 * !(($2) < 0)]; 2280test_array [0] = 0; 2281return test_array [0]; 2282 2283 ; 2284 return 0; 2285} 2286_ACEOF 2287if ac_fn_cxx_try_compile "$LINENO"; then : 2288 ac_hi=-1 ac_mid=-1 2289 while :; do 2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2291/* end confdefs.h. */ 2292$4 2293int 2294main () 2295{ 2296static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2297test_array [0] = 0; 2298return test_array [0]; 2299 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_cxx_try_compile "$LINENO"; then : 2305 ac_lo=$ac_mid; break 2306else 2307 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2308 if test $ac_mid -le $ac_hi; then 2309 ac_lo= ac_hi= 2310 break 2311 fi 2312 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2313fi 2314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2315 done 2316else 2317 ac_lo= ac_hi= 2318fi 2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2320fi 2321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2322# Binary search between lo and hi bounds. 2323while test "x$ac_lo" != "x$ac_hi"; do 2324 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2326/* end confdefs.h. */ 2327$4 2328int 2329main () 2330{ 2331static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2332test_array [0] = 0; 2333return test_array [0]; 2334 2335 ; 2336 return 0; 2337} 2338_ACEOF 2339if ac_fn_cxx_try_compile "$LINENO"; then : 2340 ac_hi=$ac_mid 2341else 2342 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2343fi 2344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2345done 2346case $ac_lo in #(( 2347?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2348'') ac_retval=1 ;; 2349esac 2350 else 2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2352/* end confdefs.h. */ 2353$4 2354static long int longval () { return $2; } 2355static unsigned long int ulongval () { return $2; } 2356#include <stdio.h> 2357#include <stdlib.h> 2358int 2359main () 2360{ 2361 2362 FILE *f = fopen ("conftest.val", "w"); 2363 if (! f) 2364 return 1; 2365 if (($2) < 0) 2366 { 2367 long int i = longval (); 2368 if (i != ($2)) 2369 return 1; 2370 fprintf (f, "%ld", i); 2371 } 2372 else 2373 { 2374 unsigned long int i = ulongval (); 2375 if (i != ($2)) 2376 return 1; 2377 fprintf (f, "%lu", i); 2378 } 2379 /* Do not output a trailing newline, as this causes \r\n confusion 2380 on some platforms. */ 2381 return ferror (f) || fclose (f) != 0; 2382 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387if ac_fn_cxx_try_run "$LINENO"; then : 2388 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2389else 2390 ac_retval=1 2391fi 2392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2393 conftest.$ac_objext conftest.beam conftest.$ac_ext 2394rm -f conftest.val 2395 2396 fi 2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2398 as_fn_set_status $ac_retval 2399 2400} # ac_fn_cxx_compute_int 2401 2402# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2403# --------------------------------------------------------- 2404# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2405# the include files in INCLUDES and setting the cache variable VAR 2406# accordingly. 2407ac_fn_cxx_check_header_mongrel () 2408{ 2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2410 if eval \${$3+:} false; then : 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2412$as_echo_n "checking for $2... " >&6; } 2413if eval \${$3+:} false; then : 2414 $as_echo_n "(cached) " >&6 2415fi 2416eval ac_res=\$$3 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2418$as_echo "$ac_res" >&6; } 2419else 2420 # Is the header compilable? 2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2422$as_echo_n "checking $2 usability... " >&6; } 2423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2424/* end confdefs.h. */ 2425$4 2426#include <$2> 2427_ACEOF 2428if ac_fn_cxx_try_compile "$LINENO"; then : 2429 ac_header_compiler=yes 2430else 2431 ac_header_compiler=no 2432fi 2433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2435$as_echo "$ac_header_compiler" >&6; } 2436 2437# Is the header present? 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2439$as_echo_n "checking $2 presence... " >&6; } 2440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2441/* end confdefs.h. */ 2442#include <$2> 2443_ACEOF 2444if ac_fn_cxx_try_cpp "$LINENO"; then : 2445 ac_header_preproc=yes 2446else 2447 ac_header_preproc=no 2448fi 2449rm -f conftest.err conftest.i conftest.$ac_ext 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2451$as_echo "$ac_header_preproc" >&6; } 2452 2453# So? What about this header? 2454case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2455 yes:no: ) 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2457$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2459$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2460 ;; 2461 no:yes:* ) 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2463$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2465$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2467$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2469$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2471$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2472 ;; 2473esac 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2475$as_echo_n "checking for $2... " >&6; } 2476if eval \${$3+:} false; then : 2477 $as_echo_n "(cached) " >&6 2478else 2479 eval "$3=\$ac_header_compiler" 2480fi 2481eval ac_res=\$$3 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2483$as_echo "$ac_res" >&6; } 2484fi 2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2486 2487} # ac_fn_cxx_check_header_mongrel 2488 2489# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2490# --------------------------------------------- 2491# Tests whether TYPE exists after having included INCLUDES, setting cache 2492# variable VAR accordingly. 2493ac_fn_cxx_check_type () 2494{ 2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2497$as_echo_n "checking for $2... " >&6; } 2498if eval \${$3+:} false; then : 2499 $as_echo_n "(cached) " >&6 2500else 2501 eval "$3=no" 2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2503/* end confdefs.h. */ 2504$4 2505int 2506main () 2507{ 2508if (sizeof ($2)) 2509 return 0; 2510 ; 2511 return 0; 2512} 2513_ACEOF 2514if ac_fn_cxx_try_compile "$LINENO"; then : 2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2516/* end confdefs.h. */ 2517$4 2518int 2519main () 2520{ 2521if (sizeof (($2))) 2522 return 0; 2523 ; 2524 return 0; 2525} 2526_ACEOF 2527if ac_fn_cxx_try_compile "$LINENO"; then : 2528 2529else 2530 eval "$3=yes" 2531fi 2532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2533fi 2534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2535fi 2536eval ac_res=\$$3 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2538$as_echo "$ac_res" >&6; } 2539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2540 2541} # ac_fn_cxx_check_type 2542cat >config.log <<_ACEOF 2543This file contains any messages produced by compilers while 2544running configure, to aid debugging if configure makes a mistake. 2545 2546It was created by love $as_me 11.3, which was 2547generated by GNU Autoconf 2.69. Invocation command line was 2548 2549 $ $0 $@ 2550 2551_ACEOF 2552exec 5>>config.log 2553{ 2554cat <<_ASUNAME 2555## --------- ## 2556## Platform. ## 2557## --------- ## 2558 2559hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2560uname -m = `(uname -m) 2>/dev/null || echo unknown` 2561uname -r = `(uname -r) 2>/dev/null || echo unknown` 2562uname -s = `(uname -s) 2>/dev/null || echo unknown` 2563uname -v = `(uname -v) 2>/dev/null || echo unknown` 2564 2565/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2566/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2567 2568/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2569/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2570/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2571/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2572/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2573/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2574/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2575 2576_ASUNAME 2577 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 $as_echo "PATH: $as_dir" 2584 done 2585IFS=$as_save_IFS 2586 2587} >&5 2588 2589cat >&5 <<_ACEOF 2590 2591 2592## ----------- ## 2593## Core tests. ## 2594## ----------- ## 2595 2596_ACEOF 2597 2598 2599# Keep a trace of the command line. 2600# Strip out --no-create and --no-recursion so they do not pile up. 2601# Strip out --silent because we don't want to record it for future runs. 2602# Also quote any args containing shell meta-characters. 2603# Make two passes to allow for proper duplicate-argument suppression. 2604ac_configure_args= 2605ac_configure_args0= 2606ac_configure_args1= 2607ac_must_keep_next=false 2608for ac_pass in 1 2 2609do 2610 for ac_arg 2611 do 2612 case $ac_arg in 2613 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2615 | -silent | --silent | --silen | --sile | --sil) 2616 continue ;; 2617 *\'*) 2618 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2619 esac 2620 case $ac_pass in 2621 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2622 2) 2623 as_fn_append ac_configure_args1 " '$ac_arg'" 2624 if test $ac_must_keep_next = true; then 2625 ac_must_keep_next=false # Got value, back to normal. 2626 else 2627 case $ac_arg in 2628 *=* | --config-cache | -C | -disable-* | --disable-* \ 2629 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2630 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2631 | -with-* | --with-* | -without-* | --without-* | --x) 2632 case "$ac_configure_args0 " in 2633 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2634 esac 2635 ;; 2636 -* ) ac_must_keep_next=true ;; 2637 esac 2638 fi 2639 as_fn_append ac_configure_args " '$ac_arg'" 2640 ;; 2641 esac 2642 done 2643done 2644{ ac_configure_args0=; unset ac_configure_args0;} 2645{ ac_configure_args1=; unset ac_configure_args1;} 2646 2647# When interrupted or exit'd, cleanup temporary files, and complete 2648# config.log. We remove comments because anyway the quotes in there 2649# would cause problems or look ugly. 2650# WARNING: Use '\'' to represent an apostrophe within the trap. 2651# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2652trap 'exit_status=$? 2653 # Save into config.log some information that might help in debugging. 2654 { 2655 echo 2656 2657 $as_echo "## ---------------- ## 2658## Cache variables. ## 2659## ---------------- ##" 2660 echo 2661 # The following way of writing the cache mishandles newlines in values, 2662( 2663 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2664 eval ac_val=\$$ac_var 2665 case $ac_val in #( 2666 *${as_nl}*) 2667 case $ac_var in #( 2668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2669$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2670 esac 2671 case $ac_var in #( 2672 _ | IFS | as_nl) ;; #( 2673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2674 *) { eval $ac_var=; unset $ac_var;} ;; 2675 esac ;; 2676 esac 2677 done 2678 (set) 2>&1 | 2679 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2680 *${as_nl}ac_space=\ *) 2681 sed -n \ 2682 "s/'\''/'\''\\\\'\'''\''/g; 2683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2684 ;; #( 2685 *) 2686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2687 ;; 2688 esac | 2689 sort 2690) 2691 echo 2692 2693 $as_echo "## ----------------- ## 2694## Output variables. ## 2695## ----------------- ##" 2696 echo 2697 for ac_var in $ac_subst_vars 2698 do 2699 eval ac_val=\$$ac_var 2700 case $ac_val in 2701 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2702 esac 2703 $as_echo "$ac_var='\''$ac_val'\''" 2704 done | sort 2705 echo 2706 2707 if test -n "$ac_subst_files"; then 2708 $as_echo "## ------------------- ## 2709## File substitutions. ## 2710## ------------------- ##" 2711 echo 2712 for ac_var in $ac_subst_files 2713 do 2714 eval ac_val=\$$ac_var 2715 case $ac_val in 2716 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2717 esac 2718 $as_echo "$ac_var='\''$ac_val'\''" 2719 done | sort 2720 echo 2721 fi 2722 2723 if test -s confdefs.h; then 2724 $as_echo "## ----------- ## 2725## confdefs.h. ## 2726## ----------- ##" 2727 echo 2728 cat confdefs.h 2729 echo 2730 fi 2731 test "$ac_signal" != 0 && 2732 $as_echo "$as_me: caught signal $ac_signal" 2733 $as_echo "$as_me: exit $exit_status" 2734 } >&5 2735 rm -f core *.core core.conftest.* && 2736 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2737 exit $exit_status 2738' 0 2739for ac_signal in 1 2 13 15; do 2740 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2741done 2742ac_signal=0 2743 2744# confdefs.h avoids OS command line length limits that DEFS can exceed. 2745rm -f -r conftest* confdefs.h 2746 2747$as_echo "/* confdefs.h */" > confdefs.h 2748 2749# Predefined preprocessor variables. 2750 2751cat >>confdefs.h <<_ACEOF 2752#define PACKAGE_NAME "$PACKAGE_NAME" 2753_ACEOF 2754 2755cat >>confdefs.h <<_ACEOF 2756#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2757_ACEOF 2758 2759cat >>confdefs.h <<_ACEOF 2760#define PACKAGE_VERSION "$PACKAGE_VERSION" 2761_ACEOF 2762 2763cat >>confdefs.h <<_ACEOF 2764#define PACKAGE_STRING "$PACKAGE_STRING" 2765_ACEOF 2766 2767cat >>confdefs.h <<_ACEOF 2768#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2769_ACEOF 2770 2771cat >>confdefs.h <<_ACEOF 2772#define PACKAGE_URL "$PACKAGE_URL" 2773_ACEOF 2774 2775 2776# Let the site file select an alternate cache file if it wants to. 2777# Prefer an explicitly selected file to automatically selected ones. 2778ac_site_file1=NONE 2779ac_site_file2=NONE 2780if test -n "$CONFIG_SITE"; then 2781 # We do not want a PATH search for config.site. 2782 case $CONFIG_SITE in #(( 2783 -*) ac_site_file1=./$CONFIG_SITE;; 2784 */*) ac_site_file1=$CONFIG_SITE;; 2785 *) ac_site_file1=./$CONFIG_SITE;; 2786 esac 2787elif test "x$prefix" != xNONE; then 2788 ac_site_file1=$prefix/share/config.site 2789 ac_site_file2=$prefix/etc/config.site 2790else 2791 ac_site_file1=$ac_default_prefix/share/config.site 2792 ac_site_file2=$ac_default_prefix/etc/config.site 2793fi 2794for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2795do 2796 test "x$ac_site_file" = xNONE && continue 2797 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2799$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2800 sed 's/^/| /' "$ac_site_file" >&5 2801 . "$ac_site_file" \ 2802 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2804as_fn_error $? "failed to load site script $ac_site_file 2805See \`config.log' for more details" "$LINENO" 5; } 2806 fi 2807done 2808 2809if test -r "$cache_file"; then 2810 # Some versions of bash will fail to source /dev/null (special files 2811 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2812 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2814$as_echo "$as_me: loading cache $cache_file" >&6;} 2815 case $cache_file in 2816 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2817 *) . "./$cache_file";; 2818 esac 2819 fi 2820else 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2822$as_echo "$as_me: creating cache $cache_file" >&6;} 2823 >$cache_file 2824fi 2825 2826# Check that the precious variables saved in the cache have kept the same 2827# value. 2828ac_cache_corrupted=false 2829for ac_var in $ac_precious_vars; do 2830 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2831 eval ac_new_set=\$ac_env_${ac_var}_set 2832 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2833 eval ac_new_val=\$ac_env_${ac_var}_value 2834 case $ac_old_set,$ac_new_set in 2835 set,) 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2837$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2838 ac_cache_corrupted=: ;; 2839 ,set) 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2841$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2842 ac_cache_corrupted=: ;; 2843 ,);; 2844 *) 2845 if test "x$ac_old_val" != "x$ac_new_val"; then 2846 # differences in whitespace do not lead to failure. 2847 ac_old_val_w=`echo x $ac_old_val` 2848 ac_new_val_w=`echo x $ac_new_val` 2849 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2851$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2852 ac_cache_corrupted=: 2853 else 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2855$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2856 eval $ac_var=\$ac_old_val 2857 fi 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2859$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2861$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2862 fi;; 2863 esac 2864 # Pass precious variables to config.status. 2865 if test "$ac_new_set" = set; then 2866 case $ac_new_val in 2867 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2868 *) ac_arg=$ac_var=$ac_new_val ;; 2869 esac 2870 case " $ac_configure_args " in 2871 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2872 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2873 esac 2874 fi 2875done 2876if $ac_cache_corrupted; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2880$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2881 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2882fi 2883## -------------------- ## 2884## Main body of script. ## 2885## -------------------- ## 2886 2887ac_ext=c 2888ac_cpp='$CPP $CPPFLAGS' 2889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2891ac_compiler_gnu=$ac_cv_c_compiler_gnu 2892 2893 2894ac_config_headers="$ac_config_headers config.h" 2895 2896ac_aux_dir= 2897for ac_dir in platform/unix "$srcdir"/platform/unix; do 2898 if test -f "$ac_dir/install-sh"; then 2899 ac_aux_dir=$ac_dir 2900 ac_install_sh="$ac_aux_dir/install-sh -c" 2901 break 2902 elif test -f "$ac_dir/install.sh"; then 2903 ac_aux_dir=$ac_dir 2904 ac_install_sh="$ac_aux_dir/install.sh -c" 2905 break 2906 elif test -f "$ac_dir/shtool"; then 2907 ac_aux_dir=$ac_dir 2908 ac_install_sh="$ac_aux_dir/shtool install -c" 2909 break 2910 fi 2911done 2912if test -z "$ac_aux_dir"; then 2913 as_fn_error $? "cannot find install-sh, install.sh, or shtool in platform/unix \"$srcdir\"/platform/unix" "$LINENO" 5 2914fi 2915 2916# These three variables are undocumented and unsupported, 2917# and are intended to be withdrawn in a future Autoconf release. 2918# They can cause serious problems if a builder's source tree is in a directory 2919# whose full name contains unusual characters. 2920ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2921ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2922ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2923 2924 2925 2926 2927am__api_version='1.16' 2928 2929# Find a good install program. We prefer a C program (faster), 2930# so one script is as good as another. But avoid the broken or 2931# incompatible versions: 2932# SysV /etc/install, /usr/sbin/install 2933# SunOS /usr/etc/install 2934# IRIX /sbin/install 2935# AIX /bin/install 2936# AmigaOS /C/install, which installs bootblocks on floppy discs 2937# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2938# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2939# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2940# OS/2's system install, which has a completely different semantic 2941# ./install, which can be erroneously created by make from ./install.sh. 2942# Reject install programs that cannot install multiple files. 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2944$as_echo_n "checking for a BSD-compatible install... " >&6; } 2945if test -z "$INSTALL"; then 2946if ${ac_cv_path_install+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2950for as_dir in $PATH 2951do 2952 IFS=$as_save_IFS 2953 test -z "$as_dir" && as_dir=. 2954 # Account for people who put trailing slashes in PATH elements. 2955case $as_dir/ in #(( 2956 ./ | .// | /[cC]/* | \ 2957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2958 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2959 /usr/ucb/* ) ;; 2960 *) 2961 # OSF1 and SCO ODT 3.0 have their own names for install. 2962 # Don't use installbsd from OSF since it installs stuff as root 2963 # by default. 2964 for ac_prog in ginstall scoinst install; do 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2967 if test $ac_prog = install && 2968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2969 # AIX install. It has an incompatible calling convention. 2970 : 2971 elif test $ac_prog = install && 2972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2973 # program-specific install script used by HP pwplus--don't use. 2974 : 2975 else 2976 rm -rf conftest.one conftest.two conftest.dir 2977 echo one > conftest.one 2978 echo two > conftest.two 2979 mkdir conftest.dir 2980 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2981 test -s conftest.one && test -s conftest.two && 2982 test -s conftest.dir/conftest.one && 2983 test -s conftest.dir/conftest.two 2984 then 2985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2986 break 3 2987 fi 2988 fi 2989 fi 2990 done 2991 done 2992 ;; 2993esac 2994 2995 done 2996IFS=$as_save_IFS 2997 2998rm -rf conftest.one conftest.two conftest.dir 2999 3000fi 3001 if test "${ac_cv_path_install+set}" = set; then 3002 INSTALL=$ac_cv_path_install 3003 else 3004 # As a last resort, use the slow shell script. Don't cache a 3005 # value for INSTALL within a source directory, because that will 3006 # break other packages using the cache if that directory is 3007 # removed, or if the value is a relative name. 3008 INSTALL=$ac_install_sh 3009 fi 3010fi 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3012$as_echo "$INSTALL" >&6; } 3013 3014# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3015# It thinks the first close brace ends the variable substitution. 3016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3017 3018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3019 3020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3021 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3023$as_echo_n "checking whether build environment is sane... " >&6; } 3024# Reject unsafe characters in $srcdir or the absolute working directory 3025# name. Accept space and tab only in the latter. 3026am_lf=' 3027' 3028case `pwd` in 3029 *[\\\"\#\$\&\'\`$am_lf]*) 3030 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3031esac 3032case $srcdir in 3033 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3034 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3035esac 3036 3037# Do 'set' in a subshell so we don't clobber the current shell's 3038# arguments. Must try -L first in case configure is actually a 3039# symlink; some systems play weird games with the mod time of symlinks 3040# (eg FreeBSD returns the mod time of the symlink's containing 3041# directory). 3042if ( 3043 am_has_slept=no 3044 for am_try in 1 2; do 3045 echo "timestamp, slept: $am_has_slept" > conftest.file 3046 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3047 if test "$*" = "X"; then 3048 # -L didn't work. 3049 set X `ls -t "$srcdir/configure" conftest.file` 3050 fi 3051 if test "$*" != "X $srcdir/configure conftest.file" \ 3052 && test "$*" != "X conftest.file $srcdir/configure"; then 3053 3054 # If neither matched, then we have a broken ls. This can happen 3055 # if, for instance, CONFIG_SHELL is bash and it inherits a 3056 # broken ls alias from the environment. This has actually 3057 # happened. Such a system could not be considered "sane". 3058 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3059 alias in your environment" "$LINENO" 5 3060 fi 3061 if test "$2" = conftest.file || test $am_try -eq 2; then 3062 break 3063 fi 3064 # Just in case. 3065 sleep 1 3066 am_has_slept=yes 3067 done 3068 test "$2" = conftest.file 3069 ) 3070then 3071 # Ok. 3072 : 3073else 3074 as_fn_error $? "newly created file is older than distributed files! 3075Check your system clock" "$LINENO" 5 3076fi 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3078$as_echo "yes" >&6; } 3079# If we didn't sleep, we still need to ensure time stamps of config.status and 3080# generated files are strictly newer. 3081am_sleep_pid= 3082if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3083 ( sleep 1 ) & 3084 am_sleep_pid=$! 3085fi 3086 3087rm -f conftest.file 3088 3089test "$program_prefix" != NONE && 3090 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3091# Use a double $ so make ignores it. 3092test "$program_suffix" != NONE && 3093 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3094# Double any \ or $. 3095# By default was `s,x,x', remove it if useless. 3096ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3097program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3098 3099# Expand $ac_aux_dir to an absolute path. 3100am_aux_dir=`cd "$ac_aux_dir" && pwd` 3101 3102if test x"${MISSING+set}" != xset; then 3103 case $am_aux_dir in 3104 *\ * | *\ *) 3105 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3106 *) 3107 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3108 esac 3109fi 3110# Use eval to expand $SHELL 3111if eval "$MISSING --is-lightweight"; then 3112 am_missing_run="$MISSING " 3113else 3114 am_missing_run= 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3116$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3117fi 3118 3119if test x"${install_sh+set}" != xset; then 3120 case $am_aux_dir in 3121 *\ * | *\ *) 3122 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3123 *) 3124 install_sh="\${SHELL} $am_aux_dir/install-sh" 3125 esac 3126fi 3127 3128# Installed binaries are usually stripped using 'strip' when the user 3129# run "make install-strip". However 'strip' might not be the right 3130# tool to use in cross-compilation environments, therefore Automake 3131# will honor the 'STRIP' environment variable to overrule this program. 3132if test "$cross_compiling" != no; then 3133 if test -n "$ac_tool_prefix"; then 3134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3135set dummy ${ac_tool_prefix}strip; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_STRIP+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$STRIP"; then 3142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161STRIP=$ac_cv_prog_STRIP 3162if test -n "$STRIP"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3164$as_echo "$STRIP" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 3171fi 3172if test -z "$ac_cv_prog_STRIP"; then 3173 ac_ct_STRIP=$STRIP 3174 # Extract the first word of "strip", so it can be a program name with args. 3175set dummy strip; ac_word=$2 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3177$as_echo_n "checking for $ac_word... " >&6; } 3178if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3179 $as_echo_n "(cached) " >&6 3180else 3181 if test -n "$ac_ct_STRIP"; then 3182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3183else 3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3185for as_dir in $PATH 3186do 3187 IFS=$as_save_IFS 3188 test -z "$as_dir" && as_dir=. 3189 for ac_exec_ext in '' $ac_executable_extensions; do 3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3191 ac_cv_prog_ac_ct_STRIP="strip" 3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3193 break 2 3194 fi 3195done 3196 done 3197IFS=$as_save_IFS 3198 3199fi 3200fi 3201ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3202if test -n "$ac_ct_STRIP"; then 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3204$as_echo "$ac_ct_STRIP" >&6; } 3205else 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3207$as_echo "no" >&6; } 3208fi 3209 3210 if test "x$ac_ct_STRIP" = x; then 3211 STRIP=":" 3212 else 3213 case $cross_compiling:$ac_tool_warned in 3214yes:) 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3217ac_tool_warned=yes ;; 3218esac 3219 STRIP=$ac_ct_STRIP 3220 fi 3221else 3222 STRIP="$ac_cv_prog_STRIP" 3223fi 3224 3225fi 3226INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3227 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3229$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3230if test -z "$MKDIR_P"; then 3231 if ${ac_cv_path_mkdir+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233else 3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3236do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for ac_prog in mkdir gmkdir; do 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3242 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3243 'mkdir (GNU coreutils) '* | \ 3244 'mkdir (coreutils) '* | \ 3245 'mkdir (fileutils) '4.1*) 3246 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3247 break 3;; 3248 esac 3249 done 3250 done 3251 done 3252IFS=$as_save_IFS 3253 3254fi 3255 3256 test -d ./--version && rmdir ./--version 3257 if test "${ac_cv_path_mkdir+set}" = set; then 3258 MKDIR_P="$ac_cv_path_mkdir -p" 3259 else 3260 # As a last resort, use the slow shell script. Don't cache a 3261 # value for MKDIR_P within a source directory, because that will 3262 # break other packages using the cache if that directory is 3263 # removed, or if the value is a relative name. 3264 MKDIR_P="$ac_install_sh -d" 3265 fi 3266fi 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3268$as_echo "$MKDIR_P" >&6; } 3269 3270for ac_prog in gawk mawk nawk awk 3271do 3272 # Extract the first word of "$ac_prog", so it can be a program name with args. 3273set dummy $ac_prog; ac_word=$2 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3275$as_echo_n "checking for $ac_word... " >&6; } 3276if ${ac_cv_prog_AWK+:} false; then : 3277 $as_echo_n "(cached) " >&6 3278else 3279 if test -n "$AWK"; then 3280 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3281else 3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 test -z "$as_dir" && as_dir=. 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3289 ac_cv_prog_AWK="$ac_prog" 3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293done 3294 done 3295IFS=$as_save_IFS 3296 3297fi 3298fi 3299AWK=$ac_cv_prog_AWK 3300if test -n "$AWK"; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3302$as_echo "$AWK" >&6; } 3303else 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305$as_echo "no" >&6; } 3306fi 3307 3308 3309 test -n "$AWK" && break 3310done 3311 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3313$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3314set x ${MAKE-make} 3315ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3316if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 cat >conftest.make <<\_ACEOF 3320SHELL = /bin/sh 3321all: 3322 @echo '@@@%%%=$(MAKE)=@@@%%%' 3323_ACEOF 3324# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3325case `${MAKE-make} -f conftest.make 2>/dev/null` in 3326 *@@@%%%=?*=@@@%%%*) 3327 eval ac_cv_prog_make_${ac_make}_set=yes;; 3328 *) 3329 eval ac_cv_prog_make_${ac_make}_set=no;; 3330esac 3331rm -f conftest.make 3332fi 3333if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3335$as_echo "yes" >&6; } 3336 SET_MAKE= 3337else 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340 SET_MAKE="MAKE=${MAKE-make}" 3341fi 3342 3343rm -rf .tst 2>/dev/null 3344mkdir .tst 2>/dev/null 3345if test -d .tst; then 3346 am__leading_dot=. 3347else 3348 am__leading_dot=_ 3349fi 3350rmdir .tst 2>/dev/null 3351 3352# Check whether --enable-silent-rules was given. 3353if test "${enable_silent_rules+set}" = set; then : 3354 enableval=$enable_silent_rules; 3355fi 3356 3357case $enable_silent_rules in # ((( 3358 yes) AM_DEFAULT_VERBOSITY=0;; 3359 no) AM_DEFAULT_VERBOSITY=1;; 3360 *) AM_DEFAULT_VERBOSITY=1;; 3361esac 3362am_make=${MAKE-make} 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3364$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3365if ${am_cv_make_support_nested_variables+:} false; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 if $as_echo 'TRUE=$(BAR$(V)) 3369BAR0=false 3370BAR1=true 3371V=1 3372am__doit: 3373 @$(TRUE) 3374.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3375 am_cv_make_support_nested_variables=yes 3376else 3377 am_cv_make_support_nested_variables=no 3378fi 3379fi 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3381$as_echo "$am_cv_make_support_nested_variables" >&6; } 3382if test $am_cv_make_support_nested_variables = yes; then 3383 AM_V='$(V)' 3384 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3385else 3386 AM_V=$AM_DEFAULT_VERBOSITY 3387 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3388fi 3389AM_BACKSLASH='\' 3390 3391if test "`cd $srcdir && pwd`" != "`pwd`"; then 3392 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3393 # is not polluted with repeated "-I." 3394 am__isrc=' -I$(srcdir)' 3395 # test to see if srcdir already configured 3396 if test -f $srcdir/config.status; then 3397 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3398 fi 3399fi 3400 3401# test whether we have cygpath 3402if test -z "$CYGPATH_W"; then 3403 if (cygpath --version) >/dev/null 2>/dev/null; then 3404 CYGPATH_W='cygpath -w' 3405 else 3406 CYGPATH_W=echo 3407 fi 3408fi 3409 3410 3411# Define the identity of the package. 3412 PACKAGE='love' 3413 VERSION='11.3' 3414 3415 3416cat >>confdefs.h <<_ACEOF 3417#define PACKAGE "$PACKAGE" 3418_ACEOF 3419 3420 3421cat >>confdefs.h <<_ACEOF 3422#define VERSION "$VERSION" 3423_ACEOF 3424 3425# Some tools Automake needs. 3426 3427ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3428 3429 3430AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3431 3432 3433AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3434 3435 3436AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3437 3438 3439MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3440 3441# For better backward compatibility. To be removed once Automake 1.9.x 3442# dies out for good. For more background, see: 3443# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3444# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3445mkdir_p='$(MKDIR_P)' 3446 3447# We need awk for the "check" target (and possibly the TAP driver). The 3448# system "awk" is bad on some platforms. 3449# Always define AMTAR for backward compatibility. Yes, it's still used 3450# in the wild :-( We should find a proper way to deprecate it ... 3451AMTAR='$${TAR-tar}' 3452 3453 3454# We'll loop over all known methods to create a tar archive until one works. 3455_am_tools='gnutar plaintar pax cpio none' 3456 3457# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3458 # There is notably a 21 bits limit for the UID and the GID. In fact, 3459 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3460 # and bug#13588). 3461 am_max_uid=2097151 # 2^21 - 1 3462 am_max_gid=$am_max_uid 3463 # The $UID and $GID variables are not portable, so we need to resort 3464 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3465 # below are definitely unexpected, so allow the users to see them 3466 # (that is, avoid stderr redirection). 3467 am_uid=`id -u || echo unknown` 3468 am_gid=`id -g || echo unknown` 3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3470$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3471 if test $am_uid -le $am_max_uid; then 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3473$as_echo "yes" >&6; } 3474 else 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476$as_echo "no" >&6; } 3477 _am_tools=none 3478 fi 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3480$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3481 if test $am_gid -le $am_max_gid; then 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3483$as_echo "yes" >&6; } 3484 else 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486$as_echo "no" >&6; } 3487 _am_tools=none 3488 fi 3489 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3491$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3492 3493 # Go ahead even if we have the value already cached. We do so because we 3494 # need to set the values for the 'am__tar' and 'am__untar' variables. 3495 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3496 3497 for _am_tool in $_am_tools; do 3498 case $_am_tool in 3499 gnutar) 3500 for _am_tar in tar gnutar gtar; do 3501 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3502 ($_am_tar --version) >&5 2>&5 3503 ac_status=$? 3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3505 (exit $ac_status); } && break 3506 done 3507 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3508 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3509 am__untar="$_am_tar -xf -" 3510 ;; 3511 plaintar) 3512 # Must skip GNU tar: if it does not support --format= it doesn't create 3513 # ustar tarball either. 3514 (tar --version) >/dev/null 2>&1 && continue 3515 am__tar='tar chf - "$$tardir"' 3516 am__tar_='tar chf - "$tardir"' 3517 am__untar='tar xf -' 3518 ;; 3519 pax) 3520 am__tar='pax -L -x ustar -w "$$tardir"' 3521 am__tar_='pax -L -x ustar -w "$tardir"' 3522 am__untar='pax -r' 3523 ;; 3524 cpio) 3525 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3526 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3527 am__untar='cpio -i -H ustar -d' 3528 ;; 3529 none) 3530 am__tar=false 3531 am__tar_=false 3532 am__untar=false 3533 ;; 3534 esac 3535 3536 # If the value was cached, stop now. We just wanted to have am__tar 3537 # and am__untar set. 3538 test -n "${am_cv_prog_tar_ustar}" && break 3539 3540 # tar/untar a dummy directory, and stop if the command works. 3541 rm -rf conftest.dir 3542 mkdir conftest.dir 3543 echo GrepMe > conftest.dir/file 3544 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3545 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3546 ac_status=$? 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); } 3549 rm -rf conftest.dir 3550 if test -s conftest.tar; then 3551 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3552 ($am__untar <conftest.tar) >&5 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); } 3556 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3557 (cat conftest.dir/file) >&5 2>&5 3558 ac_status=$? 3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3560 (exit $ac_status); } 3561 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3562 fi 3563 done 3564 rm -rf conftest.dir 3565 3566 if ${am_cv_prog_tar_ustar+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 am_cv_prog_tar_ustar=$_am_tool 3570fi 3571 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3573$as_echo "$am_cv_prog_tar_ustar" >&6; } 3574 3575 3576 3577 3578 3579 3580# POSIX will say in a future version that running "rm -f" with no argument 3581# is OK; and we want to be able to make that assumption in our Makefile 3582# recipes. So use an aggressive probe to check that the usage we want is 3583# actually supported "in the wild" to an acceptable degree. 3584# See automake bug#10828. 3585# To make any issue more visible, cause the running configure to be aborted 3586# by default if the 'rm' program in use doesn't match our expectations; the 3587# user can still override this though. 3588if rm -f && rm -fr && rm -rf; then : OK; else 3589 cat >&2 <<'END' 3590Oops! 3591 3592Your 'rm' program seems unable to run without file operands specified 3593on the command line, even when the '-f' option is present. This is contrary 3594to the behaviour of most rm programs out there, and not conforming with 3595the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3596 3597Please tell bug-automake@gnu.org about your system, including the value 3598of your $PATH and any error possibly output before this message. This 3599can help us improve future automake versions. 3600 3601END 3602 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3603 echo 'Configuration will proceed anyway, since you have set the' >&2 3604 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3605 echo >&2 3606 else 3607 cat >&2 <<'END' 3608Aborting the configuration process, to ensure you take notice of the issue. 3609 3610You can download and install GNU coreutils to get an 'rm' implementation 3611that behaves properly: <https://www.gnu.org/software/coreutils/>. 3612 3613If you want to complete the configuration process using your problematic 3614'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3615to "yes", and re-run configure. 3616 3617END 3618 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3619 fi 3620fi 3621 3622# Check whether --enable-silent-rules was given. 3623if test "${enable_silent_rules+set}" = set; then : 3624 enableval=$enable_silent_rules; 3625fi 3626 3627case $enable_silent_rules in # ((( 3628 yes) AM_DEFAULT_VERBOSITY=0;; 3629 no) AM_DEFAULT_VERBOSITY=1;; 3630 *) AM_DEFAULT_VERBOSITY=1;; 3631esac 3632am_make=${MAKE-make} 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3634$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3635if ${am_cv_make_support_nested_variables+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 if $as_echo 'TRUE=$(BAR$(V)) 3639BAR0=false 3640BAR1=true 3641V=1 3642am__doit: 3643 @$(TRUE) 3644.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3645 am_cv_make_support_nested_variables=yes 3646else 3647 am_cv_make_support_nested_variables=no 3648fi 3649fi 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3651$as_echo "$am_cv_make_support_nested_variables" >&6; } 3652if test $am_cv_make_support_nested_variables = yes; then 3653 AM_V='$(V)' 3654 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3655else 3656 AM_V=$AM_DEFAULT_VERBOSITY 3657 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3658fi 3659AM_BACKSLASH='\' 3660 3661 3662DEPDIR="${am__leading_dot}deps" 3663 3664ac_config_commands="$ac_config_commands depfiles" 3665 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3667$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3668cat > confinc.mk << 'END' 3669am__doit: 3670 @echo this is the am__doit target >confinc.out 3671.PHONY: am__doit 3672END 3673am__include="#" 3674am__quote= 3675# BSD make does it like this. 3676echo '.include "confinc.mk" # ignored' > confmf.BSD 3677# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3678echo 'include confinc.mk # ignored' > confmf.GNU 3679_am_result=no 3680for s in GNU BSD; do 3681 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3682 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3683 ac_status=$? 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); } 3686 case $?:`cat confinc.out 2>/dev/null` in #( 3687 '0:this is the am__doit target') : 3688 case $s in #( 3689 BSD) : 3690 am__include='.include' am__quote='"' ;; #( 3691 *) : 3692 am__include='include' am__quote='' ;; 3693esac ;; #( 3694 *) : 3695 ;; 3696esac 3697 if test "$am__include" != "#"; then 3698 _am_result="yes ($s style)" 3699 break 3700 fi 3701done 3702rm -f confinc.* confmf.* 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3704$as_echo "${_am_result}" >&6; } 3705 3706# Check whether --enable-dependency-tracking was given. 3707if test "${enable_dependency_tracking+set}" = set; then : 3708 enableval=$enable_dependency_tracking; 3709fi 3710 3711if test "x$enable_dependency_tracking" != xno; then 3712 am_depcomp="$ac_aux_dir/depcomp" 3713 AMDEPBACKSLASH='\' 3714 am__nodep='_no' 3715fi 3716 if test "x$enable_dependency_tracking" != xno; then 3717 AMDEP_TRUE= 3718 AMDEP_FALSE='#' 3719else 3720 AMDEP_TRUE='#' 3721 AMDEP_FALSE= 3722fi 3723 3724 3725ac_ext=c 3726ac_cpp='$CPP $CPPFLAGS' 3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3729ac_compiler_gnu=$ac_cv_c_compiler_gnu 3730if test -n "$ac_tool_prefix"; then 3731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3732set dummy ${ac_tool_prefix}gcc; ac_word=$2 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3734$as_echo_n "checking for $ac_word... " >&6; } 3735if ${ac_cv_prog_CC+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 if test -n "$CC"; then 3739 ac_cv_prog_CC="$CC" # Let the user override the test. 3740else 3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3742for as_dir in $PATH 3743do 3744 IFS=$as_save_IFS 3745 test -z "$as_dir" && as_dir=. 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3748 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3750 break 2 3751 fi 3752done 3753 done 3754IFS=$as_save_IFS 3755 3756fi 3757fi 3758CC=$ac_cv_prog_CC 3759if test -n "$CC"; then 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3761$as_echo "$CC" >&6; } 3762else 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3764$as_echo "no" >&6; } 3765fi 3766 3767 3768fi 3769if test -z "$ac_cv_prog_CC"; then 3770 ac_ct_CC=$CC 3771 # Extract the first word of "gcc", so it can be a program name with args. 3772set dummy gcc; ac_word=$2 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3774$as_echo_n "checking for $ac_word... " >&6; } 3775if ${ac_cv_prog_ac_ct_CC+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 if test -n "$ac_ct_CC"; then 3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3780else 3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3782for as_dir in $PATH 3783do 3784 IFS=$as_save_IFS 3785 test -z "$as_dir" && as_dir=. 3786 for ac_exec_ext in '' $ac_executable_extensions; do 3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3788 ac_cv_prog_ac_ct_CC="gcc" 3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3790 break 2 3791 fi 3792done 3793 done 3794IFS=$as_save_IFS 3795 3796fi 3797fi 3798ac_ct_CC=$ac_cv_prog_ac_ct_CC 3799if test -n "$ac_ct_CC"; then 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3801$as_echo "$ac_ct_CC" >&6; } 3802else 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3804$as_echo "no" >&6; } 3805fi 3806 3807 if test "x$ac_ct_CC" = x; then 3808 CC="" 3809 else 3810 case $cross_compiling:$ac_tool_warned in 3811yes:) 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3814ac_tool_warned=yes ;; 3815esac 3816 CC=$ac_ct_CC 3817 fi 3818else 3819 CC="$ac_cv_prog_CC" 3820fi 3821 3822if test -z "$CC"; then 3823 if test -n "$ac_tool_prefix"; then 3824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3825set dummy ${ac_tool_prefix}cc; ac_word=$2 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3827$as_echo_n "checking for $ac_word... " >&6; } 3828if ${ac_cv_prog_CC+:} false; then : 3829 $as_echo_n "(cached) " >&6 3830else 3831 if test -n "$CC"; then 3832 ac_cv_prog_CC="$CC" # Let the user override the test. 3833else 3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3835for as_dir in $PATH 3836do 3837 IFS=$as_save_IFS 3838 test -z "$as_dir" && as_dir=. 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3841 ac_cv_prog_CC="${ac_tool_prefix}cc" 3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3843 break 2 3844 fi 3845done 3846 done 3847IFS=$as_save_IFS 3848 3849fi 3850fi 3851CC=$ac_cv_prog_CC 3852if test -n "$CC"; then 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3854$as_echo "$CC" >&6; } 3855else 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3857$as_echo "no" >&6; } 3858fi 3859 3860 3861 fi 3862fi 3863if test -z "$CC"; then 3864 # Extract the first word of "cc", so it can be a program name with args. 3865set dummy cc; ac_word=$2 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3867$as_echo_n "checking for $ac_word... " >&6; } 3868if ${ac_cv_prog_CC+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 if test -n "$CC"; then 3872 ac_cv_prog_CC="$CC" # Let the user override the test. 3873else 3874 ac_prog_rejected=no 3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3876for as_dir in $PATH 3877do 3878 IFS=$as_save_IFS 3879 test -z "$as_dir" && as_dir=. 3880 for ac_exec_ext in '' $ac_executable_extensions; do 3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3883 ac_prog_rejected=yes 3884 continue 3885 fi 3886 ac_cv_prog_CC="cc" 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3888 break 2 3889 fi 3890done 3891 done 3892IFS=$as_save_IFS 3893 3894if test $ac_prog_rejected = yes; then 3895 # We found a bogon in the path, so make sure we never use it. 3896 set dummy $ac_cv_prog_CC 3897 shift 3898 if test $# != 0; then 3899 # We chose a different compiler from the bogus one. 3900 # However, it has the same basename, so the bogon will be chosen 3901 # first if we set CC to just the basename; use the full file name. 3902 shift 3903 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3904 fi 3905fi 3906fi 3907fi 3908CC=$ac_cv_prog_CC 3909if test -n "$CC"; then 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3911$as_echo "$CC" >&6; } 3912else 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3914$as_echo "no" >&6; } 3915fi 3916 3917 3918fi 3919if test -z "$CC"; then 3920 if test -n "$ac_tool_prefix"; then 3921 for ac_prog in cl.exe 3922 do 3923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3924set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3926$as_echo_n "checking for $ac_word... " >&6; } 3927if ${ac_cv_prog_CC+:} false; then : 3928 $as_echo_n "(cached) " >&6 3929else 3930 if test -n "$CC"; then 3931 ac_cv_prog_CC="$CC" # Let the user override the test. 3932else 3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3934for as_dir in $PATH 3935do 3936 IFS=$as_save_IFS 3937 test -z "$as_dir" && as_dir=. 3938 for ac_exec_ext in '' $ac_executable_extensions; do 3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3942 break 2 3943 fi 3944done 3945 done 3946IFS=$as_save_IFS 3947 3948fi 3949fi 3950CC=$ac_cv_prog_CC 3951if test -n "$CC"; then 3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3953$as_echo "$CC" >&6; } 3954else 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3956$as_echo "no" >&6; } 3957fi 3958 3959 3960 test -n "$CC" && break 3961 done 3962fi 3963if test -z "$CC"; then 3964 ac_ct_CC=$CC 3965 for ac_prog in cl.exe 3966do 3967 # Extract the first word of "$ac_prog", so it can be a program name with args. 3968set dummy $ac_prog; ac_word=$2 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3970$as_echo_n "checking for $ac_word... " >&6; } 3971if ${ac_cv_prog_ac_ct_CC+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 if test -n "$ac_ct_CC"; then 3975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3976else 3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3978for as_dir in $PATH 3979do 3980 IFS=$as_save_IFS 3981 test -z "$as_dir" && as_dir=. 3982 for ac_exec_ext in '' $ac_executable_extensions; do 3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3984 ac_cv_prog_ac_ct_CC="$ac_prog" 3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3986 break 2 3987 fi 3988done 3989 done 3990IFS=$as_save_IFS 3991 3992fi 3993fi 3994ac_ct_CC=$ac_cv_prog_ac_ct_CC 3995if test -n "$ac_ct_CC"; then 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3997$as_echo "$ac_ct_CC" >&6; } 3998else 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4000$as_echo "no" >&6; } 4001fi 4002 4003 4004 test -n "$ac_ct_CC" && break 4005done 4006 4007 if test "x$ac_ct_CC" = x; then 4008 CC="" 4009 else 4010 case $cross_compiling:$ac_tool_warned in 4011yes:) 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4014ac_tool_warned=yes ;; 4015esac 4016 CC=$ac_ct_CC 4017 fi 4018fi 4019 4020fi 4021 4022 4023test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4025as_fn_error $? "no acceptable C compiler found in \$PATH 4026See \`config.log' for more details" "$LINENO" 5; } 4027 4028# Provide some information about the compiler. 4029$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4030set X $ac_compile 4031ac_compiler=$2 4032for ac_option in --version -v -V -qversion; do 4033 { { ac_try="$ac_compiler $ac_option >&5" 4034case "(($ac_try" in 4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4036 *) ac_try_echo=$ac_try;; 4037esac 4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4039$as_echo "$ac_try_echo"; } >&5 4040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4041 ac_status=$? 4042 if test -s conftest.err; then 4043 sed '10a\ 4044... rest of stderr output deleted ... 4045 10q' conftest.err >conftest.er1 4046 cat conftest.er1 >&5 4047 fi 4048 rm -f conftest.er1 conftest.err 4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4050 test $ac_status = 0; } 4051done 4052 4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055 4056int 4057main () 4058{ 4059 4060 ; 4061 return 0; 4062} 4063_ACEOF 4064ac_clean_files_save=$ac_clean_files 4065ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4066# Try to create an executable without -o first, disregard a.out. 4067# It will help us diagnose broken compilers, and finding out an intuition 4068# of exeext. 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4070$as_echo_n "checking whether the C compiler works... " >&6; } 4071ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4072 4073# The possible output files: 4074ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4075 4076ac_rmfiles= 4077for ac_file in $ac_files 4078do 4079 case $ac_file in 4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4081 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4082 esac 4083done 4084rm -f $ac_rmfiles 4085 4086if { { ac_try="$ac_link_default" 4087case "(($ac_try" in 4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4089 *) ac_try_echo=$ac_try;; 4090esac 4091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4092$as_echo "$ac_try_echo"; } >&5 4093 (eval "$ac_link_default") 2>&5 4094 ac_status=$? 4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4096 test $ac_status = 0; }; then : 4097 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4098# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4099# in a Makefile. We should not override ac_cv_exeext if it was cached, 4100# so that the user can short-circuit this test for compilers unknown to 4101# Autoconf. 4102for ac_file in $ac_files '' 4103do 4104 test -f "$ac_file" || continue 4105 case $ac_file in 4106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4107 ;; 4108 [ab].out ) 4109 # We found the default executable, but exeext='' is most 4110 # certainly right. 4111 break;; 4112 *.* ) 4113 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4114 then :; else 4115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4116 fi 4117 # We set ac_cv_exeext here because the later test for it is not 4118 # safe: cross compilers may not add the suffix if given an `-o' 4119 # argument, so we may need to know it at that point already. 4120 # Even if this section looks crufty: it has the advantage of 4121 # actually working. 4122 break;; 4123 * ) 4124 break;; 4125 esac 4126done 4127test "$ac_cv_exeext" = no && ac_cv_exeext= 4128 4129else 4130 ac_file='' 4131fi 4132if test -z "$ac_file"; then : 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4134$as_echo "no" >&6; } 4135$as_echo "$as_me: failed program was:" >&5 4136sed 's/^/| /' conftest.$ac_ext >&5 4137 4138{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4140as_fn_error 77 "C compiler cannot create executables 4141See \`config.log' for more details" "$LINENO" 5; } 4142else 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4144$as_echo "yes" >&6; } 4145fi 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4147$as_echo_n "checking for C compiler default output file name... " >&6; } 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4149$as_echo "$ac_file" >&6; } 4150ac_exeext=$ac_cv_exeext 4151 4152rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4153ac_clean_files=$ac_clean_files_save 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4155$as_echo_n "checking for suffix of executables... " >&6; } 4156if { { ac_try="$ac_link" 4157case "(($ac_try" in 4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4159 *) ac_try_echo=$ac_try;; 4160esac 4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4162$as_echo "$ac_try_echo"; } >&5 4163 (eval "$ac_link") 2>&5 4164 ac_status=$? 4165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4166 test $ac_status = 0; }; then : 4167 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4168# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4169# work properly (i.e., refer to `conftest.exe'), while it won't with 4170# `rm'. 4171for ac_file in conftest.exe conftest conftest.*; do 4172 test -f "$ac_file" || continue 4173 case $ac_file in 4174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4176 break;; 4177 * ) break;; 4178 esac 4179done 4180else 4181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4183as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4184See \`config.log' for more details" "$LINENO" 5; } 4185fi 4186rm -f conftest conftest$ac_cv_exeext 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4188$as_echo "$ac_cv_exeext" >&6; } 4189 4190rm -f conftest.$ac_ext 4191EXEEXT=$ac_cv_exeext 4192ac_exeext=$EXEEXT 4193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194/* end confdefs.h. */ 4195#include <stdio.h> 4196int 4197main () 4198{ 4199FILE *f = fopen ("conftest.out", "w"); 4200 return ferror (f) || fclose (f) != 0; 4201 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206ac_clean_files="$ac_clean_files conftest.out" 4207# Check that the compiler produces executables we can run. If not, either 4208# the compiler is broken, or we cross compile. 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4210$as_echo_n "checking whether we are cross compiling... " >&6; } 4211if test "$cross_compiling" != yes; then 4212 { { ac_try="$ac_link" 4213case "(($ac_try" in 4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4215 *) ac_try_echo=$ac_try;; 4216esac 4217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4218$as_echo "$ac_try_echo"; } >&5 4219 (eval "$ac_link") 2>&5 4220 ac_status=$? 4221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4222 test $ac_status = 0; } 4223 if { ac_try='./conftest$ac_cv_exeext' 4224 { { case "(($ac_try" in 4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4226 *) ac_try_echo=$ac_try;; 4227esac 4228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4229$as_echo "$ac_try_echo"; } >&5 4230 (eval "$ac_try") 2>&5 4231 ac_status=$? 4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4233 test $ac_status = 0; }; }; then 4234 cross_compiling=no 4235 else 4236 if test "$cross_compiling" = maybe; then 4237 cross_compiling=yes 4238 else 4239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4241as_fn_error $? "cannot run C compiled programs. 4242If you meant to cross compile, use \`--host'. 4243See \`config.log' for more details" "$LINENO" 5; } 4244 fi 4245 fi 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4248$as_echo "$cross_compiling" >&6; } 4249 4250rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4251ac_clean_files=$ac_clean_files_save 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4253$as_echo_n "checking for suffix of object files... " >&6; } 4254if ${ac_cv_objext+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4258/* end confdefs.h. */ 4259 4260int 4261main () 4262{ 4263 4264 ; 4265 return 0; 4266} 4267_ACEOF 4268rm -f conftest.o conftest.obj 4269if { { ac_try="$ac_compile" 4270case "(($ac_try" in 4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4272 *) ac_try_echo=$ac_try;; 4273esac 4274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4275$as_echo "$ac_try_echo"; } >&5 4276 (eval "$ac_compile") 2>&5 4277 ac_status=$? 4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4279 test $ac_status = 0; }; then : 4280 for ac_file in conftest.o conftest.obj conftest.*; do 4281 test -f "$ac_file" || continue; 4282 case $ac_file in 4283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4284 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4285 break;; 4286 esac 4287done 4288else 4289 $as_echo "$as_me: failed program was:" >&5 4290sed 's/^/| /' conftest.$ac_ext >&5 4291 4292{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4294as_fn_error $? "cannot compute suffix of object files: cannot compile 4295See \`config.log' for more details" "$LINENO" 5; } 4296fi 4297rm -f conftest.$ac_cv_objext conftest.$ac_ext 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4300$as_echo "$ac_cv_objext" >&6; } 4301OBJEXT=$ac_cv_objext 4302ac_objext=$OBJEXT 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4304$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4305if ${ac_cv_c_compiler_gnu+:} false; then : 4306 $as_echo_n "(cached) " >&6 4307else 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310 4311int 4312main () 4313{ 4314#ifndef __GNUC__ 4315 choke me 4316#endif 4317 4318 ; 4319 return 0; 4320} 4321_ACEOF 4322if ac_fn_c_try_compile "$LINENO"; then : 4323 ac_compiler_gnu=yes 4324else 4325 ac_compiler_gnu=no 4326fi 4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4328ac_cv_c_compiler_gnu=$ac_compiler_gnu 4329 4330fi 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4332$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4333if test $ac_compiler_gnu = yes; then 4334 GCC=yes 4335else 4336 GCC= 4337fi 4338ac_test_CFLAGS=${CFLAGS+set} 4339ac_save_CFLAGS=$CFLAGS 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4341$as_echo_n "checking whether $CC accepts -g... " >&6; } 4342if ${ac_cv_prog_cc_g+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 ac_save_c_werror_flag=$ac_c_werror_flag 4346 ac_c_werror_flag=yes 4347 ac_cv_prog_cc_g=no 4348 CFLAGS="-g" 4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4350/* end confdefs.h. */ 4351 4352int 4353main () 4354{ 4355 4356 ; 4357 return 0; 4358} 4359_ACEOF 4360if ac_fn_c_try_compile "$LINENO"; then : 4361 ac_cv_prog_cc_g=yes 4362else 4363 CFLAGS="" 4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4365/* end confdefs.h. */ 4366 4367int 4368main () 4369{ 4370 4371 ; 4372 return 0; 4373} 4374_ACEOF 4375if ac_fn_c_try_compile "$LINENO"; then : 4376 4377else 4378 ac_c_werror_flag=$ac_save_c_werror_flag 4379 CFLAGS="-g" 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4381/* end confdefs.h. */ 4382 4383int 4384main () 4385{ 4386 4387 ; 4388 return 0; 4389} 4390_ACEOF 4391if ac_fn_c_try_compile "$LINENO"; then : 4392 ac_cv_prog_cc_g=yes 4393fi 4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4395fi 4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4397fi 4398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4399 ac_c_werror_flag=$ac_save_c_werror_flag 4400fi 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4402$as_echo "$ac_cv_prog_cc_g" >&6; } 4403if test "$ac_test_CFLAGS" = set; then 4404 CFLAGS=$ac_save_CFLAGS 4405elif test $ac_cv_prog_cc_g = yes; then 4406 if test "$GCC" = yes; then 4407 CFLAGS="-g -O2" 4408 else 4409 CFLAGS="-g" 4410 fi 4411else 4412 if test "$GCC" = yes; then 4413 CFLAGS="-O2" 4414 else 4415 CFLAGS= 4416 fi 4417fi 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4419$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4420if ${ac_cv_prog_cc_c89+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 ac_cv_prog_cc_c89=no 4424ac_save_CC=$CC 4425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426/* end confdefs.h. */ 4427#include <stdarg.h> 4428#include <stdio.h> 4429struct stat; 4430/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4431struct buf { int x; }; 4432FILE * (*rcsopen) (struct buf *, struct stat *, int); 4433static char *e (p, i) 4434 char **p; 4435 int i; 4436{ 4437 return p[i]; 4438} 4439static char *f (char * (*g) (char **, int), char **p, ...) 4440{ 4441 char *s; 4442 va_list v; 4443 va_start (v,p); 4444 s = g (p, va_arg (v,int)); 4445 va_end (v); 4446 return s; 4447} 4448 4449/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4450 function prototypes and stuff, but not '\xHH' hex character constants. 4451 These don't provoke an error unfortunately, instead are silently treated 4452 as 'x'. The following induces an error, until -std is added to get 4453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4454 array size at least. It's necessary to write '\x00'==0 to get something 4455 that's true only with -std. */ 4456int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4457 4458/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4459 inside strings and character constants. */ 4460#define FOO(x) 'x' 4461int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4462 4463int test (int i, double x); 4464struct s1 {int (*f) (int a);}; 4465struct s2 {int (*f) (double a);}; 4466int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4467int argc; 4468char **argv; 4469int 4470main () 4471{ 4472return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4473 ; 4474 return 0; 4475} 4476_ACEOF 4477for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4479do 4480 CC="$ac_save_CC $ac_arg" 4481 if ac_fn_c_try_compile "$LINENO"; then : 4482 ac_cv_prog_cc_c89=$ac_arg 4483fi 4484rm -f core conftest.err conftest.$ac_objext 4485 test "x$ac_cv_prog_cc_c89" != "xno" && break 4486done 4487rm -f conftest.$ac_ext 4488CC=$ac_save_CC 4489 4490fi 4491# AC_CACHE_VAL 4492case "x$ac_cv_prog_cc_c89" in 4493 x) 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4495$as_echo "none needed" >&6; } ;; 4496 xno) 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4498$as_echo "unsupported" >&6; } ;; 4499 *) 4500 CC="$CC $ac_cv_prog_cc_c89" 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4502$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4503esac 4504if test "x$ac_cv_prog_cc_c89" != xno; then : 4505 4506fi 4507 4508ac_ext=c 4509ac_cpp='$CPP $CPPFLAGS' 4510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4512ac_compiler_gnu=$ac_cv_c_compiler_gnu 4513 4514ac_ext=c 4515ac_cpp='$CPP $CPPFLAGS' 4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4518ac_compiler_gnu=$ac_cv_c_compiler_gnu 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4520$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4521if ${am_cv_prog_cc_c_o+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4525/* end confdefs.h. */ 4526 4527int 4528main () 4529{ 4530 4531 ; 4532 return 0; 4533} 4534_ACEOF 4535 # Make sure it works both with $CC and with simple cc. 4536 # Following AC_PROG_CC_C_O, we do the test twice because some 4537 # compilers refuse to overwrite an existing .o file with -o, 4538 # though they will create one. 4539 am_cv_prog_cc_c_o=yes 4540 for am_i in 1 2; do 4541 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4542 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4543 ac_status=$? 4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4545 (exit $ac_status); } \ 4546 && test -f conftest2.$ac_objext; then 4547 : OK 4548 else 4549 am_cv_prog_cc_c_o=no 4550 break 4551 fi 4552 done 4553 rm -f core conftest* 4554 unset am_i 4555fi 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4557$as_echo "$am_cv_prog_cc_c_o" >&6; } 4558if test "$am_cv_prog_cc_c_o" != yes; then 4559 # Losing compiler, so override with the script. 4560 # FIXME: It is wrong to rewrite CC. 4561 # But if we don't then we get into trouble of one sort or another. 4562 # A longer-term fix would be to have automake use am__CC in this case, 4563 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4564 CC="$am_aux_dir/compile $CC" 4565fi 4566ac_ext=c 4567ac_cpp='$CPP $CPPFLAGS' 4568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4570ac_compiler_gnu=$ac_cv_c_compiler_gnu 4571 4572 4573depcc="$CC" am_compiler_list= 4574 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4576$as_echo_n "checking dependency style of $depcc... " >&6; } 4577if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4581 # We make a subdir and do the tests there. Otherwise we can end up 4582 # making bogus files that we don't know about and never remove. For 4583 # instance it was reported that on HP-UX the gcc test will end up 4584 # making a dummy file named 'D' -- because '-MD' means "put the output 4585 # in D". 4586 rm -rf conftest.dir 4587 mkdir conftest.dir 4588 # Copy depcomp to subdir because otherwise we won't find it if we're 4589 # using a relative directory. 4590 cp "$am_depcomp" conftest.dir 4591 cd conftest.dir 4592 # We will build objects and dependencies in a subdirectory because 4593 # it helps to detect inapplicable dependency modes. For instance 4594 # both Tru64's cc and ICC support -MD to output dependencies as a 4595 # side effect of compilation, but ICC will put the dependencies in 4596 # the current directory while Tru64 will put them in the object 4597 # directory. 4598 mkdir sub 4599 4600 am_cv_CC_dependencies_compiler_type=none 4601 if test "$am_compiler_list" = ""; then 4602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4603 fi 4604 am__universal=false 4605 case " $depcc " in #( 4606 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4607 esac 4608 4609 for depmode in $am_compiler_list; do 4610 # Setup a source with many dependencies, because some compilers 4611 # like to wrap large dependency lists on column 80 (with \), and 4612 # we should not choose a depcomp mode which is confused by this. 4613 # 4614 # We need to recreate these files for each test, as the compiler may 4615 # overwrite some of them when testing with obscure command lines. 4616 # This happens at least with the AIX C compiler. 4617 : > sub/conftest.c 4618 for i in 1 2 3 4 5 6; do 4619 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4620 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4621 # Solaris 10 /bin/sh. 4622 echo '/* dummy */' > sub/conftst$i.h 4623 done 4624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4625 4626 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4627 # mode. It turns out that the SunPro C++ compiler does not properly 4628 # handle '-M -o', and we need to detect this. Also, some Intel 4629 # versions had trouble with output in subdirs. 4630 am__obj=sub/conftest.${OBJEXT-o} 4631 am__minus_obj="-o $am__obj" 4632 case $depmode in 4633 gcc) 4634 # This depmode causes a compiler race in universal mode. 4635 test "$am__universal" = false || continue 4636 ;; 4637 nosideeffect) 4638 # After this tag, mechanisms are not by side-effect, so they'll 4639 # only be used when explicitly requested. 4640 if test "x$enable_dependency_tracking" = xyes; then 4641 continue 4642 else 4643 break 4644 fi 4645 ;; 4646 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4647 # This compiler won't grok '-c -o', but also, the minuso test has 4648 # not run yet. These depmodes are late enough in the game, and 4649 # so weak that their functioning should not be impacted. 4650 am__obj=conftest.${OBJEXT-o} 4651 am__minus_obj= 4652 ;; 4653 none) break ;; 4654 esac 4655 if depmode=$depmode \ 4656 source=sub/conftest.c object=$am__obj \ 4657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4659 >/dev/null 2>conftest.err && 4660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4664 # icc doesn't choke on unknown options, it will just issue warnings 4665 # or remarks (even with -Werror). So we grep stderr for any message 4666 # that says an option was ignored or not supported. 4667 # When given -MP, icc 7.0 and 7.1 complain thusly: 4668 # icc: Command line warning: ignoring option '-M'; no argument required 4669 # The diagnosis changed in icc 8.0: 4670 # icc: Command line remark: option '-MP' not supported 4671 if (grep 'ignoring option' conftest.err || 4672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4673 am_cv_CC_dependencies_compiler_type=$depmode 4674 break 4675 fi 4676 fi 4677 done 4678 4679 cd .. 4680 rm -rf conftest.dir 4681else 4682 am_cv_CC_dependencies_compiler_type=none 4683fi 4684 4685fi 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4687$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4688CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4689 4690 if 4691 test "x$enable_dependency_tracking" != xno \ 4692 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4693 am__fastdepCC_TRUE= 4694 am__fastdepCC_FALSE='#' 4695else 4696 am__fastdepCC_TRUE='#' 4697 am__fastdepCC_FALSE= 4698fi 4699 4700 4701 4702if test -n "$ac_tool_prefix"; then 4703 for ac_prog in ar lib "link -lib" 4704 do 4705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4706set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4708$as_echo_n "checking for $ac_word... " >&6; } 4709if ${ac_cv_prog_AR+:} false; then : 4710 $as_echo_n "(cached) " >&6 4711else 4712 if test -n "$AR"; then 4713 ac_cv_prog_AR="$AR" # Let the user override the test. 4714else 4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4716for as_dir in $PATH 4717do 4718 IFS=$as_save_IFS 4719 test -z "$as_dir" && as_dir=. 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4722 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4724 break 2 4725 fi 4726done 4727 done 4728IFS=$as_save_IFS 4729 4730fi 4731fi 4732AR=$ac_cv_prog_AR 4733if test -n "$AR"; then 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4735$as_echo "$AR" >&6; } 4736else 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4738$as_echo "no" >&6; } 4739fi 4740 4741 4742 test -n "$AR" && break 4743 done 4744fi 4745if test -z "$AR"; then 4746 ac_ct_AR=$AR 4747 for ac_prog in ar lib "link -lib" 4748do 4749 # Extract the first word of "$ac_prog", so it can be a program name with args. 4750set dummy $ac_prog; ac_word=$2 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4752$as_echo_n "checking for $ac_word... " >&6; } 4753if ${ac_cv_prog_ac_ct_AR+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 if test -n "$ac_ct_AR"; then 4757 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4758else 4759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4760for as_dir in $PATH 4761do 4762 IFS=$as_save_IFS 4763 test -z "$as_dir" && as_dir=. 4764 for ac_exec_ext in '' $ac_executable_extensions; do 4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4766 ac_cv_prog_ac_ct_AR="$ac_prog" 4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4768 break 2 4769 fi 4770done 4771 done 4772IFS=$as_save_IFS 4773 4774fi 4775fi 4776ac_ct_AR=$ac_cv_prog_ac_ct_AR 4777if test -n "$ac_ct_AR"; then 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4779$as_echo "$ac_ct_AR" >&6; } 4780else 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4782$as_echo "no" >&6; } 4783fi 4784 4785 4786 test -n "$ac_ct_AR" && break 4787done 4788 4789 if test "x$ac_ct_AR" = x; then 4790 AR="false" 4791 else 4792 case $cross_compiling:$ac_tool_warned in 4793yes:) 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4796ac_tool_warned=yes ;; 4797esac 4798 AR=$ac_ct_AR 4799 fi 4800fi 4801 4802: ${AR=ar} 4803 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4805$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4806if ${am_cv_ar_interface+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808else 4809 ac_ext=c 4810ac_cpp='$CPP $CPPFLAGS' 4811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4813ac_compiler_gnu=$ac_cv_c_compiler_gnu 4814 4815 am_cv_ar_interface=ar 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4817/* end confdefs.h. */ 4818int some_variable = 0; 4819_ACEOF 4820if ac_fn_c_try_compile "$LINENO"; then : 4821 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4823 (eval $am_ar_try) 2>&5 4824 ac_status=$? 4825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4826 test $ac_status = 0; } 4827 if test "$ac_status" -eq 0; then 4828 am_cv_ar_interface=ar 4829 else 4830 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4832 (eval $am_ar_try) 2>&5 4833 ac_status=$? 4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4835 test $ac_status = 0; } 4836 if test "$ac_status" -eq 0; then 4837 am_cv_ar_interface=lib 4838 else 4839 am_cv_ar_interface=unknown 4840 fi 4841 fi 4842 rm -f conftest.lib libconftest.a 4843 4844fi 4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4846 ac_ext=c 4847ac_cpp='$CPP $CPPFLAGS' 4848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4850ac_compiler_gnu=$ac_cv_c_compiler_gnu 4851 4852fi 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4854$as_echo "$am_cv_ar_interface" >&6; } 4855 4856case $am_cv_ar_interface in 4857ar) 4858 ;; 4859lib) 4860 # Microsoft lib, so override with the ar-lib wrapper script. 4861 # FIXME: It is wrong to rewrite AR. 4862 # But if we don't then we get into trouble of one sort or another. 4863 # A longer-term fix would be to have automake use am__AR in this case, 4864 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4865 # similar. 4866 AR="$am_aux_dir/ar-lib $AR" 4867 ;; 4868unknown) 4869 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4870 ;; 4871esac 4872 4873case `pwd` in 4874 *\ * | *\ *) 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4876$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4877esac 4878 4879 4880 4881macro_version='2.4.6.42-b88ce' 4882macro_revision='2.4.6.42' 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896ltmain=$ac_aux_dir/ltmain.sh 4897 4898# Make sure we can run config.sub. 4899$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4900 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4901 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4903$as_echo_n "checking build system type... " >&6; } 4904if ${ac_cv_build+:} false; then : 4905 $as_echo_n "(cached) " >&6 4906else 4907 ac_build_alias=$build_alias 4908test "x$ac_build_alias" = x && 4909 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4910test "x$ac_build_alias" = x && 4911 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4912ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4913 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4914 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4917$as_echo "$ac_cv_build" >&6; } 4918case $ac_cv_build in 4919*-*-*) ;; 4920*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4921esac 4922build=$ac_cv_build 4923ac_save_IFS=$IFS; IFS='-' 4924set x $ac_cv_build 4925shift 4926build_cpu=$1 4927build_vendor=$2 4928shift; shift 4929# Remember, the first character of IFS is used to create $*, 4930# except with old shells: 4931build_os=$* 4932IFS=$ac_save_IFS 4933case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4934 4935 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4937$as_echo_n "checking host system type... " >&6; } 4938if ${ac_cv_host+:} false; then : 4939 $as_echo_n "(cached) " >&6 4940else 4941 if test "x$host_alias" = x; then 4942 ac_cv_host=$ac_cv_build 4943else 4944 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4945 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4946fi 4947 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4950$as_echo "$ac_cv_host" >&6; } 4951case $ac_cv_host in 4952*-*-*) ;; 4953*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4954esac 4955host=$ac_cv_host 4956ac_save_IFS=$IFS; IFS='-' 4957set x $ac_cv_host 4958shift 4959host_cpu=$1 4960host_vendor=$2 4961shift; shift 4962# Remember, the first character of IFS is used to create $*, 4963# except with old shells: 4964host_os=$* 4965IFS=$ac_save_IFS 4966case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4967 4968 4969# Backslashify metacharacters that are still active within 4970# double-quoted strings. 4971sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4972 4973# Same as above, but do not quote variable references. 4974double_quote_subst='s/\(["`\\]\)/\\\1/g' 4975 4976# Sed substitution to delay expansion of an escaped shell variable in a 4977# double_quote_subst'ed string. 4978delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4979 4980# Sed substitution to delay expansion of an escaped single quote. 4981delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4982 4983# Sed substitution to avoid accidental globbing in evaled expressions 4984no_glob_subst='s/\*/\\\*/g' 4985 4986ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4987ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4988ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4989 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4991$as_echo_n "checking how to print strings... " >&6; } 4992# Test print first, because it will be a builtin if present. 4993if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4994 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4995 ECHO='print -r --' 4996elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4997 ECHO='printf %s\n' 4998else 4999 # Use this function as a fallback that always works. 5000 func_fallback_echo () 5001 { 5002 eval 'cat <<_LTECHO_EOF 5003$1 5004_LTECHO_EOF' 5005 } 5006 ECHO='func_fallback_echo' 5007fi 5008 5009# func_echo_all arg... 5010# Invoke $ECHO with all args, space-separated. 5011func_echo_all () 5012{ 5013 $ECHO "" 5014} 5015 5016case $ECHO in 5017 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5018$as_echo "printf" >&6; } ;; 5019 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5020$as_echo "print -r" >&6; } ;; 5021 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5022$as_echo "cat" >&6; } ;; 5023esac 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5039$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5040if ${ac_cv_path_SED+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5044 for ac_i in 1 2 3 4 5 6 7; do 5045 ac_script="$ac_script$as_nl$ac_script" 5046 done 5047 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5048 { ac_script=; unset ac_script;} 5049 if test -z "$SED"; then 5050 ac_path_SED_found=false 5051 # Loop through the user's path and test for each of PROGNAME-LIST 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5053for as_dir in $PATH 5054do 5055 IFS=$as_save_IFS 5056 test -z "$as_dir" && as_dir=. 5057 for ac_prog in sed gsed; do 5058 for ac_exec_ext in '' $ac_executable_extensions; do 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5060 as_fn_executable_p "$ac_path_SED" || continue 5061# Check for GNU ac_path_SED and select it if it is found. 5062 # Check for GNU $ac_path_SED 5063case `"$ac_path_SED" --version 2>&1` in 5064*GNU*) 5065 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5066*) 5067 ac_count=0 5068 $as_echo_n 0123456789 >"conftest.in" 5069 while : 5070 do 5071 cat "conftest.in" "conftest.in" >"conftest.tmp" 5072 mv "conftest.tmp" "conftest.in" 5073 cp "conftest.in" "conftest.nl" 5074 $as_echo '' >> "conftest.nl" 5075 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5077 as_fn_arith $ac_count + 1 && ac_count=$as_val 5078 if test $ac_count -gt ${ac_path_SED_max-0}; then 5079 # Best one so far, save it but keep looking for a better one 5080 ac_cv_path_SED="$ac_path_SED" 5081 ac_path_SED_max=$ac_count 5082 fi 5083 # 10*(2^10) chars as input seems more than enough 5084 test $ac_count -gt 10 && break 5085 done 5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5087esac 5088 5089 $ac_path_SED_found && break 3 5090 done 5091 done 5092 done 5093IFS=$as_save_IFS 5094 if test -z "$ac_cv_path_SED"; then 5095 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5096 fi 5097else 5098 ac_cv_path_SED=$SED 5099fi 5100 5101fi 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5103$as_echo "$ac_cv_path_SED" >&6; } 5104 SED="$ac_cv_path_SED" 5105 rm -f conftest.sed 5106 5107test -z "$SED" && SED=sed 5108Xsed="$SED -e 1s/^X//" 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5121$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5122if ${ac_cv_path_GREP+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 if test -z "$GREP"; then 5126 ac_path_GREP_found=false 5127 # Loop through the user's path and test for each of PROGNAME-LIST 5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5129for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5130do 5131 IFS=$as_save_IFS 5132 test -z "$as_dir" && as_dir=. 5133 for ac_prog in grep ggrep; do 5134 for ac_exec_ext in '' $ac_executable_extensions; do 5135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5136 as_fn_executable_p "$ac_path_GREP" || continue 5137# Check for GNU ac_path_GREP and select it if it is found. 5138 # Check for GNU $ac_path_GREP 5139case `"$ac_path_GREP" --version 2>&1` in 5140*GNU*) 5141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5142*) 5143 ac_count=0 5144 $as_echo_n 0123456789 >"conftest.in" 5145 while : 5146 do 5147 cat "conftest.in" "conftest.in" >"conftest.tmp" 5148 mv "conftest.tmp" "conftest.in" 5149 cp "conftest.in" "conftest.nl" 5150 $as_echo 'GREP' >> "conftest.nl" 5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5153 as_fn_arith $ac_count + 1 && ac_count=$as_val 5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5155 # Best one so far, save it but keep looking for a better one 5156 ac_cv_path_GREP="$ac_path_GREP" 5157 ac_path_GREP_max=$ac_count 5158 fi 5159 # 10*(2^10) chars as input seems more than enough 5160 test $ac_count -gt 10 && break 5161 done 5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5163esac 5164 5165 $ac_path_GREP_found && break 3 5166 done 5167 done 5168 done 5169IFS=$as_save_IFS 5170 if test -z "$ac_cv_path_GREP"; then 5171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5172 fi 5173else 5174 ac_cv_path_GREP=$GREP 5175fi 5176 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5179$as_echo "$ac_cv_path_GREP" >&6; } 5180 GREP="$ac_cv_path_GREP" 5181 5182 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5184$as_echo_n "checking for egrep... " >&6; } 5185if ${ac_cv_path_EGREP+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5189 then ac_cv_path_EGREP="$GREP -E" 5190 else 5191 if test -z "$EGREP"; then 5192 ac_path_EGREP_found=false 5193 # Loop through the user's path and test for each of PROGNAME-LIST 5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5196do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_prog in egrep; do 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5202 as_fn_executable_p "$ac_path_EGREP" || continue 5203# Check for GNU ac_path_EGREP and select it if it is found. 5204 # Check for GNU $ac_path_EGREP 5205case `"$ac_path_EGREP" --version 2>&1` in 5206*GNU*) 5207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5208*) 5209 ac_count=0 5210 $as_echo_n 0123456789 >"conftest.in" 5211 while : 5212 do 5213 cat "conftest.in" "conftest.in" >"conftest.tmp" 5214 mv "conftest.tmp" "conftest.in" 5215 cp "conftest.in" "conftest.nl" 5216 $as_echo 'EGREP' >> "conftest.nl" 5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5219 as_fn_arith $ac_count + 1 && ac_count=$as_val 5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5221 # Best one so far, save it but keep looking for a better one 5222 ac_cv_path_EGREP="$ac_path_EGREP" 5223 ac_path_EGREP_max=$ac_count 5224 fi 5225 # 10*(2^10) chars as input seems more than enough 5226 test $ac_count -gt 10 && break 5227 done 5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5229esac 5230 5231 $ac_path_EGREP_found && break 3 5232 done 5233 done 5234 done 5235IFS=$as_save_IFS 5236 if test -z "$ac_cv_path_EGREP"; then 5237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5238 fi 5239else 5240 ac_cv_path_EGREP=$EGREP 5241fi 5242 5243 fi 5244fi 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5246$as_echo "$ac_cv_path_EGREP" >&6; } 5247 EGREP="$ac_cv_path_EGREP" 5248 5249 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5251$as_echo_n "checking for fgrep... " >&6; } 5252if ${ac_cv_path_FGREP+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5256 then ac_cv_path_FGREP="$GREP -F" 5257 else 5258 if test -z "$FGREP"; then 5259 ac_path_FGREP_found=false 5260 # Loop through the user's path and test for each of PROGNAME-LIST 5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5263do 5264 IFS=$as_save_IFS 5265 test -z "$as_dir" && as_dir=. 5266 for ac_prog in fgrep; do 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5269 as_fn_executable_p "$ac_path_FGREP" || continue 5270# Check for GNU ac_path_FGREP and select it if it is found. 5271 # Check for GNU $ac_path_FGREP 5272case `"$ac_path_FGREP" --version 2>&1` in 5273*GNU*) 5274 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5275*) 5276 ac_count=0 5277 $as_echo_n 0123456789 >"conftest.in" 5278 while : 5279 do 5280 cat "conftest.in" "conftest.in" >"conftest.tmp" 5281 mv "conftest.tmp" "conftest.in" 5282 cp "conftest.in" "conftest.nl" 5283 $as_echo 'FGREP' >> "conftest.nl" 5284 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5286 as_fn_arith $ac_count + 1 && ac_count=$as_val 5287 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5288 # Best one so far, save it but keep looking for a better one 5289 ac_cv_path_FGREP="$ac_path_FGREP" 5290 ac_path_FGREP_max=$ac_count 5291 fi 5292 # 10*(2^10) chars as input seems more than enough 5293 test $ac_count -gt 10 && break 5294 done 5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5296esac 5297 5298 $ac_path_FGREP_found && break 3 5299 done 5300 done 5301 done 5302IFS=$as_save_IFS 5303 if test -z "$ac_cv_path_FGREP"; then 5304 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5305 fi 5306else 5307 ac_cv_path_FGREP=$FGREP 5308fi 5309 5310 fi 5311fi 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5313$as_echo "$ac_cv_path_FGREP" >&6; } 5314 FGREP="$ac_cv_path_FGREP" 5315 5316 5317test -z "$GREP" && GREP=grep 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337# Check whether --with-gnu-ld was given. 5338if test "${with_gnu_ld+set}" = set; then : 5339 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5340else 5341 with_gnu_ld=no 5342fi 5343 5344ac_prog=ld 5345if test yes = "$GCC"; then 5346 # Check if gcc -print-prog-name=ld gives a path. 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5348$as_echo_n "checking for ld used by $CC... " >&6; } 5349 case $host in 5350 *-*-mingw*) 5351 # gcc leaves a trailing carriage return, which upsets mingw 5352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5353 *) 5354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5355 esac 5356 case $ac_prog in 5357 # Accept absolute paths. 5358 [\\/]* | ?:[\\/]*) 5359 re_direlt='/[^/][^/]*/\.\./' 5360 # Canonicalize the pathname of ld 5361 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5362 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5363 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5364 done 5365 test -z "$LD" && LD=$ac_prog 5366 ;; 5367 "") 5368 # If it fails, then pretend we aren't using GCC. 5369 ac_prog=ld 5370 ;; 5371 *) 5372 # If it is relative, then search for the first ld in PATH. 5373 with_gnu_ld=unknown 5374 ;; 5375 esac 5376elif test yes = "$with_gnu_ld"; then 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5378$as_echo_n "checking for GNU ld... " >&6; } 5379else 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5381$as_echo_n "checking for non-GNU ld... " >&6; } 5382fi 5383if ${lt_cv_path_LD+:} false; then : 5384 $as_echo_n "(cached) " >&6 5385else 5386 if test -z "$LD"; then 5387 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5388 for ac_dir in $PATH; do 5389 IFS=$lt_save_ifs 5390 test -z "$ac_dir" && ac_dir=. 5391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5392 lt_cv_path_LD=$ac_dir/$ac_prog 5393 # Check to see if the program is GNU ld. I'd rather use --version, 5394 # but apparently some variants of GNU ld only accept -v. 5395 # Break only if it was the GNU/non-GNU ld that we prefer. 5396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5397 *GNU* | *'with BFD'*) 5398 test no != "$with_gnu_ld" && break 5399 ;; 5400 *) 5401 test yes != "$with_gnu_ld" && break 5402 ;; 5403 esac 5404 fi 5405 done 5406 IFS=$lt_save_ifs 5407else 5408 lt_cv_path_LD=$LD # Let the user override the test with a path. 5409fi 5410fi 5411 5412LD=$lt_cv_path_LD 5413if test -n "$LD"; then 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5415$as_echo "$LD" >&6; } 5416else 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5418$as_echo "no" >&6; } 5419fi 5420test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5422$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5423if ${lt_cv_prog_gnu_ld+:} false; then : 5424 $as_echo_n "(cached) " >&6 5425else 5426 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5427case `$LD -v 2>&1 </dev/null` in 5428*GNU* | *'with BFD'*) 5429 lt_cv_prog_gnu_ld=yes 5430 ;; 5431*) 5432 lt_cv_prog_gnu_ld=no 5433 ;; 5434esac 5435fi 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5437$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5438with_gnu_ld=$lt_cv_prog_gnu_ld 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5449$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5450if ${lt_cv_path_NM+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 if test -n "$NM"; then 5454 # Let the user override the test. 5455 lt_cv_path_NM=$NM 5456else 5457 lt_nm_to_check=${ac_tool_prefix}nm 5458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5459 lt_nm_to_check="$lt_nm_to_check nm" 5460 fi 5461 for lt_tmp_nm in $lt_nm_to_check; do 5462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5464 IFS=$lt_save_ifs 5465 test -z "$ac_dir" && ac_dir=. 5466 tmp_nm=$ac_dir/$lt_tmp_nm 5467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5468 # Check to see if the nm accepts a BSD-compat flag. 5469 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5470 # nm: unknown option "B" ignored 5471 # Tru64's nm complains that /dev/null is an invalid object file 5472 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5473 case $build_os in 5474 mingw*) lt_bad_file=conftest.nm/nofile ;; 5475 *) lt_bad_file=/dev/null ;; 5476 esac 5477 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5478 *$lt_bad_file* | *'Invalid file or object type'*) 5479 lt_cv_path_NM="$tmp_nm -B" 5480 break 2 5481 ;; 5482 *) 5483 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5484 */dev/null*) 5485 lt_cv_path_NM="$tmp_nm -p" 5486 break 2 5487 ;; 5488 *) 5489 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5490 continue # so that we can try to find one that supports BSD flags 5491 ;; 5492 esac 5493 ;; 5494 esac 5495 fi 5496 done 5497 IFS=$lt_save_ifs 5498 done 5499 : ${lt_cv_path_NM=no} 5500fi 5501fi 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5503$as_echo "$lt_cv_path_NM" >&6; } 5504if test no != "$lt_cv_path_NM"; then 5505 NM=$lt_cv_path_NM 5506else 5507 # Didn't find any BSD compatible name lister, look for dumpbin. 5508 if test -n "$DUMPBIN"; then : 5509 # Let the user override the test. 5510 else 5511 if test -n "$ac_tool_prefix"; then 5512 for ac_prog in dumpbin "link -dump" 5513 do 5514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5515set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5517$as_echo_n "checking for $ac_word... " >&6; } 5518if ${ac_cv_prog_DUMPBIN+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520else 5521 if test -n "$DUMPBIN"; then 5522 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5523else 5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5525for as_dir in $PATH 5526do 5527 IFS=$as_save_IFS 5528 test -z "$as_dir" && as_dir=. 5529 for ac_exec_ext in '' $ac_executable_extensions; do 5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5531 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5533 break 2 5534 fi 5535done 5536 done 5537IFS=$as_save_IFS 5538 5539fi 5540fi 5541DUMPBIN=$ac_cv_prog_DUMPBIN 5542if test -n "$DUMPBIN"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5544$as_echo "$DUMPBIN" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548fi 5549 5550 5551 test -n "$DUMPBIN" && break 5552 done 5553fi 5554if test -z "$DUMPBIN"; then 5555 ac_ct_DUMPBIN=$DUMPBIN 5556 for ac_prog in dumpbin "link -dump" 5557do 5558 # Extract the first word of "$ac_prog", so it can be a program name with args. 5559set dummy $ac_prog; ac_word=$2 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5561$as_echo_n "checking for $ac_word... " >&6; } 5562if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 if test -n "$ac_ct_DUMPBIN"; then 5566 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5567else 5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5569for as_dir in $PATH 5570do 5571 IFS=$as_save_IFS 5572 test -z "$as_dir" && as_dir=. 5573 for ac_exec_ext in '' $ac_executable_extensions; do 5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5575 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5577 break 2 5578 fi 5579done 5580 done 5581IFS=$as_save_IFS 5582 5583fi 5584fi 5585ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5586if test -n "$ac_ct_DUMPBIN"; then 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5588$as_echo "$ac_ct_DUMPBIN" >&6; } 5589else 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5591$as_echo "no" >&6; } 5592fi 5593 5594 5595 test -n "$ac_ct_DUMPBIN" && break 5596done 5597 5598 if test "x$ac_ct_DUMPBIN" = x; then 5599 DUMPBIN=":" 5600 else 5601 case $cross_compiling:$ac_tool_warned in 5602yes:) 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5605ac_tool_warned=yes ;; 5606esac 5607 DUMPBIN=$ac_ct_DUMPBIN 5608 fi 5609fi 5610 5611 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5612 *COFF*) 5613 DUMPBIN="$DUMPBIN -symbols -headers" 5614 ;; 5615 *) 5616 DUMPBIN=: 5617 ;; 5618 esac 5619 fi 5620 5621 if test : != "$DUMPBIN"; then 5622 NM=$DUMPBIN 5623 fi 5624fi 5625test -z "$NM" && NM=nm 5626 5627 5628 5629 5630 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5633$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5634if ${lt_cv_nm_interface+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 lt_cv_nm_interface="BSD nm" 5638 echo "int some_variable = 0;" > conftest.$ac_ext 5639 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5640 (eval "$ac_compile" 2>conftest.err) 5641 cat conftest.err >&5 5642 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5644 cat conftest.err >&5 5645 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5646 cat conftest.out >&5 5647 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5648 lt_cv_nm_interface="MS dumpbin" 5649 fi 5650 rm -f conftest* 5651fi 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5653$as_echo "$lt_cv_nm_interface" >&6; } 5654 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5656$as_echo_n "checking whether ln -s works... " >&6; } 5657LN_S=$as_ln_s 5658if test "$LN_S" = "ln -s"; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5660$as_echo "yes" >&6; } 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5663$as_echo "no, using $LN_S" >&6; } 5664fi 5665 5666# find the maximum length of command line arguments 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5668$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5669if ${lt_cv_sys_max_cmd_len+:} false; then : 5670 $as_echo_n "(cached) " >&6 5671else 5672 i=0 5673 teststring=ABCD 5674 5675 case $build_os in 5676 msdosdjgpp*) 5677 # On DJGPP, this test can blow up pretty badly due to problems in libc 5678 # (any single argument exceeding 2000 bytes causes a buffer overrun 5679 # during glob expansion). Even if it were fixed, the result of this 5680 # check would be larger than it should be. 5681 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5682 ;; 5683 5684 gnu*) 5685 # Under GNU Hurd, this test is not required because there is 5686 # no limit to the length of command line arguments. 5687 # Libtool will interpret -1 as no limit whatsoever 5688 lt_cv_sys_max_cmd_len=-1; 5689 ;; 5690 5691 cygwin* | mingw* | cegcc*) 5692 # On Win9x/ME, this test blows up -- it succeeds, but takes 5693 # about 5 minutes as the teststring grows exponentially. 5694 # Worse, since 9x/ME are not pre-emptively multitasking, 5695 # you end up with a "frozen" computer, even though with patience 5696 # the test eventually succeeds (with a max line length of 256k). 5697 # Instead, let's just punt: use the minimum linelength reported by 5698 # all of the supported platforms: 8192 (on NT/2K/XP). 5699 lt_cv_sys_max_cmd_len=8192; 5700 ;; 5701 5702 mint*) 5703 # On MiNT this can take a long time and run out of memory. 5704 lt_cv_sys_max_cmd_len=8192; 5705 ;; 5706 5707 amigaos*) 5708 # On AmigaOS with pdksh, this test takes hours, literally. 5709 # So we just punt and use a minimum line length of 8192. 5710 lt_cv_sys_max_cmd_len=8192; 5711 ;; 5712 5713 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5714 # This has been around since 386BSD, at least. Likely further. 5715 if test -x /sbin/sysctl; then 5716 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5717 elif test -x /usr/sbin/sysctl; then 5718 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5719 else 5720 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5721 fi 5722 # And add a safety zone 5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5725 ;; 5726 5727 interix*) 5728 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5729 lt_cv_sys_max_cmd_len=196608 5730 ;; 5731 5732 os2*) 5733 # The test takes a long time on OS/2. 5734 lt_cv_sys_max_cmd_len=8192 5735 ;; 5736 5737 osf*) 5738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5740 # nice to cause kernel panics so lets avoid the loop below. 5741 # First set a reasonable default. 5742 lt_cv_sys_max_cmd_len=16384 5743 # 5744 if test -x /sbin/sysconfig; then 5745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5746 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5747 esac 5748 fi 5749 ;; 5750 sco3.2v5*) 5751 lt_cv_sys_max_cmd_len=102400 5752 ;; 5753 sysv5* | sco5v6* | sysv4.2uw2*) 5754 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5755 if test -n "$kargmax"; then 5756 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5757 else 5758 lt_cv_sys_max_cmd_len=32768 5759 fi 5760 ;; 5761 *) 5762 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5763 if test -n "$lt_cv_sys_max_cmd_len" && \ 5764 test undefined != "$lt_cv_sys_max_cmd_len"; then 5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5767 else 5768 # Make teststring a little bigger before we do anything with it. 5769 # a 1K string should be a reasonable start. 5770 for i in 1 2 3 4 5 6 7 8; do 5771 teststring=$teststring$teststring 5772 done 5773 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5774 # If test is not a shell built-in, we'll probably end up computing a 5775 # maximum length that is only half of the actual maximum length, but 5776 # we can't tell. 5777 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5778 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5779 test 17 != "$i" # 1/2 MB should be enough 5780 do 5781 i=`expr $i + 1` 5782 teststring=$teststring$teststring 5783 done 5784 # Only check the string length outside the loop. 5785 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5786 teststring= 5787 # Add a significant safety factor because C++ compilers can tack on 5788 # massive amounts of additional arguments before passing them to the 5789 # linker. It appears as though 1/2 is a usable value. 5790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5791 fi 5792 ;; 5793 esac 5794 5795fi 5796 5797if test -n "$lt_cv_sys_max_cmd_len"; then 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5799$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5800else 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5802$as_echo "none" >&6; } 5803fi 5804max_cmd_len=$lt_cv_sys_max_cmd_len 5805 5806 5807 5808 5809 5810 5811: ${CP="cp -f"} 5812: ${MV="mv -f"} 5813: ${RM="rm -f"} 5814 5815if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5816 lt_unset=unset 5817else 5818 lt_unset=false 5819fi 5820 5821 5822 5823 5824 5825# test EBCDIC or ASCII 5826case `echo X|tr X '\101'` in 5827 A) # ASCII based system 5828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5829 lt_SP2NL='tr \040 \012' 5830 lt_NL2SP='tr \015\012 \040\040' 5831 ;; 5832 *) # EBCDIC based system 5833 lt_SP2NL='tr \100 \n' 5834 lt_NL2SP='tr \r\n \100\100' 5835 ;; 5836esac 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5847$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5848if ${lt_cv_to_host_file_cmd+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 case $host in 5852 *-*-mingw* ) 5853 case $build in 5854 *-*-mingw* ) # actually msys 5855 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5856 ;; 5857 *-*-cygwin* ) 5858 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5859 ;; 5860 * ) # otherwise, assume *nix 5861 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5862 ;; 5863 esac 5864 ;; 5865 *-*-cygwin* ) 5866 case $build in 5867 *-*-mingw* ) # actually msys 5868 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5869 ;; 5870 *-*-cygwin* ) 5871 lt_cv_to_host_file_cmd=func_convert_file_noop 5872 ;; 5873 * ) # otherwise, assume *nix 5874 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5875 ;; 5876 esac 5877 ;; 5878 * ) # unhandled hosts (and "normal" native builds) 5879 lt_cv_to_host_file_cmd=func_convert_file_noop 5880 ;; 5881esac 5882 5883fi 5884 5885to_host_file_cmd=$lt_cv_to_host_file_cmd 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5887$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5888 5889 5890 5891 5892 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5894$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5895if ${lt_cv_to_tool_file_cmd+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 #assume ordinary cross tools, or native build. 5899lt_cv_to_tool_file_cmd=func_convert_file_noop 5900case $host in 5901 *-*-mingw* ) 5902 case $build in 5903 *-*-mingw* ) # actually msys 5904 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5905 ;; 5906 esac 5907 ;; 5908esac 5909 5910fi 5911 5912to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5914$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5915 5916 5917 5918 5919 5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5921$as_echo_n "checking for $LD option to reload object files... " >&6; } 5922if ${lt_cv_ld_reload_flag+:} false; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 lt_cv_ld_reload_flag='-r' 5926fi 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5928$as_echo "$lt_cv_ld_reload_flag" >&6; } 5929reload_flag=$lt_cv_ld_reload_flag 5930case $reload_flag in 5931"" | " "*) ;; 5932*) reload_flag=" $reload_flag" ;; 5933esac 5934reload_cmds='$LD$reload_flag -o $output$reload_objs' 5935case $host_os in 5936 cygwin* | mingw* | pw32* | cegcc*) 5937 if test yes != "$GCC"; then 5938 reload_cmds=false 5939 fi 5940 ;; 5941 darwin*) 5942 if test yes = "$GCC"; then 5943 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5944 else 5945 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5946 fi 5947 ;; 5948esac 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958if test -n "$ac_tool_prefix"; then 5959 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5960set dummy ${ac_tool_prefix}objdump; ac_word=$2 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5962$as_echo_n "checking for $ac_word... " >&6; } 5963if ${ac_cv_prog_OBJDUMP+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 if test -n "$OBJDUMP"; then 5967 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5968else 5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5970for as_dir in $PATH 5971do 5972 IFS=$as_save_IFS 5973 test -z "$as_dir" && as_dir=. 5974 for ac_exec_ext in '' $ac_executable_extensions; do 5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5976 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5978 break 2 5979 fi 5980done 5981 done 5982IFS=$as_save_IFS 5983 5984fi 5985fi 5986OBJDUMP=$ac_cv_prog_OBJDUMP 5987if test -n "$OBJDUMP"; then 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5989$as_echo "$OBJDUMP" >&6; } 5990else 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5992$as_echo "no" >&6; } 5993fi 5994 5995 5996fi 5997if test -z "$ac_cv_prog_OBJDUMP"; then 5998 ac_ct_OBJDUMP=$OBJDUMP 5999 # Extract the first word of "objdump", so it can be a program name with args. 6000set dummy objdump; ac_word=$2 6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6002$as_echo_n "checking for $ac_word... " >&6; } 6003if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6004 $as_echo_n "(cached) " >&6 6005else 6006 if test -n "$ac_ct_OBJDUMP"; then 6007 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6008else 6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6010for as_dir in $PATH 6011do 6012 IFS=$as_save_IFS 6013 test -z "$as_dir" && as_dir=. 6014 for ac_exec_ext in '' $ac_executable_extensions; do 6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6016 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6018 break 2 6019 fi 6020done 6021 done 6022IFS=$as_save_IFS 6023 6024fi 6025fi 6026ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6027if test -n "$ac_ct_OBJDUMP"; then 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6029$as_echo "$ac_ct_OBJDUMP" >&6; } 6030else 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6032$as_echo "no" >&6; } 6033fi 6034 6035 if test "x$ac_ct_OBJDUMP" = x; then 6036 OBJDUMP="false" 6037 else 6038 case $cross_compiling:$ac_tool_warned in 6039yes:) 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6042ac_tool_warned=yes ;; 6043esac 6044 OBJDUMP=$ac_ct_OBJDUMP 6045 fi 6046else 6047 OBJDUMP="$ac_cv_prog_OBJDUMP" 6048fi 6049 6050test -z "$OBJDUMP" && OBJDUMP=objdump 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6061$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6062if ${lt_cv_deplibs_check_method+:} false; then : 6063 $as_echo_n "(cached) " >&6 6064else 6065 lt_cv_file_magic_cmd='$MAGIC_CMD' 6066lt_cv_file_magic_test_file= 6067lt_cv_deplibs_check_method='unknown' 6068# Need to set the preceding variable on all platforms that support 6069# interlibrary dependencies. 6070# 'none' -- dependencies not supported. 6071# 'unknown' -- same as none, but documents that we really don't know. 6072# 'pass_all' -- all dependencies passed with no checks. 6073# 'test_compile' -- check by making test program. 6074# 'file_magic [[regex]]' -- check by looking for files in library path 6075# that responds to the $file_magic_cmd with a given extended regex. 6076# If you have 'file' or equivalent on your system and you're not sure 6077# whether 'pass_all' will *always* work, you probably want this one. 6078 6079case $host_os in 6080aix[4-9]*) 6081 lt_cv_deplibs_check_method=pass_all 6082 ;; 6083 6084beos*) 6085 lt_cv_deplibs_check_method=pass_all 6086 ;; 6087 6088bsdi[45]*) 6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6090 lt_cv_file_magic_cmd='/usr/bin/file -L' 6091 lt_cv_file_magic_test_file=/shlib/libc.so 6092 ;; 6093 6094cygwin*) 6095 # func_win32_libid is a shell function defined in ltmain.sh 6096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6097 lt_cv_file_magic_cmd='func_win32_libid' 6098 ;; 6099 6100mingw* | pw32*) 6101 # Base MSYS/MinGW do not provide the 'file' command needed by 6102 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6103 # unless we find 'file', for example because we are cross-compiling. 6104 if ( file / ) >/dev/null 2>&1; then 6105 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6106 lt_cv_file_magic_cmd='func_win32_libid' 6107 else 6108 # Keep this pattern in sync with the one in func_win32_libid. 6109 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6110 lt_cv_file_magic_cmd='$OBJDUMP -f' 6111 fi 6112 ;; 6113 6114cegcc*) 6115 # use the weaker test based on 'objdump'. See mingw*. 6116 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6117 lt_cv_file_magic_cmd='$OBJDUMP -f' 6118 ;; 6119 6120darwin* | rhapsody*) 6121 lt_cv_deplibs_check_method=pass_all 6122 ;; 6123 6124freebsd* | dragonfly*) 6125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6126 case $host_cpu in 6127 i*86 ) 6128 # Not sure whether the presence of OpenBSD here was a mistake. 6129 # Let's accept both of them until this is cleared up. 6130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6131 lt_cv_file_magic_cmd=/usr/bin/file 6132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6133 ;; 6134 esac 6135 else 6136 lt_cv_deplibs_check_method=pass_all 6137 fi 6138 ;; 6139 6140haiku*) 6141 lt_cv_deplibs_check_method=pass_all 6142 ;; 6143 6144hpux10.20* | hpux11*) 6145 lt_cv_file_magic_cmd=/usr/bin/file 6146 case $host_cpu in 6147 ia64*) 6148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6150 ;; 6151 hppa*64*) 6152 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]' 6153 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6154 ;; 6155 *) 6156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6157 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6158 ;; 6159 esac 6160 ;; 6161 6162interix[3-9]*) 6163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6165 ;; 6166 6167irix5* | irix6* | nonstopux*) 6168 case $LD in 6169 *-32|*"-32 ") libmagic=32-bit;; 6170 *-n32|*"-n32 ") libmagic=N32;; 6171 *-64|*"-64 ") libmagic=64-bit;; 6172 *) libmagic=never-match;; 6173 esac 6174 lt_cv_deplibs_check_method=pass_all 6175 ;; 6176 6177# This must be glibc/ELF. 6178linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6179 lt_cv_deplibs_check_method=pass_all 6180 ;; 6181 6182netbsd*) 6183 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6185 else 6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6187 fi 6188 ;; 6189 6190newos6*) 6191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6192 lt_cv_file_magic_cmd=/usr/bin/file 6193 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6194 ;; 6195 6196*nto* | *qnx*) 6197 lt_cv_deplibs_check_method=pass_all 6198 ;; 6199 6200openbsd* | bitrig*) 6201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6203 else 6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6205 fi 6206 ;; 6207 6208osf3* | osf4* | osf5*) 6209 lt_cv_deplibs_check_method=pass_all 6210 ;; 6211 6212rdos*) 6213 lt_cv_deplibs_check_method=pass_all 6214 ;; 6215 6216solaris*) 6217 lt_cv_deplibs_check_method=pass_all 6218 ;; 6219 6220sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223 6224sysv4 | sysv4.3*) 6225 case $host_vendor in 6226 motorola) 6227 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]' 6228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6229 ;; 6230 ncr) 6231 lt_cv_deplibs_check_method=pass_all 6232 ;; 6233 sequent) 6234 lt_cv_file_magic_cmd='/bin/file' 6235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6236 ;; 6237 sni) 6238 lt_cv_file_magic_cmd='/bin/file' 6239 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6240 lt_cv_file_magic_test_file=/lib/libc.so 6241 ;; 6242 siemens) 6243 lt_cv_deplibs_check_method=pass_all 6244 ;; 6245 pc) 6246 lt_cv_deplibs_check_method=pass_all 6247 ;; 6248 esac 6249 ;; 6250 6251tpf*) 6252 lt_cv_deplibs_check_method=pass_all 6253 ;; 6254os2*) 6255 lt_cv_deplibs_check_method=pass_all 6256 ;; 6257esac 6258 6259fi 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6261$as_echo "$lt_cv_deplibs_check_method" >&6; } 6262 6263file_magic_glob= 6264want_nocaseglob=no 6265if test "$build" = "$host"; then 6266 case $host_os in 6267 mingw* | pw32*) 6268 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6269 want_nocaseglob=yes 6270 else 6271 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6272 fi 6273 ;; 6274 esac 6275fi 6276 6277file_magic_cmd=$lt_cv_file_magic_cmd 6278deplibs_check_method=$lt_cv_deplibs_check_method 6279test -z "$deplibs_check_method" && deplibs_check_method=unknown 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302if test -n "$ac_tool_prefix"; then 6303 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6304set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then : 6308 $as_echo_n "(cached) " >&6 6309else 6310 if test -n "$DLLTOOL"; then 6311 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" 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 6330DLLTOOL=$ac_cv_prog_DLLTOOL 6331if test -n "$DLLTOOL"; then 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6333$as_echo "$DLLTOOL" >&6; } 6334else 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6336$as_echo "no" >&6; } 6337fi 6338 6339 6340fi 6341if test -z "$ac_cv_prog_DLLTOOL"; then 6342 ac_ct_DLLTOOL=$DLLTOOL 6343 # Extract the first word of "dlltool", so it can be a program name with args. 6344set dummy dlltool; ac_word=$2 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6346$as_echo_n "checking for $ac_word... " >&6; } 6347if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6348 $as_echo_n "(cached) " >&6 6349else 6350 if test -n "$ac_ct_DLLTOOL"; then 6351 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6352else 6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6354for as_dir in $PATH 6355do 6356 IFS=$as_save_IFS 6357 test -z "$as_dir" && as_dir=. 6358 for ac_exec_ext in '' $ac_executable_extensions; do 6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6360 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6362 break 2 6363 fi 6364done 6365 done 6366IFS=$as_save_IFS 6367 6368fi 6369fi 6370ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6371if test -n "$ac_ct_DLLTOOL"; then 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6373$as_echo "$ac_ct_DLLTOOL" >&6; } 6374else 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6376$as_echo "no" >&6; } 6377fi 6378 6379 if test "x$ac_ct_DLLTOOL" = x; then 6380 DLLTOOL="false" 6381 else 6382 case $cross_compiling:$ac_tool_warned in 6383yes:) 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6386ac_tool_warned=yes ;; 6387esac 6388 DLLTOOL=$ac_ct_DLLTOOL 6389 fi 6390else 6391 DLLTOOL="$ac_cv_prog_DLLTOOL" 6392fi 6393 6394test -z "$DLLTOOL" && DLLTOOL=dlltool 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6406$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6407if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 lt_cv_sharedlib_from_linklib_cmd='unknown' 6411 6412case $host_os in 6413cygwin* | mingw* | pw32* | cegcc*) 6414 # two different shell functions defined in ltmain.sh; 6415 # decide which one to use based on capabilities of $DLLTOOL 6416 case `$DLLTOOL --help 2>&1` in 6417 *--identify-strict*) 6418 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6419 ;; 6420 *) 6421 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6422 ;; 6423 esac 6424 ;; 6425*) 6426 # fallback: assume linklib IS sharedlib 6427 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6428 ;; 6429esac 6430 6431fi 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6433$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6434sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6435test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6436 6437 6438 6439 6440 6441 6442 6443if test -n "$ac_tool_prefix"; then 6444 for ac_prog in ar 6445 do 6446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6447set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449$as_echo_n "checking for $ac_word... " >&6; } 6450if ${ac_cv_prog_AR+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 if test -n "$AR"; then 6454 ac_cv_prog_AR="$AR" # Let the user override the test. 6455else 6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6457for as_dir in $PATH 6458do 6459 IFS=$as_save_IFS 6460 test -z "$as_dir" && as_dir=. 6461 for ac_exec_ext in '' $ac_executable_extensions; do 6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6463 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6465 break 2 6466 fi 6467done 6468 done 6469IFS=$as_save_IFS 6470 6471fi 6472fi 6473AR=$ac_cv_prog_AR 6474if test -n "$AR"; then 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6476$as_echo "$AR" >&6; } 6477else 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479$as_echo "no" >&6; } 6480fi 6481 6482 6483 test -n "$AR" && break 6484 done 6485fi 6486if test -z "$AR"; then 6487 ac_ct_AR=$AR 6488 for ac_prog in ar 6489do 6490 # Extract the first word of "$ac_prog", so it can be a program name with args. 6491set dummy $ac_prog; ac_word=$2 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6493$as_echo_n "checking for $ac_word... " >&6; } 6494if ${ac_cv_prog_ac_ct_AR+:} false; then : 6495 $as_echo_n "(cached) " >&6 6496else 6497 if test -n "$ac_ct_AR"; then 6498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6499else 6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6501for as_dir in $PATH 6502do 6503 IFS=$as_save_IFS 6504 test -z "$as_dir" && as_dir=. 6505 for ac_exec_ext in '' $ac_executable_extensions; do 6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6507 ac_cv_prog_ac_ct_AR="$ac_prog" 6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6509 break 2 6510 fi 6511done 6512 done 6513IFS=$as_save_IFS 6514 6515fi 6516fi 6517ac_ct_AR=$ac_cv_prog_ac_ct_AR 6518if test -n "$ac_ct_AR"; then 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6520$as_echo "$ac_ct_AR" >&6; } 6521else 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6523$as_echo "no" >&6; } 6524fi 6525 6526 6527 test -n "$ac_ct_AR" && break 6528done 6529 6530 if test "x$ac_ct_AR" = x; then 6531 AR="false" 6532 else 6533 case $cross_compiling:$ac_tool_warned in 6534yes:) 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6537ac_tool_warned=yes ;; 6538esac 6539 AR=$ac_ct_AR 6540 fi 6541fi 6542 6543: ${AR=ar} 6544 6545 6546 6547 6548 6549 6550# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6551# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6552# higher priority because thats what people were doing historically (setting 6553# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6554# variable obsoleted/removed. 6555 6556test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6557lt_ar_flags=$AR_FLAGS 6558 6559 6560 6561 6562 6563 6564# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6565# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6566 6567 6568 6569 6570 6571 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6573$as_echo_n "checking for archiver @FILE support... " >&6; } 6574if ${lt_cv_ar_at_file+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 lt_cv_ar_at_file=no 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580 6581int 6582main () 6583{ 6584 6585 ; 6586 return 0; 6587} 6588_ACEOF 6589if ac_fn_c_try_compile "$LINENO"; then : 6590 echo conftest.$ac_objext > conftest.lst 6591 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6593 (eval $lt_ar_try) 2>&5 6594 ac_status=$? 6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6596 test $ac_status = 0; } 6597 if test 0 -eq "$ac_status"; then 6598 # Ensure the archiver fails upon bogus file names. 6599 rm -f conftest.$ac_objext libconftest.a 6600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6601 (eval $lt_ar_try) 2>&5 6602 ac_status=$? 6603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6604 test $ac_status = 0; } 6605 if test 0 -ne "$ac_status"; then 6606 lt_cv_ar_at_file=@ 6607 fi 6608 fi 6609 rm -f conftest.* libconftest.a 6610 6611fi 6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6613 6614fi 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6616$as_echo "$lt_cv_ar_at_file" >&6; } 6617 6618if test no = "$lt_cv_ar_at_file"; then 6619 archiver_list_spec= 6620else 6621 archiver_list_spec=$lt_cv_ar_at_file 6622fi 6623 6624 6625 6626 6627 6628 6629 6630if test -n "$ac_tool_prefix"; then 6631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6632set dummy ${ac_tool_prefix}strip; ac_word=$2 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6634$as_echo_n "checking for $ac_word... " >&6; } 6635if ${ac_cv_prog_STRIP+:} false; then : 6636 $as_echo_n "(cached) " >&6 6637else 6638 if test -n "$STRIP"; then 6639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6640else 6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6642for as_dir in $PATH 6643do 6644 IFS=$as_save_IFS 6645 test -z "$as_dir" && as_dir=. 6646 for ac_exec_ext in '' $ac_executable_extensions; do 6647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6648 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6650 break 2 6651 fi 6652done 6653 done 6654IFS=$as_save_IFS 6655 6656fi 6657fi 6658STRIP=$ac_cv_prog_STRIP 6659if test -n "$STRIP"; then 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6661$as_echo "$STRIP" >&6; } 6662else 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664$as_echo "no" >&6; } 6665fi 6666 6667 6668fi 6669if test -z "$ac_cv_prog_STRIP"; then 6670 ac_ct_STRIP=$STRIP 6671 # Extract the first word of "strip", so it can be a program name with args. 6672set dummy strip; ac_word=$2 6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6674$as_echo_n "checking for $ac_word... " >&6; } 6675if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6676 $as_echo_n "(cached) " >&6 6677else 6678 if test -n "$ac_ct_STRIP"; then 6679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6680else 6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6682for as_dir in $PATH 6683do 6684 IFS=$as_save_IFS 6685 test -z "$as_dir" && as_dir=. 6686 for ac_exec_ext in '' $ac_executable_extensions; do 6687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6688 ac_cv_prog_ac_ct_STRIP="strip" 6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6690 break 2 6691 fi 6692done 6693 done 6694IFS=$as_save_IFS 6695 6696fi 6697fi 6698ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6699if test -n "$ac_ct_STRIP"; then 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6701$as_echo "$ac_ct_STRIP" >&6; } 6702else 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6704$as_echo "no" >&6; } 6705fi 6706 6707 if test "x$ac_ct_STRIP" = x; then 6708 STRIP=":" 6709 else 6710 case $cross_compiling:$ac_tool_warned in 6711yes:) 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6714ac_tool_warned=yes ;; 6715esac 6716 STRIP=$ac_ct_STRIP 6717 fi 6718else 6719 STRIP="$ac_cv_prog_STRIP" 6720fi 6721 6722test -z "$STRIP" && STRIP=: 6723 6724 6725 6726 6727 6728 6729if test -n "$ac_tool_prefix"; then 6730 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6731set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6733$as_echo_n "checking for $ac_word... " >&6; } 6734if ${ac_cv_prog_RANLIB+:} false; then : 6735 $as_echo_n "(cached) " >&6 6736else 6737 if test -n "$RANLIB"; then 6738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6739else 6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741for as_dir in $PATH 6742do 6743 IFS=$as_save_IFS 6744 test -z "$as_dir" && as_dir=. 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6747 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751done 6752 done 6753IFS=$as_save_IFS 6754 6755fi 6756fi 6757RANLIB=$ac_cv_prog_RANLIB 6758if test -n "$RANLIB"; then 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6760$as_echo "$RANLIB" >&6; } 6761else 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763$as_echo "no" >&6; } 6764fi 6765 6766 6767fi 6768if test -z "$ac_cv_prog_RANLIB"; then 6769 ac_ct_RANLIB=$RANLIB 6770 # Extract the first word of "ranlib", so it can be a program name with args. 6771set dummy ranlib; ac_word=$2 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773$as_echo_n "checking for $ac_word... " >&6; } 6774if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 if test -n "$ac_ct_RANLIB"; then 6778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6779else 6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6781for as_dir in $PATH 6782do 6783 IFS=$as_save_IFS 6784 test -z "$as_dir" && as_dir=. 6785 for ac_exec_ext in '' $ac_executable_extensions; do 6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6787 ac_cv_prog_ac_ct_RANLIB="ranlib" 6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6789 break 2 6790 fi 6791done 6792 done 6793IFS=$as_save_IFS 6794 6795fi 6796fi 6797ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6798if test -n "$ac_ct_RANLIB"; then 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6800$as_echo "$ac_ct_RANLIB" >&6; } 6801else 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6803$as_echo "no" >&6; } 6804fi 6805 6806 if test "x$ac_ct_RANLIB" = x; then 6807 RANLIB=":" 6808 else 6809 case $cross_compiling:$ac_tool_warned in 6810yes:) 6811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6813ac_tool_warned=yes ;; 6814esac 6815 RANLIB=$ac_ct_RANLIB 6816 fi 6817else 6818 RANLIB="$ac_cv_prog_RANLIB" 6819fi 6820 6821test -z "$RANLIB" && RANLIB=: 6822 6823 6824 6825 6826 6827 6828# Determine commands to create old-style static archives. 6829old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6830old_postinstall_cmds='chmod 644 $oldlib' 6831old_postuninstall_cmds= 6832 6833if test -n "$RANLIB"; then 6834 case $host_os in 6835 bitrig* | openbsd*) 6836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6837 ;; 6838 *) 6839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6840 ;; 6841 esac 6842 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6843fi 6844 6845case $host_os in 6846 darwin*) 6847 lock_old_archive_extraction=yes ;; 6848 *) 6849 lock_old_archive_extraction=no ;; 6850esac 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890# If no C compiler was specified, use CC. 6891LTCC=${LTCC-"$CC"} 6892 6893# If no C compiler flags were specified, use CFLAGS. 6894LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6895 6896# Allow CC to be a program name with arguments. 6897compiler=$CC 6898 6899 6900# Check for command to grab the raw symbol name followed by C symbol from nm. 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6902$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6903if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6904 $as_echo_n "(cached) " >&6 6905else 6906 6907# These are sane defaults that work on at least a few old systems. 6908# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6909 6910# Character class describing NM global symbol codes. 6911symcode='[BCDEGRST]' 6912 6913# Regexp to match symbols that can be accessed directly from C. 6914sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6915 6916# Define system-specific variables. 6917case $host_os in 6918aix*) 6919 symcode='[BCDT]' 6920 ;; 6921cygwin* | mingw* | pw32* | cegcc*) 6922 symcode='[ABCDGISTW]' 6923 ;; 6924hpux*) 6925 if test ia64 = "$host_cpu"; then 6926 symcode='[ABCDEGRST]' 6927 fi 6928 ;; 6929irix* | nonstopux*) 6930 symcode='[BCDEGRST]' 6931 ;; 6932osf*) 6933 symcode='[BCDEGQRST]' 6934 ;; 6935solaris*) 6936 symcode='[BDRT]' 6937 ;; 6938sco3.2v5*) 6939 symcode='[DT]' 6940 ;; 6941sysv4.2uw2*) 6942 symcode='[DT]' 6943 ;; 6944sysv5* | sco5v6* | unixware* | OpenUNIX*) 6945 symcode='[ABDT]' 6946 ;; 6947sysv4) 6948 symcode='[DFNSTU]' 6949 ;; 6950esac 6951 6952# If we're using GNU nm, then use its standard symbol codes. 6953case `$NM -V 2>&1` in 6954*GNU* | *'with BFD'*) 6955 symcode='[ABCDGIRSTW]' ;; 6956esac 6957 6958if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6959 # Gets list of data symbols to import. 6960 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6961 # Adjust the below global symbol transforms to fixup imported variables. 6962 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6963 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6964 lt_c_name_lib_hook="\ 6965 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6966 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6967else 6968 # Disable hooks by default. 6969 lt_cv_sys_global_symbol_to_import= 6970 lt_cdecl_hook= 6971 lt_c_name_hook= 6972 lt_c_name_lib_hook= 6973fi 6974 6975# Transform an extracted symbol line into a proper C declaration. 6976# Some systems (esp. on ia64) link data and code symbols differently, 6977# so use this general approach. 6978lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6979$lt_cdecl_hook\ 6980" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6981" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6982 6983# Transform an extracted symbol line into symbol name and symbol address 6984lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6985$lt_c_name_hook\ 6986" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6987" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6988 6989# Transform an extracted symbol line into symbol name with lib prefix and 6990# symbol address. 6991lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6992$lt_c_name_lib_hook\ 6993" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6994" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6995" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6996 6997# Handle CRLF in mingw tool chain 6998opt_cr= 6999case $build_os in 7000mingw*) 7001 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7002 ;; 7003esac 7004 7005# Try without a prefix underscore, then with it. 7006for ac_symprfx in "" "_"; do 7007 7008 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7009 symxfrm="\\1 $ac_symprfx\\2 \\2" 7010 7011 # Write the raw and C identifiers. 7012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7013 # Fake it for dumpbin and say T for any non-static function, 7014 # D for any global variable and I for any imported variable. 7015 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7016 # which start with @ or ?. 7017 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7018" {last_section=section; section=\$ 3};"\ 7019" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7020" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7021" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7022" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7023" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7024" \$ 0!~/External *\|/{next};"\ 7025" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7026" {if(hide[section]) next};"\ 7027" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7028" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7029" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7030" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7031" ' prfx=^$ac_symprfx" 7032 else 7033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7034 fi 7035 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7036 7037 # Check to see that the pipe works correctly. 7038 pipe_works=no 7039 7040 rm -f conftest* 7041 cat > conftest.$ac_ext <<_LT_EOF 7042#ifdef __cplusplus 7043extern "C" { 7044#endif 7045char nm_test_var; 7046void nm_test_func(void); 7047void nm_test_func(void){} 7048#ifdef __cplusplus 7049} 7050#endif 7051int main(){nm_test_var='a';nm_test_func();return(0);} 7052_LT_EOF 7053 7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7055 (eval $ac_compile) 2>&5 7056 ac_status=$? 7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7058 test $ac_status = 0; }; then 7059 # Now try to grab the symbols. 7060 nlist=conftest.nm 7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7062 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7063 ac_status=$? 7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7065 test $ac_status = 0; } && test -s "$nlist"; then 7066 # Try sorting and uniquifying the output. 7067 if sort "$nlist" | uniq > "$nlist"T; then 7068 mv -f "$nlist"T "$nlist" 7069 else 7070 rm -f "$nlist"T 7071 fi 7072 7073 # Make sure that we snagged all the symbols we need. 7074 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7075 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7076 cat <<_LT_EOF > conftest.$ac_ext 7077/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7078#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7079/* DATA imports from DLLs on WIN32 can't be const, because runtime 7080 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7081# define LT_DLSYM_CONST 7082#elif defined __osf__ 7083/* This system does not cope well with relocations in const data. */ 7084# define LT_DLSYM_CONST 7085#else 7086# define LT_DLSYM_CONST const 7087#endif 7088 7089#ifdef __cplusplus 7090extern "C" { 7091#endif 7092 7093_LT_EOF 7094 # Now generate the symbol file. 7095 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7096 7097 cat <<_LT_EOF >> conftest.$ac_ext 7098 7099/* The mapping between symbol names and symbols. */ 7100LT_DLSYM_CONST struct { 7101 const char *name; 7102 void *address; 7103} 7104lt__PROGRAM__LTX_preloaded_symbols[] = 7105{ 7106 { "@PROGRAM@", (void *) 0 }, 7107_LT_EOF 7108 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7109 cat <<\_LT_EOF >> conftest.$ac_ext 7110 {0, (void *) 0} 7111}; 7112 7113/* This works around a problem in FreeBSD linker */ 7114#ifdef FREEBSD_WORKAROUND 7115static const void *lt_preloaded_setup() { 7116 return lt__PROGRAM__LTX_preloaded_symbols; 7117} 7118#endif 7119 7120#ifdef __cplusplus 7121} 7122#endif 7123_LT_EOF 7124 # Now try linking the two files. 7125 mv conftest.$ac_objext conftstm.$ac_objext 7126 lt_globsym_save_LIBS=$LIBS 7127 lt_globsym_save_CFLAGS=$CFLAGS 7128 LIBS=conftstm.$ac_objext 7129 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7131 (eval $ac_link) 2>&5 7132 ac_status=$? 7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7134 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7135 pipe_works=yes 7136 fi 7137 LIBS=$lt_globsym_save_LIBS 7138 CFLAGS=$lt_globsym_save_CFLAGS 7139 else 7140 echo "cannot find nm_test_func in $nlist" >&5 7141 fi 7142 else 7143 echo "cannot find nm_test_var in $nlist" >&5 7144 fi 7145 else 7146 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7147 fi 7148 else 7149 echo "$progname: failed program was:" >&5 7150 cat conftest.$ac_ext >&5 7151 fi 7152 rm -rf conftest* conftst* 7153 7154 # Do not use the global_symbol_pipe unless it works. 7155 if test yes = "$pipe_works"; then 7156 break 7157 else 7158 lt_cv_sys_global_symbol_pipe= 7159 fi 7160done 7161 7162fi 7163 7164if test -z "$lt_cv_sys_global_symbol_pipe"; then 7165 lt_cv_sys_global_symbol_to_cdecl= 7166fi 7167if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7169$as_echo "failed" >&6; } 7170else 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7172$as_echo "ok" >&6; } 7173fi 7174 7175# Response file support. 7176if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7177 nm_file_list_spec='@' 7178elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7179 nm_file_list_spec='@' 7180fi 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7219$as_echo_n "checking for sysroot... " >&6; } 7220 7221# Check whether --with-sysroot was given. 7222if test "${with_sysroot+set}" = set; then : 7223 withval=$with_sysroot; 7224else 7225 with_sysroot=no 7226fi 7227 7228 7229lt_sysroot= 7230case $with_sysroot in #( 7231 yes) 7232 if test yes = "$GCC"; then 7233 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7234 fi 7235 ;; #( 7236 /*) 7237 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7238 ;; #( 7239 no|'') 7240 ;; #( 7241 *) 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7243$as_echo "$with_sysroot" >&6; } 7244 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7245 ;; 7246esac 7247 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7249$as_echo "${lt_sysroot:-no}" >&6; } 7250 7251 7252 7253 7254 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7256$as_echo_n "checking for a working dd... " >&6; } 7257if ${ac_cv_path_lt_DD+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 printf 0123456789abcdef0123456789abcdef >conftest.i 7261cat conftest.i conftest.i >conftest2.i 7262: ${lt_DD:=$DD} 7263if test -z "$lt_DD"; then 7264 ac_path_lt_DD_found=false 7265 # Loop through the user's path and test for each of PROGNAME-LIST 7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7267for as_dir in $PATH 7268do 7269 IFS=$as_save_IFS 7270 test -z "$as_dir" && as_dir=. 7271 for ac_prog in dd; do 7272 for ac_exec_ext in '' $ac_executable_extensions; do 7273 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7274 as_fn_executable_p "$ac_path_lt_DD" || continue 7275if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7276 cmp -s conftest.i conftest.out \ 7277 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7278fi 7279 $ac_path_lt_DD_found && break 3 7280 done 7281 done 7282 done 7283IFS=$as_save_IFS 7284 if test -z "$ac_cv_path_lt_DD"; then 7285 : 7286 fi 7287else 7288 ac_cv_path_lt_DD=$lt_DD 7289fi 7290 7291rm -f conftest.i conftest2.i conftest.out 7292fi 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7294$as_echo "$ac_cv_path_lt_DD" >&6; } 7295 7296 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7298$as_echo_n "checking how to truncate binary pipes... " >&6; } 7299if ${lt_cv_truncate_bin+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 printf 0123456789abcdef0123456789abcdef >conftest.i 7303cat conftest.i conftest.i >conftest2.i 7304lt_cv_truncate_bin= 7305if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7306 cmp -s conftest.i conftest.out \ 7307 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7308fi 7309rm -f conftest.i conftest2.i conftest.out 7310test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7311fi 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7313$as_echo "$lt_cv_truncate_bin" >&6; } 7314 7315 7316 7317 7318 7319 7320 7321# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7322func_cc_basename () 7323{ 7324 for cc_temp in $*""; do 7325 case $cc_temp in 7326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7328 \-*) ;; 7329 *) break;; 7330 esac 7331 done 7332 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7333} 7334 7335# Check whether --enable-libtool-lock was given. 7336if test "${enable_libtool_lock+set}" = set; then : 7337 enableval=$enable_libtool_lock; 7338fi 7339 7340test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7341 7342# Some flags need to be propagated to the compiler or linker for good 7343# libtool support. 7344case $host in 7345ia64-*-hpux*) 7346 # Find out what ABI is being produced by ac_compile, and set mode 7347 # options accordingly. 7348 echo 'int i;' > conftest.$ac_ext 7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7350 (eval $ac_compile) 2>&5 7351 ac_status=$? 7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7353 test $ac_status = 0; }; then 7354 case `/usr/bin/file conftest.$ac_objext` in 7355 *ELF-32*) 7356 HPUX_IA64_MODE=32 7357 ;; 7358 *ELF-64*) 7359 HPUX_IA64_MODE=64 7360 ;; 7361 esac 7362 fi 7363 rm -rf conftest* 7364 ;; 7365*-*-irix6*) 7366 # Find out what ABI is being produced by ac_compile, and set linker 7367 # options accordingly. 7368 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7370 (eval $ac_compile) 2>&5 7371 ac_status=$? 7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7373 test $ac_status = 0; }; then 7374 if test yes = "$lt_cv_prog_gnu_ld"; then 7375 case `/usr/bin/file conftest.$ac_objext` in 7376 *32-bit*) 7377 LD="${LD-ld} -melf32bsmip" 7378 ;; 7379 *N32*) 7380 LD="${LD-ld} -melf32bmipn32" 7381 ;; 7382 *64-bit*) 7383 LD="${LD-ld} -melf64bmip" 7384 ;; 7385 esac 7386 else 7387 case `/usr/bin/file conftest.$ac_objext` in 7388 *32-bit*) 7389 LD="${LD-ld} -32" 7390 ;; 7391 *N32*) 7392 LD="${LD-ld} -n32" 7393 ;; 7394 *64-bit*) 7395 LD="${LD-ld} -64" 7396 ;; 7397 esac 7398 fi 7399 fi 7400 rm -rf conftest* 7401 ;; 7402 7403mips64*-*linux*) 7404 # Find out what ABI is being produced by ac_compile, and set linker 7405 # options accordingly. 7406 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7408 (eval $ac_compile) 2>&5 7409 ac_status=$? 7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7411 test $ac_status = 0; }; then 7412 emul=elf 7413 case `/usr/bin/file conftest.$ac_objext` in 7414 *32-bit*) 7415 emul="${emul}32" 7416 ;; 7417 *64-bit*) 7418 emul="${emul}64" 7419 ;; 7420 esac 7421 case `/usr/bin/file conftest.$ac_objext` in 7422 *MSB*) 7423 emul="${emul}btsmip" 7424 ;; 7425 *LSB*) 7426 emul="${emul}ltsmip" 7427 ;; 7428 esac 7429 case `/usr/bin/file conftest.$ac_objext` in 7430 *N32*) 7431 emul="${emul}n32" 7432 ;; 7433 esac 7434 LD="${LD-ld} -m $emul" 7435 fi 7436 rm -rf conftest* 7437 ;; 7438 7439x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7440s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7441 # Find out what ABI is being produced by ac_compile, and set linker 7442 # options accordingly. Note that the listed cases only cover the 7443 # situations where additional linker options are needed (such as when 7444 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7445 # vice versa); the common cases where no linker options are needed do 7446 # not appear in the list. 7447 echo 'int i;' > conftest.$ac_ext 7448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7449 (eval $ac_compile) 2>&5 7450 ac_status=$? 7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7452 test $ac_status = 0; }; then 7453 case `/usr/bin/file conftest.o` in 7454 *32-bit*) 7455 case $host in 7456 x86_64-*kfreebsd*-gnu) 7457 LD="${LD-ld} -m elf_i386_fbsd" 7458 ;; 7459 x86_64-*linux*) 7460 case `/usr/bin/file conftest.o` in 7461 *x86-64*) 7462 LD="${LD-ld} -m elf32_x86_64" 7463 ;; 7464 *) 7465 LD="${LD-ld} -m elf_i386" 7466 ;; 7467 esac 7468 ;; 7469 powerpc64le-*linux*) 7470 LD="${LD-ld} -m elf32lppclinux" 7471 ;; 7472 powerpc64-*linux*) 7473 LD="${LD-ld} -m elf32ppclinux" 7474 ;; 7475 s390x-*linux*) 7476 LD="${LD-ld} -m elf_s390" 7477 ;; 7478 sparc64-*linux*) 7479 LD="${LD-ld} -m elf32_sparc" 7480 ;; 7481 esac 7482 ;; 7483 *64-bit*) 7484 case $host in 7485 x86_64-*kfreebsd*-gnu) 7486 LD="${LD-ld} -m elf_x86_64_fbsd" 7487 ;; 7488 x86_64-*linux*) 7489 LD="${LD-ld} -m elf_x86_64" 7490 ;; 7491 powerpcle-*linux*) 7492 LD="${LD-ld} -m elf64lppc" 7493 ;; 7494 powerpc-*linux*) 7495 LD="${LD-ld} -m elf64ppc" 7496 ;; 7497 s390*-*linux*|s390*-*tpf*) 7498 LD="${LD-ld} -m elf64_s390" 7499 ;; 7500 sparc*-*linux*) 7501 LD="${LD-ld} -m elf64_sparc" 7502 ;; 7503 esac 7504 ;; 7505 esac 7506 fi 7507 rm -rf conftest* 7508 ;; 7509 7510*-*-sco3.2v5*) 7511 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7512 SAVE_CFLAGS=$CFLAGS 7513 CFLAGS="$CFLAGS -belf" 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7515$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7516if ${lt_cv_cc_needs_belf+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 ac_ext=c 7520ac_cpp='$CPP $CPPFLAGS' 7521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7523ac_compiler_gnu=$ac_cv_c_compiler_gnu 7524 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526/* end confdefs.h. */ 7527 7528int 7529main () 7530{ 7531 7532 ; 7533 return 0; 7534} 7535_ACEOF 7536if ac_fn_c_try_link "$LINENO"; then : 7537 lt_cv_cc_needs_belf=yes 7538else 7539 lt_cv_cc_needs_belf=no 7540fi 7541rm -f core conftest.err conftest.$ac_objext \ 7542 conftest$ac_exeext conftest.$ac_ext 7543 ac_ext=c 7544ac_cpp='$CPP $CPPFLAGS' 7545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7547ac_compiler_gnu=$ac_cv_c_compiler_gnu 7548 7549fi 7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7551$as_echo "$lt_cv_cc_needs_belf" >&6; } 7552 if test yes != "$lt_cv_cc_needs_belf"; then 7553 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7554 CFLAGS=$SAVE_CFLAGS 7555 fi 7556 ;; 7557*-*solaris*) 7558 # Find out what ABI is being produced by ac_compile, and set linker 7559 # options accordingly. 7560 echo 'int i;' > conftest.$ac_ext 7561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7562 (eval $ac_compile) 2>&5 7563 ac_status=$? 7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7565 test $ac_status = 0; }; then 7566 case `/usr/bin/file conftest.o` in 7567 *64-bit*) 7568 case $lt_cv_prog_gnu_ld in 7569 yes*) 7570 case $host in 7571 i?86-*-solaris*|x86_64-*-solaris*) 7572 LD="${LD-ld} -m elf_x86_64" 7573 ;; 7574 sparc*-*-solaris*) 7575 LD="${LD-ld} -m elf64_sparc" 7576 ;; 7577 esac 7578 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7579 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7580 LD=${LD-ld}_sol2 7581 fi 7582 ;; 7583 *) 7584 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7585 LD="${LD-ld} -64" 7586 fi 7587 ;; 7588 esac 7589 ;; 7590 esac 7591 fi 7592 rm -rf conftest* 7593 ;; 7594esac 7595 7596need_locks=$enable_libtool_lock 7597 7598if test -n "$ac_tool_prefix"; then 7599 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7600set dummy ${ac_tool_prefix}mt; ac_word=$2 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7602$as_echo_n "checking for $ac_word... " >&6; } 7603if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7604 $as_echo_n "(cached) " >&6 7605else 7606 if test -n "$MANIFEST_TOOL"; then 7607 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7608else 7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7610for as_dir in $PATH 7611do 7612 IFS=$as_save_IFS 7613 test -z "$as_dir" && as_dir=. 7614 for ac_exec_ext in '' $ac_executable_extensions; do 7615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7616 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7618 break 2 7619 fi 7620done 7621 done 7622IFS=$as_save_IFS 7623 7624fi 7625fi 7626MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7627if test -n "$MANIFEST_TOOL"; then 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7629$as_echo "$MANIFEST_TOOL" >&6; } 7630else 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7632$as_echo "no" >&6; } 7633fi 7634 7635 7636fi 7637if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7638 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7639 # Extract the first word of "mt", so it can be a program name with args. 7640set dummy mt; ac_word=$2 7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7642$as_echo_n "checking for $ac_word... " >&6; } 7643if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7644 $as_echo_n "(cached) " >&6 7645else 7646 if test -n "$ac_ct_MANIFEST_TOOL"; then 7647 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7648else 7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7650for as_dir in $PATH 7651do 7652 IFS=$as_save_IFS 7653 test -z "$as_dir" && as_dir=. 7654 for ac_exec_ext in '' $ac_executable_extensions; do 7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7656 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7658 break 2 7659 fi 7660done 7661 done 7662IFS=$as_save_IFS 7663 7664fi 7665fi 7666ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7667if test -n "$ac_ct_MANIFEST_TOOL"; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7669$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7670else 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7672$as_echo "no" >&6; } 7673fi 7674 7675 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7676 MANIFEST_TOOL=":" 7677 else 7678 case $cross_compiling:$ac_tool_warned in 7679yes:) 7680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7682ac_tool_warned=yes ;; 7683esac 7684 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7685 fi 7686else 7687 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7688fi 7689 7690test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7692$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7693if ${lt_cv_path_mainfest_tool+:} false; then : 7694 $as_echo_n "(cached) " >&6 7695else 7696 lt_cv_path_mainfest_tool=no 7697 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7698 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7699 cat conftest.err >&5 7700 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7701 lt_cv_path_mainfest_tool=yes 7702 fi 7703 rm -f conftest* 7704fi 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7706$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7707if test yes != "$lt_cv_path_mainfest_tool"; then 7708 MANIFEST_TOOL=: 7709fi 7710 7711 7712 7713 7714 7715 7716 case $host_os in 7717 rhapsody* | darwin*) 7718 if test -n "$ac_tool_prefix"; then 7719 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7720set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7722$as_echo_n "checking for $ac_word... " >&6; } 7723if ${ac_cv_prog_DSYMUTIL+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 if test -n "$DSYMUTIL"; then 7727 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7728else 7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7730for as_dir in $PATH 7731do 7732 IFS=$as_save_IFS 7733 test -z "$as_dir" && as_dir=. 7734 for ac_exec_ext in '' $ac_executable_extensions; do 7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7736 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7738 break 2 7739 fi 7740done 7741 done 7742IFS=$as_save_IFS 7743 7744fi 7745fi 7746DSYMUTIL=$ac_cv_prog_DSYMUTIL 7747if test -n "$DSYMUTIL"; then 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7749$as_echo "$DSYMUTIL" >&6; } 7750else 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7752$as_echo "no" >&6; } 7753fi 7754 7755 7756fi 7757if test -z "$ac_cv_prog_DSYMUTIL"; then 7758 ac_ct_DSYMUTIL=$DSYMUTIL 7759 # Extract the first word of "dsymutil", so it can be a program name with args. 7760set dummy dsymutil; ac_word=$2 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7762$as_echo_n "checking for $ac_word... " >&6; } 7763if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7764 $as_echo_n "(cached) " >&6 7765else 7766 if test -n "$ac_ct_DSYMUTIL"; then 7767 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7768else 7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7770for as_dir in $PATH 7771do 7772 IFS=$as_save_IFS 7773 test -z "$as_dir" && as_dir=. 7774 for ac_exec_ext in '' $ac_executable_extensions; do 7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7776 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7778 break 2 7779 fi 7780done 7781 done 7782IFS=$as_save_IFS 7783 7784fi 7785fi 7786ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7787if test -n "$ac_ct_DSYMUTIL"; then 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7789$as_echo "$ac_ct_DSYMUTIL" >&6; } 7790else 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7792$as_echo "no" >&6; } 7793fi 7794 7795 if test "x$ac_ct_DSYMUTIL" = x; then 7796 DSYMUTIL=":" 7797 else 7798 case $cross_compiling:$ac_tool_warned in 7799yes:) 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7802ac_tool_warned=yes ;; 7803esac 7804 DSYMUTIL=$ac_ct_DSYMUTIL 7805 fi 7806else 7807 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7808fi 7809 7810 if test -n "$ac_tool_prefix"; then 7811 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7812set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7814$as_echo_n "checking for $ac_word... " >&6; } 7815if ${ac_cv_prog_NMEDIT+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 if test -n "$NMEDIT"; then 7819 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7820else 7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7822for as_dir in $PATH 7823do 7824 IFS=$as_save_IFS 7825 test -z "$as_dir" && as_dir=. 7826 for ac_exec_ext in '' $ac_executable_extensions; do 7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7828 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7830 break 2 7831 fi 7832done 7833 done 7834IFS=$as_save_IFS 7835 7836fi 7837fi 7838NMEDIT=$ac_cv_prog_NMEDIT 7839if test -n "$NMEDIT"; then 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7841$as_echo "$NMEDIT" >&6; } 7842else 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7844$as_echo "no" >&6; } 7845fi 7846 7847 7848fi 7849if test -z "$ac_cv_prog_NMEDIT"; then 7850 ac_ct_NMEDIT=$NMEDIT 7851 # Extract the first word of "nmedit", so it can be a program name with args. 7852set dummy nmedit; ac_word=$2 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7854$as_echo_n "checking for $ac_word... " >&6; } 7855if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 if test -n "$ac_ct_NMEDIT"; then 7859 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7860else 7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7862for as_dir in $PATH 7863do 7864 IFS=$as_save_IFS 7865 test -z "$as_dir" && as_dir=. 7866 for ac_exec_ext in '' $ac_executable_extensions; do 7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7868 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7870 break 2 7871 fi 7872done 7873 done 7874IFS=$as_save_IFS 7875 7876fi 7877fi 7878ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7879if test -n "$ac_ct_NMEDIT"; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7881$as_echo "$ac_ct_NMEDIT" >&6; } 7882else 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7884$as_echo "no" >&6; } 7885fi 7886 7887 if test "x$ac_ct_NMEDIT" = x; then 7888 NMEDIT=":" 7889 else 7890 case $cross_compiling:$ac_tool_warned in 7891yes:) 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7894ac_tool_warned=yes ;; 7895esac 7896 NMEDIT=$ac_ct_NMEDIT 7897 fi 7898else 7899 NMEDIT="$ac_cv_prog_NMEDIT" 7900fi 7901 7902 if test -n "$ac_tool_prefix"; then 7903 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7904set dummy ${ac_tool_prefix}lipo; ac_word=$2 7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7906$as_echo_n "checking for $ac_word... " >&6; } 7907if ${ac_cv_prog_LIPO+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 if test -n "$LIPO"; then 7911 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7912else 7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7914for as_dir in $PATH 7915do 7916 IFS=$as_save_IFS 7917 test -z "$as_dir" && as_dir=. 7918 for ac_exec_ext in '' $ac_executable_extensions; do 7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7920 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7922 break 2 7923 fi 7924done 7925 done 7926IFS=$as_save_IFS 7927 7928fi 7929fi 7930LIPO=$ac_cv_prog_LIPO 7931if test -n "$LIPO"; then 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7933$as_echo "$LIPO" >&6; } 7934else 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7936$as_echo "no" >&6; } 7937fi 7938 7939 7940fi 7941if test -z "$ac_cv_prog_LIPO"; then 7942 ac_ct_LIPO=$LIPO 7943 # Extract the first word of "lipo", so it can be a program name with args. 7944set dummy lipo; ac_word=$2 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7946$as_echo_n "checking for $ac_word... " >&6; } 7947if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7948 $as_echo_n "(cached) " >&6 7949else 7950 if test -n "$ac_ct_LIPO"; then 7951 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7952else 7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7954for as_dir in $PATH 7955do 7956 IFS=$as_save_IFS 7957 test -z "$as_dir" && as_dir=. 7958 for ac_exec_ext in '' $ac_executable_extensions; do 7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7960 ac_cv_prog_ac_ct_LIPO="lipo" 7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7962 break 2 7963 fi 7964done 7965 done 7966IFS=$as_save_IFS 7967 7968fi 7969fi 7970ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7971if test -n "$ac_ct_LIPO"; then 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7973$as_echo "$ac_ct_LIPO" >&6; } 7974else 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7976$as_echo "no" >&6; } 7977fi 7978 7979 if test "x$ac_ct_LIPO" = x; then 7980 LIPO=":" 7981 else 7982 case $cross_compiling:$ac_tool_warned in 7983yes:) 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7986ac_tool_warned=yes ;; 7987esac 7988 LIPO=$ac_ct_LIPO 7989 fi 7990else 7991 LIPO="$ac_cv_prog_LIPO" 7992fi 7993 7994 if test -n "$ac_tool_prefix"; then 7995 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7996set dummy ${ac_tool_prefix}otool; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_prog_OTOOL+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if test -n "$OTOOL"; then 8003 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8004else 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006for as_dir in $PATH 8007do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8012 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016done 8017 done 8018IFS=$as_save_IFS 8019 8020fi 8021fi 8022OTOOL=$ac_cv_prog_OTOOL 8023if test -n "$OTOOL"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8025$as_echo "$OTOOL" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 8032fi 8033if test -z "$ac_cv_prog_OTOOL"; then 8034 ac_ct_OTOOL=$OTOOL 8035 # Extract the first word of "otool", so it can be a program name with args. 8036set dummy otool; ac_word=$2 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8038$as_echo_n "checking for $ac_word... " >&6; } 8039if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 if test -n "$ac_ct_OTOOL"; then 8043 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8044else 8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8046for as_dir in $PATH 8047do 8048 IFS=$as_save_IFS 8049 test -z "$as_dir" && as_dir=. 8050 for ac_exec_ext in '' $ac_executable_extensions; do 8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8052 ac_cv_prog_ac_ct_OTOOL="otool" 8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8054 break 2 8055 fi 8056done 8057 done 8058IFS=$as_save_IFS 8059 8060fi 8061fi 8062ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8063if test -n "$ac_ct_OTOOL"; then 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8065$as_echo "$ac_ct_OTOOL" >&6; } 8066else 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8068$as_echo "no" >&6; } 8069fi 8070 8071 if test "x$ac_ct_OTOOL" = x; then 8072 OTOOL=":" 8073 else 8074 case $cross_compiling:$ac_tool_warned in 8075yes:) 8076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8078ac_tool_warned=yes ;; 8079esac 8080 OTOOL=$ac_ct_OTOOL 8081 fi 8082else 8083 OTOOL="$ac_cv_prog_OTOOL" 8084fi 8085 8086 if test -n "$ac_tool_prefix"; then 8087 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8088set dummy ${ac_tool_prefix}otool64; ac_word=$2 8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8090$as_echo_n "checking for $ac_word... " >&6; } 8091if ${ac_cv_prog_OTOOL64+:} false; then : 8092 $as_echo_n "(cached) " >&6 8093else 8094 if test -n "$OTOOL64"; then 8095 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8096else 8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8098for as_dir in $PATH 8099do 8100 IFS=$as_save_IFS 8101 test -z "$as_dir" && as_dir=. 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8104 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8106 break 2 8107 fi 8108done 8109 done 8110IFS=$as_save_IFS 8111 8112fi 8113fi 8114OTOOL64=$ac_cv_prog_OTOOL64 8115if test -n "$OTOOL64"; then 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8117$as_echo "$OTOOL64" >&6; } 8118else 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8120$as_echo "no" >&6; } 8121fi 8122 8123 8124fi 8125if test -z "$ac_cv_prog_OTOOL64"; then 8126 ac_ct_OTOOL64=$OTOOL64 8127 # Extract the first word of "otool64", so it can be a program name with args. 8128set dummy otool64; ac_word=$2 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8130$as_echo_n "checking for $ac_word... " >&6; } 8131if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133else 8134 if test -n "$ac_ct_OTOOL64"; then 8135 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8136else 8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8138for as_dir in $PATH 8139do 8140 IFS=$as_save_IFS 8141 test -z "$as_dir" && as_dir=. 8142 for ac_exec_ext in '' $ac_executable_extensions; do 8143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8144 ac_cv_prog_ac_ct_OTOOL64="otool64" 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8146 break 2 8147 fi 8148done 8149 done 8150IFS=$as_save_IFS 8151 8152fi 8153fi 8154ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8155if test -n "$ac_ct_OTOOL64"; then 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8157$as_echo "$ac_ct_OTOOL64" >&6; } 8158else 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8160$as_echo "no" >&6; } 8161fi 8162 8163 if test "x$ac_ct_OTOOL64" = x; then 8164 OTOOL64=":" 8165 else 8166 case $cross_compiling:$ac_tool_warned in 8167yes:) 8168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8170ac_tool_warned=yes ;; 8171esac 8172 OTOOL64=$ac_ct_OTOOL64 8173 fi 8174else 8175 OTOOL64="$ac_cv_prog_OTOOL64" 8176fi 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8205$as_echo_n "checking for -single_module linker flag... " >&6; } 8206if ${lt_cv_apple_cc_single_mod+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 lt_cv_apple_cc_single_mod=no 8210 if test -z "$LT_MULTI_MODULE"; then 8211 # By default we will add the -single_module flag. You can override 8212 # by either setting the environment variable LT_MULTI_MODULE 8213 # non-empty at configure time, or by adding -multi_module to the 8214 # link flags. 8215 rm -rf libconftest.dylib* 8216 echo "int foo(void){return 1;}" > conftest.c 8217 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8218-dynamiclib -Wl,-single_module conftest.c" >&5 8219 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8220 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8221 _lt_result=$? 8222 # If there is a non-empty error log, and "single_module" 8223 # appears in it, assume the flag caused a linker warning 8224 if test -s conftest.err && $GREP single_module conftest.err; then 8225 cat conftest.err >&5 8226 # Otherwise, if the output was created with a 0 exit code from 8227 # the compiler, it worked. 8228 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8229 lt_cv_apple_cc_single_mod=yes 8230 else 8231 cat conftest.err >&5 8232 fi 8233 rm -rf libconftest.dylib* 8234 rm -f conftest.* 8235 fi 8236fi 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8238$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8239 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8241$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8242if ${lt_cv_ld_exported_symbols_list+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 lt_cv_ld_exported_symbols_list=no 8246 save_LDFLAGS=$LDFLAGS 8247 echo "_main" > conftest.sym 8248 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250/* end confdefs.h. */ 8251 8252int 8253main () 8254{ 8255 8256 ; 8257 return 0; 8258} 8259_ACEOF 8260if ac_fn_c_try_link "$LINENO"; then : 8261 lt_cv_ld_exported_symbols_list=yes 8262else 8263 lt_cv_ld_exported_symbols_list=no 8264fi 8265rm -f core conftest.err conftest.$ac_objext \ 8266 conftest$ac_exeext conftest.$ac_ext 8267 LDFLAGS=$save_LDFLAGS 8268 8269fi 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8271$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8272 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8274$as_echo_n "checking for -force_load linker flag... " >&6; } 8275if ${lt_cv_ld_force_load+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 lt_cv_ld_force_load=no 8279 cat > conftest.c << _LT_EOF 8280int forced_loaded() { return 2;} 8281_LT_EOF 8282 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8283 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8284 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8285 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8286 echo "$RANLIB libconftest.a" >&5 8287 $RANLIB libconftest.a 2>&5 8288 cat > conftest.c << _LT_EOF 8289int main() { return 0;} 8290_LT_EOF 8291 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8292 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8293 _lt_result=$? 8294 if test -s conftest.err && $GREP force_load conftest.err; then 8295 cat conftest.err >&5 8296 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8297 lt_cv_ld_force_load=yes 8298 else 8299 cat conftest.err >&5 8300 fi 8301 rm -f conftest.err libconftest.a conftest conftest.c 8302 rm -rf conftest.dSYM 8303 8304fi 8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8306$as_echo "$lt_cv_ld_force_load" >&6; } 8307 case $host_os in 8308 rhapsody* | darwin1.[012]) 8309 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8310 darwin1.*) 8311 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8312 darwin*) # darwin 5.x on 8313 # if running on 10.5 or later, the deployment target defaults 8314 # to the OS version, if on x86, and 10.4, the deployment 8315 # target defaults to 10.4. Don't you love it? 8316 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8317 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8318 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8319 10.[012][,.]*) 8320 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8321 10.*) 8322 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8323 esac 8324 ;; 8325 esac 8326 if test yes = "$lt_cv_apple_cc_single_mod"; then 8327 _lt_dar_single_mod='$single_module' 8328 fi 8329 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8330 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8331 else 8332 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8333 fi 8334 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8335 _lt_dsymutil='~$DSYMUTIL $lib || :' 8336 else 8337 _lt_dsymutil= 8338 fi 8339 ;; 8340 esac 8341 8342# func_munge_path_list VARIABLE PATH 8343# ----------------------------------- 8344# VARIABLE is name of variable containing _space_ separated list of 8345# directories to be munged by the contents of PATH, which is string 8346# having a format: 8347# "DIR[:DIR]:" 8348# string "DIR[ DIR]" will be prepended to VARIABLE 8349# ":DIR[:DIR]" 8350# string "DIR[ DIR]" will be appended to VARIABLE 8351# "DIRP[:DIRP]::[DIRA:]DIRA" 8352# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8353# "DIRA[ DIRA]" will be appended to VARIABLE 8354# "DIR[:DIR]" 8355# VARIABLE will be replaced by "DIR[ DIR]" 8356func_munge_path_list () 8357{ 8358 case x$2 in 8359 x) 8360 ;; 8361 *:) 8362 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8363 ;; 8364 x:*) 8365 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8366 ;; 8367 *::*) 8368 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8369 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8370 ;; 8371 *) 8372 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8373 ;; 8374 esac 8375} 8376 8377ac_ext=c 8378ac_cpp='$CPP $CPPFLAGS' 8379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8381ac_compiler_gnu=$ac_cv_c_compiler_gnu 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8383$as_echo_n "checking how to run the C preprocessor... " >&6; } 8384# On Suns, sometimes $CPP names a directory. 8385if test -n "$CPP" && test -d "$CPP"; then 8386 CPP= 8387fi 8388if test -z "$CPP"; then 8389 if ${ac_cv_prog_CPP+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 # Double quotes because CPP needs to be expanded 8393 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8394 do 8395 ac_preproc_ok=false 8396for ac_c_preproc_warn_flag in '' yes 8397do 8398 # Use a header file that comes with gcc, so configuring glibc 8399 # with a fresh cross-compiler works. 8400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8401 # <limits.h> exists even on freestanding compilers. 8402 # On the NeXT, cc -E runs the code through the compiler's parser, 8403 # not just through cpp. "Syntax error" is here to catch this case. 8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8405/* end confdefs.h. */ 8406#ifdef __STDC__ 8407# include <limits.h> 8408#else 8409# include <assert.h> 8410#endif 8411 Syntax error 8412_ACEOF 8413if ac_fn_c_try_cpp "$LINENO"; then : 8414 8415else 8416 # Broken: fails on valid input. 8417continue 8418fi 8419rm -f conftest.err conftest.i conftest.$ac_ext 8420 8421 # OK, works on sane cases. Now check whether nonexistent headers 8422 # can be detected and how. 8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8424/* end confdefs.h. */ 8425#include <ac_nonexistent.h> 8426_ACEOF 8427if ac_fn_c_try_cpp "$LINENO"; then : 8428 # Broken: success on invalid input. 8429continue 8430else 8431 # Passes both tests. 8432ac_preproc_ok=: 8433break 8434fi 8435rm -f conftest.err conftest.i conftest.$ac_ext 8436 8437done 8438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8439rm -f conftest.i conftest.err conftest.$ac_ext 8440if $ac_preproc_ok; then : 8441 break 8442fi 8443 8444 done 8445 ac_cv_prog_CPP=$CPP 8446 8447fi 8448 CPP=$ac_cv_prog_CPP 8449else 8450 ac_cv_prog_CPP=$CPP 8451fi 8452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8453$as_echo "$CPP" >&6; } 8454ac_preproc_ok=false 8455for ac_c_preproc_warn_flag in '' yes 8456do 8457 # Use a header file that comes with gcc, so configuring glibc 8458 # with a fresh cross-compiler works. 8459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8460 # <limits.h> exists even on freestanding compilers. 8461 # On the NeXT, cc -E runs the code through the compiler's parser, 8462 # not just through cpp. "Syntax error" is here to catch this case. 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464/* end confdefs.h. */ 8465#ifdef __STDC__ 8466# include <limits.h> 8467#else 8468# include <assert.h> 8469#endif 8470 Syntax error 8471_ACEOF 8472if ac_fn_c_try_cpp "$LINENO"; then : 8473 8474else 8475 # Broken: fails on valid input. 8476continue 8477fi 8478rm -f conftest.err conftest.i conftest.$ac_ext 8479 8480 # OK, works on sane cases. Now check whether nonexistent headers 8481 # can be detected and how. 8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8483/* end confdefs.h. */ 8484#include <ac_nonexistent.h> 8485_ACEOF 8486if ac_fn_c_try_cpp "$LINENO"; then : 8487 # Broken: success on invalid input. 8488continue 8489else 8490 # Passes both tests. 8491ac_preproc_ok=: 8492break 8493fi 8494rm -f conftest.err conftest.i conftest.$ac_ext 8495 8496done 8497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8498rm -f conftest.i conftest.err conftest.$ac_ext 8499if $ac_preproc_ok; then : 8500 8501else 8502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8504as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8505See \`config.log' for more details" "$LINENO" 5; } 8506fi 8507 8508ac_ext=c 8509ac_cpp='$CPP $CPPFLAGS' 8510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8512ac_compiler_gnu=$ac_cv_c_compiler_gnu 8513 8514 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8516$as_echo_n "checking for ANSI C header files... " >&6; } 8517if ${ac_cv_header_stdc+:} false; then : 8518 $as_echo_n "(cached) " >&6 8519else 8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8521/* end confdefs.h. */ 8522#include <stdlib.h> 8523#include <stdarg.h> 8524#include <string.h> 8525#include <float.h> 8526 8527int 8528main () 8529{ 8530 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535if ac_fn_c_try_compile "$LINENO"; then : 8536 ac_cv_header_stdc=yes 8537else 8538 ac_cv_header_stdc=no 8539fi 8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8541 8542if test $ac_cv_header_stdc = yes; then 8543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8545/* end confdefs.h. */ 8546#include <string.h> 8547 8548_ACEOF 8549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8550 $EGREP "memchr" >/dev/null 2>&1; then : 8551 8552else 8553 ac_cv_header_stdc=no 8554fi 8555rm -f conftest* 8556 8557fi 8558 8559if test $ac_cv_header_stdc = yes; then 8560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8562/* end confdefs.h. */ 8563#include <stdlib.h> 8564 8565_ACEOF 8566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8567 $EGREP "free" >/dev/null 2>&1; then : 8568 8569else 8570 ac_cv_header_stdc=no 8571fi 8572rm -f conftest* 8573 8574fi 8575 8576if test $ac_cv_header_stdc = yes; then 8577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8578 if test "$cross_compiling" = yes; then : 8579 : 8580else 8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582/* end confdefs.h. */ 8583#include <ctype.h> 8584#include <stdlib.h> 8585#if ((' ' & 0x0FF) == 0x020) 8586# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8587# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8588#else 8589# define ISLOWER(c) \ 8590 (('a' <= (c) && (c) <= 'i') \ 8591 || ('j' <= (c) && (c) <= 'r') \ 8592 || ('s' <= (c) && (c) <= 'z')) 8593# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8594#endif 8595 8596#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8597int 8598main () 8599{ 8600 int i; 8601 for (i = 0; i < 256; i++) 8602 if (XOR (islower (i), ISLOWER (i)) 8603 || toupper (i) != TOUPPER (i)) 8604 return 2; 8605 return 0; 8606} 8607_ACEOF 8608if ac_fn_c_try_run "$LINENO"; then : 8609 8610else 8611 ac_cv_header_stdc=no 8612fi 8613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8614 conftest.$ac_objext conftest.beam conftest.$ac_ext 8615fi 8616 8617fi 8618fi 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8620$as_echo "$ac_cv_header_stdc" >&6; } 8621if test $ac_cv_header_stdc = yes; then 8622 8623$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8624 8625fi 8626 8627# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8628for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8629 inttypes.h stdint.h unistd.h 8630do : 8631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8632ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8633" 8634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8635 cat >>confdefs.h <<_ACEOF 8636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8637_ACEOF 8638 8639fi 8640 8641done 8642 8643 8644for ac_header in dlfcn.h 8645do : 8646 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8647" 8648if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8649 cat >>confdefs.h <<_ACEOF 8650#define HAVE_DLFCN_H 1 8651_ACEOF 8652 8653fi 8654 8655done 8656 8657 8658 8659 8660 8661# Set options 8662# Check whether --enable-static was given. 8663if test "${enable_static+set}" = set; then : 8664 enableval=$enable_static; p=${PACKAGE-default} 8665 case $enableval in 8666 yes) enable_static=yes ;; 8667 no) enable_static=no ;; 8668 *) 8669 enable_static=no 8670 # Look at the argument we got. We use all the common list separators. 8671 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8672 for pkg in $enableval; do 8673 IFS=$lt_save_ifs 8674 if test "X$pkg" = "X$p"; then 8675 enable_static=yes 8676 fi 8677 done 8678 IFS=$lt_save_ifs 8679 ;; 8680 esac 8681else 8682 enable_static=no 8683fi 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 enable_dlopen=no 8695 8696 8697 enable_win32_dll=no 8698 8699 8700 # Check whether --enable-shared was given. 8701if test "${enable_shared+set}" = set; then : 8702 enableval=$enable_shared; p=${PACKAGE-default} 8703 case $enableval in 8704 yes) enable_shared=yes ;; 8705 no) enable_shared=no ;; 8706 *) 8707 enable_shared=no 8708 # Look at the argument we got. We use all the common list separators. 8709 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8710 for pkg in $enableval; do 8711 IFS=$lt_save_ifs 8712 if test "X$pkg" = "X$p"; then 8713 enable_shared=yes 8714 fi 8715 done 8716 IFS=$lt_save_ifs 8717 ;; 8718 esac 8719else 8720 enable_shared=yes 8721fi 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733# Check whether --with-pic was given. 8734if test "${with_pic+set}" = set; then : 8735 withval=$with_pic; lt_p=${PACKAGE-default} 8736 case $withval in 8737 yes|no) pic_mode=$withval ;; 8738 *) 8739 pic_mode=default 8740 # Look at the argument we got. We use all the common list separators. 8741 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8742 for lt_pkg in $withval; do 8743 IFS=$lt_save_ifs 8744 if test "X$lt_pkg" = "X$lt_p"; then 8745 pic_mode=yes 8746 fi 8747 done 8748 IFS=$lt_save_ifs 8749 ;; 8750 esac 8751else 8752 pic_mode=default 8753fi 8754 8755 8756 8757 8758 8759 8760 8761 8762 # Check whether --enable-fast-install was given. 8763if test "${enable_fast_install+set}" = set; then : 8764 enableval=$enable_fast_install; p=${PACKAGE-default} 8765 case $enableval in 8766 yes) enable_fast_install=yes ;; 8767 no) enable_fast_install=no ;; 8768 *) 8769 enable_fast_install=no 8770 # Look at the argument we got. We use all the common list separators. 8771 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8772 for pkg in $enableval; do 8773 IFS=$lt_save_ifs 8774 if test "X$pkg" = "X$p"; then 8775 enable_fast_install=yes 8776 fi 8777 done 8778 IFS=$lt_save_ifs 8779 ;; 8780 esac 8781else 8782 enable_fast_install=yes 8783fi 8784 8785 8786 8787 8788 8789 8790 8791 8792 shared_archive_member_spec= 8793case $host,$enable_shared in 8794power*-*-aix[5-9]*,yes) 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8796$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8797 8798# Check whether --with-aix-soname was given. 8799if test "${with_aix_soname+set}" = set; then : 8800 withval=$with_aix_soname; case $withval in 8801 aix|svr4|both) 8802 ;; 8803 *) 8804 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8805 ;; 8806 esac 8807 lt_cv_with_aix_soname=$with_aix_soname 8808else 8809 if ${lt_cv_with_aix_soname+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811else 8812 lt_cv_with_aix_soname=aix 8813fi 8814 8815 with_aix_soname=$lt_cv_with_aix_soname 8816fi 8817 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8819$as_echo "$with_aix_soname" >&6; } 8820 if test aix != "$with_aix_soname"; then 8821 # For the AIX way of multilib, we name the shared archive member 8822 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8823 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8824 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8825 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8826 if test 64 = "${OBJECT_MODE-32}"; then 8827 shared_archive_member_spec=shr_64 8828 else 8829 shared_archive_member_spec=shr 8830 fi 8831 fi 8832 ;; 8833*) 8834 with_aix_soname=aix 8835 ;; 8836esac 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847# This can be used to rebuild libtool when needed 8848LIBTOOL_DEPS=$ltmain 8849 8850# Always use our own libtool. 8851LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882test -z "$LN_S" && LN_S="ln -s" 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897if test -n "${ZSH_VERSION+set}"; then 8898 setopt NO_GLOB_SUBST 8899fi 8900 8901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8902$as_echo_n "checking for objdir... " >&6; } 8903if ${lt_cv_objdir+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 rm -f .libs 2>/dev/null 8907mkdir .libs 2>/dev/null 8908if test -d .libs; then 8909 lt_cv_objdir=.libs 8910else 8911 # MS-DOS does not allow filenames that begin with a dot. 8912 lt_cv_objdir=_libs 8913fi 8914rmdir .libs 2>/dev/null 8915fi 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8917$as_echo "$lt_cv_objdir" >&6; } 8918objdir=$lt_cv_objdir 8919 8920 8921 8922 8923 8924cat >>confdefs.h <<_ACEOF 8925#define LT_OBJDIR "$lt_cv_objdir/" 8926_ACEOF 8927 8928 8929 8930 8931case $host_os in 8932aix3*) 8933 # AIX sometimes has problems with the GCC collect2 program. For some 8934 # reason, if we set the COLLECT_NAMES environment variable, the problems 8935 # vanish in a puff of smoke. 8936 if test set != "${COLLECT_NAMES+set}"; then 8937 COLLECT_NAMES= 8938 export COLLECT_NAMES 8939 fi 8940 ;; 8941esac 8942 8943# Global variables: 8944ofile=libtool 8945can_build_shared=yes 8946 8947# All known linkers require a '.a' archive for static linking (except MSVC and 8948# ICC, which need '.lib'). 8949libext=a 8950 8951with_gnu_ld=$lt_cv_prog_gnu_ld 8952 8953old_CC=$CC 8954old_CFLAGS=$CFLAGS 8955 8956# Set sane defaults for various variables 8957test -z "$CC" && CC=cc 8958test -z "$LTCC" && LTCC=$CC 8959test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8960test -z "$LD" && LD=ld 8961test -z "$ac_objext" && ac_objext=o 8962 8963func_cc_basename $compiler 8964cc_basename=$func_cc_basename_result 8965 8966 8967# Only perform the check for file, if the check method requires it 8968test -z "$MAGIC_CMD" && MAGIC_CMD=file 8969case $deplibs_check_method in 8970file_magic*) 8971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8973$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8974if ${lt_cv_path_MAGIC_CMD+:} false; then : 8975 $as_echo_n "(cached) " >&6 8976else 8977 case $MAGIC_CMD in 8978[\\/*] | ?:[\\/]*) 8979 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8980 ;; 8981*) 8982 lt_save_MAGIC_CMD=$MAGIC_CMD 8983 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8985 for ac_dir in $ac_dummy; do 8986 IFS=$lt_save_ifs 8987 test -z "$ac_dir" && ac_dir=. 8988 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8989 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8990 if test -n "$file_magic_test_file"; then 8991 case $deplibs_check_method in 8992 "file_magic "*) 8993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8994 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8996 $EGREP "$file_magic_regex" > /dev/null; then 8997 : 8998 else 8999 cat <<_LT_EOF 1>&2 9000 9001*** Warning: the command libtool uses to detect shared libraries, 9002*** $file_magic_cmd, produces output that libtool cannot recognize. 9003*** The result is that libtool may fail to recognize shared libraries 9004*** as such. This will affect the creation of libtool libraries that 9005*** depend on shared libraries, but programs linked with such libtool 9006*** libraries will work regardless of this problem. Nevertheless, you 9007*** may want to report the problem to your system manager and/or to 9008*** bug-libtool@gnu.org 9009 9010_LT_EOF 9011 fi ;; 9012 esac 9013 fi 9014 break 9015 fi 9016 done 9017 IFS=$lt_save_ifs 9018 MAGIC_CMD=$lt_save_MAGIC_CMD 9019 ;; 9020esac 9021fi 9022 9023MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9024if test -n "$MAGIC_CMD"; then 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9026$as_echo "$MAGIC_CMD" >&6; } 9027else 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9029$as_echo "no" >&6; } 9030fi 9031 9032 9033 9034 9035 9036if test -z "$lt_cv_path_MAGIC_CMD"; then 9037 if test -n "$ac_tool_prefix"; then 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9039$as_echo_n "checking for file... " >&6; } 9040if ${lt_cv_path_MAGIC_CMD+:} false; then : 9041 $as_echo_n "(cached) " >&6 9042else 9043 case $MAGIC_CMD in 9044[\\/*] | ?:[\\/]*) 9045 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9046 ;; 9047*) 9048 lt_save_MAGIC_CMD=$MAGIC_CMD 9049 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9051 for ac_dir in $ac_dummy; do 9052 IFS=$lt_save_ifs 9053 test -z "$ac_dir" && ac_dir=. 9054 if test -f "$ac_dir/file"; then 9055 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9056 if test -n "$file_magic_test_file"; then 9057 case $deplibs_check_method in 9058 "file_magic "*) 9059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9060 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9062 $EGREP "$file_magic_regex" > /dev/null; then 9063 : 9064 else 9065 cat <<_LT_EOF 1>&2 9066 9067*** Warning: the command libtool uses to detect shared libraries, 9068*** $file_magic_cmd, produces output that libtool cannot recognize. 9069*** The result is that libtool may fail to recognize shared libraries 9070*** as such. This will affect the creation of libtool libraries that 9071*** depend on shared libraries, but programs linked with such libtool 9072*** libraries will work regardless of this problem. Nevertheless, you 9073*** may want to report the problem to your system manager and/or to 9074*** bug-libtool@gnu.org 9075 9076_LT_EOF 9077 fi ;; 9078 esac 9079 fi 9080 break 9081 fi 9082 done 9083 IFS=$lt_save_ifs 9084 MAGIC_CMD=$lt_save_MAGIC_CMD 9085 ;; 9086esac 9087fi 9088 9089MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9090if test -n "$MAGIC_CMD"; then 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9092$as_echo "$MAGIC_CMD" >&6; } 9093else 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9095$as_echo "no" >&6; } 9096fi 9097 9098 9099 else 9100 MAGIC_CMD=: 9101 fi 9102fi 9103 9104 fi 9105 ;; 9106esac 9107 9108# Use C for the default configuration in the libtool script 9109 9110lt_save_CC=$CC 9111ac_ext=c 9112ac_cpp='$CPP $CPPFLAGS' 9113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9115ac_compiler_gnu=$ac_cv_c_compiler_gnu 9116 9117 9118# Source file extension for C test sources. 9119ac_ext=c 9120 9121# Object file extension for compiled C test sources. 9122objext=o 9123objext=$objext 9124 9125# Code to be used in simple compile tests 9126lt_simple_compile_test_code="int some_variable = 0;" 9127 9128# Code to be used in simple link tests 9129lt_simple_link_test_code='int main(){return(0);}' 9130 9131 9132 9133 9134 9135 9136 9137# If no C compiler was specified, use CC. 9138LTCC=${LTCC-"$CC"} 9139 9140# If no C compiler flags were specified, use CFLAGS. 9141LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9142 9143# Allow CC to be a program name with arguments. 9144compiler=$CC 9145 9146# Save the default compiler, since it gets overwritten when the other 9147# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9148compiler_DEFAULT=$CC 9149 9150# save warnings/boilerplate of simple test code 9151ac_outfile=conftest.$ac_objext 9152echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9154_lt_compiler_boilerplate=`cat conftest.err` 9155$RM conftest* 9156 9157ac_outfile=conftest.$ac_objext 9158echo "$lt_simple_link_test_code" >conftest.$ac_ext 9159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9160_lt_linker_boilerplate=`cat conftest.err` 9161$RM -r conftest* 9162 9163 9164## CAVEAT EMPTOR: 9165## There is no encapsulation within the following macros, do not change 9166## the running order or otherwise move them around unless you know exactly 9167## what you are doing... 9168if test -n "$compiler"; then 9169 9170lt_prog_compiler_no_builtin_flag= 9171 9172if test yes = "$GCC"; then 9173 case $cc_basename in 9174 nvcc*) 9175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9176 *) 9177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9178 esac 9179 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9181$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9182if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9183 $as_echo_n "(cached) " >&6 9184else 9185 lt_cv_prog_compiler_rtti_exceptions=no 9186 ac_outfile=conftest.$ac_objext 9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9188 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9189 # Insert the option either (1) after the last *FLAGS variable, or 9190 # (2) before a word containing "conftest.", or (3) at the end. 9191 # Note that $ac_compile itself does not contain backslashes and begins 9192 # with a dollar sign (not a hyphen), so the echo should work correctly. 9193 # The option is referenced via a variable to avoid confusing sed. 9194 lt_compile=`echo "$ac_compile" | $SED \ 9195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9197 -e 's:$: $lt_compiler_flag:'` 9198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9199 (eval "$lt_compile" 2>conftest.err) 9200 ac_status=$? 9201 cat conftest.err >&5 9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9203 if (exit $ac_status) && test -s "$ac_outfile"; then 9204 # The compiler can only warn and ignore the option if not recognized 9205 # So say no if there are warnings other than the usual output. 9206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9209 lt_cv_prog_compiler_rtti_exceptions=yes 9210 fi 9211 fi 9212 $RM conftest* 9213 9214fi 9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9216$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9217 9218if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9220else 9221 : 9222fi 9223 9224fi 9225 9226 9227 9228 9229 9230 9231 lt_prog_compiler_wl= 9232lt_prog_compiler_pic= 9233lt_prog_compiler_static= 9234 9235 9236 if test yes = "$GCC"; then 9237 lt_prog_compiler_wl='-Wl,' 9238 lt_prog_compiler_static='-static' 9239 9240 case $host_os in 9241 aix*) 9242 # All AIX code is PIC. 9243 if test ia64 = "$host_cpu"; then 9244 # AIX 5 now supports IA64 processor 9245 lt_prog_compiler_static='-Bstatic' 9246 fi 9247 lt_prog_compiler_pic='-fPIC' 9248 ;; 9249 9250 amigaos*) 9251 case $host_cpu in 9252 powerpc) 9253 # see comment about AmigaOS4 .so support 9254 lt_prog_compiler_pic='-fPIC' 9255 ;; 9256 m68k) 9257 # FIXME: we need at least 68020 code to build shared libraries, but 9258 # adding the '-m68020' flag to GCC prevents building anything better, 9259 # like '-m68040'. 9260 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9261 ;; 9262 esac 9263 ;; 9264 9265 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9266 # PIC is the default for these OSes. 9267 ;; 9268 9269 mingw* | cygwin* | pw32* | os2* | cegcc*) 9270 # This hack is so that the source file can tell whether it is being 9271 # built for inclusion in a dll (and should export symbols for example). 9272 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9273 # (--disable-auto-import) libraries 9274 lt_prog_compiler_pic='-DDLL_EXPORT' 9275 case $host_os in 9276 os2*) 9277 lt_prog_compiler_static='$wl-static' 9278 ;; 9279 esac 9280 ;; 9281 9282 darwin* | rhapsody*) 9283 # PIC is the default on this platform 9284 # Common symbols not allowed in MH_DYLIB files 9285 lt_prog_compiler_pic='-fno-common' 9286 ;; 9287 9288 haiku*) 9289 # PIC is the default for Haiku. 9290 # The "-static" flag exists, but is broken. 9291 lt_prog_compiler_static= 9292 ;; 9293 9294 hpux*) 9295 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9296 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9297 # sets the default TLS model and affects inlining. 9298 case $host_cpu in 9299 hppa*64*) 9300 # +Z the default 9301 ;; 9302 *) 9303 lt_prog_compiler_pic='-fPIC' 9304 ;; 9305 esac 9306 ;; 9307 9308 interix[3-9]*) 9309 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9310 # Instead, we relocate shared libraries at runtime. 9311 ;; 9312 9313 msdosdjgpp*) 9314 # Just because we use GCC doesn't mean we suddenly get shared libraries 9315 # on systems that don't support them. 9316 lt_prog_compiler_can_build_shared=no 9317 enable_shared=no 9318 ;; 9319 9320 *nto* | *qnx*) 9321 # QNX uses GNU C++, but need to define -shared option too, otherwise 9322 # it will coredump. 9323 lt_prog_compiler_pic='-fPIC -shared' 9324 ;; 9325 9326 sysv4*MP*) 9327 if test -d /usr/nec; then 9328 lt_prog_compiler_pic=-Kconform_pic 9329 fi 9330 ;; 9331 9332 *) 9333 lt_prog_compiler_pic='-fPIC' 9334 ;; 9335 esac 9336 9337 case $cc_basename in 9338 nvcc*) # Cuda Compiler Driver 2.2 9339 lt_prog_compiler_wl='-Xlinker ' 9340 if test -n "$lt_prog_compiler_pic"; then 9341 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9342 fi 9343 ;; 9344 esac 9345 else 9346 # PORTME Check for flag to pass linker flags through the system compiler. 9347 case $host_os in 9348 aix*) 9349 lt_prog_compiler_wl='-Wl,' 9350 if test ia64 = "$host_cpu"; then 9351 # AIX 5 now supports IA64 processor 9352 lt_prog_compiler_static='-Bstatic' 9353 else 9354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9355 fi 9356 ;; 9357 9358 darwin* | rhapsody*) 9359 # PIC is the default on this platform 9360 # Common symbols not allowed in MH_DYLIB files 9361 lt_prog_compiler_pic='-fno-common' 9362 case $cc_basename in 9363 nagfor*) 9364 # NAG Fortran compiler 9365 lt_prog_compiler_wl='-Wl,-Wl,,' 9366 lt_prog_compiler_pic='-PIC' 9367 lt_prog_compiler_static='-Bstatic' 9368 ;; 9369 esac 9370 ;; 9371 9372 mingw* | cygwin* | pw32* | os2* | cegcc*) 9373 # This hack is so that the source file can tell whether it is being 9374 # built for inclusion in a dll (and should export symbols for example). 9375 lt_prog_compiler_pic='-DDLL_EXPORT' 9376 case $host_os in 9377 os2*) 9378 lt_prog_compiler_static='$wl-static' 9379 ;; 9380 esac 9381 ;; 9382 9383 hpux9* | hpux10* | hpux11*) 9384 lt_prog_compiler_wl='-Wl,' 9385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9386 # not for PA HP-UX. 9387 case $host_cpu in 9388 hppa*64*|ia64*) 9389 # +Z the default 9390 ;; 9391 *) 9392 lt_prog_compiler_pic='+Z' 9393 ;; 9394 esac 9395 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9396 lt_prog_compiler_static='$wl-a ${wl}archive' 9397 ;; 9398 9399 irix5* | irix6* | nonstopux*) 9400 lt_prog_compiler_wl='-Wl,' 9401 # PIC (with -KPIC) is the default. 9402 lt_prog_compiler_static='-non_shared' 9403 ;; 9404 9405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9406 case $cc_basename in 9407 # old Intel for x86_64, which still supported -KPIC. 9408 ecc*) 9409 lt_prog_compiler_wl='-Wl,' 9410 lt_prog_compiler_pic='-KPIC' 9411 lt_prog_compiler_static='-static' 9412 ;; 9413 # icc used to be incompatible with GCC. 9414 # ICC 10 doesn't accept -KPIC any more. 9415 icc* | ifort*) 9416 lt_prog_compiler_wl='-Wl,' 9417 lt_prog_compiler_pic='-fPIC' 9418 lt_prog_compiler_static='-static' 9419 ;; 9420 # Lahey Fortran 8.1. 9421 lf95*) 9422 lt_prog_compiler_wl='-Wl,' 9423 lt_prog_compiler_pic='--shared' 9424 lt_prog_compiler_static='--static' 9425 ;; 9426 nagfor*) 9427 # NAG Fortran compiler 9428 lt_prog_compiler_wl='-Wl,-Wl,,' 9429 lt_prog_compiler_pic='-PIC' 9430 lt_prog_compiler_static='-Bstatic' 9431 ;; 9432 tcc*) 9433 # Fabrice Bellard et al's Tiny C Compiler 9434 lt_prog_compiler_wl='-Wl,' 9435 lt_prog_compiler_pic='-fPIC' 9436 lt_prog_compiler_static='-static' 9437 ;; 9438 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9439 # Portland Group compilers (*not* the Pentium gcc compiler, 9440 # which looks to be a dead project) 9441 lt_prog_compiler_wl='-Wl,' 9442 lt_prog_compiler_pic='-fpic' 9443 lt_prog_compiler_static='-Bstatic' 9444 ;; 9445 ccc*) 9446 lt_prog_compiler_wl='-Wl,' 9447 # All Alpha code is PIC. 9448 lt_prog_compiler_static='-non_shared' 9449 ;; 9450 xl* | bgxl* | bgf* | mpixl*) 9451 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9452 lt_prog_compiler_wl='-Wl,' 9453 lt_prog_compiler_pic='-qpic' 9454 lt_prog_compiler_static='-qstaticlink' 9455 ;; 9456 *) 9457 case `$CC -V 2>&1 | sed 5q` in 9458 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9459 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9460 lt_prog_compiler_pic='-KPIC' 9461 lt_prog_compiler_static='-Bstatic' 9462 lt_prog_compiler_wl='' 9463 ;; 9464 *Sun\ F* | *Sun*Fortran*) 9465 lt_prog_compiler_pic='-KPIC' 9466 lt_prog_compiler_static='-Bstatic' 9467 lt_prog_compiler_wl='-Qoption ld ' 9468 ;; 9469 *Sun\ C*) 9470 # Sun C 5.9 9471 lt_prog_compiler_pic='-KPIC' 9472 lt_prog_compiler_static='-Bstatic' 9473 lt_prog_compiler_wl='-Wl,' 9474 ;; 9475 *Intel*\ [CF]*Compiler*) 9476 lt_prog_compiler_wl='-Wl,' 9477 lt_prog_compiler_pic='-fPIC' 9478 lt_prog_compiler_static='-static' 9479 ;; 9480 *Portland\ Group*) 9481 lt_prog_compiler_wl='-Wl,' 9482 lt_prog_compiler_pic='-fpic' 9483 lt_prog_compiler_static='-Bstatic' 9484 ;; 9485 esac 9486 ;; 9487 esac 9488 ;; 9489 9490 newsos6) 9491 lt_prog_compiler_pic='-KPIC' 9492 lt_prog_compiler_static='-Bstatic' 9493 ;; 9494 9495 *nto* | *qnx*) 9496 # QNX uses GNU C++, but need to define -shared option too, otherwise 9497 # it will coredump. 9498 lt_prog_compiler_pic='-fPIC -shared' 9499 ;; 9500 9501 osf3* | osf4* | osf5*) 9502 lt_prog_compiler_wl='-Wl,' 9503 # All OSF/1 code is PIC. 9504 lt_prog_compiler_static='-non_shared' 9505 ;; 9506 9507 rdos*) 9508 lt_prog_compiler_static='-non_shared' 9509 ;; 9510 9511 solaris*) 9512 lt_prog_compiler_pic='-KPIC' 9513 lt_prog_compiler_static='-Bstatic' 9514 case $cc_basename in 9515 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9516 lt_prog_compiler_wl='-Qoption ld ';; 9517 *) 9518 lt_prog_compiler_wl='-Wl,';; 9519 esac 9520 ;; 9521 9522 sunos4*) 9523 lt_prog_compiler_wl='-Qoption ld ' 9524 lt_prog_compiler_pic='-PIC' 9525 lt_prog_compiler_static='-Bstatic' 9526 ;; 9527 9528 sysv4 | sysv4.2uw2* | sysv4.3*) 9529 lt_prog_compiler_wl='-Wl,' 9530 lt_prog_compiler_pic='-KPIC' 9531 lt_prog_compiler_static='-Bstatic' 9532 ;; 9533 9534 sysv4*MP*) 9535 if test -d /usr/nec; then 9536 lt_prog_compiler_pic='-Kconform_pic' 9537 lt_prog_compiler_static='-Bstatic' 9538 fi 9539 ;; 9540 9541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9542 lt_prog_compiler_wl='-Wl,' 9543 lt_prog_compiler_pic='-KPIC' 9544 lt_prog_compiler_static='-Bstatic' 9545 ;; 9546 9547 unicos*) 9548 lt_prog_compiler_wl='-Wl,' 9549 lt_prog_compiler_can_build_shared=no 9550 ;; 9551 9552 uts4*) 9553 lt_prog_compiler_pic='-pic' 9554 lt_prog_compiler_static='-Bstatic' 9555 ;; 9556 9557 *) 9558 lt_prog_compiler_can_build_shared=no 9559 ;; 9560 esac 9561 fi 9562 9563case $host_os in 9564 # For platforms that do not support PIC, -DPIC is meaningless: 9565 *djgpp*) 9566 lt_prog_compiler_pic= 9567 ;; 9568 *) 9569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9570 ;; 9571esac 9572 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9574$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9575if ${lt_cv_prog_compiler_pic+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9579fi 9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9581$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9582lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9583 9584# 9585# Check to make sure the PIC flag actually works. 9586# 9587if test -n "$lt_prog_compiler_pic"; then 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9589$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9590if ${lt_cv_prog_compiler_pic_works+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 lt_cv_prog_compiler_pic_works=no 9594 ac_outfile=conftest.$ac_objext 9595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9596 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9597 # Insert the option either (1) after the last *FLAGS variable, or 9598 # (2) before a word containing "conftest.", or (3) at the end. 9599 # Note that $ac_compile itself does not contain backslashes and begins 9600 # with a dollar sign (not a hyphen), so the echo should work correctly. 9601 # The option is referenced via a variable to avoid confusing sed. 9602 lt_compile=`echo "$ac_compile" | $SED \ 9603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9605 -e 's:$: $lt_compiler_flag:'` 9606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9607 (eval "$lt_compile" 2>conftest.err) 9608 ac_status=$? 9609 cat conftest.err >&5 9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9611 if (exit $ac_status) && test -s "$ac_outfile"; then 9612 # The compiler can only warn and ignore the option if not recognized 9613 # So say no if there are warnings other than the usual output. 9614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9617 lt_cv_prog_compiler_pic_works=yes 9618 fi 9619 fi 9620 $RM conftest* 9621 9622fi 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9624$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9625 9626if test yes = "$lt_cv_prog_compiler_pic_works"; then 9627 case $lt_prog_compiler_pic in 9628 "" | " "*) ;; 9629 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9630 esac 9631else 9632 lt_prog_compiler_pic= 9633 lt_prog_compiler_can_build_shared=no 9634fi 9635 9636fi 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648# 9649# Check to make sure the static flag actually works. 9650# 9651wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9653$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9654if ${lt_cv_prog_compiler_static_works+:} false; then : 9655 $as_echo_n "(cached) " >&6 9656else 9657 lt_cv_prog_compiler_static_works=no 9658 save_LDFLAGS=$LDFLAGS 9659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9660 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9662 # The linker can only warn and ignore the option if not recognized 9663 # So say no if there are warnings 9664 if test -s conftest.err; then 9665 # Append any errors to the config.log. 9666 cat conftest.err 1>&5 9667 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9669 if diff conftest.exp conftest.er2 >/dev/null; then 9670 lt_cv_prog_compiler_static_works=yes 9671 fi 9672 else 9673 lt_cv_prog_compiler_static_works=yes 9674 fi 9675 fi 9676 $RM -r conftest* 9677 LDFLAGS=$save_LDFLAGS 9678 9679fi 9680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9681$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9682 9683if test yes = "$lt_cv_prog_compiler_static_works"; then 9684 : 9685else 9686 lt_prog_compiler_static= 9687fi 9688 9689 9690 9691 9692 9693 9694 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9696$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9697if ${lt_cv_prog_compiler_c_o+:} false; then : 9698 $as_echo_n "(cached) " >&6 9699else 9700 lt_cv_prog_compiler_c_o=no 9701 $RM -r conftest 2>/dev/null 9702 mkdir conftest 9703 cd conftest 9704 mkdir out 9705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9706 9707 lt_compiler_flag="-o out/conftest2.$ac_objext" 9708 # Insert the option either (1) after the last *FLAGS variable, or 9709 # (2) before a word containing "conftest.", or (3) at the end. 9710 # Note that $ac_compile itself does not contain backslashes and begins 9711 # with a dollar sign (not a hyphen), so the echo should work correctly. 9712 lt_compile=`echo "$ac_compile" | $SED \ 9713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9715 -e 's:$: $lt_compiler_flag:'` 9716 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9717 (eval "$lt_compile" 2>out/conftest.err) 9718 ac_status=$? 9719 cat out/conftest.err >&5 9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9721 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9722 then 9723 # The compiler can only warn and ignore the option if not recognized 9724 # So say no if there are warnings 9725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9728 lt_cv_prog_compiler_c_o=yes 9729 fi 9730 fi 9731 chmod u+w . 2>&5 9732 $RM conftest* 9733 # SGI C++ compiler will create directory out/ii_files/ for 9734 # template instantiation 9735 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9736 $RM out/* && rmdir out 9737 cd .. 9738 $RM -r conftest 9739 $RM conftest* 9740 9741fi 9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9743$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9744 9745 9746 9747 9748 9749 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9751$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9752if ${lt_cv_prog_compiler_c_o+:} false; then : 9753 $as_echo_n "(cached) " >&6 9754else 9755 lt_cv_prog_compiler_c_o=no 9756 $RM -r conftest 2>/dev/null 9757 mkdir conftest 9758 cd conftest 9759 mkdir out 9760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9761 9762 lt_compiler_flag="-o out/conftest2.$ac_objext" 9763 # Insert the option either (1) after the last *FLAGS variable, or 9764 # (2) before a word containing "conftest.", or (3) at the end. 9765 # Note that $ac_compile itself does not contain backslashes and begins 9766 # with a dollar sign (not a hyphen), so the echo should work correctly. 9767 lt_compile=`echo "$ac_compile" | $SED \ 9768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9770 -e 's:$: $lt_compiler_flag:'` 9771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9772 (eval "$lt_compile" 2>out/conftest.err) 9773 ac_status=$? 9774 cat out/conftest.err >&5 9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9776 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9777 then 9778 # The compiler can only warn and ignore the option if not recognized 9779 # So say no if there are warnings 9780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9783 lt_cv_prog_compiler_c_o=yes 9784 fi 9785 fi 9786 chmod u+w . 2>&5 9787 $RM conftest* 9788 # SGI C++ compiler will create directory out/ii_files/ for 9789 # template instantiation 9790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9791 $RM out/* && rmdir out 9792 cd .. 9793 $RM -r conftest 9794 $RM conftest* 9795 9796fi 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9798$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9799 9800 9801 9802 9803hard_links=nottested 9804if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9805 # do not overwrite the value of need_locks provided by the user 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9807$as_echo_n "checking if we can lock with hard links... " >&6; } 9808 hard_links=yes 9809 $RM conftest* 9810 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9811 touch conftest.a 9812 ln conftest.a conftest.b 2>&5 || hard_links=no 9813 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9815$as_echo "$hard_links" >&6; } 9816 if test no = "$hard_links"; then 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9818$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9819 need_locks=warn 9820 fi 9821else 9822 need_locks=no 9823fi 9824 9825 9826 9827 9828 9829 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9831$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9832 9833 runpath_var= 9834 allow_undefined_flag= 9835 always_export_symbols=no 9836 archive_cmds= 9837 archive_expsym_cmds= 9838 compiler_needs_object=no 9839 enable_shared_with_static_runtimes=no 9840 export_dynamic_flag_spec= 9841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9842 hardcode_automatic=no 9843 hardcode_direct=no 9844 hardcode_direct_absolute=no 9845 hardcode_libdir_flag_spec= 9846 hardcode_libdir_separator= 9847 hardcode_minus_L=no 9848 hardcode_shlibpath_var=unsupported 9849 inherit_rpath=no 9850 link_all_deplibs=unknown 9851 module_cmds= 9852 module_expsym_cmds= 9853 old_archive_from_new_cmds= 9854 old_archive_from_expsyms_cmds= 9855 thread_safe_flag_spec= 9856 whole_archive_flag_spec= 9857 # include_expsyms should be a list of space-separated symbols to be *always* 9858 # included in the symbol list 9859 include_expsyms= 9860 # exclude_expsyms can be an extended regexp of symbols to exclude 9861 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9862 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9863 # as well as any symbol that contains 'd'. 9864 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9866 # platforms (ab)use it in PIC code, but their linkers get confused if 9867 # the symbol is explicitly referenced. Since portable code cannot 9868 # rely on this symbol name, it's probably fine to never include it in 9869 # preloaded symbol tables. 9870 # Exclude shared library initialization/finalization symbols. 9871 extract_expsyms_cmds= 9872 9873 case $host_os in 9874 cygwin* | mingw* | pw32* | cegcc*) 9875 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9876 # When not using gcc, we currently assume that we are using 9877 # Microsoft Visual C++ or Intel C++ Compiler. 9878 if test yes != "$GCC"; then 9879 with_gnu_ld=no 9880 fi 9881 ;; 9882 interix*) 9883 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9884 with_gnu_ld=yes 9885 ;; 9886 openbsd* | bitrig*) 9887 with_gnu_ld=no 9888 ;; 9889 esac 9890 9891 ld_shlibs=yes 9892 9893 # On some targets, GNU ld is compatible enough with the native linker 9894 # that we're better off using the native interface for both. 9895 lt_use_gnu_ld_interface=no 9896 if test yes = "$with_gnu_ld"; then 9897 case $host_os in 9898 aix*) 9899 # The AIX port of GNU ld has always aspired to compatibility 9900 # with the native linker. However, as the warning in the GNU ld 9901 # block says, versions before 2.19.5* couldn't really create working 9902 # shared libraries, regardless of the interface used. 9903 case `$LD -v 2>&1` in 9904 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9905 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9906 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9907 *) 9908 lt_use_gnu_ld_interface=yes 9909 ;; 9910 esac 9911 ;; 9912 *) 9913 lt_use_gnu_ld_interface=yes 9914 ;; 9915 esac 9916 fi 9917 9918 if test yes = "$lt_use_gnu_ld_interface"; then 9919 # If archive_cmds runs LD, not CC, wlarc should be empty 9920 wlarc='$wl' 9921 9922 # Set some defaults for GNU ld with shared library support. These 9923 # are reset later if shared libraries are not supported. Putting them 9924 # here allows them to be overridden if necessary. 9925 runpath_var=LD_RUN_PATH 9926 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9927 export_dynamic_flag_spec='$wl--export-dynamic' 9928 # ancient GNU ld didn't support --whole-archive et. al. 9929 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9930 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9931 else 9932 whole_archive_flag_spec= 9933 fi 9934 supports_anon_versioning=no 9935 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9936 *GNU\ gold*) supports_anon_versioning=yes ;; 9937 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9940 *\ 2.11.*) ;; # other 2.11 versions 9941 *) supports_anon_versioning=yes ;; 9942 esac 9943 9944 # See if GNU ld supports shared libraries. 9945 case $host_os in 9946 aix[3-9]*) 9947 # On AIX/PPC, the GNU linker is very broken 9948 if test ia64 != "$host_cpu"; then 9949 ld_shlibs=no 9950 cat <<_LT_EOF 1>&2 9951 9952*** Warning: the GNU linker, at least up to release 2.19, is reported 9953*** to be unable to reliably create shared libraries on AIX. 9954*** Therefore, libtool is disabling shared libraries support. If you 9955*** really care for shared libraries, you may want to install binutils 9956*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9957*** You will then need to restart the configuration process. 9958 9959_LT_EOF 9960 fi 9961 ;; 9962 9963 amigaos*) 9964 case $host_cpu in 9965 powerpc) 9966 # see comment about AmigaOS4 .so support 9967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9968 archive_expsym_cmds='' 9969 ;; 9970 m68k) 9971 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)' 9972 hardcode_libdir_flag_spec='-L$libdir' 9973 hardcode_minus_L=yes 9974 ;; 9975 esac 9976 ;; 9977 9978 beos*) 9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9980 allow_undefined_flag=unsupported 9981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9982 # support --undefined. This deserves some investigation. FIXME 9983 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9984 else 9985 ld_shlibs=no 9986 fi 9987 ;; 9988 9989 cygwin* | mingw* | pw32* | cegcc*) 9990 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9991 # as there is no search path for DLLs. 9992 hardcode_libdir_flag_spec='-L$libdir' 9993 export_dynamic_flag_spec='$wl--export-all-symbols' 9994 allow_undefined_flag=unsupported 9995 always_export_symbols=no 9996 enable_shared_with_static_runtimes=yes 9997 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' 9998 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9999 10000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10002 # If the export-symbols file already is a .def file, use it as 10003 # is; otherwise, prepend EXPORTS... 10004 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10005 cp $export_symbols $output_objdir/$soname.def; 10006 else 10007 echo EXPORTS > $output_objdir/$soname.def; 10008 cat $export_symbols >> $output_objdir/$soname.def; 10009 fi~ 10010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10011 else 10012 ld_shlibs=no 10013 fi 10014 ;; 10015 10016 haiku*) 10017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10018 link_all_deplibs=yes 10019 ;; 10020 10021 os2*) 10022 hardcode_libdir_flag_spec='-L$libdir' 10023 hardcode_minus_L=yes 10024 allow_undefined_flag=unsupported 10025 shrext_cmds=.dll 10026 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10029 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10030 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10031 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10032 emximp -o $lib $output_objdir/$libname.def' 10033 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10034 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10035 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10036 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10037 prefix_cmds="$SED"~ 10038 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10039 prefix_cmds="$prefix_cmds -e 1d"; 10040 fi~ 10041 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10042 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10043 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10044 emximp -o $lib $output_objdir/$libname.def' 10045 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10046 enable_shared_with_static_runtimes=yes 10047 file_list_spec='@' 10048 ;; 10049 10050 interix[3-9]*) 10051 hardcode_direct=no 10052 hardcode_shlibpath_var=no 10053 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10054 export_dynamic_flag_spec='$wl-E' 10055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10056 # Instead, shared libraries are loaded at an image base (0x10000000 by 10057 # default) and relocated if they conflict, which is a slow very memory 10058 # consuming and fragmenting process. To avoid this, we pick a random, 10059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10060 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10062 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' 10063 ;; 10064 10065 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10066 tmp_diet=no 10067 if test linux-dietlibc = "$host_os"; then 10068 case $cc_basename in 10069 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10070 esac 10071 fi 10072 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10073 && test no = "$tmp_diet" 10074 then 10075 tmp_addflag=' $pic_flag' 10076 tmp_sharedflag='-shared' 10077 case $cc_basename,$host_cpu in 10078 pgcc*) # Portland Group C compiler 10079 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' 10080 tmp_addflag=' $pic_flag' 10081 ;; 10082 pgf77* | pgf90* | pgf95* | pgfortran*) 10083 # Portland Group f77 and f90 compilers 10084 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' 10085 tmp_addflag=' $pic_flag -Mnomain' ;; 10086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10087 tmp_addflag=' -i_dynamic' ;; 10088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10089 tmp_addflag=' -i_dynamic -nofor_main' ;; 10090 ifc* | ifort*) # Intel Fortran compiler 10091 tmp_addflag=' -nofor_main' ;; 10092 lf95*) # Lahey Fortran 8.1 10093 whole_archive_flag_spec= 10094 tmp_sharedflag='--shared' ;; 10095 nagfor*) # NAGFOR 5.3 10096 tmp_sharedflag='-Wl,-shared' ;; 10097 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10098 tmp_sharedflag='-qmkshrobj' 10099 tmp_addflag= ;; 10100 nvcc*) # Cuda Compiler Driver 2.2 10101 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' 10102 compiler_needs_object=yes 10103 ;; 10104 esac 10105 case `$CC -V 2>&1 | sed 5q` in 10106 *Sun\ C*) # Sun C 5.9 10107 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' 10108 compiler_needs_object=yes 10109 tmp_sharedflag='-G' ;; 10110 *Sun\ F*) # Sun Fortran 8.3 10111 tmp_sharedflag='-G' ;; 10112 esac 10113 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10114 10115 if test yes = "$supports_anon_versioning"; then 10116 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10118 echo "local: *; };" >> $output_objdir/$libname.ver~ 10119 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10120 fi 10121 10122 case $cc_basename in 10123 tcc*) 10124 export_dynamic_flag_spec='-rdynamic' 10125 ;; 10126 xlf* | bgf* | bgxlf* | mpixlf*) 10127 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10128 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10129 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10130 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10131 if test yes = "$supports_anon_versioning"; then 10132 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10134 echo "local: *; };" >> $output_objdir/$libname.ver~ 10135 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10136 fi 10137 ;; 10138 esac 10139 else 10140 ld_shlibs=no 10141 fi 10142 ;; 10143 10144 netbsd*) 10145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10146 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10147 wlarc= 10148 else 10149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10150 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10151 fi 10152 ;; 10153 10154 solaris*) 10155 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10156 ld_shlibs=no 10157 cat <<_LT_EOF 1>&2 10158 10159*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10160*** create shared libraries on Solaris systems. Therefore, libtool 10161*** is disabling shared libraries support. We urge you to upgrade GNU 10162*** binutils to release 2.9.1 or newer. Another option is to modify 10163*** your PATH or compiler configuration so that the native linker is 10164*** used, and then restart. 10165 10166_LT_EOF 10167 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10170 else 10171 ld_shlibs=no 10172 fi 10173 ;; 10174 10175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10176 case `$LD -v 2>&1` in 10177 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10178 ld_shlibs=no 10179 cat <<_LT_EOF 1>&2 10180 10181*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10182*** reliably create shared libraries on SCO systems. Therefore, libtool 10183*** is disabling shared libraries support. We urge you to upgrade GNU 10184*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10185*** your PATH or compiler configuration so that the native linker is 10186*** used, and then restart. 10187 10188_LT_EOF 10189 ;; 10190 *) 10191 # For security reasons, it is highly recommended that you always 10192 # use absolute paths for naming shared libraries, and exclude the 10193 # DT_RUNPATH tag from executables and libraries. But doing so 10194 # requires that you compile everything twice, which is a pain. 10195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10196 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10199 else 10200 ld_shlibs=no 10201 fi 10202 ;; 10203 esac 10204 ;; 10205 10206 sunos4*) 10207 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10208 wlarc= 10209 hardcode_direct=yes 10210 hardcode_shlibpath_var=no 10211 ;; 10212 10213 *) 10214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10215 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10216 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10217 else 10218 ld_shlibs=no 10219 fi 10220 ;; 10221 esac 10222 10223 if test no = "$ld_shlibs"; then 10224 runpath_var= 10225 hardcode_libdir_flag_spec= 10226 export_dynamic_flag_spec= 10227 whole_archive_flag_spec= 10228 fi 10229 else 10230 # PORTME fill in a description of your system's linker (not GNU ld) 10231 case $host_os in 10232 aix3*) 10233 allow_undefined_flag=unsupported 10234 always_export_symbols=yes 10235 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' 10236 # Note: this linker hardcodes the directories in LIBPATH if there 10237 # are no directories specified by -L. 10238 hardcode_minus_L=yes 10239 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10240 # Neither direct hardcoding nor static linking is supported with a 10241 # broken collect2. 10242 hardcode_direct=unsupported 10243 fi 10244 ;; 10245 10246 aix[4-9]*) 10247 if test ia64 = "$host_cpu"; then 10248 # On IA64, the linker does run time linking by default, so we don't 10249 # have to do anything special. 10250 aix_use_runtimelinking=no 10251 exp_sym_flag='-Bexport' 10252 no_entry_flag= 10253 else 10254 # If we're using GNU nm, then we don't want the "-C" option. 10255 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10256 # Without the "-l" option, or with the "-B" option, AIX nm treats 10257 # weak defined symbols like other global defined symbols, whereas 10258 # GNU nm marks them as "W". 10259 # While the 'weak' keyword is ignored in the Export File, we need 10260 # it in the Import File for the 'aix-soname' feature, so we have 10261 # to replace the "-B" option with "-P" for AIX nm. 10262 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10263 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10264 else 10265 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10266 fi 10267 aix_use_runtimelinking=no 10268 10269 # Test if we are trying to use run time linking or normal 10270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10271 # have runtime linking enabled, and use it for executables. 10272 # For shared libraries, we enable/disable runtime linking 10273 # depending on the kind of the shared library created - 10274 # when "with_aix_soname,aix_use_runtimelinking" is: 10275 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10276 # "aix,yes" lib.so shared, rtl:yes, for executables 10277 # lib.a static archive 10278 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10279 # lib.a(lib.so.V) shared, rtl:no, for executables 10280 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10281 # lib.a(lib.so.V) shared, rtl:no 10282 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10283 # lib.a static archive 10284 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10285 for ld_flag in $LDFLAGS; do 10286 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10287 aix_use_runtimelinking=yes 10288 break 10289 fi 10290 done 10291 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10292 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10293 # so we don't have lib.a shared libs to link our executables. 10294 # We have to force runtime linking in this case. 10295 aix_use_runtimelinking=yes 10296 LDFLAGS="$LDFLAGS -Wl,-brtl" 10297 fi 10298 ;; 10299 esac 10300 10301 exp_sym_flag='-bexport' 10302 no_entry_flag='-bnoentry' 10303 fi 10304 10305 # When large executables or shared objects are built, AIX ld can 10306 # have problems creating the table of contents. If linking a library 10307 # or program results in "error TOC overflow" add -mminimal-toc to 10308 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10309 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10310 10311 archive_cmds='' 10312 hardcode_direct=yes 10313 hardcode_direct_absolute=yes 10314 hardcode_libdir_separator=':' 10315 link_all_deplibs=yes 10316 file_list_spec='$wl-f,' 10317 case $with_aix_soname,$aix_use_runtimelinking in 10318 aix,*) ;; # traditional, no import file 10319 svr4,* | *,yes) # use import file 10320 # The Import File defines what to hardcode. 10321 hardcode_direct=no 10322 hardcode_direct_absolute=no 10323 ;; 10324 esac 10325 10326 if test yes = "$GCC"; then 10327 case $host_os in aix4.[012]|aix4.[012].*) 10328 # We only want to do this on AIX 4.2 and lower, the check 10329 # below for broken collect2 doesn't work under 4.3+ 10330 collect2name=`$CC -print-prog-name=collect2` 10331 if test -f "$collect2name" && 10332 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10333 then 10334 # We have reworked collect2 10335 : 10336 else 10337 # We have old collect2 10338 hardcode_direct=unsupported 10339 # It fails to find uninstalled libraries when the uninstalled 10340 # path is not listed in the libpath. Setting hardcode_minus_L 10341 # to unsupported forces relinking 10342 hardcode_minus_L=yes 10343 hardcode_libdir_flag_spec='-L$libdir' 10344 hardcode_libdir_separator= 10345 fi 10346 ;; 10347 esac 10348 shared_flag='-shared' 10349 if test yes = "$aix_use_runtimelinking"; then 10350 shared_flag="$shared_flag "'$wl-G' 10351 fi 10352 # Need to ensure runtime linking is disabled for the traditional 10353 # shared library, or the linker may eventually find shared libraries 10354 # /with/ Import File - we do not want to mix them. 10355 shared_flag_aix='-shared' 10356 shared_flag_svr4='-shared $wl-G' 10357 else 10358 # not using gcc 10359 if test ia64 = "$host_cpu"; then 10360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10361 # chokes on -Wl,-G. The following line is correct: 10362 shared_flag='-G' 10363 else 10364 if test yes = "$aix_use_runtimelinking"; then 10365 shared_flag='$wl-G' 10366 else 10367 shared_flag='$wl-bM:SRE' 10368 fi 10369 shared_flag_aix='$wl-bM:SRE' 10370 shared_flag_svr4='$wl-G' 10371 fi 10372 fi 10373 10374 export_dynamic_flag_spec='$wl-bexpall' 10375 # It seems that -bexpall does not export symbols beginning with 10376 # underscore (_), so it is better to generate a list of symbols to export. 10377 always_export_symbols=yes 10378 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10379 # Warning - without using the other runtime loading flags (-brtl), 10380 # -berok will link without error, but may produce a broken library. 10381 allow_undefined_flag='-berok' 10382 # Determine the default libpath from the value encoded in an 10383 # empty executable. 10384 if test set = "${lt_cv_aix_libpath+set}"; then 10385 aix_libpath=$lt_cv_aix_libpath 10386else 10387 if ${lt_cv_aix_libpath_+:} false; then : 10388 $as_echo_n "(cached) " >&6 10389else 10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10391/* end confdefs.h. */ 10392 10393int 10394main () 10395{ 10396 10397 ; 10398 return 0; 10399} 10400_ACEOF 10401if ac_fn_c_try_link "$LINENO"; then : 10402 10403 lt_aix_libpath_sed=' 10404 /Import File Strings/,/^$/ { 10405 /^0/ { 10406 s/^0 *\([^ ]*\) *$/\1/ 10407 p 10408 } 10409 }' 10410 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10411 # Check for a 64-bit object if we didn't find anything. 10412 if test -z "$lt_cv_aix_libpath_"; then 10413 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10414 fi 10415fi 10416rm -f core conftest.err conftest.$ac_objext \ 10417 conftest$ac_exeext conftest.$ac_ext 10418 if test -z "$lt_cv_aix_libpath_"; then 10419 lt_cv_aix_libpath_=/usr/lib:/lib 10420 fi 10421 10422fi 10423 10424 aix_libpath=$lt_cv_aix_libpath_ 10425fi 10426 10427 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10428 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10429 else 10430 if test ia64 = "$host_cpu"; then 10431 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10432 allow_undefined_flag="-z nodefs" 10433 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" 10434 else 10435 # Determine the default libpath from the value encoded in an 10436 # empty executable. 10437 if test set = "${lt_cv_aix_libpath+set}"; then 10438 aix_libpath=$lt_cv_aix_libpath 10439else 10440 if ${lt_cv_aix_libpath_+:} false; then : 10441 $as_echo_n "(cached) " >&6 10442else 10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10444/* end confdefs.h. */ 10445 10446int 10447main () 10448{ 10449 10450 ; 10451 return 0; 10452} 10453_ACEOF 10454if ac_fn_c_try_link "$LINENO"; then : 10455 10456 lt_aix_libpath_sed=' 10457 /Import File Strings/,/^$/ { 10458 /^0/ { 10459 s/^0 *\([^ ]*\) *$/\1/ 10460 p 10461 } 10462 }' 10463 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10464 # Check for a 64-bit object if we didn't find anything. 10465 if test -z "$lt_cv_aix_libpath_"; then 10466 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10467 fi 10468fi 10469rm -f core conftest.err conftest.$ac_objext \ 10470 conftest$ac_exeext conftest.$ac_ext 10471 if test -z "$lt_cv_aix_libpath_"; then 10472 lt_cv_aix_libpath_=/usr/lib:/lib 10473 fi 10474 10475fi 10476 10477 aix_libpath=$lt_cv_aix_libpath_ 10478fi 10479 10480 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10481 # Warning - without using the other run time loading flags, 10482 # -berok will link without error, but may produce a broken library. 10483 no_undefined_flag=' $wl-bernotok' 10484 allow_undefined_flag=' $wl-berok' 10485 if test yes = "$with_gnu_ld"; then 10486 # We only use this code for GNU lds that support --whole-archive. 10487 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10488 else 10489 # Exported symbols can be pulled into shared objects from archives 10490 whole_archive_flag_spec='$convenience' 10491 fi 10492 archive_cmds_need_lc=yes 10493 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10494 # -brtl affects multiple linker settings, -berok does not and is overridden later 10495 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10496 if test svr4 != "$with_aix_soname"; then 10497 # This is similar to how AIX traditionally builds its shared libraries. 10498 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10499 fi 10500 if test aix != "$with_aix_soname"; then 10501 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10502 else 10503 # used by -dlpreopen to get the symbols 10504 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10505 fi 10506 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10507 fi 10508 fi 10509 ;; 10510 10511 amigaos*) 10512 case $host_cpu in 10513 powerpc) 10514 # see comment about AmigaOS4 .so support 10515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10516 archive_expsym_cmds='' 10517 ;; 10518 m68k) 10519 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)' 10520 hardcode_libdir_flag_spec='-L$libdir' 10521 hardcode_minus_L=yes 10522 ;; 10523 esac 10524 ;; 10525 10526 bsdi[45]*) 10527 export_dynamic_flag_spec=-rdynamic 10528 ;; 10529 10530 cygwin* | mingw* | pw32* | cegcc*) 10531 # When not using gcc, we currently assume that we are using 10532 # Microsoft Visual C++ or Intel C++ Compiler. 10533 # hardcode_libdir_flag_spec is actually meaningless, as there is 10534 # no search path for DLLs. 10535 case $cc_basename in 10536 cl* | icl*) 10537 # Native MSVC or ICC 10538 hardcode_libdir_flag_spec=' ' 10539 allow_undefined_flag=unsupported 10540 always_export_symbols=yes 10541 file_list_spec='@' 10542 # Tell ltmain to make .lib files, not .a files. 10543 libext=lib 10544 # Tell ltmain to make .dll files, not .so files. 10545 shrext_cmds=.dll 10546 # FIXME: Setting linknames here is a bad hack. 10547 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10548 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10549 cp "$export_symbols" "$output_objdir/$soname.def"; 10550 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10551 else 10552 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10553 fi~ 10554 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10555 linknames=' 10556 # The linker will not automatically build a static lib if we build a DLL. 10557 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10558 enable_shared_with_static_runtimes=yes 10559 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10561 # Don't use ranlib 10562 old_postinstall_cmds='chmod 644 $oldlib' 10563 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10564 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10565 case $lt_outputfile in 10566 *.exe|*.EXE) ;; 10567 *) 10568 lt_outputfile=$lt_outputfile.exe 10569 lt_tool_outputfile=$lt_tool_outputfile.exe 10570 ;; 10571 esac~ 10572 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10573 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10574 $RM "$lt_outputfile.manifest"; 10575 fi' 10576 ;; 10577 *) 10578 # Assume MSVC and ICC wrapper 10579 hardcode_libdir_flag_spec=' ' 10580 allow_undefined_flag=unsupported 10581 # Tell ltmain to make .lib files, not .a files. 10582 libext=lib 10583 # Tell ltmain to make .dll files, not .so files. 10584 shrext_cmds=.dll 10585 # FIXME: Setting linknames here is a bad hack. 10586 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10587 # The linker will automatically build a .lib file if we build a DLL. 10588 old_archive_from_new_cmds='true' 10589 # FIXME: Should let the user specify the lib program. 10590 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10591 enable_shared_with_static_runtimes=yes 10592 ;; 10593 esac 10594 ;; 10595 10596 darwin* | rhapsody*) 10597 10598 10599 archive_cmds_need_lc=no 10600 hardcode_direct=no 10601 hardcode_automatic=yes 10602 hardcode_shlibpath_var=unsupported 10603 if test yes = "$lt_cv_ld_force_load"; then 10604 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\"`' 10605 10606 else 10607 whole_archive_flag_spec='' 10608 fi 10609 link_all_deplibs=yes 10610 allow_undefined_flag=$_lt_dar_allow_undefined 10611 case $cc_basename in 10612 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10613 *) _lt_dar_can_shared=$GCC ;; 10614 esac 10615 if test yes = "$_lt_dar_can_shared"; then 10616 output_verbose_link_cmd=func_echo_all 10617 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10618 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10619 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" 10620 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" 10621 10622 else 10623 ld_shlibs=no 10624 fi 10625 10626 ;; 10627 10628 dgux*) 10629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10630 hardcode_libdir_flag_spec='-L$libdir' 10631 hardcode_shlibpath_var=no 10632 ;; 10633 10634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10635 # support. Future versions do this automatically, but an explicit c++rt0.o 10636 # does not break anything, and helps significantly (at the cost of a little 10637 # extra space). 10638 freebsd2.2*) 10639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10640 hardcode_libdir_flag_spec='-R$libdir' 10641 hardcode_direct=yes 10642 hardcode_shlibpath_var=no 10643 ;; 10644 10645 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10646 freebsd2.*) 10647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10648 hardcode_direct=yes 10649 hardcode_minus_L=yes 10650 hardcode_shlibpath_var=no 10651 ;; 10652 10653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10654 freebsd* | dragonfly*) 10655 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10656 hardcode_libdir_flag_spec='-R$libdir' 10657 hardcode_direct=yes 10658 hardcode_shlibpath_var=no 10659 ;; 10660 10661 hpux9*) 10662 if test yes = "$GCC"; then 10663 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10664 else 10665 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10666 fi 10667 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10668 hardcode_libdir_separator=: 10669 hardcode_direct=yes 10670 10671 # hardcode_minus_L: Not really in the search PATH, 10672 # but as the default location of the library. 10673 hardcode_minus_L=yes 10674 export_dynamic_flag_spec='$wl-E' 10675 ;; 10676 10677 hpux10*) 10678 if test yes,no = "$GCC,$with_gnu_ld"; then 10679 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10680 else 10681 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10682 fi 10683 if test no = "$with_gnu_ld"; then 10684 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10685 hardcode_libdir_separator=: 10686 hardcode_direct=yes 10687 hardcode_direct_absolute=yes 10688 export_dynamic_flag_spec='$wl-E' 10689 # hardcode_minus_L: Not really in the search PATH, 10690 # but as the default location of the library. 10691 hardcode_minus_L=yes 10692 fi 10693 ;; 10694 10695 hpux11*) 10696 if test yes,no = "$GCC,$with_gnu_ld"; then 10697 case $host_cpu in 10698 hppa*64*) 10699 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10700 ;; 10701 ia64*) 10702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10703 ;; 10704 *) 10705 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10706 ;; 10707 esac 10708 else 10709 case $host_cpu in 10710 hppa*64*) 10711 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10712 ;; 10713 ia64*) 10714 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10715 ;; 10716 *) 10717 10718 # Older versions of the 11.00 compiler do not understand -b yet 10719 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10721$as_echo_n "checking if $CC understands -b... " >&6; } 10722if ${lt_cv_prog_compiler__b+:} false; then : 10723 $as_echo_n "(cached) " >&6 10724else 10725 lt_cv_prog_compiler__b=no 10726 save_LDFLAGS=$LDFLAGS 10727 LDFLAGS="$LDFLAGS -b" 10728 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10730 # The linker can only warn and ignore the option if not recognized 10731 # So say no if there are warnings 10732 if test -s conftest.err; then 10733 # Append any errors to the config.log. 10734 cat conftest.err 1>&5 10735 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10737 if diff conftest.exp conftest.er2 >/dev/null; then 10738 lt_cv_prog_compiler__b=yes 10739 fi 10740 else 10741 lt_cv_prog_compiler__b=yes 10742 fi 10743 fi 10744 $RM -r conftest* 10745 LDFLAGS=$save_LDFLAGS 10746 10747fi 10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10749$as_echo "$lt_cv_prog_compiler__b" >&6; } 10750 10751if test yes = "$lt_cv_prog_compiler__b"; then 10752 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10753else 10754 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10755fi 10756 10757 ;; 10758 esac 10759 fi 10760 if test no = "$with_gnu_ld"; then 10761 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10762 hardcode_libdir_separator=: 10763 10764 case $host_cpu in 10765 hppa*64*|ia64*) 10766 hardcode_direct=no 10767 hardcode_shlibpath_var=no 10768 ;; 10769 *) 10770 hardcode_direct=yes 10771 hardcode_direct_absolute=yes 10772 export_dynamic_flag_spec='$wl-E' 10773 10774 # hardcode_minus_L: Not really in the search PATH, 10775 # but as the default location of the library. 10776 hardcode_minus_L=yes 10777 ;; 10778 esac 10779 fi 10780 ;; 10781 10782 irix5* | irix6* | nonstopux*) 10783 if test yes = "$GCC"; then 10784 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' 10785 # Try to use the -exported_symbol ld option, if it does not 10786 # work, assume that -exports_file does not work either and 10787 # implicitly export all symbols. 10788 # This should be the same for all languages, so no per-tag cache variable. 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10790$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10791if ${lt_cv_irix_exported_symbol+:} false; then : 10792 $as_echo_n "(cached) " >&6 10793else 10794 save_LDFLAGS=$LDFLAGS 10795 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798int foo (void) { return 0; } 10799_ACEOF 10800if ac_fn_c_try_link "$LINENO"; then : 10801 lt_cv_irix_exported_symbol=yes 10802else 10803 lt_cv_irix_exported_symbol=no 10804fi 10805rm -f core conftest.err conftest.$ac_objext \ 10806 conftest$ac_exeext conftest.$ac_ext 10807 LDFLAGS=$save_LDFLAGS 10808fi 10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10810$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10811 if test yes = "$lt_cv_irix_exported_symbol"; then 10812 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' 10813 fi 10814 else 10815 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' 10816 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' 10817 fi 10818 archive_cmds_need_lc='no' 10819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10820 hardcode_libdir_separator=: 10821 inherit_rpath=yes 10822 link_all_deplibs=yes 10823 ;; 10824 10825 linux*) 10826 case $cc_basename in 10827 tcc*) 10828 # Fabrice Bellard et al's Tiny C Compiler 10829 ld_shlibs=yes 10830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10831 ;; 10832 esac 10833 ;; 10834 10835 netbsd*) 10836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10838 else 10839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10840 fi 10841 hardcode_libdir_flag_spec='-R$libdir' 10842 hardcode_direct=yes 10843 hardcode_shlibpath_var=no 10844 ;; 10845 10846 newsos6) 10847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10848 hardcode_direct=yes 10849 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10850 hardcode_libdir_separator=: 10851 hardcode_shlibpath_var=no 10852 ;; 10853 10854 *nto* | *qnx*) 10855 ;; 10856 10857 openbsd* | bitrig*) 10858 if test -f /usr/libexec/ld.so; then 10859 hardcode_direct=yes 10860 hardcode_shlibpath_var=no 10861 hardcode_direct_absolute=yes 10862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10865 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10866 export_dynamic_flag_spec='$wl-E' 10867 else 10868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10869 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10870 fi 10871 else 10872 ld_shlibs=no 10873 fi 10874 ;; 10875 10876 os2*) 10877 hardcode_libdir_flag_spec='-L$libdir' 10878 hardcode_minus_L=yes 10879 allow_undefined_flag=unsupported 10880 shrext_cmds=.dll 10881 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10884 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10885 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10886 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10887 emximp -o $lib $output_objdir/$libname.def' 10888 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10889 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10890 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10891 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10892 prefix_cmds="$SED"~ 10893 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10894 prefix_cmds="$prefix_cmds -e 1d"; 10895 fi~ 10896 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10897 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10899 emximp -o $lib $output_objdir/$libname.def' 10900 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10901 enable_shared_with_static_runtimes=yes 10902 file_list_spec='@' 10903 ;; 10904 10905 osf3*) 10906 if test yes = "$GCC"; then 10907 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10908 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' 10909 else 10910 allow_undefined_flag=' -expect_unresolved \*' 10911 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' 10912 fi 10913 archive_cmds_need_lc='no' 10914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10915 hardcode_libdir_separator=: 10916 ;; 10917 10918 osf4* | osf5*) # as osf3* with the addition of -msym flag 10919 if test yes = "$GCC"; then 10920 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10921 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' 10922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10923 else 10924 allow_undefined_flag=' -expect_unresolved \*' 10925 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' 10926 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~ 10927 $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' 10928 10929 # Both c and cxx compiler support -rpath directly 10930 hardcode_libdir_flag_spec='-rpath $libdir' 10931 fi 10932 archive_cmds_need_lc='no' 10933 hardcode_libdir_separator=: 10934 ;; 10935 10936 solaris*) 10937 no_undefined_flag=' -z defs' 10938 if test yes = "$GCC"; then 10939 wlarc='$wl' 10940 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10942 $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' 10943 else 10944 case `$CC -V 2>&1` in 10945 *"Compilers 5.0"*) 10946 wlarc='' 10947 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10949 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10950 ;; 10951 *) 10952 wlarc='$wl' 10953 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10955 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10956 ;; 10957 esac 10958 fi 10959 hardcode_libdir_flag_spec='-R$libdir' 10960 hardcode_shlibpath_var=no 10961 case $host_os in 10962 solaris2.[0-5] | solaris2.[0-5].*) ;; 10963 *) 10964 # The compiler driver will combine and reorder linker options, 10965 # but understands '-z linker_flag'. GCC discards it without '$wl', 10966 # but is careful enough not to reorder. 10967 # Supported since Solaris 2.6 (maybe 2.5.1?) 10968 if test yes = "$GCC"; then 10969 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10970 else 10971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10972 fi 10973 ;; 10974 esac 10975 link_all_deplibs=yes 10976 ;; 10977 10978 sunos4*) 10979 if test sequent = "$host_vendor"; then 10980 # Use $CC to link under sequent, because it throws in some extra .o 10981 # files that make .init and .fini sections work. 10982 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10983 else 10984 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10985 fi 10986 hardcode_libdir_flag_spec='-L$libdir' 10987 hardcode_direct=yes 10988 hardcode_minus_L=yes 10989 hardcode_shlibpath_var=no 10990 ;; 10991 10992 sysv4) 10993 case $host_vendor in 10994 sni) 10995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10996 hardcode_direct=yes # is this really true??? 10997 ;; 10998 siemens) 10999 ## LD is ld it makes a PLAMLIB 11000 ## CC just makes a GrossModule. 11001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11002 reload_cmds='$CC -r -o $output$reload_objs' 11003 hardcode_direct=no 11004 ;; 11005 motorola) 11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11007 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11008 ;; 11009 esac 11010 runpath_var='LD_RUN_PATH' 11011 hardcode_shlibpath_var=no 11012 ;; 11013 11014 sysv4.3*) 11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11016 hardcode_shlibpath_var=no 11017 export_dynamic_flag_spec='-Bexport' 11018 ;; 11019 11020 sysv4*MP*) 11021 if test -d /usr/nec; then 11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11023 hardcode_shlibpath_var=no 11024 runpath_var=LD_RUN_PATH 11025 hardcode_runpath_var=yes 11026 ld_shlibs=yes 11027 fi 11028 ;; 11029 11030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11031 no_undefined_flag='$wl-z,text' 11032 archive_cmds_need_lc=no 11033 hardcode_shlibpath_var=no 11034 runpath_var='LD_RUN_PATH' 11035 11036 if test yes = "$GCC"; then 11037 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11038 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11039 else 11040 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11041 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11042 fi 11043 ;; 11044 11045 sysv5* | sco3.2v5* | sco5v6*) 11046 # Note: We CANNOT use -z defs as we might desire, because we do not 11047 # link with -lc, and that would cause any symbols used from libc to 11048 # always be unresolved, which means just about no library would 11049 # ever link correctly. If we're not using GNU ld we use -z text 11050 # though, which does catch some bad symbols but isn't as heavy-handed 11051 # as -z defs. 11052 no_undefined_flag='$wl-z,text' 11053 allow_undefined_flag='$wl-z,nodefs' 11054 archive_cmds_need_lc=no 11055 hardcode_shlibpath_var=no 11056 hardcode_libdir_flag_spec='$wl-R,$libdir' 11057 hardcode_libdir_separator=':' 11058 link_all_deplibs=yes 11059 export_dynamic_flag_spec='$wl-Bexport' 11060 runpath_var='LD_RUN_PATH' 11061 11062 if test yes = "$GCC"; then 11063 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11064 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11065 else 11066 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11067 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11068 fi 11069 ;; 11070 11071 uts4*) 11072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11073 hardcode_libdir_flag_spec='-L$libdir' 11074 hardcode_shlibpath_var=no 11075 ;; 11076 11077 *) 11078 ld_shlibs=no 11079 ;; 11080 esac 11081 11082 if test sni = "$host_vendor"; then 11083 case $host in 11084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11085 export_dynamic_flag_spec='$wl-Blargedynsym' 11086 ;; 11087 esac 11088 fi 11089 fi 11090 11091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11092$as_echo "$ld_shlibs" >&6; } 11093test no = "$ld_shlibs" && can_build_shared=no 11094 11095with_gnu_ld=$with_gnu_ld 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111# 11112# Do we need to explicitly link libc? 11113# 11114case "x$archive_cmds_need_lc" in 11115x|xyes) 11116 # Assume -lc should be added 11117 archive_cmds_need_lc=yes 11118 11119 if test yes,yes = "$GCC,$enable_shared"; then 11120 case $archive_cmds in 11121 *'~'*) 11122 # FIXME: we may have to deal with multi-command sequences. 11123 ;; 11124 '$CC '*) 11125 # Test whether the compiler implicitly links with -lc since on some 11126 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11127 # to ld, don't add -lc before -lgcc. 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11129$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11130if ${lt_cv_archive_cmds_need_lc+:} false; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 $RM conftest* 11134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11135 11136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11137 (eval $ac_compile) 2>&5 11138 ac_status=$? 11139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11140 test $ac_status = 0; } 2>conftest.err; then 11141 soname=conftest 11142 lib=conftest 11143 libobjs=conftest.$ac_objext 11144 deplibs= 11145 wl=$lt_prog_compiler_wl 11146 pic_flag=$lt_prog_compiler_pic 11147 compiler_flags=-v 11148 linker_flags=-v 11149 verstring= 11150 output_objdir=. 11151 libname=conftest 11152 lt_save_allow_undefined_flag=$allow_undefined_flag 11153 allow_undefined_flag= 11154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11155 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11156 ac_status=$? 11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11158 test $ac_status = 0; } 11159 then 11160 lt_cv_archive_cmds_need_lc=no 11161 else 11162 lt_cv_archive_cmds_need_lc=yes 11163 fi 11164 allow_undefined_flag=$lt_save_allow_undefined_flag 11165 else 11166 cat conftest.err 1>&5 11167 fi 11168 $RM conftest* 11169 11170fi 11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11172$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11173 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11174 ;; 11175 esac 11176 fi 11177 ;; 11178esac 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11332$as_echo_n "checking dynamic linker characteristics... " >&6; } 11333 11334if test yes = "$GCC"; then 11335 case $host_os in 11336 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11337 *) lt_awk_arg='/^libraries:/' ;; 11338 esac 11339 case $host_os in 11340 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11341 *) lt_sed_strip_eq='s|=/|/|g' ;; 11342 esac 11343 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11344 case $lt_search_path_spec in 11345 *\;*) 11346 # if the path contains ";" then we assume it to be the separator 11347 # otherwise default to the standard path separator (i.e. ":") - it is 11348 # assumed that no part of a normal pathname contains ";" but that should 11349 # okay in the real world where ";" in dirpaths is itself problematic. 11350 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11351 ;; 11352 *) 11353 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11354 ;; 11355 esac 11356 # Ok, now we have the path, separated by spaces, we can step through it 11357 # and add multilib dir if necessary... 11358 lt_tmp_lt_search_path_spec= 11359 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11360 # ...but if some path component already ends with the multilib dir we assume 11361 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11362 case "$lt_multi_os_dir; $lt_search_path_spec " in 11363 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11364 lt_multi_os_dir= 11365 ;; 11366 esac 11367 for lt_sys_path in $lt_search_path_spec; do 11368 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11370 elif test -n "$lt_multi_os_dir"; then 11371 test -d "$lt_sys_path" && \ 11372 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11373 fi 11374 done 11375 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11376BEGIN {RS = " "; FS = "/|\n";} { 11377 lt_foo = ""; 11378 lt_count = 0; 11379 for (lt_i = NF; lt_i > 0; lt_i--) { 11380 if ($lt_i != "" && $lt_i != ".") { 11381 if ($lt_i == "..") { 11382 lt_count++; 11383 } else { 11384 if (lt_count == 0) { 11385 lt_foo = "/" $lt_i lt_foo; 11386 } else { 11387 lt_count--; 11388 } 11389 } 11390 } 11391 } 11392 if (lt_foo != "") { lt_freq[lt_foo]++; } 11393 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11394}'` 11395 # AWK program above erroneously prepends '/' to C:/dos/paths 11396 # for these hosts. 11397 case $host_os in 11398 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11399 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11400 esac 11401 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11402else 11403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11404fi 11405library_names_spec= 11406libname_spec='lib$name' 11407soname_spec= 11408shrext_cmds=.so 11409postinstall_cmds= 11410postuninstall_cmds= 11411finish_cmds= 11412finish_eval= 11413shlibpath_var= 11414shlibpath_overrides_runpath=unknown 11415version_type=none 11416dynamic_linker="$host_os ld.so" 11417sys_lib_dlsearch_path_spec="/lib /usr/lib" 11418need_lib_prefix=unknown 11419hardcode_into_libs=no 11420 11421# when you set need_version to no, make sure it does not cause -set_version 11422# flags to be left without arguments 11423need_version=unknown 11424 11425 11426 11427case $host_os in 11428aix3*) 11429 version_type=linux # correct to gnu/linux during the next big refactor 11430 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11431 shlibpath_var=LIBPATH 11432 11433 # AIX 3 has no versioning support, so we append a major version to the name. 11434 soname_spec='$libname$release$shared_ext$major' 11435 ;; 11436 11437aix[4-9]*) 11438 version_type=linux # correct to gnu/linux during the next big refactor 11439 need_lib_prefix=no 11440 need_version=no 11441 hardcode_into_libs=yes 11442 if test ia64 = "$host_cpu"; then 11443 # AIX 5 supports IA64 11444 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11445 shlibpath_var=LD_LIBRARY_PATH 11446 else 11447 # With GCC up to 2.95.x, collect2 would create an import file 11448 # for dependence libraries. The import file would start with 11449 # the line '#! .'. This would cause the generated library to 11450 # depend on '.', always an invalid library. This was fixed in 11451 # development snapshots of GCC prior to 3.0. 11452 case $host_os in 11453 aix4 | aix4.[01] | aix4.[01].*) 11454 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11455 echo ' yes ' 11456 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11457 : 11458 else 11459 can_build_shared=no 11460 fi 11461 ;; 11462 esac 11463 # Using Import Files as archive members, it is possible to support 11464 # filename-based versioning of shared library archives on AIX. While 11465 # this would work for both with and without runtime linking, it will 11466 # prevent static linking of such archives. So we do filename-based 11467 # shared library versioning with .so extension only, which is used 11468 # when both runtime linking and shared linking is enabled. 11469 # Unfortunately, runtime linking may impact performance, so we do 11470 # not want this to be the default eventually. Also, we use the 11471 # versioned .so libs for executables only if there is the -brtl 11472 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11473 # To allow for filename-based versioning support, we need to create 11474 # libNAME.so.V as an archive file, containing: 11475 # *) an Import File, referring to the versioned filename of the 11476 # archive as well as the shared archive member, telling the 11477 # bitwidth (32 or 64) of that shared object, and providing the 11478 # list of exported symbols of that shared object, eventually 11479 # decorated with the 'weak' keyword 11480 # *) the shared object with the F_LOADONLY flag set, to really avoid 11481 # it being seen by the linker. 11482 # At run time we better use the real file rather than another symlink, 11483 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11484 11485 case $with_aix_soname,$aix_use_runtimelinking in 11486 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11487 # soname into executable. Probably we can add versioning support to 11488 # collect2, so additional links can be useful in future. 11489 aix,yes) # traditional libtool 11490 dynamic_linker='AIX unversionable lib.so' 11491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11492 # instead of lib<name>.a to let people know that these are not 11493 # typical AIX shared libraries. 11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11495 ;; 11496 aix,no) # traditional AIX only 11497 dynamic_linker='AIX lib.a(lib.so.V)' 11498 # We preserve .a as extension for shared libraries through AIX4.2 11499 # and later when we are not doing run time linking. 11500 library_names_spec='$libname$release.a $libname.a' 11501 soname_spec='$libname$release$shared_ext$major' 11502 ;; 11503 svr4,*) # full svr4 only 11504 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11505 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11506 # We do not specify a path in Import Files, so LIBPATH fires. 11507 shlibpath_overrides_runpath=yes 11508 ;; 11509 *,yes) # both, prefer svr4 11510 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11511 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11512 # unpreferred sharedlib libNAME.a needs extra handling 11513 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11514 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11515 # We do not specify a path in Import Files, so LIBPATH fires. 11516 shlibpath_overrides_runpath=yes 11517 ;; 11518 *,no) # both, prefer aix 11519 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11520 library_names_spec='$libname$release.a $libname.a' 11521 soname_spec='$libname$release$shared_ext$major' 11522 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11523 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11524 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11525 ;; 11526 esac 11527 shlibpath_var=LIBPATH 11528 fi 11529 ;; 11530 11531amigaos*) 11532 case $host_cpu in 11533 powerpc) 11534 # Since July 2007 AmigaOS4 officially supports .so libraries. 11535 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11537 ;; 11538 m68k) 11539 library_names_spec='$libname.ixlibrary $libname.a' 11540 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11541 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11542 ;; 11543 esac 11544 ;; 11545 11546beos*) 11547 library_names_spec='$libname$shared_ext' 11548 dynamic_linker="$host_os ld.so" 11549 shlibpath_var=LIBRARY_PATH 11550 ;; 11551 11552bsdi[45]*) 11553 version_type=linux # correct to gnu/linux during the next big refactor 11554 need_version=no 11555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11556 soname_spec='$libname$release$shared_ext$major' 11557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11558 shlibpath_var=LD_LIBRARY_PATH 11559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11561 # the default ld.so.conf also contains /usr/contrib/lib and 11562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11563 # libtool to hard-code these into programs 11564 ;; 11565 11566cygwin* | mingw* | pw32* | cegcc*) 11567 version_type=windows 11568 shrext_cmds=.dll 11569 need_version=no 11570 need_lib_prefix=no 11571 11572 case $GCC,$cc_basename in 11573 yes,*) 11574 # gcc 11575 library_names_spec='$libname.dll.a' 11576 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11577 postinstall_cmds='base_file=`basename \$file`~ 11578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11579 dldir=$destdir/`dirname \$dlpath`~ 11580 test -d \$dldir || mkdir -p \$dldir~ 11581 $install_prog $dir/$dlname \$dldir/$dlname~ 11582 chmod a+x \$dldir/$dlname~ 11583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11585 fi' 11586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11587 dlpath=$dir/\$dldll~ 11588 $RM \$dlpath' 11589 shlibpath_overrides_runpath=yes 11590 11591 case $host_os in 11592 cygwin*) 11593 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11594 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11595 11596 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11597 ;; 11598 mingw* | cegcc*) 11599 # MinGW DLLs use traditional 'lib' prefix 11600 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11601 ;; 11602 pw32*) 11603 # pw32 DLLs use 'pw' prefix rather than 'lib' 11604 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11605 ;; 11606 esac 11607 dynamic_linker='Win32 ld.exe' 11608 ;; 11609 11610 *,cl* | *,icl*) 11611 # Native MSVC or ICC 11612 libname_spec='$name' 11613 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11614 library_names_spec='$libname.dll.lib' 11615 11616 case $build_os in 11617 mingw*) 11618 sys_lib_search_path_spec= 11619 lt_save_ifs=$IFS 11620 IFS=';' 11621 for lt_path in $LIB 11622 do 11623 IFS=$lt_save_ifs 11624 # Let DOS variable expansion print the short 8.3 style file name. 11625 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11626 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11627 done 11628 IFS=$lt_save_ifs 11629 # Convert to MSYS style. 11630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11631 ;; 11632 cygwin*) 11633 # Convert to unix form, then to dos form, then back to unix form 11634 # but this time dos style (no spaces!) so that the unix form looks 11635 # like /cygdrive/c/PROGRA~1:/cygdr... 11636 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11637 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11638 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11639 ;; 11640 *) 11641 sys_lib_search_path_spec=$LIB 11642 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11643 # It is most probably a Windows format PATH. 11644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11645 else 11646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11647 fi 11648 # FIXME: find the short name or the path components, as spaces are 11649 # common. (e.g. "Program Files" -> "PROGRA~1") 11650 ;; 11651 esac 11652 11653 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11654 postinstall_cmds='base_file=`basename \$file`~ 11655 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11656 dldir=$destdir/`dirname \$dlpath`~ 11657 test -d \$dldir || mkdir -p \$dldir~ 11658 $install_prog $dir/$dlname \$dldir/$dlname' 11659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11660 dlpath=$dir/\$dldll~ 11661 $RM \$dlpath' 11662 shlibpath_overrides_runpath=yes 11663 dynamic_linker='Win32 link.exe' 11664 ;; 11665 11666 *) 11667 # Assume MSVC and ICC wrapper 11668 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11669 dynamic_linker='Win32 ld.exe' 11670 ;; 11671 esac 11672 # FIXME: first we should search . and the directory the executable is in 11673 shlibpath_var=PATH 11674 ;; 11675 11676darwin* | rhapsody*) 11677 dynamic_linker="$host_os dyld" 11678 version_type=darwin 11679 need_lib_prefix=no 11680 need_version=no 11681 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11682 soname_spec='$libname$release$major$shared_ext' 11683 shlibpath_overrides_runpath=yes 11684 shlibpath_var=DYLD_LIBRARY_PATH 11685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11686 11687 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11689 ;; 11690 11691dgux*) 11692 version_type=linux # correct to gnu/linux during the next big refactor 11693 need_lib_prefix=no 11694 need_version=no 11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11696 soname_spec='$libname$release$shared_ext$major' 11697 shlibpath_var=LD_LIBRARY_PATH 11698 ;; 11699 11700freebsd* | dragonfly*) 11701 # DragonFly does not have aout. When/if they implement a new 11702 # versioning mechanism, adjust this. 11703 if test -x /usr/bin/objformat; then 11704 objformat=`/usr/bin/objformat` 11705 else 11706 case $host_os in 11707 freebsd[23].*) objformat=aout ;; 11708 *) objformat=elf ;; 11709 esac 11710 fi 11711 version_type=freebsd-$objformat 11712 case $version_type in 11713 freebsd-elf*) 11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11715 soname_spec='$libname$release$shared_ext$major' 11716 need_version=no 11717 need_lib_prefix=no 11718 ;; 11719 freebsd-*) 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11721 need_version=yes 11722 ;; 11723 esac 11724 shlibpath_var=LD_LIBRARY_PATH 11725 case $host_os in 11726 freebsd2.*) 11727 shlibpath_overrides_runpath=yes 11728 ;; 11729 freebsd3.[01]* | freebsdelf3.[01]*) 11730 shlibpath_overrides_runpath=yes 11731 hardcode_into_libs=yes 11732 ;; 11733 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11734 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11735 shlibpath_overrides_runpath=no 11736 hardcode_into_libs=yes 11737 ;; 11738 *) # from 4.6 on, and DragonFly 11739 shlibpath_overrides_runpath=yes 11740 hardcode_into_libs=yes 11741 ;; 11742 esac 11743 ;; 11744 11745haiku*) 11746 version_type=linux # correct to gnu/linux during the next big refactor 11747 need_lib_prefix=no 11748 need_version=no 11749 dynamic_linker="$host_os runtime_loader" 11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11751 soname_spec='$libname$release$shared_ext$major' 11752 shlibpath_var=LIBRARY_PATH 11753 shlibpath_overrides_runpath=no 11754 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11755 hardcode_into_libs=yes 11756 ;; 11757 11758hpux9* | hpux10* | hpux11*) 11759 # Give a soname corresponding to the major version so that dld.sl refuses to 11760 # link against other versions. 11761 version_type=sunos 11762 need_lib_prefix=no 11763 need_version=no 11764 case $host_cpu in 11765 ia64*) 11766 shrext_cmds='.so' 11767 hardcode_into_libs=yes 11768 dynamic_linker="$host_os dld.so" 11769 shlibpath_var=LD_LIBRARY_PATH 11770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11772 soname_spec='$libname$release$shared_ext$major' 11773 if test 32 = "$HPUX_IA64_MODE"; then 11774 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11775 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11776 else 11777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11778 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11779 fi 11780 ;; 11781 hppa*64*) 11782 shrext_cmds='.sl' 11783 hardcode_into_libs=yes 11784 dynamic_linker="$host_os dld.sl" 11785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11788 soname_spec='$libname$release$shared_ext$major' 11789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11791 ;; 11792 *) 11793 shrext_cmds='.sl' 11794 dynamic_linker="$host_os dld.sl" 11795 shlibpath_var=SHLIB_PATH 11796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11798 soname_spec='$libname$release$shared_ext$major' 11799 ;; 11800 esac 11801 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11802 postinstall_cmds='chmod 555 $lib' 11803 # or fails outright, so override atomically: 11804 install_override_mode=555 11805 ;; 11806 11807interix[3-9]*) 11808 version_type=linux # correct to gnu/linux during the next big refactor 11809 need_lib_prefix=no 11810 need_version=no 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11812 soname_spec='$libname$release$shared_ext$major' 11813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11814 shlibpath_var=LD_LIBRARY_PATH 11815 shlibpath_overrides_runpath=no 11816 hardcode_into_libs=yes 11817 ;; 11818 11819irix5* | irix6* | nonstopux*) 11820 case $host_os in 11821 nonstopux*) version_type=nonstopux ;; 11822 *) 11823 if test yes = "$lt_cv_prog_gnu_ld"; then 11824 version_type=linux # correct to gnu/linux during the next big refactor 11825 else 11826 version_type=irix 11827 fi ;; 11828 esac 11829 need_lib_prefix=no 11830 need_version=no 11831 soname_spec='$libname$release$shared_ext$major' 11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11833 case $host_os in 11834 irix5* | nonstopux*) 11835 libsuff= shlibsuff= 11836 ;; 11837 *) 11838 case $LD in # libtool.m4 will add one of these switches to LD 11839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11840 libsuff= shlibsuff= libmagic=32-bit;; 11841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11842 libsuff=32 shlibsuff=N32 libmagic=N32;; 11843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11844 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11845 *) libsuff= shlibsuff= libmagic=never-match;; 11846 esac 11847 ;; 11848 esac 11849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11850 shlibpath_overrides_runpath=no 11851 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11852 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11853 hardcode_into_libs=yes 11854 ;; 11855 11856# No shared lib support for Linux oldld, aout, or coff. 11857linux*oldld* | linux*aout* | linux*coff*) 11858 dynamic_linker=no 11859 ;; 11860 11861linux*android*) 11862 version_type=none # Android doesn't support versioned libraries. 11863 need_lib_prefix=no 11864 need_version=no 11865 library_names_spec='$libname$release$shared_ext' 11866 soname_spec='$libname$release$shared_ext' 11867 finish_cmds= 11868 shlibpath_var=LD_LIBRARY_PATH 11869 shlibpath_overrides_runpath=yes 11870 11871 # This implies no fast_install, which is unacceptable. 11872 # Some rework will be needed to allow for fast_install 11873 # before this can be enabled. 11874 hardcode_into_libs=yes 11875 11876 dynamic_linker='Android linker' 11877 # Don't embed -rpath directories since the linker doesn't support them. 11878 hardcode_libdir_flag_spec='-L$libdir' 11879 ;; 11880 11881# This must be glibc/ELF. 11882linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11883 version_type=linux # correct to gnu/linux during the next big refactor 11884 need_lib_prefix=no 11885 need_version=no 11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11887 soname_spec='$libname$release$shared_ext$major' 11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11889 shlibpath_var=LD_LIBRARY_PATH 11890 shlibpath_overrides_runpath=no 11891 11892 # Some binutils ld are patched to set DT_RUNPATH 11893 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 lt_cv_shlibpath_overrides_runpath=no 11897 save_LDFLAGS=$LDFLAGS 11898 save_libdir=$libdir 11899 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11900 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11902/* end confdefs.h. */ 11903 11904int 11905main () 11906{ 11907 11908 ; 11909 return 0; 11910} 11911_ACEOF 11912if ac_fn_c_try_link "$LINENO"; then : 11913 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11914 lt_cv_shlibpath_overrides_runpath=yes 11915fi 11916fi 11917rm -f core conftest.err conftest.$ac_objext \ 11918 conftest$ac_exeext conftest.$ac_ext 11919 LDFLAGS=$save_LDFLAGS 11920 libdir=$save_libdir 11921 11922fi 11923 11924 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11925 11926 # This implies no fast_install, which is unacceptable. 11927 # Some rework will be needed to allow for fast_install 11928 # before this can be enabled. 11929 hardcode_into_libs=yes 11930 11931 # Ideally, we could use ldconfig to report *all* directores which are 11932 # searched for libraries, however this is still not possible. Aside from not 11933 # being certain /sbin/ldconfig is available, command 11934 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11935 # even though it is searched at run-time. Try to do the best guess by 11936 # appending ld.so.conf contents (and includes) to the search path. 11937 if test -f /etc/ld.so.conf; then 11938 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' ' '` 11939 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11940 fi 11941 11942 # We used to test for /lib/ld.so.1 and disable shared libraries on 11943 # powerpc, because MkLinux only supported shared libraries with the 11944 # GNU dynamic linker. Since this was broken with cross compilers, 11945 # most powerpc-linux boxes support dynamic linking these days and 11946 # people can always --disable-shared, the test was removed, and we 11947 # assume the GNU/Linux dynamic linker is in use. 11948 dynamic_linker='GNU/Linux ld.so' 11949 ;; 11950 11951netbsd*) 11952 version_type=sunos 11953 need_lib_prefix=no 11954 need_version=no 11955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11958 dynamic_linker='NetBSD (a.out) ld.so' 11959 else 11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11961 soname_spec='$libname$release$shared_ext$major' 11962 dynamic_linker='NetBSD ld.elf_so' 11963 fi 11964 shlibpath_var=LD_LIBRARY_PATH 11965 shlibpath_overrides_runpath=yes 11966 hardcode_into_libs=yes 11967 ;; 11968 11969newsos6) 11970 version_type=linux # correct to gnu/linux during the next big refactor 11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11972 shlibpath_var=LD_LIBRARY_PATH 11973 shlibpath_overrides_runpath=yes 11974 ;; 11975 11976*nto* | *qnx*) 11977 version_type=qnx 11978 need_lib_prefix=no 11979 need_version=no 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 soname_spec='$libname$release$shared_ext$major' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 shlibpath_overrides_runpath=no 11984 hardcode_into_libs=yes 11985 dynamic_linker='ldqnx.so' 11986 ;; 11987 11988openbsd* | bitrig*) 11989 version_type=sunos 11990 sys_lib_dlsearch_path_spec=/usr/lib 11991 need_lib_prefix=no 11992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11993 need_version=no 11994 else 11995 need_version=yes 11996 fi 11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11999 shlibpath_var=LD_LIBRARY_PATH 12000 shlibpath_overrides_runpath=yes 12001 ;; 12002 12003os2*) 12004 libname_spec='$name' 12005 version_type=windows 12006 shrext_cmds=.dll 12007 need_version=no 12008 need_lib_prefix=no 12009 # OS/2 can only load a DLL with a base name of 8 characters or less. 12010 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12011 v=$($ECHO $release$versuffix | tr -d .-); 12012 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12013 $ECHO $n$v`$shared_ext' 12014 library_names_spec='${libname}_dll.$libext' 12015 dynamic_linker='OS/2 ld.exe' 12016 shlibpath_var=BEGINLIBPATH 12017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12019 postinstall_cmds='base_file=`basename \$file`~ 12020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12021 dldir=$destdir/`dirname \$dlpath`~ 12022 test -d \$dldir || mkdir -p \$dldir~ 12023 $install_prog $dir/$dlname \$dldir/$dlname~ 12024 chmod a+x \$dldir/$dlname~ 12025 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12026 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12027 fi' 12028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12029 dlpath=$dir/\$dldll~ 12030 $RM \$dlpath' 12031 ;; 12032 12033osf3* | osf4* | osf5*) 12034 version_type=osf 12035 need_lib_prefix=no 12036 need_version=no 12037 soname_spec='$libname$release$shared_ext$major' 12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12039 shlibpath_var=LD_LIBRARY_PATH 12040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12042 ;; 12043 12044rdos*) 12045 dynamic_linker=no 12046 ;; 12047 12048solaris*) 12049 version_type=linux # correct to gnu/linux during the next big refactor 12050 need_lib_prefix=no 12051 need_version=no 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12053 soname_spec='$libname$release$shared_ext$major' 12054 shlibpath_var=LD_LIBRARY_PATH 12055 shlibpath_overrides_runpath=yes 12056 hardcode_into_libs=yes 12057 # ldd complains unless libraries are executable 12058 postinstall_cmds='chmod +x $lib' 12059 ;; 12060 12061sunos4*) 12062 version_type=sunos 12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12065 shlibpath_var=LD_LIBRARY_PATH 12066 shlibpath_overrides_runpath=yes 12067 if test yes = "$with_gnu_ld"; then 12068 need_lib_prefix=no 12069 fi 12070 need_version=yes 12071 ;; 12072 12073sysv4 | sysv4.3*) 12074 version_type=linux # correct to gnu/linux during the next big refactor 12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12076 soname_spec='$libname$release$shared_ext$major' 12077 shlibpath_var=LD_LIBRARY_PATH 12078 case $host_vendor in 12079 sni) 12080 shlibpath_overrides_runpath=no 12081 need_lib_prefix=no 12082 runpath_var=LD_RUN_PATH 12083 ;; 12084 siemens) 12085 need_lib_prefix=no 12086 ;; 12087 motorola) 12088 need_lib_prefix=no 12089 need_version=no 12090 shlibpath_overrides_runpath=no 12091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12092 ;; 12093 esac 12094 ;; 12095 12096sysv4*MP*) 12097 if test -d /usr/nec; then 12098 version_type=linux # correct to gnu/linux during the next big refactor 12099 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12100 soname_spec='$libname$shared_ext.$major' 12101 shlibpath_var=LD_LIBRARY_PATH 12102 fi 12103 ;; 12104 12105sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12106 version_type=sco 12107 need_lib_prefix=no 12108 need_version=no 12109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12110 soname_spec='$libname$release$shared_ext$major' 12111 shlibpath_var=LD_LIBRARY_PATH 12112 shlibpath_overrides_runpath=yes 12113 hardcode_into_libs=yes 12114 if test yes = "$with_gnu_ld"; then 12115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12116 else 12117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12118 case $host_os in 12119 sco3.2v5*) 12120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12121 ;; 12122 esac 12123 fi 12124 sys_lib_dlsearch_path_spec='/usr/lib' 12125 ;; 12126 12127tpf*) 12128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12129 version_type=linux # correct to gnu/linux during the next big refactor 12130 need_lib_prefix=no 12131 need_version=no 12132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12133 shlibpath_var=LD_LIBRARY_PATH 12134 shlibpath_overrides_runpath=no 12135 hardcode_into_libs=yes 12136 ;; 12137 12138uts4*) 12139 version_type=linux # correct to gnu/linux during the next big refactor 12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12141 soname_spec='$libname$release$shared_ext$major' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 ;; 12144 12145*) 12146 dynamic_linker=no 12147 ;; 12148esac 12149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12150$as_echo "$dynamic_linker" >&6; } 12151test no = "$dynamic_linker" && can_build_shared=no 12152 12153variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12154if test yes = "$GCC"; then 12155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12156fi 12157 12158if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12159 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12160fi 12161 12162if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12163 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12164fi 12165 12166# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12167configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12168 12169# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12170func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12171 12172# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12173configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12272$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12273hardcode_action= 12274if test -n "$hardcode_libdir_flag_spec" || 12275 test -n "$runpath_var" || 12276 test yes = "$hardcode_automatic"; then 12277 12278 # We can hardcode non-existent directories. 12279 if test no != "$hardcode_direct" && 12280 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12281 # have to relink, otherwise we might link with an installed library 12282 # when we should be linking with a yet-to-be-installed one 12283 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12284 test no != "$hardcode_minus_L"; then 12285 # Linking always hardcodes the temporary library directory. 12286 hardcode_action=relink 12287 else 12288 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12289 hardcode_action=immediate 12290 fi 12291else 12292 # We cannot hardcode anything, or else we can only hardcode existing 12293 # directories. 12294 hardcode_action=unsupported 12295fi 12296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12297$as_echo "$hardcode_action" >&6; } 12298 12299if test relink = "$hardcode_action" || 12300 test yes = "$inherit_rpath"; then 12301 # Fast installation is not supported 12302 enable_fast_install=no 12303elif test yes = "$shlibpath_overrides_runpath" || 12304 test no = "$enable_shared"; then 12305 # Fast installation is not necessary 12306 enable_fast_install=needless 12307fi 12308 12309 12310 12311 12312 12313 12314 if test yes != "$enable_dlopen"; then 12315 enable_dlopen=unknown 12316 enable_dlopen_self=unknown 12317 enable_dlopen_self_static=unknown 12318else 12319 lt_cv_dlopen=no 12320 lt_cv_dlopen_libs= 12321 12322 case $host_os in 12323 beos*) 12324 lt_cv_dlopen=load_add_on 12325 lt_cv_dlopen_libs= 12326 lt_cv_dlopen_self=yes 12327 ;; 12328 12329 mingw* | pw32* | cegcc*) 12330 lt_cv_dlopen=LoadLibrary 12331 lt_cv_dlopen_libs= 12332 ;; 12333 12334 cygwin*) 12335 lt_cv_dlopen=dlopen 12336 lt_cv_dlopen_libs= 12337 ;; 12338 12339 darwin*) 12340 # if libdl is installed we need to link against it 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12342$as_echo_n "checking for dlopen in -ldl... " >&6; } 12343if ${ac_cv_lib_dl_dlopen+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345else 12346 ac_check_lib_save_LIBS=$LIBS 12347LIBS="-ldl $LIBS" 12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349/* end confdefs.h. */ 12350 12351/* Override any GCC internal prototype to avoid an error. 12352 Use char because int might match the return type of a GCC 12353 builtin and then its argument prototype would still apply. */ 12354#ifdef __cplusplus 12355extern "C" 12356#endif 12357char dlopen (); 12358int 12359main () 12360{ 12361return dlopen (); 12362 ; 12363 return 0; 12364} 12365_ACEOF 12366if ac_fn_c_try_link "$LINENO"; then : 12367 ac_cv_lib_dl_dlopen=yes 12368else 12369 ac_cv_lib_dl_dlopen=no 12370fi 12371rm -f core conftest.err conftest.$ac_objext \ 12372 conftest$ac_exeext conftest.$ac_ext 12373LIBS=$ac_check_lib_save_LIBS 12374fi 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12376$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12377if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12378 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12379else 12380 12381 lt_cv_dlopen=dyld 12382 lt_cv_dlopen_libs= 12383 lt_cv_dlopen_self=yes 12384 12385fi 12386 12387 ;; 12388 12389 tpf*) 12390 # Don't try to run any link tests for TPF. We know it's impossible 12391 # because TPF is a cross-compiler, and we know how we open DSOs. 12392 lt_cv_dlopen=dlopen 12393 lt_cv_dlopen_libs= 12394 lt_cv_dlopen_self=no 12395 ;; 12396 12397 *) 12398 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12399if test "x$ac_cv_func_shl_load" = xyes; then : 12400 lt_cv_dlopen=shl_load 12401else 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12403$as_echo_n "checking for shl_load in -ldld... " >&6; } 12404if ${ac_cv_lib_dld_shl_load+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 ac_check_lib_save_LIBS=$LIBS 12408LIBS="-ldld $LIBS" 12409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12410/* end confdefs.h. */ 12411 12412/* Override any GCC internal prototype to avoid an error. 12413 Use char because int might match the return type of a GCC 12414 builtin and then its argument prototype would still apply. */ 12415#ifdef __cplusplus 12416extern "C" 12417#endif 12418char shl_load (); 12419int 12420main () 12421{ 12422return shl_load (); 12423 ; 12424 return 0; 12425} 12426_ACEOF 12427if ac_fn_c_try_link "$LINENO"; then : 12428 ac_cv_lib_dld_shl_load=yes 12429else 12430 ac_cv_lib_dld_shl_load=no 12431fi 12432rm -f core conftest.err conftest.$ac_objext \ 12433 conftest$ac_exeext conftest.$ac_ext 12434LIBS=$ac_check_lib_save_LIBS 12435fi 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12437$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12438if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12439 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12440else 12441 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12442if test "x$ac_cv_func_dlopen" = xyes; then : 12443 lt_cv_dlopen=dlopen 12444else 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12446$as_echo_n "checking for dlopen in -ldl... " >&6; } 12447if ${ac_cv_lib_dl_dlopen+:} false; then : 12448 $as_echo_n "(cached) " >&6 12449else 12450 ac_check_lib_save_LIBS=$LIBS 12451LIBS="-ldl $LIBS" 12452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12453/* end confdefs.h. */ 12454 12455/* Override any GCC internal prototype to avoid an error. 12456 Use char because int might match the return type of a GCC 12457 builtin and then its argument prototype would still apply. */ 12458#ifdef __cplusplus 12459extern "C" 12460#endif 12461char dlopen (); 12462int 12463main () 12464{ 12465return dlopen (); 12466 ; 12467 return 0; 12468} 12469_ACEOF 12470if ac_fn_c_try_link "$LINENO"; then : 12471 ac_cv_lib_dl_dlopen=yes 12472else 12473 ac_cv_lib_dl_dlopen=no 12474fi 12475rm -f core conftest.err conftest.$ac_objext \ 12476 conftest$ac_exeext conftest.$ac_ext 12477LIBS=$ac_check_lib_save_LIBS 12478fi 12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12480$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12481if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12482 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12483else 12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12485$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12486if ${ac_cv_lib_svld_dlopen+:} false; then : 12487 $as_echo_n "(cached) " >&6 12488else 12489 ac_check_lib_save_LIBS=$LIBS 12490LIBS="-lsvld $LIBS" 12491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12492/* end confdefs.h. */ 12493 12494/* Override any GCC internal prototype to avoid an error. 12495 Use char because int might match the return type of a GCC 12496 builtin and then its argument prototype would still apply. */ 12497#ifdef __cplusplus 12498extern "C" 12499#endif 12500char dlopen (); 12501int 12502main () 12503{ 12504return dlopen (); 12505 ; 12506 return 0; 12507} 12508_ACEOF 12509if ac_fn_c_try_link "$LINENO"; then : 12510 ac_cv_lib_svld_dlopen=yes 12511else 12512 ac_cv_lib_svld_dlopen=no 12513fi 12514rm -f core conftest.err conftest.$ac_objext \ 12515 conftest$ac_exeext conftest.$ac_ext 12516LIBS=$ac_check_lib_save_LIBS 12517fi 12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12519$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12520if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12521 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12522else 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12524$as_echo_n "checking for dld_link in -ldld... " >&6; } 12525if ${ac_cv_lib_dld_dld_link+:} false; then : 12526 $as_echo_n "(cached) " >&6 12527else 12528 ac_check_lib_save_LIBS=$LIBS 12529LIBS="-ldld $LIBS" 12530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532 12533/* Override any GCC internal prototype to avoid an error. 12534 Use char because int might match the return type of a GCC 12535 builtin and then its argument prototype would still apply. */ 12536#ifdef __cplusplus 12537extern "C" 12538#endif 12539char dld_link (); 12540int 12541main () 12542{ 12543return dld_link (); 12544 ; 12545 return 0; 12546} 12547_ACEOF 12548if ac_fn_c_try_link "$LINENO"; then : 12549 ac_cv_lib_dld_dld_link=yes 12550else 12551 ac_cv_lib_dld_dld_link=no 12552fi 12553rm -f core conftest.err conftest.$ac_objext \ 12554 conftest$ac_exeext conftest.$ac_ext 12555LIBS=$ac_check_lib_save_LIBS 12556fi 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12558$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12559if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12560 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12561fi 12562 12563 12564fi 12565 12566 12567fi 12568 12569 12570fi 12571 12572 12573fi 12574 12575 12576fi 12577 12578 ;; 12579 esac 12580 12581 if test no = "$lt_cv_dlopen"; then 12582 enable_dlopen=no 12583 else 12584 enable_dlopen=yes 12585 fi 12586 12587 case $lt_cv_dlopen in 12588 dlopen) 12589 save_CPPFLAGS=$CPPFLAGS 12590 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12591 12592 save_LDFLAGS=$LDFLAGS 12593 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12594 12595 save_LIBS=$LIBS 12596 LIBS="$lt_cv_dlopen_libs $LIBS" 12597 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12599$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12600if ${lt_cv_dlopen_self+:} false; then : 12601 $as_echo_n "(cached) " >&6 12602else 12603 if test yes = "$cross_compiling"; then : 12604 lt_cv_dlopen_self=cross 12605else 12606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12607 lt_status=$lt_dlunknown 12608 cat > conftest.$ac_ext <<_LT_EOF 12609#line $LINENO "configure" 12610#include "confdefs.h" 12611 12612#if HAVE_DLFCN_H 12613#include <dlfcn.h> 12614#endif 12615 12616#include <stdio.h> 12617 12618#ifdef RTLD_GLOBAL 12619# define LT_DLGLOBAL RTLD_GLOBAL 12620#else 12621# ifdef DL_GLOBAL 12622# define LT_DLGLOBAL DL_GLOBAL 12623# else 12624# define LT_DLGLOBAL 0 12625# endif 12626#endif 12627 12628/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12629 find out it does not work in some platform. */ 12630#ifndef LT_DLLAZY_OR_NOW 12631# ifdef RTLD_LAZY 12632# define LT_DLLAZY_OR_NOW RTLD_LAZY 12633# else 12634# ifdef DL_LAZY 12635# define LT_DLLAZY_OR_NOW DL_LAZY 12636# else 12637# ifdef RTLD_NOW 12638# define LT_DLLAZY_OR_NOW RTLD_NOW 12639# else 12640# ifdef DL_NOW 12641# define LT_DLLAZY_OR_NOW DL_NOW 12642# else 12643# define LT_DLLAZY_OR_NOW 0 12644# endif 12645# endif 12646# endif 12647# endif 12648#endif 12649 12650/* When -fvisibility=hidden is used, assume the code has been annotated 12651 correspondingly for the symbols needed. */ 12652#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12653int fnord () __attribute__((visibility("default"))); 12654#endif 12655 12656int fnord () { return 42; } 12657int main () 12658{ 12659 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12660 int status = $lt_dlunknown; 12661 12662 if (self) 12663 { 12664 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12665 else 12666 { 12667 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12668 else puts (dlerror ()); 12669 } 12670 /* dlclose (self); */ 12671 } 12672 else 12673 puts (dlerror ()); 12674 12675 return status; 12676} 12677_LT_EOF 12678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12679 (eval $ac_link) 2>&5 12680 ac_status=$? 12681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12682 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12683 (./conftest; exit; ) >&5 2>/dev/null 12684 lt_status=$? 12685 case x$lt_status in 12686 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12687 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12688 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12689 esac 12690 else : 12691 # compilation failed 12692 lt_cv_dlopen_self=no 12693 fi 12694fi 12695rm -fr conftest* 12696 12697 12698fi 12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12700$as_echo "$lt_cv_dlopen_self" >&6; } 12701 12702 if test yes = "$lt_cv_dlopen_self"; then 12703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12705$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12706if ${lt_cv_dlopen_self_static+:} false; then : 12707 $as_echo_n "(cached) " >&6 12708else 12709 if test yes = "$cross_compiling"; then : 12710 lt_cv_dlopen_self_static=cross 12711else 12712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12713 lt_status=$lt_dlunknown 12714 cat > conftest.$ac_ext <<_LT_EOF 12715#line $LINENO "configure" 12716#include "confdefs.h" 12717 12718#if HAVE_DLFCN_H 12719#include <dlfcn.h> 12720#endif 12721 12722#include <stdio.h> 12723 12724#ifdef RTLD_GLOBAL 12725# define LT_DLGLOBAL RTLD_GLOBAL 12726#else 12727# ifdef DL_GLOBAL 12728# define LT_DLGLOBAL DL_GLOBAL 12729# else 12730# define LT_DLGLOBAL 0 12731# endif 12732#endif 12733 12734/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12735 find out it does not work in some platform. */ 12736#ifndef LT_DLLAZY_OR_NOW 12737# ifdef RTLD_LAZY 12738# define LT_DLLAZY_OR_NOW RTLD_LAZY 12739# else 12740# ifdef DL_LAZY 12741# define LT_DLLAZY_OR_NOW DL_LAZY 12742# else 12743# ifdef RTLD_NOW 12744# define LT_DLLAZY_OR_NOW RTLD_NOW 12745# else 12746# ifdef DL_NOW 12747# define LT_DLLAZY_OR_NOW DL_NOW 12748# else 12749# define LT_DLLAZY_OR_NOW 0 12750# endif 12751# endif 12752# endif 12753# endif 12754#endif 12755 12756/* When -fvisibility=hidden is used, assume the code has been annotated 12757 correspondingly for the symbols needed. */ 12758#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12759int fnord () __attribute__((visibility("default"))); 12760#endif 12761 12762int fnord () { return 42; } 12763int main () 12764{ 12765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12766 int status = $lt_dlunknown; 12767 12768 if (self) 12769 { 12770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12771 else 12772 { 12773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12774 else puts (dlerror ()); 12775 } 12776 /* dlclose (self); */ 12777 } 12778 else 12779 puts (dlerror ()); 12780 12781 return status; 12782} 12783_LT_EOF 12784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12785 (eval $ac_link) 2>&5 12786 ac_status=$? 12787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12788 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12789 (./conftest; exit; ) >&5 2>/dev/null 12790 lt_status=$? 12791 case x$lt_status in 12792 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12793 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12794 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12795 esac 12796 else : 12797 # compilation failed 12798 lt_cv_dlopen_self_static=no 12799 fi 12800fi 12801rm -fr conftest* 12802 12803 12804fi 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12806$as_echo "$lt_cv_dlopen_self_static" >&6; } 12807 fi 12808 12809 CPPFLAGS=$save_CPPFLAGS 12810 LDFLAGS=$save_LDFLAGS 12811 LIBS=$save_LIBS 12812 ;; 12813 esac 12814 12815 case $lt_cv_dlopen_self in 12816 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12817 *) enable_dlopen_self=unknown ;; 12818 esac 12819 12820 case $lt_cv_dlopen_self_static in 12821 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12822 *) enable_dlopen_self_static=unknown ;; 12823 esac 12824fi 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842striplib= 12843old_striplib= 12844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12845$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12846if test -z "$STRIP"; then 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12848$as_echo "no" >&6; } 12849else 12850 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12851 old_striplib="$STRIP --strip-debug" 12852 striplib="$STRIP --strip-unneeded" 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12854$as_echo "yes" >&6; } 12855 else 12856 case $host_os in 12857 darwin*) 12858 # FIXME - insert some real tests, host_os isn't really good enough 12859 striplib="$STRIP -x" 12860 old_striplib="$STRIP -S" 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12862$as_echo "yes" >&6; } 12863 ;; 12864 freebsd*) 12865 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12866 old_striplib="$STRIP --strip-debug" 12867 striplib="$STRIP --strip-unneeded" 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12869$as_echo "yes" >&6; } 12870 else 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12872$as_echo "no" >&6; } 12873 fi 12874 ;; 12875 *) 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12877$as_echo "no" >&6; } 12878 ;; 12879 esac 12880 fi 12881fi 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 # Report what library types will actually be built 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12896$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12898$as_echo "$can_build_shared" >&6; } 12899 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12901$as_echo_n "checking whether to build shared libraries... " >&6; } 12902 test no = "$can_build_shared" && enable_shared=no 12903 12904 # On AIX, shared libraries and static libraries use the same namespace, and 12905 # are all built from PIC. 12906 case $host_os in 12907 aix3*) 12908 test yes = "$enable_shared" && enable_static=no 12909 if test -n "$RANLIB"; then 12910 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12911 postinstall_cmds='$RANLIB $lib' 12912 fi 12913 ;; 12914 12915 aix[4-9]*) 12916 if test ia64 != "$host_cpu"; then 12917 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12918 yes,aix,yes) ;; # shared object as lib.so file only 12919 yes,svr4,*) ;; # shared object as lib.so archive member only 12920 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12921 esac 12922 fi 12923 ;; 12924 esac 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12926$as_echo "$enable_shared" >&6; } 12927 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12929$as_echo_n "checking whether to build static libraries... " >&6; } 12930 # Make sure either enable_shared or enable_static is yes. 12931 test yes = "$enable_shared" || enable_static=yes 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12933$as_echo "$enable_static" >&6; } 12934 12935 12936 12937 12938fi 12939ac_ext=c 12940ac_cpp='$CPP $CPPFLAGS' 12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12943ac_compiler_gnu=$ac_cv_c_compiler_gnu 12944 12945CC=$lt_save_CC 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 ac_config_commands="$ac_config_commands libtool" 12962 12963 12964 12965 12966# Only expand once: 12967 12968 12969ac_ext=c 12970ac_cpp='$CPP $CPPFLAGS' 12971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12973ac_compiler_gnu=$ac_cv_c_compiler_gnu 12974if test -n "$ac_tool_prefix"; then 12975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12976set dummy ${ac_tool_prefix}gcc; ac_word=$2 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12978$as_echo_n "checking for $ac_word... " >&6; } 12979if ${ac_cv_prog_CC+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 if test -n "$CC"; then 12983 ac_cv_prog_CC="$CC" # Let the user override the test. 12984else 12985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12986for as_dir in $PATH 12987do 12988 IFS=$as_save_IFS 12989 test -z "$as_dir" && as_dir=. 12990 for ac_exec_ext in '' $ac_executable_extensions; do 12991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12992 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12994 break 2 12995 fi 12996done 12997 done 12998IFS=$as_save_IFS 12999 13000fi 13001fi 13002CC=$ac_cv_prog_CC 13003if test -n "$CC"; then 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13005$as_echo "$CC" >&6; } 13006else 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13008$as_echo "no" >&6; } 13009fi 13010 13011 13012fi 13013if test -z "$ac_cv_prog_CC"; then 13014 ac_ct_CC=$CC 13015 # Extract the first word of "gcc", so it can be a program name with args. 13016set dummy gcc; ac_word=$2 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13018$as_echo_n "checking for $ac_word... " >&6; } 13019if ${ac_cv_prog_ac_ct_CC+:} false; then : 13020 $as_echo_n "(cached) " >&6 13021else 13022 if test -n "$ac_ct_CC"; then 13023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13024else 13025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13026for as_dir in $PATH 13027do 13028 IFS=$as_save_IFS 13029 test -z "$as_dir" && as_dir=. 13030 for ac_exec_ext in '' $ac_executable_extensions; do 13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13032 ac_cv_prog_ac_ct_CC="gcc" 13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13034 break 2 13035 fi 13036done 13037 done 13038IFS=$as_save_IFS 13039 13040fi 13041fi 13042ac_ct_CC=$ac_cv_prog_ac_ct_CC 13043if test -n "$ac_ct_CC"; then 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13045$as_echo "$ac_ct_CC" >&6; } 13046else 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13048$as_echo "no" >&6; } 13049fi 13050 13051 if test "x$ac_ct_CC" = x; then 13052 CC="" 13053 else 13054 case $cross_compiling:$ac_tool_warned in 13055yes:) 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13058ac_tool_warned=yes ;; 13059esac 13060 CC=$ac_ct_CC 13061 fi 13062else 13063 CC="$ac_cv_prog_CC" 13064fi 13065 13066if test -z "$CC"; then 13067 if test -n "$ac_tool_prefix"; then 13068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 13069set dummy ${ac_tool_prefix}cc; ac_word=$2 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13071$as_echo_n "checking for $ac_word... " >&6; } 13072if ${ac_cv_prog_CC+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074else 13075 if test -n "$CC"; then 13076 ac_cv_prog_CC="$CC" # Let the user override the test. 13077else 13078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13079for as_dir in $PATH 13080do 13081 IFS=$as_save_IFS 13082 test -z "$as_dir" && as_dir=. 13083 for ac_exec_ext in '' $ac_executable_extensions; do 13084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13085 ac_cv_prog_CC="${ac_tool_prefix}cc" 13086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13087 break 2 13088 fi 13089done 13090 done 13091IFS=$as_save_IFS 13092 13093fi 13094fi 13095CC=$ac_cv_prog_CC 13096if test -n "$CC"; then 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13098$as_echo "$CC" >&6; } 13099else 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13101$as_echo "no" >&6; } 13102fi 13103 13104 13105 fi 13106fi 13107if test -z "$CC"; then 13108 # Extract the first word of "cc", so it can be a program name with args. 13109set dummy cc; ac_word=$2 13110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13111$as_echo_n "checking for $ac_word... " >&6; } 13112if ${ac_cv_prog_CC+:} false; then : 13113 $as_echo_n "(cached) " >&6 13114else 13115 if test -n "$CC"; then 13116 ac_cv_prog_CC="$CC" # Let the user override the test. 13117else 13118 ac_prog_rejected=no 13119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13120for as_dir in $PATH 13121do 13122 IFS=$as_save_IFS 13123 test -z "$as_dir" && as_dir=. 13124 for ac_exec_ext in '' $ac_executable_extensions; do 13125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 13127 ac_prog_rejected=yes 13128 continue 13129 fi 13130 ac_cv_prog_CC="cc" 13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13132 break 2 13133 fi 13134done 13135 done 13136IFS=$as_save_IFS 13137 13138if test $ac_prog_rejected = yes; then 13139 # We found a bogon in the path, so make sure we never use it. 13140 set dummy $ac_cv_prog_CC 13141 shift 13142 if test $# != 0; then 13143 # We chose a different compiler from the bogus one. 13144 # However, it has the same basename, so the bogon will be chosen 13145 # first if we set CC to just the basename; use the full file name. 13146 shift 13147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 13148 fi 13149fi 13150fi 13151fi 13152CC=$ac_cv_prog_CC 13153if test -n "$CC"; then 13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13155$as_echo "$CC" >&6; } 13156else 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13158$as_echo "no" >&6; } 13159fi 13160 13161 13162fi 13163if test -z "$CC"; then 13164 if test -n "$ac_tool_prefix"; then 13165 for ac_prog in cl.exe 13166 do 13167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13168set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13170$as_echo_n "checking for $ac_word... " >&6; } 13171if ${ac_cv_prog_CC+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 if test -n "$CC"; then 13175 ac_cv_prog_CC="$CC" # Let the user override the test. 13176else 13177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13178for as_dir in $PATH 13179do 13180 IFS=$as_save_IFS 13181 test -z "$as_dir" && as_dir=. 13182 for ac_exec_ext in '' $ac_executable_extensions; do 13183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13186 break 2 13187 fi 13188done 13189 done 13190IFS=$as_save_IFS 13191 13192fi 13193fi 13194CC=$ac_cv_prog_CC 13195if test -n "$CC"; then 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13197$as_echo "$CC" >&6; } 13198else 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13200$as_echo "no" >&6; } 13201fi 13202 13203 13204 test -n "$CC" && break 13205 done 13206fi 13207if test -z "$CC"; then 13208 ac_ct_CC=$CC 13209 for ac_prog in cl.exe 13210do 13211 # Extract the first word of "$ac_prog", so it can be a program name with args. 13212set dummy $ac_prog; ac_word=$2 13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13214$as_echo_n "checking for $ac_word... " >&6; } 13215if ${ac_cv_prog_ac_ct_CC+:} false; then : 13216 $as_echo_n "(cached) " >&6 13217else 13218 if test -n "$ac_ct_CC"; then 13219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13220else 13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13222for as_dir in $PATH 13223do 13224 IFS=$as_save_IFS 13225 test -z "$as_dir" && as_dir=. 13226 for ac_exec_ext in '' $ac_executable_extensions; do 13227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13228 ac_cv_prog_ac_ct_CC="$ac_prog" 13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13230 break 2 13231 fi 13232done 13233 done 13234IFS=$as_save_IFS 13235 13236fi 13237fi 13238ac_ct_CC=$ac_cv_prog_ac_ct_CC 13239if test -n "$ac_ct_CC"; then 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13241$as_echo "$ac_ct_CC" >&6; } 13242else 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13244$as_echo "no" >&6; } 13245fi 13246 13247 13248 test -n "$ac_ct_CC" && break 13249done 13250 13251 if test "x$ac_ct_CC" = x; then 13252 CC="" 13253 else 13254 case $cross_compiling:$ac_tool_warned in 13255yes:) 13256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13258ac_tool_warned=yes ;; 13259esac 13260 CC=$ac_ct_CC 13261 fi 13262fi 13263 13264fi 13265 13266 13267test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13269as_fn_error $? "no acceptable C compiler found in \$PATH 13270See \`config.log' for more details" "$LINENO" 5; } 13271 13272# Provide some information about the compiler. 13273$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13274set X $ac_compile 13275ac_compiler=$2 13276for ac_option in --version -v -V -qversion; do 13277 { { ac_try="$ac_compiler $ac_option >&5" 13278case "(($ac_try" in 13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13280 *) ac_try_echo=$ac_try;; 13281esac 13282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13283$as_echo "$ac_try_echo"; } >&5 13284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13285 ac_status=$? 13286 if test -s conftest.err; then 13287 sed '10a\ 13288... rest of stderr output deleted ... 13289 10q' conftest.err >conftest.er1 13290 cat conftest.er1 >&5 13291 fi 13292 rm -f conftest.er1 conftest.err 13293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13294 test $ac_status = 0; } 13295done 13296 13297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 13298$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 13299if ${ac_cv_c_compiler_gnu+:} false; then : 13300 $as_echo_n "(cached) " >&6 13301else 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304 13305int 13306main () 13307{ 13308#ifndef __GNUC__ 13309 choke me 13310#endif 13311 13312 ; 13313 return 0; 13314} 13315_ACEOF 13316if ac_fn_c_try_compile "$LINENO"; then : 13317 ac_compiler_gnu=yes 13318else 13319 ac_compiler_gnu=no 13320fi 13321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13322ac_cv_c_compiler_gnu=$ac_compiler_gnu 13323 13324fi 13325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13326$as_echo "$ac_cv_c_compiler_gnu" >&6; } 13327if test $ac_compiler_gnu = yes; then 13328 GCC=yes 13329else 13330 GCC= 13331fi 13332ac_test_CFLAGS=${CFLAGS+set} 13333ac_save_CFLAGS=$CFLAGS 13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13335$as_echo_n "checking whether $CC accepts -g... " >&6; } 13336if ${ac_cv_prog_cc_g+:} false; then : 13337 $as_echo_n "(cached) " >&6 13338else 13339 ac_save_c_werror_flag=$ac_c_werror_flag 13340 ac_c_werror_flag=yes 13341 ac_cv_prog_cc_g=no 13342 CFLAGS="-g" 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345 13346int 13347main () 13348{ 13349 13350 ; 13351 return 0; 13352} 13353_ACEOF 13354if ac_fn_c_try_compile "$LINENO"; then : 13355 ac_cv_prog_cc_g=yes 13356else 13357 CFLAGS="" 13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13359/* end confdefs.h. */ 13360 13361int 13362main () 13363{ 13364 13365 ; 13366 return 0; 13367} 13368_ACEOF 13369if ac_fn_c_try_compile "$LINENO"; then : 13370 13371else 13372 ac_c_werror_flag=$ac_save_c_werror_flag 13373 CFLAGS="-g" 13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13375/* end confdefs.h. */ 13376 13377int 13378main () 13379{ 13380 13381 ; 13382 return 0; 13383} 13384_ACEOF 13385if ac_fn_c_try_compile "$LINENO"; then : 13386 ac_cv_prog_cc_g=yes 13387fi 13388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13389fi 13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13391fi 13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13393 ac_c_werror_flag=$ac_save_c_werror_flag 13394fi 13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13396$as_echo "$ac_cv_prog_cc_g" >&6; } 13397if test "$ac_test_CFLAGS" = set; then 13398 CFLAGS=$ac_save_CFLAGS 13399elif test $ac_cv_prog_cc_g = yes; then 13400 if test "$GCC" = yes; then 13401 CFLAGS="-g -O2" 13402 else 13403 CFLAGS="-g" 13404 fi 13405else 13406 if test "$GCC" = yes; then 13407 CFLAGS="-O2" 13408 else 13409 CFLAGS= 13410 fi 13411fi 13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13413$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13414if ${ac_cv_prog_cc_c89+:} false; then : 13415 $as_echo_n "(cached) " >&6 13416else 13417 ac_cv_prog_cc_c89=no 13418ac_save_CC=$CC 13419cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13420/* end confdefs.h. */ 13421#include <stdarg.h> 13422#include <stdio.h> 13423struct stat; 13424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13425struct buf { int x; }; 13426FILE * (*rcsopen) (struct buf *, struct stat *, int); 13427static char *e (p, i) 13428 char **p; 13429 int i; 13430{ 13431 return p[i]; 13432} 13433static char *f (char * (*g) (char **, int), char **p, ...) 13434{ 13435 char *s; 13436 va_list v; 13437 va_start (v,p); 13438 s = g (p, va_arg (v,int)); 13439 va_end (v); 13440 return s; 13441} 13442 13443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13444 function prototypes and stuff, but not '\xHH' hex character constants. 13445 These don't provoke an error unfortunately, instead are silently treated 13446 as 'x'. The following induces an error, until -std is added to get 13447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13448 array size at least. It's necessary to write '\x00'==0 to get something 13449 that's true only with -std. */ 13450int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13451 13452/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13453 inside strings and character constants. */ 13454#define FOO(x) 'x' 13455int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13456 13457int test (int i, double x); 13458struct s1 {int (*f) (int a);}; 13459struct s2 {int (*f) (double a);}; 13460int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13461int argc; 13462char **argv; 13463int 13464main () 13465{ 13466return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13467 ; 13468 return 0; 13469} 13470_ACEOF 13471for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13472 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13473do 13474 CC="$ac_save_CC $ac_arg" 13475 if ac_fn_c_try_compile "$LINENO"; then : 13476 ac_cv_prog_cc_c89=$ac_arg 13477fi 13478rm -f core conftest.err conftest.$ac_objext 13479 test "x$ac_cv_prog_cc_c89" != "xno" && break 13480done 13481rm -f conftest.$ac_ext 13482CC=$ac_save_CC 13483 13484fi 13485# AC_CACHE_VAL 13486case "x$ac_cv_prog_cc_c89" in 13487 x) 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13489$as_echo "none needed" >&6; } ;; 13490 xno) 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13492$as_echo "unsupported" >&6; } ;; 13493 *) 13494 CC="$CC $ac_cv_prog_cc_c89" 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13496$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13497esac 13498if test "x$ac_cv_prog_cc_c89" != xno; then : 13499 13500fi 13501 13502ac_ext=c 13503ac_cpp='$CPP $CPPFLAGS' 13504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13506ac_compiler_gnu=$ac_cv_c_compiler_gnu 13507 13508ac_ext=c 13509ac_cpp='$CPP $CPPFLAGS' 13510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13512ac_compiler_gnu=$ac_cv_c_compiler_gnu 13513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13514$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 13515if ${am_cv_prog_cc_c_o+:} false; then : 13516 $as_echo_n "(cached) " >&6 13517else 13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13519/* end confdefs.h. */ 13520 13521int 13522main () 13523{ 13524 13525 ; 13526 return 0; 13527} 13528_ACEOF 13529 # Make sure it works both with $CC and with simple cc. 13530 # Following AC_PROG_CC_C_O, we do the test twice because some 13531 # compilers refuse to overwrite an existing .o file with -o, 13532 # though they will create one. 13533 am_cv_prog_cc_c_o=yes 13534 for am_i in 1 2; do 13535 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13536 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13537 ac_status=$? 13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13539 (exit $ac_status); } \ 13540 && test -f conftest2.$ac_objext; then 13541 : OK 13542 else 13543 am_cv_prog_cc_c_o=no 13544 break 13545 fi 13546 done 13547 rm -f core conftest* 13548 unset am_i 13549fi 13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13551$as_echo "$am_cv_prog_cc_c_o" >&6; } 13552if test "$am_cv_prog_cc_c_o" != yes; then 13553 # Losing compiler, so override with the script. 13554 # FIXME: It is wrong to rewrite CC. 13555 # But if we don't then we get into trouble of one sort or another. 13556 # A longer-term fix would be to have automake use am__CC in this case, 13557 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13558 CC="$am_aux_dir/compile $CC" 13559fi 13560ac_ext=c 13561ac_cpp='$CPP $CPPFLAGS' 13562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13564ac_compiler_gnu=$ac_cv_c_compiler_gnu 13565 13566 13567depcc="$CC" am_compiler_list= 13568 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13570$as_echo_n "checking dependency style of $depcc... " >&6; } 13571if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13572 $as_echo_n "(cached) " >&6 13573else 13574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13575 # We make a subdir and do the tests there. Otherwise we can end up 13576 # making bogus files that we don't know about and never remove. For 13577 # instance it was reported that on HP-UX the gcc test will end up 13578 # making a dummy file named 'D' -- because '-MD' means "put the output 13579 # in D". 13580 rm -rf conftest.dir 13581 mkdir conftest.dir 13582 # Copy depcomp to subdir because otherwise we won't find it if we're 13583 # using a relative directory. 13584 cp "$am_depcomp" conftest.dir 13585 cd conftest.dir 13586 # We will build objects and dependencies in a subdirectory because 13587 # it helps to detect inapplicable dependency modes. For instance 13588 # both Tru64's cc and ICC support -MD to output dependencies as a 13589 # side effect of compilation, but ICC will put the dependencies in 13590 # the current directory while Tru64 will put them in the object 13591 # directory. 13592 mkdir sub 13593 13594 am_cv_CC_dependencies_compiler_type=none 13595 if test "$am_compiler_list" = ""; then 13596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13597 fi 13598 am__universal=false 13599 case " $depcc " in #( 13600 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13601 esac 13602 13603 for depmode in $am_compiler_list; do 13604 # Setup a source with many dependencies, because some compilers 13605 # like to wrap large dependency lists on column 80 (with \), and 13606 # we should not choose a depcomp mode which is confused by this. 13607 # 13608 # We need to recreate these files for each test, as the compiler may 13609 # overwrite some of them when testing with obscure command lines. 13610 # This happens at least with the AIX C compiler. 13611 : > sub/conftest.c 13612 for i in 1 2 3 4 5 6; do 13613 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13614 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13615 # Solaris 10 /bin/sh. 13616 echo '/* dummy */' > sub/conftst$i.h 13617 done 13618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13619 13620 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13621 # mode. It turns out that the SunPro C++ compiler does not properly 13622 # handle '-M -o', and we need to detect this. Also, some Intel 13623 # versions had trouble with output in subdirs. 13624 am__obj=sub/conftest.${OBJEXT-o} 13625 am__minus_obj="-o $am__obj" 13626 case $depmode in 13627 gcc) 13628 # This depmode causes a compiler race in universal mode. 13629 test "$am__universal" = false || continue 13630 ;; 13631 nosideeffect) 13632 # After this tag, mechanisms are not by side-effect, so they'll 13633 # only be used when explicitly requested. 13634 if test "x$enable_dependency_tracking" = xyes; then 13635 continue 13636 else 13637 break 13638 fi 13639 ;; 13640 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13641 # This compiler won't grok '-c -o', but also, the minuso test has 13642 # not run yet. These depmodes are late enough in the game, and 13643 # so weak that their functioning should not be impacted. 13644 am__obj=conftest.${OBJEXT-o} 13645 am__minus_obj= 13646 ;; 13647 none) break ;; 13648 esac 13649 if depmode=$depmode \ 13650 source=sub/conftest.c object=$am__obj \ 13651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13653 >/dev/null 2>conftest.err && 13654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13658 # icc doesn't choke on unknown options, it will just issue warnings 13659 # or remarks (even with -Werror). So we grep stderr for any message 13660 # that says an option was ignored or not supported. 13661 # When given -MP, icc 7.0 and 7.1 complain thusly: 13662 # icc: Command line warning: ignoring option '-M'; no argument required 13663 # The diagnosis changed in icc 8.0: 13664 # icc: Command line remark: option '-MP' not supported 13665 if (grep 'ignoring option' conftest.err || 13666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13667 am_cv_CC_dependencies_compiler_type=$depmode 13668 break 13669 fi 13670 fi 13671 done 13672 13673 cd .. 13674 rm -rf conftest.dir 13675else 13676 am_cv_CC_dependencies_compiler_type=none 13677fi 13678 13679fi 13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13681$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13682CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13683 13684 if 13685 test "x$enable_dependency_tracking" != xno \ 13686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13687 am__fastdepCC_TRUE= 13688 am__fastdepCC_FALSE='#' 13689else 13690 am__fastdepCC_TRUE='#' 13691 am__fastdepCC_FALSE= 13692fi 13693 13694 13695ac_ext=cpp 13696ac_cpp='$CXXCPP $CPPFLAGS' 13697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13700if test -z "$CXX"; then 13701 if test -n "$CCC"; then 13702 CXX=$CCC 13703 else 13704 if test -n "$ac_tool_prefix"; then 13705 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13706 do 13707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13708set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13710$as_echo_n "checking for $ac_word... " >&6; } 13711if ${ac_cv_prog_CXX+:} false; then : 13712 $as_echo_n "(cached) " >&6 13713else 13714 if test -n "$CXX"; then 13715 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13716else 13717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13718for as_dir in $PATH 13719do 13720 IFS=$as_save_IFS 13721 test -z "$as_dir" && as_dir=. 13722 for ac_exec_ext in '' $ac_executable_extensions; do 13723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13724 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13726 break 2 13727 fi 13728done 13729 done 13730IFS=$as_save_IFS 13731 13732fi 13733fi 13734CXX=$ac_cv_prog_CXX 13735if test -n "$CXX"; then 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13737$as_echo "$CXX" >&6; } 13738else 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13740$as_echo "no" >&6; } 13741fi 13742 13743 13744 test -n "$CXX" && break 13745 done 13746fi 13747if test -z "$CXX"; then 13748 ac_ct_CXX=$CXX 13749 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13750do 13751 # Extract the first word of "$ac_prog", so it can be a program name with args. 13752set dummy $ac_prog; ac_word=$2 13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13754$as_echo_n "checking for $ac_word... " >&6; } 13755if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13756 $as_echo_n "(cached) " >&6 13757else 13758 if test -n "$ac_ct_CXX"; then 13759 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13760else 13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13762for as_dir in $PATH 13763do 13764 IFS=$as_save_IFS 13765 test -z "$as_dir" && as_dir=. 13766 for ac_exec_ext in '' $ac_executable_extensions; do 13767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13768 ac_cv_prog_ac_ct_CXX="$ac_prog" 13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13770 break 2 13771 fi 13772done 13773 done 13774IFS=$as_save_IFS 13775 13776fi 13777fi 13778ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13779if test -n "$ac_ct_CXX"; then 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13781$as_echo "$ac_ct_CXX" >&6; } 13782else 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13784$as_echo "no" >&6; } 13785fi 13786 13787 13788 test -n "$ac_ct_CXX" && break 13789done 13790 13791 if test "x$ac_ct_CXX" = x; then 13792 CXX="g++" 13793 else 13794 case $cross_compiling:$ac_tool_warned in 13795yes:) 13796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13798ac_tool_warned=yes ;; 13799esac 13800 CXX=$ac_ct_CXX 13801 fi 13802fi 13803 13804 fi 13805fi 13806# Provide some information about the compiler. 13807$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13808set X $ac_compile 13809ac_compiler=$2 13810for ac_option in --version -v -V -qversion; do 13811 { { ac_try="$ac_compiler $ac_option >&5" 13812case "(($ac_try" in 13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13814 *) ac_try_echo=$ac_try;; 13815esac 13816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13817$as_echo "$ac_try_echo"; } >&5 13818 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13819 ac_status=$? 13820 if test -s conftest.err; then 13821 sed '10a\ 13822... rest of stderr output deleted ... 13823 10q' conftest.err >conftest.er1 13824 cat conftest.er1 >&5 13825 fi 13826 rm -f conftest.er1 conftest.err 13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13828 test $ac_status = 0; } 13829done 13830 13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13832$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13833if ${ac_cv_cxx_compiler_gnu+:} false; then : 13834 $as_echo_n "(cached) " >&6 13835else 13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13837/* end confdefs.h. */ 13838 13839int 13840main () 13841{ 13842#ifndef __GNUC__ 13843 choke me 13844#endif 13845 13846 ; 13847 return 0; 13848} 13849_ACEOF 13850if ac_fn_cxx_try_compile "$LINENO"; then : 13851 ac_compiler_gnu=yes 13852else 13853 ac_compiler_gnu=no 13854fi 13855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13856ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13857 13858fi 13859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13860$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13861if test $ac_compiler_gnu = yes; then 13862 GXX=yes 13863else 13864 GXX= 13865fi 13866ac_test_CXXFLAGS=${CXXFLAGS+set} 13867ac_save_CXXFLAGS=$CXXFLAGS 13868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13869$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13870if ${ac_cv_prog_cxx_g+:} false; then : 13871 $as_echo_n "(cached) " >&6 13872else 13873 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13874 ac_cxx_werror_flag=yes 13875 ac_cv_prog_cxx_g=no 13876 CXXFLAGS="-g" 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879 13880int 13881main () 13882{ 13883 13884 ; 13885 return 0; 13886} 13887_ACEOF 13888if ac_fn_cxx_try_compile "$LINENO"; then : 13889 ac_cv_prog_cxx_g=yes 13890else 13891 CXXFLAGS="" 13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13893/* end confdefs.h. */ 13894 13895int 13896main () 13897{ 13898 13899 ; 13900 return 0; 13901} 13902_ACEOF 13903if ac_fn_cxx_try_compile "$LINENO"; then : 13904 13905else 13906 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13907 CXXFLAGS="-g" 13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909/* end confdefs.h. */ 13910 13911int 13912main () 13913{ 13914 13915 ; 13916 return 0; 13917} 13918_ACEOF 13919if ac_fn_cxx_try_compile "$LINENO"; then : 13920 ac_cv_prog_cxx_g=yes 13921fi 13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13923fi 13924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13925fi 13926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13927 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13928fi 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13930$as_echo "$ac_cv_prog_cxx_g" >&6; } 13931if test "$ac_test_CXXFLAGS" = set; then 13932 CXXFLAGS=$ac_save_CXXFLAGS 13933elif test $ac_cv_prog_cxx_g = yes; then 13934 if test "$GXX" = yes; then 13935 CXXFLAGS="-g -O2" 13936 else 13937 CXXFLAGS="-g" 13938 fi 13939else 13940 if test "$GXX" = yes; then 13941 CXXFLAGS="-O2" 13942 else 13943 CXXFLAGS= 13944 fi 13945fi 13946ac_ext=c 13947ac_cpp='$CPP $CPPFLAGS' 13948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13950ac_compiler_gnu=$ac_cv_c_compiler_gnu 13951 13952depcc="$CXX" am_compiler_list= 13953 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13955$as_echo_n "checking dependency style of $depcc... " >&6; } 13956if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13960 # We make a subdir and do the tests there. Otherwise we can end up 13961 # making bogus files that we don't know about and never remove. For 13962 # instance it was reported that on HP-UX the gcc test will end up 13963 # making a dummy file named 'D' -- because '-MD' means "put the output 13964 # in D". 13965 rm -rf conftest.dir 13966 mkdir conftest.dir 13967 # Copy depcomp to subdir because otherwise we won't find it if we're 13968 # using a relative directory. 13969 cp "$am_depcomp" conftest.dir 13970 cd conftest.dir 13971 # We will build objects and dependencies in a subdirectory because 13972 # it helps to detect inapplicable dependency modes. For instance 13973 # both Tru64's cc and ICC support -MD to output dependencies as a 13974 # side effect of compilation, but ICC will put the dependencies in 13975 # the current directory while Tru64 will put them in the object 13976 # directory. 13977 mkdir sub 13978 13979 am_cv_CXX_dependencies_compiler_type=none 13980 if test "$am_compiler_list" = ""; then 13981 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13982 fi 13983 am__universal=false 13984 case " $depcc " in #( 13985 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13986 esac 13987 13988 for depmode in $am_compiler_list; do 13989 # Setup a source with many dependencies, because some compilers 13990 # like to wrap large dependency lists on column 80 (with \), and 13991 # we should not choose a depcomp mode which is confused by this. 13992 # 13993 # We need to recreate these files for each test, as the compiler may 13994 # overwrite some of them when testing with obscure command lines. 13995 # This happens at least with the AIX C compiler. 13996 : > sub/conftest.c 13997 for i in 1 2 3 4 5 6; do 13998 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13999 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 14000 # Solaris 10 /bin/sh. 14001 echo '/* dummy */' > sub/conftst$i.h 14002 done 14003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 14004 14005 # We check with '-c' and '-o' for the sake of the "dashmstdout" 14006 # mode. It turns out that the SunPro C++ compiler does not properly 14007 # handle '-M -o', and we need to detect this. Also, some Intel 14008 # versions had trouble with output in subdirs. 14009 am__obj=sub/conftest.${OBJEXT-o} 14010 am__minus_obj="-o $am__obj" 14011 case $depmode in 14012 gcc) 14013 # This depmode causes a compiler race in universal mode. 14014 test "$am__universal" = false || continue 14015 ;; 14016 nosideeffect) 14017 # After this tag, mechanisms are not by side-effect, so they'll 14018 # only be used when explicitly requested. 14019 if test "x$enable_dependency_tracking" = xyes; then 14020 continue 14021 else 14022 break 14023 fi 14024 ;; 14025 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 14026 # This compiler won't grok '-c -o', but also, the minuso test has 14027 # not run yet. These depmodes are late enough in the game, and 14028 # so weak that their functioning should not be impacted. 14029 am__obj=conftest.${OBJEXT-o} 14030 am__minus_obj= 14031 ;; 14032 none) break ;; 14033 esac 14034 if depmode=$depmode \ 14035 source=sub/conftest.c object=$am__obj \ 14036 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 14037 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 14038 >/dev/null 2>conftest.err && 14039 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 14040 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 14041 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 14042 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 14043 # icc doesn't choke on unknown options, it will just issue warnings 14044 # or remarks (even with -Werror). So we grep stderr for any message 14045 # that says an option was ignored or not supported. 14046 # When given -MP, icc 7.0 and 7.1 complain thusly: 14047 # icc: Command line warning: ignoring option '-M'; no argument required 14048 # The diagnosis changed in icc 8.0: 14049 # icc: Command line remark: option '-MP' not supported 14050 if (grep 'ignoring option' conftest.err || 14051 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 14052 am_cv_CXX_dependencies_compiler_type=$depmode 14053 break 14054 fi 14055 fi 14056 done 14057 14058 cd .. 14059 rm -rf conftest.dir 14060else 14061 am_cv_CXX_dependencies_compiler_type=none 14062fi 14063 14064fi 14065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 14066$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 14067CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 14068 14069 if 14070 test "x$enable_dependency_tracking" != xno \ 14071 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 14072 am__fastdepCXX_TRUE= 14073 am__fastdepCXX_FALSE='#' 14074else 14075 am__fastdepCXX_TRUE='#' 14076 am__fastdepCXX_FALSE= 14077fi 14078 14079 14080 14081 14082func_stripname_cnf () 14083{ 14084 case $2 in 14085 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 14086 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 14087 esac 14088} # func_stripname_cnf 14089 14090 if test -n "$CXX" && ( test no != "$CXX" && 14091 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 14092 (test g++ != "$CXX"))); then 14093 ac_ext=cpp 14094ac_cpp='$CXXCPP $CPPFLAGS' 14095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14099$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14100if test -z "$CXXCPP"; then 14101 if ${ac_cv_prog_CXXCPP+:} false; then : 14102 $as_echo_n "(cached) " >&6 14103else 14104 # Double quotes because CXXCPP needs to be expanded 14105 for CXXCPP in "$CXX -E" "/lib/cpp" 14106 do 14107 ac_preproc_ok=false 14108for ac_cxx_preproc_warn_flag in '' yes 14109do 14110 # Use a header file that comes with gcc, so configuring glibc 14111 # with a fresh cross-compiler works. 14112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14113 # <limits.h> exists even on freestanding compilers. 14114 # On the NeXT, cc -E runs the code through the compiler's parser, 14115 # not just through cpp. "Syntax error" is here to catch this case. 14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117/* end confdefs.h. */ 14118#ifdef __STDC__ 14119# include <limits.h> 14120#else 14121# include <assert.h> 14122#endif 14123 Syntax error 14124_ACEOF 14125if ac_fn_cxx_try_cpp "$LINENO"; then : 14126 14127else 14128 # Broken: fails on valid input. 14129continue 14130fi 14131rm -f conftest.err conftest.i conftest.$ac_ext 14132 14133 # OK, works on sane cases. Now check whether nonexistent headers 14134 # can be detected and how. 14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14136/* end confdefs.h. */ 14137#include <ac_nonexistent.h> 14138_ACEOF 14139if ac_fn_cxx_try_cpp "$LINENO"; then : 14140 # Broken: success on invalid input. 14141continue 14142else 14143 # Passes both tests. 14144ac_preproc_ok=: 14145break 14146fi 14147rm -f conftest.err conftest.i conftest.$ac_ext 14148 14149done 14150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14151rm -f conftest.i conftest.err conftest.$ac_ext 14152if $ac_preproc_ok; then : 14153 break 14154fi 14155 14156 done 14157 ac_cv_prog_CXXCPP=$CXXCPP 14158 14159fi 14160 CXXCPP=$ac_cv_prog_CXXCPP 14161else 14162 ac_cv_prog_CXXCPP=$CXXCPP 14163fi 14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14165$as_echo "$CXXCPP" >&6; } 14166ac_preproc_ok=false 14167for ac_cxx_preproc_warn_flag in '' yes 14168do 14169 # Use a header file that comes with gcc, so configuring glibc 14170 # with a fresh cross-compiler works. 14171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14172 # <limits.h> exists even on freestanding compilers. 14173 # On the NeXT, cc -E runs the code through the compiler's parser, 14174 # not just through cpp. "Syntax error" is here to catch this case. 14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14176/* end confdefs.h. */ 14177#ifdef __STDC__ 14178# include <limits.h> 14179#else 14180# include <assert.h> 14181#endif 14182 Syntax error 14183_ACEOF 14184if ac_fn_cxx_try_cpp "$LINENO"; then : 14185 14186else 14187 # Broken: fails on valid input. 14188continue 14189fi 14190rm -f conftest.err conftest.i conftest.$ac_ext 14191 14192 # OK, works on sane cases. Now check whether nonexistent headers 14193 # can be detected and how. 14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14195/* end confdefs.h. */ 14196#include <ac_nonexistent.h> 14197_ACEOF 14198if ac_fn_cxx_try_cpp "$LINENO"; then : 14199 # Broken: success on invalid input. 14200continue 14201else 14202 # Passes both tests. 14203ac_preproc_ok=: 14204break 14205fi 14206rm -f conftest.err conftest.i conftest.$ac_ext 14207 14208done 14209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14210rm -f conftest.i conftest.err conftest.$ac_ext 14211if $ac_preproc_ok; then : 14212 14213else 14214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14216as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14217See \`config.log' for more details" "$LINENO" 5; } 14218fi 14219 14220ac_ext=c 14221ac_cpp='$CPP $CPPFLAGS' 14222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14224ac_compiler_gnu=$ac_cv_c_compiler_gnu 14225 14226else 14227 _lt_caught_CXX_error=yes 14228fi 14229 14230ac_ext=cpp 14231ac_cpp='$CXXCPP $CPPFLAGS' 14232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14235 14236archive_cmds_need_lc_CXX=no 14237allow_undefined_flag_CXX= 14238always_export_symbols_CXX=no 14239archive_expsym_cmds_CXX= 14240compiler_needs_object_CXX=no 14241export_dynamic_flag_spec_CXX= 14242hardcode_direct_CXX=no 14243hardcode_direct_absolute_CXX=no 14244hardcode_libdir_flag_spec_CXX= 14245hardcode_libdir_separator_CXX= 14246hardcode_minus_L_CXX=no 14247hardcode_shlibpath_var_CXX=unsupported 14248hardcode_automatic_CXX=no 14249inherit_rpath_CXX=no 14250module_cmds_CXX= 14251module_expsym_cmds_CXX= 14252link_all_deplibs_CXX=unknown 14253old_archive_cmds_CXX=$old_archive_cmds 14254reload_flag_CXX=$reload_flag 14255reload_cmds_CXX=$reload_cmds 14256no_undefined_flag_CXX= 14257whole_archive_flag_spec_CXX= 14258enable_shared_with_static_runtimes_CXX=no 14259 14260# Source file extension for C++ test sources. 14261ac_ext=cpp 14262 14263# Object file extension for compiled C++ test sources. 14264objext=o 14265objext_CXX=$objext 14266 14267# No sense in running all these tests if we already determined that 14268# the CXX compiler isn't working. Some variables (like enable_shared) 14269# are currently assumed to apply to all compilers on this platform, 14270# and will be corrupted by setting them based on a non-working compiler. 14271if test yes != "$_lt_caught_CXX_error"; then 14272 # Code to be used in simple compile tests 14273 lt_simple_compile_test_code="int some_variable = 0;" 14274 14275 # Code to be used in simple link tests 14276 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14277 14278 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14279 14280 14281 14282 14283 14284 14285# If no C compiler was specified, use CC. 14286LTCC=${LTCC-"$CC"} 14287 14288# If no C compiler flags were specified, use CFLAGS. 14289LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14290 14291# Allow CC to be a program name with arguments. 14292compiler=$CC 14293 14294 14295 # save warnings/boilerplate of simple test code 14296 ac_outfile=conftest.$ac_objext 14297echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14298eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14299_lt_compiler_boilerplate=`cat conftest.err` 14300$RM conftest* 14301 14302 ac_outfile=conftest.$ac_objext 14303echo "$lt_simple_link_test_code" >conftest.$ac_ext 14304eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14305_lt_linker_boilerplate=`cat conftest.err` 14306$RM -r conftest* 14307 14308 14309 # Allow CC to be a program name with arguments. 14310 lt_save_CC=$CC 14311 lt_save_CFLAGS=$CFLAGS 14312 lt_save_LD=$LD 14313 lt_save_GCC=$GCC 14314 GCC=$GXX 14315 lt_save_with_gnu_ld=$with_gnu_ld 14316 lt_save_path_LD=$lt_cv_path_LD 14317 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14318 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14319 else 14320 $as_unset lt_cv_prog_gnu_ld 14321 fi 14322 if test -n "${lt_cv_path_LDCXX+set}"; then 14323 lt_cv_path_LD=$lt_cv_path_LDCXX 14324 else 14325 $as_unset lt_cv_path_LD 14326 fi 14327 test -z "${LDCXX+set}" || LD=$LDCXX 14328 CC=${CXX-"c++"} 14329 CFLAGS=$CXXFLAGS 14330 compiler=$CC 14331 compiler_CXX=$CC 14332 func_cc_basename $compiler 14333cc_basename=$func_cc_basename_result 14334 14335 14336 if test -n "$compiler"; then 14337 # We don't want -fno-exception when compiling C++ code, so set the 14338 # no_builtin_flag separately 14339 if test yes = "$GXX"; then 14340 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14341 else 14342 lt_prog_compiler_no_builtin_flag_CXX= 14343 fi 14344 14345 if test yes = "$GXX"; then 14346 # Set up default GNU C++ configuration 14347 14348 14349 14350# Check whether --with-gnu-ld was given. 14351if test "${with_gnu_ld+set}" = set; then : 14352 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14353else 14354 with_gnu_ld=no 14355fi 14356 14357ac_prog=ld 14358if test yes = "$GCC"; then 14359 # Check if gcc -print-prog-name=ld gives a path. 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14361$as_echo_n "checking for ld used by $CC... " >&6; } 14362 case $host in 14363 *-*-mingw*) 14364 # gcc leaves a trailing carriage return, which upsets mingw 14365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14366 *) 14367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14368 esac 14369 case $ac_prog in 14370 # Accept absolute paths. 14371 [\\/]* | ?:[\\/]*) 14372 re_direlt='/[^/][^/]*/\.\./' 14373 # Canonicalize the pathname of ld 14374 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14375 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14376 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14377 done 14378 test -z "$LD" && LD=$ac_prog 14379 ;; 14380 "") 14381 # If it fails, then pretend we aren't using GCC. 14382 ac_prog=ld 14383 ;; 14384 *) 14385 # If it is relative, then search for the first ld in PATH. 14386 with_gnu_ld=unknown 14387 ;; 14388 esac 14389elif test yes = "$with_gnu_ld"; then 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14391$as_echo_n "checking for GNU ld... " >&6; } 14392else 14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14394$as_echo_n "checking for non-GNU ld... " >&6; } 14395fi 14396if ${lt_cv_path_LD+:} false; then : 14397 $as_echo_n "(cached) " >&6 14398else 14399 if test -z "$LD"; then 14400 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14401 for ac_dir in $PATH; do 14402 IFS=$lt_save_ifs 14403 test -z "$ac_dir" && ac_dir=. 14404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14405 lt_cv_path_LD=$ac_dir/$ac_prog 14406 # Check to see if the program is GNU ld. I'd rather use --version, 14407 # but apparently some variants of GNU ld only accept -v. 14408 # Break only if it was the GNU/non-GNU ld that we prefer. 14409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14410 *GNU* | *'with BFD'*) 14411 test no != "$with_gnu_ld" && break 14412 ;; 14413 *) 14414 test yes != "$with_gnu_ld" && break 14415 ;; 14416 esac 14417 fi 14418 done 14419 IFS=$lt_save_ifs 14420else 14421 lt_cv_path_LD=$LD # Let the user override the test with a path. 14422fi 14423fi 14424 14425LD=$lt_cv_path_LD 14426if test -n "$LD"; then 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14428$as_echo "$LD" >&6; } 14429else 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14431$as_echo "no" >&6; } 14432fi 14433test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14435$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14436if ${lt_cv_prog_gnu_ld+:} false; then : 14437 $as_echo_n "(cached) " >&6 14438else 14439 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14440case `$LD -v 2>&1 </dev/null` in 14441*GNU* | *'with BFD'*) 14442 lt_cv_prog_gnu_ld=yes 14443 ;; 14444*) 14445 lt_cv_prog_gnu_ld=no 14446 ;; 14447esac 14448fi 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14450$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14451with_gnu_ld=$lt_cv_prog_gnu_ld 14452 14453 14454 14455 14456 14457 14458 14459 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14460 # archiving commands below assume that GNU ld is being used. 14461 if test yes = "$with_gnu_ld"; then 14462 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14463 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14464 14465 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14466 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14467 14468 # If archive_cmds runs LD, not CC, wlarc should be empty 14469 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14470 # investigate it a little bit more. (MM) 14471 wlarc='$wl' 14472 14473 # ancient GNU ld didn't support --whole-archive et. al. 14474 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14475 $GREP 'no-whole-archive' > /dev/null; then 14476 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14477 else 14478 whole_archive_flag_spec_CXX= 14479 fi 14480 else 14481 with_gnu_ld=no 14482 wlarc= 14483 14484 # A generic and very simple default shared library creation 14485 # command for GNU C++ for the case where it uses the native 14486 # linker, instead of GNU ld. If possible, this setting should 14487 # overridden to take advantage of the native linker features on 14488 # the platform it is being used on. 14489 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14490 fi 14491 14492 # Commands to make compiler produce verbose output that lists 14493 # what "hidden" libraries, object files and flags are used when 14494 # linking a shared library. 14495 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14496 14497 else 14498 GXX=no 14499 with_gnu_ld=no 14500 wlarc= 14501 fi 14502 14503 # PORTME: fill in a description of your system's C++ link characteristics 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14505$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14506 ld_shlibs_CXX=yes 14507 case $host_os in 14508 aix3*) 14509 # FIXME: insert proper C++ library support 14510 ld_shlibs_CXX=no 14511 ;; 14512 aix[4-9]*) 14513 if test ia64 = "$host_cpu"; then 14514 # On IA64, the linker does run time linking by default, so we don't 14515 # have to do anything special. 14516 aix_use_runtimelinking=no 14517 exp_sym_flag='-Bexport' 14518 no_entry_flag= 14519 else 14520 aix_use_runtimelinking=no 14521 14522 # Test if we are trying to use run time linking or normal 14523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14524 # have runtime linking enabled, and use it for executables. 14525 # For shared libraries, we enable/disable runtime linking 14526 # depending on the kind of the shared library created - 14527 # when "with_aix_soname,aix_use_runtimelinking" is: 14528 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14529 # "aix,yes" lib.so shared, rtl:yes, for executables 14530 # lib.a static archive 14531 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14532 # lib.a(lib.so.V) shared, rtl:no, for executables 14533 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14534 # lib.a(lib.so.V) shared, rtl:no 14535 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14536 # lib.a static archive 14537 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14538 for ld_flag in $LDFLAGS; do 14539 case $ld_flag in 14540 *-brtl*) 14541 aix_use_runtimelinking=yes 14542 break 14543 ;; 14544 esac 14545 done 14546 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14547 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14548 # so we don't have lib.a shared libs to link our executables. 14549 # We have to force runtime linking in this case. 14550 aix_use_runtimelinking=yes 14551 LDFLAGS="$LDFLAGS -Wl,-brtl" 14552 fi 14553 ;; 14554 esac 14555 14556 exp_sym_flag='-bexport' 14557 no_entry_flag='-bnoentry' 14558 fi 14559 14560 # When large executables or shared objects are built, AIX ld can 14561 # have problems creating the table of contents. If linking a library 14562 # or program results in "error TOC overflow" add -mminimal-toc to 14563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14565 14566 archive_cmds_CXX='' 14567 hardcode_direct_CXX=yes 14568 hardcode_direct_absolute_CXX=yes 14569 hardcode_libdir_separator_CXX=':' 14570 link_all_deplibs_CXX=yes 14571 file_list_spec_CXX='$wl-f,' 14572 case $with_aix_soname,$aix_use_runtimelinking in 14573 aix,*) ;; # no import file 14574 svr4,* | *,yes) # use import file 14575 # The Import File defines what to hardcode. 14576 hardcode_direct_CXX=no 14577 hardcode_direct_absolute_CXX=no 14578 ;; 14579 esac 14580 14581 if test yes = "$GXX"; then 14582 case $host_os in aix4.[012]|aix4.[012].*) 14583 # We only want to do this on AIX 4.2 and lower, the check 14584 # below for broken collect2 doesn't work under 4.3+ 14585 collect2name=`$CC -print-prog-name=collect2` 14586 if test -f "$collect2name" && 14587 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14588 then 14589 # We have reworked collect2 14590 : 14591 else 14592 # We have old collect2 14593 hardcode_direct_CXX=unsupported 14594 # It fails to find uninstalled libraries when the uninstalled 14595 # path is not listed in the libpath. Setting hardcode_minus_L 14596 # to unsupported forces relinking 14597 hardcode_minus_L_CXX=yes 14598 hardcode_libdir_flag_spec_CXX='-L$libdir' 14599 hardcode_libdir_separator_CXX= 14600 fi 14601 esac 14602 shared_flag='-shared' 14603 if test yes = "$aix_use_runtimelinking"; then 14604 shared_flag=$shared_flag' $wl-G' 14605 fi 14606 # Need to ensure runtime linking is disabled for the traditional 14607 # shared library, or the linker may eventually find shared libraries 14608 # /with/ Import File - we do not want to mix them. 14609 shared_flag_aix='-shared' 14610 shared_flag_svr4='-shared $wl-G' 14611 else 14612 # not using gcc 14613 if test ia64 = "$host_cpu"; then 14614 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14615 # chokes on -Wl,-G. The following line is correct: 14616 shared_flag='-G' 14617 else 14618 if test yes = "$aix_use_runtimelinking"; then 14619 shared_flag='$wl-G' 14620 else 14621 shared_flag='$wl-bM:SRE' 14622 fi 14623 shared_flag_aix='$wl-bM:SRE' 14624 shared_flag_svr4='$wl-G' 14625 fi 14626 fi 14627 14628 export_dynamic_flag_spec_CXX='$wl-bexpall' 14629 # It seems that -bexpall does not export symbols beginning with 14630 # underscore (_), so it is better to generate a list of symbols to 14631 # export. 14632 always_export_symbols_CXX=yes 14633 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14634 # Warning - without using the other runtime loading flags (-brtl), 14635 # -berok will link without error, but may produce a broken library. 14636 # The "-G" linker flag allows undefined symbols. 14637 no_undefined_flag_CXX='-bernotok' 14638 # Determine the default libpath from the value encoded in an empty 14639 # executable. 14640 if test set = "${lt_cv_aix_libpath+set}"; then 14641 aix_libpath=$lt_cv_aix_libpath 14642else 14643 if ${lt_cv_aix_libpath__CXX+:} false; then : 14644 $as_echo_n "(cached) " >&6 14645else 14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14647/* end confdefs.h. */ 14648 14649int 14650main () 14651{ 14652 14653 ; 14654 return 0; 14655} 14656_ACEOF 14657if ac_fn_cxx_try_link "$LINENO"; then : 14658 14659 lt_aix_libpath_sed=' 14660 /Import File Strings/,/^$/ { 14661 /^0/ { 14662 s/^0 *\([^ ]*\) *$/\1/ 14663 p 14664 } 14665 }' 14666 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14667 # Check for a 64-bit object if we didn't find anything. 14668 if test -z "$lt_cv_aix_libpath__CXX"; then 14669 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14670 fi 14671fi 14672rm -f core conftest.err conftest.$ac_objext \ 14673 conftest$ac_exeext conftest.$ac_ext 14674 if test -z "$lt_cv_aix_libpath__CXX"; then 14675 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14676 fi 14677 14678fi 14679 14680 aix_libpath=$lt_cv_aix_libpath__CXX 14681fi 14682 14683 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14684 14685 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14686 else 14687 if test ia64 = "$host_cpu"; then 14688 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14689 allow_undefined_flag_CXX="-z nodefs" 14690 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 14691 else 14692 # Determine the default libpath from the value encoded in an 14693 # empty executable. 14694 if test set = "${lt_cv_aix_libpath+set}"; then 14695 aix_libpath=$lt_cv_aix_libpath 14696else 14697 if ${lt_cv_aix_libpath__CXX+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14701/* end confdefs.h. */ 14702 14703int 14704main () 14705{ 14706 14707 ; 14708 return 0; 14709} 14710_ACEOF 14711if ac_fn_cxx_try_link "$LINENO"; then : 14712 14713 lt_aix_libpath_sed=' 14714 /Import File Strings/,/^$/ { 14715 /^0/ { 14716 s/^0 *\([^ ]*\) *$/\1/ 14717 p 14718 } 14719 }' 14720 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14721 # Check for a 64-bit object if we didn't find anything. 14722 if test -z "$lt_cv_aix_libpath__CXX"; then 14723 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14724 fi 14725fi 14726rm -f core conftest.err conftest.$ac_objext \ 14727 conftest$ac_exeext conftest.$ac_ext 14728 if test -z "$lt_cv_aix_libpath__CXX"; then 14729 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14730 fi 14731 14732fi 14733 14734 aix_libpath=$lt_cv_aix_libpath__CXX 14735fi 14736 14737 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14738 # Warning - without using the other run time loading flags, 14739 # -berok will link without error, but may produce a broken library. 14740 no_undefined_flag_CXX=' $wl-bernotok' 14741 allow_undefined_flag_CXX=' $wl-berok' 14742 if test yes = "$with_gnu_ld"; then 14743 # We only use this code for GNU lds that support --whole-archive. 14744 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14745 else 14746 # Exported symbols can be pulled into shared objects from archives 14747 whole_archive_flag_spec_CXX='$convenience' 14748 fi 14749 archive_cmds_need_lc_CXX=yes 14750 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14751 # -brtl affects multiple linker settings, -berok does not and is overridden later 14752 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14753 if test svr4 != "$with_aix_soname"; then 14754 # This is similar to how AIX traditionally builds its shared 14755 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14756 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14757 fi 14758 if test aix != "$with_aix_soname"; then 14759 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14760 else 14761 # used by -dlpreopen to get the symbols 14762 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14763 fi 14764 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14765 fi 14766 fi 14767 ;; 14768 14769 beos*) 14770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14771 allow_undefined_flag_CXX=unsupported 14772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14773 # support --undefined. This deserves some investigation. FIXME 14774 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14775 else 14776 ld_shlibs_CXX=no 14777 fi 14778 ;; 14779 14780 chorus*) 14781 case $cc_basename in 14782 *) 14783 # FIXME: insert proper C++ library support 14784 ld_shlibs_CXX=no 14785 ;; 14786 esac 14787 ;; 14788 14789 cygwin* | mingw* | pw32* | cegcc*) 14790 case $GXX,$cc_basename in 14791 ,cl* | no,cl* | ,icl* | no,icl*) 14792 # Native MSVC or ICC 14793 # hardcode_libdir_flag_spec is actually meaningless, as there is 14794 # no search path for DLLs. 14795 hardcode_libdir_flag_spec_CXX=' ' 14796 allow_undefined_flag_CXX=unsupported 14797 always_export_symbols_CXX=yes 14798 file_list_spec_CXX='@' 14799 # Tell ltmain to make .lib files, not .a files. 14800 libext=lib 14801 # Tell ltmain to make .dll files, not .so files. 14802 shrext_cmds=.dll 14803 # FIXME: Setting linknames here is a bad hack. 14804 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14805 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14806 cp "$export_symbols" "$output_objdir/$soname.def"; 14807 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14808 else 14809 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14810 fi~ 14811 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14812 linknames=' 14813 # The linker will not automatically build a static lib if we build a DLL. 14814 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14815 enable_shared_with_static_runtimes_CXX=yes 14816 # Don't use ranlib 14817 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14818 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14819 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14820 case $lt_outputfile in 14821 *.exe|*.EXE) ;; 14822 *) 14823 lt_outputfile=$lt_outputfile.exe 14824 lt_tool_outputfile=$lt_tool_outputfile.exe 14825 ;; 14826 esac~ 14827 func_to_tool_file "$lt_outputfile"~ 14828 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14829 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14830 $RM "$lt_outputfile.manifest"; 14831 fi' 14832 ;; 14833 *) 14834 # g++ 14835 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14836 # as there is no search path for DLLs. 14837 hardcode_libdir_flag_spec_CXX='-L$libdir' 14838 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14839 allow_undefined_flag_CXX=unsupported 14840 always_export_symbols_CXX=no 14841 enable_shared_with_static_runtimes_CXX=yes 14842 14843 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14844 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14845 # If the export-symbols file already is a .def file, use it as 14846 # is; otherwise, prepend EXPORTS... 14847 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14848 cp $export_symbols $output_objdir/$soname.def; 14849 else 14850 echo EXPORTS > $output_objdir/$soname.def; 14851 cat $export_symbols >> $output_objdir/$soname.def; 14852 fi~ 14853 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14854 else 14855 ld_shlibs_CXX=no 14856 fi 14857 ;; 14858 esac 14859 ;; 14860 darwin* | rhapsody*) 14861 14862 14863 archive_cmds_need_lc_CXX=no 14864 hardcode_direct_CXX=no 14865 hardcode_automatic_CXX=yes 14866 hardcode_shlibpath_var_CXX=unsupported 14867 if test yes = "$lt_cv_ld_force_load"; then 14868 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14869 14870 else 14871 whole_archive_flag_spec_CXX='' 14872 fi 14873 link_all_deplibs_CXX=yes 14874 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14875 case $cc_basename in 14876 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14877 *) _lt_dar_can_shared=$GCC ;; 14878 esac 14879 if test yes = "$_lt_dar_can_shared"; then 14880 output_verbose_link_cmd=func_echo_all 14881 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14882 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14883 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 14884 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 14885 if test yes != "$lt_cv_apple_cc_single_mod"; then 14886 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14887 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14888 fi 14889 14890 else 14891 ld_shlibs_CXX=no 14892 fi 14893 14894 ;; 14895 14896 os2*) 14897 hardcode_libdir_flag_spec_CXX='-L$libdir' 14898 hardcode_minus_L_CXX=yes 14899 allow_undefined_flag_CXX=unsupported 14900 shrext_cmds=.dll 14901 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14902 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14903 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14904 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14905 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14906 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14907 emximp -o $lib $output_objdir/$libname.def' 14908 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14909 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14910 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14911 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14912 prefix_cmds="$SED"~ 14913 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14914 prefix_cmds="$prefix_cmds -e 1d"; 14915 fi~ 14916 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14917 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14918 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14919 emximp -o $lib $output_objdir/$libname.def' 14920 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14921 enable_shared_with_static_runtimes_CXX=yes 14922 file_list_spec_CXX='@' 14923 ;; 14924 14925 dgux*) 14926 case $cc_basename in 14927 ec++*) 14928 # FIXME: insert proper C++ library support 14929 ld_shlibs_CXX=no 14930 ;; 14931 ghcx*) 14932 # Green Hills C++ Compiler 14933 # FIXME: insert proper C++ library support 14934 ld_shlibs_CXX=no 14935 ;; 14936 *) 14937 # FIXME: insert proper C++ library support 14938 ld_shlibs_CXX=no 14939 ;; 14940 esac 14941 ;; 14942 14943 freebsd2.*) 14944 # C++ shared libraries reported to be fairly broken before 14945 # switch to ELF 14946 ld_shlibs_CXX=no 14947 ;; 14948 14949 freebsd-elf*) 14950 archive_cmds_need_lc_CXX=no 14951 ;; 14952 14953 freebsd* | dragonfly*) 14954 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14955 # conventions 14956 ld_shlibs_CXX=yes 14957 ;; 14958 14959 haiku*) 14960 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14961 link_all_deplibs_CXX=yes 14962 ;; 14963 14964 hpux9*) 14965 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14966 hardcode_libdir_separator_CXX=: 14967 export_dynamic_flag_spec_CXX='$wl-E' 14968 hardcode_direct_CXX=yes 14969 hardcode_minus_L_CXX=yes # Not in the search PATH, 14970 # but as the default 14971 # location of the library. 14972 14973 case $cc_basename in 14974 CC*) 14975 # FIXME: insert proper C++ library support 14976 ld_shlibs_CXX=no 14977 ;; 14978 aCC*) 14979 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14980 # Commands to make compiler produce verbose output that lists 14981 # what "hidden" libraries, object files and flags are used when 14982 # linking a shared library. 14983 # 14984 # There doesn't appear to be a way to prevent this compiler from 14985 # explicitly linking system object files so we need to strip them 14986 # from the output so that they don't get included in the library 14987 # dependencies. 14988 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14989 ;; 14990 *) 14991 if test yes = "$GXX"; then 14992 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14993 else 14994 # FIXME: insert proper C++ library support 14995 ld_shlibs_CXX=no 14996 fi 14997 ;; 14998 esac 14999 ;; 15000 15001 hpux10*|hpux11*) 15002 if test no = "$with_gnu_ld"; then 15003 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 15004 hardcode_libdir_separator_CXX=: 15005 15006 case $host_cpu in 15007 hppa*64*|ia64*) 15008 ;; 15009 *) 15010 export_dynamic_flag_spec_CXX='$wl-E' 15011 ;; 15012 esac 15013 fi 15014 case $host_cpu in 15015 hppa*64*|ia64*) 15016 hardcode_direct_CXX=no 15017 hardcode_shlibpath_var_CXX=no 15018 ;; 15019 *) 15020 hardcode_direct_CXX=yes 15021 hardcode_direct_absolute_CXX=yes 15022 hardcode_minus_L_CXX=yes # Not in the search PATH, 15023 # but as the default 15024 # location of the library. 15025 ;; 15026 esac 15027 15028 case $cc_basename in 15029 CC*) 15030 # FIXME: insert proper C++ library support 15031 ld_shlibs_CXX=no 15032 ;; 15033 aCC*) 15034 case $host_cpu in 15035 hppa*64*) 15036 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15037 ;; 15038 ia64*) 15039 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15040 ;; 15041 *) 15042 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15043 ;; 15044 esac 15045 # Commands to make compiler produce verbose output that lists 15046 # what "hidden" libraries, object files and flags are used when 15047 # linking a shared library. 15048 # 15049 # There doesn't appear to be a way to prevent this compiler from 15050 # explicitly linking system object files so we need to strip them 15051 # from the output so that they don't get included in the library 15052 # dependencies. 15053 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15054 ;; 15055 *) 15056 if test yes = "$GXX"; then 15057 if test no = "$with_gnu_ld"; then 15058 case $host_cpu in 15059 hppa*64*) 15060 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15061 ;; 15062 ia64*) 15063 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15064 ;; 15065 *) 15066 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15067 ;; 15068 esac 15069 fi 15070 else 15071 # FIXME: insert proper C++ library support 15072 ld_shlibs_CXX=no 15073 fi 15074 ;; 15075 esac 15076 ;; 15077 15078 interix[3-9]*) 15079 hardcode_direct_CXX=no 15080 hardcode_shlibpath_var_CXX=no 15081 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15082 export_dynamic_flag_spec_CXX='$wl-E' 15083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15084 # Instead, shared libraries are loaded at an image base (0x10000000 by 15085 # default) and relocated if they conflict, which is a slow very memory 15086 # consuming and fragmenting process. To avoid this, we pick a random, 15087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15088 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15089 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15090 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15091 ;; 15092 irix5* | irix6*) 15093 case $cc_basename in 15094 CC*) 15095 # SGI C++ 15096 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15097 15098 # Archives containing C++ object files must be created using 15099 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15100 # necessary to make sure instantiated templates are included 15101 # in the archive. 15102 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15103 ;; 15104 *) 15105 if test yes = "$GXX"; then 15106 if test no = "$with_gnu_ld"; then 15107 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 15108 else 15109 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 15110 fi 15111 fi 15112 link_all_deplibs_CXX=yes 15113 ;; 15114 esac 15115 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15116 hardcode_libdir_separator_CXX=: 15117 inherit_rpath_CXX=yes 15118 ;; 15119 15120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15121 case $cc_basename in 15122 KCC*) 15123 # Kuck and Associates, Inc. (KAI) C++ Compiler 15124 15125 # KCC will only create a shared library if the output file 15126 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15127 # to its proper name (with version) after linking. 15128 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15129 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 15130 # Commands to make compiler produce verbose output that lists 15131 # what "hidden" libraries, object files and flags are used when 15132 # linking a shared library. 15133 # 15134 # There doesn't appear to be a way to prevent this compiler from 15135 # explicitly linking system object files so we need to strip them 15136 # from the output so that they don't get included in the library 15137 # dependencies. 15138 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15139 15140 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15141 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15142 15143 # Archives containing C++ object files must be created using 15144 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15145 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15146 ;; 15147 icpc* | ecpc* ) 15148 # Intel C++ 15149 with_gnu_ld=yes 15150 # version 8.0 and above of icpc choke on multiply defined symbols 15151 # if we add $predep_objects and $postdep_objects, however 7.1 and 15152 # earlier do not add the objects themselves. 15153 case `$CC -V 2>&1` in 15154 *"Version 7."*) 15155 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15156 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15157 ;; 15158 *) # Version 8.0 or newer 15159 tmp_idyn= 15160 case $host_cpu in 15161 ia64*) tmp_idyn=' -i_dynamic';; 15162 esac 15163 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15164 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15165 ;; 15166 esac 15167 archive_cmds_need_lc_CXX=no 15168 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15169 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15170 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15171 ;; 15172 pgCC* | pgcpp*) 15173 # Portland Group C++ compiler 15174 case `$CC -V` in 15175 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15176 prelink_cmds_CXX='tpldir=Template.dir~ 15177 rm -rf $tpldir~ 15178 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15179 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15180 old_archive_cmds_CXX='tpldir=Template.dir~ 15181 rm -rf $tpldir~ 15182 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15183 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15184 $RANLIB $oldlib' 15185 archive_cmds_CXX='tpldir=Template.dir~ 15186 rm -rf $tpldir~ 15187 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15188 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15189 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15190 rm -rf $tpldir~ 15191 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15192 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15193 ;; 15194 *) # Version 6 and above use weak symbols 15195 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15196 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15197 ;; 15198 esac 15199 15200 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15201 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15202 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15203 ;; 15204 cxx*) 15205 # Compaq C++ 15206 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15207 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 15208 15209 runpath_var=LD_RUN_PATH 15210 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15211 hardcode_libdir_separator_CXX=: 15212 15213 # Commands to make compiler produce verbose output that lists 15214 # what "hidden" libraries, object files and flags are used when 15215 # linking a shared library. 15216 # 15217 # There doesn't appear to be a way to prevent this compiler from 15218 # explicitly linking system object files so we need to strip them 15219 # from the output so that they don't get included in the library 15220 # dependencies. 15221 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 15222 ;; 15223 xl* | mpixl* | bgxl*) 15224 # IBM XL 8.0 on PPC, with GNU ld 15225 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15226 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15227 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15228 if test yes = "$supports_anon_versioning"; then 15229 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15231 echo "local: *; };" >> $output_objdir/$libname.ver~ 15232 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15233 fi 15234 ;; 15235 *) 15236 case `$CC -V 2>&1 | sed 5q` in 15237 *Sun\ C*) 15238 # Sun C++ 5.9 15239 no_undefined_flag_CXX=' -zdefs' 15240 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15241 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 15242 hardcode_libdir_flag_spec_CXX='-R$libdir' 15243 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15244 compiler_needs_object_CXX=yes 15245 15246 # Not sure whether something based on 15247 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15248 # would be better. 15249 output_verbose_link_cmd='func_echo_all' 15250 15251 # Archives containing C++ object files must be created using 15252 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15253 # necessary to make sure instantiated templates are included 15254 # in the archive. 15255 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15256 ;; 15257 esac 15258 ;; 15259 esac 15260 ;; 15261 15262 lynxos*) 15263 # FIXME: insert proper C++ library support 15264 ld_shlibs_CXX=no 15265 ;; 15266 15267 m88k*) 15268 # FIXME: insert proper C++ library support 15269 ld_shlibs_CXX=no 15270 ;; 15271 15272 mvs*) 15273 case $cc_basename in 15274 cxx*) 15275 # FIXME: insert proper C++ library support 15276 ld_shlibs_CXX=no 15277 ;; 15278 *) 15279 # FIXME: insert proper C++ library support 15280 ld_shlibs_CXX=no 15281 ;; 15282 esac 15283 ;; 15284 15285 netbsd*) 15286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15287 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15288 wlarc= 15289 hardcode_libdir_flag_spec_CXX='-R$libdir' 15290 hardcode_direct_CXX=yes 15291 hardcode_shlibpath_var_CXX=no 15292 fi 15293 # Workaround some broken pre-1.5 toolchains 15294 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15295 ;; 15296 15297 *nto* | *qnx*) 15298 ld_shlibs_CXX=yes 15299 ;; 15300 15301 openbsd* | bitrig*) 15302 if test -f /usr/libexec/ld.so; then 15303 hardcode_direct_CXX=yes 15304 hardcode_shlibpath_var_CXX=no 15305 hardcode_direct_absolute_CXX=yes 15306 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15307 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15309 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15310 export_dynamic_flag_spec_CXX='$wl-E' 15311 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15312 fi 15313 output_verbose_link_cmd=func_echo_all 15314 else 15315 ld_shlibs_CXX=no 15316 fi 15317 ;; 15318 15319 osf3* | osf4* | osf5*) 15320 case $cc_basename in 15321 KCC*) 15322 # Kuck and Associates, Inc. (KAI) C++ Compiler 15323 15324 # KCC will only create a shared library if the output file 15325 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15326 # to its proper name (with version) after linking. 15327 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 15328 15329 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15330 hardcode_libdir_separator_CXX=: 15331 15332 # Archives containing C++ object files must be created using 15333 # the KAI C++ compiler. 15334 case $host in 15335 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15336 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15337 esac 15338 ;; 15339 RCC*) 15340 # Rational C++ 2.4.1 15341 # FIXME: insert proper C++ library support 15342 ld_shlibs_CXX=no 15343 ;; 15344 cxx*) 15345 case $host in 15346 osf3*) 15347 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15348 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15349 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15350 ;; 15351 *) 15352 allow_undefined_flag_CXX=' -expect_unresolved \*' 15353 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 15354 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15355 echo "-hidden">> $lib.exp~ 15356 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 15357 $RM $lib.exp' 15358 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15359 ;; 15360 esac 15361 15362 hardcode_libdir_separator_CXX=: 15363 15364 # Commands to make compiler produce verbose output that lists 15365 # what "hidden" libraries, object files and flags are used when 15366 # linking a shared library. 15367 # 15368 # There doesn't appear to be a way to prevent this compiler from 15369 # explicitly linking system object files so we need to strip them 15370 # from the output so that they don't get included in the library 15371 # dependencies. 15372 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 15373 ;; 15374 *) 15375 if test yes,no = "$GXX,$with_gnu_ld"; then 15376 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15377 case $host in 15378 osf3*) 15379 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 15380 ;; 15381 *) 15382 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 15383 ;; 15384 esac 15385 15386 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15387 hardcode_libdir_separator_CXX=: 15388 15389 # Commands to make compiler produce verbose output that lists 15390 # what "hidden" libraries, object files and flags are used when 15391 # linking a shared library. 15392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15393 15394 else 15395 # FIXME: insert proper C++ library support 15396 ld_shlibs_CXX=no 15397 fi 15398 ;; 15399 esac 15400 ;; 15401 15402 psos*) 15403 # FIXME: insert proper C++ library support 15404 ld_shlibs_CXX=no 15405 ;; 15406 15407 sunos4*) 15408 case $cc_basename in 15409 CC*) 15410 # Sun C++ 4.x 15411 # FIXME: insert proper C++ library support 15412 ld_shlibs_CXX=no 15413 ;; 15414 lcc*) 15415 # Lucid 15416 # FIXME: insert proper C++ library support 15417 ld_shlibs_CXX=no 15418 ;; 15419 *) 15420 # FIXME: insert proper C++ library support 15421 ld_shlibs_CXX=no 15422 ;; 15423 esac 15424 ;; 15425 15426 solaris*) 15427 case $cc_basename in 15428 CC* | sunCC*) 15429 # Sun C++ 4.2, 5.x and Centerline C++ 15430 archive_cmds_need_lc_CXX=yes 15431 no_undefined_flag_CXX=' -zdefs' 15432 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15433 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15434 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15435 15436 hardcode_libdir_flag_spec_CXX='-R$libdir' 15437 hardcode_shlibpath_var_CXX=no 15438 case $host_os in 15439 solaris2.[0-5] | solaris2.[0-5].*) ;; 15440 *) 15441 # The compiler driver will combine and reorder linker options, 15442 # but understands '-z linker_flag'. 15443 # Supported since Solaris 2.6 (maybe 2.5.1?) 15444 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15445 ;; 15446 esac 15447 link_all_deplibs_CXX=yes 15448 15449 output_verbose_link_cmd='func_echo_all' 15450 15451 # Archives containing C++ object files must be created using 15452 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15453 # necessary to make sure instantiated templates are included 15454 # in the archive. 15455 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15456 ;; 15457 gcx*) 15458 # Green Hills C++ Compiler 15459 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15460 15461 # The C++ compiler must be used to create the archive. 15462 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15463 ;; 15464 *) 15465 # GNU C++ compiler with Solaris linker 15466 if test yes,no = "$GXX,$with_gnu_ld"; then 15467 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15468 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15469 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15470 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15471 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15472 15473 # Commands to make compiler produce verbose output that lists 15474 # what "hidden" libraries, object files and flags are used when 15475 # linking a shared library. 15476 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15477 else 15478 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15479 # platform. 15480 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15481 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15482 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15483 15484 # Commands to make compiler produce verbose output that lists 15485 # what "hidden" libraries, object files and flags are used when 15486 # linking a shared library. 15487 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15488 fi 15489 15490 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15491 case $host_os in 15492 solaris2.[0-5] | solaris2.[0-5].*) ;; 15493 *) 15494 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15495 ;; 15496 esac 15497 fi 15498 ;; 15499 esac 15500 ;; 15501 15502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15503 no_undefined_flag_CXX='$wl-z,text' 15504 archive_cmds_need_lc_CXX=no 15505 hardcode_shlibpath_var_CXX=no 15506 runpath_var='LD_RUN_PATH' 15507 15508 case $cc_basename in 15509 CC*) 15510 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15511 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15512 ;; 15513 *) 15514 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15515 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15516 ;; 15517 esac 15518 ;; 15519 15520 sysv5* | sco3.2v5* | sco5v6*) 15521 # Note: We CANNOT use -z defs as we might desire, because we do not 15522 # link with -lc, and that would cause any symbols used from libc to 15523 # always be unresolved, which means just about no library would 15524 # ever link correctly. If we're not using GNU ld we use -z text 15525 # though, which does catch some bad symbols but isn't as heavy-handed 15526 # as -z defs. 15527 no_undefined_flag_CXX='$wl-z,text' 15528 allow_undefined_flag_CXX='$wl-z,nodefs' 15529 archive_cmds_need_lc_CXX=no 15530 hardcode_shlibpath_var_CXX=no 15531 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15532 hardcode_libdir_separator_CXX=':' 15533 link_all_deplibs_CXX=yes 15534 export_dynamic_flag_spec_CXX='$wl-Bexport' 15535 runpath_var='LD_RUN_PATH' 15536 15537 case $cc_basename in 15538 CC*) 15539 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15540 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15541 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15542 '"$old_archive_cmds_CXX" 15543 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15544 '"$reload_cmds_CXX" 15545 ;; 15546 *) 15547 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15548 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15549 ;; 15550 esac 15551 ;; 15552 15553 tandem*) 15554 case $cc_basename in 15555 NCC*) 15556 # NonStop-UX NCC 3.20 15557 # FIXME: insert proper C++ library support 15558 ld_shlibs_CXX=no 15559 ;; 15560 *) 15561 # FIXME: insert proper C++ library support 15562 ld_shlibs_CXX=no 15563 ;; 15564 esac 15565 ;; 15566 15567 vxworks*) 15568 # FIXME: insert proper C++ library support 15569 ld_shlibs_CXX=no 15570 ;; 15571 15572 *) 15573 # FIXME: insert proper C++ library support 15574 ld_shlibs_CXX=no 15575 ;; 15576 esac 15577 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15579$as_echo "$ld_shlibs_CXX" >&6; } 15580 test no = "$ld_shlibs_CXX" && can_build_shared=no 15581 15582 GCC_CXX=$GXX 15583 LD_CXX=$LD 15584 15585 ## CAVEAT EMPTOR: 15586 ## There is no encapsulation within the following macros, do not change 15587 ## the running order or otherwise move them around unless you know exactly 15588 ## what you are doing... 15589 # Dependencies to place before and after the object being linked: 15590predep_objects_CXX= 15591postdep_objects_CXX= 15592predeps_CXX= 15593postdeps_CXX= 15594compiler_lib_search_path_CXX= 15595 15596cat > conftest.$ac_ext <<_LT_EOF 15597class Foo 15598{ 15599public: 15600 Foo (void) { a = 0; } 15601private: 15602 int a; 15603}; 15604_LT_EOF 15605 15606 15607_lt_libdeps_save_CFLAGS=$CFLAGS 15608case "$CC $CFLAGS " in #( 15609*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15610*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15611*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15612esac 15613 15614if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15615 (eval $ac_compile) 2>&5 15616 ac_status=$? 15617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15618 test $ac_status = 0; }; then 15619 # Parse the compiler output and extract the necessary 15620 # objects, libraries and library flags. 15621 15622 # Sentinel used to keep track of whether or not we are before 15623 # the conftest object file. 15624 pre_test_object_deps_done=no 15625 15626 for p in `eval "$output_verbose_link_cmd"`; do 15627 case $prev$p in 15628 15629 -L* | -R* | -l*) 15630 # Some compilers place space between "-{L,R}" and the path. 15631 # Remove the space. 15632 if test x-L = "$p" || 15633 test x-R = "$p"; then 15634 prev=$p 15635 continue 15636 fi 15637 15638 # Expand the sysroot to ease extracting the directories later. 15639 if test -z "$prev"; then 15640 case $p in 15641 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15642 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15643 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15644 esac 15645 fi 15646 case $p in 15647 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15648 esac 15649 if test no = "$pre_test_object_deps_done"; then 15650 case $prev in 15651 -L | -R) 15652 # Internal compiler library paths should come after those 15653 # provided the user. The postdeps already come after the 15654 # user supplied libs so there is no need to process them. 15655 if test -z "$compiler_lib_search_path_CXX"; then 15656 compiler_lib_search_path_CXX=$prev$p 15657 else 15658 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15659 fi 15660 ;; 15661 # The "-l" case would never come before the object being 15662 # linked, so don't bother handling this case. 15663 esac 15664 else 15665 if test -z "$postdeps_CXX"; then 15666 postdeps_CXX=$prev$p 15667 else 15668 postdeps_CXX="${postdeps_CXX} $prev$p" 15669 fi 15670 fi 15671 prev= 15672 ;; 15673 15674 *.lto.$objext) ;; # Ignore GCC LTO objects 15675 *.$objext) 15676 # This assumes that the test object file only shows up 15677 # once in the compiler output. 15678 if test "$p" = "conftest.$objext"; then 15679 pre_test_object_deps_done=yes 15680 continue 15681 fi 15682 15683 if test no = "$pre_test_object_deps_done"; then 15684 if test -z "$predep_objects_CXX"; then 15685 predep_objects_CXX=$p 15686 else 15687 predep_objects_CXX="$predep_objects_CXX $p" 15688 fi 15689 else 15690 if test -z "$postdep_objects_CXX"; then 15691 postdep_objects_CXX=$p 15692 else 15693 postdep_objects_CXX="$postdep_objects_CXX $p" 15694 fi 15695 fi 15696 ;; 15697 15698 *) ;; # Ignore the rest. 15699 15700 esac 15701 done 15702 15703 # Clean up. 15704 rm -f a.out a.exe 15705else 15706 echo "libtool.m4: error: problem compiling CXX test program" 15707fi 15708 15709$RM -f confest.$objext 15710CFLAGS=$_lt_libdeps_save_CFLAGS 15711 15712# PORTME: override above test on systems where it is broken 15713case $host_os in 15714interix[3-9]*) 15715 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15716 # hack all around it, let's just trust "g++" to DTRT. 15717 predep_objects_CXX= 15718 postdep_objects_CXX= 15719 postdeps_CXX= 15720 ;; 15721esac 15722 15723 15724case " $postdeps_CXX " in 15725*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15726esac 15727 compiler_lib_search_dirs_CXX= 15728if test -n "${compiler_lib_search_path_CXX}"; then 15729 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15730fi 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 lt_prog_compiler_wl_CXX= 15763lt_prog_compiler_pic_CXX= 15764lt_prog_compiler_static_CXX= 15765 15766 15767 # C++ specific cases for pic, static, wl, etc. 15768 if test yes = "$GXX"; then 15769 lt_prog_compiler_wl_CXX='-Wl,' 15770 lt_prog_compiler_static_CXX='-static' 15771 15772 case $host_os in 15773 aix*) 15774 # All AIX code is PIC. 15775 if test ia64 = "$host_cpu"; then 15776 # AIX 5 now supports IA64 processor 15777 lt_prog_compiler_static_CXX='-Bstatic' 15778 fi 15779 lt_prog_compiler_pic_CXX='-fPIC' 15780 ;; 15781 15782 amigaos*) 15783 case $host_cpu in 15784 powerpc) 15785 # see comment about AmigaOS4 .so support 15786 lt_prog_compiler_pic_CXX='-fPIC' 15787 ;; 15788 m68k) 15789 # FIXME: we need at least 68020 code to build shared libraries, but 15790 # adding the '-m68020' flag to GCC prevents building anything better, 15791 # like '-m68040'. 15792 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15793 ;; 15794 esac 15795 ;; 15796 15797 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15798 # PIC is the default for these OSes. 15799 ;; 15800 mingw* | cygwin* | os2* | pw32* | cegcc*) 15801 # This hack is so that the source file can tell whether it is being 15802 # built for inclusion in a dll (and should export symbols for example). 15803 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15804 # (--disable-auto-import) libraries 15805 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15806 case $host_os in 15807 os2*) 15808 lt_prog_compiler_static_CXX='$wl-static' 15809 ;; 15810 esac 15811 ;; 15812 darwin* | rhapsody*) 15813 # PIC is the default on this platform 15814 # Common symbols not allowed in MH_DYLIB files 15815 lt_prog_compiler_pic_CXX='-fno-common' 15816 ;; 15817 *djgpp*) 15818 # DJGPP does not support shared libraries at all 15819 lt_prog_compiler_pic_CXX= 15820 ;; 15821 haiku*) 15822 # PIC is the default for Haiku. 15823 # The "-static" flag exists, but is broken. 15824 lt_prog_compiler_static_CXX= 15825 ;; 15826 interix[3-9]*) 15827 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15828 # Instead, we relocate shared libraries at runtime. 15829 ;; 15830 sysv4*MP*) 15831 if test -d /usr/nec; then 15832 lt_prog_compiler_pic_CXX=-Kconform_pic 15833 fi 15834 ;; 15835 hpux*) 15836 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15837 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15838 # sets the default TLS model and affects inlining. 15839 case $host_cpu in 15840 hppa*64*) 15841 ;; 15842 *) 15843 lt_prog_compiler_pic_CXX='-fPIC' 15844 ;; 15845 esac 15846 ;; 15847 *qnx* | *nto*) 15848 # QNX uses GNU C++, but need to define -shared option too, otherwise 15849 # it will coredump. 15850 lt_prog_compiler_pic_CXX='-fPIC -shared' 15851 ;; 15852 *) 15853 lt_prog_compiler_pic_CXX='-fPIC' 15854 ;; 15855 esac 15856 else 15857 case $host_os in 15858 aix[4-9]*) 15859 # All AIX code is PIC. 15860 if test ia64 = "$host_cpu"; then 15861 # AIX 5 now supports IA64 processor 15862 lt_prog_compiler_static_CXX='-Bstatic' 15863 else 15864 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15865 fi 15866 ;; 15867 chorus*) 15868 case $cc_basename in 15869 cxch68*) 15870 # Green Hills C++ Compiler 15871 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15872 ;; 15873 esac 15874 ;; 15875 mingw* | cygwin* | os2* | pw32* | cegcc*) 15876 # This hack is so that the source file can tell whether it is being 15877 # built for inclusion in a dll (and should export symbols for example). 15878 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15879 ;; 15880 dgux*) 15881 case $cc_basename in 15882 ec++*) 15883 lt_prog_compiler_pic_CXX='-KPIC' 15884 ;; 15885 ghcx*) 15886 # Green Hills C++ Compiler 15887 lt_prog_compiler_pic_CXX='-pic' 15888 ;; 15889 *) 15890 ;; 15891 esac 15892 ;; 15893 freebsd* | dragonfly*) 15894 # FreeBSD uses GNU C++ 15895 ;; 15896 hpux9* | hpux10* | hpux11*) 15897 case $cc_basename in 15898 CC*) 15899 lt_prog_compiler_wl_CXX='-Wl,' 15900 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15901 if test ia64 != "$host_cpu"; then 15902 lt_prog_compiler_pic_CXX='+Z' 15903 fi 15904 ;; 15905 aCC*) 15906 lt_prog_compiler_wl_CXX='-Wl,' 15907 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15908 case $host_cpu in 15909 hppa*64*|ia64*) 15910 # +Z the default 15911 ;; 15912 *) 15913 lt_prog_compiler_pic_CXX='+Z' 15914 ;; 15915 esac 15916 ;; 15917 *) 15918 ;; 15919 esac 15920 ;; 15921 interix*) 15922 # This is c89, which is MS Visual C++ (no shared libs) 15923 # Anyone wants to do a port? 15924 ;; 15925 irix5* | irix6* | nonstopux*) 15926 case $cc_basename in 15927 CC*) 15928 lt_prog_compiler_wl_CXX='-Wl,' 15929 lt_prog_compiler_static_CXX='-non_shared' 15930 # CC pic flag -KPIC is the default. 15931 ;; 15932 *) 15933 ;; 15934 esac 15935 ;; 15936 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15937 case $cc_basename in 15938 KCC*) 15939 # KAI C++ Compiler 15940 lt_prog_compiler_wl_CXX='--backend -Wl,' 15941 lt_prog_compiler_pic_CXX='-fPIC' 15942 ;; 15943 ecpc* ) 15944 # old Intel C++ for x86_64, which still supported -KPIC. 15945 lt_prog_compiler_wl_CXX='-Wl,' 15946 lt_prog_compiler_pic_CXX='-KPIC' 15947 lt_prog_compiler_static_CXX='-static' 15948 ;; 15949 icpc* ) 15950 # Intel C++, used to be incompatible with GCC. 15951 # ICC 10 doesn't accept -KPIC any more. 15952 lt_prog_compiler_wl_CXX='-Wl,' 15953 lt_prog_compiler_pic_CXX='-fPIC' 15954 lt_prog_compiler_static_CXX='-static' 15955 ;; 15956 pgCC* | pgcpp*) 15957 # Portland Group C++ compiler 15958 lt_prog_compiler_wl_CXX='-Wl,' 15959 lt_prog_compiler_pic_CXX='-fpic' 15960 lt_prog_compiler_static_CXX='-Bstatic' 15961 ;; 15962 cxx*) 15963 # Compaq C++ 15964 # Make sure the PIC flag is empty. It appears that all Alpha 15965 # Linux and Compaq Tru64 Unix objects are PIC. 15966 lt_prog_compiler_pic_CXX= 15967 lt_prog_compiler_static_CXX='-non_shared' 15968 ;; 15969 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15970 # IBM XL 8.0, 9.0 on PPC and BlueGene 15971 lt_prog_compiler_wl_CXX='-Wl,' 15972 lt_prog_compiler_pic_CXX='-qpic' 15973 lt_prog_compiler_static_CXX='-qstaticlink' 15974 ;; 15975 *) 15976 case `$CC -V 2>&1 | sed 5q` in 15977 *Sun\ C*) 15978 # Sun C++ 5.9 15979 lt_prog_compiler_pic_CXX='-KPIC' 15980 lt_prog_compiler_static_CXX='-Bstatic' 15981 lt_prog_compiler_wl_CXX='-Qoption ld ' 15982 ;; 15983 esac 15984 ;; 15985 esac 15986 ;; 15987 lynxos*) 15988 ;; 15989 m88k*) 15990 ;; 15991 mvs*) 15992 case $cc_basename in 15993 cxx*) 15994 lt_prog_compiler_pic_CXX='-W c,exportall' 15995 ;; 15996 *) 15997 ;; 15998 esac 15999 ;; 16000 netbsd*) 16001 ;; 16002 *qnx* | *nto*) 16003 # QNX uses GNU C++, but need to define -shared option too, otherwise 16004 # it will coredump. 16005 lt_prog_compiler_pic_CXX='-fPIC -shared' 16006 ;; 16007 osf3* | osf4* | osf5*) 16008 case $cc_basename in 16009 KCC*) 16010 lt_prog_compiler_wl_CXX='--backend -Wl,' 16011 ;; 16012 RCC*) 16013 # Rational C++ 2.4.1 16014 lt_prog_compiler_pic_CXX='-pic' 16015 ;; 16016 cxx*) 16017 # Digital/Compaq C++ 16018 lt_prog_compiler_wl_CXX='-Wl,' 16019 # Make sure the PIC flag is empty. It appears that all Alpha 16020 # Linux and Compaq Tru64 Unix objects are PIC. 16021 lt_prog_compiler_pic_CXX= 16022 lt_prog_compiler_static_CXX='-non_shared' 16023 ;; 16024 *) 16025 ;; 16026 esac 16027 ;; 16028 psos*) 16029 ;; 16030 solaris*) 16031 case $cc_basename in 16032 CC* | sunCC*) 16033 # Sun C++ 4.2, 5.x and Centerline C++ 16034 lt_prog_compiler_pic_CXX='-KPIC' 16035 lt_prog_compiler_static_CXX='-Bstatic' 16036 lt_prog_compiler_wl_CXX='-Qoption ld ' 16037 ;; 16038 gcx*) 16039 # Green Hills C++ Compiler 16040 lt_prog_compiler_pic_CXX='-PIC' 16041 ;; 16042 *) 16043 ;; 16044 esac 16045 ;; 16046 sunos4*) 16047 case $cc_basename in 16048 CC*) 16049 # Sun C++ 4.x 16050 lt_prog_compiler_pic_CXX='-pic' 16051 lt_prog_compiler_static_CXX='-Bstatic' 16052 ;; 16053 lcc*) 16054 # Lucid 16055 lt_prog_compiler_pic_CXX='-pic' 16056 ;; 16057 *) 16058 ;; 16059 esac 16060 ;; 16061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16062 case $cc_basename in 16063 CC*) 16064 lt_prog_compiler_wl_CXX='-Wl,' 16065 lt_prog_compiler_pic_CXX='-KPIC' 16066 lt_prog_compiler_static_CXX='-Bstatic' 16067 ;; 16068 esac 16069 ;; 16070 tandem*) 16071 case $cc_basename in 16072 NCC*) 16073 # NonStop-UX NCC 3.20 16074 lt_prog_compiler_pic_CXX='-KPIC' 16075 ;; 16076 *) 16077 ;; 16078 esac 16079 ;; 16080 vxworks*) 16081 ;; 16082 *) 16083 lt_prog_compiler_can_build_shared_CXX=no 16084 ;; 16085 esac 16086 fi 16087 16088case $host_os in 16089 # For platforms that do not support PIC, -DPIC is meaningless: 16090 *djgpp*) 16091 lt_prog_compiler_pic_CXX= 16092 ;; 16093 *) 16094 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16095 ;; 16096esac 16097 16098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16099$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16100if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16101 $as_echo_n "(cached) " >&6 16102else 16103 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16104fi 16105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16106$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16107lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16108 16109# 16110# Check to make sure the PIC flag actually works. 16111# 16112if test -n "$lt_prog_compiler_pic_CXX"; then 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16114$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16115if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16116 $as_echo_n "(cached) " >&6 16117else 16118 lt_cv_prog_compiler_pic_works_CXX=no 16119 ac_outfile=conftest.$ac_objext 16120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16121 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 16122 # Insert the option either (1) after the last *FLAGS variable, or 16123 # (2) before a word containing "conftest.", or (3) at the end. 16124 # Note that $ac_compile itself does not contain backslashes and begins 16125 # with a dollar sign (not a hyphen), so the echo should work correctly. 16126 # The option is referenced via a variable to avoid confusing sed. 16127 lt_compile=`echo "$ac_compile" | $SED \ 16128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16130 -e 's:$: $lt_compiler_flag:'` 16131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16132 (eval "$lt_compile" 2>conftest.err) 16133 ac_status=$? 16134 cat conftest.err >&5 16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16136 if (exit $ac_status) && test -s "$ac_outfile"; then 16137 # The compiler can only warn and ignore the option if not recognized 16138 # So say no if there are warnings other than the usual output. 16139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16142 lt_cv_prog_compiler_pic_works_CXX=yes 16143 fi 16144 fi 16145 $RM conftest* 16146 16147fi 16148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16149$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16150 16151if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16152 case $lt_prog_compiler_pic_CXX in 16153 "" | " "*) ;; 16154 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16155 esac 16156else 16157 lt_prog_compiler_pic_CXX= 16158 lt_prog_compiler_can_build_shared_CXX=no 16159fi 16160 16161fi 16162 16163 16164 16165 16166 16167# 16168# Check to make sure the static flag actually works. 16169# 16170wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16172$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16173if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16174 $as_echo_n "(cached) " >&6 16175else 16176 lt_cv_prog_compiler_static_works_CXX=no 16177 save_LDFLAGS=$LDFLAGS 16178 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16179 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16181 # The linker can only warn and ignore the option if not recognized 16182 # So say no if there are warnings 16183 if test -s conftest.err; then 16184 # Append any errors to the config.log. 16185 cat conftest.err 1>&5 16186 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16188 if diff conftest.exp conftest.er2 >/dev/null; then 16189 lt_cv_prog_compiler_static_works_CXX=yes 16190 fi 16191 else 16192 lt_cv_prog_compiler_static_works_CXX=yes 16193 fi 16194 fi 16195 $RM -r conftest* 16196 LDFLAGS=$save_LDFLAGS 16197 16198fi 16199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16200$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16201 16202if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16203 : 16204else 16205 lt_prog_compiler_static_CXX= 16206fi 16207 16208 16209 16210 16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16212$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16213if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16214 $as_echo_n "(cached) " >&6 16215else 16216 lt_cv_prog_compiler_c_o_CXX=no 16217 $RM -r conftest 2>/dev/null 16218 mkdir conftest 16219 cd conftest 16220 mkdir out 16221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16222 16223 lt_compiler_flag="-o out/conftest2.$ac_objext" 16224 # Insert the option either (1) after the last *FLAGS variable, or 16225 # (2) before a word containing "conftest.", or (3) at the end. 16226 # Note that $ac_compile itself does not contain backslashes and begins 16227 # with a dollar sign (not a hyphen), so the echo should work correctly. 16228 lt_compile=`echo "$ac_compile" | $SED \ 16229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16231 -e 's:$: $lt_compiler_flag:'` 16232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16233 (eval "$lt_compile" 2>out/conftest.err) 16234 ac_status=$? 16235 cat out/conftest.err >&5 16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16237 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16238 then 16239 # The compiler can only warn and ignore the option if not recognized 16240 # So say no if there are warnings 16241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16244 lt_cv_prog_compiler_c_o_CXX=yes 16245 fi 16246 fi 16247 chmod u+w . 2>&5 16248 $RM conftest* 16249 # SGI C++ compiler will create directory out/ii_files/ for 16250 # template instantiation 16251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16252 $RM out/* && rmdir out 16253 cd .. 16254 $RM -r conftest 16255 $RM conftest* 16256 16257fi 16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16259$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16260 16261 16262 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16264$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16265if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16266 $as_echo_n "(cached) " >&6 16267else 16268 lt_cv_prog_compiler_c_o_CXX=no 16269 $RM -r conftest 2>/dev/null 16270 mkdir conftest 16271 cd conftest 16272 mkdir out 16273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16274 16275 lt_compiler_flag="-o out/conftest2.$ac_objext" 16276 # Insert the option either (1) after the last *FLAGS variable, or 16277 # (2) before a word containing "conftest.", or (3) at the end. 16278 # Note that $ac_compile itself does not contain backslashes and begins 16279 # with a dollar sign (not a hyphen), so the echo should work correctly. 16280 lt_compile=`echo "$ac_compile" | $SED \ 16281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16283 -e 's:$: $lt_compiler_flag:'` 16284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16285 (eval "$lt_compile" 2>out/conftest.err) 16286 ac_status=$? 16287 cat out/conftest.err >&5 16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16289 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16290 then 16291 # The compiler can only warn and ignore the option if not recognized 16292 # So say no if there are warnings 16293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16296 lt_cv_prog_compiler_c_o_CXX=yes 16297 fi 16298 fi 16299 chmod u+w . 2>&5 16300 $RM conftest* 16301 # SGI C++ compiler will create directory out/ii_files/ for 16302 # template instantiation 16303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16304 $RM out/* && rmdir out 16305 cd .. 16306 $RM -r conftest 16307 $RM conftest* 16308 16309fi 16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16311$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16312 16313 16314 16315 16316hard_links=nottested 16317if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16318 # do not overwrite the value of need_locks provided by the user 16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16320$as_echo_n "checking if we can lock with hard links... " >&6; } 16321 hard_links=yes 16322 $RM conftest* 16323 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16324 touch conftest.a 16325 ln conftest.a conftest.b 2>&5 || hard_links=no 16326 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16328$as_echo "$hard_links" >&6; } 16329 if test no = "$hard_links"; then 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16331$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16332 need_locks=warn 16333 fi 16334else 16335 need_locks=no 16336fi 16337 16338 16339 16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16341$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16342 16343 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16344 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16345 case $host_os in 16346 aix[4-9]*) 16347 # If we're using GNU nm, then we don't want the "-C" option. 16348 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16349 # Without the "-l" option, or with the "-B" option, AIX nm treats 16350 # weak defined symbols like other global defined symbols, whereas 16351 # GNU nm marks them as "W". 16352 # While the 'weak' keyword is ignored in the Export File, we need 16353 # it in the Import File for the 'aix-soname' feature, so we have 16354 # to replace the "-B" option with "-P" for AIX nm. 16355 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16356 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16357 else 16358 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16359 fi 16360 ;; 16361 pw32*) 16362 export_symbols_cmds_CXX=$ltdll_cmds 16363 ;; 16364 cygwin* | mingw* | cegcc*) 16365 case $cc_basename in 16366 cl* | icl*) 16367 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16368 ;; 16369 *) 16370 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16371 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16372 ;; 16373 esac 16374 ;; 16375 *) 16376 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16377 ;; 16378 esac 16379 16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16381$as_echo "$ld_shlibs_CXX" >&6; } 16382test no = "$ld_shlibs_CXX" && can_build_shared=no 16383 16384with_gnu_ld_CXX=$with_gnu_ld 16385 16386 16387 16388 16389 16390 16391# 16392# Do we need to explicitly link libc? 16393# 16394case "x$archive_cmds_need_lc_CXX" in 16395x|xyes) 16396 # Assume -lc should be added 16397 archive_cmds_need_lc_CXX=yes 16398 16399 if test yes,yes = "$GCC,$enable_shared"; then 16400 case $archive_cmds_CXX in 16401 *'~'*) 16402 # FIXME: we may have to deal with multi-command sequences. 16403 ;; 16404 '$CC '*) 16405 # Test whether the compiler implicitly links with -lc since on some 16406 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16407 # to ld, don't add -lc before -lgcc. 16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16409$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16410if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16411 $as_echo_n "(cached) " >&6 16412else 16413 $RM conftest* 16414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16415 16416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16417 (eval $ac_compile) 2>&5 16418 ac_status=$? 16419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16420 test $ac_status = 0; } 2>conftest.err; then 16421 soname=conftest 16422 lib=conftest 16423 libobjs=conftest.$ac_objext 16424 deplibs= 16425 wl=$lt_prog_compiler_wl_CXX 16426 pic_flag=$lt_prog_compiler_pic_CXX 16427 compiler_flags=-v 16428 linker_flags=-v 16429 verstring= 16430 output_objdir=. 16431 libname=conftest 16432 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16433 allow_undefined_flag_CXX= 16434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16435 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16436 ac_status=$? 16437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16438 test $ac_status = 0; } 16439 then 16440 lt_cv_archive_cmds_need_lc_CXX=no 16441 else 16442 lt_cv_archive_cmds_need_lc_CXX=yes 16443 fi 16444 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16445 else 16446 cat conftest.err 1>&5 16447 fi 16448 $RM conftest* 16449 16450fi 16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16452$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16453 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16454 ;; 16455 esac 16456 fi 16457 ;; 16458esac 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16522$as_echo_n "checking dynamic linker characteristics... " >&6; } 16523 16524library_names_spec= 16525libname_spec='lib$name' 16526soname_spec= 16527shrext_cmds=.so 16528postinstall_cmds= 16529postuninstall_cmds= 16530finish_cmds= 16531finish_eval= 16532shlibpath_var= 16533shlibpath_overrides_runpath=unknown 16534version_type=none 16535dynamic_linker="$host_os ld.so" 16536sys_lib_dlsearch_path_spec="/lib /usr/lib" 16537need_lib_prefix=unknown 16538hardcode_into_libs=no 16539 16540# when you set need_version to no, make sure it does not cause -set_version 16541# flags to be left without arguments 16542need_version=unknown 16543 16544 16545 16546case $host_os in 16547aix3*) 16548 version_type=linux # correct to gnu/linux during the next big refactor 16549 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16550 shlibpath_var=LIBPATH 16551 16552 # AIX 3 has no versioning support, so we append a major version to the name. 16553 soname_spec='$libname$release$shared_ext$major' 16554 ;; 16555 16556aix[4-9]*) 16557 version_type=linux # correct to gnu/linux during the next big refactor 16558 need_lib_prefix=no 16559 need_version=no 16560 hardcode_into_libs=yes 16561 if test ia64 = "$host_cpu"; then 16562 # AIX 5 supports IA64 16563 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16564 shlibpath_var=LD_LIBRARY_PATH 16565 else 16566 # With GCC up to 2.95.x, collect2 would create an import file 16567 # for dependence libraries. The import file would start with 16568 # the line '#! .'. This would cause the generated library to 16569 # depend on '.', always an invalid library. This was fixed in 16570 # development snapshots of GCC prior to 3.0. 16571 case $host_os in 16572 aix4 | aix4.[01] | aix4.[01].*) 16573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16574 echo ' yes ' 16575 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16576 : 16577 else 16578 can_build_shared=no 16579 fi 16580 ;; 16581 esac 16582 # Using Import Files as archive members, it is possible to support 16583 # filename-based versioning of shared library archives on AIX. While 16584 # this would work for both with and without runtime linking, it will 16585 # prevent static linking of such archives. So we do filename-based 16586 # shared library versioning with .so extension only, which is used 16587 # when both runtime linking and shared linking is enabled. 16588 # Unfortunately, runtime linking may impact performance, so we do 16589 # not want this to be the default eventually. Also, we use the 16590 # versioned .so libs for executables only if there is the -brtl 16591 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16592 # To allow for filename-based versioning support, we need to create 16593 # libNAME.so.V as an archive file, containing: 16594 # *) an Import File, referring to the versioned filename of the 16595 # archive as well as the shared archive member, telling the 16596 # bitwidth (32 or 64) of that shared object, and providing the 16597 # list of exported symbols of that shared object, eventually 16598 # decorated with the 'weak' keyword 16599 # *) the shared object with the F_LOADONLY flag set, to really avoid 16600 # it being seen by the linker. 16601 # At run time we better use the real file rather than another symlink, 16602 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16603 16604 case $with_aix_soname,$aix_use_runtimelinking in 16605 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16606 # soname into executable. Probably we can add versioning support to 16607 # collect2, so additional links can be useful in future. 16608 aix,yes) # traditional libtool 16609 dynamic_linker='AIX unversionable lib.so' 16610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16611 # instead of lib<name>.a to let people know that these are not 16612 # typical AIX shared libraries. 16613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16614 ;; 16615 aix,no) # traditional AIX only 16616 dynamic_linker='AIX lib.a(lib.so.V)' 16617 # We preserve .a as extension for shared libraries through AIX4.2 16618 # and later when we are not doing run time linking. 16619 library_names_spec='$libname$release.a $libname.a' 16620 soname_spec='$libname$release$shared_ext$major' 16621 ;; 16622 svr4,*) # full svr4 only 16623 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16624 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16625 # We do not specify a path in Import Files, so LIBPATH fires. 16626 shlibpath_overrides_runpath=yes 16627 ;; 16628 *,yes) # both, prefer svr4 16629 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16630 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16631 # unpreferred sharedlib libNAME.a needs extra handling 16632 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16633 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16634 # We do not specify a path in Import Files, so LIBPATH fires. 16635 shlibpath_overrides_runpath=yes 16636 ;; 16637 *,no) # both, prefer aix 16638 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16639 library_names_spec='$libname$release.a $libname.a' 16640 soname_spec='$libname$release$shared_ext$major' 16641 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16642 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16643 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16644 ;; 16645 esac 16646 shlibpath_var=LIBPATH 16647 fi 16648 ;; 16649 16650amigaos*) 16651 case $host_cpu in 16652 powerpc) 16653 # Since July 2007 AmigaOS4 officially supports .so libraries. 16654 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16656 ;; 16657 m68k) 16658 library_names_spec='$libname.ixlibrary $libname.a' 16659 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16660 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16661 ;; 16662 esac 16663 ;; 16664 16665beos*) 16666 library_names_spec='$libname$shared_ext' 16667 dynamic_linker="$host_os ld.so" 16668 shlibpath_var=LIBRARY_PATH 16669 ;; 16670 16671bsdi[45]*) 16672 version_type=linux # correct to gnu/linux during the next big refactor 16673 need_version=no 16674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16675 soname_spec='$libname$release$shared_ext$major' 16676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16677 shlibpath_var=LD_LIBRARY_PATH 16678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16680 # the default ld.so.conf also contains /usr/contrib/lib and 16681 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16682 # libtool to hard-code these into programs 16683 ;; 16684 16685cygwin* | mingw* | pw32* | cegcc*) 16686 version_type=windows 16687 shrext_cmds=.dll 16688 need_version=no 16689 need_lib_prefix=no 16690 16691 case $GCC,$cc_basename in 16692 yes,*) 16693 # gcc 16694 library_names_spec='$libname.dll.a' 16695 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16696 postinstall_cmds='base_file=`basename \$file`~ 16697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16698 dldir=$destdir/`dirname \$dlpath`~ 16699 test -d \$dldir || mkdir -p \$dldir~ 16700 $install_prog $dir/$dlname \$dldir/$dlname~ 16701 chmod a+x \$dldir/$dlname~ 16702 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16703 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16704 fi' 16705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16706 dlpath=$dir/\$dldll~ 16707 $RM \$dlpath' 16708 shlibpath_overrides_runpath=yes 16709 16710 case $host_os in 16711 cygwin*) 16712 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16713 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16714 16715 ;; 16716 mingw* | cegcc*) 16717 # MinGW DLLs use traditional 'lib' prefix 16718 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16719 ;; 16720 pw32*) 16721 # pw32 DLLs use 'pw' prefix rather than 'lib' 16722 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16723 ;; 16724 esac 16725 dynamic_linker='Win32 ld.exe' 16726 ;; 16727 16728 *,cl* | *,icl*) 16729 # Native MSVC or ICC 16730 libname_spec='$name' 16731 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16732 library_names_spec='$libname.dll.lib' 16733 16734 case $build_os in 16735 mingw*) 16736 sys_lib_search_path_spec= 16737 lt_save_ifs=$IFS 16738 IFS=';' 16739 for lt_path in $LIB 16740 do 16741 IFS=$lt_save_ifs 16742 # Let DOS variable expansion print the short 8.3 style file name. 16743 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16744 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16745 done 16746 IFS=$lt_save_ifs 16747 # Convert to MSYS style. 16748 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16749 ;; 16750 cygwin*) 16751 # Convert to unix form, then to dos form, then back to unix form 16752 # but this time dos style (no spaces!) so that the unix form looks 16753 # like /cygdrive/c/PROGRA~1:/cygdr... 16754 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16755 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16756 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16757 ;; 16758 *) 16759 sys_lib_search_path_spec=$LIB 16760 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16761 # It is most probably a Windows format PATH. 16762 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16763 else 16764 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16765 fi 16766 # FIXME: find the short name or the path components, as spaces are 16767 # common. (e.g. "Program Files" -> "PROGRA~1") 16768 ;; 16769 esac 16770 16771 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16772 postinstall_cmds='base_file=`basename \$file`~ 16773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16774 dldir=$destdir/`dirname \$dlpath`~ 16775 test -d \$dldir || mkdir -p \$dldir~ 16776 $install_prog $dir/$dlname \$dldir/$dlname' 16777 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16778 dlpath=$dir/\$dldll~ 16779 $RM \$dlpath' 16780 shlibpath_overrides_runpath=yes 16781 dynamic_linker='Win32 link.exe' 16782 ;; 16783 16784 *) 16785 # Assume MSVC and ICC wrapper 16786 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16787 dynamic_linker='Win32 ld.exe' 16788 ;; 16789 esac 16790 # FIXME: first we should search . and the directory the executable is in 16791 shlibpath_var=PATH 16792 ;; 16793 16794darwin* | rhapsody*) 16795 dynamic_linker="$host_os dyld" 16796 version_type=darwin 16797 need_lib_prefix=no 16798 need_version=no 16799 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16800 soname_spec='$libname$release$major$shared_ext' 16801 shlibpath_overrides_runpath=yes 16802 shlibpath_var=DYLD_LIBRARY_PATH 16803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16804 16805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16806 ;; 16807 16808dgux*) 16809 version_type=linux # correct to gnu/linux during the next big refactor 16810 need_lib_prefix=no 16811 need_version=no 16812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16813 soname_spec='$libname$release$shared_ext$major' 16814 shlibpath_var=LD_LIBRARY_PATH 16815 ;; 16816 16817freebsd* | dragonfly*) 16818 # DragonFly does not have aout. When/if they implement a new 16819 # versioning mechanism, adjust this. 16820 if test -x /usr/bin/objformat; then 16821 objformat=`/usr/bin/objformat` 16822 else 16823 case $host_os in 16824 freebsd[23].*) objformat=aout ;; 16825 *) objformat=elf ;; 16826 esac 16827 fi 16828 version_type=freebsd-$objformat 16829 case $version_type in 16830 freebsd-elf*) 16831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16832 soname_spec='$libname$release$shared_ext$major' 16833 need_version=no 16834 need_lib_prefix=no 16835 ;; 16836 freebsd-*) 16837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16838 need_version=yes 16839 ;; 16840 esac 16841 shlibpath_var=LD_LIBRARY_PATH 16842 case $host_os in 16843 freebsd2.*) 16844 shlibpath_overrides_runpath=yes 16845 ;; 16846 freebsd3.[01]* | freebsdelf3.[01]*) 16847 shlibpath_overrides_runpath=yes 16848 hardcode_into_libs=yes 16849 ;; 16850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16852 shlibpath_overrides_runpath=no 16853 hardcode_into_libs=yes 16854 ;; 16855 *) # from 4.6 on, and DragonFly 16856 shlibpath_overrides_runpath=yes 16857 hardcode_into_libs=yes 16858 ;; 16859 esac 16860 ;; 16861 16862haiku*) 16863 version_type=linux # correct to gnu/linux during the next big refactor 16864 need_lib_prefix=no 16865 need_version=no 16866 dynamic_linker="$host_os runtime_loader" 16867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16868 soname_spec='$libname$release$shared_ext$major' 16869 shlibpath_var=LIBRARY_PATH 16870 shlibpath_overrides_runpath=no 16871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16872 hardcode_into_libs=yes 16873 ;; 16874 16875hpux9* | hpux10* | hpux11*) 16876 # Give a soname corresponding to the major version so that dld.sl refuses to 16877 # link against other versions. 16878 version_type=sunos 16879 need_lib_prefix=no 16880 need_version=no 16881 case $host_cpu in 16882 ia64*) 16883 shrext_cmds='.so' 16884 hardcode_into_libs=yes 16885 dynamic_linker="$host_os dld.so" 16886 shlibpath_var=LD_LIBRARY_PATH 16887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16889 soname_spec='$libname$release$shared_ext$major' 16890 if test 32 = "$HPUX_IA64_MODE"; then 16891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16892 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16893 else 16894 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16895 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16896 fi 16897 ;; 16898 hppa*64*) 16899 shrext_cmds='.sl' 16900 hardcode_into_libs=yes 16901 dynamic_linker="$host_os dld.sl" 16902 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16905 soname_spec='$libname$release$shared_ext$major' 16906 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16908 ;; 16909 *) 16910 shrext_cmds='.sl' 16911 dynamic_linker="$host_os dld.sl" 16912 shlibpath_var=SHLIB_PATH 16913 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16915 soname_spec='$libname$release$shared_ext$major' 16916 ;; 16917 esac 16918 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16919 postinstall_cmds='chmod 555 $lib' 16920 # or fails outright, so override atomically: 16921 install_override_mode=555 16922 ;; 16923 16924interix[3-9]*) 16925 version_type=linux # correct to gnu/linux during the next big refactor 16926 need_lib_prefix=no 16927 need_version=no 16928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16929 soname_spec='$libname$release$shared_ext$major' 16930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16931 shlibpath_var=LD_LIBRARY_PATH 16932 shlibpath_overrides_runpath=no 16933 hardcode_into_libs=yes 16934 ;; 16935 16936irix5* | irix6* | nonstopux*) 16937 case $host_os in 16938 nonstopux*) version_type=nonstopux ;; 16939 *) 16940 if test yes = "$lt_cv_prog_gnu_ld"; then 16941 version_type=linux # correct to gnu/linux during the next big refactor 16942 else 16943 version_type=irix 16944 fi ;; 16945 esac 16946 need_lib_prefix=no 16947 need_version=no 16948 soname_spec='$libname$release$shared_ext$major' 16949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16950 case $host_os in 16951 irix5* | nonstopux*) 16952 libsuff= shlibsuff= 16953 ;; 16954 *) 16955 case $LD in # libtool.m4 will add one of these switches to LD 16956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16957 libsuff= shlibsuff= libmagic=32-bit;; 16958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16959 libsuff=32 shlibsuff=N32 libmagic=N32;; 16960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16961 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16962 *) libsuff= shlibsuff= libmagic=never-match;; 16963 esac 16964 ;; 16965 esac 16966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16967 shlibpath_overrides_runpath=no 16968 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16969 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16970 hardcode_into_libs=yes 16971 ;; 16972 16973# No shared lib support for Linux oldld, aout, or coff. 16974linux*oldld* | linux*aout* | linux*coff*) 16975 dynamic_linker=no 16976 ;; 16977 16978linux*android*) 16979 version_type=none # Android doesn't support versioned libraries. 16980 need_lib_prefix=no 16981 need_version=no 16982 library_names_spec='$libname$release$shared_ext' 16983 soname_spec='$libname$release$shared_ext' 16984 finish_cmds= 16985 shlibpath_var=LD_LIBRARY_PATH 16986 shlibpath_overrides_runpath=yes 16987 16988 # This implies no fast_install, which is unacceptable. 16989 # Some rework will be needed to allow for fast_install 16990 # before this can be enabled. 16991 hardcode_into_libs=yes 16992 16993 dynamic_linker='Android linker' 16994 # Don't embed -rpath directories since the linker doesn't support them. 16995 hardcode_libdir_flag_spec_CXX='-L$libdir' 16996 ;; 16997 16998# This must be glibc/ELF. 16999linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17000 version_type=linux # correct to gnu/linux during the next big refactor 17001 need_lib_prefix=no 17002 need_version=no 17003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17004 soname_spec='$libname$release$shared_ext$major' 17005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17006 shlibpath_var=LD_LIBRARY_PATH 17007 shlibpath_overrides_runpath=no 17008 17009 # Some binutils ld are patched to set DT_RUNPATH 17010 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17011 $as_echo_n "(cached) " >&6 17012else 17013 lt_cv_shlibpath_overrides_runpath=no 17014 save_LDFLAGS=$LDFLAGS 17015 save_libdir=$libdir 17016 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17017 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17019/* end confdefs.h. */ 17020 17021int 17022main () 17023{ 17024 17025 ; 17026 return 0; 17027} 17028_ACEOF 17029if ac_fn_cxx_try_link "$LINENO"; then : 17030 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17031 lt_cv_shlibpath_overrides_runpath=yes 17032fi 17033fi 17034rm -f core conftest.err conftest.$ac_objext \ 17035 conftest$ac_exeext conftest.$ac_ext 17036 LDFLAGS=$save_LDFLAGS 17037 libdir=$save_libdir 17038 17039fi 17040 17041 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17042 17043 # This implies no fast_install, which is unacceptable. 17044 # Some rework will be needed to allow for fast_install 17045 # before this can be enabled. 17046 hardcode_into_libs=yes 17047 17048 # Ideally, we could use ldconfig to report *all* directores which are 17049 # searched for libraries, however this is still not possible. Aside from not 17050 # being certain /sbin/ldconfig is available, command 17051 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17052 # even though it is searched at run-time. Try to do the best guess by 17053 # appending ld.so.conf contents (and includes) to the search path. 17054 if test -f /etc/ld.so.conf; then 17055 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' ' '` 17056 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17057 fi 17058 17059 # We used to test for /lib/ld.so.1 and disable shared libraries on 17060 # powerpc, because MkLinux only supported shared libraries with the 17061 # GNU dynamic linker. Since this was broken with cross compilers, 17062 # most powerpc-linux boxes support dynamic linking these days and 17063 # people can always --disable-shared, the test was removed, and we 17064 # assume the GNU/Linux dynamic linker is in use. 17065 dynamic_linker='GNU/Linux ld.so' 17066 ;; 17067 17068netbsd*) 17069 version_type=sunos 17070 need_lib_prefix=no 17071 need_version=no 17072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17075 dynamic_linker='NetBSD (a.out) ld.so' 17076 else 17077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17078 soname_spec='$libname$release$shared_ext$major' 17079 dynamic_linker='NetBSD ld.elf_so' 17080 fi 17081 shlibpath_var=LD_LIBRARY_PATH 17082 shlibpath_overrides_runpath=yes 17083 hardcode_into_libs=yes 17084 ;; 17085 17086newsos6) 17087 version_type=linux # correct to gnu/linux during the next big refactor 17088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17089 shlibpath_var=LD_LIBRARY_PATH 17090 shlibpath_overrides_runpath=yes 17091 ;; 17092 17093*nto* | *qnx*) 17094 version_type=qnx 17095 need_lib_prefix=no 17096 need_version=no 17097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17098 soname_spec='$libname$release$shared_ext$major' 17099 shlibpath_var=LD_LIBRARY_PATH 17100 shlibpath_overrides_runpath=no 17101 hardcode_into_libs=yes 17102 dynamic_linker='ldqnx.so' 17103 ;; 17104 17105openbsd* | bitrig*) 17106 version_type=sunos 17107 sys_lib_dlsearch_path_spec=/usr/lib 17108 need_lib_prefix=no 17109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17110 need_version=no 17111 else 17112 need_version=yes 17113 fi 17114 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17116 shlibpath_var=LD_LIBRARY_PATH 17117 shlibpath_overrides_runpath=yes 17118 ;; 17119 17120os2*) 17121 libname_spec='$name' 17122 version_type=windows 17123 shrext_cmds=.dll 17124 need_version=no 17125 need_lib_prefix=no 17126 # OS/2 can only load a DLL with a base name of 8 characters or less. 17127 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17128 v=$($ECHO $release$versuffix | tr -d .-); 17129 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17130 $ECHO $n$v`$shared_ext' 17131 library_names_spec='${libname}_dll.$libext' 17132 dynamic_linker='OS/2 ld.exe' 17133 shlibpath_var=BEGINLIBPATH 17134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17136 postinstall_cmds='base_file=`basename \$file`~ 17137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17138 dldir=$destdir/`dirname \$dlpath`~ 17139 test -d \$dldir || mkdir -p \$dldir~ 17140 $install_prog $dir/$dlname \$dldir/$dlname~ 17141 chmod a+x \$dldir/$dlname~ 17142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17144 fi' 17145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17146 dlpath=$dir/\$dldll~ 17147 $RM \$dlpath' 17148 ;; 17149 17150osf3* | osf4* | osf5*) 17151 version_type=osf 17152 need_lib_prefix=no 17153 need_version=no 17154 soname_spec='$libname$release$shared_ext$major' 17155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17156 shlibpath_var=LD_LIBRARY_PATH 17157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17159 ;; 17160 17161rdos*) 17162 dynamic_linker=no 17163 ;; 17164 17165solaris*) 17166 version_type=linux # correct to gnu/linux during the next big refactor 17167 need_lib_prefix=no 17168 need_version=no 17169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17170 soname_spec='$libname$release$shared_ext$major' 17171 shlibpath_var=LD_LIBRARY_PATH 17172 shlibpath_overrides_runpath=yes 17173 hardcode_into_libs=yes 17174 # ldd complains unless libraries are executable 17175 postinstall_cmds='chmod +x $lib' 17176 ;; 17177 17178sunos4*) 17179 version_type=sunos 17180 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17182 shlibpath_var=LD_LIBRARY_PATH 17183 shlibpath_overrides_runpath=yes 17184 if test yes = "$with_gnu_ld"; then 17185 need_lib_prefix=no 17186 fi 17187 need_version=yes 17188 ;; 17189 17190sysv4 | sysv4.3*) 17191 version_type=linux # correct to gnu/linux during the next big refactor 17192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17193 soname_spec='$libname$release$shared_ext$major' 17194 shlibpath_var=LD_LIBRARY_PATH 17195 case $host_vendor in 17196 sni) 17197 shlibpath_overrides_runpath=no 17198 need_lib_prefix=no 17199 runpath_var=LD_RUN_PATH 17200 ;; 17201 siemens) 17202 need_lib_prefix=no 17203 ;; 17204 motorola) 17205 need_lib_prefix=no 17206 need_version=no 17207 shlibpath_overrides_runpath=no 17208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17209 ;; 17210 esac 17211 ;; 17212 17213sysv4*MP*) 17214 if test -d /usr/nec; then 17215 version_type=linux # correct to gnu/linux during the next big refactor 17216 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17217 soname_spec='$libname$shared_ext.$major' 17218 shlibpath_var=LD_LIBRARY_PATH 17219 fi 17220 ;; 17221 17222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17223 version_type=sco 17224 need_lib_prefix=no 17225 need_version=no 17226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17227 soname_spec='$libname$release$shared_ext$major' 17228 shlibpath_var=LD_LIBRARY_PATH 17229 shlibpath_overrides_runpath=yes 17230 hardcode_into_libs=yes 17231 if test yes = "$with_gnu_ld"; then 17232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17233 else 17234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17235 case $host_os in 17236 sco3.2v5*) 17237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17238 ;; 17239 esac 17240 fi 17241 sys_lib_dlsearch_path_spec='/usr/lib' 17242 ;; 17243 17244tpf*) 17245 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17246 version_type=linux # correct to gnu/linux during the next big refactor 17247 need_lib_prefix=no 17248 need_version=no 17249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17250 shlibpath_var=LD_LIBRARY_PATH 17251 shlibpath_overrides_runpath=no 17252 hardcode_into_libs=yes 17253 ;; 17254 17255uts4*) 17256 version_type=linux # correct to gnu/linux during the next big refactor 17257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17258 soname_spec='$libname$release$shared_ext$major' 17259 shlibpath_var=LD_LIBRARY_PATH 17260 ;; 17261 17262*) 17263 dynamic_linker=no 17264 ;; 17265esac 17266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17267$as_echo "$dynamic_linker" >&6; } 17268test no = "$dynamic_linker" && can_build_shared=no 17269 17270variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17271if test yes = "$GCC"; then 17272 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17273fi 17274 17275if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17276 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17277fi 17278 17279if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17280 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17281fi 17282 17283# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17284configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17285 17286# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17287func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17288 17289# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17290configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17332$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17333hardcode_action_CXX= 17334if test -n "$hardcode_libdir_flag_spec_CXX" || 17335 test -n "$runpath_var_CXX" || 17336 test yes = "$hardcode_automatic_CXX"; then 17337 17338 # We can hardcode non-existent directories. 17339 if test no != "$hardcode_direct_CXX" && 17340 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17341 # have to relink, otherwise we might link with an installed library 17342 # when we should be linking with a yet-to-be-installed one 17343 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17344 test no != "$hardcode_minus_L_CXX"; then 17345 # Linking always hardcodes the temporary library directory. 17346 hardcode_action_CXX=relink 17347 else 17348 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17349 hardcode_action_CXX=immediate 17350 fi 17351else 17352 # We cannot hardcode anything, or else we can only hardcode existing 17353 # directories. 17354 hardcode_action_CXX=unsupported 17355fi 17356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17357$as_echo "$hardcode_action_CXX" >&6; } 17358 17359if test relink = "$hardcode_action_CXX" || 17360 test yes = "$inherit_rpath_CXX"; then 17361 # Fast installation is not supported 17362 enable_fast_install=no 17363elif test yes = "$shlibpath_overrides_runpath" || 17364 test no = "$enable_shared"; then 17365 # Fast installation is not necessary 17366 enable_fast_install=needless 17367fi 17368 17369 17370 17371 17372 17373 17374 17375 fi # test -n "$compiler" 17376 17377 CC=$lt_save_CC 17378 CFLAGS=$lt_save_CFLAGS 17379 LDCXX=$LD 17380 LD=$lt_save_LD 17381 GCC=$lt_save_GCC 17382 with_gnu_ld=$lt_save_with_gnu_ld 17383 lt_cv_path_LDCXX=$lt_cv_path_LD 17384 lt_cv_path_LD=$lt_save_path_LD 17385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17387fi # test yes != "$_lt_caught_CXX_error" 17388 17389ac_ext=c 17390ac_cpp='$CPP $CPPFLAGS' 17391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17393ac_compiler_gnu=$ac_cv_c_compiler_gnu 17394 17395 17396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 17397$as_echo_n "checking for a sed that does not truncate output... " >&6; } 17398if ${ac_cv_path_SED+:} false; then : 17399 $as_echo_n "(cached) " >&6 17400else 17401 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 17402 for ac_i in 1 2 3 4 5 6 7; do 17403 ac_script="$ac_script$as_nl$ac_script" 17404 done 17405 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 17406 { ac_script=; unset ac_script;} 17407 if test -z "$SED"; then 17408 ac_path_SED_found=false 17409 # Loop through the user's path and test for each of PROGNAME-LIST 17410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17411for as_dir in $PATH 17412do 17413 IFS=$as_save_IFS 17414 test -z "$as_dir" && as_dir=. 17415 for ac_prog in sed gsed; do 17416 for ac_exec_ext in '' $ac_executable_extensions; do 17417 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 17418 as_fn_executable_p "$ac_path_SED" || continue 17419# Check for GNU ac_path_SED and select it if it is found. 17420 # Check for GNU $ac_path_SED 17421case `"$ac_path_SED" --version 2>&1` in 17422*GNU*) 17423 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 17424*) 17425 ac_count=0 17426 $as_echo_n 0123456789 >"conftest.in" 17427 while : 17428 do 17429 cat "conftest.in" "conftest.in" >"conftest.tmp" 17430 mv "conftest.tmp" "conftest.in" 17431 cp "conftest.in" "conftest.nl" 17432 $as_echo '' >> "conftest.nl" 17433 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 17434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 17435 as_fn_arith $ac_count + 1 && ac_count=$as_val 17436 if test $ac_count -gt ${ac_path_SED_max-0}; then 17437 # Best one so far, save it but keep looking for a better one 17438 ac_cv_path_SED="$ac_path_SED" 17439 ac_path_SED_max=$ac_count 17440 fi 17441 # 10*(2^10) chars as input seems more than enough 17442 test $ac_count -gt 10 && break 17443 done 17444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 17445esac 17446 17447 $ac_path_SED_found && break 3 17448 done 17449 done 17450 done 17451IFS=$as_save_IFS 17452 if test -z "$ac_cv_path_SED"; then 17453 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 17454 fi 17455else 17456 ac_cv_path_SED=$SED 17457fi 17458 17459fi 17460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 17461$as_echo "$ac_cv_path_SED" >&6; } 17462 SED="$ac_cv_path_SED" 17463 rm -f conftest.sed 17464 17465 17466ac_ext=mm 17467ac_cpp='$OBJCXXCPP $CPPFLAGS' 17468ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17469ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17470ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu 17471if test -n "$ac_tool_prefix"; then 17472 for ac_prog in g++ objc++ objcxx c++ CXX 17473 do 17474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 17475set dummy $ac_tool_prefix$ac_prog; ac_word=$2 17476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17477$as_echo_n "checking for $ac_word... " >&6; } 17478if ${ac_cv_prog_OBJCXX+:} false; then : 17479 $as_echo_n "(cached) " >&6 17480else 17481 if test -n "$OBJCXX"; then 17482 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. 17483else 17484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17485for as_dir in $PATH 17486do 17487 IFS=$as_save_IFS 17488 test -z "$as_dir" && as_dir=. 17489 for ac_exec_ext in '' $ac_executable_extensions; do 17490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17491 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" 17492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17493 break 2 17494 fi 17495done 17496 done 17497IFS=$as_save_IFS 17498 17499fi 17500fi 17501OBJCXX=$ac_cv_prog_OBJCXX 17502if test -n "$OBJCXX"; then 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 17504$as_echo "$OBJCXX" >&6; } 17505else 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17507$as_echo "no" >&6; } 17508fi 17509 17510 17511 test -n "$OBJCXX" && break 17512 done 17513fi 17514if test -z "$OBJCXX"; then 17515 ac_ct_OBJCXX=$OBJCXX 17516 for ac_prog in g++ objc++ objcxx c++ CXX 17517do 17518 # Extract the first word of "$ac_prog", so it can be a program name with args. 17519set dummy $ac_prog; ac_word=$2 17520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17521$as_echo_n "checking for $ac_word... " >&6; } 17522if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : 17523 $as_echo_n "(cached) " >&6 17524else 17525 if test -n "$ac_ct_OBJCXX"; then 17526 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. 17527else 17528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17529for as_dir in $PATH 17530do 17531 IFS=$as_save_IFS 17532 test -z "$as_dir" && as_dir=. 17533 for ac_exec_ext in '' $ac_executable_extensions; do 17534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17535 ac_cv_prog_ac_ct_OBJCXX="$ac_prog" 17536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17537 break 2 17538 fi 17539done 17540 done 17541IFS=$as_save_IFS 17542 17543fi 17544fi 17545ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX 17546if test -n "$ac_ct_OBJCXX"; then 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 17548$as_echo "$ac_ct_OBJCXX" >&6; } 17549else 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17551$as_echo "no" >&6; } 17552fi 17553 17554 17555 test -n "$ac_ct_OBJCXX" && break 17556done 17557 17558 if test "x$ac_ct_OBJCXX" = x; then 17559 OBJCXX="g++" 17560 else 17561 case $cross_compiling:$ac_tool_warned in 17562yes:) 17563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17565ac_tool_warned=yes ;; 17566esac 17567 OBJCXX=$ac_ct_OBJCXX 17568 fi 17569fi 17570 17571# Provide some information about the compiler. 17572$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 17573set X $ac_compile 17574ac_compiler=$2 17575for ac_option in --version -v -V -qversion; do 17576 { { ac_try="$ac_compiler $ac_option >&5" 17577case "(($ac_try" in 17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17579 *) ac_try_echo=$ac_try;; 17580esac 17581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17582$as_echo "$ac_try_echo"; } >&5 17583 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 17584 ac_status=$? 17585 if test -s conftest.err; then 17586 sed '10a\ 17587... rest of stderr output deleted ... 17588 10q' conftest.err >conftest.er1 17589 cat conftest.er1 >&5 17590 fi 17591 rm -f conftest.er1 conftest.err 17592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17593 test $ac_status = 0; } 17594done 17595 17596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 17597$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } 17598if ${ac_cv_objcxx_compiler_gnu+:} false; then : 17599 $as_echo_n "(cached) " >&6 17600else 17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17602/* end confdefs.h. */ 17603 17604int 17605main () 17606{ 17607#ifndef __GNUC__ 17608 choke me 17609#endif 17610 17611 ; 17612 return 0; 17613} 17614_ACEOF 17615if ac_fn_objcxx_try_compile "$LINENO"; then : 17616 ac_compiler_gnu=yes 17617else 17618 ac_compiler_gnu=no 17619fi 17620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17621ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu 17622 17623fi 17624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 17625$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } 17626if test $ac_compiler_gnu = yes; then 17627 GOBJCXX=yes 17628else 17629 GOBJCXX= 17630fi 17631ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} 17632ac_save_OBJCXXFLAGS=$OBJCXXFLAGS 17633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 17634$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } 17635if ${ac_cv_prog_objcxx_g+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637else 17638 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag 17639 ac_objcxx_werror_flag=yes 17640 ac_cv_prog_objcxx_g=no 17641 OBJCXXFLAGS="-g" 17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17643/* end confdefs.h. */ 17644 17645int 17646main () 17647{ 17648 17649 ; 17650 return 0; 17651} 17652_ACEOF 17653if ac_fn_objcxx_try_compile "$LINENO"; then : 17654 ac_cv_prog_objcxx_g=yes 17655else 17656 OBJCXXFLAGS="" 17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17658/* end confdefs.h. */ 17659 17660int 17661main () 17662{ 17663 17664 ; 17665 return 0; 17666} 17667_ACEOF 17668if ac_fn_objcxx_try_compile "$LINENO"; then : 17669 17670else 17671 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag 17672 OBJCXXFLAGS="-g" 17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17674/* end confdefs.h. */ 17675 17676int 17677main () 17678{ 17679 17680 ; 17681 return 0; 17682} 17683_ACEOF 17684if ac_fn_objcxx_try_compile "$LINENO"; then : 17685 ac_cv_prog_objcxx_g=yes 17686fi 17687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17688fi 17689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17690fi 17691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17692 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag 17693fi 17694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 17695$as_echo "$ac_cv_prog_objcxx_g" >&6; } 17696if test "$ac_test_OBJCXXFLAGS" = set; then 17697 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS 17698elif test $ac_cv_prog_objcxx_g = yes; then 17699 if test "$GOBJCXX" = yes; then 17700 OBJCXXFLAGS="-g -O2" 17701 else 17702 OBJCXXFLAGS="-g" 17703 fi 17704else 17705 if test "$GOBJCXX" = yes; then 17706 OBJCXXFLAGS="-O2" 17707 else 17708 OBJCXXFLAGS= 17709 fi 17710fi 17711ac_ext=c 17712ac_cpp='$CPP $CPPFLAGS' 17713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17715ac_compiler_gnu=$ac_cv_c_compiler_gnu 17716 17717depcc="$OBJCXX" am_compiler_list='gcc3 gcc' 17718 17719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17720$as_echo_n "checking dependency style of $depcc... " >&6; } 17721if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : 17722 $as_echo_n "(cached) " >&6 17723else 17724 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17725 # We make a subdir and do the tests there. Otherwise we can end up 17726 # making bogus files that we don't know about and never remove. For 17727 # instance it was reported that on HP-UX the gcc test will end up 17728 # making a dummy file named 'D' -- because '-MD' means "put the output 17729 # in D". 17730 rm -rf conftest.dir 17731 mkdir conftest.dir 17732 # Copy depcomp to subdir because otherwise we won't find it if we're 17733 # using a relative directory. 17734 cp "$am_depcomp" conftest.dir 17735 cd conftest.dir 17736 # We will build objects and dependencies in a subdirectory because 17737 # it helps to detect inapplicable dependency modes. For instance 17738 # both Tru64's cc and ICC support -MD to output dependencies as a 17739 # side effect of compilation, but ICC will put the dependencies in 17740 # the current directory while Tru64 will put them in the object 17741 # directory. 17742 mkdir sub 17743 17744 am_cv_OBJCXX_dependencies_compiler_type=none 17745 if test "$am_compiler_list" = ""; then 17746 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17747 fi 17748 am__universal=false 17749 17750 17751 for depmode in $am_compiler_list; do 17752 # Setup a source with many dependencies, because some compilers 17753 # like to wrap large dependency lists on column 80 (with \), and 17754 # we should not choose a depcomp mode which is confused by this. 17755 # 17756 # We need to recreate these files for each test, as the compiler may 17757 # overwrite some of them when testing with obscure command lines. 17758 # This happens at least with the AIX C compiler. 17759 : > sub/conftest.c 17760 for i in 1 2 3 4 5 6; do 17761 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17762 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17763 # Solaris 10 /bin/sh. 17764 echo '/* dummy */' > sub/conftst$i.h 17765 done 17766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17767 17768 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17769 # mode. It turns out that the SunPro C++ compiler does not properly 17770 # handle '-M -o', and we need to detect this. Also, some Intel 17771 # versions had trouble with output in subdirs. 17772 am__obj=sub/conftest.${OBJEXT-o} 17773 am__minus_obj="-o $am__obj" 17774 case $depmode in 17775 gcc) 17776 # This depmode causes a compiler race in universal mode. 17777 test "$am__universal" = false || continue 17778 ;; 17779 nosideeffect) 17780 # After this tag, mechanisms are not by side-effect, so they'll 17781 # only be used when explicitly requested. 17782 if test "x$enable_dependency_tracking" = xyes; then 17783 continue 17784 else 17785 break 17786 fi 17787 ;; 17788 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17789 # This compiler won't grok '-c -o', but also, the minuso test has 17790 # not run yet. These depmodes are late enough in the game, and 17791 # so weak that their functioning should not be impacted. 17792 am__obj=conftest.${OBJEXT-o} 17793 am__minus_obj= 17794 ;; 17795 none) break ;; 17796 esac 17797 if depmode=$depmode \ 17798 source=sub/conftest.c object=$am__obj \ 17799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17801 >/dev/null 2>conftest.err && 17802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17806 # icc doesn't choke on unknown options, it will just issue warnings 17807 # or remarks (even with -Werror). So we grep stderr for any message 17808 # that says an option was ignored or not supported. 17809 # When given -MP, icc 7.0 and 7.1 complain thusly: 17810 # icc: Command line warning: ignoring option '-M'; no argument required 17811 # The diagnosis changed in icc 8.0: 17812 # icc: Command line remark: option '-MP' not supported 17813 if (grep 'ignoring option' conftest.err || 17814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17815 am_cv_OBJCXX_dependencies_compiler_type=$depmode 17816 break 17817 fi 17818 fi 17819 done 17820 17821 cd .. 17822 rm -rf conftest.dir 17823else 17824 am_cv_OBJCXX_dependencies_compiler_type=none 17825fi 17826 17827fi 17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 17829$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } 17830OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type 17831 17832 if 17833 test "x$enable_dependency_tracking" != xno \ 17834 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then 17835 am__fastdepOBJCXX_TRUE= 17836 am__fastdepOBJCXX_FALSE='#' 17837else 17838 am__fastdepOBJCXX_TRUE='#' 17839 am__fastdepOBJCXX_FALSE= 17840fi 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17851 if test -n "$ac_tool_prefix"; then 17852 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17853set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17855$as_echo_n "checking for $ac_word... " >&6; } 17856if ${ac_cv_path_PKG_CONFIG+:} false; then : 17857 $as_echo_n "(cached) " >&6 17858else 17859 case $PKG_CONFIG in 17860 [\\/]* | ?:[\\/]*) 17861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17862 ;; 17863 *) 17864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17865for as_dir in $PATH 17866do 17867 IFS=$as_save_IFS 17868 test -z "$as_dir" && as_dir=. 17869 for ac_exec_ext in '' $ac_executable_extensions; do 17870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17873 break 2 17874 fi 17875done 17876 done 17877IFS=$as_save_IFS 17878 17879 ;; 17880esac 17881fi 17882PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17883if test -n "$PKG_CONFIG"; then 17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17885$as_echo "$PKG_CONFIG" >&6; } 17886else 17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17888$as_echo "no" >&6; } 17889fi 17890 17891 17892fi 17893if test -z "$ac_cv_path_PKG_CONFIG"; then 17894 ac_pt_PKG_CONFIG=$PKG_CONFIG 17895 # Extract the first word of "pkg-config", so it can be a program name with args. 17896set dummy pkg-config; ac_word=$2 17897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17898$as_echo_n "checking for $ac_word... " >&6; } 17899if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17900 $as_echo_n "(cached) " >&6 17901else 17902 case $ac_pt_PKG_CONFIG in 17903 [\\/]* | ?:[\\/]*) 17904 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17905 ;; 17906 *) 17907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17908for as_dir in $PATH 17909do 17910 IFS=$as_save_IFS 17911 test -z "$as_dir" && as_dir=. 17912 for ac_exec_ext in '' $ac_executable_extensions; do 17913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17914 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17916 break 2 17917 fi 17918done 17919 done 17920IFS=$as_save_IFS 17921 17922 ;; 17923esac 17924fi 17925ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17926if test -n "$ac_pt_PKG_CONFIG"; then 17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17928$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17929else 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17931$as_echo "no" >&6; } 17932fi 17933 17934 if test "x$ac_pt_PKG_CONFIG" = x; then 17935 PKG_CONFIG="" 17936 else 17937 case $cross_compiling:$ac_tool_warned in 17938yes:) 17939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17941ac_tool_warned=yes ;; 17942esac 17943 PKG_CONFIG=$ac_pt_PKG_CONFIG 17944 fi 17945else 17946 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17947fi 17948 17949fi 17950if test -n "$PKG_CONFIG"; then 17951 _pkg_min_version=0.9.0 17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17953$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17954 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17956$as_echo "yes" >&6; } 17957 else 17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17959$as_echo "no" >&6; } 17960 PKG_CONFIG="" 17961 fi 17962fi 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17964$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 17965if ${ac_cv_c_bigendian+:} false; then : 17966 $as_echo_n "(cached) " >&6 17967else 17968 ac_cv_c_bigendian=unknown 17969 # See if we're dealing with a universal compiler. 17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17971/* end confdefs.h. */ 17972#ifndef __APPLE_CC__ 17973 not a universal capable compiler 17974 #endif 17975 typedef int dummy; 17976 17977_ACEOF 17978if ac_fn_c_try_compile "$LINENO"; then : 17979 17980 # Check for potential -arch flags. It is not universal unless 17981 # there are at least two -arch flags with different values. 17982 ac_arch= 17983 ac_prev= 17984 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17985 if test -n "$ac_prev"; then 17986 case $ac_word in 17987 i?86 | x86_64 | ppc | ppc64) 17988 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17989 ac_arch=$ac_word 17990 else 17991 ac_cv_c_bigendian=universal 17992 break 17993 fi 17994 ;; 17995 esac 17996 ac_prev= 17997 elif test "x$ac_word" = "x-arch"; then 17998 ac_prev=arch 17999 fi 18000 done 18001fi 18002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18003 if test $ac_cv_c_bigendian = unknown; then 18004 # See if sys/param.h defines the BYTE_ORDER macro. 18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18006/* end confdefs.h. */ 18007#include <sys/types.h> 18008 #include <sys/param.h> 18009 18010int 18011main () 18012{ 18013#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18014 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18015 && LITTLE_ENDIAN) 18016 bogus endian macros 18017 #endif 18018 18019 ; 18020 return 0; 18021} 18022_ACEOF 18023if ac_fn_c_try_compile "$LINENO"; then : 18024 # It does; now see whether it defined to BIG_ENDIAN or not. 18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18026/* end confdefs.h. */ 18027#include <sys/types.h> 18028 #include <sys/param.h> 18029 18030int 18031main () 18032{ 18033#if BYTE_ORDER != BIG_ENDIAN 18034 not big endian 18035 #endif 18036 18037 ; 18038 return 0; 18039} 18040_ACEOF 18041if ac_fn_c_try_compile "$LINENO"; then : 18042 ac_cv_c_bigendian=yes 18043else 18044 ac_cv_c_bigendian=no 18045fi 18046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18047fi 18048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18049 fi 18050 if test $ac_cv_c_bigendian = unknown; then 18051 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18053/* end confdefs.h. */ 18054#include <limits.h> 18055 18056int 18057main () 18058{ 18059#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18060 bogus endian macros 18061 #endif 18062 18063 ; 18064 return 0; 18065} 18066_ACEOF 18067if ac_fn_c_try_compile "$LINENO"; then : 18068 # It does; now see whether it defined to _BIG_ENDIAN or not. 18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18070/* end confdefs.h. */ 18071#include <limits.h> 18072 18073int 18074main () 18075{ 18076#ifndef _BIG_ENDIAN 18077 not big endian 18078 #endif 18079 18080 ; 18081 return 0; 18082} 18083_ACEOF 18084if ac_fn_c_try_compile "$LINENO"; then : 18085 ac_cv_c_bigendian=yes 18086else 18087 ac_cv_c_bigendian=no 18088fi 18089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18090fi 18091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18092 fi 18093 if test $ac_cv_c_bigendian = unknown; then 18094 # Compile a test program. 18095 if test "$cross_compiling" = yes; then : 18096 # Try to guess by grepping values from an object file. 18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18098/* end confdefs.h. */ 18099short int ascii_mm[] = 18100 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 18101 short int ascii_ii[] = 18102 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 18103 int use_ascii (int i) { 18104 return ascii_mm[i] + ascii_ii[i]; 18105 } 18106 short int ebcdic_ii[] = 18107 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 18108 short int ebcdic_mm[] = 18109 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 18110 int use_ebcdic (int i) { 18111 return ebcdic_mm[i] + ebcdic_ii[i]; 18112 } 18113 extern int foo; 18114 18115int 18116main () 18117{ 18118return use_ascii (foo) == use_ebcdic (foo); 18119 ; 18120 return 0; 18121} 18122_ACEOF 18123if ac_fn_c_try_compile "$LINENO"; then : 18124 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 18125 ac_cv_c_bigendian=yes 18126 fi 18127 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 18128 if test "$ac_cv_c_bigendian" = unknown; then 18129 ac_cv_c_bigendian=no 18130 else 18131 # finding both strings is unlikely to happen, but who knows? 18132 ac_cv_c_bigendian=unknown 18133 fi 18134 fi 18135fi 18136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18137else 18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18139/* end confdefs.h. */ 18140$ac_includes_default 18141int 18142main () 18143{ 18144 18145 /* Are we little or big endian? From Harbison&Steele. */ 18146 union 18147 { 18148 long int l; 18149 char c[sizeof (long int)]; 18150 } u; 18151 u.l = 1; 18152 return u.c[sizeof (long int) - 1] == 1; 18153 18154 ; 18155 return 0; 18156} 18157_ACEOF 18158if ac_fn_c_try_run "$LINENO"; then : 18159 ac_cv_c_bigendian=no 18160else 18161 ac_cv_c_bigendian=yes 18162fi 18163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18164 conftest.$ac_objext conftest.beam conftest.$ac_ext 18165fi 18166 18167 fi 18168fi 18169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18170$as_echo "$ac_cv_c_bigendian" >&6; } 18171 case $ac_cv_c_bigendian in #( 18172 yes) 18173 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 18174;; #( 18175 no) 18176 ;; #( 18177 universal) 18178 18179$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18180 18181 ;; #( 18182 *) 18183 as_fn_error $? "unknown endianness 18184 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 18185 esac 18186 18187ac_ext=cpp 18188ac_cpp='$CXXCPP $CPPFLAGS' 18189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228# does not use pkg-config because of the FILE_OFFSET_BITS.. bit 18229 18230 18231 18232 18233# For enet 18234 18235 18236# The lua detection is quite annoying because of distro differences and our version selection code 18237 18238 18239 18240 18241# First, try pkg-config, then fall back to manual detection if not available. 18242 18243 18244 18245includes= 18246 18247 18248 18249# C++11 support in cpp11.m4 18250 18251 18252 aclove_cpp11_test_cxx11name="no" 18253 aclove_cxx_flag_test_save_cflags="$CXXFLAGS" 18254 CXXFLAGS="-std=c++0x" 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports flag -std=c++0x" >&5 18256$as_echo_n "checking whether $CXX supports flag -std=c++0x... " >&6; } 18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18258/* end confdefs.h. */ 18259 18260int 18261main () 18262{ 18263 18264 ; 18265 return 0; 18266} 18267_ACEOF 18268if ac_fn_cxx_try_compile "$LINENO"; then : 18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18270$as_echo "yes" >&6; }; aclove_cpp11_test_cxx11name="c++0x" 18271else 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18273$as_echo "no" >&6; }; 18274fi 18275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18276 CXXFLAGS="$aclove_cxx_flag_test_save_cflags" 18277 18278 aclove_cxx_flag_test_save_cflags="$CXXFLAGS" 18279 CXXFLAGS="-std=c++11" 18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports flag -std=c++11" >&5 18281$as_echo_n "checking whether $CXX supports flag -std=c++11... " >&6; } 18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18283/* end confdefs.h. */ 18284 18285int 18286main () 18287{ 18288 18289 ; 18290 return 0; 18291} 18292_ACEOF 18293if ac_fn_cxx_try_compile "$LINENO"; then : 18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18295$as_echo "yes" >&6; }; aclove_cpp11_test_cxx11name="c++11" 18296else 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18298$as_echo "no" >&6; }; 18299fi 18300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18301 CXXFLAGS="$aclove_cxx_flag_test_save_cflags" 18302 18303 if test "x$aclove_cpp11_test_cxx11name" = xno; then : 18304 as_fn_error $? "LÖVE needs a C++ compiler with C++11 support" "$LINENO" 5 18305else 18306 CXXFLAGS="$CXXFLAGS -std=$aclove_cpp11_test_cxx11name" 18307fi 18308 18309 18310 18311 aclove_gcc_version_found="yes" 18312 if ac_fn_cxx_compute_int "$LINENO" "__GNUC__" "aclove_gcc_version_major" ""; then : 18313 18314else 18315 aclove_gcc_version_found="no" 18316fi 18317 18318 if ac_fn_cxx_compute_int "$LINENO" "__GNUC_MINOR__" "aclove_gcc_version_minor" ""; then : 18319 18320else 18321 aclove_gcc_version_found="no" 18322fi 18323 18324 if ac_fn_cxx_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "aclove_gcc_version_patch" ""; then : 18325 18326else 18327 aclove_gcc_version_found="no" 18328fi 18329 18330 18331 18332 aclove_clang_version_found="yes" 18333 if ac_fn_cxx_compute_int "$LINENO" "__clang_major__" "aclove_clang_version_major" ""; then : 18334 18335else 18336 aclove_clang_version_found="no" 18337fi 18338 18339 if ac_fn_cxx_compute_int "$LINENO" "__clang_minor__" "aclove_clang_version_minor" ""; then : 18340 18341else 18342 aclove_clang_version_found="no" 18343fi 18344 18345 if ac_fn_cxx_compute_int "$LINENO" "__clang_patchlevel__" "aclove_clang_version_patch" ""; then : 18346 18347else 18348 aclove_clang_version_found="no" 18349fi 18350 18351 18352 18353 # Since clang also sets gcc headers, check clang after 18354 aclove_cpp11_test_compiler="unknown" 18355 if test "x$aclove_gcc_version_found" = xyes; then : 18356 aclove_cpp11_test_compiler="gcc" 18357fi 18358 if test "x$aclove_clang_version_found" = xyes; then : 18359 aclove_cpp11_test_compiler="clang" 18360fi 18361 18362 case $aclove_cpp11_test_compiler in #( 18363 gcc) : 18364 18365 aclove_cpp11_check_version_status="no" 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc version is at least 4.7" >&5 18367$as_echo_n "checking whether gcc version is at least 4.7... " >&6; } 18368 if test "$aclove_gcc_version_major" -gt 4; then : 18369 aclove_cpp11_check_version_status="yes" 18370fi 18371 if test "$aclove_gcc_version_major" -eq 4 && test "$aclove_gcc_version_minor" -ge 7; then : 18372 aclove_cpp11_check_version_status="yes" 18373fi 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aclove_cpp11_check_version_status" >&5 18375$as_echo "$aclove_cpp11_check_version_status" >&6; } 18376 if test "x$aclove_cpp11_check_version_status" = xno; then : 18377 as_fn_error $? "LÖVE needs a GCC version of at least 4.7" "$LINENO" 5 18378fi 18379 18380 ;; #( 18381 clang) : 18382 18383 aclove_cpp11_check_version_status="no" 18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang version is at least 3.1" >&5 18385$as_echo_n "checking whether clang version is at least 3.1... " >&6; } 18386 if test "$aclove_clang_version_major" -gt 3; then : 18387 aclove_cpp11_check_version_status="yes" 18388fi 18389 if test "$aclove_clang_version_major" -eq 3 && test "$aclove_clang_version_minor" -ge 1; then : 18390 aclove_cpp11_check_version_status="yes" 18391fi 18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aclove_cpp11_check_version_status" >&5 18393$as_echo "$aclove_cpp11_check_version_status" >&6; } 18394 if test "x$aclove_cpp11_check_version_status" = xno; then : 18395 as_fn_error $? "LÖVE needs a clang version of at least 3.1" "$LINENO" 5 18396fi 18397 18398 ;; #( 18399 *) : 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine compiler version" >&5 18401$as_echo "$as_me: WARNING: Could not determine compiler version" >&2;} ;; 18402esac 18403 18404 18405# Allow people on OSX to use autotools, they need their platform files 18406# Check whether --enable-osx was given. 18407if test "${enable_osx+set}" = set; then : 18408 enableval=$enable_osx; 18409else 18410 enable_osx=no 18411fi 18412 18413if test "x$enable_osx" = xno; then : 18414 18415else 18416 #else 18417 ac_cv_search_glLoadIdentity="-framework OpenGL" 18418 LDFLAGS="${LDFLAGS} -framework CoreFoundation -framework Cocoa" 18419 18420 CPPFLAGS="${CPPFLAGS} -I../platform/macosx" 18421 18422fi 18423 18424# stb_image sse2 override (https://github.com/nothings/stb/issues/280) 18425# Check whether --enable-stbi-sse2-override was given. 18426if test "${enable_stbi_sse2_override+set}" = set; then : 18427 enableval=$enable_stbi_sse2_override; 18428else 18429 enable_stbi_sse2_override=no 18430fi 18431 18432if test "x$enable_stbi_sse2_override" = xno; then : 18433 18434else 18435 #else 18436 CPPFLAGS="${CPPFLAGS} -DLOVE_STBI_SSE2_OVERRIDE" 18437 18438fi 18439 18440# --with-lua and --with-luaversion 18441 18442# Check whether --with-lua was given. 18443if test "${with_lua+set}" = set; then : 18444 withval=$with_lua; 18445else 18446 with_lua=luajit 18447fi 18448 18449 18450# Check whether --with-luaversion was given. 18451if test "${with_luaversion+set}" = set; then : 18452 withval=$with_luaversion; 18453else 18454 with_luaversion=5.1 18455fi 18456 18457 18458with_clean_luaversion=`printf ${with_luaversion} | sed 's/\.//g'` 18459 18460# Generated sources for enabling/disabling modules 18461# Check whether --enable-module-audio was given. 18462if test "${enable_module_audio+set}" = set; then : 18463 enableval=$enable_module_audio; 18464else 18465 enable_module_audio=yes 18466fi 18467 18468# Check whether --enable-module-data was given. 18469if test "${enable_module_data+set}" = set; then : 18470 enableval=$enable_module_data; 18471else 18472 enable_module_data=yes 18473fi 18474 18475# Check whether --enable-module-event was given. 18476if test "${enable_module_event+set}" = set; then : 18477 enableval=$enable_module_event; 18478else 18479 enable_module_event=yes 18480fi 18481 18482# Check whether --enable-module-filesystem was given. 18483if test "${enable_module_filesystem+set}" = set; then : 18484 enableval=$enable_module_filesystem; 18485else 18486 enable_module_filesystem=yes 18487fi 18488 18489# Check whether --enable-module-font was given. 18490if test "${enable_module_font+set}" = set; then : 18491 enableval=$enable_module_font; 18492else 18493 enable_module_font=yes 18494fi 18495 18496# Check whether --enable-module-graphics was given. 18497if test "${enable_module_graphics+set}" = set; then : 18498 enableval=$enable_module_graphics; 18499else 18500 enable_module_graphics=yes 18501fi 18502 18503# Check whether --enable-module-image was given. 18504if test "${enable_module_image+set}" = set; then : 18505 enableval=$enable_module_image; 18506else 18507 enable_module_image=yes 18508fi 18509 18510# Check whether --enable-module-joystick was given. 18511if test "${enable_module_joystick+set}" = set; then : 18512 enableval=$enable_module_joystick; 18513else 18514 enable_module_joystick=yes 18515fi 18516 18517# Check whether --enable-module-keyboard was given. 18518if test "${enable_module_keyboard+set}" = set; then : 18519 enableval=$enable_module_keyboard; 18520else 18521 enable_module_keyboard=yes 18522fi 18523 18524# Check whether --enable-module-love was given. 18525if test "${enable_module_love+set}" = set; then : 18526 enableval=$enable_module_love; 18527else 18528 enable_module_love=yes 18529fi 18530 18531# Check whether --enable-module-math was given. 18532if test "${enable_module_math+set}" = set; then : 18533 enableval=$enable_module_math; 18534else 18535 enable_module_math=yes 18536fi 18537 18538# Check whether --enable-module-mouse was given. 18539if test "${enable_module_mouse+set}" = set; then : 18540 enableval=$enable_module_mouse; 18541else 18542 enable_module_mouse=yes 18543fi 18544 18545# Check whether --enable-module-physics was given. 18546if test "${enable_module_physics+set}" = set; then : 18547 enableval=$enable_module_physics; 18548else 18549 enable_module_physics=yes 18550fi 18551 18552# Check whether --enable-module-sound was given. 18553if test "${enable_module_sound+set}" = set; then : 18554 enableval=$enable_module_sound; 18555else 18556 enable_module_sound=yes 18557fi 18558 18559# Check whether --enable-module-system was given. 18560if test "${enable_module_system+set}" = set; then : 18561 enableval=$enable_module_system; 18562else 18563 enable_module_system=yes 18564fi 18565 18566# Check whether --enable-module-thread was given. 18567if test "${enable_module_thread+set}" = set; then : 18568 enableval=$enable_module_thread; 18569else 18570 enable_module_thread=yes 18571fi 18572 18573# Check whether --enable-module-timer was given. 18574if test "${enable_module_timer+set}" = set; then : 18575 enableval=$enable_module_timer; 18576else 18577 enable_module_timer=yes 18578fi 18579 18580# Check whether --enable-module-touch was given. 18581if test "${enable_module_touch+set}" = set; then : 18582 enableval=$enable_module_touch; 18583else 18584 enable_module_touch=yes 18585fi 18586 18587# Check whether --enable-module-video was given. 18588if test "${enable_module_video+set}" = set; then : 18589 enableval=$enable_module_video; 18590else 18591 enable_module_video=yes 18592fi 18593 18594# Check whether --enable-module-window was given. 18595if test "${enable_module_window+set}" = set; then : 18596 enableval=$enable_module_window; 18597else 18598 enable_module_window=yes 18599fi 18600 18601 18602 18603# Other features that can be enabled/disabled 18604# Check whether --enable-mpg123 was given. 18605if test "${enable_mpg123+set}" = set; then : 18606 enableval=$enable_mpg123; 18607else 18608 enable_mpg123=yes 18609fi 18610 18611# Check whether --enable-gme was given. 18612if test "${enable_gme+set}" = set; then : 18613 enableval=$enable_gme; 18614else 18615 enable_gme=no 18616fi 18617 18618 18619# Dependencies we always use 18620 18621 aclove_lua_found=no 18622 aclove_luaheaders_found=no 18623 18624 18625 18626pkg_failed=no 18627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 18628$as_echo_n "checking for lua... " >&6; } 18629 18630if test -n "$lua_CFLAGS"; then 18631 pkg_cv_lua_CFLAGS="$lua_CFLAGS" 18632 elif test -n "$PKG_CONFIG"; then 18633 if test -n "$PKG_CONFIG" && \ 18634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\${with_luaversion}\""; } >&5 18635 ($PKG_CONFIG --exists --print-errors "${with_lua}${with_luaversion}") 2>&5 18636 ac_status=$? 18637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18638 test $ac_status = 0; }; then 18639 pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${with_lua}${with_luaversion}" 2>/dev/null` 18640 test "x$?" != "x0" && pkg_failed=yes 18641else 18642 pkg_failed=yes 18643fi 18644 else 18645 pkg_failed=untried 18646fi 18647if test -n "$lua_LIBS"; then 18648 pkg_cv_lua_LIBS="$lua_LIBS" 18649 elif test -n "$PKG_CONFIG"; then 18650 if test -n "$PKG_CONFIG" && \ 18651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\${with_luaversion}\""; } >&5 18652 ($PKG_CONFIG --exists --print-errors "${with_lua}${with_luaversion}") 2>&5 18653 ac_status=$? 18654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18655 test $ac_status = 0; }; then 18656 pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${with_lua}${with_luaversion}" 2>/dev/null` 18657 test "x$?" != "x0" && pkg_failed=yes 18658else 18659 pkg_failed=yes 18660fi 18661 else 18662 pkg_failed=untried 18663fi 18664 18665 18666 18667if test $pkg_failed = yes; then 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18669$as_echo "no" >&6; } 18670 18671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18672 _pkg_short_errors_supported=yes 18673else 18674 _pkg_short_errors_supported=no 18675fi 18676 if test $_pkg_short_errors_supported = yes; then 18677 lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${with_lua}${with_luaversion}" 2>&1` 18678 else 18679 lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${with_lua}${with_luaversion}" 2>&1` 18680 fi 18681 # Put the nasty error message in config.log where it belongs 18682 echo "$lua_PKG_ERRORS" >&5 18683 18684 18685pkg_failed=no 18686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 18687$as_echo_n "checking for lua... " >&6; } 18688 18689if test -n "$lua_CFLAGS"; then 18690 pkg_cv_lua_CFLAGS="$lua_CFLAGS" 18691 elif test -n "$PKG_CONFIG"; then 18692 if test -n "$PKG_CONFIG" && \ 18693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\${with_clean_luaversion}\""; } >&5 18694 ($PKG_CONFIG --exists --print-errors "${with_lua}${with_clean_luaversion}") 2>&5 18695 ac_status=$? 18696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18697 test $ac_status = 0; }; then 18698 pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${with_lua}${with_clean_luaversion}" 2>/dev/null` 18699 test "x$?" != "x0" && pkg_failed=yes 18700else 18701 pkg_failed=yes 18702fi 18703 else 18704 pkg_failed=untried 18705fi 18706if test -n "$lua_LIBS"; then 18707 pkg_cv_lua_LIBS="$lua_LIBS" 18708 elif test -n "$PKG_CONFIG"; then 18709 if test -n "$PKG_CONFIG" && \ 18710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\${with_clean_luaversion}\""; } >&5 18711 ($PKG_CONFIG --exists --print-errors "${with_lua}${with_clean_luaversion}") 2>&5 18712 ac_status=$? 18713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18714 test $ac_status = 0; }; then 18715 pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${with_lua}${with_clean_luaversion}" 2>/dev/null` 18716 test "x$?" != "x0" && pkg_failed=yes 18717else 18718 pkg_failed=yes 18719fi 18720 else 18721 pkg_failed=untried 18722fi 18723 18724 18725 18726if test $pkg_failed = yes; then 18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18728$as_echo "no" >&6; } 18729 18730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18731 _pkg_short_errors_supported=yes 18732else 18733 _pkg_short_errors_supported=no 18734fi 18735 if test $_pkg_short_errors_supported = yes; then 18736 lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${with_lua}${with_clean_luaversion}" 2>&1` 18737 else 18738 lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${with_lua}${with_clean_luaversion}" 2>&1` 18739 fi 18740 # Put the nasty error message in config.log where it belongs 18741 echo "$lua_PKG_ERRORS" >&5 18742 18743 18744pkg_failed=no 18745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 18746$as_echo_n "checking for lua... " >&6; } 18747 18748if test -n "$lua_CFLAGS"; then 18749 pkg_cv_lua_CFLAGS="$lua_CFLAGS" 18750 elif test -n "$PKG_CONFIG"; then 18751 if test -n "$PKG_CONFIG" && \ 18752 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 18753 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 18754 ac_status=$? 18755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18756 test $ac_status = 0; }; then 18757 pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${with_lua}" 2>/dev/null` 18758 test "x$?" != "x0" && pkg_failed=yes 18759else 18760 pkg_failed=yes 18761fi 18762 else 18763 pkg_failed=untried 18764fi 18765if test -n "$lua_LIBS"; then 18766 pkg_cv_lua_LIBS="$lua_LIBS" 18767 elif test -n "$PKG_CONFIG"; then 18768 if test -n "$PKG_CONFIG" && \ 18769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 18770 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 18771 ac_status=$? 18772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18773 test $ac_status = 0; }; then 18774 pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${with_lua}" 2>/dev/null` 18775 test "x$?" != "x0" && pkg_failed=yes 18776else 18777 pkg_failed=yes 18778fi 18779 else 18780 pkg_failed=untried 18781fi 18782 18783 18784 18785if test $pkg_failed = yes; then 18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18787$as_echo "no" >&6; } 18788 18789if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18790 _pkg_short_errors_supported=yes 18791else 18792 _pkg_short_errors_supported=no 18793fi 18794 if test $_pkg_short_errors_supported = yes; then 18795 lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${with_lua}" 2>&1` 18796 else 18797 lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${with_lua}" 2>&1` 18798 fi 18799 # Put the nasty error message in config.log where it belongs 18800 echo "$lua_PKG_ERRORS" >&5 18801 18802 as_fn_error $? "Package requirements (${with_lua}) were not met: 18803 18804$lua_PKG_ERRORS 18805 18806Consider adjusting the PKG_CONFIG_PATH environment variable if you 18807installed software in a non-standard prefix. 18808 18809Alternatively, you may set the environment variables lua_CFLAGS 18810and lua_LIBS to avoid the need to call pkg-config. 18811See the pkg-config man page for more details." "$LINENO" 5 18812elif test $pkg_failed = untried; then 18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18814$as_echo "no" >&6; } 18815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18817as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18818is in your PATH or set the PKG_CONFIG environment variable to the full 18819path to pkg-config. 18820 18821Alternatively, you may set the environment variables lua_CFLAGS 18822and lua_LIBS to avoid the need to call pkg-config. 18823See the pkg-config man page for more details. 18824 18825To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18826See \`config.log' for more details" "$LINENO" 5; } 18827else 18828 lua_CFLAGS=$pkg_cv_lua_CFLAGS 18829 lua_LIBS=$pkg_cv_lua_LIBS 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18831$as_echo "yes" >&6; } 18832 aclove_lua_found=yes 18833fi 18834elif test $pkg_failed = untried; then 18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18836$as_echo "no" >&6; } 18837 18838pkg_failed=no 18839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 18840$as_echo_n "checking for lua... " >&6; } 18841 18842if test -n "$lua_CFLAGS"; then 18843 pkg_cv_lua_CFLAGS="$lua_CFLAGS" 18844 elif test -n "$PKG_CONFIG"; then 18845 if test -n "$PKG_CONFIG" && \ 18846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 18847 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 18848 ac_status=$? 18849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18850 test $ac_status = 0; }; then 18851 pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${with_lua}" 2>/dev/null` 18852 test "x$?" != "x0" && pkg_failed=yes 18853else 18854 pkg_failed=yes 18855fi 18856 else 18857 pkg_failed=untried 18858fi 18859if test -n "$lua_LIBS"; then 18860 pkg_cv_lua_LIBS="$lua_LIBS" 18861 elif test -n "$PKG_CONFIG"; then 18862 if test -n "$PKG_CONFIG" && \ 18863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 18864 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 18865 ac_status=$? 18866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18867 test $ac_status = 0; }; then 18868 pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${with_lua}" 2>/dev/null` 18869 test "x$?" != "x0" && pkg_failed=yes 18870else 18871 pkg_failed=yes 18872fi 18873 else 18874 pkg_failed=untried 18875fi 18876 18877 18878 18879if test $pkg_failed = yes; then 18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18881$as_echo "no" >&6; } 18882 18883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18884 _pkg_short_errors_supported=yes 18885else 18886 _pkg_short_errors_supported=no 18887fi 18888 if test $_pkg_short_errors_supported = yes; then 18889 lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${with_lua}" 2>&1` 18890 else 18891 lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${with_lua}" 2>&1` 18892 fi 18893 # Put the nasty error message in config.log where it belongs 18894 echo "$lua_PKG_ERRORS" >&5 18895 18896 as_fn_error $? "Package requirements (${with_lua}) were not met: 18897 18898$lua_PKG_ERRORS 18899 18900Consider adjusting the PKG_CONFIG_PATH environment variable if you 18901installed software in a non-standard prefix. 18902 18903Alternatively, you may set the environment variables lua_CFLAGS 18904and lua_LIBS to avoid the need to call pkg-config. 18905See the pkg-config man page for more details." "$LINENO" 5 18906elif test $pkg_failed = untried; then 18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18908$as_echo "no" >&6; } 18909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18911as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18912is in your PATH or set the PKG_CONFIG environment variable to the full 18913path to pkg-config. 18914 18915Alternatively, you may set the environment variables lua_CFLAGS 18916and lua_LIBS to avoid the need to call pkg-config. 18917See the pkg-config man page for more details. 18918 18919To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18920See \`config.log' for more details" "$LINENO" 5; } 18921else 18922 lua_CFLAGS=$pkg_cv_lua_CFLAGS 18923 lua_LIBS=$pkg_cv_lua_LIBS 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18925$as_echo "yes" >&6; } 18926 aclove_lua_found=yes 18927fi 18928else 18929 lua_CFLAGS=$pkg_cv_lua_CFLAGS 18930 lua_LIBS=$pkg_cv_lua_LIBS 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18932$as_echo "yes" >&6; } 18933 aclove_lua_found=yes 18934fi 18935elif test $pkg_failed = untried; then 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18937$as_echo "no" >&6; } 18938 18939pkg_failed=no 18940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 18941$as_echo_n "checking for lua... " >&6; } 18942 18943if test -n "$lua_CFLAGS"; then 18944 pkg_cv_lua_CFLAGS="$lua_CFLAGS" 18945 elif test -n "$PKG_CONFIG"; then 18946 if test -n "$PKG_CONFIG" && \ 18947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\${with_clean_luaversion}\""; } >&5 18948 ($PKG_CONFIG --exists --print-errors "${with_lua}${with_clean_luaversion}") 2>&5 18949 ac_status=$? 18950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18951 test $ac_status = 0; }; then 18952 pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${with_lua}${with_clean_luaversion}" 2>/dev/null` 18953 test "x$?" != "x0" && pkg_failed=yes 18954else 18955 pkg_failed=yes 18956fi 18957 else 18958 pkg_failed=untried 18959fi 18960if test -n "$lua_LIBS"; then 18961 pkg_cv_lua_LIBS="$lua_LIBS" 18962 elif test -n "$PKG_CONFIG"; then 18963 if test -n "$PKG_CONFIG" && \ 18964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\${with_clean_luaversion}\""; } >&5 18965 ($PKG_CONFIG --exists --print-errors "${with_lua}${with_clean_luaversion}") 2>&5 18966 ac_status=$? 18967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18968 test $ac_status = 0; }; then 18969 pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${with_lua}${with_clean_luaversion}" 2>/dev/null` 18970 test "x$?" != "x0" && pkg_failed=yes 18971else 18972 pkg_failed=yes 18973fi 18974 else 18975 pkg_failed=untried 18976fi 18977 18978 18979 18980if test $pkg_failed = yes; then 18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18982$as_echo "no" >&6; } 18983 18984if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18985 _pkg_short_errors_supported=yes 18986else 18987 _pkg_short_errors_supported=no 18988fi 18989 if test $_pkg_short_errors_supported = yes; then 18990 lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${with_lua}${with_clean_luaversion}" 2>&1` 18991 else 18992 lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${with_lua}${with_clean_luaversion}" 2>&1` 18993 fi 18994 # Put the nasty error message in config.log where it belongs 18995 echo "$lua_PKG_ERRORS" >&5 18996 18997 18998pkg_failed=no 18999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 19000$as_echo_n "checking for lua... " >&6; } 19001 19002if test -n "$lua_CFLAGS"; then 19003 pkg_cv_lua_CFLAGS="$lua_CFLAGS" 19004 elif test -n "$PKG_CONFIG"; then 19005 if test -n "$PKG_CONFIG" && \ 19006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 19007 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 19008 ac_status=$? 19009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19010 test $ac_status = 0; }; then 19011 pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${with_lua}" 2>/dev/null` 19012 test "x$?" != "x0" && pkg_failed=yes 19013else 19014 pkg_failed=yes 19015fi 19016 else 19017 pkg_failed=untried 19018fi 19019if test -n "$lua_LIBS"; then 19020 pkg_cv_lua_LIBS="$lua_LIBS" 19021 elif test -n "$PKG_CONFIG"; then 19022 if test -n "$PKG_CONFIG" && \ 19023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 19024 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 19025 ac_status=$? 19026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19027 test $ac_status = 0; }; then 19028 pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${with_lua}" 2>/dev/null` 19029 test "x$?" != "x0" && pkg_failed=yes 19030else 19031 pkg_failed=yes 19032fi 19033 else 19034 pkg_failed=untried 19035fi 19036 19037 19038 19039if test $pkg_failed = yes; then 19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19041$as_echo "no" >&6; } 19042 19043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19044 _pkg_short_errors_supported=yes 19045else 19046 _pkg_short_errors_supported=no 19047fi 19048 if test $_pkg_short_errors_supported = yes; then 19049 lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${with_lua}" 2>&1` 19050 else 19051 lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${with_lua}" 2>&1` 19052 fi 19053 # Put the nasty error message in config.log where it belongs 19054 echo "$lua_PKG_ERRORS" >&5 19055 19056 as_fn_error $? "Package requirements (${with_lua}) were not met: 19057 19058$lua_PKG_ERRORS 19059 19060Consider adjusting the PKG_CONFIG_PATH environment variable if you 19061installed software in a non-standard prefix. 19062 19063Alternatively, you may set the environment variables lua_CFLAGS 19064and lua_LIBS to avoid the need to call pkg-config. 19065See the pkg-config man page for more details." "$LINENO" 5 19066elif test $pkg_failed = untried; then 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19068$as_echo "no" >&6; } 19069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19071as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19072is in your PATH or set the PKG_CONFIG environment variable to the full 19073path to pkg-config. 19074 19075Alternatively, you may set the environment variables lua_CFLAGS 19076and lua_LIBS to avoid the need to call pkg-config. 19077See the pkg-config man page for more details. 19078 19079To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19080See \`config.log' for more details" "$LINENO" 5; } 19081else 19082 lua_CFLAGS=$pkg_cv_lua_CFLAGS 19083 lua_LIBS=$pkg_cv_lua_LIBS 19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19085$as_echo "yes" >&6; } 19086 aclove_lua_found=yes 19087fi 19088elif test $pkg_failed = untried; then 19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19090$as_echo "no" >&6; } 19091 19092pkg_failed=no 19093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 19094$as_echo_n "checking for lua... " >&6; } 19095 19096if test -n "$lua_CFLAGS"; then 19097 pkg_cv_lua_CFLAGS="$lua_CFLAGS" 19098 elif test -n "$PKG_CONFIG"; then 19099 if test -n "$PKG_CONFIG" && \ 19100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 19101 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 19102 ac_status=$? 19103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19104 test $ac_status = 0; }; then 19105 pkg_cv_lua_CFLAGS=`$PKG_CONFIG --cflags "${with_lua}" 2>/dev/null` 19106 test "x$?" != "x0" && pkg_failed=yes 19107else 19108 pkg_failed=yes 19109fi 19110 else 19111 pkg_failed=untried 19112fi 19113if test -n "$lua_LIBS"; then 19114 pkg_cv_lua_LIBS="$lua_LIBS" 19115 elif test -n "$PKG_CONFIG"; then 19116 if test -n "$PKG_CONFIG" && \ 19117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\${with_lua}\""; } >&5 19118 ($PKG_CONFIG --exists --print-errors "${with_lua}") 2>&5 19119 ac_status=$? 19120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19121 test $ac_status = 0; }; then 19122 pkg_cv_lua_LIBS=`$PKG_CONFIG --libs "${with_lua}" 2>/dev/null` 19123 test "x$?" != "x0" && pkg_failed=yes 19124else 19125 pkg_failed=yes 19126fi 19127 else 19128 pkg_failed=untried 19129fi 19130 19131 19132 19133if test $pkg_failed = yes; then 19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19135$as_echo "no" >&6; } 19136 19137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19138 _pkg_short_errors_supported=yes 19139else 19140 _pkg_short_errors_supported=no 19141fi 19142 if test $_pkg_short_errors_supported = yes; then 19143 lua_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "${with_lua}" 2>&1` 19144 else 19145 lua_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "${with_lua}" 2>&1` 19146 fi 19147 # Put the nasty error message in config.log where it belongs 19148 echo "$lua_PKG_ERRORS" >&5 19149 19150 as_fn_error $? "Package requirements (${with_lua}) were not met: 19151 19152$lua_PKG_ERRORS 19153 19154Consider adjusting the PKG_CONFIG_PATH environment variable if you 19155installed software in a non-standard prefix. 19156 19157Alternatively, you may set the environment variables lua_CFLAGS 19158and lua_LIBS to avoid the need to call pkg-config. 19159See the pkg-config man page for more details." "$LINENO" 5 19160elif test $pkg_failed = untried; then 19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19162$as_echo "no" >&6; } 19163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19165as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19166is in your PATH or set the PKG_CONFIG environment variable to the full 19167path to pkg-config. 19168 19169Alternatively, you may set the environment variables lua_CFLAGS 19170and lua_LIBS to avoid the need to call pkg-config. 19171See the pkg-config man page for more details. 19172 19173To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19174See \`config.log' for more details" "$LINENO" 5; } 19175else 19176 lua_CFLAGS=$pkg_cv_lua_CFLAGS 19177 lua_LIBS=$pkg_cv_lua_LIBS 19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19179$as_echo "yes" >&6; } 19180 aclove_lua_found=yes 19181fi 19182else 19183 lua_CFLAGS=$pkg_cv_lua_CFLAGS 19184 lua_LIBS=$pkg_cv_lua_LIBS 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19186$as_echo "yes" >&6; } 19187 aclove_lua_found=yes 19188fi 19189else 19190 lua_CFLAGS=$pkg_cv_lua_CFLAGS 19191 lua_LIBS=$pkg_cv_lua_LIBS 19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19193$as_echo "yes" >&6; } 19194 aclove_lua_found=yes 19195fi 19196 19197 if test "x$aclove_lua_found" = xyes; then : 19198 19199 aclove_luaheaders_found=yes 19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_call" >&5 19201$as_echo_n "checking for library containing lua_call... " >&6; } 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lua_LIBS}" >&5 19203$as_echo "${lua_LIBS}" >&6; } 19204 19205fi 19206 if test "x$aclove_lua_found" = xno; then : 19207 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find pkg-config definition for ${with_lua}${with_luaversion} or ${with_lua}${with_clean_luaversion}${with_lua}, falling back to manual detection" >&5 19209$as_echo "$as_me: WARNING: Could not find pkg-config definition for ${with_lua}${with_luaversion} or ${with_lua}${with_clean_luaversion}${with_lua}, falling back to manual detection" >&2;} 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_call" >&5 19211$as_echo_n "checking for library containing lua_call... " >&6; } 19212if ${ac_cv_search_lua_call+:} false; then : 19213 $as_echo_n "(cached) " >&6 19214else 19215 ac_func_search_save_LIBS=$LIBS 19216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19217/* end confdefs.h. */ 19218 19219/* Override any GCC internal prototype to avoid an error. 19220 Use char because int might match the return type of a GCC 19221 builtin and then its argument prototype would still apply. */ 19222#ifdef __cplusplus 19223extern "C" 19224#endif 19225char lua_call (); 19226int 19227main () 19228{ 19229return lua_call (); 19230 ; 19231 return 0; 19232} 19233_ACEOF 19234for ac_lib in '' "${with_lua}${with_luaversion}" "${with_lua}"; do 19235 if test -z "$ac_lib"; then 19236 ac_res="none required" 19237 else 19238 ac_res=-l$ac_lib 19239 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19240 fi 19241 if ac_fn_cxx_try_link "$LINENO"; then : 19242 ac_cv_search_lua_call=$ac_res 19243fi 19244rm -f core conftest.err conftest.$ac_objext \ 19245 conftest$ac_exeext 19246 if ${ac_cv_search_lua_call+:} false; then : 19247 break 19248fi 19249done 19250if ${ac_cv_search_lua_call+:} false; then : 19251 19252else 19253 ac_cv_search_lua_call=no 19254fi 19255rm conftest.$ac_ext 19256LIBS=$ac_func_search_save_LIBS 19257fi 19258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_call" >&5 19259$as_echo "$ac_cv_search_lua_call" >&6; } 19260ac_res=$ac_cv_search_lua_call 19261if test "$ac_res" != no; then : 19262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19263 aclove_lua_found=yes 19264else 19265 as_fn_error $? "LÖVE needs \"$with_lua\", please install \"$with_lua\" with development files and try again" "$LINENO" 5 19266fi 19267 19268 19269 as_ac_Header=`$as_echo "ac_cv_header_"${with_lua}${with_luaversion}/lua.h"" | $as_tr_sh` 19270ac_fn_cxx_check_header_mongrel "$LINENO" ""${with_lua}${with_luaversion}/lua.h"" "$as_ac_Header" "$ac_includes_default" 19271if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19272 aclove_luaheaders_found=yes includes="$includes -I/usr/include/${with_lua}${with_luaversion}" 19273fi 19274 19275 19276 as_ac_Header=`$as_echo "ac_cv_header_"${with_lua}/lua.h"" | $as_tr_sh` 19277ac_fn_cxx_check_header_mongrel "$LINENO" ""${with_lua}/lua.h"" "$as_ac_Header" "$ac_includes_default" 19278if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19279 aclove_luaheaders_found=yes includes="$includes -I/usr/include/${with_lua}" 19280fi 19281 19282 19283fi 19284 if test "x$aclove_luaheaders_found" = xno; then : 19285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate lua headers for ${with_lua}${with_luaversion} or ${with_lua}, you probably need to specify them with CPPFLAGS" >&5 19286$as_echo "$as_me: WARNING: Could not locate lua headers for ${with_lua}${with_luaversion} or ${with_lua}, you probably need to specify them with CPPFLAGS" >&2;} 19287fi 19288 19289 aclove_sdl2_found=no 19290 19291# Check whether --with-sdl-prefix was given. 19292if test "${with_sdl_prefix+set}" = set; then : 19293 withval=$with_sdl_prefix; sdl_prefix="$withval" 19294else 19295 sdl_prefix="" 19296fi 19297 19298 19299# Check whether --with-sdl-exec-prefix was given. 19300if test "${with_sdl_exec_prefix+set}" = set; then : 19301 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 19302else 19303 sdl_exec_prefix="" 19304fi 19305 19306# Check whether --enable-sdltest was given. 19307if test "${enable_sdltest+set}" = set; then : 19308 enableval=$enable_sdltest; 19309else 19310 enable_sdltest=yes 19311fi 19312 19313# Check whether --enable-sdlframework was given. 19314if test "${enable_sdlframework+set}" = set; then : 19315 enableval=$enable_sdlframework; 19316else 19317 search_sdl_framework=yes 19318fi 19319 19320 19321 19322 19323 min_sdl_version=2.0.0 19324 19325 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then 19326 19327pkg_failed=no 19328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 19329$as_echo_n "checking for SDL... " >&6; } 19330 19331if test -n "$SDL_CFLAGS"; then 19332 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" 19333 elif test -n "$PKG_CONFIG"; then 19334 if test -n "$PKG_CONFIG" && \ 19335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 19336 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 19337 ac_status=$? 19338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19339 test $ac_status = 0; }; then 19340 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null` 19341 test "x$?" != "x0" && pkg_failed=yes 19342else 19343 pkg_failed=yes 19344fi 19345 else 19346 pkg_failed=untried 19347fi 19348if test -n "$SDL_LIBS"; then 19349 pkg_cv_SDL_LIBS="$SDL_LIBS" 19350 elif test -n "$PKG_CONFIG"; then 19351 if test -n "$PKG_CONFIG" && \ 19352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 19353 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 19354 ac_status=$? 19355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19356 test $ac_status = 0; }; then 19357 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null` 19358 test "x$?" != "x0" && pkg_failed=yes 19359else 19360 pkg_failed=yes 19361fi 19362 else 19363 pkg_failed=untried 19364fi 19365 19366 19367 19368if test $pkg_failed = yes; then 19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19370$as_echo "no" >&6; } 19371 19372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19373 _pkg_short_errors_supported=yes 19374else 19375 _pkg_short_errors_supported=no 19376fi 19377 if test $_pkg_short_errors_supported = yes; then 19378 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1` 19379 else 19380 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1` 19381 fi 19382 # Put the nasty error message in config.log where it belongs 19383 echo "$SDL_PKG_ERRORS" >&5 19384 19385 sdl_pc=no 19386elif test $pkg_failed = untried; then 19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19388$as_echo "no" >&6; } 19389 sdl_pc=no 19390else 19391 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS 19392 SDL_LIBS=$pkg_cv_SDL_LIBS 19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19394$as_echo "yes" >&6; } 19395 sdl_pc=yes 19396fi 19397 else 19398 sdl_pc=no 19399 if test x$sdl_exec_prefix != x ; then 19400 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 19401 if test x${SDL2_CONFIG+set} != xset ; then 19402 SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config 19403 fi 19404 fi 19405 if test x$sdl_prefix != x ; then 19406 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 19407 if test x${SDL2_CONFIG+set} != xset ; then 19408 SDL2_CONFIG=$sdl_prefix/bin/sdl2-config 19409 fi 19410 fi 19411 fi 19412 19413 if test "x$sdl_pc" = xyes ; then 19414 no_sdl="" 19415 SDL2_CONFIG="pkg-config sdl2" 19416 else 19417 as_save_PATH="$PATH" 19418 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 19419 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 19420 fi 19421 # Extract the first word of "sdl2-config", so it can be a program name with args. 19422set dummy sdl2-config; ac_word=$2 19423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19424$as_echo_n "checking for $ac_word... " >&6; } 19425if ${ac_cv_path_SDL2_CONFIG+:} false; then : 19426 $as_echo_n "(cached) " >&6 19427else 19428 case $SDL2_CONFIG in 19429 [\\/]* | ?:[\\/]*) 19430 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path. 19431 ;; 19432 *) 19433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19434for as_dir in $PATH 19435do 19436 IFS=$as_save_IFS 19437 test -z "$as_dir" && as_dir=. 19438 for ac_exec_ext in '' $ac_executable_extensions; do 19439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19440 ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19442 break 2 19443 fi 19444done 19445 done 19446IFS=$as_save_IFS 19447 19448 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no" 19449 ;; 19450esac 19451fi 19452SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG 19453if test -n "$SDL2_CONFIG"; then 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5 19455$as_echo "$SDL2_CONFIG" >&6; } 19456else 19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19458$as_echo "no" >&6; } 19459fi 19460 19461 19462 PATH="$as_save_PATH" 19463 no_sdl="" 19464 19465 if test "$SDL2_CONFIG" = "no" -a "x$search_sdl_framework" = "xyes"; then 19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2.framework" >&5 19467$as_echo_n "checking for SDL2.framework... " >&6; } 19468 if test "x$SDL2_FRAMEWORK" != x; then 19469 sdl_framework=$SDL2_FRAMEWORK 19470 else 19471 for d in / ~/ /System/; do 19472 if test -d "$dLibrary/Frameworks/SDL2.framework"; then 19473 sdl_framework="$dLibrary/Frameworks/SDL2.framework" 19474 fi 19475 done 19476 fi 19477 19478 if test x"$sdl_framework" != x && test -d "$sdl_framework"; then 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdl_framework" >&5 19480$as_echo "$sdl_framework" >&6; } 19481 sdl_framework_dir=`dirname $sdl_framework` 19482 SDL_CFLAGS="-F$sdl_framework_dir -Wl,-framework,SDL2 -I$sdl_framework/include" 19483 SDL_LIBS="-F$sdl_framework_dir -Wl,-framework,SDL2" 19484 else 19485 no_sdl=yes 19486 fi 19487 fi 19488 19489 if test "$SDL2_CONFIG" != "no"; then 19490 if test "x$sdl_pc" = "xno"; then 19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 19492$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 19493 SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags` 19494 SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs` 19495 fi 19496 19497 sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \ 19498 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 19499 sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \ 19500 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 19501 sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \ 19502 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 19503 if test "x$enable_sdltest" = "xyes" ; then 19504 ac_save_CFLAGS="$CFLAGS" 19505 ac_save_CXXFLAGS="$CXXFLAGS" 19506 ac_save_LIBS="$LIBS" 19507 CFLAGS="$CFLAGS $SDL_CFLAGS" 19508 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 19509 LIBS="$LIBS $SDL_LIBS" 19510 rm -f conf.sdltest 19511 if test "$cross_compiling" = yes; then : 19512 echo $ac_n "cross compiling; assumed OK... $ac_c" 19513else 19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19515/* end confdefs.h. */ 19516 19517#include <stdio.h> 19518#include <stdlib.h> 19519#include <string.h> 19520#include "SDL.h" 19521 19522char* 19523my_strdup (char *str) 19524{ 19525 char *new_str; 19526 19527 if (str) 19528 { 19529 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 19530 strcpy (new_str, str); 19531 } 19532 else 19533 new_str = NULL; 19534 19535 return new_str; 19536} 19537 19538int main (int argc, char *argv[]) 19539{ 19540 int major, minor, micro; 19541 char *tmp_version; 19542 19543 /* This hangs on some systems (?) 19544 system ("touch conf.sdltest"); 19545 */ 19546 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 19547 19548 /* HP/UX 9 (%@#!) writes to sscanf strings */ 19549 tmp_version = my_strdup("$min_sdl_version"); 19550 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 19551 printf("%s, bad version string\n", "$min_sdl_version"); 19552 exit(1); 19553 } 19554 19555 if (($sdl_major_version > major) || 19556 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 19557 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 19558 { 19559 return 0; 19560 } 19561 else 19562 { 19563 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 19564 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 19565 printf("*** best to upgrade to the required version.\n"); 19566 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); 19567 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 19568 printf("*** config.cache before re-running configure\n"); 19569 return 1; 19570 } 19571} 19572 19573 19574_ACEOF 19575if ac_fn_cxx_try_run "$LINENO"; then : 19576 19577else 19578 no_sdl=yes 19579fi 19580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19581 conftest.$ac_objext conftest.beam conftest.$ac_ext 19582fi 19583 19584 CFLAGS="$ac_save_CFLAGS" 19585 CXXFLAGS="$ac_save_CXXFLAGS" 19586 LIBS="$ac_save_LIBS" 19587 19588 fi 19589 if test "x$sdl_pc" = "xno"; then 19590 if test "x$no_sdl" = "xyes"; then 19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19592$as_echo "no" >&6; } 19593 else 19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19595$as_echo "yes" >&6; } 19596 fi 19597 fi 19598 fi 19599 fi 19600 if test "x$no_sdl" = x ; then 19601 aclove_sdl2_found=yes 19602 else 19603 if test "$SDL2_CONFIG" = "no" ; then 19604 echo "*** The sdl2-config script installed by SDL could not be found" 19605 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 19606 echo "*** your path, or set the SDL2_CONFIG environment variable to the" 19607 echo "*** full path to sdl2-config." 19608 else 19609 if test -f conf.sdltest ; then 19610 : 19611 else 19612 echo "*** Could not run SDL test program, checking why..." 19613 CFLAGS="$CFLAGS $SDL_CFLAGS" 19614 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 19615 LIBS="$LIBS $SDL_LIBS" 19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19617/* end confdefs.h. */ 19618 19619#include <stdio.h> 19620#include "SDL.h" 19621 19622int main(int argc, char *argv[]) 19623{ return 0; } 19624#undef main 19625#define main K_and_R_C_main 19626 19627int 19628main () 19629{ 19630 return 0; 19631 ; 19632 return 0; 19633} 19634_ACEOF 19635if ac_fn_cxx_try_link "$LINENO"; then : 19636 echo "*** The test program compiled, but did not run. This usually means" 19637 echo "*** that the run-time linker is not finding SDL or finding the wrong" 19638 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 19639 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 19640 echo "*** to the installed location Also, make sure you have run ldconfig if that" 19641 echo "*** is required on your system" 19642 echo "***" 19643 echo "*** If you have an old version installed, it is best to remove it, although" 19644 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 19645else 19646 echo "*** The test program failed to compile or link. See the file config.log for the" 19647 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 19648 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 19649 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG" 19650fi 19651rm -f core conftest.err conftest.$ac_objext \ 19652 conftest$ac_exeext conftest.$ac_ext 19653 CFLAGS="$ac_save_CFLAGS" 19654 CXXFLAGS="$ac_save_CXXFLAGS" 19655 LIBS="$ac_save_LIBS" 19656 fi 19657 fi 19658 SDL_CFLAGS="" 19659 SDL_LIBS="" 19660 : 19661 fi 19662 19663 19664 rm -f conf.sdltest 19665 19666 if test "x$aclove_sdl2_found" = xno; then : 19667 as_fn_error $? "LÖVE needs \"SDL 2\", please install \"SDL 2\" with development files and try again" "$LINENO" 5 19668fi 19669 19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 19671$as_echo_n "checking for library containing sqrt... " >&6; } 19672if ${ac_cv_search_sqrt+:} false; then : 19673 $as_echo_n "(cached) " >&6 19674else 19675 ac_func_search_save_LIBS=$LIBS 19676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19677/* end confdefs.h. */ 19678 19679/* Override any GCC internal prototype to avoid an error. 19680 Use char because int might match the return type of a GCC 19681 builtin and then its argument prototype would still apply. */ 19682#ifdef __cplusplus 19683extern "C" 19684#endif 19685char sqrt (); 19686int 19687main () 19688{ 19689return sqrt (); 19690 ; 19691 return 0; 19692} 19693_ACEOF 19694for ac_lib in '' m; do 19695 if test -z "$ac_lib"; then 19696 ac_res="none required" 19697 else 19698 ac_res=-l$ac_lib 19699 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19700 fi 19701 if ac_fn_cxx_try_link "$LINENO"; then : 19702 ac_cv_search_sqrt=$ac_res 19703fi 19704rm -f core conftest.err conftest.$ac_objext \ 19705 conftest$ac_exeext 19706 if ${ac_cv_search_sqrt+:} false; then : 19707 break 19708fi 19709done 19710if ${ac_cv_search_sqrt+:} false; then : 19711 19712else 19713 ac_cv_search_sqrt=no 19714fi 19715rm conftest.$ac_ext 19716LIBS=$ac_func_search_save_LIBS 19717fi 19718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 19719$as_echo "$ac_cv_search_sqrt" >&6; } 19720ac_res=$ac_cv_search_sqrt 19721if test "$ac_res" != no; then : 19722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19723 19724else 19725 as_fn_error $? "LÖVE needs \"the C math library\", please install \"the C math library\" with development files and try again" "$LINENO" 5 19726fi 19727 19728 19729 19730pkg_failed=no 19731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5 19732$as_echo_n "checking for zlib... " >&6; } 19733 19734if test -n "$zlib_CFLAGS"; then 19735 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS" 19736 elif test -n "$PKG_CONFIG"; then 19737 if test -n "$PKG_CONFIG" && \ 19738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 19739 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 19740 ac_status=$? 19741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19742 test $ac_status = 0; }; then 19743 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 19744 test "x$?" != "x0" && pkg_failed=yes 19745else 19746 pkg_failed=yes 19747fi 19748 else 19749 pkg_failed=untried 19750fi 19751if test -n "$zlib_LIBS"; then 19752 pkg_cv_zlib_LIBS="$zlib_LIBS" 19753 elif test -n "$PKG_CONFIG"; then 19754 if test -n "$PKG_CONFIG" && \ 19755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 19756 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 19757 ac_status=$? 19758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19759 test $ac_status = 0; }; then 19760 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 19761 test "x$?" != "x0" && pkg_failed=yes 19762else 19763 pkg_failed=yes 19764fi 19765 else 19766 pkg_failed=untried 19767fi 19768 19769 19770 19771if test $pkg_failed = yes; then 19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19773$as_echo "no" >&6; } 19774 19775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19776 _pkg_short_errors_supported=yes 19777else 19778 _pkg_short_errors_supported=no 19779fi 19780 if test $_pkg_short_errors_supported = yes; then 19781 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 19782 else 19783 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 19784 fi 19785 # Put the nasty error message in config.log where it belongs 19786 echo "$zlib_PKG_ERRORS" >&5 19787 19788 as_fn_error $? "LÖVE needs \"zlib\", please install \"zlib\" with development files and try again" "$LINENO" 5 19789elif test $pkg_failed = untried; then 19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19791$as_echo "no" >&6; } 19792 as_fn_error $? "LÖVE needs \"zlib\", please install \"zlib\" with development files and try again" "$LINENO" 5 19793else 19794 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS 19795 zlib_LIBS=$pkg_cv_zlib_LIBS 19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19797$as_echo "yes" >&6; } 19798 19799fi 19800 19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 19802$as_echo_n "checking for library containing pthread_create... " >&6; } 19803if ${ac_cv_search_pthread_create+:} false; then : 19804 $as_echo_n "(cached) " >&6 19805else 19806 ac_func_search_save_LIBS=$LIBS 19807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19808/* end confdefs.h. */ 19809 19810/* Override any GCC internal prototype to avoid an error. 19811 Use char because int might match the return type of a GCC 19812 builtin and then its argument prototype would still apply. */ 19813#ifdef __cplusplus 19814extern "C" 19815#endif 19816char pthread_create (); 19817int 19818main () 19819{ 19820return pthread_create (); 19821 ; 19822 return 0; 19823} 19824_ACEOF 19825for ac_lib in '' pthread; do 19826 if test -z "$ac_lib"; then 19827 ac_res="none required" 19828 else 19829 ac_res=-l$ac_lib 19830 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19831 fi 19832 if ac_fn_cxx_try_link "$LINENO"; then : 19833 ac_cv_search_pthread_create=$ac_res 19834fi 19835rm -f core conftest.err conftest.$ac_objext \ 19836 conftest$ac_exeext 19837 if ${ac_cv_search_pthread_create+:} false; then : 19838 break 19839fi 19840done 19841if ${ac_cv_search_pthread_create+:} false; then : 19842 19843else 19844 ac_cv_search_pthread_create=no 19845fi 19846rm conftest.$ac_ext 19847LIBS=$ac_func_search_save_LIBS 19848fi 19849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 19850$as_echo "$ac_cv_search_pthread_create" >&6; } 19851ac_res=$ac_cv_search_pthread_create 19852if test "$ac_res" != no; then : 19853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19854 19855else 19856 as_fn_error $? "LÖVE needs \"the POSIX threads library\", please install \"the POSIX threads library\" with development files and try again" "$LINENO" 5 19857fi 19858 19859 19860# Conditional dependencies 19861if test "x$enable_module_audio" = xyes; then : 19862 19863 19864pkg_failed=no 19865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openal" >&5 19866$as_echo_n "checking for openal... " >&6; } 19867 19868if test -n "$openal_CFLAGS"; then 19869 pkg_cv_openal_CFLAGS="$openal_CFLAGS" 19870 elif test -n "$PKG_CONFIG"; then 19871 if test -n "$PKG_CONFIG" && \ 19872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal\""; } >&5 19873 ($PKG_CONFIG --exists --print-errors "openal") 2>&5 19874 ac_status=$? 19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19876 test $ac_status = 0; }; then 19877 pkg_cv_openal_CFLAGS=`$PKG_CONFIG --cflags "openal" 2>/dev/null` 19878 test "x$?" != "x0" && pkg_failed=yes 19879else 19880 pkg_failed=yes 19881fi 19882 else 19883 pkg_failed=untried 19884fi 19885if test -n "$openal_LIBS"; then 19886 pkg_cv_openal_LIBS="$openal_LIBS" 19887 elif test -n "$PKG_CONFIG"; then 19888 if test -n "$PKG_CONFIG" && \ 19889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal\""; } >&5 19890 ($PKG_CONFIG --exists --print-errors "openal") 2>&5 19891 ac_status=$? 19892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19893 test $ac_status = 0; }; then 19894 pkg_cv_openal_LIBS=`$PKG_CONFIG --libs "openal" 2>/dev/null` 19895 test "x$?" != "x0" && pkg_failed=yes 19896else 19897 pkg_failed=yes 19898fi 19899 else 19900 pkg_failed=untried 19901fi 19902 19903 19904 19905if test $pkg_failed = yes; then 19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19907$as_echo "no" >&6; } 19908 19909if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19910 _pkg_short_errors_supported=yes 19911else 19912 _pkg_short_errors_supported=no 19913fi 19914 if test $_pkg_short_errors_supported = yes; then 19915 openal_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openal" 2>&1` 19916 else 19917 openal_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openal" 2>&1` 19918 fi 19919 # Put the nasty error message in config.log where it belongs 19920 echo "$openal_PKG_ERRORS" >&5 19921 19922 as_fn_error $? "LÖVE needs \"OpenAL\", please install \"OpenAL\" with development files and try again" "$LINENO" 5 19923elif test $pkg_failed = untried; then 19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19925$as_echo "no" >&6; } 19926 as_fn_error $? "LÖVE needs \"OpenAL\", please install \"OpenAL\" with development files and try again" "$LINENO" 5 19927else 19928 openal_CFLAGS=$pkg_cv_openal_CFLAGS 19929 openal_LIBS=$pkg_cv_openal_LIBS 19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19931$as_echo "yes" >&6; } 19932 19933fi 19934fi 19935if test "x$enable_module_font" = xyes; then : 19936 19937 19938pkg_failed=no 19939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 19940$as_echo_n "checking for freetype2... " >&6; } 19941 19942if test -n "$freetype2_CFLAGS"; then 19943 pkg_cv_freetype2_CFLAGS="$freetype2_CFLAGS" 19944 elif test -n "$PKG_CONFIG"; then 19945 if test -n "$PKG_CONFIG" && \ 19946 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 19947 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 19948 ac_status=$? 19949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19950 test $ac_status = 0; }; then 19951 pkg_cv_freetype2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 19952 test "x$?" != "x0" && pkg_failed=yes 19953else 19954 pkg_failed=yes 19955fi 19956 else 19957 pkg_failed=untried 19958fi 19959if test -n "$freetype2_LIBS"; then 19960 pkg_cv_freetype2_LIBS="$freetype2_LIBS" 19961 elif test -n "$PKG_CONFIG"; then 19962 if test -n "$PKG_CONFIG" && \ 19963 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 19964 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 19965 ac_status=$? 19966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19967 test $ac_status = 0; }; then 19968 pkg_cv_freetype2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 19969 test "x$?" != "x0" && pkg_failed=yes 19970else 19971 pkg_failed=yes 19972fi 19973 else 19974 pkg_failed=untried 19975fi 19976 19977 19978 19979if test $pkg_failed = yes; then 19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19981$as_echo "no" >&6; } 19982 19983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19984 _pkg_short_errors_supported=yes 19985else 19986 _pkg_short_errors_supported=no 19987fi 19988 if test $_pkg_short_errors_supported = yes; then 19989 freetype2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 19990 else 19991 freetype2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 19992 fi 19993 # Put the nasty error message in config.log where it belongs 19994 echo "$freetype2_PKG_ERRORS" >&5 19995 19996 as_fn_error $? "LÖVE needs \"FreeType2\", please install \"FreeType2\" with development files and try again" "$LINENO" 5 19997elif test $pkg_failed = untried; then 19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19999$as_echo "no" >&6; } 20000 as_fn_error $? "LÖVE needs \"FreeType2\", please install \"FreeType2\" with development files and try again" "$LINENO" 5 20001else 20002 freetype2_CFLAGS=$pkg_cv_freetype2_CFLAGS 20003 freetype2_LIBS=$pkg_cv_freetype2_LIBS 20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20005$as_echo "yes" >&6; } 20006 20007fi 20008fi 20009if test "x$enable_module_sound" = xyes; then : 20010 20011 20012 20013pkg_failed=no 20014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmodplug" >&5 20015$as_echo_n "checking for libmodplug... " >&6; } 20016 20017if test -n "$libmodplug_CFLAGS"; then 20018 pkg_cv_libmodplug_CFLAGS="$libmodplug_CFLAGS" 20019 elif test -n "$PKG_CONFIG"; then 20020 if test -n "$PKG_CONFIG" && \ 20021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug\""; } >&5 20022 ($PKG_CONFIG --exists --print-errors "libmodplug") 2>&5 20023 ac_status=$? 20024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20025 test $ac_status = 0; }; then 20026 pkg_cv_libmodplug_CFLAGS=`$PKG_CONFIG --cflags "libmodplug" 2>/dev/null` 20027 test "x$?" != "x0" && pkg_failed=yes 20028else 20029 pkg_failed=yes 20030fi 20031 else 20032 pkg_failed=untried 20033fi 20034if test -n "$libmodplug_LIBS"; then 20035 pkg_cv_libmodplug_LIBS="$libmodplug_LIBS" 20036 elif test -n "$PKG_CONFIG"; then 20037 if test -n "$PKG_CONFIG" && \ 20038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug\""; } >&5 20039 ($PKG_CONFIG --exists --print-errors "libmodplug") 2>&5 20040 ac_status=$? 20041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20042 test $ac_status = 0; }; then 20043 pkg_cv_libmodplug_LIBS=`$PKG_CONFIG --libs "libmodplug" 2>/dev/null` 20044 test "x$?" != "x0" && pkg_failed=yes 20045else 20046 pkg_failed=yes 20047fi 20048 else 20049 pkg_failed=untried 20050fi 20051 20052 20053 20054if test $pkg_failed = yes; then 20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20056$as_echo "no" >&6; } 20057 20058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20059 _pkg_short_errors_supported=yes 20060else 20061 _pkg_short_errors_supported=no 20062fi 20063 if test $_pkg_short_errors_supported = yes; then 20064 libmodplug_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmodplug" 2>&1` 20065 else 20066 libmodplug_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmodplug" 2>&1` 20067 fi 20068 # Put the nasty error message in config.log where it belongs 20069 echo "$libmodplug_PKG_ERRORS" >&5 20070 20071 as_fn_error $? "LÖVE needs \"libmodplug\", please install \"libmodplug\" with development files and try again" "$LINENO" 5 20072elif test $pkg_failed = untried; then 20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20074$as_echo "no" >&6; } 20075 as_fn_error $? "LÖVE needs \"libmodplug\", please install \"libmodplug\" with development files and try again" "$LINENO" 5 20076else 20077 libmodplug_CFLAGS=$pkg_cv_libmodplug_CFLAGS 20078 libmodplug_LIBS=$pkg_cv_libmodplug_LIBS 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20080$as_echo "yes" >&6; } 20081 20082fi 20083 20084 20085pkg_failed=no 20086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbisfile" >&5 20087$as_echo_n "checking for vorbisfile... " >&6; } 20088 20089if test -n "$vorbisfile_CFLAGS"; then 20090 pkg_cv_vorbisfile_CFLAGS="$vorbisfile_CFLAGS" 20091 elif test -n "$PKG_CONFIG"; then 20092 if test -n "$PKG_CONFIG" && \ 20093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisfile\""; } >&5 20094 ($PKG_CONFIG --exists --print-errors "vorbisfile") 2>&5 20095 ac_status=$? 20096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20097 test $ac_status = 0; }; then 20098 pkg_cv_vorbisfile_CFLAGS=`$PKG_CONFIG --cflags "vorbisfile" 2>/dev/null` 20099 test "x$?" != "x0" && pkg_failed=yes 20100else 20101 pkg_failed=yes 20102fi 20103 else 20104 pkg_failed=untried 20105fi 20106if test -n "$vorbisfile_LIBS"; then 20107 pkg_cv_vorbisfile_LIBS="$vorbisfile_LIBS" 20108 elif test -n "$PKG_CONFIG"; then 20109 if test -n "$PKG_CONFIG" && \ 20110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisfile\""; } >&5 20111 ($PKG_CONFIG --exists --print-errors "vorbisfile") 2>&5 20112 ac_status=$? 20113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20114 test $ac_status = 0; }; then 20115 pkg_cv_vorbisfile_LIBS=`$PKG_CONFIG --libs "vorbisfile" 2>/dev/null` 20116 test "x$?" != "x0" && pkg_failed=yes 20117else 20118 pkg_failed=yes 20119fi 20120 else 20121 pkg_failed=untried 20122fi 20123 20124 20125 20126if test $pkg_failed = yes; then 20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20128$as_echo "no" >&6; } 20129 20130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20131 _pkg_short_errors_supported=yes 20132else 20133 _pkg_short_errors_supported=no 20134fi 20135 if test $_pkg_short_errors_supported = yes; then 20136 vorbisfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vorbisfile" 2>&1` 20137 else 20138 vorbisfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vorbisfile" 2>&1` 20139 fi 20140 # Put the nasty error message in config.log where it belongs 20141 echo "$vorbisfile_PKG_ERRORS" >&5 20142 20143 as_fn_error $? "LÖVE needs \"libvorbis and libvorbisfile\", please install \"libvorbis and libvorbisfile\" with development files and try again" "$LINENO" 5 20144elif test $pkg_failed = untried; then 20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20146$as_echo "no" >&6; } 20147 as_fn_error $? "LÖVE needs \"libvorbis and libvorbisfile\", please install \"libvorbis and libvorbisfile\" with development files and try again" "$LINENO" 5 20148else 20149 vorbisfile_CFLAGS=$pkg_cv_vorbisfile_CFLAGS 20150 vorbisfile_LIBS=$pkg_cv_vorbisfile_LIBS 20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20152$as_echo "yes" >&6; } 20153 20154fi 20155 20156else 20157 enable_mpg123=no 20158fi 20159if test "x$enable_module_video" = xyes; then : 20160 20161 20162pkg_failed=no 20163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for theora" >&5 20164$as_echo_n "checking for theora... " >&6; } 20165 20166if test -n "$theora_CFLAGS"; then 20167 pkg_cv_theora_CFLAGS="$theora_CFLAGS" 20168 elif test -n "$PKG_CONFIG"; then 20169 if test -n "$PKG_CONFIG" && \ 20170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoradec\""; } >&5 20171 ($PKG_CONFIG --exists --print-errors "theoradec") 2>&5 20172 ac_status=$? 20173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20174 test $ac_status = 0; }; then 20175 pkg_cv_theora_CFLAGS=`$PKG_CONFIG --cflags "theoradec" 2>/dev/null` 20176 test "x$?" != "x0" && pkg_failed=yes 20177else 20178 pkg_failed=yes 20179fi 20180 else 20181 pkg_failed=untried 20182fi 20183if test -n "$theora_LIBS"; then 20184 pkg_cv_theora_LIBS="$theora_LIBS" 20185 elif test -n "$PKG_CONFIG"; then 20186 if test -n "$PKG_CONFIG" && \ 20187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"theoradec\""; } >&5 20188 ($PKG_CONFIG --exists --print-errors "theoradec") 2>&5 20189 ac_status=$? 20190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20191 test $ac_status = 0; }; then 20192 pkg_cv_theora_LIBS=`$PKG_CONFIG --libs "theoradec" 2>/dev/null` 20193 test "x$?" != "x0" && pkg_failed=yes 20194else 20195 pkg_failed=yes 20196fi 20197 else 20198 pkg_failed=untried 20199fi 20200 20201 20202 20203if test $pkg_failed = yes; then 20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20205$as_echo "no" >&6; } 20206 20207if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20208 _pkg_short_errors_supported=yes 20209else 20210 _pkg_short_errors_supported=no 20211fi 20212 if test $_pkg_short_errors_supported = yes; then 20213 theora_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "theoradec" 2>&1` 20214 else 20215 theora_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "theoradec" 2>&1` 20216 fi 20217 # Put the nasty error message in config.log where it belongs 20218 echo "$theora_PKG_ERRORS" >&5 20219 20220 as_fn_error $? "LÖVE needs \"libtheora\", please install \"libtheora\" with development files and try again" "$LINENO" 5 20221elif test $pkg_failed = untried; then 20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20223$as_echo "no" >&6; } 20224 as_fn_error $? "LÖVE needs \"libtheora\", please install \"libtheora\" with development files and try again" "$LINENO" 5 20225else 20226 theora_CFLAGS=$pkg_cv_theora_CFLAGS 20227 theora_LIBS=$pkg_cv_theora_LIBS 20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20229$as_echo "yes" >&6; } 20230 20231fi 20232fi 20233if test "x$enable_gme" = xyes; then : 20234 20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gme_open_data" >&5 20236$as_echo_n "checking for library containing gme_open_data... " >&6; } 20237if ${ac_cv_search_gme_open_data+:} false; then : 20238 $as_echo_n "(cached) " >&6 20239else 20240 ac_func_search_save_LIBS=$LIBS 20241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20242/* end confdefs.h. */ 20243 20244/* Override any GCC internal prototype to avoid an error. 20245 Use char because int might match the return type of a GCC 20246 builtin and then its argument prototype would still apply. */ 20247#ifdef __cplusplus 20248extern "C" 20249#endif 20250char gme_open_data (); 20251int 20252main () 20253{ 20254return gme_open_data (); 20255 ; 20256 return 0; 20257} 20258_ACEOF 20259for ac_lib in '' gme; do 20260 if test -z "$ac_lib"; then 20261 ac_res="none required" 20262 else 20263 ac_res=-l$ac_lib 20264 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20265 fi 20266 if ac_fn_cxx_try_link "$LINENO"; then : 20267 ac_cv_search_gme_open_data=$ac_res 20268fi 20269rm -f core conftest.err conftest.$ac_objext \ 20270 conftest$ac_exeext 20271 if ${ac_cv_search_gme_open_data+:} false; then : 20272 break 20273fi 20274done 20275if ${ac_cv_search_gme_open_data+:} false; then : 20276 20277else 20278 ac_cv_search_gme_open_data=no 20279fi 20280rm conftest.$ac_ext 20281LIBS=$ac_func_search_save_LIBS 20282fi 20283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gme_open_data" >&5 20284$as_echo "$ac_cv_search_gme_open_data" >&6; } 20285ac_res=$ac_cv_search_gme_open_data 20286if test "$ac_res" != no; then : 20287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20288 20289else 20290 as_fn_error $? "LÖVE needs \"gme\", please install \"gme\" with development files and try again" "$LINENO" 5 20291fi 20292 20293 20294$as_echo "#define LOVE_SUPPORT_GME /**/" >>confdefs.h 20295 20296 ac_fn_cxx_check_header_mongrel "$LINENO" "gme/gme.h" "ac_cv_header_gme_gme_h" "$ac_includes_default" 20297if test "x$ac_cv_header_gme_gme_h" = xyes; then : 20298 includes="$includes -I/usr/include/gme" 20299fi 20300 20301 20302fi 20303if test "x$enable_mpg123" = xno; then : 20304 20305$as_echo "#define LOVE_NOMPG123 /**/" >>confdefs.h 20306 20307else 20308 20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mpg123_open_feed" >&5 20310$as_echo_n "checking for library containing mpg123_open_feed... " >&6; } 20311if ${ac_cv_search_mpg123_open_feed+:} false; then : 20312 $as_echo_n "(cached) " >&6 20313else 20314 ac_func_search_save_LIBS=$LIBS 20315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20316/* end confdefs.h. */ 20317 20318/* Override any GCC internal prototype to avoid an error. 20319 Use char because int might match the return type of a GCC 20320 builtin and then its argument prototype would still apply. */ 20321#ifdef __cplusplus 20322extern "C" 20323#endif 20324char mpg123_open_feed (); 20325int 20326main () 20327{ 20328return mpg123_open_feed (); 20329 ; 20330 return 0; 20331} 20332_ACEOF 20333for ac_lib in '' mpg123; do 20334 if test -z "$ac_lib"; then 20335 ac_res="none required" 20336 else 20337 ac_res=-l$ac_lib 20338 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20339 fi 20340 if ac_fn_cxx_try_link "$LINENO"; then : 20341 ac_cv_search_mpg123_open_feed=$ac_res 20342fi 20343rm -f core conftest.err conftest.$ac_objext \ 20344 conftest$ac_exeext 20345 if ${ac_cv_search_mpg123_open_feed+:} false; then : 20346 break 20347fi 20348done 20349if ${ac_cv_search_mpg123_open_feed+:} false; then : 20350 20351else 20352 ac_cv_search_mpg123_open_feed=no 20353fi 20354rm conftest.$ac_ext 20355LIBS=$ac_func_search_save_LIBS 20356fi 20357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mpg123_open_feed" >&5 20358$as_echo "$ac_cv_search_mpg123_open_feed" >&6; } 20359ac_res=$ac_cv_search_mpg123_open_feed 20360if test "$ac_res" != no; then : 20361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20362 20363else 20364 as_fn_error $? "LÖVE needs \"libmpg123\", please install \"libmpg123\" with development files and try again" "$LINENO" 5 20365fi 20366 20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mpg123_seek_64" >&5 20368$as_echo_n "checking for library containing mpg123_seek_64... " >&6; } 20369if ${ac_cv_search_mpg123_seek_64+:} false; then : 20370 $as_echo_n "(cached) " >&6 20371else 20372 ac_func_search_save_LIBS=$LIBS 20373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20374/* end confdefs.h. */ 20375 20376/* Override any GCC internal prototype to avoid an error. 20377 Use char because int might match the return type of a GCC 20378 builtin and then its argument prototype would still apply. */ 20379#ifdef __cplusplus 20380extern "C" 20381#endif 20382char mpg123_seek_64 (); 20383int 20384main () 20385{ 20386return mpg123_seek_64 (); 20387 ; 20388 return 0; 20389} 20390_ACEOF 20391for ac_lib in '' mpg123; do 20392 if test -z "$ac_lib"; then 20393 ac_res="none required" 20394 else 20395 ac_res=-l$ac_lib 20396 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20397 fi 20398 if ac_fn_cxx_try_link "$LINENO"; then : 20399 ac_cv_search_mpg123_seek_64=$ac_res 20400fi 20401rm -f core conftest.err conftest.$ac_objext \ 20402 conftest$ac_exeext 20403 if ${ac_cv_search_mpg123_seek_64+:} false; then : 20404 break 20405fi 20406done 20407if ${ac_cv_search_mpg123_seek_64+:} false; then : 20408 20409else 20410 ac_cv_search_mpg123_seek_64=no 20411fi 20412rm conftest.$ac_ext 20413LIBS=$ac_func_search_save_LIBS 20414fi 20415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mpg123_seek_64" >&5 20416$as_echo "$ac_cv_search_mpg123_seek_64" >&6; } 20417ac_res=$ac_cv_search_mpg123_seek_64 20418if test "$ac_res" != no; then : 20419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20420 FILE_OFFSET=-D_FILE_OFFSET_BITS=64 20421 20422fi 20423 20424fi 20425 20426# Add flags for optional libraries 20427# Check whether --enable-library-enet was given. 20428if test "${enable_library_enet+set}" = set; then : 20429 enableval=$enable_library_enet; 20430else 20431 enable_library_enet=yes 20432fi 20433 20434# Check whether --enable-library-luasocket was given. 20435if test "${enable_library_luasocket+set}" = set; then : 20436 enableval=$enable_library_luasocket; 20437else 20438 enable_library_luasocket=yes 20439fi 20440 20441# Check whether --enable-library-lua53 was given. 20442if test "${enable_library_lua53+set}" = set; then : 20443 enableval=$enable_library_lua53; 20444else 20445 enable_library_lua53=yes 20446fi 20447 20448 20449# Select the libraries we need to build, based on the selected modules 20450if test "x$enable_module_filesystem" = xyes; then : 20451 enable_library_physfs=yes 20452else 20453 enable_library_physfs=no 20454fi 20455if test "x$enable_module_physics" = xyes; then : 20456 enable_library_Box2D=yes 20457else 20458 enable_library_Box2D=no 20459fi 20460if test "x$enable_module_image" = xyes; then : 20461 enable_library_ddsparse=yes 20462else 20463 enable_library_ddsparse=no 20464fi 20465if test "x$enable_module_graphics" = xyes; then : 20466 enable_library_glad=yes 20467else 20468 enable_library_glad=no 20469fi 20470if test "x$enable_module_graphics" = xyes; then : 20471 enable_library_glslang=yes 20472else 20473 enable_library_glslang=no 20474fi 20475if test "x$enable_module_image" = xyes; then : 20476 enable_library_lodepng=yes 20477else 20478 enable_library_lodepng=no 20479fi 20480if test "x$enable_module_data" = xyes; then : 20481 enable_library_lua53=yes 20482fi 20483if test "x$enable_module_math" = xyes; then : 20484 enable_library_lz4=yes 20485else 20486 enable_library_lz4=no 20487fi 20488if test "x$enable_module_math" = xyes; then : 20489 enable_library_noise1234=yes 20490else 20491 enable_library_noise1234=no 20492fi 20493if test "x$enable_module_image" = xyes; then : 20494 enable_library_stb=yes 20495else 20496 enable_library_stb=no 20497fi 20498if test "x$enable_module_image" = xyes; then : 20499 enable_library_tinyexr=yes 20500else 20501 enable_library_tinyexr=no 20502fi 20503if test "x$enable_module_sound" = xyes; then : 20504 enable_library_Wuff=yes 20505else 20506 enable_library_Wuff=no 20507fi 20508if test "x$enable_module_graphics" = xyes; then : 20509 enable_library_xxHash=yes 20510else 20511 enable_library_xxHash=no 20512fi 20513 20514# Utf8 is required by both graphics and font, so enable if either is enabled 20515enable_library_utf8=no 20516if test "x$enable_module_graphics" = xyes; then : 20517 enable_library_utf8=yes 20518fi 20519if test "x$enable_module_font" = xyes; then : 20520 enable_library_utf8=yes 20521fi 20522 20523# libenet check for socklen_t 20524 20525 ac_fn_cxx_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 20526 #include <sys/socket.h> 20527 20528" 20529if test "x$ac_cv_type_socklen_t" = xyes; then : 20530 20531$as_echo "#define HAS_SOCKLEN_T 1" >>confdefs.h 20532 20533fi 20534 20535 20536# Generated sources for enabling/disabling modules 20537 20538if test x"$enable_module_audio" = xyes; then 20539 $as_echo "#define LOVE_ENABLE_AUDIO /**/" >>confdefs.h 20540 20541fi 20542 if test x$enable_module_audio = xyes; then 20543 LOVE_MODULE_AUDIO_TRUE= 20544 LOVE_MODULE_AUDIO_FALSE='#' 20545else 20546 LOVE_MODULE_AUDIO_TRUE='#' 20547 LOVE_MODULE_AUDIO_FALSE= 20548fi 20549 20550 20551 20552if test x"$enable_module_data" = xyes; then 20553 $as_echo "#define LOVE_ENABLE_DATA /**/" >>confdefs.h 20554 20555fi 20556 if test x$enable_module_data = xyes; then 20557 LOVE_MODULE_DATA_TRUE= 20558 LOVE_MODULE_DATA_FALSE='#' 20559else 20560 LOVE_MODULE_DATA_TRUE='#' 20561 LOVE_MODULE_DATA_FALSE= 20562fi 20563 20564 20565 20566if test x"$enable_module_event" = xyes; then 20567 $as_echo "#define LOVE_ENABLE_EVENT /**/" >>confdefs.h 20568 20569fi 20570 if test x$enable_module_event = xyes; then 20571 LOVE_MODULE_EVENT_TRUE= 20572 LOVE_MODULE_EVENT_FALSE='#' 20573else 20574 LOVE_MODULE_EVENT_TRUE='#' 20575 LOVE_MODULE_EVENT_FALSE= 20576fi 20577 20578 20579 20580if test x"$enable_module_filesystem" = xyes; then 20581 $as_echo "#define LOVE_ENABLE_FILESYSTEM /**/" >>confdefs.h 20582 20583fi 20584 if test x$enable_module_filesystem = xyes; then 20585 LOVE_MODULE_FILESYSTEM_TRUE= 20586 LOVE_MODULE_FILESYSTEM_FALSE='#' 20587else 20588 LOVE_MODULE_FILESYSTEM_TRUE='#' 20589 LOVE_MODULE_FILESYSTEM_FALSE= 20590fi 20591 20592 20593 20594if test x"$enable_module_font" = xyes; then 20595 $as_echo "#define LOVE_ENABLE_FONT /**/" >>confdefs.h 20596 20597fi 20598 if test x$enable_module_font = xyes; then 20599 LOVE_MODULE_FONT_TRUE= 20600 LOVE_MODULE_FONT_FALSE='#' 20601else 20602 LOVE_MODULE_FONT_TRUE='#' 20603 LOVE_MODULE_FONT_FALSE= 20604fi 20605 20606 20607 20608if test x"$enable_module_graphics" = xyes; then 20609 $as_echo "#define LOVE_ENABLE_GRAPHICS /**/" >>confdefs.h 20610 20611fi 20612 if test x$enable_module_graphics = xyes; then 20613 LOVE_MODULE_GRAPHICS_TRUE= 20614 LOVE_MODULE_GRAPHICS_FALSE='#' 20615else 20616 LOVE_MODULE_GRAPHICS_TRUE='#' 20617 LOVE_MODULE_GRAPHICS_FALSE= 20618fi 20619 20620 20621 20622if test x"$enable_module_image" = xyes; then 20623 $as_echo "#define LOVE_ENABLE_IMAGE /**/" >>confdefs.h 20624 20625fi 20626 if test x$enable_module_image = xyes; then 20627 LOVE_MODULE_IMAGE_TRUE= 20628 LOVE_MODULE_IMAGE_FALSE='#' 20629else 20630 LOVE_MODULE_IMAGE_TRUE='#' 20631 LOVE_MODULE_IMAGE_FALSE= 20632fi 20633 20634 20635 20636if test x"$enable_module_joystick" = xyes; then 20637 $as_echo "#define LOVE_ENABLE_JOYSTICK /**/" >>confdefs.h 20638 20639fi 20640 if test x$enable_module_joystick = xyes; then 20641 LOVE_MODULE_JOYSTICK_TRUE= 20642 LOVE_MODULE_JOYSTICK_FALSE='#' 20643else 20644 LOVE_MODULE_JOYSTICK_TRUE='#' 20645 LOVE_MODULE_JOYSTICK_FALSE= 20646fi 20647 20648 20649 20650if test x"$enable_module_keyboard" = xyes; then 20651 $as_echo "#define LOVE_ENABLE_KEYBOARD /**/" >>confdefs.h 20652 20653fi 20654 if test x$enable_module_keyboard = xyes; then 20655 LOVE_MODULE_KEYBOARD_TRUE= 20656 LOVE_MODULE_KEYBOARD_FALSE='#' 20657else 20658 LOVE_MODULE_KEYBOARD_TRUE='#' 20659 LOVE_MODULE_KEYBOARD_FALSE= 20660fi 20661 20662 20663 20664if test x"$enable_module_love" = xyes; then 20665 $as_echo "#define LOVE_ENABLE_LOVE /**/" >>confdefs.h 20666 20667fi 20668 if test x$enable_module_love = xyes; then 20669 LOVE_MODULE_LOVE_TRUE= 20670 LOVE_MODULE_LOVE_FALSE='#' 20671else 20672 LOVE_MODULE_LOVE_TRUE='#' 20673 LOVE_MODULE_LOVE_FALSE= 20674fi 20675 20676 20677 20678if test x"$enable_module_math" = xyes; then 20679 $as_echo "#define LOVE_ENABLE_MATH /**/" >>confdefs.h 20680 20681fi 20682 if test x$enable_module_math = xyes; then 20683 LOVE_MODULE_MATH_TRUE= 20684 LOVE_MODULE_MATH_FALSE='#' 20685else 20686 LOVE_MODULE_MATH_TRUE='#' 20687 LOVE_MODULE_MATH_FALSE= 20688fi 20689 20690 20691 20692if test x"$enable_module_mouse" = xyes; then 20693 $as_echo "#define LOVE_ENABLE_MOUSE /**/" >>confdefs.h 20694 20695fi 20696 if test x$enable_module_mouse = xyes; then 20697 LOVE_MODULE_MOUSE_TRUE= 20698 LOVE_MODULE_MOUSE_FALSE='#' 20699else 20700 LOVE_MODULE_MOUSE_TRUE='#' 20701 LOVE_MODULE_MOUSE_FALSE= 20702fi 20703 20704 20705 20706if test x"$enable_module_physics" = xyes; then 20707 $as_echo "#define LOVE_ENABLE_PHYSICS /**/" >>confdefs.h 20708 20709fi 20710 if test x$enable_module_physics = xyes; then 20711 LOVE_MODULE_PHYSICS_TRUE= 20712 LOVE_MODULE_PHYSICS_FALSE='#' 20713else 20714 LOVE_MODULE_PHYSICS_TRUE='#' 20715 LOVE_MODULE_PHYSICS_FALSE= 20716fi 20717 20718 20719 20720if test x"$enable_module_sound" = xyes; then 20721 $as_echo "#define LOVE_ENABLE_SOUND /**/" >>confdefs.h 20722 20723fi 20724 if test x$enable_module_sound = xyes; then 20725 LOVE_MODULE_SOUND_TRUE= 20726 LOVE_MODULE_SOUND_FALSE='#' 20727else 20728 LOVE_MODULE_SOUND_TRUE='#' 20729 LOVE_MODULE_SOUND_FALSE= 20730fi 20731 20732 20733 20734if test x"$enable_module_system" = xyes; then 20735 $as_echo "#define LOVE_ENABLE_SYSTEM /**/" >>confdefs.h 20736 20737fi 20738 if test x$enable_module_system = xyes; then 20739 LOVE_MODULE_SYSTEM_TRUE= 20740 LOVE_MODULE_SYSTEM_FALSE='#' 20741else 20742 LOVE_MODULE_SYSTEM_TRUE='#' 20743 LOVE_MODULE_SYSTEM_FALSE= 20744fi 20745 20746 20747 20748if test x"$enable_module_thread" = xyes; then 20749 $as_echo "#define LOVE_ENABLE_THREAD /**/" >>confdefs.h 20750 20751fi 20752 if test x$enable_module_thread = xyes; then 20753 LOVE_MODULE_THREAD_TRUE= 20754 LOVE_MODULE_THREAD_FALSE='#' 20755else 20756 LOVE_MODULE_THREAD_TRUE='#' 20757 LOVE_MODULE_THREAD_FALSE= 20758fi 20759 20760 20761 20762if test x"$enable_module_timer" = xyes; then 20763 $as_echo "#define LOVE_ENABLE_TIMER /**/" >>confdefs.h 20764 20765fi 20766 if test x$enable_module_timer = xyes; then 20767 LOVE_MODULE_TIMER_TRUE= 20768 LOVE_MODULE_TIMER_FALSE='#' 20769else 20770 LOVE_MODULE_TIMER_TRUE='#' 20771 LOVE_MODULE_TIMER_FALSE= 20772fi 20773 20774 20775 20776if test x"$enable_module_touch" = xyes; then 20777 $as_echo "#define LOVE_ENABLE_TOUCH /**/" >>confdefs.h 20778 20779fi 20780 if test x$enable_module_touch = xyes; then 20781 LOVE_MODULE_TOUCH_TRUE= 20782 LOVE_MODULE_TOUCH_FALSE='#' 20783else 20784 LOVE_MODULE_TOUCH_TRUE='#' 20785 LOVE_MODULE_TOUCH_FALSE= 20786fi 20787 20788 20789 20790if test x"$enable_module_video" = xyes; then 20791 $as_echo "#define LOVE_ENABLE_VIDEO /**/" >>confdefs.h 20792 20793fi 20794 if test x$enable_module_video = xyes; then 20795 LOVE_MODULE_VIDEO_TRUE= 20796 LOVE_MODULE_VIDEO_FALSE='#' 20797else 20798 LOVE_MODULE_VIDEO_TRUE='#' 20799 LOVE_MODULE_VIDEO_FALSE= 20800fi 20801 20802 20803 20804if test x"$enable_module_window" = xyes; then 20805 $as_echo "#define LOVE_ENABLE_WINDOW /**/" >>confdefs.h 20806 20807fi 20808 if test x$enable_module_window = xyes; then 20809 LOVE_MODULE_WINDOW_TRUE= 20810 LOVE_MODULE_WINDOW_FALSE='#' 20811else 20812 LOVE_MODULE_WINDOW_TRUE='#' 20813 LOVE_MODULE_WINDOW_FALSE= 20814fi 20815 20816 20817 20818if test x"$enable_library_Box2D" = xyes; then 20819 $as_echo "#define LOVE_ENABLE_BOX2D /**/" >>confdefs.h 20820 20821fi 20822 if test x$enable_library_Box2D = xyes; then 20823 LOVE_LIBRARY_BOX2D_TRUE= 20824 LOVE_LIBRARY_BOX2D_FALSE='#' 20825else 20826 LOVE_LIBRARY_BOX2D_TRUE='#' 20827 LOVE_LIBRARY_BOX2D_FALSE= 20828fi 20829 20830 20831 20832if test x"$enable_library_ddsparse" = xyes; then 20833 $as_echo "#define LOVE_ENABLE_DDSPARSE /**/" >>confdefs.h 20834 20835fi 20836 if test x$enable_library_ddsparse = xyes; then 20837 LOVE_LIBRARY_DDSPARSE_TRUE= 20838 LOVE_LIBRARY_DDSPARSE_FALSE='#' 20839else 20840 LOVE_LIBRARY_DDSPARSE_TRUE='#' 20841 LOVE_LIBRARY_DDSPARSE_FALSE= 20842fi 20843 20844 20845 20846if test x"$enable_library_dr_flac" = xyes; then 20847 $as_echo "#define LOVE_ENABLE_DR_FLAC /**/" >>confdefs.h 20848 20849fi 20850 if test x$enable_library_dr_flac = xyes; then 20851 LOVE_LIBRARY_DR_FLAC_TRUE= 20852 LOVE_LIBRARY_DR_FLAC_FALSE='#' 20853else 20854 LOVE_LIBRARY_DR_FLAC_TRUE='#' 20855 LOVE_LIBRARY_DR_FLAC_FALSE= 20856fi 20857 20858 20859 20860if test x"$enable_library_enet" = xyes; then 20861 $as_echo "#define LOVE_ENABLE_ENET /**/" >>confdefs.h 20862 20863fi 20864 if test x$enable_library_enet = xyes; then 20865 LOVE_LIBRARY_ENET_TRUE= 20866 LOVE_LIBRARY_ENET_FALSE='#' 20867else 20868 LOVE_LIBRARY_ENET_TRUE='#' 20869 LOVE_LIBRARY_ENET_FALSE= 20870fi 20871 20872 20873 20874if test x"$enable_library_glad" = xyes; then 20875 $as_echo "#define LOVE_ENABLE_GLAD /**/" >>confdefs.h 20876 20877fi 20878 if test x$enable_library_glad = xyes; then 20879 LOVE_LIBRARY_GLAD_TRUE= 20880 LOVE_LIBRARY_GLAD_FALSE='#' 20881else 20882 LOVE_LIBRARY_GLAD_TRUE='#' 20883 LOVE_LIBRARY_GLAD_FALSE= 20884fi 20885 20886 20887 20888if test x"$enable_library_glslang" = xyes; then 20889 $as_echo "#define LOVE_ENABLE_GLSLANG /**/" >>confdefs.h 20890 20891fi 20892 if test x$enable_library_glslang = xyes; then 20893 LOVE_LIBRARY_GLSLANG_TRUE= 20894 LOVE_LIBRARY_GLSLANG_FALSE='#' 20895else 20896 LOVE_LIBRARY_GLSLANG_TRUE='#' 20897 LOVE_LIBRARY_GLSLANG_FALSE= 20898fi 20899 20900 20901 20902if test x"$enable_library_lodepng" = xyes; then 20903 $as_echo "#define LOVE_ENABLE_LODEPNG /**/" >>confdefs.h 20904 20905fi 20906 if test x$enable_library_lodepng = xyes; then 20907 LOVE_LIBRARY_LODEPNG_TRUE= 20908 LOVE_LIBRARY_LODEPNG_FALSE='#' 20909else 20910 LOVE_LIBRARY_LODEPNG_TRUE='#' 20911 LOVE_LIBRARY_LODEPNG_FALSE= 20912fi 20913 20914 20915 20916if test x"$enable_library_lua53" = xyes; then 20917 $as_echo "#define LOVE_ENABLE_LUA53 /**/" >>confdefs.h 20918 20919fi 20920 if test x$enable_library_lua53 = xyes; then 20921 LOVE_LIBRARY_LUA53_TRUE= 20922 LOVE_LIBRARY_LUA53_FALSE='#' 20923else 20924 LOVE_LIBRARY_LUA53_TRUE='#' 20925 LOVE_LIBRARY_LUA53_FALSE= 20926fi 20927 20928 20929 20930if test x"$enable_library_luasocket" = xyes; then 20931 $as_echo "#define LOVE_ENABLE_LUASOCKET /**/" >>confdefs.h 20932 20933fi 20934 if test x$enable_library_luasocket = xyes; then 20935 LOVE_LIBRARY_LUASOCKET_TRUE= 20936 LOVE_LIBRARY_LUASOCKET_FALSE='#' 20937else 20938 LOVE_LIBRARY_LUASOCKET_TRUE='#' 20939 LOVE_LIBRARY_LUASOCKET_FALSE= 20940fi 20941 20942 20943 20944if test x"$enable_library_lz4" = xyes; then 20945 $as_echo "#define LOVE_ENABLE_LZ4 /**/" >>confdefs.h 20946 20947fi 20948 if test x$enable_library_lz4 = xyes; then 20949 LOVE_LIBRARY_LZ4_TRUE= 20950 LOVE_LIBRARY_LZ4_FALSE='#' 20951else 20952 LOVE_LIBRARY_LZ4_TRUE='#' 20953 LOVE_LIBRARY_LZ4_FALSE= 20954fi 20955 20956 20957 20958if test x"$enable_library_noise1234" = xyes; then 20959 $as_echo "#define LOVE_ENABLE_NOISE1234 /**/" >>confdefs.h 20960 20961fi 20962 if test x$enable_library_noise1234 = xyes; then 20963 LOVE_LIBRARY_NOISE1234_TRUE= 20964 LOVE_LIBRARY_NOISE1234_FALSE='#' 20965else 20966 LOVE_LIBRARY_NOISE1234_TRUE='#' 20967 LOVE_LIBRARY_NOISE1234_FALSE= 20968fi 20969 20970 20971 20972if test x"$enable_library_physfs" = xyes; then 20973 $as_echo "#define LOVE_ENABLE_PHYSFS /**/" >>confdefs.h 20974 20975fi 20976 if test x$enable_library_physfs = xyes; then 20977 LOVE_LIBRARY_PHYSFS_TRUE= 20978 LOVE_LIBRARY_PHYSFS_FALSE='#' 20979else 20980 LOVE_LIBRARY_PHYSFS_TRUE='#' 20981 LOVE_LIBRARY_PHYSFS_FALSE= 20982fi 20983 20984 20985 20986if test x"$enable_library_stb" = xyes; then 20987 $as_echo "#define LOVE_ENABLE_STB /**/" >>confdefs.h 20988 20989fi 20990 if test x$enable_library_stb = xyes; then 20991 LOVE_LIBRARY_STB_TRUE= 20992 LOVE_LIBRARY_STB_FALSE='#' 20993else 20994 LOVE_LIBRARY_STB_TRUE='#' 20995 LOVE_LIBRARY_STB_FALSE= 20996fi 20997 20998 20999 21000if test x"$enable_library_tinyexr" = xyes; then 21001 $as_echo "#define LOVE_ENABLE_TINYEXR /**/" >>confdefs.h 21002 21003fi 21004 if test x$enable_library_tinyexr = xyes; then 21005 LOVE_LIBRARY_TINYEXR_TRUE= 21006 LOVE_LIBRARY_TINYEXR_FALSE='#' 21007else 21008 LOVE_LIBRARY_TINYEXR_TRUE='#' 21009 LOVE_LIBRARY_TINYEXR_FALSE= 21010fi 21011 21012 21013 21014if test x"$enable_library_utf8" = xyes; then 21015 $as_echo "#define LOVE_ENABLE_UTF8 /**/" >>confdefs.h 21016 21017fi 21018 if test x$enable_library_utf8 = xyes; then 21019 LOVE_LIBRARY_UTF8_TRUE= 21020 LOVE_LIBRARY_UTF8_FALSE='#' 21021else 21022 LOVE_LIBRARY_UTF8_TRUE='#' 21023 LOVE_LIBRARY_UTF8_FALSE= 21024fi 21025 21026 21027 21028if test x"$enable_library_Wuff" = xyes; then 21029 $as_echo "#define LOVE_ENABLE_WUFF /**/" >>confdefs.h 21030 21031fi 21032 if test x$enable_library_Wuff = xyes; then 21033 LOVE_LIBRARY_WUFF_TRUE= 21034 LOVE_LIBRARY_WUFF_FALSE='#' 21035else 21036 LOVE_LIBRARY_WUFF_TRUE='#' 21037 LOVE_LIBRARY_WUFF_FALSE= 21038fi 21039 21040 21041 21042if test x"$enable_library_xxHash" = xyes; then 21043 $as_echo "#define LOVE_ENABLE_XXHASH /**/" >>confdefs.h 21044 21045fi 21046 if test x$enable_library_xxHash = xyes; then 21047 LOVE_LIBRARY_XXHASH_TRUE= 21048 LOVE_LIBRARY_XXHASH_FALSE='#' 21049else 21050 LOVE_LIBRARY_XXHASH_TRUE='#' 21051 LOVE_LIBRARY_XXHASH_FALSE= 21052fi 21053 21054 21055 21056 21057 21058# Optionally build the executable (default on) 21059# Check whether --enable-exe was given. 21060if test "${enable_exe+set}" = set; then : 21061 enableval=$enable_exe; 21062else 21063 enable_exe=yes 21064fi 21065 21066 21067if test "x$enable_exe" = xno; then : 21068 21069else 21070 #else 21071 21072$as_echo "#define LOVE_BUILD_EXE /**/" >>confdefs.h 21073 21074fi 21075 21076 if test "x$enable_exe" != xno; then 21077 LOVE_BUILD_EXE_TRUE= 21078 LOVE_BUILD_EXE_FALSE='#' 21079else 21080 LOVE_BUILD_EXE_TRUE='#' 21081 LOVE_BUILD_EXE_FALSE= 21082fi 21083 21084 if test "x$enable_mpg123" = xno; then 21085 LOVE_NOMPG123_TRUE= 21086 LOVE_NOMPG123_FALSE='#' 21087else 21088 LOVE_NOMPG123_TRUE='#' 21089 LOVE_NOMPG123_FALSE= 21090fi 21091 21092 if test "x$enable_osx" != xno; then 21093 LOVE_TARGET_OSX_TRUE= 21094 LOVE_TARGET_OSX_FALSE='#' 21095else 21096 LOVE_TARGET_OSX_TRUE='#' 21097 LOVE_TARGET_OSX_FALSE= 21098fi 21099 21100 21101# Automatic script file rebuilding 21102for ac_prog in "${with_lua}${with_luaversion}" "${with_lua}" "lua" 21103do 21104 # Extract the first word of "$ac_prog", so it can be a program name with args. 21105set dummy $ac_prog; ac_word=$2 21106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21107$as_echo_n "checking for $ac_word... " >&6; } 21108if ${ac_cv_prog_LUA_EXECUTABLE+:} false; then : 21109 $as_echo_n "(cached) " >&6 21110else 21111 if test -n "$LUA_EXECUTABLE"; then 21112 ac_cv_prog_LUA_EXECUTABLE="$LUA_EXECUTABLE" # Let the user override the test. 21113else 21114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21115for as_dir in $PATH 21116do 21117 IFS=$as_save_IFS 21118 test -z "$as_dir" && as_dir=. 21119 for ac_exec_ext in '' $ac_executable_extensions; do 21120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21121 ac_cv_prog_LUA_EXECUTABLE="$ac_prog" 21122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21123 break 2 21124 fi 21125done 21126 done 21127IFS=$as_save_IFS 21128 21129fi 21130fi 21131LUA_EXECUTABLE=$ac_cv_prog_LUA_EXECUTABLE 21132if test -n "$LUA_EXECUTABLE"; then 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_EXECUTABLE" >&5 21134$as_echo "$LUA_EXECUTABLE" >&6; } 21135else 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21137$as_echo "no" >&6; } 21138fi 21139 21140 21141 test -n "$LUA_EXECUTABLE" && break 21142done 21143test -n "$LUA_EXECUTABLE" || LUA_EXECUTABLE=":" 21144 21145if test "x$LUA_EXECUTABLE" = x:; then : 21146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find a lua executable, you may need to update the scripts manually if you change them" >&5 21147$as_echo "$as_me: WARNING: Did not find a lua executable, you may need to update the scripts manually if you change them" >&2;} 21148fi 21149 21150# Set our includes as automake variable 21151LOVE_INCLUDES="$includes" 21152 21153 21154ac_config_files="$ac_config_files Makefile src/Makefile platform/unix/debian/control platform/unix/debian/changelog platform/unix/debian/rules" 21155 21156cat >confcache <<\_ACEOF 21157# This file is a shell script that caches the results of configure 21158# tests run on this system so they can be shared between configure 21159# scripts and configure runs, see configure's option --config-cache. 21160# It is not useful on other systems. If it contains results you don't 21161# want to keep, you may remove or edit it. 21162# 21163# config.status only pays attention to the cache file if you give it 21164# the --recheck option to rerun configure. 21165# 21166# `ac_cv_env_foo' variables (set or unset) will be overridden when 21167# loading this file, other *unset* `ac_cv_foo' will be assigned the 21168# following values. 21169 21170_ACEOF 21171 21172# The following way of writing the cache mishandles newlines in values, 21173# but we know of no workaround that is simple, portable, and efficient. 21174# So, we kill variables containing newlines. 21175# Ultrix sh set writes to stderr and can't be redirected directly, 21176# and sets the high bit in the cache file unless we assign to the vars. 21177( 21178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21179 eval ac_val=\$$ac_var 21180 case $ac_val in #( 21181 *${as_nl}*) 21182 case $ac_var in #( 21183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21184$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21185 esac 21186 case $ac_var in #( 21187 _ | IFS | as_nl) ;; #( 21188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21189 *) { eval $ac_var=; unset $ac_var;} ;; 21190 esac ;; 21191 esac 21192 done 21193 21194 (set) 2>&1 | 21195 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21196 *${as_nl}ac_space=\ *) 21197 # `set' does not quote correctly, so add quotes: double-quote 21198 # substitution turns \\\\ into \\, and sed turns \\ into \. 21199 sed -n \ 21200 "s/'/'\\\\''/g; 21201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21202 ;; #( 21203 *) 21204 # `set' quotes correctly as required by POSIX, so do not add quotes. 21205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21206 ;; 21207 esac | 21208 sort 21209) | 21210 sed ' 21211 /^ac_cv_env_/b end 21212 t clear 21213 :clear 21214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21215 t end 21216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21217 :end' >>confcache 21218if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21219 if test -w "$cache_file"; then 21220 if test "x$cache_file" != "x/dev/null"; then 21221 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21222$as_echo "$as_me: updating cache $cache_file" >&6;} 21223 if test ! -f "$cache_file" || test -h "$cache_file"; then 21224 cat confcache >"$cache_file" 21225 else 21226 case $cache_file in #( 21227 */* | ?:*) 21228 mv -f confcache "$cache_file"$$ && 21229 mv -f "$cache_file"$$ "$cache_file" ;; #( 21230 *) 21231 mv -f confcache "$cache_file" ;; 21232 esac 21233 fi 21234 fi 21235 else 21236 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21237$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21238 fi 21239fi 21240rm -f confcache 21241 21242test "x$prefix" = xNONE && prefix=$ac_default_prefix 21243# Let make expand exec_prefix. 21244test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21245 21246DEFS=-DHAVE_CONFIG_H 21247 21248ac_libobjs= 21249ac_ltlibobjs= 21250U= 21251for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21252 # 1. Remove the extension, and $U if already installed. 21253 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21254 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21256 # will be set to the directory where LIBOBJS objects are built. 21257 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21258 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21259done 21260LIBOBJS=$ac_libobjs 21261 21262LTLIBOBJS=$ac_ltlibobjs 21263 21264 21265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21266$as_echo_n "checking that generated files are newer than configure... " >&6; } 21267 if test -n "$am_sleep_pid"; then 21268 # Hide warnings about reused PIDs. 21269 wait $am_sleep_pid 2>/dev/null 21270 fi 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21272$as_echo "done" >&6; } 21273 if test -n "$EXEEXT"; then 21274 am__EXEEXT_TRUE= 21275 am__EXEEXT_FALSE='#' 21276else 21277 am__EXEEXT_TRUE='#' 21278 am__EXEEXT_FALSE= 21279fi 21280 21281if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21282 as_fn_error $? "conditional \"AMDEP\" was never defined. 21283Usually this means the macro was only invoked conditionally." "$LINENO" 5 21284fi 21285if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21286 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21287Usually this means the macro was only invoked conditionally." "$LINENO" 5 21288fi 21289if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21290 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21291Usually this means the macro was only invoked conditionally." "$LINENO" 5 21292fi 21293if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21294 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21295Usually this means the macro was only invoked conditionally." "$LINENO" 5 21296fi 21297if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then 21298 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. 21299Usually this means the macro was only invoked conditionally." "$LINENO" 5 21300fi 21301 21302if test -z "${LOVE_MODULE_AUDIO_TRUE}" && test -z "${LOVE_MODULE_AUDIO_FALSE}"; then 21303 as_fn_error $? "conditional \"LOVE_MODULE_AUDIO\" was never defined. 21304Usually this means the macro was only invoked conditionally." "$LINENO" 5 21305fi 21306if test -z "${LOVE_MODULE_DATA_TRUE}" && test -z "${LOVE_MODULE_DATA_FALSE}"; then 21307 as_fn_error $? "conditional \"LOVE_MODULE_DATA\" was never defined. 21308Usually this means the macro was only invoked conditionally." "$LINENO" 5 21309fi 21310if test -z "${LOVE_MODULE_EVENT_TRUE}" && test -z "${LOVE_MODULE_EVENT_FALSE}"; then 21311 as_fn_error $? "conditional \"LOVE_MODULE_EVENT\" was never defined. 21312Usually this means the macro was only invoked conditionally." "$LINENO" 5 21313fi 21314if test -z "${LOVE_MODULE_FILESYSTEM_TRUE}" && test -z "${LOVE_MODULE_FILESYSTEM_FALSE}"; then 21315 as_fn_error $? "conditional \"LOVE_MODULE_FILESYSTEM\" was never defined. 21316Usually this means the macro was only invoked conditionally." "$LINENO" 5 21317fi 21318if test -z "${LOVE_MODULE_FONT_TRUE}" && test -z "${LOVE_MODULE_FONT_FALSE}"; then 21319 as_fn_error $? "conditional \"LOVE_MODULE_FONT\" was never defined. 21320Usually this means the macro was only invoked conditionally." "$LINENO" 5 21321fi 21322if test -z "${LOVE_MODULE_GRAPHICS_TRUE}" && test -z "${LOVE_MODULE_GRAPHICS_FALSE}"; then 21323 as_fn_error $? "conditional \"LOVE_MODULE_GRAPHICS\" was never defined. 21324Usually this means the macro was only invoked conditionally." "$LINENO" 5 21325fi 21326if test -z "${LOVE_MODULE_IMAGE_TRUE}" && test -z "${LOVE_MODULE_IMAGE_FALSE}"; then 21327 as_fn_error $? "conditional \"LOVE_MODULE_IMAGE\" was never defined. 21328Usually this means the macro was only invoked conditionally." "$LINENO" 5 21329fi 21330if test -z "${LOVE_MODULE_JOYSTICK_TRUE}" && test -z "${LOVE_MODULE_JOYSTICK_FALSE}"; then 21331 as_fn_error $? "conditional \"LOVE_MODULE_JOYSTICK\" was never defined. 21332Usually this means the macro was only invoked conditionally." "$LINENO" 5 21333fi 21334if test -z "${LOVE_MODULE_KEYBOARD_TRUE}" && test -z "${LOVE_MODULE_KEYBOARD_FALSE}"; then 21335 as_fn_error $? "conditional \"LOVE_MODULE_KEYBOARD\" was never defined. 21336Usually this means the macro was only invoked conditionally." "$LINENO" 5 21337fi 21338if test -z "${LOVE_MODULE_LOVE_TRUE}" && test -z "${LOVE_MODULE_LOVE_FALSE}"; then 21339 as_fn_error $? "conditional \"LOVE_MODULE_LOVE\" was never defined. 21340Usually this means the macro was only invoked conditionally." "$LINENO" 5 21341fi 21342if test -z "${LOVE_MODULE_MATH_TRUE}" && test -z "${LOVE_MODULE_MATH_FALSE}"; then 21343 as_fn_error $? "conditional \"LOVE_MODULE_MATH\" was never defined. 21344Usually this means the macro was only invoked conditionally." "$LINENO" 5 21345fi 21346if test -z "${LOVE_MODULE_MOUSE_TRUE}" && test -z "${LOVE_MODULE_MOUSE_FALSE}"; then 21347 as_fn_error $? "conditional \"LOVE_MODULE_MOUSE\" was never defined. 21348Usually this means the macro was only invoked conditionally." "$LINENO" 5 21349fi 21350if test -z "${LOVE_MODULE_PHYSICS_TRUE}" && test -z "${LOVE_MODULE_PHYSICS_FALSE}"; then 21351 as_fn_error $? "conditional \"LOVE_MODULE_PHYSICS\" was never defined. 21352Usually this means the macro was only invoked conditionally." "$LINENO" 5 21353fi 21354if test -z "${LOVE_MODULE_SOUND_TRUE}" && test -z "${LOVE_MODULE_SOUND_FALSE}"; then 21355 as_fn_error $? "conditional \"LOVE_MODULE_SOUND\" was never defined. 21356Usually this means the macro was only invoked conditionally." "$LINENO" 5 21357fi 21358if test -z "${LOVE_MODULE_SYSTEM_TRUE}" && test -z "${LOVE_MODULE_SYSTEM_FALSE}"; then 21359 as_fn_error $? "conditional \"LOVE_MODULE_SYSTEM\" was never defined. 21360Usually this means the macro was only invoked conditionally." "$LINENO" 5 21361fi 21362if test -z "${LOVE_MODULE_THREAD_TRUE}" && test -z "${LOVE_MODULE_THREAD_FALSE}"; then 21363 as_fn_error $? "conditional \"LOVE_MODULE_THREAD\" was never defined. 21364Usually this means the macro was only invoked conditionally." "$LINENO" 5 21365fi 21366if test -z "${LOVE_MODULE_TIMER_TRUE}" && test -z "${LOVE_MODULE_TIMER_FALSE}"; then 21367 as_fn_error $? "conditional \"LOVE_MODULE_TIMER\" was never defined. 21368Usually this means the macro was only invoked conditionally." "$LINENO" 5 21369fi 21370if test -z "${LOVE_MODULE_TOUCH_TRUE}" && test -z "${LOVE_MODULE_TOUCH_FALSE}"; then 21371 as_fn_error $? "conditional \"LOVE_MODULE_TOUCH\" was never defined. 21372Usually this means the macro was only invoked conditionally." "$LINENO" 5 21373fi 21374if test -z "${LOVE_MODULE_VIDEO_TRUE}" && test -z "${LOVE_MODULE_VIDEO_FALSE}"; then 21375 as_fn_error $? "conditional \"LOVE_MODULE_VIDEO\" was never defined. 21376Usually this means the macro was only invoked conditionally." "$LINENO" 5 21377fi 21378if test -z "${LOVE_MODULE_WINDOW_TRUE}" && test -z "${LOVE_MODULE_WINDOW_FALSE}"; then 21379 as_fn_error $? "conditional \"LOVE_MODULE_WINDOW\" was never defined. 21380Usually this means the macro was only invoked conditionally." "$LINENO" 5 21381fi 21382if test -z "${LOVE_LIBRARY_BOX2D_TRUE}" && test -z "${LOVE_LIBRARY_BOX2D_FALSE}"; then 21383 as_fn_error $? "conditional \"LOVE_LIBRARY_BOX2D\" was never defined. 21384Usually this means the macro was only invoked conditionally." "$LINENO" 5 21385fi 21386if test -z "${LOVE_LIBRARY_DDSPARSE_TRUE}" && test -z "${LOVE_LIBRARY_DDSPARSE_FALSE}"; then 21387 as_fn_error $? "conditional \"LOVE_LIBRARY_DDSPARSE\" was never defined. 21388Usually this means the macro was only invoked conditionally." "$LINENO" 5 21389fi 21390if test -z "${LOVE_LIBRARY_DR_FLAC_TRUE}" && test -z "${LOVE_LIBRARY_DR_FLAC_FALSE}"; then 21391 as_fn_error $? "conditional \"LOVE_LIBRARY_DR_FLAC\" was never defined. 21392Usually this means the macro was only invoked conditionally." "$LINENO" 5 21393fi 21394if test -z "${LOVE_LIBRARY_ENET_TRUE}" && test -z "${LOVE_LIBRARY_ENET_FALSE}"; then 21395 as_fn_error $? "conditional \"LOVE_LIBRARY_ENET\" was never defined. 21396Usually this means the macro was only invoked conditionally." "$LINENO" 5 21397fi 21398if test -z "${LOVE_LIBRARY_GLAD_TRUE}" && test -z "${LOVE_LIBRARY_GLAD_FALSE}"; then 21399 as_fn_error $? "conditional \"LOVE_LIBRARY_GLAD\" was never defined. 21400Usually this means the macro was only invoked conditionally." "$LINENO" 5 21401fi 21402if test -z "${LOVE_LIBRARY_GLSLANG_TRUE}" && test -z "${LOVE_LIBRARY_GLSLANG_FALSE}"; then 21403 as_fn_error $? "conditional \"LOVE_LIBRARY_GLSLANG\" was never defined. 21404Usually this means the macro was only invoked conditionally." "$LINENO" 5 21405fi 21406if test -z "${LOVE_LIBRARY_LODEPNG_TRUE}" && test -z "${LOVE_LIBRARY_LODEPNG_FALSE}"; then 21407 as_fn_error $? "conditional \"LOVE_LIBRARY_LODEPNG\" was never defined. 21408Usually this means the macro was only invoked conditionally." "$LINENO" 5 21409fi 21410if test -z "${LOVE_LIBRARY_LUA53_TRUE}" && test -z "${LOVE_LIBRARY_LUA53_FALSE}"; then 21411 as_fn_error $? "conditional \"LOVE_LIBRARY_LUA53\" was never defined. 21412Usually this means the macro was only invoked conditionally." "$LINENO" 5 21413fi 21414if test -z "${LOVE_LIBRARY_LUASOCKET_TRUE}" && test -z "${LOVE_LIBRARY_LUASOCKET_FALSE}"; then 21415 as_fn_error $? "conditional \"LOVE_LIBRARY_LUASOCKET\" was never defined. 21416Usually this means the macro was only invoked conditionally." "$LINENO" 5 21417fi 21418if test -z "${LOVE_LIBRARY_LZ4_TRUE}" && test -z "${LOVE_LIBRARY_LZ4_FALSE}"; then 21419 as_fn_error $? "conditional \"LOVE_LIBRARY_LZ4\" was never defined. 21420Usually this means the macro was only invoked conditionally." "$LINENO" 5 21421fi 21422if test -z "${LOVE_LIBRARY_NOISE1234_TRUE}" && test -z "${LOVE_LIBRARY_NOISE1234_FALSE}"; then 21423 as_fn_error $? "conditional \"LOVE_LIBRARY_NOISE1234\" was never defined. 21424Usually this means the macro was only invoked conditionally." "$LINENO" 5 21425fi 21426if test -z "${LOVE_LIBRARY_PHYSFS_TRUE}" && test -z "${LOVE_LIBRARY_PHYSFS_FALSE}"; then 21427 as_fn_error $? "conditional \"LOVE_LIBRARY_PHYSFS\" was never defined. 21428Usually this means the macro was only invoked conditionally." "$LINENO" 5 21429fi 21430if test -z "${LOVE_LIBRARY_STB_TRUE}" && test -z "${LOVE_LIBRARY_STB_FALSE}"; then 21431 as_fn_error $? "conditional \"LOVE_LIBRARY_STB\" was never defined. 21432Usually this means the macro was only invoked conditionally." "$LINENO" 5 21433fi 21434if test -z "${LOVE_LIBRARY_TINYEXR_TRUE}" && test -z "${LOVE_LIBRARY_TINYEXR_FALSE}"; then 21435 as_fn_error $? "conditional \"LOVE_LIBRARY_TINYEXR\" was never defined. 21436Usually this means the macro was only invoked conditionally." "$LINENO" 5 21437fi 21438if test -z "${LOVE_LIBRARY_UTF8_TRUE}" && test -z "${LOVE_LIBRARY_UTF8_FALSE}"; then 21439 as_fn_error $? "conditional \"LOVE_LIBRARY_UTF8\" was never defined. 21440Usually this means the macro was only invoked conditionally." "$LINENO" 5 21441fi 21442if test -z "${LOVE_LIBRARY_WUFF_TRUE}" && test -z "${LOVE_LIBRARY_WUFF_FALSE}"; then 21443 as_fn_error $? "conditional \"LOVE_LIBRARY_WUFF\" was never defined. 21444Usually this means the macro was only invoked conditionally." "$LINENO" 5 21445fi 21446if test -z "${LOVE_LIBRARY_XXHASH_TRUE}" && test -z "${LOVE_LIBRARY_XXHASH_FALSE}"; then 21447 as_fn_error $? "conditional \"LOVE_LIBRARY_XXHASH\" was never defined. 21448Usually this means the macro was only invoked conditionally." "$LINENO" 5 21449fi 21450if test -z "${LOVE_BUILD_EXE_TRUE}" && test -z "${LOVE_BUILD_EXE_FALSE}"; then 21451 as_fn_error $? "conditional \"LOVE_BUILD_EXE\" was never defined. 21452Usually this means the macro was only invoked conditionally." "$LINENO" 5 21453fi 21454if test -z "${LOVE_NOMPG123_TRUE}" && test -z "${LOVE_NOMPG123_FALSE}"; then 21455 as_fn_error $? "conditional \"LOVE_NOMPG123\" was never defined. 21456Usually this means the macro was only invoked conditionally." "$LINENO" 5 21457fi 21458if test -z "${LOVE_TARGET_OSX_TRUE}" && test -z "${LOVE_TARGET_OSX_FALSE}"; then 21459 as_fn_error $? "conditional \"LOVE_TARGET_OSX\" was never defined. 21460Usually this means the macro was only invoked conditionally." "$LINENO" 5 21461fi 21462 21463: "${CONFIG_STATUS=./config.status}" 21464ac_write_fail=0 21465ac_clean_files_save=$ac_clean_files 21466ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21467{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21468$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21469as_write_fail=0 21470cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21471#! $SHELL 21472# Generated by $as_me. 21473# Run this file to recreate the current configuration. 21474# Compiler output produced by configure, useful for debugging 21475# configure, is in config.log if it exists. 21476 21477debug=false 21478ac_cs_recheck=false 21479ac_cs_silent=false 21480 21481SHELL=\${CONFIG_SHELL-$SHELL} 21482export SHELL 21483_ASEOF 21484cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21485## -------------------- ## 21486## M4sh Initialization. ## 21487## -------------------- ## 21488 21489# Be more Bourne compatible 21490DUALCASE=1; export DUALCASE # for MKS sh 21491if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21492 emulate sh 21493 NULLCMD=: 21494 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21495 # is contrary to our usage. Disable this feature. 21496 alias -g '${1+"$@"}'='"$@"' 21497 setopt NO_GLOB_SUBST 21498else 21499 case `(set -o) 2>/dev/null` in #( 21500 *posix*) : 21501 set -o posix ;; #( 21502 *) : 21503 ;; 21504esac 21505fi 21506 21507 21508as_nl=' 21509' 21510export as_nl 21511# Printing a long string crashes Solaris 7 /usr/bin/printf. 21512as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21513as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21514as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21515# Prefer a ksh shell builtin over an external printf program on Solaris, 21516# but without wasting forks for bash or zsh. 21517if test -z "$BASH_VERSION$ZSH_VERSION" \ 21518 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21519 as_echo='print -r --' 21520 as_echo_n='print -rn --' 21521elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21522 as_echo='printf %s\n' 21523 as_echo_n='printf %s' 21524else 21525 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21526 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21527 as_echo_n='/usr/ucb/echo -n' 21528 else 21529 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21530 as_echo_n_body='eval 21531 arg=$1; 21532 case $arg in #( 21533 *"$as_nl"*) 21534 expr "X$arg" : "X\\(.*\\)$as_nl"; 21535 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21536 esac; 21537 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21538 ' 21539 export as_echo_n_body 21540 as_echo_n='sh -c $as_echo_n_body as_echo' 21541 fi 21542 export as_echo_body 21543 as_echo='sh -c $as_echo_body as_echo' 21544fi 21545 21546# The user is always right. 21547if test "${PATH_SEPARATOR+set}" != set; then 21548 PATH_SEPARATOR=: 21549 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21550 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21551 PATH_SEPARATOR=';' 21552 } 21553fi 21554 21555 21556# IFS 21557# We need space, tab and new line, in precisely that order. Quoting is 21558# there to prevent editors from complaining about space-tab. 21559# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21560# splitting by setting IFS to empty value.) 21561IFS=" "" $as_nl" 21562 21563# Find who we are. Look in the path if we contain no directory separator. 21564as_myself= 21565case $0 in #(( 21566 *[\\/]* ) as_myself=$0 ;; 21567 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21568for as_dir in $PATH 21569do 21570 IFS=$as_save_IFS 21571 test -z "$as_dir" && as_dir=. 21572 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21573 done 21574IFS=$as_save_IFS 21575 21576 ;; 21577esac 21578# We did not find ourselves, most probably we were run as `sh COMMAND' 21579# in which case we are not to be found in the path. 21580if test "x$as_myself" = x; then 21581 as_myself=$0 21582fi 21583if test ! -f "$as_myself"; then 21584 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21585 exit 1 21586fi 21587 21588# Unset variables that we do not need and which cause bugs (e.g. in 21589# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21590# suppresses any "Segmentation fault" message there. '((' could 21591# trigger a bug in pdksh 5.2.14. 21592for as_var in BASH_ENV ENV MAIL MAILPATH 21593do eval test x\${$as_var+set} = xset \ 21594 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21595done 21596PS1='$ ' 21597PS2='> ' 21598PS4='+ ' 21599 21600# NLS nuisances. 21601LC_ALL=C 21602export LC_ALL 21603LANGUAGE=C 21604export LANGUAGE 21605 21606# CDPATH. 21607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21608 21609 21610# as_fn_error STATUS ERROR [LINENO LOG_FD] 21611# ---------------------------------------- 21612# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21613# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21614# script with STATUS, using 1 if that was 0. 21615as_fn_error () 21616{ 21617 as_status=$1; test $as_status -eq 0 && as_status=1 21618 if test "$4"; then 21619 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21620 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21621 fi 21622 $as_echo "$as_me: error: $2" >&2 21623 as_fn_exit $as_status 21624} # as_fn_error 21625 21626 21627# as_fn_set_status STATUS 21628# ----------------------- 21629# Set $? to STATUS, without forking. 21630as_fn_set_status () 21631{ 21632 return $1 21633} # as_fn_set_status 21634 21635# as_fn_exit STATUS 21636# ----------------- 21637# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21638as_fn_exit () 21639{ 21640 set +e 21641 as_fn_set_status $1 21642 exit $1 21643} # as_fn_exit 21644 21645# as_fn_unset VAR 21646# --------------- 21647# Portably unset VAR. 21648as_fn_unset () 21649{ 21650 { eval $1=; unset $1;} 21651} 21652as_unset=as_fn_unset 21653# as_fn_append VAR VALUE 21654# ---------------------- 21655# Append the text in VALUE to the end of the definition contained in VAR. Take 21656# advantage of any shell optimizations that allow amortized linear growth over 21657# repeated appends, instead of the typical quadratic growth present in naive 21658# implementations. 21659if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21660 eval 'as_fn_append () 21661 { 21662 eval $1+=\$2 21663 }' 21664else 21665 as_fn_append () 21666 { 21667 eval $1=\$$1\$2 21668 } 21669fi # as_fn_append 21670 21671# as_fn_arith ARG... 21672# ------------------ 21673# Perform arithmetic evaluation on the ARGs, and store the result in the 21674# global $as_val. Take advantage of shells that can avoid forks. The arguments 21675# must be portable across $(()) and expr. 21676if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21677 eval 'as_fn_arith () 21678 { 21679 as_val=$(( $* )) 21680 }' 21681else 21682 as_fn_arith () 21683 { 21684 as_val=`expr "$@" || test $? -eq 1` 21685 } 21686fi # as_fn_arith 21687 21688 21689if expr a : '\(a\)' >/dev/null 2>&1 && 21690 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21691 as_expr=expr 21692else 21693 as_expr=false 21694fi 21695 21696if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21697 as_basename=basename 21698else 21699 as_basename=false 21700fi 21701 21702if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21703 as_dirname=dirname 21704else 21705 as_dirname=false 21706fi 21707 21708as_me=`$as_basename -- "$0" || 21709$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21710 X"$0" : 'X\(//\)$' \| \ 21711 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21712$as_echo X/"$0" | 21713 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21714 s//\1/ 21715 q 21716 } 21717 /^X\/\(\/\/\)$/{ 21718 s//\1/ 21719 q 21720 } 21721 /^X\/\(\/\).*/{ 21722 s//\1/ 21723 q 21724 } 21725 s/.*/./; q'` 21726 21727# Avoid depending upon Character Ranges. 21728as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21730as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21731as_cr_digits='0123456789' 21732as_cr_alnum=$as_cr_Letters$as_cr_digits 21733 21734ECHO_C= ECHO_N= ECHO_T= 21735case `echo -n x` in #((((( 21736-n*) 21737 case `echo 'xy\c'` in 21738 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21739 xy) ECHO_C='\c';; 21740 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21741 ECHO_T=' ';; 21742 esac;; 21743*) 21744 ECHO_N='-n';; 21745esac 21746 21747rm -f conf$$ conf$$.exe conf$$.file 21748if test -d conf$$.dir; then 21749 rm -f conf$$.dir/conf$$.file 21750else 21751 rm -f conf$$.dir 21752 mkdir conf$$.dir 2>/dev/null 21753fi 21754if (echo >conf$$.file) 2>/dev/null; then 21755 if ln -s conf$$.file conf$$ 2>/dev/null; then 21756 as_ln_s='ln -s' 21757 # ... but there are two gotchas: 21758 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21759 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21760 # In both cases, we have to default to `cp -pR'. 21761 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21762 as_ln_s='cp -pR' 21763 elif ln conf$$.file conf$$ 2>/dev/null; then 21764 as_ln_s=ln 21765 else 21766 as_ln_s='cp -pR' 21767 fi 21768else 21769 as_ln_s='cp -pR' 21770fi 21771rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21772rmdir conf$$.dir 2>/dev/null 21773 21774 21775# as_fn_mkdir_p 21776# ------------- 21777# Create "$as_dir" as a directory, including parents if necessary. 21778as_fn_mkdir_p () 21779{ 21780 21781 case $as_dir in #( 21782 -*) as_dir=./$as_dir;; 21783 esac 21784 test -d "$as_dir" || eval $as_mkdir_p || { 21785 as_dirs= 21786 while :; do 21787 case $as_dir in #( 21788 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21789 *) as_qdir=$as_dir;; 21790 esac 21791 as_dirs="'$as_qdir' $as_dirs" 21792 as_dir=`$as_dirname -- "$as_dir" || 21793$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21794 X"$as_dir" : 'X\(//\)[^/]' \| \ 21795 X"$as_dir" : 'X\(//\)$' \| \ 21796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21797$as_echo X"$as_dir" | 21798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21799 s//\1/ 21800 q 21801 } 21802 /^X\(\/\/\)[^/].*/{ 21803 s//\1/ 21804 q 21805 } 21806 /^X\(\/\/\)$/{ 21807 s//\1/ 21808 q 21809 } 21810 /^X\(\/\).*/{ 21811 s//\1/ 21812 q 21813 } 21814 s/.*/./; q'` 21815 test -d "$as_dir" && break 21816 done 21817 test -z "$as_dirs" || eval "mkdir $as_dirs" 21818 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21819 21820 21821} # as_fn_mkdir_p 21822if mkdir -p . 2>/dev/null; then 21823 as_mkdir_p='mkdir -p "$as_dir"' 21824else 21825 test -d ./-p && rmdir ./-p 21826 as_mkdir_p=false 21827fi 21828 21829 21830# as_fn_executable_p FILE 21831# ----------------------- 21832# Test if FILE is an executable regular file. 21833as_fn_executable_p () 21834{ 21835 test -f "$1" && test -x "$1" 21836} # as_fn_executable_p 21837as_test_x='test -x' 21838as_executable_p=as_fn_executable_p 21839 21840# Sed expression to map a string onto a valid CPP name. 21841as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21842 21843# Sed expression to map a string onto a valid variable name. 21844as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21845 21846 21847exec 6>&1 21848## ----------------------------------- ## 21849## Main body of $CONFIG_STATUS script. ## 21850## ----------------------------------- ## 21851_ASEOF 21852test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21853 21854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21855# Save the log message, to keep $0 and so on meaningful, and to 21856# report actual input values of CONFIG_FILES etc. instead of their 21857# values after options handling. 21858ac_log=" 21859This file was extended by love $as_me 11.3, which was 21860generated by GNU Autoconf 2.69. Invocation command line was 21861 21862 CONFIG_FILES = $CONFIG_FILES 21863 CONFIG_HEADERS = $CONFIG_HEADERS 21864 CONFIG_LINKS = $CONFIG_LINKS 21865 CONFIG_COMMANDS = $CONFIG_COMMANDS 21866 $ $0 $@ 21867 21868on `(hostname || uname -n) 2>/dev/null | sed 1q` 21869" 21870 21871_ACEOF 21872 21873case $ac_config_files in *" 21874"*) set x $ac_config_files; shift; ac_config_files=$*;; 21875esac 21876 21877case $ac_config_headers in *" 21878"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21879esac 21880 21881 21882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21883# Files that config.status was made for. 21884config_files="$ac_config_files" 21885config_headers="$ac_config_headers" 21886config_commands="$ac_config_commands" 21887 21888_ACEOF 21889 21890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21891ac_cs_usage="\ 21892\`$as_me' instantiates files and other configuration actions 21893from templates according to the current configuration. Unless the files 21894and actions are specified as TAGs, all are instantiated by default. 21895 21896Usage: $0 [OPTION]... [TAG]... 21897 21898 -h, --help print this help, then exit 21899 -V, --version print version number and configuration settings, then exit 21900 --config print configuration, then exit 21901 -q, --quiet, --silent 21902 do not print progress messages 21903 -d, --debug don't remove temporary files 21904 --recheck update $as_me by reconfiguring in the same conditions 21905 --file=FILE[:TEMPLATE] 21906 instantiate the configuration file FILE 21907 --header=FILE[:TEMPLATE] 21908 instantiate the configuration header FILE 21909 21910Configuration files: 21911$config_files 21912 21913Configuration headers: 21914$config_headers 21915 21916Configuration commands: 21917$config_commands 21918 21919Report bugs to the package provider." 21920 21921_ACEOF 21922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21923ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21924ac_cs_version="\\ 21925love config.status 11.3 21926configured by $0, generated by GNU Autoconf 2.69, 21927 with options \\"\$ac_cs_config\\" 21928 21929Copyright (C) 2012 Free Software Foundation, Inc. 21930This config.status script is free software; the Free Software Foundation 21931gives unlimited permission to copy, distribute and modify it." 21932 21933ac_pwd='$ac_pwd' 21934srcdir='$srcdir' 21935INSTALL='$INSTALL' 21936MKDIR_P='$MKDIR_P' 21937AWK='$AWK' 21938test -n "\$AWK" || AWK=awk 21939_ACEOF 21940 21941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21942# The default lists apply if the user does not specify any file. 21943ac_need_defaults=: 21944while test $# != 0 21945do 21946 case $1 in 21947 --*=?*) 21948 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21949 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21950 ac_shift=: 21951 ;; 21952 --*=) 21953 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21954 ac_optarg= 21955 ac_shift=: 21956 ;; 21957 *) 21958 ac_option=$1 21959 ac_optarg=$2 21960 ac_shift=shift 21961 ;; 21962 esac 21963 21964 case $ac_option in 21965 # Handling of the options. 21966 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21967 ac_cs_recheck=: ;; 21968 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21969 $as_echo "$ac_cs_version"; exit ;; 21970 --config | --confi | --conf | --con | --co | --c ) 21971 $as_echo "$ac_cs_config"; exit ;; 21972 --debug | --debu | --deb | --de | --d | -d ) 21973 debug=: ;; 21974 --file | --fil | --fi | --f ) 21975 $ac_shift 21976 case $ac_optarg in 21977 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21978 '') as_fn_error $? "missing file argument" ;; 21979 esac 21980 as_fn_append CONFIG_FILES " '$ac_optarg'" 21981 ac_need_defaults=false;; 21982 --header | --heade | --head | --hea ) 21983 $ac_shift 21984 case $ac_optarg in 21985 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21986 esac 21987 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21988 ac_need_defaults=false;; 21989 --he | --h) 21990 # Conflict between --help and --header 21991 as_fn_error $? "ambiguous option: \`$1' 21992Try \`$0 --help' for more information.";; 21993 --help | --hel | -h ) 21994 $as_echo "$ac_cs_usage"; exit ;; 21995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21996 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21997 ac_cs_silent=: ;; 21998 21999 # This is an error. 22000 -*) as_fn_error $? "unrecognized option: \`$1' 22001Try \`$0 --help' for more information." ;; 22002 22003 *) as_fn_append ac_config_targets " $1" 22004 ac_need_defaults=false ;; 22005 22006 esac 22007 shift 22008done 22009 22010ac_configure_extra_args= 22011 22012if $ac_cs_silent; then 22013 exec 6>/dev/null 22014 ac_configure_extra_args="$ac_configure_extra_args --silent" 22015fi 22016 22017_ACEOF 22018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22019if \$ac_cs_recheck; then 22020 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22021 shift 22022 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22023 CONFIG_SHELL='$SHELL' 22024 export CONFIG_SHELL 22025 exec "\$@" 22026fi 22027 22028_ACEOF 22029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22030exec 5>>config.log 22031{ 22032 echo 22033 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22034## Running $as_me. ## 22035_ASBOX 22036 $as_echo "$ac_log" 22037} >&5 22038 22039_ACEOF 22040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22041# 22042# INIT-COMMANDS 22043# 22044AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22045 22046 22047# The HP-UX ksh and POSIX shell print the target directory to stdout 22048# if CDPATH is set. 22049(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22050 22051sed_quote_subst='$sed_quote_subst' 22052double_quote_subst='$double_quote_subst' 22053delay_variable_subst='$delay_variable_subst' 22054macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22055macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22056enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22057enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22058pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22059enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22060shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22061SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22062ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22063PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22064host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22065host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22066host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22067build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22068build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22069build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22070SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22071Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22072GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22073EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22074FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22075LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22076NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22077LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22078max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22079ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22080exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22081lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22082lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22083lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22084lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22085lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22086reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22087reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22088OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22089deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22090file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22091file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22092want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22093DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22094sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22095AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22096lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 22097AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22098archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22099STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22100RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22101old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22102old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22103old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22104lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22105CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22106CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22107compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22108GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22109lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22110lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22111lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22112lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22113lt_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"`' 22114lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22115nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22116lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22117lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22118objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22119MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22120lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22121lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22122lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22123lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22124lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22125need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22126MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22127DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22128NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22129LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22130OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22131OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22132libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22133shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22134extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22135archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22136enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22137export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22138whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22139compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22140old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22141old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22142archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22143archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22144module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22145module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22146with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22147allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22148no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22149hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22150hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22151hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22152hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22153hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22154hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22155hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22156inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22157link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22158always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22159export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22160exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22161include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22162prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22163postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22164file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22165variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22166need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22167need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22168version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22169runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22170shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22171shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22172libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22173library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22174soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22175install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22176postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22177postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22178finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22179finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22180hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22181sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22182configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22183configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22184hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22185enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22186enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22187enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22188old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22189striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22190compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 22191predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 22192postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 22193predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 22194postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 22195compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 22196LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 22197reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 22198reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22199old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22200compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 22201GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 22202lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 22203lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 22204lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 22205lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 22206lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 22207archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 22208enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 22209export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22210whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22211compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 22212old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22213old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22214archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22215archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22216module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22217module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22218with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 22219allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22220no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22221hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22222hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 22223hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 22224hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 22225hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 22226hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 22227hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 22228inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 22229link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 22230always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 22231export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22232exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22233include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22234prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22235postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22236file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 22237hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 22238compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 22239predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22240postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22241predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 22242postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 22243compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 22244 22245LTCC='$LTCC' 22246LTCFLAGS='$LTCFLAGS' 22247compiler='$compiler_DEFAULT' 22248 22249# A function that is used when there is no print builtin or printf. 22250func_fallback_echo () 22251{ 22252 eval 'cat <<_LTECHO_EOF 22253\$1 22254_LTECHO_EOF' 22255} 22256 22257# Quote evaled strings. 22258for var in SHELL \ 22259ECHO \ 22260PATH_SEPARATOR \ 22261SED \ 22262GREP \ 22263EGREP \ 22264FGREP \ 22265LD \ 22266NM \ 22267LN_S \ 22268lt_SP2NL \ 22269lt_NL2SP \ 22270reload_flag \ 22271OBJDUMP \ 22272deplibs_check_method \ 22273file_magic_cmd \ 22274file_magic_glob \ 22275want_nocaseglob \ 22276DLLTOOL \ 22277sharedlib_from_linklib_cmd \ 22278AR \ 22279archiver_list_spec \ 22280STRIP \ 22281RANLIB \ 22282CC \ 22283CFLAGS \ 22284compiler \ 22285lt_cv_sys_global_symbol_pipe \ 22286lt_cv_sys_global_symbol_to_cdecl \ 22287lt_cv_sys_global_symbol_to_import \ 22288lt_cv_sys_global_symbol_to_c_name_address \ 22289lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22290lt_cv_nm_interface \ 22291nm_file_list_spec \ 22292lt_cv_truncate_bin \ 22293lt_prog_compiler_no_builtin_flag \ 22294lt_prog_compiler_pic \ 22295lt_prog_compiler_wl \ 22296lt_prog_compiler_static \ 22297lt_cv_prog_compiler_c_o \ 22298need_locks \ 22299MANIFEST_TOOL \ 22300DSYMUTIL \ 22301NMEDIT \ 22302LIPO \ 22303OTOOL \ 22304OTOOL64 \ 22305shrext_cmds \ 22306export_dynamic_flag_spec \ 22307whole_archive_flag_spec \ 22308compiler_needs_object \ 22309with_gnu_ld \ 22310allow_undefined_flag \ 22311no_undefined_flag \ 22312hardcode_libdir_flag_spec \ 22313hardcode_libdir_separator \ 22314exclude_expsyms \ 22315include_expsyms \ 22316file_list_spec \ 22317variables_saved_for_relink \ 22318libname_spec \ 22319library_names_spec \ 22320soname_spec \ 22321install_override_mode \ 22322finish_eval \ 22323old_striplib \ 22324striplib \ 22325compiler_lib_search_dirs \ 22326predep_objects \ 22327postdep_objects \ 22328predeps \ 22329postdeps \ 22330compiler_lib_search_path \ 22331LD_CXX \ 22332reload_flag_CXX \ 22333compiler_CXX \ 22334lt_prog_compiler_no_builtin_flag_CXX \ 22335lt_prog_compiler_pic_CXX \ 22336lt_prog_compiler_wl_CXX \ 22337lt_prog_compiler_static_CXX \ 22338lt_cv_prog_compiler_c_o_CXX \ 22339export_dynamic_flag_spec_CXX \ 22340whole_archive_flag_spec_CXX \ 22341compiler_needs_object_CXX \ 22342with_gnu_ld_CXX \ 22343allow_undefined_flag_CXX \ 22344no_undefined_flag_CXX \ 22345hardcode_libdir_flag_spec_CXX \ 22346hardcode_libdir_separator_CXX \ 22347exclude_expsyms_CXX \ 22348include_expsyms_CXX \ 22349file_list_spec_CXX \ 22350compiler_lib_search_dirs_CXX \ 22351predep_objects_CXX \ 22352postdep_objects_CXX \ 22353predeps_CXX \ 22354postdeps_CXX \ 22355compiler_lib_search_path_CXX; do 22356 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22357 *[\\\\\\\`\\"\\\$]*) 22358 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22359 ;; 22360 *) 22361 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22362 ;; 22363 esac 22364done 22365 22366# Double-quote double-evaled strings. 22367for var in reload_cmds \ 22368old_postinstall_cmds \ 22369old_postuninstall_cmds \ 22370old_archive_cmds \ 22371extract_expsyms_cmds \ 22372old_archive_from_new_cmds \ 22373old_archive_from_expsyms_cmds \ 22374archive_cmds \ 22375archive_expsym_cmds \ 22376module_cmds \ 22377module_expsym_cmds \ 22378export_symbols_cmds \ 22379prelink_cmds \ 22380postlink_cmds \ 22381postinstall_cmds \ 22382postuninstall_cmds \ 22383finish_cmds \ 22384sys_lib_search_path_spec \ 22385configure_time_dlsearch_path \ 22386configure_time_lt_sys_library_path \ 22387reload_cmds_CXX \ 22388old_archive_cmds_CXX \ 22389old_archive_from_new_cmds_CXX \ 22390old_archive_from_expsyms_cmds_CXX \ 22391archive_cmds_CXX \ 22392archive_expsym_cmds_CXX \ 22393module_cmds_CXX \ 22394module_expsym_cmds_CXX \ 22395export_symbols_cmds_CXX \ 22396prelink_cmds_CXX \ 22397postlink_cmds_CXX; do 22398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22399 *[\\\\\\\`\\"\\\$]*) 22400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22401 ;; 22402 *) 22403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22404 ;; 22405 esac 22406done 22407 22408ac_aux_dir='$ac_aux_dir' 22409 22410# See if we are running on zsh, and set the options that allow our 22411# commands through without removal of \ escapes INIT. 22412if test -n "\${ZSH_VERSION+set}"; then 22413 setopt NO_GLOB_SUBST 22414fi 22415 22416 22417 PACKAGE='$PACKAGE' 22418 VERSION='$VERSION' 22419 RM='$RM' 22420 ofile='$ofile' 22421 22422 22423 22424 22425 22426 22427_ACEOF 22428 22429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22430 22431# Handling of arguments. 22432for ac_config_target in $ac_config_targets 22433do 22434 case $ac_config_target in 22435 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22436 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22437 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22438 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22439 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22440 "platform/unix/debian/control") CONFIG_FILES="$CONFIG_FILES platform/unix/debian/control" ;; 22441 "platform/unix/debian/changelog") CONFIG_FILES="$CONFIG_FILES platform/unix/debian/changelog" ;; 22442 "platform/unix/debian/rules") CONFIG_FILES="$CONFIG_FILES platform/unix/debian/rules" ;; 22443 22444 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22445 esac 22446done 22447 22448 22449# If the user did not use the arguments to specify the items to instantiate, 22450# then the envvar interface is used. Set only those that are not. 22451# We use the long form for the default assignment because of an extremely 22452# bizarre bug on SunOS 4.1.3. 22453if $ac_need_defaults; then 22454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22457fi 22458 22459# Have a temporary directory for convenience. Make it in the build tree 22460# simply because there is no reason against having it here, and in addition, 22461# creating and moving files from /tmp can sometimes cause problems. 22462# Hook for its removal unless debugging. 22463# Note that there is a small window in which the directory will not be cleaned: 22464# after its creation but before its name has been assigned to `$tmp'. 22465$debug || 22466{ 22467 tmp= ac_tmp= 22468 trap 'exit_status=$? 22469 : "${ac_tmp:=$tmp}" 22470 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22471' 0 22472 trap 'as_fn_exit 1' 1 2 13 15 22473} 22474# Create a (secure) tmp directory for tmp files. 22475 22476{ 22477 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22478 test -d "$tmp" 22479} || 22480{ 22481 tmp=./conf$$-$RANDOM 22482 (umask 077 && mkdir "$tmp") 22483} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22484ac_tmp=$tmp 22485 22486# Set up the scripts for CONFIG_FILES section. 22487# No need to generate them if there are no CONFIG_FILES. 22488# This happens for instance with `./config.status config.h'. 22489if test -n "$CONFIG_FILES"; then 22490 22491 22492ac_cr=`echo X | tr X '\015'` 22493# On cygwin, bash can eat \r inside `` if the user requested igncr. 22494# But we know of no other shell where ac_cr would be empty at this 22495# point, so we can use a bashism as a fallback. 22496if test "x$ac_cr" = x; then 22497 eval ac_cr=\$\'\\r\' 22498fi 22499ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22500if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22501 ac_cs_awk_cr='\\r' 22502else 22503 ac_cs_awk_cr=$ac_cr 22504fi 22505 22506echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22507_ACEOF 22508 22509 22510{ 22511 echo "cat >conf$$subs.awk <<_ACEOF" && 22512 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22513 echo "_ACEOF" 22514} >conf$$subs.sh || 22515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22516ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22517ac_delim='%!_!# ' 22518for ac_last_try in false false false false false :; do 22519 . ./conf$$subs.sh || 22520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22521 22522 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22523 if test $ac_delim_n = $ac_delim_num; then 22524 break 22525 elif $ac_last_try; then 22526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22527 else 22528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22529 fi 22530done 22531rm -f conf$$subs.sh 22532 22533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22534cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22535_ACEOF 22536sed -n ' 22537h 22538s/^/S["/; s/!.*/"]=/ 22539p 22540g 22541s/^[^!]*!// 22542:repl 22543t repl 22544s/'"$ac_delim"'$// 22545t delim 22546:nl 22547h 22548s/\(.\{148\}\)..*/\1/ 22549t more1 22550s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22551p 22552n 22553b repl 22554:more1 22555s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22556p 22557g 22558s/.\{148\}// 22559t nl 22560:delim 22561h 22562s/\(.\{148\}\)..*/\1/ 22563t more2 22564s/["\\]/\\&/g; s/^/"/; s/$/"/ 22565p 22566b 22567:more2 22568s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22569p 22570g 22571s/.\{148\}// 22572t delim 22573' <conf$$subs.awk | sed ' 22574/^[^""]/{ 22575 N 22576 s/\n// 22577} 22578' >>$CONFIG_STATUS || ac_write_fail=1 22579rm -f conf$$subs.awk 22580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22581_ACAWK 22582cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22583 for (key in S) S_is_set[key] = 1 22584 FS = "" 22585 22586} 22587{ 22588 line = $ 0 22589 nfields = split(line, field, "@") 22590 substed = 0 22591 len = length(field[1]) 22592 for (i = 2; i < nfields; i++) { 22593 key = field[i] 22594 keylen = length(key) 22595 if (S_is_set[key]) { 22596 value = S[key] 22597 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22598 len += length(value) + length(field[++i]) 22599 substed = 1 22600 } else 22601 len += 1 + keylen 22602 } 22603 22604 print line 22605} 22606 22607_ACAWK 22608_ACEOF 22609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22610if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22611 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22612else 22613 cat 22614fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22615 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22616_ACEOF 22617 22618# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22619# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22620# trailing colons and then remove the whole line if VPATH becomes empty 22621# (actually we leave an empty line to preserve line numbers). 22622if test "x$srcdir" = x.; then 22623 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22624h 22625s/// 22626s/^/:/ 22627s/[ ]*$/:/ 22628s/:\$(srcdir):/:/g 22629s/:\${srcdir}:/:/g 22630s/:@srcdir@:/:/g 22631s/^:*// 22632s/:*$// 22633x 22634s/\(=[ ]*\).*/\1/ 22635G 22636s/\n// 22637s/^[^=]*=[ ]*$// 22638}' 22639fi 22640 22641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22642fi # test -n "$CONFIG_FILES" 22643 22644# Set up the scripts for CONFIG_HEADERS section. 22645# No need to generate them if there are no CONFIG_HEADERS. 22646# This happens for instance with `./config.status Makefile'. 22647if test -n "$CONFIG_HEADERS"; then 22648cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22649BEGIN { 22650_ACEOF 22651 22652# Transform confdefs.h into an awk script `defines.awk', embedded as 22653# here-document in config.status, that substitutes the proper values into 22654# config.h.in to produce config.h. 22655 22656# Create a delimiter string that does not exist in confdefs.h, to ease 22657# handling of long lines. 22658ac_delim='%!_!# ' 22659for ac_last_try in false false :; do 22660 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22661 if test -z "$ac_tt"; then 22662 break 22663 elif $ac_last_try; then 22664 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22665 else 22666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22667 fi 22668done 22669 22670# For the awk script, D is an array of macro values keyed by name, 22671# likewise P contains macro parameters if any. Preserve backslash 22672# newline sequences. 22673 22674ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22675sed -n ' 22676s/.\{148\}/&'"$ac_delim"'/g 22677t rset 22678:rset 22679s/^[ ]*#[ ]*define[ ][ ]*/ / 22680t def 22681d 22682:def 22683s/\\$// 22684t bsnl 22685s/["\\]/\\&/g 22686s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22687D["\1"]=" \3"/p 22688s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22689d 22690:bsnl 22691s/["\\]/\\&/g 22692s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22693D["\1"]=" \3\\\\\\n"\\/p 22694t cont 22695s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22696t cont 22697d 22698:cont 22699n 22700s/.\{148\}/&'"$ac_delim"'/g 22701t clear 22702:clear 22703s/\\$// 22704t bsnlc 22705s/["\\]/\\&/g; s/^/"/; s/$/"/p 22706d 22707:bsnlc 22708s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22709b cont 22710' <confdefs.h | sed ' 22711s/'"$ac_delim"'/"\\\ 22712"/g' >>$CONFIG_STATUS || ac_write_fail=1 22713 22714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22715 for (key in D) D_is_set[key] = 1 22716 FS = "" 22717} 22718/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22719 line = \$ 0 22720 split(line, arg, " ") 22721 if (arg[1] == "#") { 22722 defundef = arg[2] 22723 mac1 = arg[3] 22724 } else { 22725 defundef = substr(arg[1], 2) 22726 mac1 = arg[2] 22727 } 22728 split(mac1, mac2, "(") #) 22729 macro = mac2[1] 22730 prefix = substr(line, 1, index(line, defundef) - 1) 22731 if (D_is_set[macro]) { 22732 # Preserve the white space surrounding the "#". 22733 print prefix "define", macro P[macro] D[macro] 22734 next 22735 } else { 22736 # Replace #undef with comments. This is necessary, for example, 22737 # in the case of _POSIX_SOURCE, which is predefined and required 22738 # on some systems where configure will not decide to define it. 22739 if (defundef == "undef") { 22740 print "/*", prefix defundef, macro, "*/" 22741 next 22742 } 22743 } 22744} 22745{ print } 22746_ACAWK 22747_ACEOF 22748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22749 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22750fi # test -n "$CONFIG_HEADERS" 22751 22752 22753eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22754shift 22755for ac_tag 22756do 22757 case $ac_tag in 22758 :[FHLC]) ac_mode=$ac_tag; continue;; 22759 esac 22760 case $ac_mode$ac_tag in 22761 :[FHL]*:*);; 22762 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22763 :[FH]-) ac_tag=-:-;; 22764 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22765 esac 22766 ac_save_IFS=$IFS 22767 IFS=: 22768 set x $ac_tag 22769 IFS=$ac_save_IFS 22770 shift 22771 ac_file=$1 22772 shift 22773 22774 case $ac_mode in 22775 :L) ac_source=$1;; 22776 :[FH]) 22777 ac_file_inputs= 22778 for ac_f 22779 do 22780 case $ac_f in 22781 -) ac_f="$ac_tmp/stdin";; 22782 *) # Look for the file first in the build tree, then in the source tree 22783 # (if the path is not absolute). The absolute path cannot be DOS-style, 22784 # because $ac_f cannot contain `:'. 22785 test -f "$ac_f" || 22786 case $ac_f in 22787 [\\/$]*) false;; 22788 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22789 esac || 22790 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22791 esac 22792 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22793 as_fn_append ac_file_inputs " '$ac_f'" 22794 done 22795 22796 # Let's still pretend it is `configure' which instantiates (i.e., don't 22797 # use $as_me), people would be surprised to read: 22798 # /* config.h. Generated by config.status. */ 22799 configure_input='Generated from '` 22800 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22801 `' by configure.' 22802 if test x"$ac_file" != x-; then 22803 configure_input="$ac_file. $configure_input" 22804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22805$as_echo "$as_me: creating $ac_file" >&6;} 22806 fi 22807 # Neutralize special characters interpreted by sed in replacement strings. 22808 case $configure_input in #( 22809 *\&* | *\|* | *\\* ) 22810 ac_sed_conf_input=`$as_echo "$configure_input" | 22811 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22812 *) ac_sed_conf_input=$configure_input;; 22813 esac 22814 22815 case $ac_tag in 22816 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22818 esac 22819 ;; 22820 esac 22821 22822 ac_dir=`$as_dirname -- "$ac_file" || 22823$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22824 X"$ac_file" : 'X\(//\)[^/]' \| \ 22825 X"$ac_file" : 'X\(//\)$' \| \ 22826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22827$as_echo X"$ac_file" | 22828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22829 s//\1/ 22830 q 22831 } 22832 /^X\(\/\/\)[^/].*/{ 22833 s//\1/ 22834 q 22835 } 22836 /^X\(\/\/\)$/{ 22837 s//\1/ 22838 q 22839 } 22840 /^X\(\/\).*/{ 22841 s//\1/ 22842 q 22843 } 22844 s/.*/./; q'` 22845 as_dir="$ac_dir"; as_fn_mkdir_p 22846 ac_builddir=. 22847 22848case "$ac_dir" in 22849.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22850*) 22851 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22852 # A ".." for each directory in $ac_dir_suffix. 22853 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22854 case $ac_top_builddir_sub in 22855 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22856 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22857 esac ;; 22858esac 22859ac_abs_top_builddir=$ac_pwd 22860ac_abs_builddir=$ac_pwd$ac_dir_suffix 22861# for backward compatibility: 22862ac_top_builddir=$ac_top_build_prefix 22863 22864case $srcdir in 22865 .) # We are building in place. 22866 ac_srcdir=. 22867 ac_top_srcdir=$ac_top_builddir_sub 22868 ac_abs_top_srcdir=$ac_pwd ;; 22869 [\\/]* | ?:[\\/]* ) # Absolute name. 22870 ac_srcdir=$srcdir$ac_dir_suffix; 22871 ac_top_srcdir=$srcdir 22872 ac_abs_top_srcdir=$srcdir ;; 22873 *) # Relative name. 22874 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22875 ac_top_srcdir=$ac_top_build_prefix$srcdir 22876 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22877esac 22878ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22879 22880 22881 case $ac_mode in 22882 :F) 22883 # 22884 # CONFIG_FILE 22885 # 22886 22887 case $INSTALL in 22888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22889 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22890 esac 22891 ac_MKDIR_P=$MKDIR_P 22892 case $MKDIR_P in 22893 [\\/$]* | ?:[\\/]* ) ;; 22894 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22895 esac 22896_ACEOF 22897 22898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22899# If the template does not know about datarootdir, expand it. 22900# FIXME: This hack should be removed a few years after 2.60. 22901ac_datarootdir_hack=; ac_datarootdir_seen= 22902ac_sed_dataroot=' 22903/datarootdir/ { 22904 p 22905 q 22906} 22907/@datadir@/p 22908/@docdir@/p 22909/@infodir@/p 22910/@localedir@/p 22911/@mandir@/p' 22912case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22913*datarootdir*) ac_datarootdir_seen=yes;; 22914*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22916$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22917_ACEOF 22918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22919 ac_datarootdir_hack=' 22920 s&@datadir@&$datadir&g 22921 s&@docdir@&$docdir&g 22922 s&@infodir@&$infodir&g 22923 s&@localedir@&$localedir&g 22924 s&@mandir@&$mandir&g 22925 s&\\\${datarootdir}&$datarootdir&g' ;; 22926esac 22927_ACEOF 22928 22929# Neutralize VPATH when `$srcdir' = `.'. 22930# Shell code in configure.ac might set extrasub. 22931# FIXME: do we really want to maintain this feature? 22932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22933ac_sed_extra="$ac_vpsub 22934$extrasub 22935_ACEOF 22936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22937:t 22938/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22939s|@configure_input@|$ac_sed_conf_input|;t t 22940s&@top_builddir@&$ac_top_builddir_sub&;t t 22941s&@top_build_prefix@&$ac_top_build_prefix&;t t 22942s&@srcdir@&$ac_srcdir&;t t 22943s&@abs_srcdir@&$ac_abs_srcdir&;t t 22944s&@top_srcdir@&$ac_top_srcdir&;t t 22945s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22946s&@builddir@&$ac_builddir&;t t 22947s&@abs_builddir@&$ac_abs_builddir&;t t 22948s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22949s&@INSTALL@&$ac_INSTALL&;t t 22950s&@MKDIR_P@&$ac_MKDIR_P&;t t 22951$ac_datarootdir_hack 22952" 22953eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22954 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22955 22956test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22957 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22958 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22959 "$ac_tmp/out"`; test -z "$ac_out"; } && 22960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22961which seems to be undefined. Please make sure it is defined" >&5 22962$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22963which seems to be undefined. Please make sure it is defined" >&2;} 22964 22965 rm -f "$ac_tmp/stdin" 22966 case $ac_file in 22967 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22968 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22969 esac \ 22970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22971 ;; 22972 :H) 22973 # 22974 # CONFIG_HEADER 22975 # 22976 if test x"$ac_file" != x-; then 22977 { 22978 $as_echo "/* $configure_input */" \ 22979 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22980 } >"$ac_tmp/config.h" \ 22981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22982 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22983 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22984$as_echo "$as_me: $ac_file is unchanged" >&6;} 22985 else 22986 rm -f "$ac_file" 22987 mv "$ac_tmp/config.h" "$ac_file" \ 22988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22989 fi 22990 else 22991 $as_echo "/* $configure_input */" \ 22992 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22993 || as_fn_error $? "could not create -" "$LINENO" 5 22994 fi 22995# Compute "$ac_file"'s index in $config_headers. 22996_am_arg="$ac_file" 22997_am_stamp_count=1 22998for _am_header in $config_headers :; do 22999 case $_am_header in 23000 $_am_arg | $_am_arg:* ) 23001 break ;; 23002 * ) 23003 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23004 esac 23005done 23006echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23007$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23008 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23009 X"$_am_arg" : 'X\(//\)$' \| \ 23010 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23011$as_echo X"$_am_arg" | 23012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23013 s//\1/ 23014 q 23015 } 23016 /^X\(\/\/\)[^/].*/{ 23017 s//\1/ 23018 q 23019 } 23020 /^X\(\/\/\)$/{ 23021 s//\1/ 23022 q 23023 } 23024 /^X\(\/\).*/{ 23025 s//\1/ 23026 q 23027 } 23028 s/.*/./; q'`/stamp-h$_am_stamp_count 23029 ;; 23030 23031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23032$as_echo "$as_me: executing $ac_file commands" >&6;} 23033 ;; 23034 esac 23035 23036 23037 case $ac_file$ac_mode in 23038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23039 # Older Autoconf quotes --file arguments for eval, but not when files 23040 # are listed without --file. Let's play safe and only enable the eval 23041 # if we detect the quoting. 23042 # TODO: see whether this extra hack can be removed once we start 23043 # requiring Autoconf 2.70 or later. 23044 case $CONFIG_FILES in #( 23045 *\'*) : 23046 eval set x "$CONFIG_FILES" ;; #( 23047 *) : 23048 set x $CONFIG_FILES ;; #( 23049 *) : 23050 ;; 23051esac 23052 shift 23053 # Used to flag and report bootstrapping failures. 23054 am_rc=0 23055 for am_mf 23056 do 23057 # Strip MF so we end up with the name of the file. 23058 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 23059 # Check whether this is an Automake generated Makefile which includes 23060 # dependency-tracking related rules and includes. 23061 # Grep'ing the whole file directly is not great: AIX grep has a line 23062 # limit of 2048, but all sed's we know have understand at least 4000. 23063 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23064 || continue 23065 am_dirpart=`$as_dirname -- "$am_mf" || 23066$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23067 X"$am_mf" : 'X\(//\)[^/]' \| \ 23068 X"$am_mf" : 'X\(//\)$' \| \ 23069 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23070$as_echo X"$am_mf" | 23071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23072 s//\1/ 23073 q 23074 } 23075 /^X\(\/\/\)[^/].*/{ 23076 s//\1/ 23077 q 23078 } 23079 /^X\(\/\/\)$/{ 23080 s//\1/ 23081 q 23082 } 23083 /^X\(\/\).*/{ 23084 s//\1/ 23085 q 23086 } 23087 s/.*/./; q'` 23088 am_filepart=`$as_basename -- "$am_mf" || 23089$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23090 X"$am_mf" : 'X\(//\)$' \| \ 23091 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23092$as_echo X/"$am_mf" | 23093 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23094 s//\1/ 23095 q 23096 } 23097 /^X\/\(\/\/\)$/{ 23098 s//\1/ 23099 q 23100 } 23101 /^X\/\(\/\).*/{ 23102 s//\1/ 23103 q 23104 } 23105 s/.*/./; q'` 23106 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23107 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23108 | $MAKE -f - am--depfiles" >&5 23109 (cd "$am_dirpart" \ 23110 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23111 | $MAKE -f - am--depfiles) >&5 2>&5 23112 ac_status=$? 23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23114 (exit $ac_status); } || am_rc=$? 23115 done 23116 if test $am_rc -ne 0; then 23117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23119as_fn_error $? "Something went wrong bootstrapping makefile fragments 23120 for automatic dependency tracking. Try re-running configure with the 23121 '--disable-dependency-tracking' option to at least be able to build 23122 the package (albeit without support for automatic dependency tracking). 23123See \`config.log' for more details" "$LINENO" 5; } 23124 fi 23125 { am_dirpart=; unset am_dirpart;} 23126 { am_filepart=; unset am_filepart;} 23127 { am_mf=; unset am_mf;} 23128 { am_rc=; unset am_rc;} 23129 rm -f conftest-deps.mk 23130} 23131 ;; 23132 "libtool":C) 23133 23134 # See if we are running on zsh, and set the options that allow our 23135 # commands through without removal of \ escapes. 23136 if test -n "${ZSH_VERSION+set}"; then 23137 setopt NO_GLOB_SUBST 23138 fi 23139 23140 cfgfile=${ofile}T 23141 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23142 $RM "$cfgfile" 23143 23144 cat <<_LT_EOF >> "$cfgfile" 23145#! $SHELL 23146# Generated automatically by $as_me ($PACKAGE) $VERSION 23147# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23148# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23149 23150# Provide generalized library-building support services. 23151# Written by Gordon Matzigkeit, 1996 23152 23153# Copyright (C) 2014 Free Software Foundation, Inc. 23154# This is free software; see the source for copying conditions. There is NO 23155# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23156 23157# GNU Libtool is free software; you can redistribute it and/or modify 23158# it under the terms of the GNU General Public License as published by 23159# the Free Software Foundation; either version 2 of of the License, or 23160# (at your option) any later version. 23161# 23162# As a special exception to the GNU General Public License, if you 23163# distribute this file as part of a program or library that is built 23164# using GNU Libtool, you may include this file under the same 23165# distribution terms that you use for the rest of that program. 23166# 23167# GNU Libtool is distributed in the hope that it will be useful, but 23168# WITHOUT ANY WARRANTY; without even the implied warranty of 23169# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23170# GNU General Public License for more details. 23171# 23172# You should have received a copy of the GNU General Public License 23173# along with this program. If not, see <http://www.gnu.org/licenses/>. 23174 23175 23176# The names of the tagged configurations supported by this script. 23177available_tags='CXX ' 23178 23179# Configured defaults for sys_lib_dlsearch_path munging. 23180: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23181 23182# ### BEGIN LIBTOOL CONFIG 23183 23184# Which release of libtool.m4 was used? 23185macro_version=$macro_version 23186macro_revision=$macro_revision 23187 23188# Whether or not to build static libraries. 23189build_old_libs=$enable_static 23190 23191# Whether or not to build shared libraries. 23192build_libtool_libs=$enable_shared 23193 23194# What type of objects to build. 23195pic_mode=$pic_mode 23196 23197# Whether or not to optimize for fast installation. 23198fast_install=$enable_fast_install 23199 23200# Shared archive member basename,for filename based shared library versioning on AIX. 23201shared_archive_member_spec=$shared_archive_member_spec 23202 23203# Shell to use when invoking shell scripts. 23204SHELL=$lt_SHELL 23205 23206# An echo program that protects backslashes. 23207ECHO=$lt_ECHO 23208 23209# The PATH separator for the build system. 23210PATH_SEPARATOR=$lt_PATH_SEPARATOR 23211 23212# The host system. 23213host_alias=$host_alias 23214host=$host 23215host_os=$host_os 23216 23217# The build system. 23218build_alias=$build_alias 23219build=$build 23220build_os=$build_os 23221 23222# A sed program that does not truncate output. 23223SED=$lt_SED 23224 23225# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23226Xsed="\$SED -e 1s/^X//" 23227 23228# A grep program that handles long lines. 23229GREP=$lt_GREP 23230 23231# An ERE matcher. 23232EGREP=$lt_EGREP 23233 23234# A literal string matcher. 23235FGREP=$lt_FGREP 23236 23237# A BSD- or MS-compatible name lister. 23238NM=$lt_NM 23239 23240# Whether we need soft or hard links. 23241LN_S=$lt_LN_S 23242 23243# What is the maximum length of a command? 23244max_cmd_len=$max_cmd_len 23245 23246# Object file suffix (normally "o"). 23247objext=$ac_objext 23248 23249# Executable file suffix (normally ""). 23250exeext=$exeext 23251 23252# whether the shell understands "unset". 23253lt_unset=$lt_unset 23254 23255# turn spaces into newlines. 23256SP2NL=$lt_lt_SP2NL 23257 23258# turn newlines into spaces. 23259NL2SP=$lt_lt_NL2SP 23260 23261# convert \$build file names to \$host format. 23262to_host_file_cmd=$lt_cv_to_host_file_cmd 23263 23264# convert \$build files to toolchain format. 23265to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23266 23267# An object symbol dumper. 23268OBJDUMP=$lt_OBJDUMP 23269 23270# Method to check whether dependent libraries are shared objects. 23271deplibs_check_method=$lt_deplibs_check_method 23272 23273# Command to use when deplibs_check_method = "file_magic". 23274file_magic_cmd=$lt_file_magic_cmd 23275 23276# How to find potential files when deplibs_check_method = "file_magic". 23277file_magic_glob=$lt_file_magic_glob 23278 23279# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23280want_nocaseglob=$lt_want_nocaseglob 23281 23282# DLL creation program. 23283DLLTOOL=$lt_DLLTOOL 23284 23285# Command to associate shared and link libraries. 23286sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23287 23288# The archiver. 23289AR=$lt_AR 23290 23291# Flags to create an archive (by configure). 23292lt_ar_flags=$lt_ar_flags 23293 23294# Flags to create an archive. 23295AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23296 23297# How to feed a file listing to the archiver. 23298archiver_list_spec=$lt_archiver_list_spec 23299 23300# A symbol stripping program. 23301STRIP=$lt_STRIP 23302 23303# Commands used to install an old-style archive. 23304RANLIB=$lt_RANLIB 23305old_postinstall_cmds=$lt_old_postinstall_cmds 23306old_postuninstall_cmds=$lt_old_postuninstall_cmds 23307 23308# Whether to use a lock for old archive extraction. 23309lock_old_archive_extraction=$lock_old_archive_extraction 23310 23311# A C compiler. 23312LTCC=$lt_CC 23313 23314# LTCC compiler flags. 23315LTCFLAGS=$lt_CFLAGS 23316 23317# Take the output of nm and produce a listing of raw symbols and C names. 23318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23319 23320# Transform the output of nm in a proper C declaration. 23321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23322 23323# Transform the output of nm into a list of symbols to manually relocate. 23324global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23325 23326# Transform the output of nm in a C name address pair. 23327global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23328 23329# Transform the output of nm in a C name address pair when lib prefix is needed. 23330global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23331 23332# The name lister interface. 23333nm_interface=$lt_lt_cv_nm_interface 23334 23335# Specify filename containing input files for \$NM. 23336nm_file_list_spec=$lt_nm_file_list_spec 23337 23338# The root where to search for dependent libraries,and where our libraries should be installed. 23339lt_sysroot=$lt_sysroot 23340 23341# Command to truncate a binary pipe. 23342lt_truncate_bin=$lt_lt_cv_truncate_bin 23343 23344# The name of the directory that contains temporary libtool files. 23345objdir=$objdir 23346 23347# Used to examine libraries when file_magic_cmd begins with "file". 23348MAGIC_CMD=$MAGIC_CMD 23349 23350# Must we lock files when doing compilation? 23351need_locks=$lt_need_locks 23352 23353# Manifest tool. 23354MANIFEST_TOOL=$lt_MANIFEST_TOOL 23355 23356# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23357DSYMUTIL=$lt_DSYMUTIL 23358 23359# Tool to change global to local symbols on Mac OS X. 23360NMEDIT=$lt_NMEDIT 23361 23362# Tool to manipulate fat objects and archives on Mac OS X. 23363LIPO=$lt_LIPO 23364 23365# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23366OTOOL=$lt_OTOOL 23367 23368# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23369OTOOL64=$lt_OTOOL64 23370 23371# Old archive suffix (normally "a"). 23372libext=$libext 23373 23374# Shared library suffix (normally ".so"). 23375shrext_cmds=$lt_shrext_cmds 23376 23377# The commands to extract the exported symbol list from a shared archive. 23378extract_expsyms_cmds=$lt_extract_expsyms_cmds 23379 23380# Variables whose values should be saved in libtool wrapper scripts and 23381# restored at link time. 23382variables_saved_for_relink=$lt_variables_saved_for_relink 23383 23384# Do we need the "lib" prefix for modules? 23385need_lib_prefix=$need_lib_prefix 23386 23387# Do we need a version for libraries? 23388need_version=$need_version 23389 23390# Library versioning type. 23391version_type=$version_type 23392 23393# Shared library runtime path variable. 23394runpath_var=$runpath_var 23395 23396# Shared library path variable. 23397shlibpath_var=$shlibpath_var 23398 23399# Is shlibpath searched before the hard-coded library search path? 23400shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23401 23402# Format of library name prefix. 23403libname_spec=$lt_libname_spec 23404 23405# List of archive names. First name is the real one, the rest are links. 23406# The last name is the one that the linker finds with -lNAME 23407library_names_spec=$lt_library_names_spec 23408 23409# The coded name of the library, if different from the real name. 23410soname_spec=$lt_soname_spec 23411 23412# Permission mode override for installation of shared libraries. 23413install_override_mode=$lt_install_override_mode 23414 23415# Command to use after installation of a shared archive. 23416postinstall_cmds=$lt_postinstall_cmds 23417 23418# Command to use after uninstallation of a shared archive. 23419postuninstall_cmds=$lt_postuninstall_cmds 23420 23421# Commands used to finish a libtool library installation in a directory. 23422finish_cmds=$lt_finish_cmds 23423 23424# As "finish_cmds", except a single script fragment to be evaled but 23425# not shown. 23426finish_eval=$lt_finish_eval 23427 23428# Whether we should hardcode library paths into libraries. 23429hardcode_into_libs=$hardcode_into_libs 23430 23431# Compile-time system search path for libraries. 23432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23433 23434# Detected run-time system search path for libraries. 23435sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23436 23437# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23438configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23439 23440# Whether dlopen is supported. 23441dlopen_support=$enable_dlopen 23442 23443# Whether dlopen of programs is supported. 23444dlopen_self=$enable_dlopen_self 23445 23446# Whether dlopen of statically linked programs is supported. 23447dlopen_self_static=$enable_dlopen_self_static 23448 23449# Commands to strip libraries. 23450old_striplib=$lt_old_striplib 23451striplib=$lt_striplib 23452 23453 23454# The linker used to build libraries. 23455LD=$lt_LD 23456 23457# How to create reloadable object files. 23458reload_flag=$lt_reload_flag 23459reload_cmds=$lt_reload_cmds 23460 23461# Commands used to build an old-style archive. 23462old_archive_cmds=$lt_old_archive_cmds 23463 23464# A language specific compiler. 23465CC=$lt_compiler 23466 23467# Is the compiler the GNU compiler? 23468with_gcc=$GCC 23469 23470# Compiler flag to turn off builtin functions. 23471no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23472 23473# Additional compiler flags for building library objects. 23474pic_flag=$lt_lt_prog_compiler_pic 23475 23476# How to pass a linker flag through the compiler. 23477wl=$lt_lt_prog_compiler_wl 23478 23479# Compiler flag to prevent dynamic linking. 23480link_static_flag=$lt_lt_prog_compiler_static 23481 23482# Does compiler simultaneously support -c and -o options? 23483compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23484 23485# Whether or not to add -lc for building shared libraries. 23486build_libtool_need_lc=$archive_cmds_need_lc 23487 23488# Whether or not to disallow shared libs when runtime libs are static. 23489allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23490 23491# Compiler flag to allow reflexive dlopens. 23492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23493 23494# Compiler flag to generate shared objects directly from archives. 23495whole_archive_flag_spec=$lt_whole_archive_flag_spec 23496 23497# Whether the compiler copes with passing no objects directly. 23498compiler_needs_object=$lt_compiler_needs_object 23499 23500# Create an old-style archive from a shared archive. 23501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23502 23503# Create a temporary old-style archive to link instead of a shared archive. 23504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23505 23506# Commands used to build a shared archive. 23507archive_cmds=$lt_archive_cmds 23508archive_expsym_cmds=$lt_archive_expsym_cmds 23509 23510# Commands used to build a loadable module if different from building 23511# a shared archive. 23512module_cmds=$lt_module_cmds 23513module_expsym_cmds=$lt_module_expsym_cmds 23514 23515# Whether we are building with GNU ld or not. 23516with_gnu_ld=$lt_with_gnu_ld 23517 23518# Flag that allows shared libraries with undefined symbols to be built. 23519allow_undefined_flag=$lt_allow_undefined_flag 23520 23521# Flag that enforces no undefined symbols. 23522no_undefined_flag=$lt_no_undefined_flag 23523 23524# Flag to hardcode \$libdir into a binary during linking. 23525# This must work even if \$libdir does not exist 23526hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23527 23528# Whether we need a single "-rpath" flag with a separated argument. 23529hardcode_libdir_separator=$lt_hardcode_libdir_separator 23530 23531# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23532# DIR into the resulting binary. 23533hardcode_direct=$hardcode_direct 23534 23535# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23536# DIR into the resulting binary and the resulting library dependency is 23537# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23538# library is relocated. 23539hardcode_direct_absolute=$hardcode_direct_absolute 23540 23541# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23542# into the resulting binary. 23543hardcode_minus_L=$hardcode_minus_L 23544 23545# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23546# into the resulting binary. 23547hardcode_shlibpath_var=$hardcode_shlibpath_var 23548 23549# Set to "yes" if building a shared library automatically hardcodes DIR 23550# into the library and all subsequent libraries and executables linked 23551# against it. 23552hardcode_automatic=$hardcode_automatic 23553 23554# Set to yes if linker adds runtime paths of dependent libraries 23555# to runtime path list. 23556inherit_rpath=$inherit_rpath 23557 23558# Whether libtool must link a program against all its dependency libraries. 23559link_all_deplibs=$link_all_deplibs 23560 23561# Set to "yes" if exported symbols are required. 23562always_export_symbols=$always_export_symbols 23563 23564# The commands to list exported symbols. 23565export_symbols_cmds=$lt_export_symbols_cmds 23566 23567# Symbols that should not be listed in the preloaded symbols. 23568exclude_expsyms=$lt_exclude_expsyms 23569 23570# Symbols that must always be exported. 23571include_expsyms=$lt_include_expsyms 23572 23573# Commands necessary for linking programs (against libraries) with templates. 23574prelink_cmds=$lt_prelink_cmds 23575 23576# Commands necessary for finishing linking programs. 23577postlink_cmds=$lt_postlink_cmds 23578 23579# Specify filename containing input files. 23580file_list_spec=$lt_file_list_spec 23581 23582# How to hardcode a shared library path into an executable. 23583hardcode_action=$hardcode_action 23584 23585# The directories searched by this compiler when creating a shared library. 23586compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23587 23588# Dependencies to place before and after the objects being linked to 23589# create a shared library. 23590predep_objects=$lt_predep_objects 23591postdep_objects=$lt_postdep_objects 23592predeps=$lt_predeps 23593postdeps=$lt_postdeps 23594 23595# The library search path used internally by the compiler when linking 23596# a shared library. 23597compiler_lib_search_path=$lt_compiler_lib_search_path 23598 23599# ### END LIBTOOL CONFIG 23600 23601_LT_EOF 23602 23603 cat <<'_LT_EOF' >> "$cfgfile" 23604 23605# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23606 23607# func_munge_path_list VARIABLE PATH 23608# ----------------------------------- 23609# VARIABLE is name of variable containing _space_ separated list of 23610# directories to be munged by the contents of PATH, which is string 23611# having a format: 23612# "DIR[:DIR]:" 23613# string "DIR[ DIR]" will be prepended to VARIABLE 23614# ":DIR[:DIR]" 23615# string "DIR[ DIR]" will be appended to VARIABLE 23616# "DIRP[:DIRP]::[DIRA:]DIRA" 23617# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23618# "DIRA[ DIRA]" will be appended to VARIABLE 23619# "DIR[:DIR]" 23620# VARIABLE will be replaced by "DIR[ DIR]" 23621func_munge_path_list () 23622{ 23623 case x$2 in 23624 x) 23625 ;; 23626 *:) 23627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23628 ;; 23629 x:*) 23630 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23631 ;; 23632 *::*) 23633 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23634 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23635 ;; 23636 *) 23637 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23638 ;; 23639 esac 23640} 23641 23642 23643# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23644func_cc_basename () 23645{ 23646 for cc_temp in $*""; do 23647 case $cc_temp in 23648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23650 \-*) ;; 23651 *) break;; 23652 esac 23653 done 23654 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23655} 23656 23657 23658# ### END FUNCTIONS SHARED WITH CONFIGURE 23659 23660_LT_EOF 23661 23662 case $host_os in 23663 aix3*) 23664 cat <<\_LT_EOF >> "$cfgfile" 23665# AIX sometimes has problems with the GCC collect2 program. For some 23666# reason, if we set the COLLECT_NAMES environment variable, the problems 23667# vanish in a puff of smoke. 23668if test set != "${COLLECT_NAMES+set}"; then 23669 COLLECT_NAMES= 23670 export COLLECT_NAMES 23671fi 23672_LT_EOF 23673 ;; 23674 esac 23675 23676 23677ltmain=$ac_aux_dir/ltmain.sh 23678 23679 23680 # We use sed instead of cat because bash on DJGPP gets confused if 23681 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23682 # text mode, it properly converts lines to CR/LF. This bash problem 23683 # is reportedly fixed, but why not run on old versions too? 23684 sed '$q' "$ltmain" >> "$cfgfile" \ 23685 || (rm -f "$cfgfile"; exit 1) 23686 23687 mv -f "$cfgfile" "$ofile" || 23688 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23689 chmod +x "$ofile" 23690 23691 23692 cat <<_LT_EOF >> "$ofile" 23693 23694# ### BEGIN LIBTOOL TAG CONFIG: CXX 23695 23696# The linker used to build libraries. 23697LD=$lt_LD_CXX 23698 23699# How to create reloadable object files. 23700reload_flag=$lt_reload_flag_CXX 23701reload_cmds=$lt_reload_cmds_CXX 23702 23703# Commands used to build an old-style archive. 23704old_archive_cmds=$lt_old_archive_cmds_CXX 23705 23706# A language specific compiler. 23707CC=$lt_compiler_CXX 23708 23709# Is the compiler the GNU compiler? 23710with_gcc=$GCC_CXX 23711 23712# Compiler flag to turn off builtin functions. 23713no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23714 23715# Additional compiler flags for building library objects. 23716pic_flag=$lt_lt_prog_compiler_pic_CXX 23717 23718# How to pass a linker flag through the compiler. 23719wl=$lt_lt_prog_compiler_wl_CXX 23720 23721# Compiler flag to prevent dynamic linking. 23722link_static_flag=$lt_lt_prog_compiler_static_CXX 23723 23724# Does compiler simultaneously support -c and -o options? 23725compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23726 23727# Whether or not to add -lc for building shared libraries. 23728build_libtool_need_lc=$archive_cmds_need_lc_CXX 23729 23730# Whether or not to disallow shared libs when runtime libs are static. 23731allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23732 23733# Compiler flag to allow reflexive dlopens. 23734export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23735 23736# Compiler flag to generate shared objects directly from archives. 23737whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23738 23739# Whether the compiler copes with passing no objects directly. 23740compiler_needs_object=$lt_compiler_needs_object_CXX 23741 23742# Create an old-style archive from a shared archive. 23743old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23744 23745# Create a temporary old-style archive to link instead of a shared archive. 23746old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23747 23748# Commands used to build a shared archive. 23749archive_cmds=$lt_archive_cmds_CXX 23750archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23751 23752# Commands used to build a loadable module if different from building 23753# a shared archive. 23754module_cmds=$lt_module_cmds_CXX 23755module_expsym_cmds=$lt_module_expsym_cmds_CXX 23756 23757# Whether we are building with GNU ld or not. 23758with_gnu_ld=$lt_with_gnu_ld_CXX 23759 23760# Flag that allows shared libraries with undefined symbols to be built. 23761allow_undefined_flag=$lt_allow_undefined_flag_CXX 23762 23763# Flag that enforces no undefined symbols. 23764no_undefined_flag=$lt_no_undefined_flag_CXX 23765 23766# Flag to hardcode \$libdir into a binary during linking. 23767# This must work even if \$libdir does not exist 23768hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23769 23770# Whether we need a single "-rpath" flag with a separated argument. 23771hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23772 23773# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23774# DIR into the resulting binary. 23775hardcode_direct=$hardcode_direct_CXX 23776 23777# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23778# DIR into the resulting binary and the resulting library dependency is 23779# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23780# library is relocated. 23781hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23782 23783# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23784# into the resulting binary. 23785hardcode_minus_L=$hardcode_minus_L_CXX 23786 23787# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23788# into the resulting binary. 23789hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23790 23791# Set to "yes" if building a shared library automatically hardcodes DIR 23792# into the library and all subsequent libraries and executables linked 23793# against it. 23794hardcode_automatic=$hardcode_automatic_CXX 23795 23796# Set to yes if linker adds runtime paths of dependent libraries 23797# to runtime path list. 23798inherit_rpath=$inherit_rpath_CXX 23799 23800# Whether libtool must link a program against all its dependency libraries. 23801link_all_deplibs=$link_all_deplibs_CXX 23802 23803# Set to "yes" if exported symbols are required. 23804always_export_symbols=$always_export_symbols_CXX 23805 23806# The commands to list exported symbols. 23807export_symbols_cmds=$lt_export_symbols_cmds_CXX 23808 23809# Symbols that should not be listed in the preloaded symbols. 23810exclude_expsyms=$lt_exclude_expsyms_CXX 23811 23812# Symbols that must always be exported. 23813include_expsyms=$lt_include_expsyms_CXX 23814 23815# Commands necessary for linking programs (against libraries) with templates. 23816prelink_cmds=$lt_prelink_cmds_CXX 23817 23818# Commands necessary for finishing linking programs. 23819postlink_cmds=$lt_postlink_cmds_CXX 23820 23821# Specify filename containing input files. 23822file_list_spec=$lt_file_list_spec_CXX 23823 23824# How to hardcode a shared library path into an executable. 23825hardcode_action=$hardcode_action_CXX 23826 23827# The directories searched by this compiler when creating a shared library. 23828compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23829 23830# Dependencies to place before and after the objects being linked to 23831# create a shared library. 23832predep_objects=$lt_predep_objects_CXX 23833postdep_objects=$lt_postdep_objects_CXX 23834predeps=$lt_predeps_CXX 23835postdeps=$lt_postdeps_CXX 23836 23837# The library search path used internally by the compiler when linking 23838# a shared library. 23839compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23840 23841# ### END LIBTOOL TAG CONFIG: CXX 23842_LT_EOF 23843 23844 ;; 23845 23846 esac 23847done # for ac_tag 23848 23849 23850as_fn_exit 0 23851_ACEOF 23852ac_clean_files=$ac_clean_files_save 23853 23854test $ac_write_fail = 0 || 23855 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23856 23857 23858# configure is writing to config.log, and then calls config.status. 23859# config.status does its own redirection, appending to config.log. 23860# Unfortunately, on DOS this fails, as config.log is still kept open 23861# by configure, so config.status won't be able to write to it; its 23862# output is simply discarded. So we exec the FD to /dev/null, 23863# effectively closing config.log, so it can be properly (re)opened and 23864# appended to by config.status. When coming back to configure, we 23865# need to make the FD available again. 23866if test "$no_create" != yes; then 23867 ac_cs_success=: 23868 ac_config_status_args= 23869 test "$silent" = yes && 23870 ac_config_status_args="$ac_config_status_args --quiet" 23871 exec 5>/dev/null 23872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23873 exec 5>>config.log 23874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23875 # would make configure fail if this is the last instruction. 23876 $ac_cs_success || as_fn_exit 1 23877fi 23878if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23880$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23881fi 23882 23883 23884chmod 755 platform/unix/debian/rules 23885