1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for curlInterface GAP package. 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='curlInterface' 589PACKAGE_TARNAME='curlinterface' 590PACKAGE_VERSION='GAP package' 591PACKAGE_STRING='curlInterface GAP package' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/curl.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636CURL_CONFIG 637LIBCURL 638LIBCURL_CPPFLAGS 639_libcurl_config 640SYS_IS_CYGWIN_FALSE 641SYS_IS_CYGWIN_TRUE 642GAP_LIBS 643GAP_LDFLAGS 644GAP_CFLAGS 645GAP_CPPFLAGS 646GAPROOT 647GAPARCH 648CONFIGNAME 649CPP 650LT_SYS_LIBRARY_PATH 651OTOOL64 652OTOOL 653LIPO 654NMEDIT 655DSYMUTIL 656MANIFEST_TOOL 657RANLIB 658LN_S 659NM 660ac_ct_DUMPBIN 661DUMPBIN 662LD 663FGREP 664EGREP 665GREP 666SED 667LIBTOOL 668OBJDUMP 669DLLTOOL 670AS 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674am__nodep 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__quote 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688ac_ct_AR 689AR 690AM_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694am__untar 695am__tar 696AMTAR 697am__leading_dot 698SET_MAKE 699AWK 700mkdir_p 701MKDIR_P 702INSTALL_STRIP_PROGRAM 703STRIP 704install_sh 705MAKEINFO 706AUTOHEADER 707AUTOMAKE 708AUTOCONF 709ACLOCAL 710VERSION 711PACKAGE 712CYGPATH_W 713am__isrc 714INSTALL_DATA 715INSTALL_SCRIPT 716INSTALL_PROGRAM 717host_os 718host_vendor 719host_cpu 720host 721build_os 722build_vendor 723build_cpu 724build 725target_alias 726host_alias 727build_alias 728LIBS 729ECHO_T 730ECHO_N 731ECHO_C 732DEFS 733mandir 734localedir 735libdir 736psdir 737pdfdir 738dvidir 739htmldir 740infodir 741docdir 742oldincludedir 743includedir 744runstatedir 745localstatedir 746sharedstatedir 747sysconfdir 748datadir 749datarootdir 750libexecdir 751sbindir 752bindir 753program_transform_name 754prefix 755exec_prefix 756PACKAGE_URL 757PACKAGE_BUGREPORT 758PACKAGE_STRING 759PACKAGE_VERSION 760PACKAGE_TARNAME 761PACKAGE_NAME 762PATH_SEPARATOR 763SHELL' 764ac_subst_files='' 765ac_user_opts=' 766enable_option_checking 767enable_silent_rules 768enable_dependency_tracking 769enable_static 770enable_shared 771with_pic 772enable_fast_install 773with_aix_soname 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777with_gaproot 778with_gaparch 779with_libcurl 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789LT_SYS_LIBRARY_PATH 790CPP 791CONFIGNAME' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830runstatedir='${localstatedir}/run' 831includedir='${prefix}/include' 832oldincludedir='/usr/include' 833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834infodir='${datarootdir}/info' 835htmldir='${docdir}' 836dvidir='${docdir}' 837pdfdir='${docdir}' 838psdir='${docdir}' 839libdir='${exec_prefix}/lib' 840localedir='${datarootdir}/locale' 841mandir='${datarootdir}/man' 842 843ac_prev= 844ac_dashdash= 845for ac_option 846do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 # Accept the important Cygnus configure options, so we can diagnose typos. 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: $ac_useropt" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907"enable_$ac_useropt" 908"*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: $ac_useropt" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1084 | --runstate | --runstat | --runsta | --runst | --runs \ 1085 | --run | --ru | --r) 1086 ac_prev=runstatedir ;; 1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1089 | --run=* | --ru=* | --r=*) 1090 runstatedir=$ac_optarg ;; 1091 1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 ac_prev=sbindir ;; 1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 | --sbi=* | --sb=*) 1096 sbindir=$ac_optarg ;; 1097 1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1100 | --sharedst | --shareds | --shared | --share | --shar \ 1101 | --sha | --sh) 1102 ac_prev=sharedstatedir ;; 1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1106 | --sha=* | --sh=*) 1107 sharedstatedir=$ac_optarg ;; 1108 1109 -site | --site | --sit) 1110 ac_prev=site ;; 1111 -site=* | --site=* | --sit=*) 1112 site=$ac_optarg ;; 1113 1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1115 ac_prev=srcdir ;; 1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1117 srcdir=$ac_optarg ;; 1118 1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1120 | --syscon | --sysco | --sysc | --sys | --sy) 1121 ac_prev=sysconfdir ;; 1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1124 sysconfdir=$ac_optarg ;; 1125 1126 -target | --target | --targe | --targ | --tar | --ta | --t) 1127 ac_prev=target_alias ;; 1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1129 target_alias=$ac_optarg ;; 1130 1131 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1132 verbose=yes ;; 1133 1134 -version | --version | --versio | --versi | --vers | -V) 1135 ac_init_version=: ;; 1136 1137 -with-* | --with-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: $ac_useropt" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=\$ac_optarg ;; 1152 1153 -without-* | --without-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=no ;; 1168 1169 --x) 1170 # Obsolete; use --with-x. 1171 with_x=yes ;; 1172 1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1174 | --x-incl | --x-inc | --x-in | --x-i) 1175 ac_prev=x_includes ;; 1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1178 x_includes=$ac_optarg ;; 1179 1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1182 ac_prev=x_libraries ;; 1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1185 x_libraries=$ac_optarg ;; 1186 1187 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1188Try \`$0 --help' for more information" 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 case $ac_envvar in #( 1195 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1197 esac 1198 eval $ac_envvar=\$ac_optarg 1199 export $ac_envvar ;; 1200 1201 *) 1202 # FIXME: should be removed in autoconf 3.0. 1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1207 ;; 1208 1209 esac 1210done 1211 1212if test -n "$ac_prev"; then 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1214 as_fn_error $? "missing argument to $ac_option" 1215fi 1216 1217if test -n "$ac_unrecognized_opts"; then 1218 case $enable_option_checking in 1219 no) ;; 1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1222 esac 1223fi 1224 1225# Check all directory arguments for consistency. 1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1227 datadir sysconfdir sharedstatedir localstatedir includedir \ 1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229 libdir localedir mandir runstatedir 1230do 1231 eval ac_val=\$$ac_var 1232 # Remove trailing slashes. 1233 case $ac_val in 1234 */ ) 1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1236 eval $ac_var=\$ac_val;; 1237 esac 1238 # Be sure to have absolute directory names. 1239 case $ac_val in 1240 [\\/$]* | ?:[\\/]* ) continue;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1242 esac 1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1244done 1245 1246# There might be people who depend on the old broken behavior: `$host' 1247# used to hold the argument of --host etc. 1248# FIXME: To remove some day. 1249build=$build_alias 1250host=$host_alias 1251target=$target_alias 1252 1253# FIXME: To remove some day. 1254if test "x$host_alias" != x; then 1255 if test "x$build_alias" = x; then 1256 cross_compiling=maybe 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260fi 1261 1262ac_tool_prefix= 1263test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265test "$silent" = yes && exec 6>/dev/null 1266 1267 1268ac_pwd=`pwd` && test -n "$ac_pwd" && 1269ac_ls_di=`ls -di .` && 1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276# Find the source files, if location was not specified. 1277if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285$as_echo X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307else 1308 ac_srcdir_defaulted=no 1309fi 1310if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313fi 1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1315ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318# When building in place, set srcdir=. 1319if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321fi 1322# Remove unnecessary trailing slashes from srcdir. 1323# Double slashes in file names in object file debugging info 1324# mess up M-x gdb in Emacs. 1325case $srcdir in 1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327esac 1328for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333done 1334 1335# 1336# Report the --help message. 1337# 1338if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342\`configure' configures curlInterface GAP package to adapt to many kinds of systems. 1343 1344Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349Defaults for the options are specified in brackets. 1350 1351Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print \`checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for \`--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1361 1362Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368By default, \`make install' will install all the files in 1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1370an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1371for instance \`--prefix=\$HOME'. 1372 1373For better control, use the options below. 1374 1375Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/curlinterface] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396_ACEOF 1397 1398 cat <<\_ACEOF 1399 1400Program names: 1401 --program-prefix=PREFIX prepend PREFIX to installed program names 1402 --program-suffix=SUFFIX append SUFFIX to installed program names 1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1404 1405System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408_ACEOF 1409fi 1410 1411if test -n "$ac_init_help"; then 1412 case $ac_init_help in 1413 short | recursive ) echo "Configuration of curlInterface GAP package:";; 1414 esac 1415 cat <<\_ACEOF 1416 1417Optional Features: 1418 --disable-option-checking ignore unrecognized --enable/--with options 1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1421 --enable-silent-rules less verbose build output (undo: "make V=1") 1422 --disable-silent-rules verbose build output (undo: "make V=0") 1423 --enable-dependency-tracking 1424 do not reject slow dependency extractors 1425 --disable-dependency-tracking 1426 speeds up one-time build 1427 --enable-static[=PKGS] build static libraries [default=no] 1428 --enable-shared[=PKGS] build shared libraries [default=yes] 1429 --enable-fast-install[=PKGS] 1430 optimize for fast installation [default=yes] 1431 --disable-libtool-lock avoid locking (might break parallel builds) 1432 1433Optional Packages: 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1436 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1437 both] 1438 --with-aix-soname=aix|svr4|both 1439 shared library versioning (aka "SONAME") variant to 1440 provide on AIX, [default=aix]. 1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1442 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1443 compiler's sysroot if not specified). 1444 --with-gaproot=<path> specify root of GAP installation 1445 --with-gaparch=<path> override GAP architecture string 1446 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers 1447 in PREFIX/include 1448 1449Some influential environment variables: 1450 CC C compiler command 1451 CFLAGS C compiler flags 1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1453 nonstandard directory <lib dir> 1454 LIBS libraries to pass to the linker, e.g. -l<library> 1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1456 you have headers in a nonstandard directory <include dir> 1457 LT_SYS_LIBRARY_PATH 1458 User-defined run-time library search path. 1459 CPP C preprocessor 1460 CONFIGNAME Set this to the CONFIGNAME of the GAP compilation against which 1461 you want to compile this package. Leave this variable empty for 1462 GAP versions < 4.5. 1463 1464Use these variables to override the choices made by `configure' or to help 1465it to find libraries and programs with nonstandard names/locations. 1466 1467Report bugs to the package provider. 1468_ACEOF 1469ac_status=$? 1470fi 1471 1472if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for guested configure. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530curlInterface configure GAP package 1531generated by GNU Autoconf 2.69 1532 1533Copyright (C) 2012 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_compile 1581 1582# ac_fn_c_try_link LINENO 1583# ----------------------- 1584# Try to link conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_link () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext conftest$ac_exeext 1589 if { { ac_try="$ac_link" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_link") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest$ac_exeext && { 1608 test "$cross_compiling" = yes || 1609 test -x conftest$ac_exeext 1610 }; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1620 # interfere with the next link command; also delete a directory that is 1621 # left behind by Apple's compiler. We do this before executing the actions. 1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 as_fn_set_status $ac_retval 1625 1626} # ac_fn_c_try_link 1627 1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1629# ------------------------------------------------------- 1630# Tests whether HEADER exists and can be compiled using the include files in 1631# INCLUDES, setting the cache variable VAR accordingly. 1632ac_fn_c_check_header_compile () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1636$as_echo_n "checking for $2... " >&6; } 1637if eval \${$3+:} false; then : 1638 $as_echo_n "(cached) " >&6 1639else 1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641/* end confdefs.h. */ 1642$4 1643#include <$2> 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO"; then : 1646 eval "$3=yes" 1647else 1648 eval "$3=no" 1649fi 1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1651fi 1652eval ac_res=\$$3 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654$as_echo "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657} # ac_fn_c_check_header_compile 1658 1659# ac_fn_c_try_cpp LINENO 1660# ---------------------- 1661# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_cpp () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 if { { ac_try="$ac_cpp conftest.$ac_ext" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671$as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1673 ac_status=$? 1674 if test -s conftest.err; then 1675 grep -v '^ *+' conftest.err >conftest.er1 1676 cat conftest.er1 >&5 1677 mv -f conftest.er1 conftest.err 1678 fi 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } > conftest.i && { 1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1682 test ! -s conftest.err 1683 }; then : 1684 ac_retval=0 1685else 1686 $as_echo "$as_me: failed program was:" >&5 1687sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=1 1690fi 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 as_fn_set_status $ac_retval 1693 1694} # ac_fn_c_try_cpp 1695 1696# ac_fn_c_try_run LINENO 1697# ---------------------- 1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1699# that executables *can* be run. 1700ac_fn_c_try_run () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_link" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_link") 2>&5 1711 ac_status=$? 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1714 { { case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717esac 1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719$as_echo "$ac_try_echo"; } >&5 1720 (eval "$ac_try") 2>&5 1721 ac_status=$? 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; }; }; then : 1724 ac_retval=0 1725else 1726 $as_echo "$as_me: program exited with status $ac_status" >&5 1727 $as_echo "$as_me: failed program was:" >&5 1728sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=$ac_status 1731fi 1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_c_try_run 1737 1738# ac_fn_c_check_func LINENO FUNC VAR 1739# ---------------------------------- 1740# Tests whether FUNC exists, setting the cache variable VAR accordingly 1741ac_fn_c_check_func () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1753#define $2 innocuous_$2 1754 1755/* System header to define __stub macros and hopefully few prototypes, 1756 which can conflict with char $2 (); below. 1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1758 <limits.h> exists even on freestanding compilers. */ 1759 1760#ifdef __STDC__ 1761# include <limits.h> 1762#else 1763# include <assert.h> 1764#endif 1765 1766#undef $2 1767 1768/* Override any GCC internal prototype to avoid an error. 1769 Use char because int might match the return type of a GCC 1770 builtin and then its argument prototype would still apply. */ 1771#ifdef __cplusplus 1772extern "C" 1773#endif 1774char $2 (); 1775/* The GNU C library defines this for functions which it implements 1776 to always fail with ENOSYS. Some functions are actually named 1777 something starting with __ and the normal name is an alias. */ 1778#if defined __stub_$2 || defined __stub___$2 1779choke me 1780#endif 1781 1782int 1783main () 1784{ 1785return $2 (); 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_link "$LINENO"; then : 1791 eval "$3=yes" 1792else 1793 eval "$3=no" 1794fi 1795rm -f core conftest.err conftest.$ac_objext \ 1796 conftest$ac_exeext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_func 1804cat >config.log <<_ACEOF 1805This file contains any messages produced by compilers while 1806running configure, to aid debugging if configure makes a mistake. 1807 1808It was created by curlInterface $as_me GAP package, which was 1809generated by GNU Autoconf 2.69. Invocation command line was 1810 1811 $ $0 $@ 1812 1813_ACEOF 1814exec 5>>config.log 1815{ 1816cat <<_ASUNAME 1817## --------- ## 1818## Platform. ## 1819## --------- ## 1820 1821hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1822uname -m = `(uname -m) 2>/dev/null || echo unknown` 1823uname -r = `(uname -r) 2>/dev/null || echo unknown` 1824uname -s = `(uname -s) 2>/dev/null || echo unknown` 1825uname -v = `(uname -v) 2>/dev/null || echo unknown` 1826 1827/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1828/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1829 1830/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1831/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1832/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1833/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1834/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1835/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1836/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1837 1838_ASUNAME 1839 1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1841for as_dir in $PATH 1842do 1843 IFS=$as_save_IFS 1844 test -z "$as_dir" && as_dir=. 1845 $as_echo "PATH: $as_dir" 1846 done 1847IFS=$as_save_IFS 1848 1849} >&5 1850 1851cat >&5 <<_ACEOF 1852 1853 1854## ----------- ## 1855## Core tests. ## 1856## ----------- ## 1857 1858_ACEOF 1859 1860 1861# Keep a trace of the command line. 1862# Strip out --no-create and --no-recursion so they do not pile up. 1863# Strip out --silent because we don't want to record it for future runs. 1864# Also quote any args containing shell meta-characters. 1865# Make two passes to allow for proper duplicate-argument suppression. 1866ac_configure_args= 1867ac_configure_args0= 1868ac_configure_args1= 1869ac_must_keep_next=false 1870for ac_pass in 1 2 1871do 1872 for ac_arg 1873 do 1874 case $ac_arg in 1875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1877 | -silent | --silent | --silen | --sile | --sil) 1878 continue ;; 1879 *\'*) 1880 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1881 esac 1882 case $ac_pass in 1883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1884 2) 1885 as_fn_append ac_configure_args1 " '$ac_arg'" 1886 if test $ac_must_keep_next = true; then 1887 ac_must_keep_next=false # Got value, back to normal. 1888 else 1889 case $ac_arg in 1890 *=* | --config-cache | -C | -disable-* | --disable-* \ 1891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1893 | -with-* | --with-* | -without-* | --without-* | --x) 1894 case "$ac_configure_args0 " in 1895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1896 esac 1897 ;; 1898 -* ) ac_must_keep_next=true ;; 1899 esac 1900 fi 1901 as_fn_append ac_configure_args " '$ac_arg'" 1902 ;; 1903 esac 1904 done 1905done 1906{ ac_configure_args0=; unset ac_configure_args0;} 1907{ ac_configure_args1=; unset ac_configure_args1;} 1908 1909# When interrupted or exit'd, cleanup temporary files, and complete 1910# config.log. We remove comments because anyway the quotes in there 1911# would cause problems or look ugly. 1912# WARNING: Use '\'' to represent an apostrophe within the trap. 1913# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1914trap 'exit_status=$? 1915 # Save into config.log some information that might help in debugging. 1916 { 1917 echo 1918 1919 $as_echo "## ---------------- ## 1920## Cache variables. ## 1921## ---------------- ##" 1922 echo 1923 # The following way of writing the cache mishandles newlines in values, 1924( 1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1926 eval ac_val=\$$ac_var 1927 case $ac_val in #( 1928 *${as_nl}*) 1929 case $ac_var in #( 1930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1931$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1932 esac 1933 case $ac_var in #( 1934 _ | IFS | as_nl) ;; #( 1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1936 *) { eval $ac_var=; unset $ac_var;} ;; 1937 esac ;; 1938 esac 1939 done 1940 (set) 2>&1 | 1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1942 *${as_nl}ac_space=\ *) 1943 sed -n \ 1944 "s/'\''/'\''\\\\'\'''\''/g; 1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1946 ;; #( 1947 *) 1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1949 ;; 1950 esac | 1951 sort 1952) 1953 echo 1954 1955 $as_echo "## ----------------- ## 1956## Output variables. ## 1957## ----------------- ##" 1958 echo 1959 for ac_var in $ac_subst_vars 1960 do 1961 eval ac_val=\$$ac_var 1962 case $ac_val in 1963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1964 esac 1965 $as_echo "$ac_var='\''$ac_val'\''" 1966 done | sort 1967 echo 1968 1969 if test -n "$ac_subst_files"; then 1970 $as_echo "## ------------------- ## 1971## File substitutions. ## 1972## ------------------- ##" 1973 echo 1974 for ac_var in $ac_subst_files 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 $as_echo "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 fi 1984 1985 if test -s confdefs.h; then 1986 $as_echo "## ----------- ## 1987## confdefs.h. ## 1988## ----------- ##" 1989 echo 1990 cat confdefs.h 1991 echo 1992 fi 1993 test "$ac_signal" != 0 && 1994 $as_echo "$as_me: caught signal $ac_signal" 1995 $as_echo "$as_me: exit $exit_status" 1996 } >&5 1997 rm -f core *.core core.conftest.* && 1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1999 exit $exit_status 2000' 0 2001for ac_signal in 1 2 13 15; do 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2003done 2004ac_signal=0 2005 2006# confdefs.h avoids OS command line length limits that DEFS can exceed. 2007rm -f -r conftest* confdefs.h 2008 2009$as_echo "/* confdefs.h */" > confdefs.h 2010 2011# Predefined preprocessor variables. 2012 2013cat >>confdefs.h <<_ACEOF 2014#define PACKAGE_NAME "$PACKAGE_NAME" 2015_ACEOF 2016 2017cat >>confdefs.h <<_ACEOF 2018#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2019_ACEOF 2020 2021cat >>confdefs.h <<_ACEOF 2022#define PACKAGE_VERSION "$PACKAGE_VERSION" 2023_ACEOF 2024 2025cat >>confdefs.h <<_ACEOF 2026#define PACKAGE_STRING "$PACKAGE_STRING" 2027_ACEOF 2028 2029cat >>confdefs.h <<_ACEOF 2030#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2031_ACEOF 2032 2033cat >>confdefs.h <<_ACEOF 2034#define PACKAGE_URL "$PACKAGE_URL" 2035_ACEOF 2036 2037 2038# Let the site file select an alternate cache file if it wants to. 2039# Prefer an explicitly selected file to automatically selected ones. 2040ac_site_file1=NONE 2041ac_site_file2=NONE 2042if test -n "$CONFIG_SITE"; then 2043 # We do not want a PATH search for config.site. 2044 case $CONFIG_SITE in #(( 2045 -*) ac_site_file1=./$CONFIG_SITE;; 2046 */*) ac_site_file1=$CONFIG_SITE;; 2047 *) ac_site_file1=./$CONFIG_SITE;; 2048 esac 2049elif test "x$prefix" != xNONE; then 2050 ac_site_file1=$prefix/share/config.site 2051 ac_site_file2=$prefix/etc/config.site 2052else 2053 ac_site_file1=$ac_default_prefix/share/config.site 2054 ac_site_file2=$ac_default_prefix/etc/config.site 2055fi 2056for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2057do 2058 test "x$ac_site_file" = xNONE && continue 2059 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2061$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2062 sed 's/^/| /' "$ac_site_file" >&5 2063 . "$ac_site_file" \ 2064 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2066as_fn_error $? "failed to load site script $ac_site_file 2067See \`config.log' for more details" "$LINENO" 5; } 2068 fi 2069done 2070 2071if test -r "$cache_file"; then 2072 # Some versions of bash will fail to source /dev/null (special files 2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2076$as_echo "$as_me: loading cache $cache_file" >&6;} 2077 case $cache_file in 2078 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2079 *) . "./$cache_file";; 2080 esac 2081 fi 2082else 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2084$as_echo "$as_me: creating cache $cache_file" >&6;} 2085 >$cache_file 2086fi 2087 2088# Check that the precious variables saved in the cache have kept the same 2089# value. 2090ac_cache_corrupted=false 2091for ac_var in $ac_precious_vars; do 2092 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2093 eval ac_new_set=\$ac_env_${ac_var}_set 2094 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2095 eval ac_new_val=\$ac_env_${ac_var}_value 2096 case $ac_old_set,$ac_new_set in 2097 set,) 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2099$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2100 ac_cache_corrupted=: ;; 2101 ,set) 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2103$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2104 ac_cache_corrupted=: ;; 2105 ,);; 2106 *) 2107 if test "x$ac_old_val" != "x$ac_new_val"; then 2108 # differences in whitespace do not lead to failure. 2109 ac_old_val_w=`echo x $ac_old_val` 2110 ac_new_val_w=`echo x $ac_new_val` 2111 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2113$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2114 ac_cache_corrupted=: 2115 else 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2117$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2118 eval $ac_var=\$ac_old_val 2119 fi 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2121$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2123$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2124 fi;; 2125 esac 2126 # Pass precious variables to config.status. 2127 if test "$ac_new_set" = set; then 2128 case $ac_new_val in 2129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2130 *) ac_arg=$ac_var=$ac_new_val ;; 2131 esac 2132 case " $ac_configure_args " in 2133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2134 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2135 esac 2136 fi 2137done 2138if $ac_cache_corrupted; then 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2142$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2143 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2144fi 2145## -------------------- ## 2146## Main body of script. ## 2147## -------------------- ## 2148 2149ac_ext=c 2150ac_cpp='$CPP $CPPFLAGS' 2151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2153ac_compiler_gnu=$ac_cv_c_compiler_gnu 2154 2155 2156 2157ac_config_headers="$ac_config_headers src/pkgconfig.h:cnf/pkgconfig.h.in" 2158 2159 2160ac_aux_dir= 2161for ac_dir in cnf "$srcdir"/cnf; do 2162 if test -f "$ac_dir/install-sh"; then 2163 ac_aux_dir=$ac_dir 2164 ac_install_sh="$ac_aux_dir/install-sh -c" 2165 break 2166 elif test -f "$ac_dir/install.sh"; then 2167 ac_aux_dir=$ac_dir 2168 ac_install_sh="$ac_aux_dir/install.sh -c" 2169 break 2170 elif test -f "$ac_dir/shtool"; then 2171 ac_aux_dir=$ac_dir 2172 ac_install_sh="$ac_aux_dir/shtool install -c" 2173 break 2174 fi 2175done 2176if test -z "$ac_aux_dir"; then 2177 as_fn_error $? "cannot find install-sh, install.sh, or shtool in cnf \"$srcdir\"/cnf" "$LINENO" 5 2178fi 2179 2180# These three variables are undocumented and unsupported, 2181# and are intended to be withdrawn in a future Autoconf release. 2182# They can cause serious problems if a builder's source tree is in a directory 2183# whose full name contains unusual characters. 2184ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2185ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2186ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2187 2188 2189# Find the location of GAP 2190# Sets GAPROOT, GAPARCH and GAP_CPPFLAGS appropriately 2191# Can be configured using --with-gaproot=... and CONFIGNAME=... 2192####################################################################### 2193 2194 2195 2196#*************************************************************************** 2197# _ _ ____ _ 2198# Project ___| | | | _ \| | 2199# / __| | | | |_) | | 2200# | (__| |_| | _ <| |___ 2201# \___|\___/|_| \_\_____| 2202# 2203# Copyright (C) 2006, David Shaw <dshaw@jabberwocky.com> 2204# 2205# This software is licensed as described in the file COPYING, which 2206# you should have received as part of this distribution. The terms 2207# are also available at https://curl.haxx.se/docs/copyright.html. 2208# 2209# You may opt to use, copy, modify, merge, publish, distribute and/or sell 2210# copies of the Software, and permit persons to whom the Software is 2211# furnished to do so, under the terms of the COPYING file. 2212# 2213# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 2214# KIND, either express or implied. 2215# 2216########################################################################### 2217# LIBCURL_CHECK_CONFIG ([DEFAULT-ACTION], [MINIMUM-VERSION], 2218# [ACTION-IF-YES], [ACTION-IF-NO]) 2219# ---------------------------------------------------------- 2220# David Shaw <dshaw@jabberwocky.com> May-09-2006 2221# 2222# Checks for libcurl. DEFAULT-ACTION is the string yes or no to 2223# specify whether to default to --with-libcurl or --without-libcurl. 2224# If not supplied, DEFAULT-ACTION is yes. MINIMUM-VERSION is the 2225# minimum version of libcurl to accept. Pass the version as a regular 2226# version number like 7.10.1. If not supplied, any version is 2227# accepted. ACTION-IF-YES is a list of shell commands to run if 2228# libcurl was successfully found and passed the various tests. 2229# ACTION-IF-NO is a list of shell commands that are run otherwise. 2230# Note that using --without-libcurl does run ACTION-IF-NO. 2231# 2232# This macro #defines HAVE_LIBCURL if a working libcurl setup is 2233# found, and sets @LIBCURL@ and @LIBCURL_CPPFLAGS@ to the necessary 2234# values. Other useful defines are LIBCURL_FEATURE_xxx where xxx are 2235# the various features supported by libcurl, and LIBCURL_PROTOCOL_yyy 2236# where yyy are the various protocols supported by libcurl. Both xxx 2237# and yyy are capitalized. See the list of AH_TEMPLATEs at the top of 2238# the macro for the complete list of possible defines. Shell 2239# variables $libcurl_feature_xxx and $libcurl_protocol_yyy are also 2240# defined to 'yes' for those features and protocols that were found. 2241# Note that xxx and yyy keep the same capitalization as in the 2242# curl-config list (e.g. it's "HTTP" and not "http"). 2243# 2244# Users may override the detected values by doing something like: 2245# LIBCURL="-lcurl" LIBCURL_CPPFLAGS="-I/usr/myinclude" ./configure 2246# 2247# For the sake of sanity, this macro assumes that any libcurl that is 2248# found is after version 7.7.2, the first version that included the 2249# curl-config script. Note that it is very important for people 2250# packaging binary versions of libcurl to include this script! 2251# Without curl-config, we can only guess what protocols are available, 2252# or use curl_version_info to figure it out at runtime. 2253 2254 2255 2256 2257# Make sure we can run config.sub. 2258$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2259 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2260 2261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2262$as_echo_n "checking build system type... " >&6; } 2263if ${ac_cv_build+:} false; then : 2264 $as_echo_n "(cached) " >&6 2265else 2266 ac_build_alias=$build_alias 2267test "x$ac_build_alias" = x && 2268 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2269test "x$ac_build_alias" = x && 2270 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2271ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2272 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2273 2274fi 2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2276$as_echo "$ac_cv_build" >&6; } 2277case $ac_cv_build in 2278*-*-*) ;; 2279*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2280esac 2281build=$ac_cv_build 2282ac_save_IFS=$IFS; IFS='-' 2283set x $ac_cv_build 2284shift 2285build_cpu=$1 2286build_vendor=$2 2287shift; shift 2288# Remember, the first character of IFS is used to create $*, 2289# except with old shells: 2290build_os=$* 2291IFS=$ac_save_IFS 2292case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2293 2294 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2296$as_echo_n "checking host system type... " >&6; } 2297if ${ac_cv_host+:} false; then : 2298 $as_echo_n "(cached) " >&6 2299else 2300 if test "x$host_alias" = x; then 2301 ac_cv_host=$ac_cv_build 2302else 2303 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2304 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2305fi 2306 2307fi 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2309$as_echo "$ac_cv_host" >&6; } 2310case $ac_cv_host in 2311*-*-*) ;; 2312*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2313esac 2314host=$ac_cv_host 2315ac_save_IFS=$IFS; IFS='-' 2316set x $ac_cv_host 2317shift 2318host_cpu=$1 2319host_vendor=$2 2320shift; shift 2321# Remember, the first character of IFS is used to create $*, 2322# except with old shells: 2323host_os=$* 2324IFS=$ac_save_IFS 2325case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2326 2327 2328 2329am__api_version='1.15' 2330 2331# Find a good install program. We prefer a C program (faster), 2332# so one script is as good as another. But avoid the broken or 2333# incompatible versions: 2334# SysV /etc/install, /usr/sbin/install 2335# SunOS /usr/etc/install 2336# IRIX /sbin/install 2337# AIX /bin/install 2338# AmigaOS /C/install, which installs bootblocks on floppy discs 2339# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2340# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2341# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2342# OS/2's system install, which has a completely different semantic 2343# ./install, which can be erroneously created by make from ./install.sh. 2344# Reject install programs that cannot install multiple files. 2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2346$as_echo_n "checking for a BSD-compatible install... " >&6; } 2347if test -z "$INSTALL"; then 2348if ${ac_cv_path_install+:} false; then : 2349 $as_echo_n "(cached) " >&6 2350else 2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 # Account for people who put trailing slashes in PATH elements. 2357case $as_dir/ in #(( 2358 ./ | .// | /[cC]/* | \ 2359 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2360 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2361 /usr/ucb/* ) ;; 2362 *) 2363 # OSF1 and SCO ODT 3.0 have their own names for install. 2364 # Don't use installbsd from OSF since it installs stuff as root 2365 # by default. 2366 for ac_prog in ginstall scoinst install; do 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2369 if test $ac_prog = install && 2370 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2371 # AIX install. It has an incompatible calling convention. 2372 : 2373 elif test $ac_prog = install && 2374 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2375 # program-specific install script used by HP pwplus--don't use. 2376 : 2377 else 2378 rm -rf conftest.one conftest.two conftest.dir 2379 echo one > conftest.one 2380 echo two > conftest.two 2381 mkdir conftest.dir 2382 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2383 test -s conftest.one && test -s conftest.two && 2384 test -s conftest.dir/conftest.one && 2385 test -s conftest.dir/conftest.two 2386 then 2387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2388 break 3 2389 fi 2390 fi 2391 fi 2392 done 2393 done 2394 ;; 2395esac 2396 2397 done 2398IFS=$as_save_IFS 2399 2400rm -rf conftest.one conftest.two conftest.dir 2401 2402fi 2403 if test "${ac_cv_path_install+set}" = set; then 2404 INSTALL=$ac_cv_path_install 2405 else 2406 # As a last resort, use the slow shell script. Don't cache a 2407 # value for INSTALL within a source directory, because that will 2408 # break other packages using the cache if that directory is 2409 # removed, or if the value is a relative name. 2410 INSTALL=$ac_install_sh 2411 fi 2412fi 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2414$as_echo "$INSTALL" >&6; } 2415 2416# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2417# It thinks the first close brace ends the variable substitution. 2418test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2419 2420test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2421 2422test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2423 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2425$as_echo_n "checking whether build environment is sane... " >&6; } 2426# Reject unsafe characters in $srcdir or the absolute working directory 2427# name. Accept space and tab only in the latter. 2428am_lf=' 2429' 2430case `pwd` in 2431 *[\\\"\#\$\&\'\`$am_lf]*) 2432 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2433esac 2434case $srcdir in 2435 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2436 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2437esac 2438 2439# Do 'set' in a subshell so we don't clobber the current shell's 2440# arguments. Must try -L first in case configure is actually a 2441# symlink; some systems play weird games with the mod time of symlinks 2442# (eg FreeBSD returns the mod time of the symlink's containing 2443# directory). 2444if ( 2445 am_has_slept=no 2446 for am_try in 1 2; do 2447 echo "timestamp, slept: $am_has_slept" > conftest.file 2448 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2449 if test "$*" = "X"; then 2450 # -L didn't work. 2451 set X `ls -t "$srcdir/configure" conftest.file` 2452 fi 2453 if test "$*" != "X $srcdir/configure conftest.file" \ 2454 && test "$*" != "X conftest.file $srcdir/configure"; then 2455 2456 # If neither matched, then we have a broken ls. This can happen 2457 # if, for instance, CONFIG_SHELL is bash and it inherits a 2458 # broken ls alias from the environment. This has actually 2459 # happened. Such a system could not be considered "sane". 2460 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2461 alias in your environment" "$LINENO" 5 2462 fi 2463 if test "$2" = conftest.file || test $am_try -eq 2; then 2464 break 2465 fi 2466 # Just in case. 2467 sleep 1 2468 am_has_slept=yes 2469 done 2470 test "$2" = conftest.file 2471 ) 2472then 2473 # Ok. 2474 : 2475else 2476 as_fn_error $? "newly created file is older than distributed files! 2477Check your system clock" "$LINENO" 5 2478fi 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2480$as_echo "yes" >&6; } 2481# If we didn't sleep, we still need to ensure time stamps of config.status and 2482# generated files are strictly newer. 2483am_sleep_pid= 2484if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2485 ( sleep 1 ) & 2486 am_sleep_pid=$! 2487fi 2488 2489rm -f conftest.file 2490 2491test "$program_prefix" != NONE && 2492 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2493# Use a double $ so make ignores it. 2494test "$program_suffix" != NONE && 2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2496# Double any \ or $. 2497# By default was `s,x,x', remove it if useless. 2498ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2499program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2500 2501# Expand $ac_aux_dir to an absolute path. 2502am_aux_dir=`cd "$ac_aux_dir" && pwd` 2503 2504if test x"${MISSING+set}" != xset; then 2505 case $am_aux_dir in 2506 *\ * | *\ *) 2507 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2508 *) 2509 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2510 esac 2511fi 2512# Use eval to expand $SHELL 2513if eval "$MISSING --is-lightweight"; then 2514 am_missing_run="$MISSING " 2515else 2516 am_missing_run= 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2518$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2519fi 2520 2521if test x"${install_sh+set}" != xset; then 2522 case $am_aux_dir in 2523 *\ * | *\ *) 2524 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2525 *) 2526 install_sh="\${SHELL} $am_aux_dir/install-sh" 2527 esac 2528fi 2529 2530# Installed binaries are usually stripped using 'strip' when the user 2531# run "make install-strip". However 'strip' might not be the right 2532# tool to use in cross-compilation environments, therefore Automake 2533# will honor the 'STRIP' environment variable to overrule this program. 2534if test "$cross_compiling" != no; then 2535 if test -n "$ac_tool_prefix"; then 2536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2537set dummy ${ac_tool_prefix}strip; ac_word=$2 2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2539$as_echo_n "checking for $ac_word... " >&6; } 2540if ${ac_cv_prog_STRIP+:} false; then : 2541 $as_echo_n "(cached) " >&6 2542else 2543 if test -n "$STRIP"; then 2544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2545else 2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547for as_dir in $PATH 2548do 2549 IFS=$as_save_IFS 2550 test -z "$as_dir" && as_dir=. 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2553 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2555 break 2 2556 fi 2557done 2558 done 2559IFS=$as_save_IFS 2560 2561fi 2562fi 2563STRIP=$ac_cv_prog_STRIP 2564if test -n "$STRIP"; then 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2566$as_echo "$STRIP" >&6; } 2567else 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2569$as_echo "no" >&6; } 2570fi 2571 2572 2573fi 2574if test -z "$ac_cv_prog_STRIP"; then 2575 ac_ct_STRIP=$STRIP 2576 # Extract the first word of "strip", so it can be a program name with args. 2577set dummy strip; ac_word=$2 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2579$as_echo_n "checking for $ac_word... " >&6; } 2580if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582else 2583 if test -n "$ac_ct_STRIP"; then 2584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2585else 2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2593 ac_cv_prog_ac_ct_STRIP="strip" 2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597done 2598 done 2599IFS=$as_save_IFS 2600 2601fi 2602fi 2603ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2604if test -n "$ac_ct_STRIP"; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2606$as_echo "$ac_ct_STRIP" >&6; } 2607else 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2609$as_echo "no" >&6; } 2610fi 2611 2612 if test "x$ac_ct_STRIP" = x; then 2613 STRIP=":" 2614 else 2615 case $cross_compiling:$ac_tool_warned in 2616yes:) 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2619ac_tool_warned=yes ;; 2620esac 2621 STRIP=$ac_ct_STRIP 2622 fi 2623else 2624 STRIP="$ac_cv_prog_STRIP" 2625fi 2626 2627fi 2628INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2629 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2631$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2632if test -z "$MKDIR_P"; then 2633 if ${ac_cv_path_mkdir+:} false; then : 2634 $as_echo_n "(cached) " >&6 2635else 2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_prog in mkdir gmkdir; do 2642 for ac_exec_ext in '' $ac_executable_extensions; do 2643 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2644 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2645 'mkdir (GNU coreutils) '* | \ 2646 'mkdir (coreutils) '* | \ 2647 'mkdir (fileutils) '4.1*) 2648 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2649 break 3;; 2650 esac 2651 done 2652 done 2653 done 2654IFS=$as_save_IFS 2655 2656fi 2657 2658 test -d ./--version && rmdir ./--version 2659 if test "${ac_cv_path_mkdir+set}" = set; then 2660 MKDIR_P="$ac_cv_path_mkdir -p" 2661 else 2662 # As a last resort, use the slow shell script. Don't cache a 2663 # value for MKDIR_P within a source directory, because that will 2664 # break other packages using the cache if that directory is 2665 # removed, or if the value is a relative name. 2666 MKDIR_P="$ac_install_sh -d" 2667 fi 2668fi 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2670$as_echo "$MKDIR_P" >&6; } 2671 2672for ac_prog in gawk mawk nawk awk 2673do 2674 # Extract the first word of "$ac_prog", so it can be a program name with args. 2675set dummy $ac_prog; ac_word=$2 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2677$as_echo_n "checking for $ac_word... " >&6; } 2678if ${ac_cv_prog_AWK+:} false; then : 2679 $as_echo_n "(cached) " >&6 2680else 2681 if test -n "$AWK"; then 2682 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2683else 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2691 ac_cv_prog_AWK="$ac_prog" 2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695done 2696 done 2697IFS=$as_save_IFS 2698 2699fi 2700fi 2701AWK=$ac_cv_prog_AWK 2702if test -n "$AWK"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2704$as_echo "$AWK" >&6; } 2705else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707$as_echo "no" >&6; } 2708fi 2709 2710 2711 test -n "$AWK" && break 2712done 2713 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2715$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2716set x ${MAKE-make} 2717ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2718if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 cat >conftest.make <<\_ACEOF 2722SHELL = /bin/sh 2723all: 2724 @echo '@@@%%%=$(MAKE)=@@@%%%' 2725_ACEOF 2726# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2727case `${MAKE-make} -f conftest.make 2>/dev/null` in 2728 *@@@%%%=?*=@@@%%%*) 2729 eval ac_cv_prog_make_${ac_make}_set=yes;; 2730 *) 2731 eval ac_cv_prog_make_${ac_make}_set=no;; 2732esac 2733rm -f conftest.make 2734fi 2735if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2737$as_echo "yes" >&6; } 2738 SET_MAKE= 2739else 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2741$as_echo "no" >&6; } 2742 SET_MAKE="MAKE=${MAKE-make}" 2743fi 2744 2745rm -rf .tst 2>/dev/null 2746mkdir .tst 2>/dev/null 2747if test -d .tst; then 2748 am__leading_dot=. 2749else 2750 am__leading_dot=_ 2751fi 2752rmdir .tst 2>/dev/null 2753 2754# Check whether --enable-silent-rules was given. 2755if test "${enable_silent_rules+set}" = set; then : 2756 enableval=$enable_silent_rules; 2757fi 2758 2759case $enable_silent_rules in # ((( 2760 yes) AM_DEFAULT_VERBOSITY=0;; 2761 no) AM_DEFAULT_VERBOSITY=1;; 2762 *) AM_DEFAULT_VERBOSITY=1;; 2763esac 2764am_make=${MAKE-make} 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2766$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2767if ${am_cv_make_support_nested_variables+:} false; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 if $as_echo 'TRUE=$(BAR$(V)) 2771BAR0=false 2772BAR1=true 2773V=1 2774am__doit: 2775 @$(TRUE) 2776.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2777 am_cv_make_support_nested_variables=yes 2778else 2779 am_cv_make_support_nested_variables=no 2780fi 2781fi 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2783$as_echo "$am_cv_make_support_nested_variables" >&6; } 2784if test $am_cv_make_support_nested_variables = yes; then 2785 AM_V='$(V)' 2786 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2787else 2788 AM_V=$AM_DEFAULT_VERBOSITY 2789 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2790fi 2791AM_BACKSLASH='\' 2792 2793if test "`cd $srcdir && pwd`" != "`pwd`"; then 2794 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2795 # is not polluted with repeated "-I." 2796 am__isrc=' -I$(srcdir)' 2797 # test to see if srcdir already configured 2798 if test -f $srcdir/config.status; then 2799 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2800 fi 2801fi 2802 2803# test whether we have cygpath 2804if test -z "$CYGPATH_W"; then 2805 if (cygpath --version) >/dev/null 2>/dev/null; then 2806 CYGPATH_W='cygpath -w' 2807 else 2808 CYGPATH_W=echo 2809 fi 2810fi 2811 2812 2813# Define the identity of the package. 2814 PACKAGE='curlinterface' 2815 VERSION='GAP package' 2816 2817 2818cat >>confdefs.h <<_ACEOF 2819#define PACKAGE "$PACKAGE" 2820_ACEOF 2821 2822 2823cat >>confdefs.h <<_ACEOF 2824#define VERSION "$VERSION" 2825_ACEOF 2826 2827# Some tools Automake needs. 2828 2829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2830 2831 2832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2833 2834 2835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2836 2837 2838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2839 2840 2841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2842 2843# For better backward compatibility. To be removed once Automake 1.9.x 2844# dies out for good. For more background, see: 2845# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2846# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2847mkdir_p='$(MKDIR_P)' 2848 2849# We need awk for the "check" target (and possibly the TAP driver). The 2850# system "awk" is bad on some platforms. 2851# Always define AMTAR for backward compatibility. Yes, it's still used 2852# in the wild :-( We should find a proper way to deprecate it ... 2853AMTAR='$${TAR-tar}' 2854 2855 2856# We'll loop over all known methods to create a tar archive until one works. 2857_am_tools='gnutar pax cpio none' 2858 2859am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2860 2861 2862 2863 2864 2865 2866# POSIX will say in a future version that running "rm -f" with no argument 2867# is OK; and we want to be able to make that assumption in our Makefile 2868# recipes. So use an aggressive probe to check that the usage we want is 2869# actually supported "in the wild" to an acceptable degree. 2870# See automake bug#10828. 2871# To make any issue more visible, cause the running configure to be aborted 2872# by default if the 'rm' program in use doesn't match our expectations; the 2873# user can still override this though. 2874if rm -f && rm -fr && rm -rf; then : OK; else 2875 cat >&2 <<'END' 2876Oops! 2877 2878Your 'rm' program seems unable to run without file operands specified 2879on the command line, even when the '-f' option is present. This is contrary 2880to the behaviour of most rm programs out there, and not conforming with 2881the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2882 2883Please tell bug-automake@gnu.org about your system, including the value 2884of your $PATH and any error possibly output before this message. This 2885can help us improve future automake versions. 2886 2887END 2888 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2889 echo 'Configuration will proceed anyway, since you have set the' >&2 2890 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2891 echo >&2 2892 else 2893 cat >&2 <<'END' 2894Aborting the configuration process, to ensure you take notice of the issue. 2895 2896You can download and install GNU coreutils to get an 'rm' implementation 2897that behaves properly: <http://www.gnu.org/software/coreutils/>. 2898 2899If you want to complete the configuration process using your problematic 2900'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2901to "yes", and re-run configure. 2902 2903END 2904 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2905 fi 2906fi 2907 2908# Check whether --enable-silent-rules was given. 2909if test "${enable_silent_rules+set}" = set; then : 2910 enableval=$enable_silent_rules; 2911fi 2912 2913case $enable_silent_rules in # ((( 2914 yes) AM_DEFAULT_VERBOSITY=0;; 2915 no) AM_DEFAULT_VERBOSITY=1;; 2916 *) AM_DEFAULT_VERBOSITY=0;; 2917esac 2918am_make=${MAKE-make} 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2920$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2921if ${am_cv_make_support_nested_variables+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if $as_echo 'TRUE=$(BAR$(V)) 2925BAR0=false 2926BAR1=true 2927V=1 2928am__doit: 2929 @$(TRUE) 2930.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2931 am_cv_make_support_nested_variables=yes 2932else 2933 am_cv_make_support_nested_variables=no 2934fi 2935fi 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2937$as_echo "$am_cv_make_support_nested_variables" >&6; } 2938if test $am_cv_make_support_nested_variables = yes; then 2939 AM_V='$(V)' 2940 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2941else 2942 AM_V=$AM_DEFAULT_VERBOSITY 2943 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2944fi 2945AM_BACKSLASH='\' 2946 2947DEPDIR="${am__leading_dot}deps" 2948 2949ac_config_commands="$ac_config_commands depfiles" 2950 2951 2952am_make=${MAKE-make} 2953cat > confinc << 'END' 2954am__doit: 2955 @echo this is the am__doit target 2956.PHONY: am__doit 2957END 2958# If we don't find an include directive, just comment out the code. 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2960$as_echo_n "checking for style of include used by $am_make... " >&6; } 2961am__include="#" 2962am__quote= 2963_am_result=none 2964# First try GNU make style include. 2965echo "include confinc" > confmf 2966# Ignore all kinds of additional output from 'make'. 2967case `$am_make -s -f confmf 2> /dev/null` in #( 2968*the\ am__doit\ target*) 2969 am__include=include 2970 am__quote= 2971 _am_result=GNU 2972 ;; 2973esac 2974# Now try BSD make style include. 2975if test "$am__include" = "#"; then 2976 echo '.include "confinc"' > confmf 2977 case `$am_make -s -f confmf 2> /dev/null` in #( 2978 *the\ am__doit\ target*) 2979 am__include=.include 2980 am__quote="\"" 2981 _am_result=BSD 2982 ;; 2983 esac 2984fi 2985 2986 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2988$as_echo "$_am_result" >&6; } 2989rm -f confinc confmf 2990 2991# Check whether --enable-dependency-tracking was given. 2992if test "${enable_dependency_tracking+set}" = set; then : 2993 enableval=$enable_dependency_tracking; 2994fi 2995 2996if test "x$enable_dependency_tracking" != xno; then 2997 am_depcomp="$ac_aux_dir/depcomp" 2998 AMDEPBACKSLASH='\' 2999 am__nodep='_no' 3000fi 3001 if test "x$enable_dependency_tracking" != xno; then 3002 AMDEP_TRUE= 3003 AMDEP_FALSE='#' 3004else 3005 AMDEP_TRUE='#' 3006 AMDEP_FALSE= 3007fi 3008 3009 3010ac_ext=c 3011ac_cpp='$CPP $CPPFLAGS' 3012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3014ac_compiler_gnu=$ac_cv_c_compiler_gnu 3015if test -n "$ac_tool_prefix"; then 3016 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3017set dummy ${ac_tool_prefix}gcc; ac_word=$2 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3019$as_echo_n "checking for $ac_word... " >&6; } 3020if ${ac_cv_prog_CC+:} false; then : 3021 $as_echo_n "(cached) " >&6 3022else 3023 if test -n "$CC"; then 3024 ac_cv_prog_CC="$CC" # Let the user override the test. 3025else 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3033 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038 done 3039IFS=$as_save_IFS 3040 3041fi 3042fi 3043CC=$ac_cv_prog_CC 3044if test -n "$CC"; then 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3046$as_echo "$CC" >&6; } 3047else 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049$as_echo "no" >&6; } 3050fi 3051 3052 3053fi 3054if test -z "$ac_cv_prog_CC"; then 3055 ac_ct_CC=$CC 3056 # Extract the first word of "gcc", so it can be a program name with args. 3057set dummy gcc; ac_word=$2 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3059$as_echo_n "checking for $ac_word... " >&6; } 3060if ${ac_cv_prog_ac_ct_CC+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 if test -n "$ac_ct_CC"; then 3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3065else 3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067for as_dir in $PATH 3068do 3069 IFS=$as_save_IFS 3070 test -z "$as_dir" && as_dir=. 3071 for ac_exec_ext in '' $ac_executable_extensions; do 3072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3073 ac_cv_prog_ac_ct_CC="gcc" 3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3075 break 2 3076 fi 3077done 3078 done 3079IFS=$as_save_IFS 3080 3081fi 3082fi 3083ac_ct_CC=$ac_cv_prog_ac_ct_CC 3084if test -n "$ac_ct_CC"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3086$as_echo "$ac_ct_CC" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 if test "x$ac_ct_CC" = x; then 3093 CC="" 3094 else 3095 case $cross_compiling:$ac_tool_warned in 3096yes:) 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3099ac_tool_warned=yes ;; 3100esac 3101 CC=$ac_ct_CC 3102 fi 3103else 3104 CC="$ac_cv_prog_CC" 3105fi 3106 3107if test -z "$CC"; then 3108 if test -n "$ac_tool_prefix"; then 3109 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3110set dummy ${ac_tool_prefix}cc; ac_word=$2 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3112$as_echo_n "checking for $ac_word... " >&6; } 3113if ${ac_cv_prog_CC+:} false; then : 3114 $as_echo_n "(cached) " >&6 3115else 3116 if test -n "$CC"; then 3117 ac_cv_prog_CC="$CC" # Let the user override the test. 3118else 3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3120for as_dir in $PATH 3121do 3122 IFS=$as_save_IFS 3123 test -z "$as_dir" && as_dir=. 3124 for ac_exec_ext in '' $ac_executable_extensions; do 3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3126 ac_cv_prog_CC="${ac_tool_prefix}cc" 3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3128 break 2 3129 fi 3130done 3131 done 3132IFS=$as_save_IFS 3133 3134fi 3135fi 3136CC=$ac_cv_prog_CC 3137if test -n "$CC"; then 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3139$as_echo "$CC" >&6; } 3140else 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3142$as_echo "no" >&6; } 3143fi 3144 3145 3146 fi 3147fi 3148if test -z "$CC"; then 3149 # Extract the first word of "cc", so it can be a program name with args. 3150set dummy cc; ac_word=$2 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3152$as_echo_n "checking for $ac_word... " >&6; } 3153if ${ac_cv_prog_CC+:} false; then : 3154 $as_echo_n "(cached) " >&6 3155else 3156 if test -n "$CC"; then 3157 ac_cv_prog_CC="$CC" # Let the user override the test. 3158else 3159 ac_prog_rejected=no 3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3161for as_dir in $PATH 3162do 3163 IFS=$as_save_IFS 3164 test -z "$as_dir" && as_dir=. 3165 for ac_exec_ext in '' $ac_executable_extensions; do 3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3168 ac_prog_rejected=yes 3169 continue 3170 fi 3171 ac_cv_prog_CC="cc" 3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175done 3176 done 3177IFS=$as_save_IFS 3178 3179if test $ac_prog_rejected = yes; then 3180 # We found a bogon in the path, so make sure we never use it. 3181 set dummy $ac_cv_prog_CC 3182 shift 3183 if test $# != 0; then 3184 # We chose a different compiler from the bogus one. 3185 # However, it has the same basename, so the bogon will be chosen 3186 # first if we set CC to just the basename; use the full file name. 3187 shift 3188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3189 fi 3190fi 3191fi 3192fi 3193CC=$ac_cv_prog_CC 3194if test -n "$CC"; then 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3196$as_echo "$CC" >&6; } 3197else 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3199$as_echo "no" >&6; } 3200fi 3201 3202 3203fi 3204if test -z "$CC"; then 3205 if test -n "$ac_tool_prefix"; then 3206 for ac_prog in cl.exe 3207 do 3208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3209set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3211$as_echo_n "checking for $ac_word... " >&6; } 3212if ${ac_cv_prog_CC+:} false; then : 3213 $as_echo_n "(cached) " >&6 3214else 3215 if test -n "$CC"; then 3216 ac_cv_prog_CC="$CC" # Let the user override the test. 3217else 3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3219for as_dir in $PATH 3220do 3221 IFS=$as_save_IFS 3222 test -z "$as_dir" && as_dir=. 3223 for ac_exec_ext in '' $ac_executable_extensions; do 3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3225 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3227 break 2 3228 fi 3229done 3230 done 3231IFS=$as_save_IFS 3232 3233fi 3234fi 3235CC=$ac_cv_prog_CC 3236if test -n "$CC"; then 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3238$as_echo "$CC" >&6; } 3239else 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241$as_echo "no" >&6; } 3242fi 3243 3244 3245 test -n "$CC" && break 3246 done 3247fi 3248if test -z "$CC"; then 3249 ac_ct_CC=$CC 3250 for ac_prog in cl.exe 3251do 3252 # Extract the first word of "$ac_prog", so it can be a program name with args. 3253set dummy $ac_prog; ac_word=$2 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3255$as_echo_n "checking for $ac_word... " >&6; } 3256if ${ac_cv_prog_ac_ct_CC+:} false; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 if test -n "$ac_ct_CC"; then 3260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3261else 3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3263for as_dir in $PATH 3264do 3265 IFS=$as_save_IFS 3266 test -z "$as_dir" && as_dir=. 3267 for ac_exec_ext in '' $ac_executable_extensions; do 3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3269 ac_cv_prog_ac_ct_CC="$ac_prog" 3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3271 break 2 3272 fi 3273done 3274 done 3275IFS=$as_save_IFS 3276 3277fi 3278fi 3279ac_ct_CC=$ac_cv_prog_ac_ct_CC 3280if test -n "$ac_ct_CC"; then 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3282$as_echo "$ac_ct_CC" >&6; } 3283else 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286fi 3287 3288 3289 test -n "$ac_ct_CC" && break 3290done 3291 3292 if test "x$ac_ct_CC" = x; then 3293 CC="" 3294 else 3295 case $cross_compiling:$ac_tool_warned in 3296yes:) 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3299ac_tool_warned=yes ;; 3300esac 3301 CC=$ac_ct_CC 3302 fi 3303fi 3304 3305fi 3306 3307 3308test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3310as_fn_error $? "no acceptable C compiler found in \$PATH 3311See \`config.log' for more details" "$LINENO" 5; } 3312 3313# Provide some information about the compiler. 3314$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3315set X $ac_compile 3316ac_compiler=$2 3317for ac_option in --version -v -V -qversion; do 3318 { { ac_try="$ac_compiler $ac_option >&5" 3319case "(($ac_try" in 3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3321 *) ac_try_echo=$ac_try;; 3322esac 3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3324$as_echo "$ac_try_echo"; } >&5 3325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3326 ac_status=$? 3327 if test -s conftest.err; then 3328 sed '10a\ 3329... rest of stderr output deleted ... 3330 10q' conftest.err >conftest.er1 3331 cat conftest.er1 >&5 3332 fi 3333 rm -f conftest.er1 conftest.err 3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3335 test $ac_status = 0; } 3336done 3337 3338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340 3341int 3342main () 3343{ 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349ac_clean_files_save=$ac_clean_files 3350ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3351# Try to create an executable without -o first, disregard a.out. 3352# It will help us diagnose broken compilers, and finding out an intuition 3353# of exeext. 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3355$as_echo_n "checking whether the C compiler works... " >&6; } 3356ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3357 3358# The possible output files: 3359ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3360 3361ac_rmfiles= 3362for ac_file in $ac_files 3363do 3364 case $ac_file in 3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3367 esac 3368done 3369rm -f $ac_rmfiles 3370 3371if { { ac_try="$ac_link_default" 3372case "(($ac_try" in 3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374 *) ac_try_echo=$ac_try;; 3375esac 3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3377$as_echo "$ac_try_echo"; } >&5 3378 (eval "$ac_link_default") 2>&5 3379 ac_status=$? 3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3381 test $ac_status = 0; }; then : 3382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3383# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3384# in a Makefile. We should not override ac_cv_exeext if it was cached, 3385# so that the user can short-circuit this test for compilers unknown to 3386# Autoconf. 3387for ac_file in $ac_files '' 3388do 3389 test -f "$ac_file" || continue 3390 case $ac_file in 3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3392 ;; 3393 [ab].out ) 3394 # We found the default executable, but exeext='' is most 3395 # certainly right. 3396 break;; 3397 *.* ) 3398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3399 then :; else 3400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3401 fi 3402 # We set ac_cv_exeext here because the later test for it is not 3403 # safe: cross compilers may not add the suffix if given an `-o' 3404 # argument, so we may need to know it at that point already. 3405 # Even if this section looks crufty: it has the advantage of 3406 # actually working. 3407 break;; 3408 * ) 3409 break;; 3410 esac 3411done 3412test "$ac_cv_exeext" = no && ac_cv_exeext= 3413 3414else 3415 ac_file='' 3416fi 3417if test -z "$ac_file"; then : 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419$as_echo "no" >&6; } 3420$as_echo "$as_me: failed program was:" >&5 3421sed 's/^/| /' conftest.$ac_ext >&5 3422 3423{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3425as_fn_error 77 "C compiler cannot create executables 3426See \`config.log' for more details" "$LINENO" 5; } 3427else 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3429$as_echo "yes" >&6; } 3430fi 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3432$as_echo_n "checking for C compiler default output file name... " >&6; } 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3434$as_echo "$ac_file" >&6; } 3435ac_exeext=$ac_cv_exeext 3436 3437rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3438ac_clean_files=$ac_clean_files_save 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3440$as_echo_n "checking for suffix of executables... " >&6; } 3441if { { ac_try="$ac_link" 3442case "(($ac_try" in 3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3444 *) ac_try_echo=$ac_try;; 3445esac 3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3447$as_echo "$ac_try_echo"; } >&5 3448 (eval "$ac_link") 2>&5 3449 ac_status=$? 3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3451 test $ac_status = 0; }; then : 3452 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3453# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3454# work properly (i.e., refer to `conftest.exe'), while it won't with 3455# `rm'. 3456for ac_file in conftest.exe conftest conftest.*; do 3457 test -f "$ac_file" || continue 3458 case $ac_file in 3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3460 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3461 break;; 3462 * ) break;; 3463 esac 3464done 3465else 3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3468as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3469See \`config.log' for more details" "$LINENO" 5; } 3470fi 3471rm -f conftest conftest$ac_cv_exeext 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3473$as_echo "$ac_cv_exeext" >&6; } 3474 3475rm -f conftest.$ac_ext 3476EXEEXT=$ac_cv_exeext 3477ac_exeext=$EXEEXT 3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480#include <stdio.h> 3481int 3482main () 3483{ 3484FILE *f = fopen ("conftest.out", "w"); 3485 return ferror (f) || fclose (f) != 0; 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491ac_clean_files="$ac_clean_files conftest.out" 3492# Check that the compiler produces executables we can run. If not, either 3493# the compiler is broken, or we cross compile. 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3495$as_echo_n "checking whether we are cross compiling... " >&6; } 3496if test "$cross_compiling" != yes; then 3497 { { ac_try="$ac_link" 3498case "(($ac_try" in 3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3500 *) ac_try_echo=$ac_try;; 3501esac 3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3503$as_echo "$ac_try_echo"; } >&5 3504 (eval "$ac_link") 2>&5 3505 ac_status=$? 3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3507 test $ac_status = 0; } 3508 if { ac_try='./conftest$ac_cv_exeext' 3509 { { case "(($ac_try" in 3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3511 *) ac_try_echo=$ac_try;; 3512esac 3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3514$as_echo "$ac_try_echo"; } >&5 3515 (eval "$ac_try") 2>&5 3516 ac_status=$? 3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3518 test $ac_status = 0; }; }; then 3519 cross_compiling=no 3520 else 3521 if test "$cross_compiling" = maybe; then 3522 cross_compiling=yes 3523 else 3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3526as_fn_error $? "cannot run C compiled programs. 3527If you meant to cross compile, use \`--host'. 3528See \`config.log' for more details" "$LINENO" 5; } 3529 fi 3530 fi 3531fi 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3533$as_echo "$cross_compiling" >&6; } 3534 3535rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3536ac_clean_files=$ac_clean_files_save 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3538$as_echo_n "checking for suffix of object files... " >&6; } 3539if ${ac_cv_objext+:} false; then : 3540 $as_echo_n "(cached) " >&6 3541else 3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543/* end confdefs.h. */ 3544 3545int 3546main () 3547{ 3548 3549 ; 3550 return 0; 3551} 3552_ACEOF 3553rm -f conftest.o conftest.obj 3554if { { ac_try="$ac_compile" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3560$as_echo "$ac_try_echo"; } >&5 3561 (eval "$ac_compile") 2>&5 3562 ac_status=$? 3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3564 test $ac_status = 0; }; then : 3565 for ac_file in conftest.o conftest.obj conftest.*; do 3566 test -f "$ac_file" || continue; 3567 case $ac_file in 3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3569 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3570 break;; 3571 esac 3572done 3573else 3574 $as_echo "$as_me: failed program was:" >&5 3575sed 's/^/| /' conftest.$ac_ext >&5 3576 3577{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3579as_fn_error $? "cannot compute suffix of object files: cannot compile 3580See \`config.log' for more details" "$LINENO" 5; } 3581fi 3582rm -f conftest.$ac_cv_objext conftest.$ac_ext 3583fi 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3585$as_echo "$ac_cv_objext" >&6; } 3586OBJEXT=$ac_cv_objext 3587ac_objext=$OBJEXT 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3589$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3590if ${ac_cv_c_compiler_gnu+:} false; then : 3591 $as_echo_n "(cached) " >&6 3592else 3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595 3596int 3597main () 3598{ 3599#ifndef __GNUC__ 3600 choke me 3601#endif 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607if ac_fn_c_try_compile "$LINENO"; then : 3608 ac_compiler_gnu=yes 3609else 3610 ac_compiler_gnu=no 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3613ac_cv_c_compiler_gnu=$ac_compiler_gnu 3614 3615fi 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3617$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3618if test $ac_compiler_gnu = yes; then 3619 GCC=yes 3620else 3621 GCC= 3622fi 3623ac_test_CFLAGS=${CFLAGS+set} 3624ac_save_CFLAGS=$CFLAGS 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3626$as_echo_n "checking whether $CC accepts -g... " >&6; } 3627if ${ac_cv_prog_cc_g+:} false; then : 3628 $as_echo_n "(cached) " >&6 3629else 3630 ac_save_c_werror_flag=$ac_c_werror_flag 3631 ac_c_werror_flag=yes 3632 ac_cv_prog_cc_g=no 3633 CFLAGS="-g" 3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3635/* end confdefs.h. */ 3636 3637int 3638main () 3639{ 3640 3641 ; 3642 return 0; 3643} 3644_ACEOF 3645if ac_fn_c_try_compile "$LINENO"; then : 3646 ac_cv_prog_cc_g=yes 3647else 3648 CFLAGS="" 3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3650/* end confdefs.h. */ 3651 3652int 3653main () 3654{ 3655 3656 ; 3657 return 0; 3658} 3659_ACEOF 3660if ac_fn_c_try_compile "$LINENO"; then : 3661 3662else 3663 ac_c_werror_flag=$ac_save_c_werror_flag 3664 CFLAGS="-g" 3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667 3668int 3669main () 3670{ 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO"; then : 3677 ac_cv_prog_cc_g=yes 3678fi 3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3680fi 3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3682fi 3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3684 ac_c_werror_flag=$ac_save_c_werror_flag 3685fi 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3687$as_echo "$ac_cv_prog_cc_g" >&6; } 3688if test "$ac_test_CFLAGS" = set; then 3689 CFLAGS=$ac_save_CFLAGS 3690elif test $ac_cv_prog_cc_g = yes; then 3691 if test "$GCC" = yes; then 3692 CFLAGS="-g -O2" 3693 else 3694 CFLAGS="-g" 3695 fi 3696else 3697 if test "$GCC" = yes; then 3698 CFLAGS="-O2" 3699 else 3700 CFLAGS= 3701 fi 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3704$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3705if ${ac_cv_prog_cc_c89+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 ac_cv_prog_cc_c89=no 3709ac_save_CC=$CC 3710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3711/* end confdefs.h. */ 3712#include <stdarg.h> 3713#include <stdio.h> 3714struct stat; 3715/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3716struct buf { int x; }; 3717FILE * (*rcsopen) (struct buf *, struct stat *, int); 3718static char *e (p, i) 3719 char **p; 3720 int i; 3721{ 3722 return p[i]; 3723} 3724static char *f (char * (*g) (char **, int), char **p, ...) 3725{ 3726 char *s; 3727 va_list v; 3728 va_start (v,p); 3729 s = g (p, va_arg (v,int)); 3730 va_end (v); 3731 return s; 3732} 3733 3734/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3735 function prototypes and stuff, but not '\xHH' hex character constants. 3736 These don't provoke an error unfortunately, instead are silently treated 3737 as 'x'. The following induces an error, until -std is added to get 3738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3739 array size at least. It's necessary to write '\x00'==0 to get something 3740 that's true only with -std. */ 3741int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3742 3743/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3744 inside strings and character constants. */ 3745#define FOO(x) 'x' 3746int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3747 3748int test (int i, double x); 3749struct s1 {int (*f) (int a);}; 3750struct s2 {int (*f) (double a);}; 3751int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3752int argc; 3753char **argv; 3754int 3755main () 3756{ 3757return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3764do 3765 CC="$ac_save_CC $ac_arg" 3766 if ac_fn_c_try_compile "$LINENO"; then : 3767 ac_cv_prog_cc_c89=$ac_arg 3768fi 3769rm -f core conftest.err conftest.$ac_objext 3770 test "x$ac_cv_prog_cc_c89" != "xno" && break 3771done 3772rm -f conftest.$ac_ext 3773CC=$ac_save_CC 3774 3775fi 3776# AC_CACHE_VAL 3777case "x$ac_cv_prog_cc_c89" in 3778 x) 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3780$as_echo "none needed" >&6; } ;; 3781 xno) 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3783$as_echo "unsupported" >&6; } ;; 3784 *) 3785 CC="$CC $ac_cv_prog_cc_c89" 3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3787$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3788esac 3789if test "x$ac_cv_prog_cc_c89" != xno; then : 3790 3791fi 3792 3793ac_ext=c 3794ac_cpp='$CPP $CPPFLAGS' 3795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3797ac_compiler_gnu=$ac_cv_c_compiler_gnu 3798 3799ac_ext=c 3800ac_cpp='$CPP $CPPFLAGS' 3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3803ac_compiler_gnu=$ac_cv_c_compiler_gnu 3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3805$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3806if ${am_cv_prog_cc_c_o+:} false; then : 3807 $as_echo_n "(cached) " >&6 3808else 3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3810/* end confdefs.h. */ 3811 3812int 3813main () 3814{ 3815 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820 # Make sure it works both with $CC and with simple cc. 3821 # Following AC_PROG_CC_C_O, we do the test twice because some 3822 # compilers refuse to overwrite an existing .o file with -o, 3823 # though they will create one. 3824 am_cv_prog_cc_c_o=yes 3825 for am_i in 1 2; do 3826 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3827 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); } \ 3831 && test -f conftest2.$ac_objext; then 3832 : OK 3833 else 3834 am_cv_prog_cc_c_o=no 3835 break 3836 fi 3837 done 3838 rm -f core conftest* 3839 unset am_i 3840fi 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3842$as_echo "$am_cv_prog_cc_c_o" >&6; } 3843if test "$am_cv_prog_cc_c_o" != yes; then 3844 # Losing compiler, so override with the script. 3845 # FIXME: It is wrong to rewrite CC. 3846 # But if we don't then we get into trouble of one sort or another. 3847 # A longer-term fix would be to have automake use am__CC in this case, 3848 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3849 CC="$am_aux_dir/compile $CC" 3850fi 3851ac_ext=c 3852ac_cpp='$CPP $CPPFLAGS' 3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856 3857 3858depcc="$CC" am_compiler_list= 3859 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3861$as_echo_n "checking dependency style of $depcc... " >&6; } 3862if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3866 # We make a subdir and do the tests there. Otherwise we can end up 3867 # making bogus files that we don't know about and never remove. For 3868 # instance it was reported that on HP-UX the gcc test will end up 3869 # making a dummy file named 'D' -- because '-MD' means "put the output 3870 # in D". 3871 rm -rf conftest.dir 3872 mkdir conftest.dir 3873 # Copy depcomp to subdir because otherwise we won't find it if we're 3874 # using a relative directory. 3875 cp "$am_depcomp" conftest.dir 3876 cd conftest.dir 3877 # We will build objects and dependencies in a subdirectory because 3878 # it helps to detect inapplicable dependency modes. For instance 3879 # both Tru64's cc and ICC support -MD to output dependencies as a 3880 # side effect of compilation, but ICC will put the dependencies in 3881 # the current directory while Tru64 will put them in the object 3882 # directory. 3883 mkdir sub 3884 3885 am_cv_CC_dependencies_compiler_type=none 3886 if test "$am_compiler_list" = ""; then 3887 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3888 fi 3889 am__universal=false 3890 case " $depcc " in #( 3891 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3892 esac 3893 3894 for depmode in $am_compiler_list; do 3895 # Setup a source with many dependencies, because some compilers 3896 # like to wrap large dependency lists on column 80 (with \), and 3897 # we should not choose a depcomp mode which is confused by this. 3898 # 3899 # We need to recreate these files for each test, as the compiler may 3900 # overwrite some of them when testing with obscure command lines. 3901 # This happens at least with the AIX C compiler. 3902 : > sub/conftest.c 3903 for i in 1 2 3 4 5 6; do 3904 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3905 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3906 # Solaris 10 /bin/sh. 3907 echo '/* dummy */' > sub/conftst$i.h 3908 done 3909 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3910 3911 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3912 # mode. It turns out that the SunPro C++ compiler does not properly 3913 # handle '-M -o', and we need to detect this. Also, some Intel 3914 # versions had trouble with output in subdirs. 3915 am__obj=sub/conftest.${OBJEXT-o} 3916 am__minus_obj="-o $am__obj" 3917 case $depmode in 3918 gcc) 3919 # This depmode causes a compiler race in universal mode. 3920 test "$am__universal" = false || continue 3921 ;; 3922 nosideeffect) 3923 # After this tag, mechanisms are not by side-effect, so they'll 3924 # only be used when explicitly requested. 3925 if test "x$enable_dependency_tracking" = xyes; then 3926 continue 3927 else 3928 break 3929 fi 3930 ;; 3931 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3932 # This compiler won't grok '-c -o', but also, the minuso test has 3933 # not run yet. These depmodes are late enough in the game, and 3934 # so weak that their functioning should not be impacted. 3935 am__obj=conftest.${OBJEXT-o} 3936 am__minus_obj= 3937 ;; 3938 none) break ;; 3939 esac 3940 if depmode=$depmode \ 3941 source=sub/conftest.c object=$am__obj \ 3942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3943 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3944 >/dev/null 2>conftest.err && 3945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3947 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3949 # icc doesn't choke on unknown options, it will just issue warnings 3950 # or remarks (even with -Werror). So we grep stderr for any message 3951 # that says an option was ignored or not supported. 3952 # When given -MP, icc 7.0 and 7.1 complain thusly: 3953 # icc: Command line warning: ignoring option '-M'; no argument required 3954 # The diagnosis changed in icc 8.0: 3955 # icc: Command line remark: option '-MP' not supported 3956 if (grep 'ignoring option' conftest.err || 3957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3958 am_cv_CC_dependencies_compiler_type=$depmode 3959 break 3960 fi 3961 fi 3962 done 3963 3964 cd .. 3965 rm -rf conftest.dir 3966else 3967 am_cv_CC_dependencies_compiler_type=none 3968fi 3969 3970fi 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3972$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3973CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3974 3975 if 3976 test "x$enable_dependency_tracking" != xno \ 3977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3978 am__fastdepCC_TRUE= 3979 am__fastdepCC_FALSE='#' 3980else 3981 am__fastdepCC_TRUE='#' 3982 am__fastdepCC_FALSE= 3983fi 3984 3985 3986 3987if test -n "$ac_tool_prefix"; then 3988 for ac_prog in ar lib "link -lib" 3989 do 3990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3991set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3993$as_echo_n "checking for $ac_word... " >&6; } 3994if ${ac_cv_prog_AR+:} false; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 if test -n "$AR"; then 3998 ac_cv_prog_AR="$AR" # Let the user override the test. 3999else 4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4001for as_dir in $PATH 4002do 4003 IFS=$as_save_IFS 4004 test -z "$as_dir" && as_dir=. 4005 for ac_exec_ext in '' $ac_executable_extensions; do 4006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4007 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4009 break 2 4010 fi 4011done 4012 done 4013IFS=$as_save_IFS 4014 4015fi 4016fi 4017AR=$ac_cv_prog_AR 4018if test -n "$AR"; then 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4020$as_echo "$AR" >&6; } 4021else 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4023$as_echo "no" >&6; } 4024fi 4025 4026 4027 test -n "$AR" && break 4028 done 4029fi 4030if test -z "$AR"; then 4031 ac_ct_AR=$AR 4032 for ac_prog in ar lib "link -lib" 4033do 4034 # Extract the first word of "$ac_prog", so it can be a program name with args. 4035set dummy $ac_prog; ac_word=$2 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037$as_echo_n "checking for $ac_word... " >&6; } 4038if ${ac_cv_prog_ac_ct_AR+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 if test -n "$ac_ct_AR"; then 4042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4043else 4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4045for as_dir in $PATH 4046do 4047 IFS=$as_save_IFS 4048 test -z "$as_dir" && as_dir=. 4049 for ac_exec_ext in '' $ac_executable_extensions; do 4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4051 ac_cv_prog_ac_ct_AR="$ac_prog" 4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4053 break 2 4054 fi 4055done 4056 done 4057IFS=$as_save_IFS 4058 4059fi 4060fi 4061ac_ct_AR=$ac_cv_prog_ac_ct_AR 4062if test -n "$ac_ct_AR"; then 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4064$as_echo "$ac_ct_AR" >&6; } 4065else 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4067$as_echo "no" >&6; } 4068fi 4069 4070 4071 test -n "$ac_ct_AR" && break 4072done 4073 4074 if test "x$ac_ct_AR" = x; then 4075 AR="false" 4076 else 4077 case $cross_compiling:$ac_tool_warned in 4078yes:) 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4081ac_tool_warned=yes ;; 4082esac 4083 AR=$ac_ct_AR 4084 fi 4085fi 4086 4087: ${AR=ar} 4088 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4090$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4091if ${am_cv_ar_interface+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 ac_ext=c 4095ac_cpp='$CPP $CPPFLAGS' 4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4098ac_compiler_gnu=$ac_cv_c_compiler_gnu 4099 4100 am_cv_ar_interface=ar 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103int some_variable = 0; 4104_ACEOF 4105if ac_fn_c_try_compile "$LINENO"; then : 4106 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4108 (eval $am_ar_try) 2>&5 4109 ac_status=$? 4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4111 test $ac_status = 0; } 4112 if test "$ac_status" -eq 0; then 4113 am_cv_ar_interface=ar 4114 else 4115 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4117 (eval $am_ar_try) 2>&5 4118 ac_status=$? 4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4120 test $ac_status = 0; } 4121 if test "$ac_status" -eq 0; then 4122 am_cv_ar_interface=lib 4123 else 4124 am_cv_ar_interface=unknown 4125 fi 4126 fi 4127 rm -f conftest.lib libconftest.a 4128 4129fi 4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4131 ac_ext=c 4132ac_cpp='$CPP $CPPFLAGS' 4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4135ac_compiler_gnu=$ac_cv_c_compiler_gnu 4136 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4139$as_echo "$am_cv_ar_interface" >&6; } 4140 4141case $am_cv_ar_interface in 4142ar) 4143 ;; 4144lib) 4145 # Microsoft lib, so override with the ar-lib wrapper script. 4146 # FIXME: It is wrong to rewrite AR. 4147 # But if we don't then we get into trouble of one sort or another. 4148 # A longer-term fix would be to have automake use am__AR in this case, 4149 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4150 # similar. 4151 AR="$am_aux_dir/ar-lib $AR" 4152 ;; 4153unknown) 4154 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4155 ;; 4156esac 4157 4158 4159ac_ext=c 4160ac_cpp='$CPP $CPPFLAGS' 4161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4163ac_compiler_gnu=$ac_cv_c_compiler_gnu 4164if test -n "$ac_tool_prefix"; then 4165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4166set dummy ${ac_tool_prefix}gcc; ac_word=$2 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4168$as_echo_n "checking for $ac_word... " >&6; } 4169if ${ac_cv_prog_CC+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 if test -n "$CC"; then 4173 ac_cv_prog_CC="$CC" # Let the user override the test. 4174else 4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176for as_dir in $PATH 4177do 4178 IFS=$as_save_IFS 4179 test -z "$as_dir" && as_dir=. 4180 for ac_exec_ext in '' $ac_executable_extensions; do 4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4182 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4184 break 2 4185 fi 4186done 4187 done 4188IFS=$as_save_IFS 4189 4190fi 4191fi 4192CC=$ac_cv_prog_CC 4193if test -n "$CC"; then 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4195$as_echo "$CC" >&6; } 4196else 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4198$as_echo "no" >&6; } 4199fi 4200 4201 4202fi 4203if test -z "$ac_cv_prog_CC"; then 4204 ac_ct_CC=$CC 4205 # Extract the first word of "gcc", so it can be a program name with args. 4206set dummy gcc; ac_word=$2 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4208$as_echo_n "checking for $ac_word... " >&6; } 4209if ${ac_cv_prog_ac_ct_CC+:} false; then : 4210 $as_echo_n "(cached) " >&6 4211else 4212 if test -n "$ac_ct_CC"; then 4213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4214else 4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4216for as_dir in $PATH 4217do 4218 IFS=$as_save_IFS 4219 test -z "$as_dir" && as_dir=. 4220 for ac_exec_ext in '' $ac_executable_extensions; do 4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4222 ac_cv_prog_ac_ct_CC="gcc" 4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4224 break 2 4225 fi 4226done 4227 done 4228IFS=$as_save_IFS 4229 4230fi 4231fi 4232ac_ct_CC=$ac_cv_prog_ac_ct_CC 4233if test -n "$ac_ct_CC"; then 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4235$as_echo "$ac_ct_CC" >&6; } 4236else 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4238$as_echo "no" >&6; } 4239fi 4240 4241 if test "x$ac_ct_CC" = x; then 4242 CC="" 4243 else 4244 case $cross_compiling:$ac_tool_warned in 4245yes:) 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4247$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4248ac_tool_warned=yes ;; 4249esac 4250 CC=$ac_ct_CC 4251 fi 4252else 4253 CC="$ac_cv_prog_CC" 4254fi 4255 4256if test -z "$CC"; then 4257 if test -n "$ac_tool_prefix"; then 4258 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4259set dummy ${ac_tool_prefix}cc; ac_word=$2 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4261$as_echo_n "checking for $ac_word... " >&6; } 4262if ${ac_cv_prog_CC+:} false; then : 4263 $as_echo_n "(cached) " >&6 4264else 4265 if test -n "$CC"; then 4266 ac_cv_prog_CC="$CC" # Let the user override the test. 4267else 4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269for as_dir in $PATH 4270do 4271 IFS=$as_save_IFS 4272 test -z "$as_dir" && as_dir=. 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4275 ac_cv_prog_CC="${ac_tool_prefix}cc" 4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4277 break 2 4278 fi 4279done 4280 done 4281IFS=$as_save_IFS 4282 4283fi 4284fi 4285CC=$ac_cv_prog_CC 4286if test -n "$CC"; then 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4288$as_echo "$CC" >&6; } 4289else 4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4291$as_echo "no" >&6; } 4292fi 4293 4294 4295 fi 4296fi 4297if test -z "$CC"; then 4298 # Extract the first word of "cc", so it can be a program name with args. 4299set dummy cc; ac_word=$2 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4301$as_echo_n "checking for $ac_word... " >&6; } 4302if ${ac_cv_prog_CC+:} false; then : 4303 $as_echo_n "(cached) " >&6 4304else 4305 if test -n "$CC"; then 4306 ac_cv_prog_CC="$CC" # Let the user override the test. 4307else 4308 ac_prog_rejected=no 4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4310for as_dir in $PATH 4311do 4312 IFS=$as_save_IFS 4313 test -z "$as_dir" && as_dir=. 4314 for ac_exec_ext in '' $ac_executable_extensions; do 4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4317 ac_prog_rejected=yes 4318 continue 4319 fi 4320 ac_cv_prog_CC="cc" 4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4322 break 2 4323 fi 4324done 4325 done 4326IFS=$as_save_IFS 4327 4328if test $ac_prog_rejected = yes; then 4329 # We found a bogon in the path, so make sure we never use it. 4330 set dummy $ac_cv_prog_CC 4331 shift 4332 if test $# != 0; then 4333 # We chose a different compiler from the bogus one. 4334 # However, it has the same basename, so the bogon will be chosen 4335 # first if we set CC to just the basename; use the full file name. 4336 shift 4337 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4338 fi 4339fi 4340fi 4341fi 4342CC=$ac_cv_prog_CC 4343if test -n "$CC"; then 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4345$as_echo "$CC" >&6; } 4346else 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4348$as_echo "no" >&6; } 4349fi 4350 4351 4352fi 4353if test -z "$CC"; then 4354 if test -n "$ac_tool_prefix"; then 4355 for ac_prog in cl.exe 4356 do 4357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4358set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4360$as_echo_n "checking for $ac_word... " >&6; } 4361if ${ac_cv_prog_CC+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 if test -n "$CC"; then 4365 ac_cv_prog_CC="$CC" # Let the user override the test. 4366else 4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4368for as_dir in $PATH 4369do 4370 IFS=$as_save_IFS 4371 test -z "$as_dir" && as_dir=. 4372 for ac_exec_ext in '' $ac_executable_extensions; do 4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4376 break 2 4377 fi 4378done 4379 done 4380IFS=$as_save_IFS 4381 4382fi 4383fi 4384CC=$ac_cv_prog_CC 4385if test -n "$CC"; then 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4387$as_echo "$CC" >&6; } 4388else 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390$as_echo "no" >&6; } 4391fi 4392 4393 4394 test -n "$CC" && break 4395 done 4396fi 4397if test -z "$CC"; then 4398 ac_ct_CC=$CC 4399 for ac_prog in cl.exe 4400do 4401 # Extract the first word of "$ac_prog", so it can be a program name with args. 4402set dummy $ac_prog; ac_word=$2 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4404$as_echo_n "checking for $ac_word... " >&6; } 4405if ${ac_cv_prog_ac_ct_CC+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 if test -n "$ac_ct_CC"; then 4409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4410else 4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412for as_dir in $PATH 4413do 4414 IFS=$as_save_IFS 4415 test -z "$as_dir" && as_dir=. 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4418 ac_cv_prog_ac_ct_CC="$ac_prog" 4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4420 break 2 4421 fi 4422done 4423 done 4424IFS=$as_save_IFS 4425 4426fi 4427fi 4428ac_ct_CC=$ac_cv_prog_ac_ct_CC 4429if test -n "$ac_ct_CC"; then 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4431$as_echo "$ac_ct_CC" >&6; } 4432else 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4434$as_echo "no" >&6; } 4435fi 4436 4437 4438 test -n "$ac_ct_CC" && break 4439done 4440 4441 if test "x$ac_ct_CC" = x; then 4442 CC="" 4443 else 4444 case $cross_compiling:$ac_tool_warned in 4445yes:) 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4448ac_tool_warned=yes ;; 4449esac 4450 CC=$ac_ct_CC 4451 fi 4452fi 4453 4454fi 4455 4456 4457test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4459as_fn_error $? "no acceptable C compiler found in \$PATH 4460See \`config.log' for more details" "$LINENO" 5; } 4461 4462# Provide some information about the compiler. 4463$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4464set X $ac_compile 4465ac_compiler=$2 4466for ac_option in --version -v -V -qversion; do 4467 { { ac_try="$ac_compiler $ac_option >&5" 4468case "(($ac_try" in 4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4470 *) ac_try_echo=$ac_try;; 4471esac 4472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4473$as_echo "$ac_try_echo"; } >&5 4474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4475 ac_status=$? 4476 if test -s conftest.err; then 4477 sed '10a\ 4478... rest of stderr output deleted ... 4479 10q' conftest.err >conftest.er1 4480 cat conftest.er1 >&5 4481 fi 4482 rm -f conftest.er1 conftest.err 4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4484 test $ac_status = 0; } 4485done 4486 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4488$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4489if ${ac_cv_c_compiler_gnu+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4493/* end confdefs.h. */ 4494 4495int 4496main () 4497{ 4498#ifndef __GNUC__ 4499 choke me 4500#endif 4501 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506if ac_fn_c_try_compile "$LINENO"; then : 4507 ac_compiler_gnu=yes 4508else 4509 ac_compiler_gnu=no 4510fi 4511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4512ac_cv_c_compiler_gnu=$ac_compiler_gnu 4513 4514fi 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4516$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4517if test $ac_compiler_gnu = yes; then 4518 GCC=yes 4519else 4520 GCC= 4521fi 4522ac_test_CFLAGS=${CFLAGS+set} 4523ac_save_CFLAGS=$CFLAGS 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4525$as_echo_n "checking whether $CC accepts -g... " >&6; } 4526if ${ac_cv_prog_cc_g+:} false; then : 4527 $as_echo_n "(cached) " >&6 4528else 4529 ac_save_c_werror_flag=$ac_c_werror_flag 4530 ac_c_werror_flag=yes 4531 ac_cv_prog_cc_g=no 4532 CFLAGS="-g" 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535 4536int 4537main () 4538{ 4539 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544if ac_fn_c_try_compile "$LINENO"; then : 4545 ac_cv_prog_cc_g=yes 4546else 4547 CFLAGS="" 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4549/* end confdefs.h. */ 4550 4551int 4552main () 4553{ 4554 4555 ; 4556 return 0; 4557} 4558_ACEOF 4559if ac_fn_c_try_compile "$LINENO"; then : 4560 4561else 4562 ac_c_werror_flag=$ac_save_c_werror_flag 4563 CFLAGS="-g" 4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4565/* end confdefs.h. */ 4566 4567int 4568main () 4569{ 4570 4571 ; 4572 return 0; 4573} 4574_ACEOF 4575if ac_fn_c_try_compile "$LINENO"; then : 4576 ac_cv_prog_cc_g=yes 4577fi 4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4579fi 4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4581fi 4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4583 ac_c_werror_flag=$ac_save_c_werror_flag 4584fi 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4586$as_echo "$ac_cv_prog_cc_g" >&6; } 4587if test "$ac_test_CFLAGS" = set; then 4588 CFLAGS=$ac_save_CFLAGS 4589elif test $ac_cv_prog_cc_g = yes; then 4590 if test "$GCC" = yes; then 4591 CFLAGS="-g -O2" 4592 else 4593 CFLAGS="-g" 4594 fi 4595else 4596 if test "$GCC" = yes; then 4597 CFLAGS="-O2" 4598 else 4599 CFLAGS= 4600 fi 4601fi 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4603$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4604if ${ac_cv_prog_cc_c89+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 ac_cv_prog_cc_c89=no 4608ac_save_CC=$CC 4609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4610/* end confdefs.h. */ 4611#include <stdarg.h> 4612#include <stdio.h> 4613struct stat; 4614/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4615struct buf { int x; }; 4616FILE * (*rcsopen) (struct buf *, struct stat *, int); 4617static char *e (p, i) 4618 char **p; 4619 int i; 4620{ 4621 return p[i]; 4622} 4623static char *f (char * (*g) (char **, int), char **p, ...) 4624{ 4625 char *s; 4626 va_list v; 4627 va_start (v,p); 4628 s = g (p, va_arg (v,int)); 4629 va_end (v); 4630 return s; 4631} 4632 4633/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4634 function prototypes and stuff, but not '\xHH' hex character constants. 4635 These don't provoke an error unfortunately, instead are silently treated 4636 as 'x'. The following induces an error, until -std is added to get 4637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4638 array size at least. It's necessary to write '\x00'==0 to get something 4639 that's true only with -std. */ 4640int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4641 4642/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4643 inside strings and character constants. */ 4644#define FOO(x) 'x' 4645int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4646 4647int test (int i, double x); 4648struct s1 {int (*f) (int a);}; 4649struct s2 {int (*f) (double a);}; 4650int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4651int argc; 4652char **argv; 4653int 4654main () 4655{ 4656return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4657 ; 4658 return 0; 4659} 4660_ACEOF 4661for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4663do 4664 CC="$ac_save_CC $ac_arg" 4665 if ac_fn_c_try_compile "$LINENO"; then : 4666 ac_cv_prog_cc_c89=$ac_arg 4667fi 4668rm -f core conftest.err conftest.$ac_objext 4669 test "x$ac_cv_prog_cc_c89" != "xno" && break 4670done 4671rm -f conftest.$ac_ext 4672CC=$ac_save_CC 4673 4674fi 4675# AC_CACHE_VAL 4676case "x$ac_cv_prog_cc_c89" in 4677 x) 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4679$as_echo "none needed" >&6; } ;; 4680 xno) 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4682$as_echo "unsupported" >&6; } ;; 4683 *) 4684 CC="$CC $ac_cv_prog_cc_c89" 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4686$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4687esac 4688if test "x$ac_cv_prog_cc_c89" != xno; then : 4689 4690fi 4691 4692ac_ext=c 4693ac_cpp='$CPP $CPPFLAGS' 4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4696ac_compiler_gnu=$ac_cv_c_compiler_gnu 4697 4698ac_ext=c 4699ac_cpp='$CPP $CPPFLAGS' 4700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4702ac_compiler_gnu=$ac_cv_c_compiler_gnu 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4704$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4705if ${am_cv_prog_cc_c_o+:} false; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710 4711int 4712main () 4713{ 4714 4715 ; 4716 return 0; 4717} 4718_ACEOF 4719 # Make sure it works both with $CC and with simple cc. 4720 # Following AC_PROG_CC_C_O, we do the test twice because some 4721 # compilers refuse to overwrite an existing .o file with -o, 4722 # though they will create one. 4723 am_cv_prog_cc_c_o=yes 4724 for am_i in 1 2; do 4725 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4726 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4727 ac_status=$? 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); } \ 4730 && test -f conftest2.$ac_objext; then 4731 : OK 4732 else 4733 am_cv_prog_cc_c_o=no 4734 break 4735 fi 4736 done 4737 rm -f core conftest* 4738 unset am_i 4739fi 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4741$as_echo "$am_cv_prog_cc_c_o" >&6; } 4742if test "$am_cv_prog_cc_c_o" != yes; then 4743 # Losing compiler, so override with the script. 4744 # FIXME: It is wrong to rewrite CC. 4745 # But if we don't then we get into trouble of one sort or another. 4746 # A longer-term fix would be to have automake use am__CC in this case, 4747 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4748 CC="$am_aux_dir/compile $CC" 4749fi 4750ac_ext=c 4751ac_cpp='$CPP $CPPFLAGS' 4752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4754ac_compiler_gnu=$ac_cv_c_compiler_gnu 4755 4756 4757depcc="$CC" am_compiler_list= 4758 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4760$as_echo_n "checking dependency style of $depcc... " >&6; } 4761if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4765 # We make a subdir and do the tests there. Otherwise we can end up 4766 # making bogus files that we don't know about and never remove. For 4767 # instance it was reported that on HP-UX the gcc test will end up 4768 # making a dummy file named 'D' -- because '-MD' means "put the output 4769 # in D". 4770 rm -rf conftest.dir 4771 mkdir conftest.dir 4772 # Copy depcomp to subdir because otherwise we won't find it if we're 4773 # using a relative directory. 4774 cp "$am_depcomp" conftest.dir 4775 cd conftest.dir 4776 # We will build objects and dependencies in a subdirectory because 4777 # it helps to detect inapplicable dependency modes. For instance 4778 # both Tru64's cc and ICC support -MD to output dependencies as a 4779 # side effect of compilation, but ICC will put the dependencies in 4780 # the current directory while Tru64 will put them in the object 4781 # directory. 4782 mkdir sub 4783 4784 am_cv_CC_dependencies_compiler_type=none 4785 if test "$am_compiler_list" = ""; then 4786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4787 fi 4788 am__universal=false 4789 case " $depcc " in #( 4790 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4791 esac 4792 4793 for depmode in $am_compiler_list; do 4794 # Setup a source with many dependencies, because some compilers 4795 # like to wrap large dependency lists on column 80 (with \), and 4796 # we should not choose a depcomp mode which is confused by this. 4797 # 4798 # We need to recreate these files for each test, as the compiler may 4799 # overwrite some of them when testing with obscure command lines. 4800 # This happens at least with the AIX C compiler. 4801 : > sub/conftest.c 4802 for i in 1 2 3 4 5 6; do 4803 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4804 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4805 # Solaris 10 /bin/sh. 4806 echo '/* dummy */' > sub/conftst$i.h 4807 done 4808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4809 4810 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4811 # mode. It turns out that the SunPro C++ compiler does not properly 4812 # handle '-M -o', and we need to detect this. Also, some Intel 4813 # versions had trouble with output in subdirs. 4814 am__obj=sub/conftest.${OBJEXT-o} 4815 am__minus_obj="-o $am__obj" 4816 case $depmode in 4817 gcc) 4818 # This depmode causes a compiler race in universal mode. 4819 test "$am__universal" = false || continue 4820 ;; 4821 nosideeffect) 4822 # After this tag, mechanisms are not by side-effect, so they'll 4823 # only be used when explicitly requested. 4824 if test "x$enable_dependency_tracking" = xyes; then 4825 continue 4826 else 4827 break 4828 fi 4829 ;; 4830 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4831 # This compiler won't grok '-c -o', but also, the minuso test has 4832 # not run yet. These depmodes are late enough in the game, and 4833 # so weak that their functioning should not be impacted. 4834 am__obj=conftest.${OBJEXT-o} 4835 am__minus_obj= 4836 ;; 4837 none) break ;; 4838 esac 4839 if depmode=$depmode \ 4840 source=sub/conftest.c object=$am__obj \ 4841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4843 >/dev/null 2>conftest.err && 4844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4848 # icc doesn't choke on unknown options, it will just issue warnings 4849 # or remarks (even with -Werror). So we grep stderr for any message 4850 # that says an option was ignored or not supported. 4851 # When given -MP, icc 7.0 and 7.1 complain thusly: 4852 # icc: Command line warning: ignoring option '-M'; no argument required 4853 # The diagnosis changed in icc 8.0: 4854 # icc: Command line remark: option '-MP' not supported 4855 if (grep 'ignoring option' conftest.err || 4856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4857 am_cv_CC_dependencies_compiler_type=$depmode 4858 break 4859 fi 4860 fi 4861 done 4862 4863 cd .. 4864 rm -rf conftest.dir 4865else 4866 am_cv_CC_dependencies_compiler_type=none 4867fi 4868 4869fi 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4871$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4872CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4873 4874 if 4875 test "x$enable_dependency_tracking" != xno \ 4876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4877 am__fastdepCC_TRUE= 4878 am__fastdepCC_FALSE='#' 4879else 4880 am__fastdepCC_TRUE='#' 4881 am__fastdepCC_FALSE= 4882fi 4883 4884 4885ac_ext=c 4886ac_cpp='$CPP $CPPFLAGS' 4887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4889ac_compiler_gnu=$ac_cv_c_compiler_gnu 4890 4891 4892 4893case `pwd` in 4894 *\ * | *\ *) 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4896$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4897esac 4898 4899 4900 4901macro_version='2.4.6' 4902macro_revision='2.4.6' 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916ltmain=$ac_aux_dir/ltmain.sh 4917 4918# Backslashify metacharacters that are still active within 4919# double-quoted strings. 4920sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4921 4922# Same as above, but do not quote variable references. 4923double_quote_subst='s/\(["`\\]\)/\\\1/g' 4924 4925# Sed substitution to delay expansion of an escaped shell variable in a 4926# double_quote_subst'ed string. 4927delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4928 4929# Sed substitution to delay expansion of an escaped single quote. 4930delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4931 4932# Sed substitution to avoid accidental globbing in evaled expressions 4933no_glob_subst='s/\*/\\\*/g' 4934 4935ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4936ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4937ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4938 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4940$as_echo_n "checking how to print strings... " >&6; } 4941# Test print first, because it will be a builtin if present. 4942if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4943 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4944 ECHO='print -r --' 4945elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4946 ECHO='printf %s\n' 4947else 4948 # Use this function as a fallback that always works. 4949 func_fallback_echo () 4950 { 4951 eval 'cat <<_LTECHO_EOF 4952$1 4953_LTECHO_EOF' 4954 } 4955 ECHO='func_fallback_echo' 4956fi 4957 4958# func_echo_all arg... 4959# Invoke $ECHO with all args, space-separated. 4960func_echo_all () 4961{ 4962 $ECHO "" 4963} 4964 4965case $ECHO in 4966 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4967$as_echo "printf" >&6; } ;; 4968 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4969$as_echo "print -r" >&6; } ;; 4970 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4971$as_echo "cat" >&6; } ;; 4972esac 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4988$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4989if ${ac_cv_path_SED+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4993 for ac_i in 1 2 3 4 5 6 7; do 4994 ac_script="$ac_script$as_nl$ac_script" 4995 done 4996 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4997 { ac_script=; unset ac_script;} 4998 if test -z "$SED"; then 4999 ac_path_SED_found=false 5000 # Loop through the user's path and test for each of PROGNAME-LIST 5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5002for as_dir in $PATH 5003do 5004 IFS=$as_save_IFS 5005 test -z "$as_dir" && as_dir=. 5006 for ac_prog in sed gsed; do 5007 for ac_exec_ext in '' $ac_executable_extensions; do 5008 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5009 as_fn_executable_p "$ac_path_SED" || continue 5010# Check for GNU ac_path_SED and select it if it is found. 5011 # Check for GNU $ac_path_SED 5012case `"$ac_path_SED" --version 2>&1` in 5013*GNU*) 5014 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5015*) 5016 ac_count=0 5017 $as_echo_n 0123456789 >"conftest.in" 5018 while : 5019 do 5020 cat "conftest.in" "conftest.in" >"conftest.tmp" 5021 mv "conftest.tmp" "conftest.in" 5022 cp "conftest.in" "conftest.nl" 5023 $as_echo '' >> "conftest.nl" 5024 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5026 as_fn_arith $ac_count + 1 && ac_count=$as_val 5027 if test $ac_count -gt ${ac_path_SED_max-0}; then 5028 # Best one so far, save it but keep looking for a better one 5029 ac_cv_path_SED="$ac_path_SED" 5030 ac_path_SED_max=$ac_count 5031 fi 5032 # 10*(2^10) chars as input seems more than enough 5033 test $ac_count -gt 10 && break 5034 done 5035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5036esac 5037 5038 $ac_path_SED_found && break 3 5039 done 5040 done 5041 done 5042IFS=$as_save_IFS 5043 if test -z "$ac_cv_path_SED"; then 5044 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5045 fi 5046else 5047 ac_cv_path_SED=$SED 5048fi 5049 5050fi 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5052$as_echo "$ac_cv_path_SED" >&6; } 5053 SED="$ac_cv_path_SED" 5054 rm -f conftest.sed 5055 5056test -z "$SED" && SED=sed 5057Xsed="$SED -e 1s/^X//" 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5070$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5071if ${ac_cv_path_GREP+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 if test -z "$GREP"; then 5075 ac_path_GREP_found=false 5076 # Loop through the user's path and test for each of PROGNAME-LIST 5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5078for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5079do 5080 IFS=$as_save_IFS 5081 test -z "$as_dir" && as_dir=. 5082 for ac_prog in grep ggrep; do 5083 for ac_exec_ext in '' $ac_executable_extensions; do 5084 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5085 as_fn_executable_p "$ac_path_GREP" || continue 5086# Check for GNU ac_path_GREP and select it if it is found. 5087 # Check for GNU $ac_path_GREP 5088case `"$ac_path_GREP" --version 2>&1` in 5089*GNU*) 5090 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5091*) 5092 ac_count=0 5093 $as_echo_n 0123456789 >"conftest.in" 5094 while : 5095 do 5096 cat "conftest.in" "conftest.in" >"conftest.tmp" 5097 mv "conftest.tmp" "conftest.in" 5098 cp "conftest.in" "conftest.nl" 5099 $as_echo 'GREP' >> "conftest.nl" 5100 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5102 as_fn_arith $ac_count + 1 && ac_count=$as_val 5103 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5104 # Best one so far, save it but keep looking for a better one 5105 ac_cv_path_GREP="$ac_path_GREP" 5106 ac_path_GREP_max=$ac_count 5107 fi 5108 # 10*(2^10) chars as input seems more than enough 5109 test $ac_count -gt 10 && break 5110 done 5111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5112esac 5113 5114 $ac_path_GREP_found && break 3 5115 done 5116 done 5117 done 5118IFS=$as_save_IFS 5119 if test -z "$ac_cv_path_GREP"; then 5120 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5121 fi 5122else 5123 ac_cv_path_GREP=$GREP 5124fi 5125 5126fi 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5128$as_echo "$ac_cv_path_GREP" >&6; } 5129 GREP="$ac_cv_path_GREP" 5130 5131 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5133$as_echo_n "checking for egrep... " >&6; } 5134if ${ac_cv_path_EGREP+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5138 then ac_cv_path_EGREP="$GREP -E" 5139 else 5140 if test -z "$EGREP"; then 5141 ac_path_EGREP_found=false 5142 # Loop through the user's path and test for each of PROGNAME-LIST 5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5144for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5145do 5146 IFS=$as_save_IFS 5147 test -z "$as_dir" && as_dir=. 5148 for ac_prog in egrep; do 5149 for ac_exec_ext in '' $ac_executable_extensions; do 5150 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5151 as_fn_executable_p "$ac_path_EGREP" || continue 5152# Check for GNU ac_path_EGREP and select it if it is found. 5153 # Check for GNU $ac_path_EGREP 5154case `"$ac_path_EGREP" --version 2>&1` in 5155*GNU*) 5156 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5157*) 5158 ac_count=0 5159 $as_echo_n 0123456789 >"conftest.in" 5160 while : 5161 do 5162 cat "conftest.in" "conftest.in" >"conftest.tmp" 5163 mv "conftest.tmp" "conftest.in" 5164 cp "conftest.in" "conftest.nl" 5165 $as_echo 'EGREP' >> "conftest.nl" 5166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5168 as_fn_arith $ac_count + 1 && ac_count=$as_val 5169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5170 # Best one so far, save it but keep looking for a better one 5171 ac_cv_path_EGREP="$ac_path_EGREP" 5172 ac_path_EGREP_max=$ac_count 5173 fi 5174 # 10*(2^10) chars as input seems more than enough 5175 test $ac_count -gt 10 && break 5176 done 5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5178esac 5179 5180 $ac_path_EGREP_found && break 3 5181 done 5182 done 5183 done 5184IFS=$as_save_IFS 5185 if test -z "$ac_cv_path_EGREP"; then 5186 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5187 fi 5188else 5189 ac_cv_path_EGREP=$EGREP 5190fi 5191 5192 fi 5193fi 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5195$as_echo "$ac_cv_path_EGREP" >&6; } 5196 EGREP="$ac_cv_path_EGREP" 5197 5198 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5200$as_echo_n "checking for fgrep... " >&6; } 5201if ${ac_cv_path_FGREP+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5205 then ac_cv_path_FGREP="$GREP -F" 5206 else 5207 if test -z "$FGREP"; then 5208 ac_path_FGREP_found=false 5209 # Loop through the user's path and test for each of PROGNAME-LIST 5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5212do 5213 IFS=$as_save_IFS 5214 test -z "$as_dir" && as_dir=. 5215 for ac_prog in fgrep; do 5216 for ac_exec_ext in '' $ac_executable_extensions; do 5217 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5218 as_fn_executable_p "$ac_path_FGREP" || continue 5219# Check for GNU ac_path_FGREP and select it if it is found. 5220 # Check for GNU $ac_path_FGREP 5221case `"$ac_path_FGREP" --version 2>&1` in 5222*GNU*) 5223 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5224*) 5225 ac_count=0 5226 $as_echo_n 0123456789 >"conftest.in" 5227 while : 5228 do 5229 cat "conftest.in" "conftest.in" >"conftest.tmp" 5230 mv "conftest.tmp" "conftest.in" 5231 cp "conftest.in" "conftest.nl" 5232 $as_echo 'FGREP' >> "conftest.nl" 5233 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5235 as_fn_arith $ac_count + 1 && ac_count=$as_val 5236 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5237 # Best one so far, save it but keep looking for a better one 5238 ac_cv_path_FGREP="$ac_path_FGREP" 5239 ac_path_FGREP_max=$ac_count 5240 fi 5241 # 10*(2^10) chars as input seems more than enough 5242 test $ac_count -gt 10 && break 5243 done 5244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5245esac 5246 5247 $ac_path_FGREP_found && break 3 5248 done 5249 done 5250 done 5251IFS=$as_save_IFS 5252 if test -z "$ac_cv_path_FGREP"; then 5253 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5254 fi 5255else 5256 ac_cv_path_FGREP=$FGREP 5257fi 5258 5259 fi 5260fi 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5262$as_echo "$ac_cv_path_FGREP" >&6; } 5263 FGREP="$ac_cv_path_FGREP" 5264 5265 5266test -z "$GREP" && GREP=grep 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286# Check whether --with-gnu-ld was given. 5287if test "${with_gnu_ld+set}" = set; then : 5288 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5289else 5290 with_gnu_ld=no 5291fi 5292 5293ac_prog=ld 5294if test yes = "$GCC"; then 5295 # Check if gcc -print-prog-name=ld gives a path. 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5297$as_echo_n "checking for ld used by $CC... " >&6; } 5298 case $host in 5299 *-*-mingw*) 5300 # gcc leaves a trailing carriage return, which upsets mingw 5301 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5302 *) 5303 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5304 esac 5305 case $ac_prog in 5306 # Accept absolute paths. 5307 [\\/]* | ?:[\\/]*) 5308 re_direlt='/[^/][^/]*/\.\./' 5309 # Canonicalize the pathname of ld 5310 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5311 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5312 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5313 done 5314 test -z "$LD" && LD=$ac_prog 5315 ;; 5316 "") 5317 # If it fails, then pretend we aren't using GCC. 5318 ac_prog=ld 5319 ;; 5320 *) 5321 # If it is relative, then search for the first ld in PATH. 5322 with_gnu_ld=unknown 5323 ;; 5324 esac 5325elif test yes = "$with_gnu_ld"; then 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5327$as_echo_n "checking for GNU ld... " >&6; } 5328else 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5330$as_echo_n "checking for non-GNU ld... " >&6; } 5331fi 5332if ${lt_cv_path_LD+:} false; then : 5333 $as_echo_n "(cached) " >&6 5334else 5335 if test -z "$LD"; then 5336 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5337 for ac_dir in $PATH; do 5338 IFS=$lt_save_ifs 5339 test -z "$ac_dir" && ac_dir=. 5340 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5341 lt_cv_path_LD=$ac_dir/$ac_prog 5342 # Check to see if the program is GNU ld. I'd rather use --version, 5343 # but apparently some variants of GNU ld only accept -v. 5344 # Break only if it was the GNU/non-GNU ld that we prefer. 5345 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5346 *GNU* | *'with BFD'*) 5347 test no != "$with_gnu_ld" && break 5348 ;; 5349 *) 5350 test yes != "$with_gnu_ld" && break 5351 ;; 5352 esac 5353 fi 5354 done 5355 IFS=$lt_save_ifs 5356else 5357 lt_cv_path_LD=$LD # Let the user override the test with a path. 5358fi 5359fi 5360 5361LD=$lt_cv_path_LD 5362if test -n "$LD"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5364$as_echo "$LD" >&6; } 5365else 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367$as_echo "no" >&6; } 5368fi 5369test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5371$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5372if ${lt_cv_prog_gnu_ld+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5376case `$LD -v 2>&1 </dev/null` in 5377*GNU* | *'with BFD'*) 5378 lt_cv_prog_gnu_ld=yes 5379 ;; 5380*) 5381 lt_cv_prog_gnu_ld=no 5382 ;; 5383esac 5384fi 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5386$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5387with_gnu_ld=$lt_cv_prog_gnu_ld 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5398$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5399if ${lt_cv_path_NM+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401else 5402 if test -n "$NM"; then 5403 # Let the user override the test. 5404 lt_cv_path_NM=$NM 5405else 5406 lt_nm_to_check=${ac_tool_prefix}nm 5407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5408 lt_nm_to_check="$lt_nm_to_check nm" 5409 fi 5410 for lt_tmp_nm in $lt_nm_to_check; do 5411 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5413 IFS=$lt_save_ifs 5414 test -z "$ac_dir" && ac_dir=. 5415 tmp_nm=$ac_dir/$lt_tmp_nm 5416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5417 # Check to see if the nm accepts a BSD-compat flag. 5418 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5419 # nm: unknown option "B" ignored 5420 # Tru64's nm complains that /dev/null is an invalid object file 5421 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5422 case $build_os in 5423 mingw*) lt_bad_file=conftest.nm/nofile ;; 5424 *) lt_bad_file=/dev/null ;; 5425 esac 5426 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5427 *$lt_bad_file* | *'Invalid file or object type'*) 5428 lt_cv_path_NM="$tmp_nm -B" 5429 break 2 5430 ;; 5431 *) 5432 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5433 */dev/null*) 5434 lt_cv_path_NM="$tmp_nm -p" 5435 break 2 5436 ;; 5437 *) 5438 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5439 continue # so that we can try to find one that supports BSD flags 5440 ;; 5441 esac 5442 ;; 5443 esac 5444 fi 5445 done 5446 IFS=$lt_save_ifs 5447 done 5448 : ${lt_cv_path_NM=no} 5449fi 5450fi 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5452$as_echo "$lt_cv_path_NM" >&6; } 5453if test no != "$lt_cv_path_NM"; then 5454 NM=$lt_cv_path_NM 5455else 5456 # Didn't find any BSD compatible name lister, look for dumpbin. 5457 if test -n "$DUMPBIN"; then : 5458 # Let the user override the test. 5459 else 5460 if test -n "$ac_tool_prefix"; then 5461 for ac_prog in dumpbin "link -dump" 5462 do 5463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5464set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5466$as_echo_n "checking for $ac_word... " >&6; } 5467if ${ac_cv_prog_DUMPBIN+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 if test -n "$DUMPBIN"; then 5471 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5472else 5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5474for as_dir in $PATH 5475do 5476 IFS=$as_save_IFS 5477 test -z "$as_dir" && as_dir=. 5478 for ac_exec_ext in '' $ac_executable_extensions; do 5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5480 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5482 break 2 5483 fi 5484done 5485 done 5486IFS=$as_save_IFS 5487 5488fi 5489fi 5490DUMPBIN=$ac_cv_prog_DUMPBIN 5491if test -n "$DUMPBIN"; then 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5493$as_echo "$DUMPBIN" >&6; } 5494else 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5496$as_echo "no" >&6; } 5497fi 5498 5499 5500 test -n "$DUMPBIN" && break 5501 done 5502fi 5503if test -z "$DUMPBIN"; then 5504 ac_ct_DUMPBIN=$DUMPBIN 5505 for ac_prog in dumpbin "link -dump" 5506do 5507 # Extract the first word of "$ac_prog", so it can be a program name with args. 5508set dummy $ac_prog; ac_word=$2 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5510$as_echo_n "checking for $ac_word... " >&6; } 5511if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5512 $as_echo_n "(cached) " >&6 5513else 5514 if test -n "$ac_ct_DUMPBIN"; then 5515 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5516else 5517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5518for as_dir in $PATH 5519do 5520 IFS=$as_save_IFS 5521 test -z "$as_dir" && as_dir=. 5522 for ac_exec_ext in '' $ac_executable_extensions; do 5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5524 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5526 break 2 5527 fi 5528done 5529 done 5530IFS=$as_save_IFS 5531 5532fi 5533fi 5534ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5535if test -n "$ac_ct_DUMPBIN"; then 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5537$as_echo "$ac_ct_DUMPBIN" >&6; } 5538else 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5540$as_echo "no" >&6; } 5541fi 5542 5543 5544 test -n "$ac_ct_DUMPBIN" && break 5545done 5546 5547 if test "x$ac_ct_DUMPBIN" = x; then 5548 DUMPBIN=":" 5549 else 5550 case $cross_compiling:$ac_tool_warned in 5551yes:) 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5554ac_tool_warned=yes ;; 5555esac 5556 DUMPBIN=$ac_ct_DUMPBIN 5557 fi 5558fi 5559 5560 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5561 *COFF*) 5562 DUMPBIN="$DUMPBIN -symbols -headers" 5563 ;; 5564 *) 5565 DUMPBIN=: 5566 ;; 5567 esac 5568 fi 5569 5570 if test : != "$DUMPBIN"; then 5571 NM=$DUMPBIN 5572 fi 5573fi 5574test -z "$NM" && NM=nm 5575 5576 5577 5578 5579 5580 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5582$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5583if ${lt_cv_nm_interface+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 lt_cv_nm_interface="BSD nm" 5587 echo "int some_variable = 0;" > conftest.$ac_ext 5588 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5589 (eval "$ac_compile" 2>conftest.err) 5590 cat conftest.err >&5 5591 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5592 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5593 cat conftest.err >&5 5594 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5595 cat conftest.out >&5 5596 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5597 lt_cv_nm_interface="MS dumpbin" 5598 fi 5599 rm -f conftest* 5600fi 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5602$as_echo "$lt_cv_nm_interface" >&6; } 5603 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5605$as_echo_n "checking whether ln -s works... " >&6; } 5606LN_S=$as_ln_s 5607if test "$LN_S" = "ln -s"; then 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5609$as_echo "yes" >&6; } 5610else 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5612$as_echo "no, using $LN_S" >&6; } 5613fi 5614 5615# find the maximum length of command line arguments 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5617$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5618if ${lt_cv_sys_max_cmd_len+:} false; then : 5619 $as_echo_n "(cached) " >&6 5620else 5621 i=0 5622 teststring=ABCD 5623 5624 case $build_os in 5625 msdosdjgpp*) 5626 # On DJGPP, this test can blow up pretty badly due to problems in libc 5627 # (any single argument exceeding 2000 bytes causes a buffer overrun 5628 # during glob expansion). Even if it were fixed, the result of this 5629 # check would be larger than it should be. 5630 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5631 ;; 5632 5633 gnu*) 5634 # Under GNU Hurd, this test is not required because there is 5635 # no limit to the length of command line arguments. 5636 # Libtool will interpret -1 as no limit whatsoever 5637 lt_cv_sys_max_cmd_len=-1; 5638 ;; 5639 5640 cygwin* | mingw* | cegcc*) 5641 # On Win9x/ME, this test blows up -- it succeeds, but takes 5642 # about 5 minutes as the teststring grows exponentially. 5643 # Worse, since 9x/ME are not pre-emptively multitasking, 5644 # you end up with a "frozen" computer, even though with patience 5645 # the test eventually succeeds (with a max line length of 256k). 5646 # Instead, let's just punt: use the minimum linelength reported by 5647 # all of the supported platforms: 8192 (on NT/2K/XP). 5648 lt_cv_sys_max_cmd_len=8192; 5649 ;; 5650 5651 mint*) 5652 # On MiNT this can take a long time and run out of memory. 5653 lt_cv_sys_max_cmd_len=8192; 5654 ;; 5655 5656 amigaos*) 5657 # On AmigaOS with pdksh, this test takes hours, literally. 5658 # So we just punt and use a minimum line length of 8192. 5659 lt_cv_sys_max_cmd_len=8192; 5660 ;; 5661 5662 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5663 # This has been around since 386BSD, at least. Likely further. 5664 if test -x /sbin/sysctl; then 5665 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5666 elif test -x /usr/sbin/sysctl; then 5667 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5668 else 5669 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5670 fi 5671 # And add a safety zone 5672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5674 ;; 5675 5676 interix*) 5677 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5678 lt_cv_sys_max_cmd_len=196608 5679 ;; 5680 5681 os2*) 5682 # The test takes a long time on OS/2. 5683 lt_cv_sys_max_cmd_len=8192 5684 ;; 5685 5686 osf*) 5687 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5688 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5689 # nice to cause kernel panics so lets avoid the loop below. 5690 # First set a reasonable default. 5691 lt_cv_sys_max_cmd_len=16384 5692 # 5693 if test -x /sbin/sysconfig; then 5694 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5695 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5696 esac 5697 fi 5698 ;; 5699 sco3.2v5*) 5700 lt_cv_sys_max_cmd_len=102400 5701 ;; 5702 sysv5* | sco5v6* | sysv4.2uw2*) 5703 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5704 if test -n "$kargmax"; then 5705 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5706 else 5707 lt_cv_sys_max_cmd_len=32768 5708 fi 5709 ;; 5710 *) 5711 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5712 if test -n "$lt_cv_sys_max_cmd_len" && \ 5713 test undefined != "$lt_cv_sys_max_cmd_len"; then 5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5716 else 5717 # Make teststring a little bigger before we do anything with it. 5718 # a 1K string should be a reasonable start. 5719 for i in 1 2 3 4 5 6 7 8; do 5720 teststring=$teststring$teststring 5721 done 5722 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5723 # If test is not a shell built-in, we'll probably end up computing a 5724 # maximum length that is only half of the actual maximum length, but 5725 # we can't tell. 5726 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5727 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5728 test 17 != "$i" # 1/2 MB should be enough 5729 do 5730 i=`expr $i + 1` 5731 teststring=$teststring$teststring 5732 done 5733 # Only check the string length outside the loop. 5734 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5735 teststring= 5736 # Add a significant safety factor because C++ compilers can tack on 5737 # massive amounts of additional arguments before passing them to the 5738 # linker. It appears as though 1/2 is a usable value. 5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5740 fi 5741 ;; 5742 esac 5743 5744fi 5745 5746if test -n "$lt_cv_sys_max_cmd_len"; then 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5748$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5749else 5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5751$as_echo "none" >&6; } 5752fi 5753max_cmd_len=$lt_cv_sys_max_cmd_len 5754 5755 5756 5757 5758 5759 5760: ${CP="cp -f"} 5761: ${MV="mv -f"} 5762: ${RM="rm -f"} 5763 5764if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5765 lt_unset=unset 5766else 5767 lt_unset=false 5768fi 5769 5770 5771 5772 5773 5774# test EBCDIC or ASCII 5775case `echo X|tr X '\101'` in 5776 A) # ASCII based system 5777 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5778 lt_SP2NL='tr \040 \012' 5779 lt_NL2SP='tr \015\012 \040\040' 5780 ;; 5781 *) # EBCDIC based system 5782 lt_SP2NL='tr \100 \n' 5783 lt_NL2SP='tr \r\n \100\100' 5784 ;; 5785esac 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5796$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5797if ${lt_cv_to_host_file_cmd+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799else 5800 case $host in 5801 *-*-mingw* ) 5802 case $build in 5803 *-*-mingw* ) # actually msys 5804 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5805 ;; 5806 *-*-cygwin* ) 5807 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5808 ;; 5809 * ) # otherwise, assume *nix 5810 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5811 ;; 5812 esac 5813 ;; 5814 *-*-cygwin* ) 5815 case $build in 5816 *-*-mingw* ) # actually msys 5817 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5818 ;; 5819 *-*-cygwin* ) 5820 lt_cv_to_host_file_cmd=func_convert_file_noop 5821 ;; 5822 * ) # otherwise, assume *nix 5823 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5824 ;; 5825 esac 5826 ;; 5827 * ) # unhandled hosts (and "normal" native builds) 5828 lt_cv_to_host_file_cmd=func_convert_file_noop 5829 ;; 5830esac 5831 5832fi 5833 5834to_host_file_cmd=$lt_cv_to_host_file_cmd 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5836$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5837 5838 5839 5840 5841 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5843$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5844if ${lt_cv_to_tool_file_cmd+:} false; then : 5845 $as_echo_n "(cached) " >&6 5846else 5847 #assume ordinary cross tools, or native build. 5848lt_cv_to_tool_file_cmd=func_convert_file_noop 5849case $host in 5850 *-*-mingw* ) 5851 case $build in 5852 *-*-mingw* ) # actually msys 5853 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5854 ;; 5855 esac 5856 ;; 5857esac 5858 5859fi 5860 5861to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5863$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5864 5865 5866 5867 5868 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5870$as_echo_n "checking for $LD option to reload object files... " >&6; } 5871if ${lt_cv_ld_reload_flag+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 lt_cv_ld_reload_flag='-r' 5875fi 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5877$as_echo "$lt_cv_ld_reload_flag" >&6; } 5878reload_flag=$lt_cv_ld_reload_flag 5879case $reload_flag in 5880"" | " "*) ;; 5881*) reload_flag=" $reload_flag" ;; 5882esac 5883reload_cmds='$LD$reload_flag -o $output$reload_objs' 5884case $host_os in 5885 cygwin* | mingw* | pw32* | cegcc*) 5886 if test yes != "$GCC"; then 5887 reload_cmds=false 5888 fi 5889 ;; 5890 darwin*) 5891 if test yes = "$GCC"; then 5892 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5893 else 5894 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5895 fi 5896 ;; 5897esac 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907if test -n "$ac_tool_prefix"; then 5908 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5909set dummy ${ac_tool_prefix}objdump; ac_word=$2 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5911$as_echo_n "checking for $ac_word... " >&6; } 5912if ${ac_cv_prog_OBJDUMP+:} false; then : 5913 $as_echo_n "(cached) " >&6 5914else 5915 if test -n "$OBJDUMP"; then 5916 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5917else 5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5919for as_dir in $PATH 5920do 5921 IFS=$as_save_IFS 5922 test -z "$as_dir" && as_dir=. 5923 for ac_exec_ext in '' $ac_executable_extensions; do 5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5925 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5927 break 2 5928 fi 5929done 5930 done 5931IFS=$as_save_IFS 5932 5933fi 5934fi 5935OBJDUMP=$ac_cv_prog_OBJDUMP 5936if test -n "$OBJDUMP"; then 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5938$as_echo "$OBJDUMP" >&6; } 5939else 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5941$as_echo "no" >&6; } 5942fi 5943 5944 5945fi 5946if test -z "$ac_cv_prog_OBJDUMP"; then 5947 ac_ct_OBJDUMP=$OBJDUMP 5948 # Extract the first word of "objdump", so it can be a program name with args. 5949set dummy objdump; ac_word=$2 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5951$as_echo_n "checking for $ac_word... " >&6; } 5952if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5953 $as_echo_n "(cached) " >&6 5954else 5955 if test -n "$ac_ct_OBJDUMP"; then 5956 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5957else 5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959for as_dir in $PATH 5960do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5965 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969done 5970 done 5971IFS=$as_save_IFS 5972 5973fi 5974fi 5975ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5976if test -n "$ac_ct_OBJDUMP"; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5978$as_echo "$ac_ct_OBJDUMP" >&6; } 5979else 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5981$as_echo "no" >&6; } 5982fi 5983 5984 if test "x$ac_ct_OBJDUMP" = x; then 5985 OBJDUMP="false" 5986 else 5987 case $cross_compiling:$ac_tool_warned in 5988yes:) 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5991ac_tool_warned=yes ;; 5992esac 5993 OBJDUMP=$ac_ct_OBJDUMP 5994 fi 5995else 5996 OBJDUMP="$ac_cv_prog_OBJDUMP" 5997fi 5998 5999test -z "$OBJDUMP" && OBJDUMP=objdump 6000 6001 6002 6003 6004 6005 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6007$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6008if ${lt_cv_deplibs_check_method+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 lt_cv_file_magic_cmd='$MAGIC_CMD' 6012lt_cv_file_magic_test_file= 6013lt_cv_deplibs_check_method='unknown' 6014# Need to set the preceding variable on all platforms that support 6015# interlibrary dependencies. 6016# 'none' -- dependencies not supported. 6017# 'unknown' -- same as none, but documents that we really don't know. 6018# 'pass_all' -- all dependencies passed with no checks. 6019# 'test_compile' -- check by making test program. 6020# 'file_magic [[regex]]' -- check by looking for files in library path 6021# that responds to the $file_magic_cmd with a given extended regex. 6022# If you have 'file' or equivalent on your system and you're not sure 6023# whether 'pass_all' will *always* work, you probably want this one. 6024 6025case $host_os in 6026aix[4-9]*) 6027 lt_cv_deplibs_check_method=pass_all 6028 ;; 6029 6030beos*) 6031 lt_cv_deplibs_check_method=pass_all 6032 ;; 6033 6034bsdi[45]*) 6035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6036 lt_cv_file_magic_cmd='/usr/bin/file -L' 6037 lt_cv_file_magic_test_file=/shlib/libc.so 6038 ;; 6039 6040cygwin*) 6041 # func_win32_libid is a shell function defined in ltmain.sh 6042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6043 lt_cv_file_magic_cmd='func_win32_libid' 6044 ;; 6045 6046mingw* | pw32*) 6047 # Base MSYS/MinGW do not provide the 'file' command needed by 6048 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6049 # unless we find 'file', for example because we are cross-compiling. 6050 if ( file / ) >/dev/null 2>&1; then 6051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6052 lt_cv_file_magic_cmd='func_win32_libid' 6053 else 6054 # Keep this pattern in sync with the one in func_win32_libid. 6055 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6056 lt_cv_file_magic_cmd='$OBJDUMP -f' 6057 fi 6058 ;; 6059 6060cegcc*) 6061 # use the weaker test based on 'objdump'. See mingw*. 6062 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6063 lt_cv_file_magic_cmd='$OBJDUMP -f' 6064 ;; 6065 6066darwin* | rhapsody*) 6067 lt_cv_deplibs_check_method=pass_all 6068 ;; 6069 6070freebsd* | dragonfly*) 6071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6072 case $host_cpu in 6073 i*86 ) 6074 # Not sure whether the presence of OpenBSD here was a mistake. 6075 # Let's accept both of them until this is cleared up. 6076 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6077 lt_cv_file_magic_cmd=/usr/bin/file 6078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6079 ;; 6080 esac 6081 else 6082 lt_cv_deplibs_check_method=pass_all 6083 fi 6084 ;; 6085 6086haiku*) 6087 lt_cv_deplibs_check_method=pass_all 6088 ;; 6089 6090hpux10.20* | hpux11*) 6091 lt_cv_file_magic_cmd=/usr/bin/file 6092 case $host_cpu in 6093 ia64*) 6094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6095 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6096 ;; 6097 hppa*64*) 6098 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]' 6099 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6100 ;; 6101 *) 6102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6103 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6104 ;; 6105 esac 6106 ;; 6107 6108interix[3-9]*) 6109 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6111 ;; 6112 6113irix5* | irix6* | nonstopux*) 6114 case $LD in 6115 *-32|*"-32 ") libmagic=32-bit;; 6116 *-n32|*"-n32 ") libmagic=N32;; 6117 *-64|*"-64 ") libmagic=64-bit;; 6118 *) libmagic=never-match;; 6119 esac 6120 lt_cv_deplibs_check_method=pass_all 6121 ;; 6122 6123# This must be glibc/ELF. 6124linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6125 lt_cv_deplibs_check_method=pass_all 6126 ;; 6127 6128netbsd* | netbsdelf*-gnu) 6129 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6131 else 6132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6133 fi 6134 ;; 6135 6136newos6*) 6137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6138 lt_cv_file_magic_cmd=/usr/bin/file 6139 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6140 ;; 6141 6142*nto* | *qnx*) 6143 lt_cv_deplibs_check_method=pass_all 6144 ;; 6145 6146openbsd* | bitrig*) 6147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6149 else 6150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6151 fi 6152 ;; 6153 6154osf3* | osf4* | osf5*) 6155 lt_cv_deplibs_check_method=pass_all 6156 ;; 6157 6158rdos*) 6159 lt_cv_deplibs_check_method=pass_all 6160 ;; 6161 6162solaris*) 6163 lt_cv_deplibs_check_method=pass_all 6164 ;; 6165 6166sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6167 lt_cv_deplibs_check_method=pass_all 6168 ;; 6169 6170sysv4 | sysv4.3*) 6171 case $host_vendor in 6172 motorola) 6173 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]' 6174 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6175 ;; 6176 ncr) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179 sequent) 6180 lt_cv_file_magic_cmd='/bin/file' 6181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6182 ;; 6183 sni) 6184 lt_cv_file_magic_cmd='/bin/file' 6185 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6186 lt_cv_file_magic_test_file=/lib/libc.so 6187 ;; 6188 siemens) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 pc) 6192 lt_cv_deplibs_check_method=pass_all 6193 ;; 6194 esac 6195 ;; 6196 6197tpf*) 6198 lt_cv_deplibs_check_method=pass_all 6199 ;; 6200os2*) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203esac 6204 6205fi 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6207$as_echo "$lt_cv_deplibs_check_method" >&6; } 6208 6209file_magic_glob= 6210want_nocaseglob=no 6211if test "$build" = "$host"; then 6212 case $host_os in 6213 mingw* | pw32*) 6214 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6215 want_nocaseglob=yes 6216 else 6217 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6218 fi 6219 ;; 6220 esac 6221fi 6222 6223file_magic_cmd=$lt_cv_file_magic_cmd 6224deplibs_check_method=$lt_cv_deplibs_check_method 6225test -z "$deplibs_check_method" && deplibs_check_method=unknown 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248if test -n "$ac_tool_prefix"; then 6249 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6250set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6252$as_echo_n "checking for $ac_word... " >&6; } 6253if ${ac_cv_prog_DLLTOOL+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255else 6256 if test -n "$DLLTOOL"; then 6257 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6258else 6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6260for as_dir in $PATH 6261do 6262 IFS=$as_save_IFS 6263 test -z "$as_dir" && as_dir=. 6264 for ac_exec_ext in '' $ac_executable_extensions; do 6265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6266 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6268 break 2 6269 fi 6270done 6271 done 6272IFS=$as_save_IFS 6273 6274fi 6275fi 6276DLLTOOL=$ac_cv_prog_DLLTOOL 6277if test -n "$DLLTOOL"; then 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6279$as_echo "$DLLTOOL" >&6; } 6280else 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6282$as_echo "no" >&6; } 6283fi 6284 6285 6286fi 6287if test -z "$ac_cv_prog_DLLTOOL"; then 6288 ac_ct_DLLTOOL=$DLLTOOL 6289 # Extract the first word of "dlltool", so it can be a program name with args. 6290set dummy dlltool; ac_word=$2 6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6292$as_echo_n "checking for $ac_word... " >&6; } 6293if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 if test -n "$ac_ct_DLLTOOL"; then 6297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6298else 6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300for as_dir in $PATH 6301do 6302 IFS=$as_save_IFS 6303 test -z "$as_dir" && as_dir=. 6304 for ac_exec_ext in '' $ac_executable_extensions; do 6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6306 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6308 break 2 6309 fi 6310done 6311 done 6312IFS=$as_save_IFS 6313 6314fi 6315fi 6316ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6317if test -n "$ac_ct_DLLTOOL"; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6319$as_echo "$ac_ct_DLLTOOL" >&6; } 6320else 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322$as_echo "no" >&6; } 6323fi 6324 6325 if test "x$ac_ct_DLLTOOL" = x; then 6326 DLLTOOL="false" 6327 else 6328 case $cross_compiling:$ac_tool_warned in 6329yes:) 6330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6332ac_tool_warned=yes ;; 6333esac 6334 DLLTOOL=$ac_ct_DLLTOOL 6335 fi 6336else 6337 DLLTOOL="$ac_cv_prog_DLLTOOL" 6338fi 6339 6340test -z "$DLLTOOL" && DLLTOOL=dlltool 6341 6342 6343 6344 6345 6346 6347 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6349$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6350if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 lt_cv_sharedlib_from_linklib_cmd='unknown' 6354 6355case $host_os in 6356cygwin* | mingw* | pw32* | cegcc*) 6357 # two different shell functions defined in ltmain.sh; 6358 # decide which one to use based on capabilities of $DLLTOOL 6359 case `$DLLTOOL --help 2>&1` in 6360 *--identify-strict*) 6361 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6362 ;; 6363 *) 6364 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6365 ;; 6366 esac 6367 ;; 6368*) 6369 # fallback: assume linklib IS sharedlib 6370 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6371 ;; 6372esac 6373 6374fi 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6376$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6377sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6378test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6379 6380 6381 6382 6383 6384 6385 6386if test -n "$ac_tool_prefix"; then 6387 for ac_prog in ar 6388 do 6389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6390set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6392$as_echo_n "checking for $ac_word... " >&6; } 6393if ${ac_cv_prog_AR+:} false; then : 6394 $as_echo_n "(cached) " >&6 6395else 6396 if test -n "$AR"; then 6397 ac_cv_prog_AR="$AR" # Let the user override the test. 6398else 6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6400for as_dir in $PATH 6401do 6402 IFS=$as_save_IFS 6403 test -z "$as_dir" && as_dir=. 6404 for ac_exec_ext in '' $ac_executable_extensions; do 6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6406 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6408 break 2 6409 fi 6410done 6411 done 6412IFS=$as_save_IFS 6413 6414fi 6415fi 6416AR=$ac_cv_prog_AR 6417if test -n "$AR"; then 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6419$as_echo "$AR" >&6; } 6420else 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6422$as_echo "no" >&6; } 6423fi 6424 6425 6426 test -n "$AR" && break 6427 done 6428fi 6429if test -z "$AR"; then 6430 ac_ct_AR=$AR 6431 for ac_prog in ar 6432do 6433 # Extract the first word of "$ac_prog", so it can be a program name with args. 6434set dummy $ac_prog; ac_word=$2 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6436$as_echo_n "checking for $ac_word... " >&6; } 6437if ${ac_cv_prog_ac_ct_AR+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 if test -n "$ac_ct_AR"; then 6441 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6442else 6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6444for as_dir in $PATH 6445do 6446 IFS=$as_save_IFS 6447 test -z "$as_dir" && as_dir=. 6448 for ac_exec_ext in '' $ac_executable_extensions; do 6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6450 ac_cv_prog_ac_ct_AR="$ac_prog" 6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6452 break 2 6453 fi 6454done 6455 done 6456IFS=$as_save_IFS 6457 6458fi 6459fi 6460ac_ct_AR=$ac_cv_prog_ac_ct_AR 6461if test -n "$ac_ct_AR"; then 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6463$as_echo "$ac_ct_AR" >&6; } 6464else 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6466$as_echo "no" >&6; } 6467fi 6468 6469 6470 test -n "$ac_ct_AR" && break 6471done 6472 6473 if test "x$ac_ct_AR" = x; then 6474 AR="false" 6475 else 6476 case $cross_compiling:$ac_tool_warned in 6477yes:) 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6480ac_tool_warned=yes ;; 6481esac 6482 AR=$ac_ct_AR 6483 fi 6484fi 6485 6486: ${AR=ar} 6487: ${AR_FLAGS=cru} 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6500$as_echo_n "checking for archiver @FILE support... " >&6; } 6501if ${lt_cv_ar_at_file+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 lt_cv_ar_at_file=no 6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6506/* end confdefs.h. */ 6507 6508int 6509main () 6510{ 6511 6512 ; 6513 return 0; 6514} 6515_ACEOF 6516if ac_fn_c_try_compile "$LINENO"; then : 6517 echo conftest.$ac_objext > conftest.lst 6518 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6520 (eval $lt_ar_try) 2>&5 6521 ac_status=$? 6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6523 test $ac_status = 0; } 6524 if test 0 -eq "$ac_status"; then 6525 # Ensure the archiver fails upon bogus file names. 6526 rm -f conftest.$ac_objext libconftest.a 6527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6528 (eval $lt_ar_try) 2>&5 6529 ac_status=$? 6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6531 test $ac_status = 0; } 6532 if test 0 -ne "$ac_status"; then 6533 lt_cv_ar_at_file=@ 6534 fi 6535 fi 6536 rm -f conftest.* libconftest.a 6537 6538fi 6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6540 6541fi 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6543$as_echo "$lt_cv_ar_at_file" >&6; } 6544 6545if test no = "$lt_cv_ar_at_file"; then 6546 archiver_list_spec= 6547else 6548 archiver_list_spec=$lt_cv_ar_at_file 6549fi 6550 6551 6552 6553 6554 6555 6556 6557if test -n "$ac_tool_prefix"; then 6558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6559set dummy ${ac_tool_prefix}strip; ac_word=$2 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561$as_echo_n "checking for $ac_word... " >&6; } 6562if ${ac_cv_prog_STRIP+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 if test -n "$STRIP"; then 6566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6567else 6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6575 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579done 6580 done 6581IFS=$as_save_IFS 6582 6583fi 6584fi 6585STRIP=$ac_cv_prog_STRIP 6586if test -n "$STRIP"; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6588$as_echo "$STRIP" >&6; } 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6591$as_echo "no" >&6; } 6592fi 6593 6594 6595fi 6596if test -z "$ac_cv_prog_STRIP"; then 6597 ac_ct_STRIP=$STRIP 6598 # Extract the first word of "strip", so it can be a program name with args. 6599set dummy strip; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 if test -n "$ac_ct_STRIP"; then 6606 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_ac_ct_STRIP="strip" 6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620 done 6621IFS=$as_save_IFS 6622 6623fi 6624fi 6625ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6626if test -n "$ac_ct_STRIP"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6628$as_echo "$ac_ct_STRIP" >&6; } 6629else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631$as_echo "no" >&6; } 6632fi 6633 6634 if test "x$ac_ct_STRIP" = x; then 6635 STRIP=":" 6636 else 6637 case $cross_compiling:$ac_tool_warned in 6638yes:) 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6641ac_tool_warned=yes ;; 6642esac 6643 STRIP=$ac_ct_STRIP 6644 fi 6645else 6646 STRIP="$ac_cv_prog_STRIP" 6647fi 6648 6649test -z "$STRIP" && STRIP=: 6650 6651 6652 6653 6654 6655 6656if test -n "$ac_tool_prefix"; then 6657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6658set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6660$as_echo_n "checking for $ac_word... " >&6; } 6661if ${ac_cv_prog_RANLIB+:} false; then : 6662 $as_echo_n "(cached) " >&6 6663else 6664 if test -n "$RANLIB"; then 6665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6666else 6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6668for as_dir in $PATH 6669do 6670 IFS=$as_save_IFS 6671 test -z "$as_dir" && as_dir=. 6672 for ac_exec_ext in '' $ac_executable_extensions; do 6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6676 break 2 6677 fi 6678done 6679 done 6680IFS=$as_save_IFS 6681 6682fi 6683fi 6684RANLIB=$ac_cv_prog_RANLIB 6685if test -n "$RANLIB"; then 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6687$as_echo "$RANLIB" >&6; } 6688else 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6690$as_echo "no" >&6; } 6691fi 6692 6693 6694fi 6695if test -z "$ac_cv_prog_RANLIB"; then 6696 ac_ct_RANLIB=$RANLIB 6697 # Extract the first word of "ranlib", so it can be a program name with args. 6698set dummy ranlib; ac_word=$2 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6700$as_echo_n "checking for $ac_word... " >&6; } 6701if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6702 $as_echo_n "(cached) " >&6 6703else 6704 if test -n "$ac_ct_RANLIB"; then 6705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6706else 6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708for as_dir in $PATH 6709do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6714 ac_cv_prog_ac_ct_RANLIB="ranlib" 6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718done 6719 done 6720IFS=$as_save_IFS 6721 6722fi 6723fi 6724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6725if test -n "$ac_ct_RANLIB"; then 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6727$as_echo "$ac_ct_RANLIB" >&6; } 6728else 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6730$as_echo "no" >&6; } 6731fi 6732 6733 if test "x$ac_ct_RANLIB" = x; then 6734 RANLIB=":" 6735 else 6736 case $cross_compiling:$ac_tool_warned in 6737yes:) 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6740ac_tool_warned=yes ;; 6741esac 6742 RANLIB=$ac_ct_RANLIB 6743 fi 6744else 6745 RANLIB="$ac_cv_prog_RANLIB" 6746fi 6747 6748test -z "$RANLIB" && RANLIB=: 6749 6750 6751 6752 6753 6754 6755# Determine commands to create old-style static archives. 6756old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6757old_postinstall_cmds='chmod 644 $oldlib' 6758old_postuninstall_cmds= 6759 6760if test -n "$RANLIB"; then 6761 case $host_os in 6762 bitrig* | openbsd*) 6763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6764 ;; 6765 *) 6766 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6767 ;; 6768 esac 6769 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6770fi 6771 6772case $host_os in 6773 darwin*) 6774 lock_old_archive_extraction=yes ;; 6775 *) 6776 lock_old_archive_extraction=no ;; 6777esac 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817# If no C compiler was specified, use CC. 6818LTCC=${LTCC-"$CC"} 6819 6820# If no C compiler flags were specified, use CFLAGS. 6821LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6822 6823# Allow CC to be a program name with arguments. 6824compiler=$CC 6825 6826 6827# Check for command to grab the raw symbol name followed by C symbol from nm. 6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6829$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6830if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6831 $as_echo_n "(cached) " >&6 6832else 6833 6834# These are sane defaults that work on at least a few old systems. 6835# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6836 6837# Character class describing NM global symbol codes. 6838symcode='[BCDEGRST]' 6839 6840# Regexp to match symbols that can be accessed directly from C. 6841sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6842 6843# Define system-specific variables. 6844case $host_os in 6845aix*) 6846 symcode='[BCDT]' 6847 ;; 6848cygwin* | mingw* | pw32* | cegcc*) 6849 symcode='[ABCDGISTW]' 6850 ;; 6851hpux*) 6852 if test ia64 = "$host_cpu"; then 6853 symcode='[ABCDEGRST]' 6854 fi 6855 ;; 6856irix* | nonstopux*) 6857 symcode='[BCDEGRST]' 6858 ;; 6859osf*) 6860 symcode='[BCDEGQRST]' 6861 ;; 6862solaris*) 6863 symcode='[BDRT]' 6864 ;; 6865sco3.2v5*) 6866 symcode='[DT]' 6867 ;; 6868sysv4.2uw2*) 6869 symcode='[DT]' 6870 ;; 6871sysv5* | sco5v6* | unixware* | OpenUNIX*) 6872 symcode='[ABDT]' 6873 ;; 6874sysv4) 6875 symcode='[DFNSTU]' 6876 ;; 6877esac 6878 6879# If we're using GNU nm, then use its standard symbol codes. 6880case `$NM -V 2>&1` in 6881*GNU* | *'with BFD'*) 6882 symcode='[ABCDGIRSTW]' ;; 6883esac 6884 6885if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6886 # Gets list of data symbols to import. 6887 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6888 # Adjust the below global symbol transforms to fixup imported variables. 6889 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6890 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6891 lt_c_name_lib_hook="\ 6892 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6893 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6894else 6895 # Disable hooks by default. 6896 lt_cv_sys_global_symbol_to_import= 6897 lt_cdecl_hook= 6898 lt_c_name_hook= 6899 lt_c_name_lib_hook= 6900fi 6901 6902# Transform an extracted symbol line into a proper C declaration. 6903# Some systems (esp. on ia64) link data and code symbols differently, 6904# so use this general approach. 6905lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6906$lt_cdecl_hook\ 6907" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6908" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6909 6910# Transform an extracted symbol line into symbol name and symbol address 6911lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6912$lt_c_name_hook\ 6913" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6914" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6915 6916# Transform an extracted symbol line into symbol name with lib prefix and 6917# symbol address. 6918lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6919$lt_c_name_lib_hook\ 6920" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6921" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6922" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6923 6924# Handle CRLF in mingw tool chain 6925opt_cr= 6926case $build_os in 6927mingw*) 6928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6929 ;; 6930esac 6931 6932# Try without a prefix underscore, then with it. 6933for ac_symprfx in "" "_"; do 6934 6935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6936 symxfrm="\\1 $ac_symprfx\\2 \\2" 6937 6938 # Write the raw and C identifiers. 6939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6940 # Fake it for dumpbin and say T for any non-static function, 6941 # D for any global variable and I for any imported variable. 6942 # Also find C++ and __fastcall symbols from MSVC++, 6943 # which start with @ or ?. 6944 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6945" {last_section=section; section=\$ 3};"\ 6946" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6947" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6948" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6949" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6950" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6951" \$ 0!~/External *\|/{next};"\ 6952" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6953" {if(hide[section]) next};"\ 6954" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6955" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6956" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6957" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6958" ' prfx=^$ac_symprfx" 6959 else 6960 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6961 fi 6962 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6963 6964 # Check to see that the pipe works correctly. 6965 pipe_works=no 6966 6967 rm -f conftest* 6968 cat > conftest.$ac_ext <<_LT_EOF 6969#ifdef __cplusplus 6970extern "C" { 6971#endif 6972char nm_test_var; 6973void nm_test_func(void); 6974void nm_test_func(void){} 6975#ifdef __cplusplus 6976} 6977#endif 6978int main(){nm_test_var='a';nm_test_func();return(0);} 6979_LT_EOF 6980 6981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6982 (eval $ac_compile) 2>&5 6983 ac_status=$? 6984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6985 test $ac_status = 0; }; then 6986 # Now try to grab the symbols. 6987 nlist=conftest.nm 6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6989 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6990 ac_status=$? 6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6992 test $ac_status = 0; } && test -s "$nlist"; then 6993 # Try sorting and uniquifying the output. 6994 if sort "$nlist" | uniq > "$nlist"T; then 6995 mv -f "$nlist"T "$nlist" 6996 else 6997 rm -f "$nlist"T 6998 fi 6999 7000 # Make sure that we snagged all the symbols we need. 7001 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7002 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7003 cat <<_LT_EOF > conftest.$ac_ext 7004/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7005#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7006/* DATA imports from DLLs on WIN32 can't be const, because runtime 7007 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7008# define LT_DLSYM_CONST 7009#elif defined __osf__ 7010/* This system does not cope well with relocations in const data. */ 7011# define LT_DLSYM_CONST 7012#else 7013# define LT_DLSYM_CONST const 7014#endif 7015 7016#ifdef __cplusplus 7017extern "C" { 7018#endif 7019 7020_LT_EOF 7021 # Now generate the symbol file. 7022 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7023 7024 cat <<_LT_EOF >> conftest.$ac_ext 7025 7026/* The mapping between symbol names and symbols. */ 7027LT_DLSYM_CONST struct { 7028 const char *name; 7029 void *address; 7030} 7031lt__PROGRAM__LTX_preloaded_symbols[] = 7032{ 7033 { "@PROGRAM@", (void *) 0 }, 7034_LT_EOF 7035 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7036 cat <<\_LT_EOF >> conftest.$ac_ext 7037 {0, (void *) 0} 7038}; 7039 7040/* This works around a problem in FreeBSD linker */ 7041#ifdef FREEBSD_WORKAROUND 7042static const void *lt_preloaded_setup() { 7043 return lt__PROGRAM__LTX_preloaded_symbols; 7044} 7045#endif 7046 7047#ifdef __cplusplus 7048} 7049#endif 7050_LT_EOF 7051 # Now try linking the two files. 7052 mv conftest.$ac_objext conftstm.$ac_objext 7053 lt_globsym_save_LIBS=$LIBS 7054 lt_globsym_save_CFLAGS=$CFLAGS 7055 LIBS=conftstm.$ac_objext 7056 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7058 (eval $ac_link) 2>&5 7059 ac_status=$? 7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7061 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7062 pipe_works=yes 7063 fi 7064 LIBS=$lt_globsym_save_LIBS 7065 CFLAGS=$lt_globsym_save_CFLAGS 7066 else 7067 echo "cannot find nm_test_func in $nlist" >&5 7068 fi 7069 else 7070 echo "cannot find nm_test_var in $nlist" >&5 7071 fi 7072 else 7073 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7074 fi 7075 else 7076 echo "$progname: failed program was:" >&5 7077 cat conftest.$ac_ext >&5 7078 fi 7079 rm -rf conftest* conftst* 7080 7081 # Do not use the global_symbol_pipe unless it works. 7082 if test yes = "$pipe_works"; then 7083 break 7084 else 7085 lt_cv_sys_global_symbol_pipe= 7086 fi 7087done 7088 7089fi 7090 7091if test -z "$lt_cv_sys_global_symbol_pipe"; then 7092 lt_cv_sys_global_symbol_to_cdecl= 7093fi 7094if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7096$as_echo "failed" >&6; } 7097else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7099$as_echo "ok" >&6; } 7100fi 7101 7102# Response file support. 7103if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7104 nm_file_list_spec='@' 7105elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7106 nm_file_list_spec='@' 7107fi 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7146$as_echo_n "checking for sysroot... " >&6; } 7147 7148# Check whether --with-sysroot was given. 7149if test "${with_sysroot+set}" = set; then : 7150 withval=$with_sysroot; 7151else 7152 with_sysroot=no 7153fi 7154 7155 7156lt_sysroot= 7157case $with_sysroot in #( 7158 yes) 7159 if test yes = "$GCC"; then 7160 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7161 fi 7162 ;; #( 7163 /*) 7164 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7165 ;; #( 7166 no|'') 7167 ;; #( 7168 *) 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7170$as_echo "$with_sysroot" >&6; } 7171 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7172 ;; 7173esac 7174 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7176$as_echo "${lt_sysroot:-no}" >&6; } 7177 7178 7179 7180 7181 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7183$as_echo_n "checking for a working dd... " >&6; } 7184if ${ac_cv_path_lt_DD+:} false; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 printf 0123456789abcdef0123456789abcdef >conftest.i 7188cat conftest.i conftest.i >conftest2.i 7189: ${lt_DD:=$DD} 7190if test -z "$lt_DD"; then 7191 ac_path_lt_DD_found=false 7192 # Loop through the user's path and test for each of PROGNAME-LIST 7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7194for as_dir in $PATH 7195do 7196 IFS=$as_save_IFS 7197 test -z "$as_dir" && as_dir=. 7198 for ac_prog in dd; do 7199 for ac_exec_ext in '' $ac_executable_extensions; do 7200 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7201 as_fn_executable_p "$ac_path_lt_DD" || continue 7202if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7203 cmp -s conftest.i conftest.out \ 7204 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7205fi 7206 $ac_path_lt_DD_found && break 3 7207 done 7208 done 7209 done 7210IFS=$as_save_IFS 7211 if test -z "$ac_cv_path_lt_DD"; then 7212 : 7213 fi 7214else 7215 ac_cv_path_lt_DD=$lt_DD 7216fi 7217 7218rm -f conftest.i conftest2.i conftest.out 7219fi 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7221$as_echo "$ac_cv_path_lt_DD" >&6; } 7222 7223 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7225$as_echo_n "checking how to truncate binary pipes... " >&6; } 7226if ${lt_cv_truncate_bin+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 printf 0123456789abcdef0123456789abcdef >conftest.i 7230cat conftest.i conftest.i >conftest2.i 7231lt_cv_truncate_bin= 7232if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7233 cmp -s conftest.i conftest.out \ 7234 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7235fi 7236rm -f conftest.i conftest2.i conftest.out 7237test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7238fi 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7240$as_echo "$lt_cv_truncate_bin" >&6; } 7241 7242 7243 7244 7245 7246 7247 7248# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7249func_cc_basename () 7250{ 7251 for cc_temp in $*""; do 7252 case $cc_temp in 7253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7255 \-*) ;; 7256 *) break;; 7257 esac 7258 done 7259 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7260} 7261 7262# Check whether --enable-libtool-lock was given. 7263if test "${enable_libtool_lock+set}" = set; then : 7264 enableval=$enable_libtool_lock; 7265fi 7266 7267test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7268 7269# Some flags need to be propagated to the compiler or linker for good 7270# libtool support. 7271case $host in 7272ia64-*-hpux*) 7273 # Find out what ABI is being produced by ac_compile, and set mode 7274 # options accordingly. 7275 echo 'int i;' > conftest.$ac_ext 7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7277 (eval $ac_compile) 2>&5 7278 ac_status=$? 7279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7280 test $ac_status = 0; }; then 7281 case `/usr/bin/file conftest.$ac_objext` in 7282 *ELF-32*) 7283 HPUX_IA64_MODE=32 7284 ;; 7285 *ELF-64*) 7286 HPUX_IA64_MODE=64 7287 ;; 7288 esac 7289 fi 7290 rm -rf conftest* 7291 ;; 7292*-*-irix6*) 7293 # Find out what ABI is being produced by ac_compile, and set linker 7294 # options accordingly. 7295 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7297 (eval $ac_compile) 2>&5 7298 ac_status=$? 7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7300 test $ac_status = 0; }; then 7301 if test yes = "$lt_cv_prog_gnu_ld"; then 7302 case `/usr/bin/file conftest.$ac_objext` in 7303 *32-bit*) 7304 LD="${LD-ld} -melf32bsmip" 7305 ;; 7306 *N32*) 7307 LD="${LD-ld} -melf32bmipn32" 7308 ;; 7309 *64-bit*) 7310 LD="${LD-ld} -melf64bmip" 7311 ;; 7312 esac 7313 else 7314 case `/usr/bin/file conftest.$ac_objext` in 7315 *32-bit*) 7316 LD="${LD-ld} -32" 7317 ;; 7318 *N32*) 7319 LD="${LD-ld} -n32" 7320 ;; 7321 *64-bit*) 7322 LD="${LD-ld} -64" 7323 ;; 7324 esac 7325 fi 7326 fi 7327 rm -rf conftest* 7328 ;; 7329 7330mips64*-*linux*) 7331 # Find out what ABI is being produced by ac_compile, and set linker 7332 # options accordingly. 7333 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7335 (eval $ac_compile) 2>&5 7336 ac_status=$? 7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7338 test $ac_status = 0; }; then 7339 emul=elf 7340 case `/usr/bin/file conftest.$ac_objext` in 7341 *32-bit*) 7342 emul="${emul}32" 7343 ;; 7344 *64-bit*) 7345 emul="${emul}64" 7346 ;; 7347 esac 7348 case `/usr/bin/file conftest.$ac_objext` in 7349 *MSB*) 7350 emul="${emul}btsmip" 7351 ;; 7352 *LSB*) 7353 emul="${emul}ltsmip" 7354 ;; 7355 esac 7356 case `/usr/bin/file conftest.$ac_objext` in 7357 *N32*) 7358 emul="${emul}n32" 7359 ;; 7360 esac 7361 LD="${LD-ld} -m $emul" 7362 fi 7363 rm -rf conftest* 7364 ;; 7365 7366x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7367s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7368 # Find out what ABI is being produced by ac_compile, and set linker 7369 # options accordingly. Note that the listed cases only cover the 7370 # situations where additional linker options are needed (such as when 7371 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7372 # vice versa); the common cases where no linker options are needed do 7373 # not appear in the list. 7374 echo 'int i;' > conftest.$ac_ext 7375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7376 (eval $ac_compile) 2>&5 7377 ac_status=$? 7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7379 test $ac_status = 0; }; then 7380 case `/usr/bin/file conftest.o` in 7381 *32-bit*) 7382 case $host in 7383 x86_64-*kfreebsd*-gnu) 7384 LD="${LD-ld} -m elf_i386_fbsd" 7385 ;; 7386 x86_64-*linux*) 7387 case `/usr/bin/file conftest.o` in 7388 *x86-64*) 7389 LD="${LD-ld} -m elf32_x86_64" 7390 ;; 7391 *) 7392 LD="${LD-ld} -m elf_i386" 7393 ;; 7394 esac 7395 ;; 7396 powerpc64le-*linux*) 7397 LD="${LD-ld} -m elf32lppclinux" 7398 ;; 7399 powerpc64-*linux*) 7400 LD="${LD-ld} -m elf32ppclinux" 7401 ;; 7402 s390x-*linux*) 7403 LD="${LD-ld} -m elf_s390" 7404 ;; 7405 sparc64-*linux*) 7406 LD="${LD-ld} -m elf32_sparc" 7407 ;; 7408 esac 7409 ;; 7410 *64-bit*) 7411 case $host in 7412 x86_64-*kfreebsd*-gnu) 7413 LD="${LD-ld} -m elf_x86_64_fbsd" 7414 ;; 7415 x86_64-*linux*) 7416 LD="${LD-ld} -m elf_x86_64" 7417 ;; 7418 powerpcle-*linux*) 7419 LD="${LD-ld} -m elf64lppc" 7420 ;; 7421 powerpc-*linux*) 7422 LD="${LD-ld} -m elf64ppc" 7423 ;; 7424 s390*-*linux*|s390*-*tpf*) 7425 LD="${LD-ld} -m elf64_s390" 7426 ;; 7427 sparc*-*linux*) 7428 LD="${LD-ld} -m elf64_sparc" 7429 ;; 7430 esac 7431 ;; 7432 esac 7433 fi 7434 rm -rf conftest* 7435 ;; 7436 7437*-*-sco3.2v5*) 7438 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7439 SAVE_CFLAGS=$CFLAGS 7440 CFLAGS="$CFLAGS -belf" 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7442$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7443if ${lt_cv_cc_needs_belf+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 ac_ext=c 7447ac_cpp='$CPP $CPPFLAGS' 7448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7450ac_compiler_gnu=$ac_cv_c_compiler_gnu 7451 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454 7455int 7456main () 7457{ 7458 7459 ; 7460 return 0; 7461} 7462_ACEOF 7463if ac_fn_c_try_link "$LINENO"; then : 7464 lt_cv_cc_needs_belf=yes 7465else 7466 lt_cv_cc_needs_belf=no 7467fi 7468rm -f core conftest.err conftest.$ac_objext \ 7469 conftest$ac_exeext conftest.$ac_ext 7470 ac_ext=c 7471ac_cpp='$CPP $CPPFLAGS' 7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7474ac_compiler_gnu=$ac_cv_c_compiler_gnu 7475 7476fi 7477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7478$as_echo "$lt_cv_cc_needs_belf" >&6; } 7479 if test yes != "$lt_cv_cc_needs_belf"; then 7480 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7481 CFLAGS=$SAVE_CFLAGS 7482 fi 7483 ;; 7484*-*solaris*) 7485 # Find out what ABI is being produced by ac_compile, and set linker 7486 # options accordingly. 7487 echo 'int i;' > conftest.$ac_ext 7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7489 (eval $ac_compile) 2>&5 7490 ac_status=$? 7491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7492 test $ac_status = 0; }; then 7493 case `/usr/bin/file conftest.o` in 7494 *64-bit*) 7495 case $lt_cv_prog_gnu_ld in 7496 yes*) 7497 case $host in 7498 i?86-*-solaris*|x86_64-*-solaris*) 7499 LD="${LD-ld} -m elf_x86_64" 7500 ;; 7501 sparc*-*-solaris*) 7502 LD="${LD-ld} -m elf64_sparc" 7503 ;; 7504 esac 7505 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7506 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7507 LD=${LD-ld}_sol2 7508 fi 7509 ;; 7510 *) 7511 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7512 LD="${LD-ld} -64" 7513 fi 7514 ;; 7515 esac 7516 ;; 7517 esac 7518 fi 7519 rm -rf conftest* 7520 ;; 7521esac 7522 7523need_locks=$enable_libtool_lock 7524 7525if test -n "$ac_tool_prefix"; then 7526 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7527set dummy ${ac_tool_prefix}mt; ac_word=$2 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7529$as_echo_n "checking for $ac_word... " >&6; } 7530if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 if test -n "$MANIFEST_TOOL"; then 7534 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7535else 7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7537for as_dir in $PATH 7538do 7539 IFS=$as_save_IFS 7540 test -z "$as_dir" && as_dir=. 7541 for ac_exec_ext in '' $ac_executable_extensions; do 7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7543 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7545 break 2 7546 fi 7547done 7548 done 7549IFS=$as_save_IFS 7550 7551fi 7552fi 7553MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7554if test -n "$MANIFEST_TOOL"; then 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7556$as_echo "$MANIFEST_TOOL" >&6; } 7557else 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7559$as_echo "no" >&6; } 7560fi 7561 7562 7563fi 7564if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7565 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7566 # Extract the first word of "mt", so it can be a program name with args. 7567set dummy mt; ac_word=$2 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7569$as_echo_n "checking for $ac_word... " >&6; } 7570if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7571 $as_echo_n "(cached) " >&6 7572else 7573 if test -n "$ac_ct_MANIFEST_TOOL"; then 7574 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7575else 7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7577for as_dir in $PATH 7578do 7579 IFS=$as_save_IFS 7580 test -z "$as_dir" && as_dir=. 7581 for ac_exec_ext in '' $ac_executable_extensions; do 7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7583 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7585 break 2 7586 fi 7587done 7588 done 7589IFS=$as_save_IFS 7590 7591fi 7592fi 7593ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7594if test -n "$ac_ct_MANIFEST_TOOL"; then 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7596$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7597else 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7599$as_echo "no" >&6; } 7600fi 7601 7602 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7603 MANIFEST_TOOL=":" 7604 else 7605 case $cross_compiling:$ac_tool_warned in 7606yes:) 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7609ac_tool_warned=yes ;; 7610esac 7611 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7612 fi 7613else 7614 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7615fi 7616 7617test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7619$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7620if ${lt_cv_path_mainfest_tool+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 lt_cv_path_mainfest_tool=no 7624 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7625 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7626 cat conftest.err >&5 7627 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7628 lt_cv_path_mainfest_tool=yes 7629 fi 7630 rm -f conftest* 7631fi 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7633$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7634if test yes != "$lt_cv_path_mainfest_tool"; then 7635 MANIFEST_TOOL=: 7636fi 7637 7638 7639 7640 7641 7642 7643 case $host_os in 7644 rhapsody* | darwin*) 7645 if test -n "$ac_tool_prefix"; then 7646 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7647set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7649$as_echo_n "checking for $ac_word... " >&6; } 7650if ${ac_cv_prog_DSYMUTIL+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 if test -n "$DSYMUTIL"; then 7654 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7655else 7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7657for as_dir in $PATH 7658do 7659 IFS=$as_save_IFS 7660 test -z "$as_dir" && as_dir=. 7661 for ac_exec_ext in '' $ac_executable_extensions; do 7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7663 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7665 break 2 7666 fi 7667done 7668 done 7669IFS=$as_save_IFS 7670 7671fi 7672fi 7673DSYMUTIL=$ac_cv_prog_DSYMUTIL 7674if test -n "$DSYMUTIL"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7676$as_echo "$DSYMUTIL" >&6; } 7677else 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7679$as_echo "no" >&6; } 7680fi 7681 7682 7683fi 7684if test -z "$ac_cv_prog_DSYMUTIL"; then 7685 ac_ct_DSYMUTIL=$DSYMUTIL 7686 # Extract the first word of "dsymutil", so it can be a program name with args. 7687set dummy dsymutil; ac_word=$2 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7689$as_echo_n "checking for $ac_word... " >&6; } 7690if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 if test -n "$ac_ct_DSYMUTIL"; then 7694 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7695else 7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7697for as_dir in $PATH 7698do 7699 IFS=$as_save_IFS 7700 test -z "$as_dir" && as_dir=. 7701 for ac_exec_ext in '' $ac_executable_extensions; do 7702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7703 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7705 break 2 7706 fi 7707done 7708 done 7709IFS=$as_save_IFS 7710 7711fi 7712fi 7713ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7714if test -n "$ac_ct_DSYMUTIL"; then 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7716$as_echo "$ac_ct_DSYMUTIL" >&6; } 7717else 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7719$as_echo "no" >&6; } 7720fi 7721 7722 if test "x$ac_ct_DSYMUTIL" = x; then 7723 DSYMUTIL=":" 7724 else 7725 case $cross_compiling:$ac_tool_warned in 7726yes:) 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7729ac_tool_warned=yes ;; 7730esac 7731 DSYMUTIL=$ac_ct_DSYMUTIL 7732 fi 7733else 7734 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7735fi 7736 7737 if test -n "$ac_tool_prefix"; then 7738 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7739set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7741$as_echo_n "checking for $ac_word... " >&6; } 7742if ${ac_cv_prog_NMEDIT+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 if test -n "$NMEDIT"; then 7746 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7747else 7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7749for as_dir in $PATH 7750do 7751 IFS=$as_save_IFS 7752 test -z "$as_dir" && as_dir=. 7753 for ac_exec_ext in '' $ac_executable_extensions; do 7754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7755 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7757 break 2 7758 fi 7759done 7760 done 7761IFS=$as_save_IFS 7762 7763fi 7764fi 7765NMEDIT=$ac_cv_prog_NMEDIT 7766if test -n "$NMEDIT"; then 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7768$as_echo "$NMEDIT" >&6; } 7769else 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7771$as_echo "no" >&6; } 7772fi 7773 7774 7775fi 7776if test -z "$ac_cv_prog_NMEDIT"; then 7777 ac_ct_NMEDIT=$NMEDIT 7778 # Extract the first word of "nmedit", so it can be a program name with args. 7779set dummy nmedit; ac_word=$2 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7781$as_echo_n "checking for $ac_word... " >&6; } 7782if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 if test -n "$ac_ct_NMEDIT"; then 7786 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7787else 7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7789for as_dir in $PATH 7790do 7791 IFS=$as_save_IFS 7792 test -z "$as_dir" && as_dir=. 7793 for ac_exec_ext in '' $ac_executable_extensions; do 7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7795 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7797 break 2 7798 fi 7799done 7800 done 7801IFS=$as_save_IFS 7802 7803fi 7804fi 7805ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7806if test -n "$ac_ct_NMEDIT"; then 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7808$as_echo "$ac_ct_NMEDIT" >&6; } 7809else 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7811$as_echo "no" >&6; } 7812fi 7813 7814 if test "x$ac_ct_NMEDIT" = x; then 7815 NMEDIT=":" 7816 else 7817 case $cross_compiling:$ac_tool_warned in 7818yes:) 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7821ac_tool_warned=yes ;; 7822esac 7823 NMEDIT=$ac_ct_NMEDIT 7824 fi 7825else 7826 NMEDIT="$ac_cv_prog_NMEDIT" 7827fi 7828 7829 if test -n "$ac_tool_prefix"; then 7830 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7831set dummy ${ac_tool_prefix}lipo; ac_word=$2 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7833$as_echo_n "checking for $ac_word... " >&6; } 7834if ${ac_cv_prog_LIPO+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 if test -n "$LIPO"; then 7838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7839else 7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841for as_dir in $PATH 7842do 7843 IFS=$as_save_IFS 7844 test -z "$as_dir" && as_dir=. 7845 for ac_exec_ext in '' $ac_executable_extensions; do 7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7847 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7849 break 2 7850 fi 7851done 7852 done 7853IFS=$as_save_IFS 7854 7855fi 7856fi 7857LIPO=$ac_cv_prog_LIPO 7858if test -n "$LIPO"; then 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7860$as_echo "$LIPO" >&6; } 7861else 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7863$as_echo "no" >&6; } 7864fi 7865 7866 7867fi 7868if test -z "$ac_cv_prog_LIPO"; then 7869 ac_ct_LIPO=$LIPO 7870 # Extract the first word of "lipo", so it can be a program name with args. 7871set dummy lipo; ac_word=$2 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7873$as_echo_n "checking for $ac_word... " >&6; } 7874if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876else 7877 if test -n "$ac_ct_LIPO"; then 7878 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7879else 7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7881for as_dir in $PATH 7882do 7883 IFS=$as_save_IFS 7884 test -z "$as_dir" && as_dir=. 7885 for ac_exec_ext in '' $ac_executable_extensions; do 7886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7887 ac_cv_prog_ac_ct_LIPO="lipo" 7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7889 break 2 7890 fi 7891done 7892 done 7893IFS=$as_save_IFS 7894 7895fi 7896fi 7897ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7898if test -n "$ac_ct_LIPO"; then 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7900$as_echo "$ac_ct_LIPO" >&6; } 7901else 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7903$as_echo "no" >&6; } 7904fi 7905 7906 if test "x$ac_ct_LIPO" = x; then 7907 LIPO=":" 7908 else 7909 case $cross_compiling:$ac_tool_warned in 7910yes:) 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7913ac_tool_warned=yes ;; 7914esac 7915 LIPO=$ac_ct_LIPO 7916 fi 7917else 7918 LIPO="$ac_cv_prog_LIPO" 7919fi 7920 7921 if test -n "$ac_tool_prefix"; then 7922 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7923set dummy ${ac_tool_prefix}otool; ac_word=$2 7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7925$as_echo_n "checking for $ac_word... " >&6; } 7926if ${ac_cv_prog_OTOOL+:} false; then : 7927 $as_echo_n "(cached) " >&6 7928else 7929 if test -n "$OTOOL"; then 7930 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7931else 7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7933for as_dir in $PATH 7934do 7935 IFS=$as_save_IFS 7936 test -z "$as_dir" && as_dir=. 7937 for ac_exec_ext in '' $ac_executable_extensions; do 7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7939 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7941 break 2 7942 fi 7943done 7944 done 7945IFS=$as_save_IFS 7946 7947fi 7948fi 7949OTOOL=$ac_cv_prog_OTOOL 7950if test -n "$OTOOL"; then 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7952$as_echo "$OTOOL" >&6; } 7953else 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7955$as_echo "no" >&6; } 7956fi 7957 7958 7959fi 7960if test -z "$ac_cv_prog_OTOOL"; then 7961 ac_ct_OTOOL=$OTOOL 7962 # Extract the first word of "otool", so it can be a program name with args. 7963set dummy otool; ac_word=$2 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7965$as_echo_n "checking for $ac_word... " >&6; } 7966if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968else 7969 if test -n "$ac_ct_OTOOL"; then 7970 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7971else 7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7973for as_dir in $PATH 7974do 7975 IFS=$as_save_IFS 7976 test -z "$as_dir" && as_dir=. 7977 for ac_exec_ext in '' $ac_executable_extensions; do 7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7979 ac_cv_prog_ac_ct_OTOOL="otool" 7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7981 break 2 7982 fi 7983done 7984 done 7985IFS=$as_save_IFS 7986 7987fi 7988fi 7989ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7990if test -n "$ac_ct_OTOOL"; then 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7992$as_echo "$ac_ct_OTOOL" >&6; } 7993else 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7995$as_echo "no" >&6; } 7996fi 7997 7998 if test "x$ac_ct_OTOOL" = x; then 7999 OTOOL=":" 8000 else 8001 case $cross_compiling:$ac_tool_warned in 8002yes:) 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8005ac_tool_warned=yes ;; 8006esac 8007 OTOOL=$ac_ct_OTOOL 8008 fi 8009else 8010 OTOOL="$ac_cv_prog_OTOOL" 8011fi 8012 8013 if test -n "$ac_tool_prefix"; then 8014 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8015set dummy ${ac_tool_prefix}otool64; ac_word=$2 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8017$as_echo_n "checking for $ac_word... " >&6; } 8018if ${ac_cv_prog_OTOOL64+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 if test -n "$OTOOL64"; then 8022 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8023else 8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025for as_dir in $PATH 8026do 8027 IFS=$as_save_IFS 8028 test -z "$as_dir" && as_dir=. 8029 for ac_exec_ext in '' $ac_executable_extensions; do 8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8031 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8033 break 2 8034 fi 8035done 8036 done 8037IFS=$as_save_IFS 8038 8039fi 8040fi 8041OTOOL64=$ac_cv_prog_OTOOL64 8042if test -n "$OTOOL64"; then 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8044$as_echo "$OTOOL64" >&6; } 8045else 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8047$as_echo "no" >&6; } 8048fi 8049 8050 8051fi 8052if test -z "$ac_cv_prog_OTOOL64"; then 8053 ac_ct_OTOOL64=$OTOOL64 8054 # Extract the first word of "otool64", so it can be a program name with args. 8055set dummy otool64; ac_word=$2 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8057$as_echo_n "checking for $ac_word... " >&6; } 8058if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 if test -n "$ac_ct_OTOOL64"; then 8062 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8063else 8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8065for as_dir in $PATH 8066do 8067 IFS=$as_save_IFS 8068 test -z "$as_dir" && as_dir=. 8069 for ac_exec_ext in '' $ac_executable_extensions; do 8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8071 ac_cv_prog_ac_ct_OTOOL64="otool64" 8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8073 break 2 8074 fi 8075done 8076 done 8077IFS=$as_save_IFS 8078 8079fi 8080fi 8081ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8082if test -n "$ac_ct_OTOOL64"; then 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8084$as_echo "$ac_ct_OTOOL64" >&6; } 8085else 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8087$as_echo "no" >&6; } 8088fi 8089 8090 if test "x$ac_ct_OTOOL64" = x; then 8091 OTOOL64=":" 8092 else 8093 case $cross_compiling:$ac_tool_warned in 8094yes:) 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8097ac_tool_warned=yes ;; 8098esac 8099 OTOOL64=$ac_ct_OTOOL64 8100 fi 8101else 8102 OTOOL64="$ac_cv_prog_OTOOL64" 8103fi 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8132$as_echo_n "checking for -single_module linker flag... " >&6; } 8133if ${lt_cv_apple_cc_single_mod+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 lt_cv_apple_cc_single_mod=no 8137 if test -z "$LT_MULTI_MODULE"; then 8138 # By default we will add the -single_module flag. You can override 8139 # by either setting the environment variable LT_MULTI_MODULE 8140 # non-empty at configure time, or by adding -multi_module to the 8141 # link flags. 8142 rm -rf libconftest.dylib* 8143 echo "int foo(void){return 1;}" > conftest.c 8144 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8145-dynamiclib -Wl,-single_module conftest.c" >&5 8146 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8147 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8148 _lt_result=$? 8149 # If there is a non-empty error log, and "single_module" 8150 # appears in it, assume the flag caused a linker warning 8151 if test -s conftest.err && $GREP single_module conftest.err; then 8152 cat conftest.err >&5 8153 # Otherwise, if the output was created with a 0 exit code from 8154 # the compiler, it worked. 8155 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8156 lt_cv_apple_cc_single_mod=yes 8157 else 8158 cat conftest.err >&5 8159 fi 8160 rm -rf libconftest.dylib* 8161 rm -f conftest.* 8162 fi 8163fi 8164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8165$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8166 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8168$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8169if ${lt_cv_ld_exported_symbols_list+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 lt_cv_ld_exported_symbols_list=no 8173 save_LDFLAGS=$LDFLAGS 8174 echo "_main" > conftest.sym 8175 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8177/* end confdefs.h. */ 8178 8179int 8180main () 8181{ 8182 8183 ; 8184 return 0; 8185} 8186_ACEOF 8187if ac_fn_c_try_link "$LINENO"; then : 8188 lt_cv_ld_exported_symbols_list=yes 8189else 8190 lt_cv_ld_exported_symbols_list=no 8191fi 8192rm -f core conftest.err conftest.$ac_objext \ 8193 conftest$ac_exeext conftest.$ac_ext 8194 LDFLAGS=$save_LDFLAGS 8195 8196fi 8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8198$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8199 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8201$as_echo_n "checking for -force_load linker flag... " >&6; } 8202if ${lt_cv_ld_force_load+:} false; then : 8203 $as_echo_n "(cached) " >&6 8204else 8205 lt_cv_ld_force_load=no 8206 cat > conftest.c << _LT_EOF 8207int forced_loaded() { return 2;} 8208_LT_EOF 8209 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8210 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8211 echo "$AR cru libconftest.a conftest.o" >&5 8212 $AR cru libconftest.a conftest.o 2>&5 8213 echo "$RANLIB libconftest.a" >&5 8214 $RANLIB libconftest.a 2>&5 8215 cat > conftest.c << _LT_EOF 8216int main() { return 0;} 8217_LT_EOF 8218 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8219 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8220 _lt_result=$? 8221 if test -s conftest.err && $GREP force_load conftest.err; then 8222 cat conftest.err >&5 8223 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8224 lt_cv_ld_force_load=yes 8225 else 8226 cat conftest.err >&5 8227 fi 8228 rm -f conftest.err libconftest.a conftest conftest.c 8229 rm -rf conftest.dSYM 8230 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8233$as_echo "$lt_cv_ld_force_load" >&6; } 8234 case $host_os in 8235 rhapsody* | darwin1.[012]) 8236 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8237 darwin1.*) 8238 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8239 darwin*) # darwin 5.x on 8240 # if running on 10.5 or later, the deployment target defaults 8241 # to the OS version, if on x86, and 10.4, the deployment 8242 # target defaults to 10.4. Don't you love it? 8243 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8244 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8245 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8246 10.[012][,.]*) 8247 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8248 10.*) 8249 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8250 esac 8251 ;; 8252 esac 8253 if test yes = "$lt_cv_apple_cc_single_mod"; then 8254 _lt_dar_single_mod='$single_module' 8255 fi 8256 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8257 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8258 else 8259 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8260 fi 8261 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8262 _lt_dsymutil='~$DSYMUTIL $lib || :' 8263 else 8264 _lt_dsymutil= 8265 fi 8266 ;; 8267 esac 8268 8269# func_munge_path_list VARIABLE PATH 8270# ----------------------------------- 8271# VARIABLE is name of variable containing _space_ separated list of 8272# directories to be munged by the contents of PATH, which is string 8273# having a format: 8274# "DIR[:DIR]:" 8275# string "DIR[ DIR]" will be prepended to VARIABLE 8276# ":DIR[:DIR]" 8277# string "DIR[ DIR]" will be appended to VARIABLE 8278# "DIRP[:DIRP]::[DIRA:]DIRA" 8279# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8280# "DIRA[ DIRA]" will be appended to VARIABLE 8281# "DIR[:DIR]" 8282# VARIABLE will be replaced by "DIR[ DIR]" 8283func_munge_path_list () 8284{ 8285 case x$2 in 8286 x) 8287 ;; 8288 *:) 8289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8290 ;; 8291 x:*) 8292 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8293 ;; 8294 *::*) 8295 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8296 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8297 ;; 8298 *) 8299 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8300 ;; 8301 esac 8302} 8303 8304ac_ext=c 8305ac_cpp='$CPP $CPPFLAGS' 8306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8308ac_compiler_gnu=$ac_cv_c_compiler_gnu 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8310$as_echo_n "checking how to run the C preprocessor... " >&6; } 8311# On Suns, sometimes $CPP names a directory. 8312if test -n "$CPP" && test -d "$CPP"; then 8313 CPP= 8314fi 8315if test -z "$CPP"; then 8316 if ${ac_cv_prog_CPP+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 # Double quotes because CPP needs to be expanded 8320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8321 do 8322 ac_preproc_ok=false 8323for ac_c_preproc_warn_flag in '' yes 8324do 8325 # Use a header file that comes with gcc, so configuring glibc 8326 # with a fresh cross-compiler works. 8327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8328 # <limits.h> exists even on freestanding compilers. 8329 # On the NeXT, cc -E runs the code through the compiler's parser, 8330 # not just through cpp. "Syntax error" is here to catch this case. 8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8332/* end confdefs.h. */ 8333#ifdef __STDC__ 8334# include <limits.h> 8335#else 8336# include <assert.h> 8337#endif 8338 Syntax error 8339_ACEOF 8340if ac_fn_c_try_cpp "$LINENO"; then : 8341 8342else 8343 # Broken: fails on valid input. 8344continue 8345fi 8346rm -f conftest.err conftest.i conftest.$ac_ext 8347 8348 # OK, works on sane cases. Now check whether nonexistent headers 8349 # can be detected and how. 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352#include <ac_nonexistent.h> 8353_ACEOF 8354if ac_fn_c_try_cpp "$LINENO"; then : 8355 # Broken: success on invalid input. 8356continue 8357else 8358 # Passes both tests. 8359ac_preproc_ok=: 8360break 8361fi 8362rm -f conftest.err conftest.i conftest.$ac_ext 8363 8364done 8365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8366rm -f conftest.i conftest.err conftest.$ac_ext 8367if $ac_preproc_ok; then : 8368 break 8369fi 8370 8371 done 8372 ac_cv_prog_CPP=$CPP 8373 8374fi 8375 CPP=$ac_cv_prog_CPP 8376else 8377 ac_cv_prog_CPP=$CPP 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8380$as_echo "$CPP" >&6; } 8381ac_preproc_ok=false 8382for ac_c_preproc_warn_flag in '' yes 8383do 8384 # Use a header file that comes with gcc, so configuring glibc 8385 # with a fresh cross-compiler works. 8386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8387 # <limits.h> exists even on freestanding compilers. 8388 # On the NeXT, cc -E runs the code through the compiler's parser, 8389 # not just through cpp. "Syntax error" is here to catch this case. 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392#ifdef __STDC__ 8393# include <limits.h> 8394#else 8395# include <assert.h> 8396#endif 8397 Syntax error 8398_ACEOF 8399if ac_fn_c_try_cpp "$LINENO"; then : 8400 8401else 8402 # Broken: fails on valid input. 8403continue 8404fi 8405rm -f conftest.err conftest.i conftest.$ac_ext 8406 8407 # OK, works on sane cases. Now check whether nonexistent headers 8408 # can be detected and how. 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411#include <ac_nonexistent.h> 8412_ACEOF 8413if ac_fn_c_try_cpp "$LINENO"; then : 8414 # Broken: success on invalid input. 8415continue 8416else 8417 # Passes both tests. 8418ac_preproc_ok=: 8419break 8420fi 8421rm -f conftest.err conftest.i conftest.$ac_ext 8422 8423done 8424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8425rm -f conftest.i conftest.err conftest.$ac_ext 8426if $ac_preproc_ok; then : 8427 8428else 8429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8431as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8432See \`config.log' for more details" "$LINENO" 5; } 8433fi 8434 8435ac_ext=c 8436ac_cpp='$CPP $CPPFLAGS' 8437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8439ac_compiler_gnu=$ac_cv_c_compiler_gnu 8440 8441 8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8443$as_echo_n "checking for ANSI C header files... " >&6; } 8444if ${ac_cv_header_stdc+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449#include <stdlib.h> 8450#include <stdarg.h> 8451#include <string.h> 8452#include <float.h> 8453 8454int 8455main () 8456{ 8457 8458 ; 8459 return 0; 8460} 8461_ACEOF 8462if ac_fn_c_try_compile "$LINENO"; then : 8463 ac_cv_header_stdc=yes 8464else 8465 ac_cv_header_stdc=no 8466fi 8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8468 8469if test $ac_cv_header_stdc = yes; then 8470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472/* end confdefs.h. */ 8473#include <string.h> 8474 8475_ACEOF 8476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8477 $EGREP "memchr" >/dev/null 2>&1; then : 8478 8479else 8480 ac_cv_header_stdc=no 8481fi 8482rm -f conftest* 8483 8484fi 8485 8486if test $ac_cv_header_stdc = yes; then 8487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490#include <stdlib.h> 8491 8492_ACEOF 8493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8494 $EGREP "free" >/dev/null 2>&1; then : 8495 8496else 8497 ac_cv_header_stdc=no 8498fi 8499rm -f conftest* 8500 8501fi 8502 8503if test $ac_cv_header_stdc = yes; then 8504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8505 if test "$cross_compiling" = yes; then : 8506 : 8507else 8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509/* end confdefs.h. */ 8510#include <ctype.h> 8511#include <stdlib.h> 8512#if ((' ' & 0x0FF) == 0x020) 8513# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8514# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8515#else 8516# define ISLOWER(c) \ 8517 (('a' <= (c) && (c) <= 'i') \ 8518 || ('j' <= (c) && (c) <= 'r') \ 8519 || ('s' <= (c) && (c) <= 'z')) 8520# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8521#endif 8522 8523#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8524int 8525main () 8526{ 8527 int i; 8528 for (i = 0; i < 256; i++) 8529 if (XOR (islower (i), ISLOWER (i)) 8530 || toupper (i) != TOUPPER (i)) 8531 return 2; 8532 return 0; 8533} 8534_ACEOF 8535if ac_fn_c_try_run "$LINENO"; then : 8536 8537else 8538 ac_cv_header_stdc=no 8539fi 8540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8541 conftest.$ac_objext conftest.beam conftest.$ac_ext 8542fi 8543 8544fi 8545fi 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8547$as_echo "$ac_cv_header_stdc" >&6; } 8548if test $ac_cv_header_stdc = yes; then 8549 8550$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8551 8552fi 8553 8554# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8555for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8556 inttypes.h stdint.h unistd.h 8557do : 8558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8559ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8560" 8561if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8562 cat >>confdefs.h <<_ACEOF 8563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8564_ACEOF 8565 8566fi 8567 8568done 8569 8570 8571for ac_header in dlfcn.h 8572do : 8573 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8574" 8575if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8576 cat >>confdefs.h <<_ACEOF 8577#define HAVE_DLFCN_H 1 8578_ACEOF 8579 8580fi 8581 8582done 8583 8584 8585 8586 8587 8588# Set options 8589# Check whether --enable-static was given. 8590if test "${enable_static+set}" = set; then : 8591 enableval=$enable_static; p=${PACKAGE-default} 8592 case $enableval in 8593 yes) enable_static=yes ;; 8594 no) enable_static=no ;; 8595 *) 8596 enable_static=no 8597 # Look at the argument we got. We use all the common list separators. 8598 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8599 for pkg in $enableval; do 8600 IFS=$lt_save_ifs 8601 if test "X$pkg" = "X$p"; then 8602 enable_static=yes 8603 fi 8604 done 8605 IFS=$lt_save_ifs 8606 ;; 8607 esac 8608else 8609 enable_static=no 8610fi 8611 8612 8613 8614 8615 8616 8617 8618enable_dlopen=yes 8619enable_win32_dll=yes 8620 8621case $host in 8622*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8623 if test -n "$ac_tool_prefix"; then 8624 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8625set dummy ${ac_tool_prefix}as; ac_word=$2 8626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8627$as_echo_n "checking for $ac_word... " >&6; } 8628if ${ac_cv_prog_AS+:} false; then : 8629 $as_echo_n "(cached) " >&6 8630else 8631 if test -n "$AS"; then 8632 ac_cv_prog_AS="$AS" # Let the user override the test. 8633else 8634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8635for as_dir in $PATH 8636do 8637 IFS=$as_save_IFS 8638 test -z "$as_dir" && as_dir=. 8639 for ac_exec_ext in '' $ac_executable_extensions; do 8640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8641 ac_cv_prog_AS="${ac_tool_prefix}as" 8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8643 break 2 8644 fi 8645done 8646 done 8647IFS=$as_save_IFS 8648 8649fi 8650fi 8651AS=$ac_cv_prog_AS 8652if test -n "$AS"; then 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8654$as_echo "$AS" >&6; } 8655else 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8657$as_echo "no" >&6; } 8658fi 8659 8660 8661fi 8662if test -z "$ac_cv_prog_AS"; then 8663 ac_ct_AS=$AS 8664 # Extract the first word of "as", so it can be a program name with args. 8665set dummy as; ac_word=$2 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8667$as_echo_n "checking for $ac_word... " >&6; } 8668if ${ac_cv_prog_ac_ct_AS+:} false; then : 8669 $as_echo_n "(cached) " >&6 8670else 8671 if test -n "$ac_ct_AS"; then 8672 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8673else 8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8675for as_dir in $PATH 8676do 8677 IFS=$as_save_IFS 8678 test -z "$as_dir" && as_dir=. 8679 for ac_exec_ext in '' $ac_executable_extensions; do 8680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8681 ac_cv_prog_ac_ct_AS="as" 8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8683 break 2 8684 fi 8685done 8686 done 8687IFS=$as_save_IFS 8688 8689fi 8690fi 8691ac_ct_AS=$ac_cv_prog_ac_ct_AS 8692if test -n "$ac_ct_AS"; then 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8694$as_echo "$ac_ct_AS" >&6; } 8695else 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8697$as_echo "no" >&6; } 8698fi 8699 8700 if test "x$ac_ct_AS" = x; then 8701 AS="false" 8702 else 8703 case $cross_compiling:$ac_tool_warned in 8704yes:) 8705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8707ac_tool_warned=yes ;; 8708esac 8709 AS=$ac_ct_AS 8710 fi 8711else 8712 AS="$ac_cv_prog_AS" 8713fi 8714 8715 if test -n "$ac_tool_prefix"; then 8716 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8717set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8719$as_echo_n "checking for $ac_word... " >&6; } 8720if ${ac_cv_prog_DLLTOOL+:} false; then : 8721 $as_echo_n "(cached) " >&6 8722else 8723 if test -n "$DLLTOOL"; then 8724 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8725else 8726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8727for as_dir in $PATH 8728do 8729 IFS=$as_save_IFS 8730 test -z "$as_dir" && as_dir=. 8731 for ac_exec_ext in '' $ac_executable_extensions; do 8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8733 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8735 break 2 8736 fi 8737done 8738 done 8739IFS=$as_save_IFS 8740 8741fi 8742fi 8743DLLTOOL=$ac_cv_prog_DLLTOOL 8744if test -n "$DLLTOOL"; then 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8746$as_echo "$DLLTOOL" >&6; } 8747else 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8749$as_echo "no" >&6; } 8750fi 8751 8752 8753fi 8754if test -z "$ac_cv_prog_DLLTOOL"; then 8755 ac_ct_DLLTOOL=$DLLTOOL 8756 # Extract the first word of "dlltool", so it can be a program name with args. 8757set dummy dlltool; ac_word=$2 8758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8759$as_echo_n "checking for $ac_word... " >&6; } 8760if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8761 $as_echo_n "(cached) " >&6 8762else 8763 if test -n "$ac_ct_DLLTOOL"; then 8764 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8765else 8766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8767for as_dir in $PATH 8768do 8769 IFS=$as_save_IFS 8770 test -z "$as_dir" && as_dir=. 8771 for ac_exec_ext in '' $ac_executable_extensions; do 8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8773 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8775 break 2 8776 fi 8777done 8778 done 8779IFS=$as_save_IFS 8780 8781fi 8782fi 8783ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8784if test -n "$ac_ct_DLLTOOL"; then 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8786$as_echo "$ac_ct_DLLTOOL" >&6; } 8787else 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8789$as_echo "no" >&6; } 8790fi 8791 8792 if test "x$ac_ct_DLLTOOL" = x; then 8793 DLLTOOL="false" 8794 else 8795 case $cross_compiling:$ac_tool_warned in 8796yes:) 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8799ac_tool_warned=yes ;; 8800esac 8801 DLLTOOL=$ac_ct_DLLTOOL 8802 fi 8803else 8804 DLLTOOL="$ac_cv_prog_DLLTOOL" 8805fi 8806 8807 if test -n "$ac_tool_prefix"; then 8808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8809set dummy ${ac_tool_prefix}objdump; ac_word=$2 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8811$as_echo_n "checking for $ac_word... " >&6; } 8812if ${ac_cv_prog_OBJDUMP+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 if test -n "$OBJDUMP"; then 8816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8817else 8818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8819for as_dir in $PATH 8820do 8821 IFS=$as_save_IFS 8822 test -z "$as_dir" && as_dir=. 8823 for ac_exec_ext in '' $ac_executable_extensions; do 8824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8827 break 2 8828 fi 8829done 8830 done 8831IFS=$as_save_IFS 8832 8833fi 8834fi 8835OBJDUMP=$ac_cv_prog_OBJDUMP 8836if test -n "$OBJDUMP"; then 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8838$as_echo "$OBJDUMP" >&6; } 8839else 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8841$as_echo "no" >&6; } 8842fi 8843 8844 8845fi 8846if test -z "$ac_cv_prog_OBJDUMP"; then 8847 ac_ct_OBJDUMP=$OBJDUMP 8848 # Extract the first word of "objdump", so it can be a program name with args. 8849set dummy objdump; ac_word=$2 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8851$as_echo_n "checking for $ac_word... " >&6; } 8852if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854else 8855 if test -n "$ac_ct_OBJDUMP"; then 8856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8857else 8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8859for as_dir in $PATH 8860do 8861 IFS=$as_save_IFS 8862 test -z "$as_dir" && as_dir=. 8863 for ac_exec_ext in '' $ac_executable_extensions; do 8864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8865 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8867 break 2 8868 fi 8869done 8870 done 8871IFS=$as_save_IFS 8872 8873fi 8874fi 8875ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8876if test -n "$ac_ct_OBJDUMP"; then 8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8878$as_echo "$ac_ct_OBJDUMP" >&6; } 8879else 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8881$as_echo "no" >&6; } 8882fi 8883 8884 if test "x$ac_ct_OBJDUMP" = x; then 8885 OBJDUMP="false" 8886 else 8887 case $cross_compiling:$ac_tool_warned in 8888yes:) 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8891ac_tool_warned=yes ;; 8892esac 8893 OBJDUMP=$ac_ct_OBJDUMP 8894 fi 8895else 8896 OBJDUMP="$ac_cv_prog_OBJDUMP" 8897fi 8898 8899 ;; 8900esac 8901 8902test -z "$AS" && AS=as 8903 8904 8905 8906 8907 8908test -z "$DLLTOOL" && DLLTOOL=dlltool 8909 8910 8911 8912 8913 8914test -z "$OBJDUMP" && OBJDUMP=objdump 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 # Check whether --enable-shared was given. 8925if test "${enable_shared+set}" = set; then : 8926 enableval=$enable_shared; p=${PACKAGE-default} 8927 case $enableval in 8928 yes) enable_shared=yes ;; 8929 no) enable_shared=no ;; 8930 *) 8931 enable_shared=no 8932 # Look at the argument we got. We use all the common list separators. 8933 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8934 for pkg in $enableval; do 8935 IFS=$lt_save_ifs 8936 if test "X$pkg" = "X$p"; then 8937 enable_shared=yes 8938 fi 8939 done 8940 IFS=$lt_save_ifs 8941 ;; 8942 esac 8943else 8944 enable_shared=yes 8945fi 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957# Check whether --with-pic was given. 8958if test "${with_pic+set}" = set; then : 8959 withval=$with_pic; lt_p=${PACKAGE-default} 8960 case $withval in 8961 yes|no) pic_mode=$withval ;; 8962 *) 8963 pic_mode=default 8964 # Look at the argument we got. We use all the common list separators. 8965 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8966 for lt_pkg in $withval; do 8967 IFS=$lt_save_ifs 8968 if test "X$lt_pkg" = "X$lt_p"; then 8969 pic_mode=yes 8970 fi 8971 done 8972 IFS=$lt_save_ifs 8973 ;; 8974 esac 8975else 8976 pic_mode=default 8977fi 8978 8979 8980 8981 8982 8983 8984 8985 8986 # Check whether --enable-fast-install was given. 8987if test "${enable_fast_install+set}" = set; then : 8988 enableval=$enable_fast_install; p=${PACKAGE-default} 8989 case $enableval in 8990 yes) enable_fast_install=yes ;; 8991 no) enable_fast_install=no ;; 8992 *) 8993 enable_fast_install=no 8994 # Look at the argument we got. We use all the common list separators. 8995 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8996 for pkg in $enableval; do 8997 IFS=$lt_save_ifs 8998 if test "X$pkg" = "X$p"; then 8999 enable_fast_install=yes 9000 fi 9001 done 9002 IFS=$lt_save_ifs 9003 ;; 9004 esac 9005else 9006 enable_fast_install=yes 9007fi 9008 9009 9010 9011 9012 9013 9014 9015 9016 shared_archive_member_spec= 9017case $host,$enable_shared in 9018power*-*-aix[5-9]*,yes) 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9020$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9021 9022# Check whether --with-aix-soname was given. 9023if test "${with_aix_soname+set}" = set; then : 9024 withval=$with_aix_soname; case $withval in 9025 aix|svr4|both) 9026 ;; 9027 *) 9028 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9029 ;; 9030 esac 9031 lt_cv_with_aix_soname=$with_aix_soname 9032else 9033 if ${lt_cv_with_aix_soname+:} false; then : 9034 $as_echo_n "(cached) " >&6 9035else 9036 lt_cv_with_aix_soname=aix 9037fi 9038 9039 with_aix_soname=$lt_cv_with_aix_soname 9040fi 9041 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9043$as_echo "$with_aix_soname" >&6; } 9044 if test aix != "$with_aix_soname"; then 9045 # For the AIX way of multilib, we name the shared archive member 9046 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9047 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9048 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9049 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9050 if test 64 = "${OBJECT_MODE-32}"; then 9051 shared_archive_member_spec=shr_64 9052 else 9053 shared_archive_member_spec=shr 9054 fi 9055 fi 9056 ;; 9057*) 9058 with_aix_soname=aix 9059 ;; 9060esac 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071# This can be used to rebuild libtool when needed 9072LIBTOOL_DEPS=$ltmain 9073 9074# Always use our own libtool. 9075LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106test -z "$LN_S" && LN_S="ln -s" 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121if test -n "${ZSH_VERSION+set}"; then 9122 setopt NO_GLOB_SUBST 9123fi 9124 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9126$as_echo_n "checking for objdir... " >&6; } 9127if ${lt_cv_objdir+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 rm -f .libs 2>/dev/null 9131mkdir .libs 2>/dev/null 9132if test -d .libs; then 9133 lt_cv_objdir=.libs 9134else 9135 # MS-DOS does not allow filenames that begin with a dot. 9136 lt_cv_objdir=_libs 9137fi 9138rmdir .libs 2>/dev/null 9139fi 9140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9141$as_echo "$lt_cv_objdir" >&6; } 9142objdir=$lt_cv_objdir 9143 9144 9145 9146 9147 9148cat >>confdefs.h <<_ACEOF 9149#define LT_OBJDIR "$lt_cv_objdir/" 9150_ACEOF 9151 9152 9153 9154 9155case $host_os in 9156aix3*) 9157 # AIX sometimes has problems with the GCC collect2 program. For some 9158 # reason, if we set the COLLECT_NAMES environment variable, the problems 9159 # vanish in a puff of smoke. 9160 if test set != "${COLLECT_NAMES+set}"; then 9161 COLLECT_NAMES= 9162 export COLLECT_NAMES 9163 fi 9164 ;; 9165esac 9166 9167# Global variables: 9168ofile=libtool 9169can_build_shared=yes 9170 9171# All known linkers require a '.a' archive for static linking (except MSVC, 9172# which needs '.lib'). 9173libext=a 9174 9175with_gnu_ld=$lt_cv_prog_gnu_ld 9176 9177old_CC=$CC 9178old_CFLAGS=$CFLAGS 9179 9180# Set sane defaults for various variables 9181test -z "$CC" && CC=cc 9182test -z "$LTCC" && LTCC=$CC 9183test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9184test -z "$LD" && LD=ld 9185test -z "$ac_objext" && ac_objext=o 9186 9187func_cc_basename $compiler 9188cc_basename=$func_cc_basename_result 9189 9190 9191# Only perform the check for file, if the check method requires it 9192test -z "$MAGIC_CMD" && MAGIC_CMD=file 9193case $deplibs_check_method in 9194file_magic*) 9195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9197$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9198if ${lt_cv_path_MAGIC_CMD+:} false; then : 9199 $as_echo_n "(cached) " >&6 9200else 9201 case $MAGIC_CMD in 9202[\\/*] | ?:[\\/]*) 9203 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9204 ;; 9205*) 9206 lt_save_MAGIC_CMD=$MAGIC_CMD 9207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9209 for ac_dir in $ac_dummy; do 9210 IFS=$lt_save_ifs 9211 test -z "$ac_dir" && ac_dir=. 9212 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9213 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9214 if test -n "$file_magic_test_file"; then 9215 case $deplibs_check_method in 9216 "file_magic "*) 9217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9220 $EGREP "$file_magic_regex" > /dev/null; then 9221 : 9222 else 9223 cat <<_LT_EOF 1>&2 9224 9225*** Warning: the command libtool uses to detect shared libraries, 9226*** $file_magic_cmd, produces output that libtool cannot recognize. 9227*** The result is that libtool may fail to recognize shared libraries 9228*** as such. This will affect the creation of libtool libraries that 9229*** depend on shared libraries, but programs linked with such libtool 9230*** libraries will work regardless of this problem. Nevertheless, you 9231*** may want to report the problem to your system manager and/or to 9232*** bug-libtool@gnu.org 9233 9234_LT_EOF 9235 fi ;; 9236 esac 9237 fi 9238 break 9239 fi 9240 done 9241 IFS=$lt_save_ifs 9242 MAGIC_CMD=$lt_save_MAGIC_CMD 9243 ;; 9244esac 9245fi 9246 9247MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9248if test -n "$MAGIC_CMD"; then 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9250$as_echo "$MAGIC_CMD" >&6; } 9251else 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9253$as_echo "no" >&6; } 9254fi 9255 9256 9257 9258 9259 9260if test -z "$lt_cv_path_MAGIC_CMD"; then 9261 if test -n "$ac_tool_prefix"; then 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9263$as_echo_n "checking for file... " >&6; } 9264if ${lt_cv_path_MAGIC_CMD+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266else 9267 case $MAGIC_CMD in 9268[\\/*] | ?:[\\/]*) 9269 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9270 ;; 9271*) 9272 lt_save_MAGIC_CMD=$MAGIC_CMD 9273 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9275 for ac_dir in $ac_dummy; do 9276 IFS=$lt_save_ifs 9277 test -z "$ac_dir" && ac_dir=. 9278 if test -f "$ac_dir/file"; then 9279 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9280 if test -n "$file_magic_test_file"; then 9281 case $deplibs_check_method in 9282 "file_magic "*) 9283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9284 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9286 $EGREP "$file_magic_regex" > /dev/null; then 9287 : 9288 else 9289 cat <<_LT_EOF 1>&2 9290 9291*** Warning: the command libtool uses to detect shared libraries, 9292*** $file_magic_cmd, produces output that libtool cannot recognize. 9293*** The result is that libtool may fail to recognize shared libraries 9294*** as such. This will affect the creation of libtool libraries that 9295*** depend on shared libraries, but programs linked with such libtool 9296*** libraries will work regardless of this problem. Nevertheless, you 9297*** may want to report the problem to your system manager and/or to 9298*** bug-libtool@gnu.org 9299 9300_LT_EOF 9301 fi ;; 9302 esac 9303 fi 9304 break 9305 fi 9306 done 9307 IFS=$lt_save_ifs 9308 MAGIC_CMD=$lt_save_MAGIC_CMD 9309 ;; 9310esac 9311fi 9312 9313MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9314if test -n "$MAGIC_CMD"; then 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9316$as_echo "$MAGIC_CMD" >&6; } 9317else 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9319$as_echo "no" >&6; } 9320fi 9321 9322 9323 else 9324 MAGIC_CMD=: 9325 fi 9326fi 9327 9328 fi 9329 ;; 9330esac 9331 9332# Use C for the default configuration in the libtool script 9333 9334lt_save_CC=$CC 9335ac_ext=c 9336ac_cpp='$CPP $CPPFLAGS' 9337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9339ac_compiler_gnu=$ac_cv_c_compiler_gnu 9340 9341 9342# Source file extension for C test sources. 9343ac_ext=c 9344 9345# Object file extension for compiled C test sources. 9346objext=o 9347objext=$objext 9348 9349# Code to be used in simple compile tests 9350lt_simple_compile_test_code="int some_variable = 0;" 9351 9352# Code to be used in simple link tests 9353lt_simple_link_test_code='int main(){return(0);}' 9354 9355 9356 9357 9358 9359 9360 9361# If no C compiler was specified, use CC. 9362LTCC=${LTCC-"$CC"} 9363 9364# If no C compiler flags were specified, use CFLAGS. 9365LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9366 9367# Allow CC to be a program name with arguments. 9368compiler=$CC 9369 9370# Save the default compiler, since it gets overwritten when the other 9371# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9372compiler_DEFAULT=$CC 9373 9374# save warnings/boilerplate of simple test code 9375ac_outfile=conftest.$ac_objext 9376echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9377eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9378_lt_compiler_boilerplate=`cat conftest.err` 9379$RM conftest* 9380 9381ac_outfile=conftest.$ac_objext 9382echo "$lt_simple_link_test_code" >conftest.$ac_ext 9383eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9384_lt_linker_boilerplate=`cat conftest.err` 9385$RM -r conftest* 9386 9387 9388## CAVEAT EMPTOR: 9389## There is no encapsulation within the following macros, do not change 9390## the running order or otherwise move them around unless you know exactly 9391## what you are doing... 9392if test -n "$compiler"; then 9393 9394lt_prog_compiler_no_builtin_flag= 9395 9396if test yes = "$GCC"; then 9397 case $cc_basename in 9398 nvcc*) 9399 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9400 *) 9401 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9402 esac 9403 9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9405$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9406if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9407 $as_echo_n "(cached) " >&6 9408else 9409 lt_cv_prog_compiler_rtti_exceptions=no 9410 ac_outfile=conftest.$ac_objext 9411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9412 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9413 # Insert the option either (1) after the last *FLAGS variable, or 9414 # (2) before a word containing "conftest.", or (3) at the end. 9415 # Note that $ac_compile itself does not contain backslashes and begins 9416 # with a dollar sign (not a hyphen), so the echo should work correctly. 9417 # The option is referenced via a variable to avoid confusing sed. 9418 lt_compile=`echo "$ac_compile" | $SED \ 9419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9421 -e 's:$: $lt_compiler_flag:'` 9422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9423 (eval "$lt_compile" 2>conftest.err) 9424 ac_status=$? 9425 cat conftest.err >&5 9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9427 if (exit $ac_status) && test -s "$ac_outfile"; then 9428 # The compiler can only warn and ignore the option if not recognized 9429 # So say no if there are warnings other than the usual output. 9430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9433 lt_cv_prog_compiler_rtti_exceptions=yes 9434 fi 9435 fi 9436 $RM conftest* 9437 9438fi 9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9440$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9441 9442if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9444else 9445 : 9446fi 9447 9448fi 9449 9450 9451 9452 9453 9454 9455 lt_prog_compiler_wl= 9456lt_prog_compiler_pic= 9457lt_prog_compiler_static= 9458 9459 9460 if test yes = "$GCC"; then 9461 lt_prog_compiler_wl='-Wl,' 9462 lt_prog_compiler_static='-static' 9463 9464 case $host_os in 9465 aix*) 9466 # All AIX code is PIC. 9467 if test ia64 = "$host_cpu"; then 9468 # AIX 5 now supports IA64 processor 9469 lt_prog_compiler_static='-Bstatic' 9470 fi 9471 lt_prog_compiler_pic='-fPIC' 9472 ;; 9473 9474 amigaos*) 9475 case $host_cpu in 9476 powerpc) 9477 # see comment about AmigaOS4 .so support 9478 lt_prog_compiler_pic='-fPIC' 9479 ;; 9480 m68k) 9481 # FIXME: we need at least 68020 code to build shared libraries, but 9482 # adding the '-m68020' flag to GCC prevents building anything better, 9483 # like '-m68040'. 9484 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9485 ;; 9486 esac 9487 ;; 9488 9489 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9490 # PIC is the default for these OSes. 9491 ;; 9492 9493 mingw* | cygwin* | pw32* | os2* | cegcc*) 9494 # This hack is so that the source file can tell whether it is being 9495 # built for inclusion in a dll (and should export symbols for example). 9496 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9497 # (--disable-auto-import) libraries 9498 lt_prog_compiler_pic='-DDLL_EXPORT' 9499 case $host_os in 9500 os2*) 9501 lt_prog_compiler_static='$wl-static' 9502 ;; 9503 esac 9504 ;; 9505 9506 darwin* | rhapsody*) 9507 # PIC is the default on this platform 9508 # Common symbols not allowed in MH_DYLIB files 9509 lt_prog_compiler_pic='-fno-common' 9510 ;; 9511 9512 haiku*) 9513 # PIC is the default for Haiku. 9514 # The "-static" flag exists, but is broken. 9515 lt_prog_compiler_static= 9516 ;; 9517 9518 hpux*) 9519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9521 # sets the default TLS model and affects inlining. 9522 case $host_cpu in 9523 hppa*64*) 9524 # +Z the default 9525 ;; 9526 *) 9527 lt_prog_compiler_pic='-fPIC' 9528 ;; 9529 esac 9530 ;; 9531 9532 interix[3-9]*) 9533 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9534 # Instead, we relocate shared libraries at runtime. 9535 ;; 9536 9537 msdosdjgpp*) 9538 # Just because we use GCC doesn't mean we suddenly get shared libraries 9539 # on systems that don't support them. 9540 lt_prog_compiler_can_build_shared=no 9541 enable_shared=no 9542 ;; 9543 9544 *nto* | *qnx*) 9545 # QNX uses GNU C++, but need to define -shared option too, otherwise 9546 # it will coredump. 9547 lt_prog_compiler_pic='-fPIC -shared' 9548 ;; 9549 9550 sysv4*MP*) 9551 if test -d /usr/nec; then 9552 lt_prog_compiler_pic=-Kconform_pic 9553 fi 9554 ;; 9555 9556 *) 9557 lt_prog_compiler_pic='-fPIC' 9558 ;; 9559 esac 9560 9561 case $cc_basename in 9562 nvcc*) # Cuda Compiler Driver 2.2 9563 lt_prog_compiler_wl='-Xlinker ' 9564 if test -n "$lt_prog_compiler_pic"; then 9565 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9566 fi 9567 ;; 9568 esac 9569 else 9570 # PORTME Check for flag to pass linker flags through the system compiler. 9571 case $host_os in 9572 aix*) 9573 lt_prog_compiler_wl='-Wl,' 9574 if test ia64 = "$host_cpu"; then 9575 # AIX 5 now supports IA64 processor 9576 lt_prog_compiler_static='-Bstatic' 9577 else 9578 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9579 fi 9580 ;; 9581 9582 darwin* | rhapsody*) 9583 # PIC is the default on this platform 9584 # Common symbols not allowed in MH_DYLIB files 9585 lt_prog_compiler_pic='-fno-common' 9586 case $cc_basename in 9587 nagfor*) 9588 # NAG Fortran compiler 9589 lt_prog_compiler_wl='-Wl,-Wl,,' 9590 lt_prog_compiler_pic='-PIC' 9591 lt_prog_compiler_static='-Bstatic' 9592 ;; 9593 esac 9594 ;; 9595 9596 mingw* | cygwin* | pw32* | os2* | cegcc*) 9597 # This hack is so that the source file can tell whether it is being 9598 # built for inclusion in a dll (and should export symbols for example). 9599 lt_prog_compiler_pic='-DDLL_EXPORT' 9600 case $host_os in 9601 os2*) 9602 lt_prog_compiler_static='$wl-static' 9603 ;; 9604 esac 9605 ;; 9606 9607 hpux9* | hpux10* | hpux11*) 9608 lt_prog_compiler_wl='-Wl,' 9609 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9610 # not for PA HP-UX. 9611 case $host_cpu in 9612 hppa*64*|ia64*) 9613 # +Z the default 9614 ;; 9615 *) 9616 lt_prog_compiler_pic='+Z' 9617 ;; 9618 esac 9619 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9620 lt_prog_compiler_static='$wl-a ${wl}archive' 9621 ;; 9622 9623 irix5* | irix6* | nonstopux*) 9624 lt_prog_compiler_wl='-Wl,' 9625 # PIC (with -KPIC) is the default. 9626 lt_prog_compiler_static='-non_shared' 9627 ;; 9628 9629 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9630 case $cc_basename in 9631 # old Intel for x86_64, which still supported -KPIC. 9632 ecc*) 9633 lt_prog_compiler_wl='-Wl,' 9634 lt_prog_compiler_pic='-KPIC' 9635 lt_prog_compiler_static='-static' 9636 ;; 9637 # icc used to be incompatible with GCC. 9638 # ICC 10 doesn't accept -KPIC any more. 9639 icc* | ifort*) 9640 lt_prog_compiler_wl='-Wl,' 9641 lt_prog_compiler_pic='-fPIC' 9642 lt_prog_compiler_static='-static' 9643 ;; 9644 # Lahey Fortran 8.1. 9645 lf95*) 9646 lt_prog_compiler_wl='-Wl,' 9647 lt_prog_compiler_pic='--shared' 9648 lt_prog_compiler_static='--static' 9649 ;; 9650 nagfor*) 9651 # NAG Fortran compiler 9652 lt_prog_compiler_wl='-Wl,-Wl,,' 9653 lt_prog_compiler_pic='-PIC' 9654 lt_prog_compiler_static='-Bstatic' 9655 ;; 9656 tcc*) 9657 # Fabrice Bellard et al's Tiny C Compiler 9658 lt_prog_compiler_wl='-Wl,' 9659 lt_prog_compiler_pic='-fPIC' 9660 lt_prog_compiler_static='-static' 9661 ;; 9662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9663 # Portland Group compilers (*not* the Pentium gcc compiler, 9664 # which looks to be a dead project) 9665 lt_prog_compiler_wl='-Wl,' 9666 lt_prog_compiler_pic='-fpic' 9667 lt_prog_compiler_static='-Bstatic' 9668 ;; 9669 ccc*) 9670 lt_prog_compiler_wl='-Wl,' 9671 # All Alpha code is PIC. 9672 lt_prog_compiler_static='-non_shared' 9673 ;; 9674 xl* | bgxl* | bgf* | mpixl*) 9675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9676 lt_prog_compiler_wl='-Wl,' 9677 lt_prog_compiler_pic='-qpic' 9678 lt_prog_compiler_static='-qstaticlink' 9679 ;; 9680 *) 9681 case `$CC -V 2>&1 | sed 5q` in 9682 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9683 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9684 lt_prog_compiler_pic='-KPIC' 9685 lt_prog_compiler_static='-Bstatic' 9686 lt_prog_compiler_wl='' 9687 ;; 9688 *Sun\ F* | *Sun*Fortran*) 9689 lt_prog_compiler_pic='-KPIC' 9690 lt_prog_compiler_static='-Bstatic' 9691 lt_prog_compiler_wl='-Qoption ld ' 9692 ;; 9693 *Sun\ C*) 9694 # Sun C 5.9 9695 lt_prog_compiler_pic='-KPIC' 9696 lt_prog_compiler_static='-Bstatic' 9697 lt_prog_compiler_wl='-Wl,' 9698 ;; 9699 *Intel*\ [CF]*Compiler*) 9700 lt_prog_compiler_wl='-Wl,' 9701 lt_prog_compiler_pic='-fPIC' 9702 lt_prog_compiler_static='-static' 9703 ;; 9704 *Portland\ Group*) 9705 lt_prog_compiler_wl='-Wl,' 9706 lt_prog_compiler_pic='-fpic' 9707 lt_prog_compiler_static='-Bstatic' 9708 ;; 9709 esac 9710 ;; 9711 esac 9712 ;; 9713 9714 newsos6) 9715 lt_prog_compiler_pic='-KPIC' 9716 lt_prog_compiler_static='-Bstatic' 9717 ;; 9718 9719 *nto* | *qnx*) 9720 # QNX uses GNU C++, but need to define -shared option too, otherwise 9721 # it will coredump. 9722 lt_prog_compiler_pic='-fPIC -shared' 9723 ;; 9724 9725 osf3* | osf4* | osf5*) 9726 lt_prog_compiler_wl='-Wl,' 9727 # All OSF/1 code is PIC. 9728 lt_prog_compiler_static='-non_shared' 9729 ;; 9730 9731 rdos*) 9732 lt_prog_compiler_static='-non_shared' 9733 ;; 9734 9735 solaris*) 9736 lt_prog_compiler_pic='-KPIC' 9737 lt_prog_compiler_static='-Bstatic' 9738 case $cc_basename in 9739 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9740 lt_prog_compiler_wl='-Qoption ld ';; 9741 *) 9742 lt_prog_compiler_wl='-Wl,';; 9743 esac 9744 ;; 9745 9746 sunos4*) 9747 lt_prog_compiler_wl='-Qoption ld ' 9748 lt_prog_compiler_pic='-PIC' 9749 lt_prog_compiler_static='-Bstatic' 9750 ;; 9751 9752 sysv4 | sysv4.2uw2* | sysv4.3*) 9753 lt_prog_compiler_wl='-Wl,' 9754 lt_prog_compiler_pic='-KPIC' 9755 lt_prog_compiler_static='-Bstatic' 9756 ;; 9757 9758 sysv4*MP*) 9759 if test -d /usr/nec; then 9760 lt_prog_compiler_pic='-Kconform_pic' 9761 lt_prog_compiler_static='-Bstatic' 9762 fi 9763 ;; 9764 9765 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9766 lt_prog_compiler_wl='-Wl,' 9767 lt_prog_compiler_pic='-KPIC' 9768 lt_prog_compiler_static='-Bstatic' 9769 ;; 9770 9771 unicos*) 9772 lt_prog_compiler_wl='-Wl,' 9773 lt_prog_compiler_can_build_shared=no 9774 ;; 9775 9776 uts4*) 9777 lt_prog_compiler_pic='-pic' 9778 lt_prog_compiler_static='-Bstatic' 9779 ;; 9780 9781 *) 9782 lt_prog_compiler_can_build_shared=no 9783 ;; 9784 esac 9785 fi 9786 9787case $host_os in 9788 # For platforms that do not support PIC, -DPIC is meaningless: 9789 *djgpp*) 9790 lt_prog_compiler_pic= 9791 ;; 9792 *) 9793 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9794 ;; 9795esac 9796 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9798$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9799if ${lt_cv_prog_compiler_pic+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9803fi 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9805$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9806lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9807 9808# 9809# Check to make sure the PIC flag actually works. 9810# 9811if test -n "$lt_prog_compiler_pic"; then 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9813$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9814if ${lt_cv_prog_compiler_pic_works+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816else 9817 lt_cv_prog_compiler_pic_works=no 9818 ac_outfile=conftest.$ac_objext 9819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9820 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9821 # Insert the option either (1) after the last *FLAGS variable, or 9822 # (2) before a word containing "conftest.", or (3) at the end. 9823 # Note that $ac_compile itself does not contain backslashes and begins 9824 # with a dollar sign (not a hyphen), so the echo should work correctly. 9825 # The option is referenced via a variable to avoid confusing sed. 9826 lt_compile=`echo "$ac_compile" | $SED \ 9827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9829 -e 's:$: $lt_compiler_flag:'` 9830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9831 (eval "$lt_compile" 2>conftest.err) 9832 ac_status=$? 9833 cat conftest.err >&5 9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9835 if (exit $ac_status) && test -s "$ac_outfile"; then 9836 # The compiler can only warn and ignore the option if not recognized 9837 # So say no if there are warnings other than the usual output. 9838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9841 lt_cv_prog_compiler_pic_works=yes 9842 fi 9843 fi 9844 $RM conftest* 9845 9846fi 9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9848$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9849 9850if test yes = "$lt_cv_prog_compiler_pic_works"; then 9851 case $lt_prog_compiler_pic in 9852 "" | " "*) ;; 9853 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9854 esac 9855else 9856 lt_prog_compiler_pic= 9857 lt_prog_compiler_can_build_shared=no 9858fi 9859 9860fi 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872# 9873# Check to make sure the static flag actually works. 9874# 9875wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9877$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9878if ${lt_cv_prog_compiler_static_works+:} false; then : 9879 $as_echo_n "(cached) " >&6 9880else 9881 lt_cv_prog_compiler_static_works=no 9882 save_LDFLAGS=$LDFLAGS 9883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9884 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9886 # The linker can only warn and ignore the option if not recognized 9887 # So say no if there are warnings 9888 if test -s conftest.err; then 9889 # Append any errors to the config.log. 9890 cat conftest.err 1>&5 9891 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9893 if diff conftest.exp conftest.er2 >/dev/null; then 9894 lt_cv_prog_compiler_static_works=yes 9895 fi 9896 else 9897 lt_cv_prog_compiler_static_works=yes 9898 fi 9899 fi 9900 $RM -r conftest* 9901 LDFLAGS=$save_LDFLAGS 9902 9903fi 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9905$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9906 9907if test yes = "$lt_cv_prog_compiler_static_works"; then 9908 : 9909else 9910 lt_prog_compiler_static= 9911fi 9912 9913 9914 9915 9916 9917 9918 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9920$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9921if ${lt_cv_prog_compiler_c_o+:} false; then : 9922 $as_echo_n "(cached) " >&6 9923else 9924 lt_cv_prog_compiler_c_o=no 9925 $RM -r conftest 2>/dev/null 9926 mkdir conftest 9927 cd conftest 9928 mkdir out 9929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9930 9931 lt_compiler_flag="-o out/conftest2.$ac_objext" 9932 # Insert the option either (1) after the last *FLAGS variable, or 9933 # (2) before a word containing "conftest.", or (3) at the end. 9934 # Note that $ac_compile itself does not contain backslashes and begins 9935 # with a dollar sign (not a hyphen), so the echo should work correctly. 9936 lt_compile=`echo "$ac_compile" | $SED \ 9937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9939 -e 's:$: $lt_compiler_flag:'` 9940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9941 (eval "$lt_compile" 2>out/conftest.err) 9942 ac_status=$? 9943 cat out/conftest.err >&5 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9946 then 9947 # The compiler can only warn and ignore the option if not recognized 9948 # So say no if there are warnings 9949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9952 lt_cv_prog_compiler_c_o=yes 9953 fi 9954 fi 9955 chmod u+w . 2>&5 9956 $RM conftest* 9957 # SGI C++ compiler will create directory out/ii_files/ for 9958 # template instantiation 9959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9960 $RM out/* && rmdir out 9961 cd .. 9962 $RM -r conftest 9963 $RM conftest* 9964 9965fi 9966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9967$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9968 9969 9970 9971 9972 9973 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9975$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9976if ${lt_cv_prog_compiler_c_o+:} false; then : 9977 $as_echo_n "(cached) " >&6 9978else 9979 lt_cv_prog_compiler_c_o=no 9980 $RM -r conftest 2>/dev/null 9981 mkdir conftest 9982 cd conftest 9983 mkdir out 9984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9985 9986 lt_compiler_flag="-o out/conftest2.$ac_objext" 9987 # Insert the option either (1) after the last *FLAGS variable, or 9988 # (2) before a word containing "conftest.", or (3) at the end. 9989 # Note that $ac_compile itself does not contain backslashes and begins 9990 # with a dollar sign (not a hyphen), so the echo should work correctly. 9991 lt_compile=`echo "$ac_compile" | $SED \ 9992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9994 -e 's:$: $lt_compiler_flag:'` 9995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9996 (eval "$lt_compile" 2>out/conftest.err) 9997 ac_status=$? 9998 cat out/conftest.err >&5 9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10001 then 10002 # The compiler can only warn and ignore the option if not recognized 10003 # So say no if there are warnings 10004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10007 lt_cv_prog_compiler_c_o=yes 10008 fi 10009 fi 10010 chmod u+w . 2>&5 10011 $RM conftest* 10012 # SGI C++ compiler will create directory out/ii_files/ for 10013 # template instantiation 10014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10015 $RM out/* && rmdir out 10016 cd .. 10017 $RM -r conftest 10018 $RM conftest* 10019 10020fi 10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10022$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10023 10024 10025 10026 10027hard_links=nottested 10028if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10029 # do not overwrite the value of need_locks provided by the user 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10031$as_echo_n "checking if we can lock with hard links... " >&6; } 10032 hard_links=yes 10033 $RM conftest* 10034 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10035 touch conftest.a 10036 ln conftest.a conftest.b 2>&5 || hard_links=no 10037 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10039$as_echo "$hard_links" >&6; } 10040 if test no = "$hard_links"; then 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10042$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10043 need_locks=warn 10044 fi 10045else 10046 need_locks=no 10047fi 10048 10049 10050 10051 10052 10053 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10055$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10056 10057 runpath_var= 10058 allow_undefined_flag= 10059 always_export_symbols=no 10060 archive_cmds= 10061 archive_expsym_cmds= 10062 compiler_needs_object=no 10063 enable_shared_with_static_runtimes=no 10064 export_dynamic_flag_spec= 10065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10066 hardcode_automatic=no 10067 hardcode_direct=no 10068 hardcode_direct_absolute=no 10069 hardcode_libdir_flag_spec= 10070 hardcode_libdir_separator= 10071 hardcode_minus_L=no 10072 hardcode_shlibpath_var=unsupported 10073 inherit_rpath=no 10074 link_all_deplibs=unknown 10075 module_cmds= 10076 module_expsym_cmds= 10077 old_archive_from_new_cmds= 10078 old_archive_from_expsyms_cmds= 10079 thread_safe_flag_spec= 10080 whole_archive_flag_spec= 10081 # include_expsyms should be a list of space-separated symbols to be *always* 10082 # included in the symbol list 10083 include_expsyms= 10084 # exclude_expsyms can be an extended regexp of symbols to exclude 10085 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10086 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10087 # as well as any symbol that contains 'd'. 10088 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10090 # platforms (ab)use it in PIC code, but their linkers get confused if 10091 # the symbol is explicitly referenced. Since portable code cannot 10092 # rely on this symbol name, it's probably fine to never include it in 10093 # preloaded symbol tables. 10094 # Exclude shared library initialization/finalization symbols. 10095 extract_expsyms_cmds= 10096 10097 case $host_os in 10098 cygwin* | mingw* | pw32* | cegcc*) 10099 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10100 # When not using gcc, we currently assume that we are using 10101 # Microsoft Visual C++. 10102 if test yes != "$GCC"; then 10103 with_gnu_ld=no 10104 fi 10105 ;; 10106 interix*) 10107 # we just hope/assume this is gcc and not c89 (= MSVC++) 10108 with_gnu_ld=yes 10109 ;; 10110 openbsd* | bitrig*) 10111 with_gnu_ld=no 10112 ;; 10113 linux* | k*bsd*-gnu | gnu*) 10114 link_all_deplibs=no 10115 ;; 10116 esac 10117 10118 ld_shlibs=yes 10119 10120 # On some targets, GNU ld is compatible enough with the native linker 10121 # that we're better off using the native interface for both. 10122 lt_use_gnu_ld_interface=no 10123 if test yes = "$with_gnu_ld"; then 10124 case $host_os in 10125 aix*) 10126 # The AIX port of GNU ld has always aspired to compatibility 10127 # with the native linker. However, as the warning in the GNU ld 10128 # block says, versions before 2.19.5* couldn't really create working 10129 # shared libraries, regardless of the interface used. 10130 case `$LD -v 2>&1` in 10131 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10132 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10133 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10134 *) 10135 lt_use_gnu_ld_interface=yes 10136 ;; 10137 esac 10138 ;; 10139 *) 10140 lt_use_gnu_ld_interface=yes 10141 ;; 10142 esac 10143 fi 10144 10145 if test yes = "$lt_use_gnu_ld_interface"; then 10146 # If archive_cmds runs LD, not CC, wlarc should be empty 10147 wlarc='$wl' 10148 10149 # Set some defaults for GNU ld with shared library support. These 10150 # are reset later if shared libraries are not supported. Putting them 10151 # here allows them to be overridden if necessary. 10152 runpath_var=LD_RUN_PATH 10153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10154 export_dynamic_flag_spec='$wl--export-dynamic' 10155 # ancient GNU ld didn't support --whole-archive et. al. 10156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10157 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10158 else 10159 whole_archive_flag_spec= 10160 fi 10161 supports_anon_versioning=no 10162 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10163 *GNU\ gold*) supports_anon_versioning=yes ;; 10164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10167 *\ 2.11.*) ;; # other 2.11 versions 10168 *) supports_anon_versioning=yes ;; 10169 esac 10170 10171 # See if GNU ld supports shared libraries. 10172 case $host_os in 10173 aix[3-9]*) 10174 # On AIX/PPC, the GNU linker is very broken 10175 if test ia64 != "$host_cpu"; then 10176 ld_shlibs=no 10177 cat <<_LT_EOF 1>&2 10178 10179*** Warning: the GNU linker, at least up to release 2.19, is reported 10180*** to be unable to reliably create shared libraries on AIX. 10181*** Therefore, libtool is disabling shared libraries support. If you 10182*** really care for shared libraries, you may want to install binutils 10183*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10184*** You will then need to restart the configuration process. 10185 10186_LT_EOF 10187 fi 10188 ;; 10189 10190 amigaos*) 10191 case $host_cpu in 10192 powerpc) 10193 # see comment about AmigaOS4 .so support 10194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10195 archive_expsym_cmds='' 10196 ;; 10197 m68k) 10198 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)' 10199 hardcode_libdir_flag_spec='-L$libdir' 10200 hardcode_minus_L=yes 10201 ;; 10202 esac 10203 ;; 10204 10205 beos*) 10206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10207 allow_undefined_flag=unsupported 10208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10209 # support --undefined. This deserves some investigation. FIXME 10210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10211 else 10212 ld_shlibs=no 10213 fi 10214 ;; 10215 10216 cygwin* | mingw* | pw32* | cegcc*) 10217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10218 # as there is no search path for DLLs. 10219 hardcode_libdir_flag_spec='-L$libdir' 10220 export_dynamic_flag_spec='$wl--export-all-symbols' 10221 allow_undefined_flag=unsupported 10222 always_export_symbols=no 10223 enable_shared_with_static_runtimes=yes 10224 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' 10225 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10226 10227 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10229 # If the export-symbols file already is a .def file, use it as 10230 # is; otherwise, prepend EXPORTS... 10231 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10232 cp $export_symbols $output_objdir/$soname.def; 10233 else 10234 echo EXPORTS > $output_objdir/$soname.def; 10235 cat $export_symbols >> $output_objdir/$soname.def; 10236 fi~ 10237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10238 else 10239 ld_shlibs=no 10240 fi 10241 ;; 10242 10243 haiku*) 10244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10245 link_all_deplibs=yes 10246 ;; 10247 10248 os2*) 10249 hardcode_libdir_flag_spec='-L$libdir' 10250 hardcode_minus_L=yes 10251 allow_undefined_flag=unsupported 10252 shrext_cmds=.dll 10253 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10254 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10255 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10256 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10257 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10259 emximp -o $lib $output_objdir/$libname.def' 10260 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10261 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10262 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10263 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10264 prefix_cmds="$SED"~ 10265 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10266 prefix_cmds="$prefix_cmds -e 1d"; 10267 fi~ 10268 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10269 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10271 emximp -o $lib $output_objdir/$libname.def' 10272 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10273 enable_shared_with_static_runtimes=yes 10274 ;; 10275 10276 interix[3-9]*) 10277 hardcode_direct=no 10278 hardcode_shlibpath_var=no 10279 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10280 export_dynamic_flag_spec='$wl-E' 10281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10282 # Instead, shared libraries are loaded at an image base (0x10000000 by 10283 # default) and relocated if they conflict, which is a slow very memory 10284 # consuming and fragmenting process. To avoid this, we pick a random, 10285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10286 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10288 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' 10289 ;; 10290 10291 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10292 tmp_diet=no 10293 if test linux-dietlibc = "$host_os"; then 10294 case $cc_basename in 10295 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10296 esac 10297 fi 10298 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10299 && test no = "$tmp_diet" 10300 then 10301 tmp_addflag=' $pic_flag' 10302 tmp_sharedflag='-shared' 10303 case $cc_basename,$host_cpu in 10304 pgcc*) # Portland Group C compiler 10305 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' 10306 tmp_addflag=' $pic_flag' 10307 ;; 10308 pgf77* | pgf90* | pgf95* | pgfortran*) 10309 # Portland Group f77 and f90 compilers 10310 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' 10311 tmp_addflag=' $pic_flag -Mnomain' ;; 10312 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10313 tmp_addflag=' -i_dynamic' ;; 10314 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10315 tmp_addflag=' -i_dynamic -nofor_main' ;; 10316 ifc* | ifort*) # Intel Fortran compiler 10317 tmp_addflag=' -nofor_main' ;; 10318 lf95*) # Lahey Fortran 8.1 10319 whole_archive_flag_spec= 10320 tmp_sharedflag='--shared' ;; 10321 nagfor*) # NAGFOR 5.3 10322 tmp_sharedflag='-Wl,-shared' ;; 10323 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10324 tmp_sharedflag='-qmkshrobj' 10325 tmp_addflag= ;; 10326 nvcc*) # Cuda Compiler Driver 2.2 10327 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' 10328 compiler_needs_object=yes 10329 ;; 10330 esac 10331 case `$CC -V 2>&1 | sed 5q` in 10332 *Sun\ C*) # Sun C 5.9 10333 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' 10334 compiler_needs_object=yes 10335 tmp_sharedflag='-G' ;; 10336 *Sun\ F*) # Sun Fortran 8.3 10337 tmp_sharedflag='-G' ;; 10338 esac 10339 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10340 10341 if test yes = "$supports_anon_versioning"; then 10342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10344 echo "local: *; };" >> $output_objdir/$libname.ver~ 10345 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10346 fi 10347 10348 case $cc_basename in 10349 tcc*) 10350 export_dynamic_flag_spec='-rdynamic' 10351 ;; 10352 xlf* | bgf* | bgxlf* | mpixlf*) 10353 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10354 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10356 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10357 if test yes = "$supports_anon_versioning"; then 10358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10360 echo "local: *; };" >> $output_objdir/$libname.ver~ 10361 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10362 fi 10363 ;; 10364 esac 10365 else 10366 ld_shlibs=no 10367 fi 10368 ;; 10369 10370 netbsd* | netbsdelf*-gnu) 10371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10372 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10373 wlarc= 10374 else 10375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10376 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10377 fi 10378 ;; 10379 10380 solaris*) 10381 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10382 ld_shlibs=no 10383 cat <<_LT_EOF 1>&2 10384 10385*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10386*** create shared libraries on Solaris systems. Therefore, libtool 10387*** is disabling shared libraries support. We urge you to upgrade GNU 10388*** binutils to release 2.9.1 or newer. Another option is to modify 10389*** your PATH or compiler configuration so that the native linker is 10390*** used, and then restart. 10391 10392_LT_EOF 10393 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10394 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10395 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10396 else 10397 ld_shlibs=no 10398 fi 10399 ;; 10400 10401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10402 case `$LD -v 2>&1` in 10403 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10404 ld_shlibs=no 10405 cat <<_LT_EOF 1>&2 10406 10407*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10408*** reliably create shared libraries on SCO systems. Therefore, libtool 10409*** is disabling shared libraries support. We urge you to upgrade GNU 10410*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10411*** your PATH or compiler configuration so that the native linker is 10412*** used, and then restart. 10413 10414_LT_EOF 10415 ;; 10416 *) 10417 # For security reasons, it is highly recommended that you always 10418 # use absolute paths for naming shared libraries, and exclude the 10419 # DT_RUNPATH tag from executables and libraries. But doing so 10420 # requires that you compile everything twice, which is a pain. 10421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10422 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10425 else 10426 ld_shlibs=no 10427 fi 10428 ;; 10429 esac 10430 ;; 10431 10432 sunos4*) 10433 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10434 wlarc= 10435 hardcode_direct=yes 10436 hardcode_shlibpath_var=no 10437 ;; 10438 10439 *) 10440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10442 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10443 else 10444 ld_shlibs=no 10445 fi 10446 ;; 10447 esac 10448 10449 if test no = "$ld_shlibs"; then 10450 runpath_var= 10451 hardcode_libdir_flag_spec= 10452 export_dynamic_flag_spec= 10453 whole_archive_flag_spec= 10454 fi 10455 else 10456 # PORTME fill in a description of your system's linker (not GNU ld) 10457 case $host_os in 10458 aix3*) 10459 allow_undefined_flag=unsupported 10460 always_export_symbols=yes 10461 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' 10462 # Note: this linker hardcodes the directories in LIBPATH if there 10463 # are no directories specified by -L. 10464 hardcode_minus_L=yes 10465 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10466 # Neither direct hardcoding nor static linking is supported with a 10467 # broken collect2. 10468 hardcode_direct=unsupported 10469 fi 10470 ;; 10471 10472 aix[4-9]*) 10473 if test ia64 = "$host_cpu"; then 10474 # On IA64, the linker does run time linking by default, so we don't 10475 # have to do anything special. 10476 aix_use_runtimelinking=no 10477 exp_sym_flag='-Bexport' 10478 no_entry_flag= 10479 else 10480 # If we're using GNU nm, then we don't want the "-C" option. 10481 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10482 # Without the "-l" option, or with the "-B" option, AIX nm treats 10483 # weak defined symbols like other global defined symbols, whereas 10484 # GNU nm marks them as "W". 10485 # While the 'weak' keyword is ignored in the Export File, we need 10486 # it in the Import File for the 'aix-soname' feature, so we have 10487 # to replace the "-B" option with "-P" for AIX nm. 10488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10489 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' 10490 else 10491 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 == "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' 10492 fi 10493 aix_use_runtimelinking=no 10494 10495 # Test if we are trying to use run time linking or normal 10496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10497 # have runtime linking enabled, and use it for executables. 10498 # For shared libraries, we enable/disable runtime linking 10499 # depending on the kind of the shared library created - 10500 # when "with_aix_soname,aix_use_runtimelinking" is: 10501 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10502 # "aix,yes" lib.so shared, rtl:yes, for executables 10503 # lib.a static archive 10504 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10505 # lib.a(lib.so.V) shared, rtl:no, for executables 10506 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10507 # lib.a(lib.so.V) shared, rtl:no 10508 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10509 # lib.a static archive 10510 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10511 for ld_flag in $LDFLAGS; do 10512 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10513 aix_use_runtimelinking=yes 10514 break 10515 fi 10516 done 10517 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10518 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10519 # so we don't have lib.a shared libs to link our executables. 10520 # We have to force runtime linking in this case. 10521 aix_use_runtimelinking=yes 10522 LDFLAGS="$LDFLAGS -Wl,-brtl" 10523 fi 10524 ;; 10525 esac 10526 10527 exp_sym_flag='-bexport' 10528 no_entry_flag='-bnoentry' 10529 fi 10530 10531 # When large executables or shared objects are built, AIX ld can 10532 # have problems creating the table of contents. If linking a library 10533 # or program results in "error TOC overflow" add -mminimal-toc to 10534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10536 10537 archive_cmds='' 10538 hardcode_direct=yes 10539 hardcode_direct_absolute=yes 10540 hardcode_libdir_separator=':' 10541 link_all_deplibs=yes 10542 file_list_spec='$wl-f,' 10543 case $with_aix_soname,$aix_use_runtimelinking in 10544 aix,*) ;; # traditional, no import file 10545 svr4,* | *,yes) # use import file 10546 # The Import File defines what to hardcode. 10547 hardcode_direct=no 10548 hardcode_direct_absolute=no 10549 ;; 10550 esac 10551 10552 if test yes = "$GCC"; then 10553 case $host_os in aix4.[012]|aix4.[012].*) 10554 # We only want to do this on AIX 4.2 and lower, the check 10555 # below for broken collect2 doesn't work under 4.3+ 10556 collect2name=`$CC -print-prog-name=collect2` 10557 if test -f "$collect2name" && 10558 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10559 then 10560 # We have reworked collect2 10561 : 10562 else 10563 # We have old collect2 10564 hardcode_direct=unsupported 10565 # It fails to find uninstalled libraries when the uninstalled 10566 # path is not listed in the libpath. Setting hardcode_minus_L 10567 # to unsupported forces relinking 10568 hardcode_minus_L=yes 10569 hardcode_libdir_flag_spec='-L$libdir' 10570 hardcode_libdir_separator= 10571 fi 10572 ;; 10573 esac 10574 shared_flag='-shared' 10575 if test yes = "$aix_use_runtimelinking"; then 10576 shared_flag="$shared_flag "'$wl-G' 10577 fi 10578 # Need to ensure runtime linking is disabled for the traditional 10579 # shared library, or the linker may eventually find shared libraries 10580 # /with/ Import File - we do not want to mix them. 10581 shared_flag_aix='-shared' 10582 shared_flag_svr4='-shared $wl-G' 10583 else 10584 # not using gcc 10585 if test ia64 = "$host_cpu"; then 10586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10587 # chokes on -Wl,-G. The following line is correct: 10588 shared_flag='-G' 10589 else 10590 if test yes = "$aix_use_runtimelinking"; then 10591 shared_flag='$wl-G' 10592 else 10593 shared_flag='$wl-bM:SRE' 10594 fi 10595 shared_flag_aix='$wl-bM:SRE' 10596 shared_flag_svr4='$wl-G' 10597 fi 10598 fi 10599 10600 export_dynamic_flag_spec='$wl-bexpall' 10601 # It seems that -bexpall does not export symbols beginning with 10602 # underscore (_), so it is better to generate a list of symbols to export. 10603 always_export_symbols=yes 10604 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10605 # Warning - without using the other runtime loading flags (-brtl), 10606 # -berok will link without error, but may produce a broken library. 10607 allow_undefined_flag='-berok' 10608 # Determine the default libpath from the value encoded in an 10609 # empty executable. 10610 if test set = "${lt_cv_aix_libpath+set}"; then 10611 aix_libpath=$lt_cv_aix_libpath 10612else 10613 if ${lt_cv_aix_libpath_+:} false; then : 10614 $as_echo_n "(cached) " >&6 10615else 10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618 10619int 10620main () 10621{ 10622 10623 ; 10624 return 0; 10625} 10626_ACEOF 10627if ac_fn_c_try_link "$LINENO"; then : 10628 10629 lt_aix_libpath_sed=' 10630 /Import File Strings/,/^$/ { 10631 /^0/ { 10632 s/^0 *\([^ ]*\) *$/\1/ 10633 p 10634 } 10635 }' 10636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10637 # Check for a 64-bit object if we didn't find anything. 10638 if test -z "$lt_cv_aix_libpath_"; then 10639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10640 fi 10641fi 10642rm -f core conftest.err conftest.$ac_objext \ 10643 conftest$ac_exeext conftest.$ac_ext 10644 if test -z "$lt_cv_aix_libpath_"; then 10645 lt_cv_aix_libpath_=/usr/lib:/lib 10646 fi 10647 10648fi 10649 10650 aix_libpath=$lt_cv_aix_libpath_ 10651fi 10652 10653 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10654 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 10655 else 10656 if test ia64 = "$host_cpu"; then 10657 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10658 allow_undefined_flag="-z nodefs" 10659 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" 10660 else 10661 # Determine the default libpath from the value encoded in an 10662 # empty executable. 10663 if test set = "${lt_cv_aix_libpath+set}"; then 10664 aix_libpath=$lt_cv_aix_libpath 10665else 10666 if ${lt_cv_aix_libpath_+:} false; then : 10667 $as_echo_n "(cached) " >&6 10668else 10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10670/* end confdefs.h. */ 10671 10672int 10673main () 10674{ 10675 10676 ; 10677 return 0; 10678} 10679_ACEOF 10680if ac_fn_c_try_link "$LINENO"; then : 10681 10682 lt_aix_libpath_sed=' 10683 /Import File Strings/,/^$/ { 10684 /^0/ { 10685 s/^0 *\([^ ]*\) *$/\1/ 10686 p 10687 } 10688 }' 10689 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10690 # Check for a 64-bit object if we didn't find anything. 10691 if test -z "$lt_cv_aix_libpath_"; then 10692 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10693 fi 10694fi 10695rm -f core conftest.err conftest.$ac_objext \ 10696 conftest$ac_exeext conftest.$ac_ext 10697 if test -z "$lt_cv_aix_libpath_"; then 10698 lt_cv_aix_libpath_=/usr/lib:/lib 10699 fi 10700 10701fi 10702 10703 aix_libpath=$lt_cv_aix_libpath_ 10704fi 10705 10706 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10707 # Warning - without using the other run time loading flags, 10708 # -berok will link without error, but may produce a broken library. 10709 no_undefined_flag=' $wl-bernotok' 10710 allow_undefined_flag=' $wl-berok' 10711 if test yes = "$with_gnu_ld"; then 10712 # We only use this code for GNU lds that support --whole-archive. 10713 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10714 else 10715 # Exported symbols can be pulled into shared objects from archives 10716 whole_archive_flag_spec='$convenience' 10717 fi 10718 archive_cmds_need_lc=yes 10719 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10720 # -brtl affects multiple linker settings, -berok does not and is overridden later 10721 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10722 if test svr4 != "$with_aix_soname"; then 10723 # This is similar to how AIX traditionally builds its shared libraries. 10724 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' 10725 fi 10726 if test aix != "$with_aix_soname"; then 10727 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' 10728 else 10729 # used by -dlpreopen to get the symbols 10730 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10731 fi 10732 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10733 fi 10734 fi 10735 ;; 10736 10737 amigaos*) 10738 case $host_cpu in 10739 powerpc) 10740 # see comment about AmigaOS4 .so support 10741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10742 archive_expsym_cmds='' 10743 ;; 10744 m68k) 10745 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)' 10746 hardcode_libdir_flag_spec='-L$libdir' 10747 hardcode_minus_L=yes 10748 ;; 10749 esac 10750 ;; 10751 10752 bsdi[45]*) 10753 export_dynamic_flag_spec=-rdynamic 10754 ;; 10755 10756 cygwin* | mingw* | pw32* | cegcc*) 10757 # When not using gcc, we currently assume that we are using 10758 # Microsoft Visual C++. 10759 # hardcode_libdir_flag_spec is actually meaningless, as there is 10760 # no search path for DLLs. 10761 case $cc_basename in 10762 cl*) 10763 # Native MSVC 10764 hardcode_libdir_flag_spec=' ' 10765 allow_undefined_flag=unsupported 10766 always_export_symbols=yes 10767 file_list_spec='@' 10768 # Tell ltmain to make .lib files, not .a files. 10769 libext=lib 10770 # Tell ltmain to make .dll files, not .so files. 10771 shrext_cmds=.dll 10772 # FIXME: Setting linknames here is a bad hack. 10773 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10774 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10775 cp "$export_symbols" "$output_objdir/$soname.def"; 10776 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10777 else 10778 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10779 fi~ 10780 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10781 linknames=' 10782 # The linker will not automatically build a static lib if we build a DLL. 10783 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10784 enable_shared_with_static_runtimes=yes 10785 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10786 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10787 # Don't use ranlib 10788 old_postinstall_cmds='chmod 644 $oldlib' 10789 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10790 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10791 case $lt_outputfile in 10792 *.exe|*.EXE) ;; 10793 *) 10794 lt_outputfile=$lt_outputfile.exe 10795 lt_tool_outputfile=$lt_tool_outputfile.exe 10796 ;; 10797 esac~ 10798 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10799 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10800 $RM "$lt_outputfile.manifest"; 10801 fi' 10802 ;; 10803 *) 10804 # Assume MSVC wrapper 10805 hardcode_libdir_flag_spec=' ' 10806 allow_undefined_flag=unsupported 10807 # Tell ltmain to make .lib files, not .a files. 10808 libext=lib 10809 # Tell ltmain to make .dll files, not .so files. 10810 shrext_cmds=.dll 10811 # FIXME: Setting linknames here is a bad hack. 10812 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10813 # The linker will automatically build a .lib file if we build a DLL. 10814 old_archive_from_new_cmds='true' 10815 # FIXME: Should let the user specify the lib program. 10816 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10817 enable_shared_with_static_runtimes=yes 10818 ;; 10819 esac 10820 ;; 10821 10822 darwin* | rhapsody*) 10823 10824 10825 archive_cmds_need_lc=no 10826 hardcode_direct=no 10827 hardcode_automatic=yes 10828 hardcode_shlibpath_var=unsupported 10829 if test yes = "$lt_cv_ld_force_load"; then 10830 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\"`' 10831 10832 else 10833 whole_archive_flag_spec='' 10834 fi 10835 link_all_deplibs=yes 10836 allow_undefined_flag=$_lt_dar_allow_undefined 10837 case $cc_basename in 10838 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10839 *) _lt_dar_can_shared=$GCC ;; 10840 esac 10841 if test yes = "$_lt_dar_can_shared"; then 10842 output_verbose_link_cmd=func_echo_all 10843 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10844 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10845 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" 10846 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" 10847 10848 else 10849 ld_shlibs=no 10850 fi 10851 10852 ;; 10853 10854 dgux*) 10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10856 hardcode_libdir_flag_spec='-L$libdir' 10857 hardcode_shlibpath_var=no 10858 ;; 10859 10860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10861 # support. Future versions do this automatically, but an explicit c++rt0.o 10862 # does not break anything, and helps significantly (at the cost of a little 10863 # extra space). 10864 freebsd2.2*) 10865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10866 hardcode_libdir_flag_spec='-R$libdir' 10867 hardcode_direct=yes 10868 hardcode_shlibpath_var=no 10869 ;; 10870 10871 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10872 freebsd2.*) 10873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10874 hardcode_direct=yes 10875 hardcode_minus_L=yes 10876 hardcode_shlibpath_var=no 10877 ;; 10878 10879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10880 freebsd* | dragonfly*) 10881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10882 hardcode_libdir_flag_spec='-R$libdir' 10883 hardcode_direct=yes 10884 hardcode_shlibpath_var=no 10885 ;; 10886 10887 hpux9*) 10888 if test yes = "$GCC"; then 10889 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' 10890 else 10891 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' 10892 fi 10893 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10894 hardcode_libdir_separator=: 10895 hardcode_direct=yes 10896 10897 # hardcode_minus_L: Not really in the search PATH, 10898 # but as the default location of the library. 10899 hardcode_minus_L=yes 10900 export_dynamic_flag_spec='$wl-E' 10901 ;; 10902 10903 hpux10*) 10904 if test yes,no = "$GCC,$with_gnu_ld"; then 10905 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10906 else 10907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10908 fi 10909 if test no = "$with_gnu_ld"; then 10910 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10911 hardcode_libdir_separator=: 10912 hardcode_direct=yes 10913 hardcode_direct_absolute=yes 10914 export_dynamic_flag_spec='$wl-E' 10915 # hardcode_minus_L: Not really in the search PATH, 10916 # but as the default location of the library. 10917 hardcode_minus_L=yes 10918 fi 10919 ;; 10920 10921 hpux11*) 10922 if test yes,no = "$GCC,$with_gnu_ld"; then 10923 case $host_cpu in 10924 hppa*64*) 10925 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10926 ;; 10927 ia64*) 10928 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10929 ;; 10930 *) 10931 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10932 ;; 10933 esac 10934 else 10935 case $host_cpu in 10936 hppa*64*) 10937 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10938 ;; 10939 ia64*) 10940 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10941 ;; 10942 *) 10943 10944 # Older versions of the 11.00 compiler do not understand -b yet 10945 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10947$as_echo_n "checking if $CC understands -b... " >&6; } 10948if ${lt_cv_prog_compiler__b+:} false; then : 10949 $as_echo_n "(cached) " >&6 10950else 10951 lt_cv_prog_compiler__b=no 10952 save_LDFLAGS=$LDFLAGS 10953 LDFLAGS="$LDFLAGS -b" 10954 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10956 # The linker can only warn and ignore the option if not recognized 10957 # So say no if there are warnings 10958 if test -s conftest.err; then 10959 # Append any errors to the config.log. 10960 cat conftest.err 1>&5 10961 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10963 if diff conftest.exp conftest.er2 >/dev/null; then 10964 lt_cv_prog_compiler__b=yes 10965 fi 10966 else 10967 lt_cv_prog_compiler__b=yes 10968 fi 10969 fi 10970 $RM -r conftest* 10971 LDFLAGS=$save_LDFLAGS 10972 10973fi 10974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10975$as_echo "$lt_cv_prog_compiler__b" >&6; } 10976 10977if test yes = "$lt_cv_prog_compiler__b"; then 10978 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10979else 10980 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10981fi 10982 10983 ;; 10984 esac 10985 fi 10986 if test no = "$with_gnu_ld"; then 10987 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10988 hardcode_libdir_separator=: 10989 10990 case $host_cpu in 10991 hppa*64*|ia64*) 10992 hardcode_direct=no 10993 hardcode_shlibpath_var=no 10994 ;; 10995 *) 10996 hardcode_direct=yes 10997 hardcode_direct_absolute=yes 10998 export_dynamic_flag_spec='$wl-E' 10999 11000 # hardcode_minus_L: Not really in the search PATH, 11001 # but as the default location of the library. 11002 hardcode_minus_L=yes 11003 ;; 11004 esac 11005 fi 11006 ;; 11007 11008 irix5* | irix6* | nonstopux*) 11009 if test yes = "$GCC"; then 11010 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' 11011 # Try to use the -exported_symbol ld option, if it does not 11012 # work, assume that -exports_file does not work either and 11013 # implicitly export all symbols. 11014 # This should be the same for all languages, so no per-tag cache variable. 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11016$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11017if ${lt_cv_irix_exported_symbol+:} false; then : 11018 $as_echo_n "(cached) " >&6 11019else 11020 save_LDFLAGS=$LDFLAGS 11021 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024int foo (void) { return 0; } 11025_ACEOF 11026if ac_fn_c_try_link "$LINENO"; then : 11027 lt_cv_irix_exported_symbol=yes 11028else 11029 lt_cv_irix_exported_symbol=no 11030fi 11031rm -f core conftest.err conftest.$ac_objext \ 11032 conftest$ac_exeext conftest.$ac_ext 11033 LDFLAGS=$save_LDFLAGS 11034fi 11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11036$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11037 if test yes = "$lt_cv_irix_exported_symbol"; then 11038 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' 11039 fi 11040 link_all_deplibs=no 11041 else 11042 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' 11043 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' 11044 fi 11045 archive_cmds_need_lc='no' 11046 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11047 hardcode_libdir_separator=: 11048 inherit_rpath=yes 11049 link_all_deplibs=yes 11050 ;; 11051 11052 linux*) 11053 case $cc_basename in 11054 tcc*) 11055 # Fabrice Bellard et al's Tiny C Compiler 11056 ld_shlibs=yes 11057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11058 ;; 11059 esac 11060 ;; 11061 11062 netbsd* | netbsdelf*-gnu) 11063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11065 else 11066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11067 fi 11068 hardcode_libdir_flag_spec='-R$libdir' 11069 hardcode_direct=yes 11070 hardcode_shlibpath_var=no 11071 ;; 11072 11073 newsos6) 11074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11075 hardcode_direct=yes 11076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11077 hardcode_libdir_separator=: 11078 hardcode_shlibpath_var=no 11079 ;; 11080 11081 *nto* | *qnx*) 11082 ;; 11083 11084 openbsd* | bitrig*) 11085 if test -f /usr/libexec/ld.so; then 11086 hardcode_direct=yes 11087 hardcode_shlibpath_var=no 11088 hardcode_direct_absolute=yes 11089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11092 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11093 export_dynamic_flag_spec='$wl-E' 11094 else 11095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11096 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11097 fi 11098 else 11099 ld_shlibs=no 11100 fi 11101 ;; 11102 11103 os2*) 11104 hardcode_libdir_flag_spec='-L$libdir' 11105 hardcode_minus_L=yes 11106 allow_undefined_flag=unsupported 11107 shrext_cmds=.dll 11108 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11109 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11110 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11111 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11112 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11113 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11114 emximp -o $lib $output_objdir/$libname.def' 11115 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11116 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11117 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11118 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11119 prefix_cmds="$SED"~ 11120 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11121 prefix_cmds="$prefix_cmds -e 1d"; 11122 fi~ 11123 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11124 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11126 emximp -o $lib $output_objdir/$libname.def' 11127 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11128 enable_shared_with_static_runtimes=yes 11129 ;; 11130 11131 osf3*) 11132 if test yes = "$GCC"; then 11133 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11134 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' 11135 else 11136 allow_undefined_flag=' -expect_unresolved \*' 11137 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' 11138 fi 11139 archive_cmds_need_lc='no' 11140 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11141 hardcode_libdir_separator=: 11142 ;; 11143 11144 osf4* | osf5*) # as osf3* with the addition of -msym flag 11145 if test yes = "$GCC"; then 11146 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11147 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' 11148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11149 else 11150 allow_undefined_flag=' -expect_unresolved \*' 11151 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' 11152 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~ 11153 $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' 11154 11155 # Both c and cxx compiler support -rpath directly 11156 hardcode_libdir_flag_spec='-rpath $libdir' 11157 fi 11158 archive_cmds_need_lc='no' 11159 hardcode_libdir_separator=: 11160 ;; 11161 11162 solaris*) 11163 no_undefined_flag=' -z defs' 11164 if test yes = "$GCC"; then 11165 wlarc='$wl' 11166 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11168 $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' 11169 else 11170 case `$CC -V 2>&1` in 11171 *"Compilers 5.0"*) 11172 wlarc='' 11173 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11175 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11176 ;; 11177 *) 11178 wlarc='$wl' 11179 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11181 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11182 ;; 11183 esac 11184 fi 11185 hardcode_libdir_flag_spec='-R$libdir' 11186 hardcode_shlibpath_var=no 11187 case $host_os in 11188 solaris2.[0-5] | solaris2.[0-5].*) ;; 11189 *) 11190 # The compiler driver will combine and reorder linker options, 11191 # but understands '-z linker_flag'. GCC discards it without '$wl', 11192 # but is careful enough not to reorder. 11193 # Supported since Solaris 2.6 (maybe 2.5.1?) 11194 if test yes = "$GCC"; then 11195 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11196 else 11197 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11198 fi 11199 ;; 11200 esac 11201 link_all_deplibs=yes 11202 ;; 11203 11204 sunos4*) 11205 if test sequent = "$host_vendor"; then 11206 # Use $CC to link under sequent, because it throws in some extra .o 11207 # files that make .init and .fini sections work. 11208 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11209 else 11210 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11211 fi 11212 hardcode_libdir_flag_spec='-L$libdir' 11213 hardcode_direct=yes 11214 hardcode_minus_L=yes 11215 hardcode_shlibpath_var=no 11216 ;; 11217 11218 sysv4) 11219 case $host_vendor in 11220 sni) 11221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11222 hardcode_direct=yes # is this really true??? 11223 ;; 11224 siemens) 11225 ## LD is ld it makes a PLAMLIB 11226 ## CC just makes a GrossModule. 11227 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11228 reload_cmds='$CC -r -o $output$reload_objs' 11229 hardcode_direct=no 11230 ;; 11231 motorola) 11232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11233 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11234 ;; 11235 esac 11236 runpath_var='LD_RUN_PATH' 11237 hardcode_shlibpath_var=no 11238 ;; 11239 11240 sysv4.3*) 11241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11242 hardcode_shlibpath_var=no 11243 export_dynamic_flag_spec='-Bexport' 11244 ;; 11245 11246 sysv4*MP*) 11247 if test -d /usr/nec; then 11248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11249 hardcode_shlibpath_var=no 11250 runpath_var=LD_RUN_PATH 11251 hardcode_runpath_var=yes 11252 ld_shlibs=yes 11253 fi 11254 ;; 11255 11256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11257 no_undefined_flag='$wl-z,text' 11258 archive_cmds_need_lc=no 11259 hardcode_shlibpath_var=no 11260 runpath_var='LD_RUN_PATH' 11261 11262 if test yes = "$GCC"; then 11263 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11264 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11265 else 11266 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11267 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11268 fi 11269 ;; 11270 11271 sysv5* | sco3.2v5* | sco5v6*) 11272 # Note: We CANNOT use -z defs as we might desire, because we do not 11273 # link with -lc, and that would cause any symbols used from libc to 11274 # always be unresolved, which means just about no library would 11275 # ever link correctly. If we're not using GNU ld we use -z text 11276 # though, which does catch some bad symbols but isn't as heavy-handed 11277 # as -z defs. 11278 no_undefined_flag='$wl-z,text' 11279 allow_undefined_flag='$wl-z,nodefs' 11280 archive_cmds_need_lc=no 11281 hardcode_shlibpath_var=no 11282 hardcode_libdir_flag_spec='$wl-R,$libdir' 11283 hardcode_libdir_separator=':' 11284 link_all_deplibs=yes 11285 export_dynamic_flag_spec='$wl-Bexport' 11286 runpath_var='LD_RUN_PATH' 11287 11288 if test yes = "$GCC"; then 11289 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11290 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11291 else 11292 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11293 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11294 fi 11295 ;; 11296 11297 uts4*) 11298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11299 hardcode_libdir_flag_spec='-L$libdir' 11300 hardcode_shlibpath_var=no 11301 ;; 11302 11303 *) 11304 ld_shlibs=no 11305 ;; 11306 esac 11307 11308 if test sni = "$host_vendor"; then 11309 case $host in 11310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11311 export_dynamic_flag_spec='$wl-Blargedynsym' 11312 ;; 11313 esac 11314 fi 11315 fi 11316 11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11318$as_echo "$ld_shlibs" >&6; } 11319test no = "$ld_shlibs" && can_build_shared=no 11320 11321with_gnu_ld=$with_gnu_ld 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337# 11338# Do we need to explicitly link libc? 11339# 11340case "x$archive_cmds_need_lc" in 11341x|xyes) 11342 # Assume -lc should be added 11343 archive_cmds_need_lc=yes 11344 11345 if test yes,yes = "$GCC,$enable_shared"; then 11346 case $archive_cmds in 11347 *'~'*) 11348 # FIXME: we may have to deal with multi-command sequences. 11349 ;; 11350 '$CC '*) 11351 # Test whether the compiler implicitly links with -lc since on some 11352 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11353 # to ld, don't add -lc before -lgcc. 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11355$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11356if ${lt_cv_archive_cmds_need_lc+:} false; then : 11357 $as_echo_n "(cached) " >&6 11358else 11359 $RM conftest* 11360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11361 11362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11363 (eval $ac_compile) 2>&5 11364 ac_status=$? 11365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11366 test $ac_status = 0; } 2>conftest.err; then 11367 soname=conftest 11368 lib=conftest 11369 libobjs=conftest.$ac_objext 11370 deplibs= 11371 wl=$lt_prog_compiler_wl 11372 pic_flag=$lt_prog_compiler_pic 11373 compiler_flags=-v 11374 linker_flags=-v 11375 verstring= 11376 output_objdir=. 11377 libname=conftest 11378 lt_save_allow_undefined_flag=$allow_undefined_flag 11379 allow_undefined_flag= 11380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11381 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11382 ac_status=$? 11383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11384 test $ac_status = 0; } 11385 then 11386 lt_cv_archive_cmds_need_lc=no 11387 else 11388 lt_cv_archive_cmds_need_lc=yes 11389 fi 11390 allow_undefined_flag=$lt_save_allow_undefined_flag 11391 else 11392 cat conftest.err 1>&5 11393 fi 11394 $RM conftest* 11395 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11398$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11399 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11400 ;; 11401 esac 11402 fi 11403 ;; 11404esac 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11558$as_echo_n "checking dynamic linker characteristics... " >&6; } 11559 11560if test yes = "$GCC"; then 11561 case $host_os in 11562 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11563 *) lt_awk_arg='/^libraries:/' ;; 11564 esac 11565 case $host_os in 11566 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11567 *) lt_sed_strip_eq='s|=/|/|g' ;; 11568 esac 11569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11570 case $lt_search_path_spec in 11571 *\;*) 11572 # if the path contains ";" then we assume it to be the separator 11573 # otherwise default to the standard path separator (i.e. ":") - it is 11574 # assumed that no part of a normal pathname contains ";" but that should 11575 # okay in the real world where ";" in dirpaths is itself problematic. 11576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11577 ;; 11578 *) 11579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11580 ;; 11581 esac 11582 # Ok, now we have the path, separated by spaces, we can step through it 11583 # and add multilib dir if necessary... 11584 lt_tmp_lt_search_path_spec= 11585 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11586 # ...but if some path component already ends with the multilib dir we assume 11587 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11588 case "$lt_multi_os_dir; $lt_search_path_spec " in 11589 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11590 lt_multi_os_dir= 11591 ;; 11592 esac 11593 for lt_sys_path in $lt_search_path_spec; do 11594 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11596 elif test -n "$lt_multi_os_dir"; then 11597 test -d "$lt_sys_path" && \ 11598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11599 fi 11600 done 11601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11602BEGIN {RS = " "; FS = "/|\n";} { 11603 lt_foo = ""; 11604 lt_count = 0; 11605 for (lt_i = NF; lt_i > 0; lt_i--) { 11606 if ($lt_i != "" && $lt_i != ".") { 11607 if ($lt_i == "..") { 11608 lt_count++; 11609 } else { 11610 if (lt_count == 0) { 11611 lt_foo = "/" $lt_i lt_foo; 11612 } else { 11613 lt_count--; 11614 } 11615 } 11616 } 11617 } 11618 if (lt_foo != "") { lt_freq[lt_foo]++; } 11619 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11620}'` 11621 # AWK program above erroneously prepends '/' to C:/dos/paths 11622 # for these hosts. 11623 case $host_os in 11624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11625 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11626 esac 11627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11628else 11629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11630fi 11631library_names_spec= 11632libname_spec='lib$name' 11633soname_spec= 11634shrext_cmds=.so 11635postinstall_cmds= 11636postuninstall_cmds= 11637finish_cmds= 11638finish_eval= 11639shlibpath_var= 11640shlibpath_overrides_runpath=unknown 11641version_type=none 11642dynamic_linker="$host_os ld.so" 11643sys_lib_dlsearch_path_spec="/lib /usr/lib" 11644need_lib_prefix=unknown 11645hardcode_into_libs=no 11646 11647# when you set need_version to no, make sure it does not cause -set_version 11648# flags to be left without arguments 11649need_version=unknown 11650 11651 11652 11653case $host_os in 11654aix3*) 11655 version_type=linux # correct to gnu/linux during the next big refactor 11656 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11657 shlibpath_var=LIBPATH 11658 11659 # AIX 3 has no versioning support, so we append a major version to the name. 11660 soname_spec='$libname$release$shared_ext$major' 11661 ;; 11662 11663aix[4-9]*) 11664 version_type=linux # correct to gnu/linux during the next big refactor 11665 need_lib_prefix=no 11666 need_version=no 11667 hardcode_into_libs=yes 11668 if test ia64 = "$host_cpu"; then 11669 # AIX 5 supports IA64 11670 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11671 shlibpath_var=LD_LIBRARY_PATH 11672 else 11673 # With GCC up to 2.95.x, collect2 would create an import file 11674 # for dependence libraries. The import file would start with 11675 # the line '#! .'. This would cause the generated library to 11676 # depend on '.', always an invalid library. This was fixed in 11677 # development snapshots of GCC prior to 3.0. 11678 case $host_os in 11679 aix4 | aix4.[01] | aix4.[01].*) 11680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11681 echo ' yes ' 11682 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11683 : 11684 else 11685 can_build_shared=no 11686 fi 11687 ;; 11688 esac 11689 # Using Import Files as archive members, it is possible to support 11690 # filename-based versioning of shared library archives on AIX. While 11691 # this would work for both with and without runtime linking, it will 11692 # prevent static linking of such archives. So we do filename-based 11693 # shared library versioning with .so extension only, which is used 11694 # when both runtime linking and shared linking is enabled. 11695 # Unfortunately, runtime linking may impact performance, so we do 11696 # not want this to be the default eventually. Also, we use the 11697 # versioned .so libs for executables only if there is the -brtl 11698 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11699 # To allow for filename-based versioning support, we need to create 11700 # libNAME.so.V as an archive file, containing: 11701 # *) an Import File, referring to the versioned filename of the 11702 # archive as well as the shared archive member, telling the 11703 # bitwidth (32 or 64) of that shared object, and providing the 11704 # list of exported symbols of that shared object, eventually 11705 # decorated with the 'weak' keyword 11706 # *) the shared object with the F_LOADONLY flag set, to really avoid 11707 # it being seen by the linker. 11708 # At run time we better use the real file rather than another symlink, 11709 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11710 11711 case $with_aix_soname,$aix_use_runtimelinking in 11712 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11713 # soname into executable. Probably we can add versioning support to 11714 # collect2, so additional links can be useful in future. 11715 aix,yes) # traditional libtool 11716 dynamic_linker='AIX unversionable lib.so' 11717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11718 # instead of lib<name>.a to let people know that these are not 11719 # typical AIX shared libraries. 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 ;; 11722 aix,no) # traditional AIX only 11723 dynamic_linker='AIX lib.a(lib.so.V)' 11724 # We preserve .a as extension for shared libraries through AIX4.2 11725 # and later when we are not doing run time linking. 11726 library_names_spec='$libname$release.a $libname.a' 11727 soname_spec='$libname$release$shared_ext$major' 11728 ;; 11729 svr4,*) # full svr4 only 11730 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11731 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11732 # We do not specify a path in Import Files, so LIBPATH fires. 11733 shlibpath_overrides_runpath=yes 11734 ;; 11735 *,yes) # both, prefer svr4 11736 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11737 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11738 # unpreferred sharedlib libNAME.a needs extra handling 11739 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"' 11740 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"' 11741 # We do not specify a path in Import Files, so LIBPATH fires. 11742 shlibpath_overrides_runpath=yes 11743 ;; 11744 *,no) # both, prefer aix 11745 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11746 library_names_spec='$libname$release.a $libname.a' 11747 soname_spec='$libname$release$shared_ext$major' 11748 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11749 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)' 11750 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"' 11751 ;; 11752 esac 11753 shlibpath_var=LIBPATH 11754 fi 11755 ;; 11756 11757amigaos*) 11758 case $host_cpu in 11759 powerpc) 11760 # Since July 2007 AmigaOS4 officially supports .so libraries. 11761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11763 ;; 11764 m68k) 11765 library_names_spec='$libname.ixlibrary $libname.a' 11766 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11767 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' 11768 ;; 11769 esac 11770 ;; 11771 11772beos*) 11773 library_names_spec='$libname$shared_ext' 11774 dynamic_linker="$host_os ld.so" 11775 shlibpath_var=LIBRARY_PATH 11776 ;; 11777 11778bsdi[45]*) 11779 version_type=linux # correct to gnu/linux during the next big refactor 11780 need_version=no 11781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11782 soname_spec='$libname$release$shared_ext$major' 11783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11784 shlibpath_var=LD_LIBRARY_PATH 11785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11787 # the default ld.so.conf also contains /usr/contrib/lib and 11788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11789 # libtool to hard-code these into programs 11790 ;; 11791 11792cygwin* | mingw* | pw32* | cegcc*) 11793 version_type=windows 11794 shrext_cmds=.dll 11795 need_version=no 11796 need_lib_prefix=no 11797 11798 case $GCC,$cc_basename in 11799 yes,*) 11800 # gcc 11801 library_names_spec='$libname.dll.a' 11802 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11803 postinstall_cmds='base_file=`basename \$file`~ 11804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11805 dldir=$destdir/`dirname \$dlpath`~ 11806 test -d \$dldir || mkdir -p \$dldir~ 11807 $install_prog $dir/$dlname \$dldir/$dlname~ 11808 chmod a+x \$dldir/$dlname~ 11809 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11810 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11811 fi' 11812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11813 dlpath=$dir/\$dldll~ 11814 $RM \$dlpath' 11815 shlibpath_overrides_runpath=yes 11816 11817 case $host_os in 11818 cygwin*) 11819 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11820 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11821 11822 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11823 ;; 11824 mingw* | cegcc*) 11825 # MinGW DLLs use traditional 'lib' prefix 11826 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11827 ;; 11828 pw32*) 11829 # pw32 DLLs use 'pw' prefix rather than 'lib' 11830 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11831 ;; 11832 esac 11833 dynamic_linker='Win32 ld.exe' 11834 ;; 11835 11836 *,cl*) 11837 # Native MSVC 11838 libname_spec='$name' 11839 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11840 library_names_spec='$libname.dll.lib' 11841 11842 case $build_os in 11843 mingw*) 11844 sys_lib_search_path_spec= 11845 lt_save_ifs=$IFS 11846 IFS=';' 11847 for lt_path in $LIB 11848 do 11849 IFS=$lt_save_ifs 11850 # Let DOS variable expansion print the short 8.3 style file name. 11851 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11852 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11853 done 11854 IFS=$lt_save_ifs 11855 # Convert to MSYS style. 11856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11857 ;; 11858 cygwin*) 11859 # Convert to unix form, then to dos form, then back to unix form 11860 # but this time dos style (no spaces!) so that the unix form looks 11861 # like /cygdrive/c/PROGRA~1:/cygdr... 11862 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11863 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11864 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11865 ;; 11866 *) 11867 sys_lib_search_path_spec=$LIB 11868 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11869 # It is most probably a Windows format PATH. 11870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11871 else 11872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11873 fi 11874 # FIXME: find the short name or the path components, as spaces are 11875 # common. (e.g. "Program Files" -> "PROGRA~1") 11876 ;; 11877 esac 11878 11879 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11880 postinstall_cmds='base_file=`basename \$file`~ 11881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11882 dldir=$destdir/`dirname \$dlpath`~ 11883 test -d \$dldir || mkdir -p \$dldir~ 11884 $install_prog $dir/$dlname \$dldir/$dlname' 11885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11886 dlpath=$dir/\$dldll~ 11887 $RM \$dlpath' 11888 shlibpath_overrides_runpath=yes 11889 dynamic_linker='Win32 link.exe' 11890 ;; 11891 11892 *) 11893 # Assume MSVC wrapper 11894 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11895 dynamic_linker='Win32 ld.exe' 11896 ;; 11897 esac 11898 # FIXME: first we should search . and the directory the executable is in 11899 shlibpath_var=PATH 11900 ;; 11901 11902darwin* | rhapsody*) 11903 dynamic_linker="$host_os dyld" 11904 version_type=darwin 11905 need_lib_prefix=no 11906 need_version=no 11907 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11908 soname_spec='$libname$release$major$shared_ext' 11909 shlibpath_overrides_runpath=yes 11910 shlibpath_var=DYLD_LIBRARY_PATH 11911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11912 11913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11915 ;; 11916 11917dgux*) 11918 version_type=linux # correct to gnu/linux during the next big refactor 11919 need_lib_prefix=no 11920 need_version=no 11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11922 soname_spec='$libname$release$shared_ext$major' 11923 shlibpath_var=LD_LIBRARY_PATH 11924 ;; 11925 11926freebsd* | dragonfly*) 11927 # DragonFly does not have aout. When/if they implement a new 11928 # versioning mechanism, adjust this. 11929 if test -x /usr/bin/objformat; then 11930 objformat=`/usr/bin/objformat` 11931 else 11932 case $host_os in 11933 freebsd[23].*) objformat=aout ;; 11934 *) objformat=elf ;; 11935 esac 11936 fi 11937 version_type=freebsd-$objformat 11938 case $version_type in 11939 freebsd-elf*) 11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11941 soname_spec='$libname$release$shared_ext$major' 11942 need_version=no 11943 need_lib_prefix=no 11944 ;; 11945 freebsd-*) 11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11947 need_version=yes 11948 ;; 11949 esac 11950 shlibpath_var=LD_LIBRARY_PATH 11951 case $host_os in 11952 freebsd2.*) 11953 shlibpath_overrides_runpath=yes 11954 ;; 11955 freebsd3.[01]* | freebsdelf3.[01]*) 11956 shlibpath_overrides_runpath=yes 11957 hardcode_into_libs=yes 11958 ;; 11959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11961 shlibpath_overrides_runpath=no 11962 hardcode_into_libs=yes 11963 ;; 11964 *) # from 4.6 on, and DragonFly 11965 shlibpath_overrides_runpath=yes 11966 hardcode_into_libs=yes 11967 ;; 11968 esac 11969 ;; 11970 11971haiku*) 11972 version_type=linux # correct to gnu/linux during the next big refactor 11973 need_lib_prefix=no 11974 need_version=no 11975 dynamic_linker="$host_os runtime_loader" 11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11977 soname_spec='$libname$release$shared_ext$major' 11978 shlibpath_var=LIBRARY_PATH 11979 shlibpath_overrides_runpath=no 11980 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11981 hardcode_into_libs=yes 11982 ;; 11983 11984hpux9* | hpux10* | hpux11*) 11985 # Give a soname corresponding to the major version so that dld.sl refuses to 11986 # link against other versions. 11987 version_type=sunos 11988 need_lib_prefix=no 11989 need_version=no 11990 case $host_cpu in 11991 ia64*) 11992 shrext_cmds='.so' 11993 hardcode_into_libs=yes 11994 dynamic_linker="$host_os dld.so" 11995 shlibpath_var=LD_LIBRARY_PATH 11996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11998 soname_spec='$libname$release$shared_ext$major' 11999 if test 32 = "$HPUX_IA64_MODE"; then 12000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12001 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12002 else 12003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12004 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12005 fi 12006 ;; 12007 hppa*64*) 12008 shrext_cmds='.sl' 12009 hardcode_into_libs=yes 12010 dynamic_linker="$host_os dld.sl" 12011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12014 soname_spec='$libname$release$shared_ext$major' 12015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12017 ;; 12018 *) 12019 shrext_cmds='.sl' 12020 dynamic_linker="$host_os dld.sl" 12021 shlibpath_var=SHLIB_PATH 12022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12024 soname_spec='$libname$release$shared_ext$major' 12025 ;; 12026 esac 12027 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12028 postinstall_cmds='chmod 555 $lib' 12029 # or fails outright, so override atomically: 12030 install_override_mode=555 12031 ;; 12032 12033interix[3-9]*) 12034 version_type=linux # correct to gnu/linux during the next big refactor 12035 need_lib_prefix=no 12036 need_version=no 12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12038 soname_spec='$libname$release$shared_ext$major' 12039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12040 shlibpath_var=LD_LIBRARY_PATH 12041 shlibpath_overrides_runpath=no 12042 hardcode_into_libs=yes 12043 ;; 12044 12045irix5* | irix6* | nonstopux*) 12046 case $host_os in 12047 nonstopux*) version_type=nonstopux ;; 12048 *) 12049 if test yes = "$lt_cv_prog_gnu_ld"; then 12050 version_type=linux # correct to gnu/linux during the next big refactor 12051 else 12052 version_type=irix 12053 fi ;; 12054 esac 12055 need_lib_prefix=no 12056 need_version=no 12057 soname_spec='$libname$release$shared_ext$major' 12058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12059 case $host_os in 12060 irix5* | nonstopux*) 12061 libsuff= shlibsuff= 12062 ;; 12063 *) 12064 case $LD in # libtool.m4 will add one of these switches to LD 12065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12066 libsuff= shlibsuff= libmagic=32-bit;; 12067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12068 libsuff=32 shlibsuff=N32 libmagic=N32;; 12069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12070 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12071 *) libsuff= shlibsuff= libmagic=never-match;; 12072 esac 12073 ;; 12074 esac 12075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12076 shlibpath_overrides_runpath=no 12077 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12078 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12079 hardcode_into_libs=yes 12080 ;; 12081 12082# No shared lib support for Linux oldld, aout, or coff. 12083linux*oldld* | linux*aout* | linux*coff*) 12084 dynamic_linker=no 12085 ;; 12086 12087linux*android*) 12088 version_type=none # Android doesn't support versioned libraries. 12089 need_lib_prefix=no 12090 need_version=no 12091 library_names_spec='$libname$release$shared_ext' 12092 soname_spec='$libname$release$shared_ext' 12093 finish_cmds= 12094 shlibpath_var=LD_LIBRARY_PATH 12095 shlibpath_overrides_runpath=yes 12096 12097 # This implies no fast_install, which is unacceptable. 12098 # Some rework will be needed to allow for fast_install 12099 # before this can be enabled. 12100 hardcode_into_libs=yes 12101 12102 dynamic_linker='Android linker' 12103 # Don't embed -rpath directories since the linker doesn't support them. 12104 hardcode_libdir_flag_spec='-L$libdir' 12105 ;; 12106 12107# This must be glibc/ELF. 12108linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12109 version_type=linux # correct to gnu/linux during the next big refactor 12110 need_lib_prefix=no 12111 need_version=no 12112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12113 soname_spec='$libname$release$shared_ext$major' 12114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12115 shlibpath_var=LD_LIBRARY_PATH 12116 shlibpath_overrides_runpath=no 12117 12118 # Some binutils ld are patched to set DT_RUNPATH 12119 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12120 $as_echo_n "(cached) " >&6 12121else 12122 lt_cv_shlibpath_overrides_runpath=no 12123 save_LDFLAGS=$LDFLAGS 12124 save_libdir=$libdir 12125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12128/* end confdefs.h. */ 12129 12130int 12131main () 12132{ 12133 12134 ; 12135 return 0; 12136} 12137_ACEOF 12138if ac_fn_c_try_link "$LINENO"; then : 12139 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12140 lt_cv_shlibpath_overrides_runpath=yes 12141fi 12142fi 12143rm -f core conftest.err conftest.$ac_objext \ 12144 conftest$ac_exeext conftest.$ac_ext 12145 LDFLAGS=$save_LDFLAGS 12146 libdir=$save_libdir 12147 12148fi 12149 12150 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12151 12152 # This implies no fast_install, which is unacceptable. 12153 # Some rework will be needed to allow for fast_install 12154 # before this can be enabled. 12155 hardcode_into_libs=yes 12156 12157 # Ideally, we could use ldconfig to report *all* directores which are 12158 # searched for libraries, however this is still not possible. Aside from not 12159 # being certain /sbin/ldconfig is available, command 12160 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12161 # even though it is searched at run-time. Try to do the best guess by 12162 # appending ld.so.conf contents (and includes) to the search path. 12163 if test -f /etc/ld.so.conf; then 12164 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' ' '` 12165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12166 fi 12167 12168 # We used to test for /lib/ld.so.1 and disable shared libraries on 12169 # powerpc, because MkLinux only supported shared libraries with the 12170 # GNU dynamic linker. Since this was broken with cross compilers, 12171 # most powerpc-linux boxes support dynamic linking these days and 12172 # people can always --disable-shared, the test was removed, and we 12173 # assume the GNU/Linux dynamic linker is in use. 12174 dynamic_linker='GNU/Linux ld.so' 12175 ;; 12176 12177netbsdelf*-gnu) 12178 version_type=linux 12179 need_lib_prefix=no 12180 need_version=no 12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12182 soname_spec='${libname}${release}${shared_ext}$major' 12183 shlibpath_var=LD_LIBRARY_PATH 12184 shlibpath_overrides_runpath=no 12185 hardcode_into_libs=yes 12186 dynamic_linker='NetBSD ld.elf_so' 12187 ;; 12188 12189netbsd*) 12190 version_type=sunos 12191 need_lib_prefix=no 12192 need_version=no 12193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12196 dynamic_linker='NetBSD (a.out) ld.so' 12197 else 12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12199 soname_spec='$libname$release$shared_ext$major' 12200 dynamic_linker='NetBSD ld.elf_so' 12201 fi 12202 shlibpath_var=LD_LIBRARY_PATH 12203 shlibpath_overrides_runpath=yes 12204 hardcode_into_libs=yes 12205 ;; 12206 12207newsos6) 12208 version_type=linux # correct to gnu/linux during the next big refactor 12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12210 shlibpath_var=LD_LIBRARY_PATH 12211 shlibpath_overrides_runpath=yes 12212 ;; 12213 12214*nto* | *qnx*) 12215 version_type=qnx 12216 need_lib_prefix=no 12217 need_version=no 12218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12219 soname_spec='$libname$release$shared_ext$major' 12220 shlibpath_var=LD_LIBRARY_PATH 12221 shlibpath_overrides_runpath=no 12222 hardcode_into_libs=yes 12223 dynamic_linker='ldqnx.so' 12224 ;; 12225 12226openbsd* | bitrig*) 12227 version_type=sunos 12228 sys_lib_dlsearch_path_spec=/usr/lib 12229 need_lib_prefix=no 12230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12231 need_version=no 12232 else 12233 need_version=yes 12234 fi 12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12237 shlibpath_var=LD_LIBRARY_PATH 12238 shlibpath_overrides_runpath=yes 12239 ;; 12240 12241os2*) 12242 libname_spec='$name' 12243 version_type=windows 12244 shrext_cmds=.dll 12245 need_version=no 12246 need_lib_prefix=no 12247 # OS/2 can only load a DLL with a base name of 8 characters or less. 12248 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12249 v=$($ECHO $release$versuffix | tr -d .-); 12250 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12251 $ECHO $n$v`$shared_ext' 12252 library_names_spec='${libname}_dll.$libext' 12253 dynamic_linker='OS/2 ld.exe' 12254 shlibpath_var=BEGINLIBPATH 12255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12257 postinstall_cmds='base_file=`basename \$file`~ 12258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12259 dldir=$destdir/`dirname \$dlpath`~ 12260 test -d \$dldir || mkdir -p \$dldir~ 12261 $install_prog $dir/$dlname \$dldir/$dlname~ 12262 chmod a+x \$dldir/$dlname~ 12263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12265 fi' 12266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12267 dlpath=$dir/\$dldll~ 12268 $RM \$dlpath' 12269 ;; 12270 12271osf3* | osf4* | osf5*) 12272 version_type=osf 12273 need_lib_prefix=no 12274 need_version=no 12275 soname_spec='$libname$release$shared_ext$major' 12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12277 shlibpath_var=LD_LIBRARY_PATH 12278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12280 ;; 12281 12282rdos*) 12283 dynamic_linker=no 12284 ;; 12285 12286solaris*) 12287 version_type=linux # correct to gnu/linux during the next big refactor 12288 need_lib_prefix=no 12289 need_version=no 12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12291 soname_spec='$libname$release$shared_ext$major' 12292 shlibpath_var=LD_LIBRARY_PATH 12293 shlibpath_overrides_runpath=yes 12294 hardcode_into_libs=yes 12295 # ldd complains unless libraries are executable 12296 postinstall_cmds='chmod +x $lib' 12297 ;; 12298 12299sunos4*) 12300 version_type=sunos 12301 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12303 shlibpath_var=LD_LIBRARY_PATH 12304 shlibpath_overrides_runpath=yes 12305 if test yes = "$with_gnu_ld"; then 12306 need_lib_prefix=no 12307 fi 12308 need_version=yes 12309 ;; 12310 12311sysv4 | sysv4.3*) 12312 version_type=linux # correct to gnu/linux during the next big refactor 12313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12314 soname_spec='$libname$release$shared_ext$major' 12315 shlibpath_var=LD_LIBRARY_PATH 12316 case $host_vendor in 12317 sni) 12318 shlibpath_overrides_runpath=no 12319 need_lib_prefix=no 12320 runpath_var=LD_RUN_PATH 12321 ;; 12322 siemens) 12323 need_lib_prefix=no 12324 ;; 12325 motorola) 12326 need_lib_prefix=no 12327 need_version=no 12328 shlibpath_overrides_runpath=no 12329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12330 ;; 12331 esac 12332 ;; 12333 12334sysv4*MP*) 12335 if test -d /usr/nec; then 12336 version_type=linux # correct to gnu/linux during the next big refactor 12337 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12338 soname_spec='$libname$shared_ext.$major' 12339 shlibpath_var=LD_LIBRARY_PATH 12340 fi 12341 ;; 12342 12343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12344 version_type=sco 12345 need_lib_prefix=no 12346 need_version=no 12347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12348 soname_spec='$libname$release$shared_ext$major' 12349 shlibpath_var=LD_LIBRARY_PATH 12350 shlibpath_overrides_runpath=yes 12351 hardcode_into_libs=yes 12352 if test yes = "$with_gnu_ld"; then 12353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12354 else 12355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12356 case $host_os in 12357 sco3.2v5*) 12358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12359 ;; 12360 esac 12361 fi 12362 sys_lib_dlsearch_path_spec='/usr/lib' 12363 ;; 12364 12365tpf*) 12366 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12367 version_type=linux # correct to gnu/linux during the next big refactor 12368 need_lib_prefix=no 12369 need_version=no 12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12371 shlibpath_var=LD_LIBRARY_PATH 12372 shlibpath_overrides_runpath=no 12373 hardcode_into_libs=yes 12374 ;; 12375 12376uts4*) 12377 version_type=linux # correct to gnu/linux during the next big refactor 12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12379 soname_spec='$libname$release$shared_ext$major' 12380 shlibpath_var=LD_LIBRARY_PATH 12381 ;; 12382 12383*) 12384 dynamic_linker=no 12385 ;; 12386esac 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12388$as_echo "$dynamic_linker" >&6; } 12389test no = "$dynamic_linker" && can_build_shared=no 12390 12391variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12392if test yes = "$GCC"; then 12393 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12394fi 12395 12396if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12397 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12398fi 12399 12400if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12401 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12402fi 12403 12404# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12405configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12406 12407# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12408func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12409 12410# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12411configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12510$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12511hardcode_action= 12512if test -n "$hardcode_libdir_flag_spec" || 12513 test -n "$runpath_var" || 12514 test yes = "$hardcode_automatic"; then 12515 12516 # We can hardcode non-existent directories. 12517 if test no != "$hardcode_direct" && 12518 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12519 # have to relink, otherwise we might link with an installed library 12520 # when we should be linking with a yet-to-be-installed one 12521 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12522 test no != "$hardcode_minus_L"; then 12523 # Linking always hardcodes the temporary library directory. 12524 hardcode_action=relink 12525 else 12526 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12527 hardcode_action=immediate 12528 fi 12529else 12530 # We cannot hardcode anything, or else we can only hardcode existing 12531 # directories. 12532 hardcode_action=unsupported 12533fi 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12535$as_echo "$hardcode_action" >&6; } 12536 12537if test relink = "$hardcode_action" || 12538 test yes = "$inherit_rpath"; then 12539 # Fast installation is not supported 12540 enable_fast_install=no 12541elif test yes = "$shlibpath_overrides_runpath" || 12542 test no = "$enable_shared"; then 12543 # Fast installation is not necessary 12544 enable_fast_install=needless 12545fi 12546 12547 12548 12549 12550 12551 12552 if test yes != "$enable_dlopen"; then 12553 enable_dlopen=unknown 12554 enable_dlopen_self=unknown 12555 enable_dlopen_self_static=unknown 12556else 12557 lt_cv_dlopen=no 12558 lt_cv_dlopen_libs= 12559 12560 case $host_os in 12561 beos*) 12562 lt_cv_dlopen=load_add_on 12563 lt_cv_dlopen_libs= 12564 lt_cv_dlopen_self=yes 12565 ;; 12566 12567 mingw* | pw32* | cegcc*) 12568 lt_cv_dlopen=LoadLibrary 12569 lt_cv_dlopen_libs= 12570 ;; 12571 12572 cygwin*) 12573 lt_cv_dlopen=dlopen 12574 lt_cv_dlopen_libs= 12575 ;; 12576 12577 darwin*) 12578 # if libdl is installed we need to link against it 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12580$as_echo_n "checking for dlopen in -ldl... " >&6; } 12581if ${ac_cv_lib_dl_dlopen+:} false; then : 12582 $as_echo_n "(cached) " >&6 12583else 12584 ac_check_lib_save_LIBS=$LIBS 12585LIBS="-ldl $LIBS" 12586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12587/* end confdefs.h. */ 12588 12589/* Override any GCC internal prototype to avoid an error. 12590 Use char because int might match the return type of a GCC 12591 builtin and then its argument prototype would still apply. */ 12592#ifdef __cplusplus 12593extern "C" 12594#endif 12595char dlopen (); 12596int 12597main () 12598{ 12599return dlopen (); 12600 ; 12601 return 0; 12602} 12603_ACEOF 12604if ac_fn_c_try_link "$LINENO"; then : 12605 ac_cv_lib_dl_dlopen=yes 12606else 12607 ac_cv_lib_dl_dlopen=no 12608fi 12609rm -f core conftest.err conftest.$ac_objext \ 12610 conftest$ac_exeext conftest.$ac_ext 12611LIBS=$ac_check_lib_save_LIBS 12612fi 12613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12614$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12615if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12616 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12617else 12618 12619 lt_cv_dlopen=dyld 12620 lt_cv_dlopen_libs= 12621 lt_cv_dlopen_self=yes 12622 12623fi 12624 12625 ;; 12626 12627 tpf*) 12628 # Don't try to run any link tests for TPF. We know it's impossible 12629 # because TPF is a cross-compiler, and we know how we open DSOs. 12630 lt_cv_dlopen=dlopen 12631 lt_cv_dlopen_libs= 12632 lt_cv_dlopen_self=no 12633 ;; 12634 12635 *) 12636 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12637if test "x$ac_cv_func_shl_load" = xyes; then : 12638 lt_cv_dlopen=shl_load 12639else 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12641$as_echo_n "checking for shl_load in -ldld... " >&6; } 12642if ${ac_cv_lib_dld_shl_load+:} false; then : 12643 $as_echo_n "(cached) " >&6 12644else 12645 ac_check_lib_save_LIBS=$LIBS 12646LIBS="-ldld $LIBS" 12647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649 12650/* Override any GCC internal prototype to avoid an error. 12651 Use char because int might match the return type of a GCC 12652 builtin and then its argument prototype would still apply. */ 12653#ifdef __cplusplus 12654extern "C" 12655#endif 12656char shl_load (); 12657int 12658main () 12659{ 12660return shl_load (); 12661 ; 12662 return 0; 12663} 12664_ACEOF 12665if ac_fn_c_try_link "$LINENO"; then : 12666 ac_cv_lib_dld_shl_load=yes 12667else 12668 ac_cv_lib_dld_shl_load=no 12669fi 12670rm -f core conftest.err conftest.$ac_objext \ 12671 conftest$ac_exeext conftest.$ac_ext 12672LIBS=$ac_check_lib_save_LIBS 12673fi 12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12675$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12676if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12677 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12678else 12679 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12680if test "x$ac_cv_func_dlopen" = xyes; then : 12681 lt_cv_dlopen=dlopen 12682else 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12684$as_echo_n "checking for dlopen in -ldl... " >&6; } 12685if ${ac_cv_lib_dl_dlopen+:} false; then : 12686 $as_echo_n "(cached) " >&6 12687else 12688 ac_check_lib_save_LIBS=$LIBS 12689LIBS="-ldl $LIBS" 12690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12691/* end confdefs.h. */ 12692 12693/* Override any GCC internal prototype to avoid an error. 12694 Use char because int might match the return type of a GCC 12695 builtin and then its argument prototype would still apply. */ 12696#ifdef __cplusplus 12697extern "C" 12698#endif 12699char dlopen (); 12700int 12701main () 12702{ 12703return dlopen (); 12704 ; 12705 return 0; 12706} 12707_ACEOF 12708if ac_fn_c_try_link "$LINENO"; then : 12709 ac_cv_lib_dl_dlopen=yes 12710else 12711 ac_cv_lib_dl_dlopen=no 12712fi 12713rm -f core conftest.err conftest.$ac_objext \ 12714 conftest$ac_exeext conftest.$ac_ext 12715LIBS=$ac_check_lib_save_LIBS 12716fi 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12718$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12719if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12720 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12721else 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12723$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12724if ${ac_cv_lib_svld_dlopen+:} false; then : 12725 $as_echo_n "(cached) " >&6 12726else 12727 ac_check_lib_save_LIBS=$LIBS 12728LIBS="-lsvld $LIBS" 12729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730/* end confdefs.h. */ 12731 12732/* Override any GCC internal prototype to avoid an error. 12733 Use char because int might match the return type of a GCC 12734 builtin and then its argument prototype would still apply. */ 12735#ifdef __cplusplus 12736extern "C" 12737#endif 12738char dlopen (); 12739int 12740main () 12741{ 12742return dlopen (); 12743 ; 12744 return 0; 12745} 12746_ACEOF 12747if ac_fn_c_try_link "$LINENO"; then : 12748 ac_cv_lib_svld_dlopen=yes 12749else 12750 ac_cv_lib_svld_dlopen=no 12751fi 12752rm -f core conftest.err conftest.$ac_objext \ 12753 conftest$ac_exeext conftest.$ac_ext 12754LIBS=$ac_check_lib_save_LIBS 12755fi 12756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12757$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12758if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12759 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12760else 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12762$as_echo_n "checking for dld_link in -ldld... " >&6; } 12763if ${ac_cv_lib_dld_dld_link+:} false; then : 12764 $as_echo_n "(cached) " >&6 12765else 12766 ac_check_lib_save_LIBS=$LIBS 12767LIBS="-ldld $LIBS" 12768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12769/* end confdefs.h. */ 12770 12771/* Override any GCC internal prototype to avoid an error. 12772 Use char because int might match the return type of a GCC 12773 builtin and then its argument prototype would still apply. */ 12774#ifdef __cplusplus 12775extern "C" 12776#endif 12777char dld_link (); 12778int 12779main () 12780{ 12781return dld_link (); 12782 ; 12783 return 0; 12784} 12785_ACEOF 12786if ac_fn_c_try_link "$LINENO"; then : 12787 ac_cv_lib_dld_dld_link=yes 12788else 12789 ac_cv_lib_dld_dld_link=no 12790fi 12791rm -f core conftest.err conftest.$ac_objext \ 12792 conftest$ac_exeext conftest.$ac_ext 12793LIBS=$ac_check_lib_save_LIBS 12794fi 12795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12796$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12797if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12798 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12799fi 12800 12801 12802fi 12803 12804 12805fi 12806 12807 12808fi 12809 12810 12811fi 12812 12813 12814fi 12815 12816 ;; 12817 esac 12818 12819 if test no = "$lt_cv_dlopen"; then 12820 enable_dlopen=no 12821 else 12822 enable_dlopen=yes 12823 fi 12824 12825 case $lt_cv_dlopen in 12826 dlopen) 12827 save_CPPFLAGS=$CPPFLAGS 12828 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12829 12830 save_LDFLAGS=$LDFLAGS 12831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12832 12833 save_LIBS=$LIBS 12834 LIBS="$lt_cv_dlopen_libs $LIBS" 12835 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12837$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12838if ${lt_cv_dlopen_self+:} false; then : 12839 $as_echo_n "(cached) " >&6 12840else 12841 if test yes = "$cross_compiling"; then : 12842 lt_cv_dlopen_self=cross 12843else 12844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12845 lt_status=$lt_dlunknown 12846 cat > conftest.$ac_ext <<_LT_EOF 12847#line $LINENO "configure" 12848#include "confdefs.h" 12849 12850#if HAVE_DLFCN_H 12851#include <dlfcn.h> 12852#endif 12853 12854#include <stdio.h> 12855 12856#ifdef RTLD_GLOBAL 12857# define LT_DLGLOBAL RTLD_GLOBAL 12858#else 12859# ifdef DL_GLOBAL 12860# define LT_DLGLOBAL DL_GLOBAL 12861# else 12862# define LT_DLGLOBAL 0 12863# endif 12864#endif 12865 12866/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12867 find out it does not work in some platform. */ 12868#ifndef LT_DLLAZY_OR_NOW 12869# ifdef RTLD_LAZY 12870# define LT_DLLAZY_OR_NOW RTLD_LAZY 12871# else 12872# ifdef DL_LAZY 12873# define LT_DLLAZY_OR_NOW DL_LAZY 12874# else 12875# ifdef RTLD_NOW 12876# define LT_DLLAZY_OR_NOW RTLD_NOW 12877# else 12878# ifdef DL_NOW 12879# define LT_DLLAZY_OR_NOW DL_NOW 12880# else 12881# define LT_DLLAZY_OR_NOW 0 12882# endif 12883# endif 12884# endif 12885# endif 12886#endif 12887 12888/* When -fvisibility=hidden is used, assume the code has been annotated 12889 correspondingly for the symbols needed. */ 12890#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12891int fnord () __attribute__((visibility("default"))); 12892#endif 12893 12894int fnord () { return 42; } 12895int main () 12896{ 12897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12898 int status = $lt_dlunknown; 12899 12900 if (self) 12901 { 12902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12903 else 12904 { 12905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12906 else puts (dlerror ()); 12907 } 12908 /* dlclose (self); */ 12909 } 12910 else 12911 puts (dlerror ()); 12912 12913 return status; 12914} 12915_LT_EOF 12916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12917 (eval $ac_link) 2>&5 12918 ac_status=$? 12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12920 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12921 (./conftest; exit; ) >&5 2>/dev/null 12922 lt_status=$? 12923 case x$lt_status in 12924 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12925 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12926 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12927 esac 12928 else : 12929 # compilation failed 12930 lt_cv_dlopen_self=no 12931 fi 12932fi 12933rm -fr conftest* 12934 12935 12936fi 12937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12938$as_echo "$lt_cv_dlopen_self" >&6; } 12939 12940 if test yes = "$lt_cv_dlopen_self"; then 12941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12943$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12944if ${lt_cv_dlopen_self_static+:} false; then : 12945 $as_echo_n "(cached) " >&6 12946else 12947 if test yes = "$cross_compiling"; then : 12948 lt_cv_dlopen_self_static=cross 12949else 12950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12951 lt_status=$lt_dlunknown 12952 cat > conftest.$ac_ext <<_LT_EOF 12953#line $LINENO "configure" 12954#include "confdefs.h" 12955 12956#if HAVE_DLFCN_H 12957#include <dlfcn.h> 12958#endif 12959 12960#include <stdio.h> 12961 12962#ifdef RTLD_GLOBAL 12963# define LT_DLGLOBAL RTLD_GLOBAL 12964#else 12965# ifdef DL_GLOBAL 12966# define LT_DLGLOBAL DL_GLOBAL 12967# else 12968# define LT_DLGLOBAL 0 12969# endif 12970#endif 12971 12972/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12973 find out it does not work in some platform. */ 12974#ifndef LT_DLLAZY_OR_NOW 12975# ifdef RTLD_LAZY 12976# define LT_DLLAZY_OR_NOW RTLD_LAZY 12977# else 12978# ifdef DL_LAZY 12979# define LT_DLLAZY_OR_NOW DL_LAZY 12980# else 12981# ifdef RTLD_NOW 12982# define LT_DLLAZY_OR_NOW RTLD_NOW 12983# else 12984# ifdef DL_NOW 12985# define LT_DLLAZY_OR_NOW DL_NOW 12986# else 12987# define LT_DLLAZY_OR_NOW 0 12988# endif 12989# endif 12990# endif 12991# endif 12992#endif 12993 12994/* When -fvisibility=hidden is used, assume the code has been annotated 12995 correspondingly for the symbols needed. */ 12996#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12997int fnord () __attribute__((visibility("default"))); 12998#endif 12999 13000int fnord () { return 42; } 13001int main () 13002{ 13003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13004 int status = $lt_dlunknown; 13005 13006 if (self) 13007 { 13008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13009 else 13010 { 13011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13012 else puts (dlerror ()); 13013 } 13014 /* dlclose (self); */ 13015 } 13016 else 13017 puts (dlerror ()); 13018 13019 return status; 13020} 13021_LT_EOF 13022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13023 (eval $ac_link) 2>&5 13024 ac_status=$? 13025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13026 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13027 (./conftest; exit; ) >&5 2>/dev/null 13028 lt_status=$? 13029 case x$lt_status in 13030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13033 esac 13034 else : 13035 # compilation failed 13036 lt_cv_dlopen_self_static=no 13037 fi 13038fi 13039rm -fr conftest* 13040 13041 13042fi 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13044$as_echo "$lt_cv_dlopen_self_static" >&6; } 13045 fi 13046 13047 CPPFLAGS=$save_CPPFLAGS 13048 LDFLAGS=$save_LDFLAGS 13049 LIBS=$save_LIBS 13050 ;; 13051 esac 13052 13053 case $lt_cv_dlopen_self in 13054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13055 *) enable_dlopen_self=unknown ;; 13056 esac 13057 13058 case $lt_cv_dlopen_self_static in 13059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13060 *) enable_dlopen_self_static=unknown ;; 13061 esac 13062fi 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080striplib= 13081old_striplib= 13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13083$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13084if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13085 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13086 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13088$as_echo "yes" >&6; } 13089else 13090# FIXME - insert some real tests, host_os isn't really good enough 13091 case $host_os in 13092 darwin*) 13093 if test -n "$STRIP"; then 13094 striplib="$STRIP -x" 13095 old_striplib="$STRIP -S" 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13097$as_echo "yes" >&6; } 13098 else 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13100$as_echo "no" >&6; } 13101 fi 13102 ;; 13103 *) 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13105$as_echo "no" >&6; } 13106 ;; 13107 esac 13108fi 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 # Report what library types will actually be built 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13123$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13125$as_echo "$can_build_shared" >&6; } 13126 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13128$as_echo_n "checking whether to build shared libraries... " >&6; } 13129 test no = "$can_build_shared" && enable_shared=no 13130 13131 # On AIX, shared libraries and static libraries use the same namespace, and 13132 # are all built from PIC. 13133 case $host_os in 13134 aix3*) 13135 test yes = "$enable_shared" && enable_static=no 13136 if test -n "$RANLIB"; then 13137 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13138 postinstall_cmds='$RANLIB $lib' 13139 fi 13140 ;; 13141 13142 aix[4-9]*) 13143 if test ia64 != "$host_cpu"; then 13144 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13145 yes,aix,yes) ;; # shared object as lib.so file only 13146 yes,svr4,*) ;; # shared object as lib.so archive member only 13147 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13148 esac 13149 fi 13150 ;; 13151 esac 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13153$as_echo "$enable_shared" >&6; } 13154 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13156$as_echo_n "checking whether to build static libraries... " >&6; } 13157 # Make sure either enable_shared or enable_static is yes. 13158 test yes = "$enable_shared" || enable_static=yes 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13160$as_echo "$enable_static" >&6; } 13161 13162 13163 13164 13165fi 13166ac_ext=c 13167ac_cpp='$CPP $CPPFLAGS' 13168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13170ac_compiler_gnu=$ac_cv_c_compiler_gnu 13171 13172CC=$lt_save_CC 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 ac_config_commands="$ac_config_commands libtool" 13189 13190 13191 13192 13193# Only expand once: 13194 13195 13196 13197 13198 ac_ext=c 13199ac_cpp='$CPP $CPPFLAGS' 13200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13202ac_compiler_gnu=$ac_cv_c_compiler_gnu 13203 13204 13205 # Make sure CDPATH is portably set to a sensible value 13206 CDPATH=${ZSH_VERSION+.}: 13207 13208 GAP_CPPFLAGS="" 13209 13210 #Allow the user to specify a configname: 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFIGNAME" >&5 13212$as_echo_n "checking for CONFIGNAME... " >&6; } 13213 13214 if test "x$CONFIGNAME" = "x"; then 13215 SYSINFO="sysinfo.gap" 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13217$as_echo "none" >&6; } 13218 else 13219 SYSINFO="sysinfo.gap-$CONFIGNAME" 13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIGNAME" >&5 13221$as_echo "$CONFIGNAME" >&6; } 13222 fi 13223 13224 ###################################### 13225 # Find the GAP root directory by 13226 # checking for the sysinfo.gap file 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP root directory" >&5 13228$as_echo_n "checking for GAP root directory... " >&6; } 13229 DEFAULT_GAPROOTS="../.." 13230 13231 #Allow the user to specify the location of GAP 13232 # 13233 13234# Check whether --with-gaproot was given. 13235if test "${with_gaproot+set}" = set; then : 13236 withval=$with_gaproot; DEFAULT_GAPROOTS="$withval" 13237fi 13238 13239 13240 havesysinfo=0 13241 # Otherwise try likely directories 13242 for GAPROOT in ${DEFAULT_GAPROOTS} 13243 do 13244 # Convert the path to absolute 13245 GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd` 13246 if test -e ${GAPROOT}/${SYSINFO}; then 13247 havesysinfo=1 13248 break 13249 fi 13250 done 13251 13252 if test "x$havesysinfo" = "x1"; then 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPROOT}" >&5 13254$as_echo "${GAPROOT}" >&6; } 13255 else 13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 13257$as_echo "Not found" >&6; } 13258 13259 echo "" 13260 echo "********************************************************************" 13261 echo " ERROR" 13262 echo "" 13263 echo " Cannot find your GAP installation. Please specify the location of" 13264 echo " GAP's root directory using --with-gaproot=<path>" 13265 echo "" 13266 echo " The GAP root directory (as far as this package is concerned) is" 13267 echo " the one containing the file sysinfo.gap and the subdirectories " 13268 echo " src/ and bin/." 13269 echo "********************************************************************" 13270 echo "" 13271 13272 as_fn_error $? "Unable to find GAP root directory" "$LINENO" 5 13273 fi 13274 13275 ##################################### 13276 # Now find the architecture 13277 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP architecture" >&5 13279$as_echo_n "checking for GAP architecture... " >&6; } 13280 GAPARCH="Unknown" 13281 . $GAPROOT/$SYSINFO 13282 if test "x$GAParch" != "x"; then 13283 GAPARCH=$GAParch 13284 fi 13285 13286 13287# Check whether --with-gaparch was given. 13288if test "${with_gaparch+set}" = set; then : 13289 withval=$with_gaparch; GAPARCH=$withval 13290fi 13291 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPARCH}" >&5 13293$as_echo "${GAPARCH}" >&6; } 13294 13295 if test "x$GAPARCH" = "xUnknown" -o ! -d $GAPROOT/bin/$GAPARCH ; then 13296 echo "" 13297 echo "********************************************************************" 13298 echo " ERROR" 13299 echo "" 13300 echo " Found a GAP installation at $GAPROOT but could not find" 13301 echo " information about GAP's architecture in the" 13302 echo " file ${GAPROOT}/${SYSINFO} or did not find the directory" 13303 echo " ${GAPROOT}/bin/${GAPARCH}." 13304 echo " This file and directory should be present: please check your" 13305 echo " GAP installation." 13306 echo "********************************************************************" 13307 echo "" 13308 13309 as_fn_error $? "Unable to find plausible GAParch information." "$LINENO" 5 13310 fi 13311 13312 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP >= 4.9" >&5 13314$as_echo_n "checking for GAP >= 4.9... " >&6; } 13315 # test if this GAP >= 4.9 13316 if test "x$GAP_CPPFLAGS" != x; then 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13318$as_echo "yes" >&6; } 13319 else 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13321$as_echo "no" >&6; } 13322 ##################################### 13323 # Now check for the GAP header files 13324 13325 bad=0 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP include files" >&5 13327$as_echo_n "checking for GAP include files... " >&6; } 13328 if test -r $GAPROOT/src/compiled.h; then 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/src/compiled.h" >&5 13330$as_echo "$GAPROOT/src/compiled.h" >&6; } 13331 else 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 13333$as_echo "Not found" >&6; } 13334 bad=1 13335 fi 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP config.h" >&5 13337$as_echo_n "checking for GAP config.h... " >&6; } 13338 if test -r $GAPROOT/bin/$GAPARCH/config.h; then 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/bin/$GAPARCH/config.h" >&5 13340$as_echo "$GAPROOT/bin/$GAPARCH/config.h" >&6; } 13341 else 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 13343$as_echo "Not found" >&6; } 13344 bad=1 13345 fi 13346 13347 if test "x$bad" = "x1"; then 13348 echo "" 13349 echo "********************************************************************" 13350 echo " ERROR" 13351 echo "" 13352 echo " Failed to find the GAP source header files in src/ and" 13353 echo " GAP's config.h in the architecture dependend directory" 13354 echo "" 13355 echo " The kernel build process expects to find the normal GAP " 13356 echo " root directory structure as it is after building GAP itself, and" 13357 echo " in particular the files" 13358 echo " <gaproot>/sysinfo.gap" 13359 echo " <gaproot>/src/<includes>" 13360 echo " and <gaproot>/bin/<architecture>/bin/config.h." 13361 echo " Please make sure that your GAP root directory structure" 13362 echo " conforms to this layout, or give the correct GAP root using" 13363 echo " --with-gaproot=<path>" 13364 echo "********************************************************************" 13365 echo "" 13366 as_fn_error $? "Unable to find GAP include files in /src subdirectory" "$LINENO" 5 13367 fi 13368 13369 ARCHPATH=$GAPROOT/bin/$GAPARCH 13370 GAP_CPPFLAGS="-I$GAPROOT -iquote $GAPROOT/src -I$ARCHPATH" 13371 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP's gmp.h location" >&5 13373$as_echo_n "checking for GAP's gmp.h location... " >&6; } 13374 if test -r "$ARCHPATH/extern/gmp/include/gmp.h"; then 13375 GAP_CPPFLAGS="$GAP_CPPFLAGS -I$ARCHPATH/extern/gmp/include" 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHPATH/extern/gmp/include/gmp.h" >&5 13377$as_echo "$ARCHPATH/extern/gmp/include/gmp.h" >&6; } 13378 else 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, GAP was compiled without its own GMP" >&5 13380$as_echo "not found, GAP was compiled without its own GMP" >&6; } 13381 fi 13382 fi 13383 13384 13385 13386 13387 13388 13389 13390 13391 ac_ext=c 13392ac_cpp='$CPP $CPPFLAGS' 13393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13395ac_compiler_gnu=$ac_cv_c_compiler_gnu 13396 13397 13398 13399case $host_os in 13400 *cygwin* ) CYGWIN=yes;; 13401 * ) CYGWIN=no;; 13402esac 13403 if test "$CYGWIN" = "yes"; then 13404 SYS_IS_CYGWIN_TRUE= 13405 SYS_IS_CYGWIN_FALSE='#' 13406else 13407 SYS_IS_CYGWIN_TRUE='#' 13408 SYS_IS_CYGWIN_FALSE= 13409fi 13410 13411if test "$CYGWIN" = "yes"; then 13412 13413$as_echo "#define SYS_IS_CYGWIN32 1" >>confdefs.h 13414 13415else 13416 13417$as_echo "#define SYS_IS_CYGWIN32 0" >>confdefs.h 13418 13419fi 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446# Check whether --with-libcurl was given. 13447if test "${with_libcurl+set}" = set; then : 13448 withval=$with_libcurl; _libcurl_with=$withval 13449else 13450 _libcurl_with=yes 13451fi 13452 13453 13454 if test "$_libcurl_with" != "no" ; then 13455 13456 for ac_prog in gawk mawk nawk awk 13457do 13458 # Extract the first word of "$ac_prog", so it can be a program name with args. 13459set dummy $ac_prog; ac_word=$2 13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13461$as_echo_n "checking for $ac_word... " >&6; } 13462if ${ac_cv_prog_AWK+:} false; then : 13463 $as_echo_n "(cached) " >&6 13464else 13465 if test -n "$AWK"; then 13466 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13467else 13468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13469for as_dir in $PATH 13470do 13471 IFS=$as_save_IFS 13472 test -z "$as_dir" && as_dir=. 13473 for ac_exec_ext in '' $ac_executable_extensions; do 13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13475 ac_cv_prog_AWK="$ac_prog" 13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13477 break 2 13478 fi 13479done 13480 done 13481IFS=$as_save_IFS 13482 13483fi 13484fi 13485AWK=$ac_cv_prog_AWK 13486if test -n "$AWK"; then 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13488$as_echo "$AWK" >&6; } 13489else 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13491$as_echo "no" >&6; } 13492fi 13493 13494 13495 test -n "$AWK" && break 13496done 13497 13498 13499 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" 13500 13501 _libcurl_try_link=yes 13502 13503 if test -d "$_libcurl_with" ; then 13504 LIBCURL_CPPFLAGS="-I$withval/include" 13505 _libcurl_ldflags="-L$withval/lib" 13506 # Extract the first word of "curl-config", so it can be a program name with args. 13507set dummy curl-config; ac_word=$2 13508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13509$as_echo_n "checking for $ac_word... " >&6; } 13510if ${ac_cv_path__libcurl_config+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512else 13513 case $_libcurl_config in 13514 [\\/]* | ?:[\\/]*) 13515 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 13516 ;; 13517 *) 13518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13519for as_dir in "$withval/bin" 13520do 13521 IFS=$as_save_IFS 13522 test -z "$as_dir" && as_dir=. 13523 for ac_exec_ext in '' $ac_executable_extensions; do 13524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13525 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 13526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13527 break 2 13528 fi 13529done 13530 done 13531IFS=$as_save_IFS 13532 13533 ;; 13534esac 13535fi 13536_libcurl_config=$ac_cv_path__libcurl_config 13537if test -n "$_libcurl_config"; then 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 13539$as_echo "$_libcurl_config" >&6; } 13540else 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13542$as_echo "no" >&6; } 13543fi 13544 13545 13546 else 13547 # Extract the first word of "curl-config", so it can be a program name with args. 13548set dummy curl-config; ac_word=$2 13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13550$as_echo_n "checking for $ac_word... " >&6; } 13551if ${ac_cv_path__libcurl_config+:} false; then : 13552 $as_echo_n "(cached) " >&6 13553else 13554 case $_libcurl_config in 13555 [\\/]* | ?:[\\/]*) 13556 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 13557 ;; 13558 *) 13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13560for as_dir in $PATH 13561do 13562 IFS=$as_save_IFS 13563 test -z "$as_dir" && as_dir=. 13564 for ac_exec_ext in '' $ac_executable_extensions; do 13565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13566 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13568 break 2 13569 fi 13570done 13571 done 13572IFS=$as_save_IFS 13573 13574 ;; 13575esac 13576fi 13577_libcurl_config=$ac_cv_path__libcurl_config 13578if test -n "$_libcurl_config"; then 13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 13580$as_echo "$_libcurl_config" >&6; } 13581else 13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13583$as_echo "no" >&6; } 13584fi 13585 13586 13587 fi 13588 13589 if test x$_libcurl_config != "x" ; then 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 13591$as_echo_n "checking for the version of libcurl... " >&6; } 13592if ${libcurl_cv_lib_curl_version+:} false; then : 13593 $as_echo_n "(cached) " >&6 13594else 13595 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` 13596fi 13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 13598$as_echo "$libcurl_cv_lib_curl_version" >&6; } 13599 13600 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` 13601 _libcurl_wanted=`echo 0 | $_libcurl_version_parse` 13602 13603 if test $_libcurl_wanted -gt 0 ; then 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5 13605$as_echo_n "checking for libcurl >= version ... " >&6; } 13606if ${libcurl_cv_lib_version_ok+:} false; then : 13607 $as_echo_n "(cached) " >&6 13608else 13609 13610 if test $_libcurl_version -ge $_libcurl_wanted ; then 13611 libcurl_cv_lib_version_ok=yes 13612 else 13613 libcurl_cv_lib_version_ok=no 13614 fi 13615 13616fi 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 13618$as_echo "$libcurl_cv_lib_version_ok" >&6; } 13619 fi 13620 13621 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then 13622 if test x"$LIBCURL_CPPFLAGS" = "x" ; then 13623 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` 13624 fi 13625 if test x"$LIBCURL" = "x" ; then 13626 LIBCURL=`$_libcurl_config --libs` 13627 13628 # This is so silly, but Apple actually has a bug in their 13629 # curl-config script. Fixed in Tiger, but there are still 13630 # lots of Panther installs around. 13631 case "${host}" in 13632 powerpc-apple-darwin7*) 13633 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` 13634 ;; 13635 esac 13636 fi 13637 13638 # All curl-config scripts support --feature 13639 _libcurl_features=`$_libcurl_config --feature` 13640 13641 # Is it modern enough to have --protocols? (7.12.4) 13642 if test $_libcurl_version -ge 461828 ; then 13643 _libcurl_protocols=`$_libcurl_config --protocols` 13644 fi 13645 else 13646 _libcurl_try_link=no 13647 fi 13648 13649 unset _libcurl_wanted 13650 fi 13651 13652 if test $_libcurl_try_link = yes ; then 13653 13654 # we didn't find curl-config, so let's see if the user-supplied 13655 # link line (or failing that, "-lcurl") is enough. 13656 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} 13657 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 13659$as_echo_n "checking whether libcurl is usable... " >&6; } 13660if ${libcurl_cv_lib_curl_usable+:} false; then : 13661 $as_echo_n "(cached) " >&6 13662else 13663 13664 _libcurl_save_cppflags=$CPPFLAGS 13665 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" 13666 _libcurl_save_libs=$LIBS 13667 LIBS="$LIBCURL $LIBS" 13668 13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13670/* end confdefs.h. */ 13671#include <curl/curl.h> 13672int 13673main () 13674{ 13675 13676/* Try and use a few common options to force a failure if we are 13677 missing symbols or can't link. */ 13678int x; 13679curl_easy_setopt(NULL,CURLOPT_URL,NULL); 13680x=CURL_ERROR_SIZE; 13681x=CURLOPT_WRITEFUNCTION; 13682x=CURLOPT_WRITEDATA; 13683x=CURLOPT_ERRORBUFFER; 13684x=CURLOPT_STDERR; 13685x=CURLOPT_VERBOSE; 13686if (x) {;} 13687 13688 ; 13689 return 0; 13690} 13691_ACEOF 13692if ac_fn_c_try_link "$LINENO"; then : 13693 libcurl_cv_lib_curl_usable=yes 13694else 13695 libcurl_cv_lib_curl_usable=no 13696fi 13697rm -f core conftest.err conftest.$ac_objext \ 13698 conftest$ac_exeext conftest.$ac_ext 13699 13700 CPPFLAGS=$_libcurl_save_cppflags 13701 LIBS=$_libcurl_save_libs 13702 unset _libcurl_save_cppflags 13703 unset _libcurl_save_libs 13704 13705fi 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 13707$as_echo "$libcurl_cv_lib_curl_usable" >&6; } 13708 13709 if test $libcurl_cv_lib_curl_usable = yes ; then 13710 13711 # Does curl_free() exist in this version of libcurl? 13712 # If not, fake it with free() 13713 13714 _libcurl_save_cppflags=$CPPFLAGS 13715 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" 13716 _libcurl_save_libs=$LIBS 13717 LIBS="$LIBS $LIBCURL" 13718 13719 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" 13720if test "x$ac_cv_func_curl_free" = xyes; then : 13721 13722else 13723 13724$as_echo "#define curl_free free" >>confdefs.h 13725 13726fi 13727 13728 13729 CPPFLAGS=$_libcurl_save_cppflags 13730 LIBS=$_libcurl_save_libs 13731 unset _libcurl_save_cppflags 13732 unset _libcurl_save_libs 13733 13734 13735$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h 13736 13737 13738 13739 13740 for _libcurl_feature in $_libcurl_features ; do 13741 cat >>confdefs.h <<_ACEOF 13742#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 13743_ACEOF 13744 13745 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes 13746 done 13747 13748 if test "x$_libcurl_protocols" = "x" ; then 13749 13750 # We don't have --protocols, so just assume that all 13751 # protocols are available 13752 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" 13753 13754 if test x$libcurl_feature_SSL = xyes ; then 13755 _libcurl_protocols="$_libcurl_protocols HTTPS" 13756 13757 # FTPS wasn't standards-compliant until version 13758 # 7.11.0 (0x070b00 == 461568) 13759 if test $_libcurl_version -ge 461568; then 13760 _libcurl_protocols="$_libcurl_protocols FTPS" 13761 fi 13762 fi 13763 13764 # RTSP, IMAP, POP3 and SMTP were added in 13765 # 7.20.0 (0x071400 == 463872) 13766 if test $_libcurl_version -ge 463872; then 13767 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" 13768 fi 13769 fi 13770 13771 for _libcurl_protocol in $_libcurl_protocols ; do 13772 cat >>confdefs.h <<_ACEOF 13773#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 13774_ACEOF 13775 13776 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes 13777 done 13778 else 13779 unset LIBCURL 13780 unset LIBCURL_CPPFLAGS 13781 fi 13782 fi 13783 13784 unset _libcurl_try_link 13785 unset _libcurl_version_parse 13786 unset _libcurl_config 13787 unset _libcurl_feature 13788 unset _libcurl_features 13789 unset _libcurl_protocol 13790 unset _libcurl_protocols 13791 unset _libcurl_version 13792 unset _libcurl_ldflags 13793 fi 13794 13795 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then 13796 # This is the IF-NO path 13797 as_fn_error $? "libcurl development files required" "$LINENO" 5 13798 else 13799 # This is the IF-YES path 13800 : 13801 fi 13802 13803 unset _libcurl_with 13804 13805 13806 # Extract the first word of "curl-config", so it can be a program name with args. 13807set dummy curl-config; ac_word=$2 13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13809$as_echo_n "checking for $ac_word... " >&6; } 13810if ${ac_cv_path_CURL_CONFIG+:} false; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 case $CURL_CONFIG in 13814 [\\/]* | ?:[\\/]*) 13815 ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path. 13816 ;; 13817 *) 13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13819for as_dir in $PATH 13820do 13821 IFS=$as_save_IFS 13822 test -z "$as_dir" && as_dir=. 13823 for ac_exec_ext in '' $ac_executable_extensions; do 13824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13825 ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13827 break 2 13828 fi 13829done 13830 done 13831IFS=$as_save_IFS 13832 13833 test -z "$ac_cv_path_CURL_CONFIG" && ac_cv_path_CURL_CONFIG="no" 13834 ;; 13835esac 13836fi 13837CURL_CONFIG=$ac_cv_path_CURL_CONFIG 13838if test -n "$CURL_CONFIG"; then 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5 13840$as_echo "$CURL_CONFIG" >&6; } 13841else 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13843$as_echo "no" >&6; } 13844fi 13845 13846 13847 if test "$CURL_CONFIG" = "no" ; then 13848 as_fn_error $? "*** The curl-config script installed by curl could not be found" "$LINENO" 5 13849 else 13850 echo "curl found - remote install options available" 13851 CURL_AM_CFLAGS=`$CURL_CONFIG --cflags` 13852 CURL_LIBS=`$CURL_CONFIG --libs` 13853 AM_CXXFLAGS="$AM_CXXFLAGS $CURL_AM_CFLAGS" 13854 AM_CFLAGS="$AM_CFLAGS $CURL_AM_CFLAGS" 13855 LIBS="$LIBS $CURL_LIBS" 13856 if test x$with_curl_sftp = xyes; then 13857 if test x`$CURL_CONFIG --protocols|grep SFTP|wc -l` = x1; then 13858 AM_CXXFLAGS="$AM_CXXFLAGS -DCURLSFTPAVAILABLE" 13859 AM_CFLAGS="$AM_CFLAGS -DCURLSFTPAVAILABLE" 13860 else 13861 with_curl_sftp=no; 13862 fi 13863 fi 13864 fi 13865 13866ac_config_files="$ac_config_files Makefile" 13867 13868cat >confcache <<\_ACEOF 13869# This file is a shell script that caches the results of configure 13870# tests run on this system so they can be shared between configure 13871# scripts and configure runs, see configure's option --config-cache. 13872# It is not useful on other systems. If it contains results you don't 13873# want to keep, you may remove or edit it. 13874# 13875# config.status only pays attention to the cache file if you give it 13876# the --recheck option to rerun configure. 13877# 13878# `ac_cv_env_foo' variables (set or unset) will be overridden when 13879# loading this file, other *unset* `ac_cv_foo' will be assigned the 13880# following values. 13881 13882_ACEOF 13883 13884# The following way of writing the cache mishandles newlines in values, 13885# but we know of no workaround that is simple, portable, and efficient. 13886# So, we kill variables containing newlines. 13887# Ultrix sh set writes to stderr and can't be redirected directly, 13888# and sets the high bit in the cache file unless we assign to the vars. 13889( 13890 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13891 eval ac_val=\$$ac_var 13892 case $ac_val in #( 13893 *${as_nl}*) 13894 case $ac_var in #( 13895 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13896$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13897 esac 13898 case $ac_var in #( 13899 _ | IFS | as_nl) ;; #( 13900 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13901 *) { eval $ac_var=; unset $ac_var;} ;; 13902 esac ;; 13903 esac 13904 done 13905 13906 (set) 2>&1 | 13907 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13908 *${as_nl}ac_space=\ *) 13909 # `set' does not quote correctly, so add quotes: double-quote 13910 # substitution turns \\\\ into \\, and sed turns \\ into \. 13911 sed -n \ 13912 "s/'/'\\\\''/g; 13913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13914 ;; #( 13915 *) 13916 # `set' quotes correctly as required by POSIX, so do not add quotes. 13917 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13918 ;; 13919 esac | 13920 sort 13921) | 13922 sed ' 13923 /^ac_cv_env_/b end 13924 t clear 13925 :clear 13926 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13927 t end 13928 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13929 :end' >>confcache 13930if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13931 if test -w "$cache_file"; then 13932 if test "x$cache_file" != "x/dev/null"; then 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13934$as_echo "$as_me: updating cache $cache_file" >&6;} 13935 if test ! -f "$cache_file" || test -h "$cache_file"; then 13936 cat confcache >"$cache_file" 13937 else 13938 case $cache_file in #( 13939 */* | ?:*) 13940 mv -f confcache "$cache_file"$$ && 13941 mv -f "$cache_file"$$ "$cache_file" ;; #( 13942 *) 13943 mv -f confcache "$cache_file" ;; 13944 esac 13945 fi 13946 fi 13947 else 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13949$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13950 fi 13951fi 13952rm -f confcache 13953 13954test "x$prefix" = xNONE && prefix=$ac_default_prefix 13955# Let make expand exec_prefix. 13956test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13957 13958DEFS=-DHAVE_CONFIG_H 13959 13960ac_libobjs= 13961ac_ltlibobjs= 13962U= 13963for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13964 # 1. Remove the extension, and $U if already installed. 13965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13966 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13968 # will be set to the directory where LIBOBJS objects are built. 13969 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13970 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13971done 13972LIBOBJS=$ac_libobjs 13973 13974LTLIBOBJS=$ac_ltlibobjs 13975 13976 13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13978$as_echo_n "checking that generated files are newer than configure... " >&6; } 13979 if test -n "$am_sleep_pid"; then 13980 # Hide warnings about reused PIDs. 13981 wait $am_sleep_pid 2>/dev/null 13982 fi 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13984$as_echo "done" >&6; } 13985 if test -n "$EXEEXT"; then 13986 am__EXEEXT_TRUE= 13987 am__EXEEXT_FALSE='#' 13988else 13989 am__EXEEXT_TRUE='#' 13990 am__EXEEXT_FALSE= 13991fi 13992 13993if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13994 as_fn_error $? "conditional \"AMDEP\" was never defined. 13995Usually this means the macro was only invoked conditionally." "$LINENO" 5 13996fi 13997if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13998 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13999Usually this means the macro was only invoked conditionally." "$LINENO" 5 14000fi 14001if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14002 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14003Usually this means the macro was only invoked conditionally." "$LINENO" 5 14004fi 14005if test -z "${SYS_IS_CYGWIN_TRUE}" && test -z "${SYS_IS_CYGWIN_FALSE}"; then 14006 as_fn_error $? "conditional \"SYS_IS_CYGWIN\" was never defined. 14007Usually this means the macro was only invoked conditionally." "$LINENO" 5 14008fi 14009 14010: "${CONFIG_STATUS=./config.status}" 14011ac_write_fail=0 14012ac_clean_files_save=$ac_clean_files 14013ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14014{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14015$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14016as_write_fail=0 14017cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14018#! $SHELL 14019# Generated by $as_me. 14020# Run this file to recreate the current configuration. 14021# Compiler output produced by configure, useful for debugging 14022# configure, is in config.log if it exists. 14023 14024debug=false 14025ac_cs_recheck=false 14026ac_cs_silent=false 14027 14028SHELL=\${CONFIG_SHELL-$SHELL} 14029export SHELL 14030_ASEOF 14031cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14032## -------------------- ## 14033## M4sh Initialization. ## 14034## -------------------- ## 14035 14036# Be more Bourne compatible 14037DUALCASE=1; export DUALCASE # for MKS sh 14038if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14039 emulate sh 14040 NULLCMD=: 14041 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14042 # is contrary to our usage. Disable this feature. 14043 alias -g '${1+"$@"}'='"$@"' 14044 setopt NO_GLOB_SUBST 14045else 14046 case `(set -o) 2>/dev/null` in #( 14047 *posix*) : 14048 set -o posix ;; #( 14049 *) : 14050 ;; 14051esac 14052fi 14053 14054 14055as_nl=' 14056' 14057export as_nl 14058# Printing a long string crashes Solaris 7 /usr/bin/printf. 14059as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14060as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14061as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14062# Prefer a ksh shell builtin over an external printf program on Solaris, 14063# but without wasting forks for bash or zsh. 14064if test -z "$BASH_VERSION$ZSH_VERSION" \ 14065 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14066 as_echo='print -r --' 14067 as_echo_n='print -rn --' 14068elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14069 as_echo='printf %s\n' 14070 as_echo_n='printf %s' 14071else 14072 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14073 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14074 as_echo_n='/usr/ucb/echo -n' 14075 else 14076 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14077 as_echo_n_body='eval 14078 arg=$1; 14079 case $arg in #( 14080 *"$as_nl"*) 14081 expr "X$arg" : "X\\(.*\\)$as_nl"; 14082 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14083 esac; 14084 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14085 ' 14086 export as_echo_n_body 14087 as_echo_n='sh -c $as_echo_n_body as_echo' 14088 fi 14089 export as_echo_body 14090 as_echo='sh -c $as_echo_body as_echo' 14091fi 14092 14093# The user is always right. 14094if test "${PATH_SEPARATOR+set}" != set; then 14095 PATH_SEPARATOR=: 14096 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14097 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14098 PATH_SEPARATOR=';' 14099 } 14100fi 14101 14102 14103# IFS 14104# We need space, tab and new line, in precisely that order. Quoting is 14105# there to prevent editors from complaining about space-tab. 14106# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14107# splitting by setting IFS to empty value.) 14108IFS=" "" $as_nl" 14109 14110# Find who we are. Look in the path if we contain no directory separator. 14111as_myself= 14112case $0 in #(( 14113 *[\\/]* ) as_myself=$0 ;; 14114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14115for as_dir in $PATH 14116do 14117 IFS=$as_save_IFS 14118 test -z "$as_dir" && as_dir=. 14119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14120 done 14121IFS=$as_save_IFS 14122 14123 ;; 14124esac 14125# We did not find ourselves, most probably we were run as `sh COMMAND' 14126# in which case we are not to be found in the path. 14127if test "x$as_myself" = x; then 14128 as_myself=$0 14129fi 14130if test ! -f "$as_myself"; then 14131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14132 exit 1 14133fi 14134 14135# Unset variables that we do not need and which cause bugs (e.g. in 14136# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14137# suppresses any "Segmentation fault" message there. '((' could 14138# trigger a bug in pdksh 5.2.14. 14139for as_var in BASH_ENV ENV MAIL MAILPATH 14140do eval test x\${$as_var+set} = xset \ 14141 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14142done 14143PS1='$ ' 14144PS2='> ' 14145PS4='+ ' 14146 14147# NLS nuisances. 14148LC_ALL=C 14149export LC_ALL 14150LANGUAGE=C 14151export LANGUAGE 14152 14153# CDPATH. 14154(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14155 14156 14157# as_fn_error STATUS ERROR [LINENO LOG_FD] 14158# ---------------------------------------- 14159# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14160# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14161# script with STATUS, using 1 if that was 0. 14162as_fn_error () 14163{ 14164 as_status=$1; test $as_status -eq 0 && as_status=1 14165 if test "$4"; then 14166 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14167 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14168 fi 14169 $as_echo "$as_me: error: $2" >&2 14170 as_fn_exit $as_status 14171} # as_fn_error 14172 14173 14174# as_fn_set_status STATUS 14175# ----------------------- 14176# Set $? to STATUS, without forking. 14177as_fn_set_status () 14178{ 14179 return $1 14180} # as_fn_set_status 14181 14182# as_fn_exit STATUS 14183# ----------------- 14184# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14185as_fn_exit () 14186{ 14187 set +e 14188 as_fn_set_status $1 14189 exit $1 14190} # as_fn_exit 14191 14192# as_fn_unset VAR 14193# --------------- 14194# Portably unset VAR. 14195as_fn_unset () 14196{ 14197 { eval $1=; unset $1;} 14198} 14199as_unset=as_fn_unset 14200# as_fn_append VAR VALUE 14201# ---------------------- 14202# Append the text in VALUE to the end of the definition contained in VAR. Take 14203# advantage of any shell optimizations that allow amortized linear growth over 14204# repeated appends, instead of the typical quadratic growth present in naive 14205# implementations. 14206if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14207 eval 'as_fn_append () 14208 { 14209 eval $1+=\$2 14210 }' 14211else 14212 as_fn_append () 14213 { 14214 eval $1=\$$1\$2 14215 } 14216fi # as_fn_append 14217 14218# as_fn_arith ARG... 14219# ------------------ 14220# Perform arithmetic evaluation on the ARGs, and store the result in the 14221# global $as_val. Take advantage of shells that can avoid forks. The arguments 14222# must be portable across $(()) and expr. 14223if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14224 eval 'as_fn_arith () 14225 { 14226 as_val=$(( $* )) 14227 }' 14228else 14229 as_fn_arith () 14230 { 14231 as_val=`expr "$@" || test $? -eq 1` 14232 } 14233fi # as_fn_arith 14234 14235 14236if expr a : '\(a\)' >/dev/null 2>&1 && 14237 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14238 as_expr=expr 14239else 14240 as_expr=false 14241fi 14242 14243if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14244 as_basename=basename 14245else 14246 as_basename=false 14247fi 14248 14249if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14250 as_dirname=dirname 14251else 14252 as_dirname=false 14253fi 14254 14255as_me=`$as_basename -- "$0" || 14256$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14257 X"$0" : 'X\(//\)$' \| \ 14258 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14259$as_echo X/"$0" | 14260 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14261 s//\1/ 14262 q 14263 } 14264 /^X\/\(\/\/\)$/{ 14265 s//\1/ 14266 q 14267 } 14268 /^X\/\(\/\).*/{ 14269 s//\1/ 14270 q 14271 } 14272 s/.*/./; q'` 14273 14274# Avoid depending upon Character Ranges. 14275as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14276as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14277as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14278as_cr_digits='0123456789' 14279as_cr_alnum=$as_cr_Letters$as_cr_digits 14280 14281ECHO_C= ECHO_N= ECHO_T= 14282case `echo -n x` in #((((( 14283-n*) 14284 case `echo 'xy\c'` in 14285 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14286 xy) ECHO_C='\c';; 14287 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14288 ECHO_T=' ';; 14289 esac;; 14290*) 14291 ECHO_N='-n';; 14292esac 14293 14294rm -f conf$$ conf$$.exe conf$$.file 14295if test -d conf$$.dir; then 14296 rm -f conf$$.dir/conf$$.file 14297else 14298 rm -f conf$$.dir 14299 mkdir conf$$.dir 2>/dev/null 14300fi 14301if (echo >conf$$.file) 2>/dev/null; then 14302 if ln -s conf$$.file conf$$ 2>/dev/null; then 14303 as_ln_s='ln -s' 14304 # ... but there are two gotchas: 14305 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14306 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14307 # In both cases, we have to default to `cp -pR'. 14308 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14309 as_ln_s='cp -pR' 14310 elif ln conf$$.file conf$$ 2>/dev/null; then 14311 as_ln_s=ln 14312 else 14313 as_ln_s='cp -pR' 14314 fi 14315else 14316 as_ln_s='cp -pR' 14317fi 14318rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14319rmdir conf$$.dir 2>/dev/null 14320 14321 14322# as_fn_mkdir_p 14323# ------------- 14324# Create "$as_dir" as a directory, including parents if necessary. 14325as_fn_mkdir_p () 14326{ 14327 14328 case $as_dir in #( 14329 -*) as_dir=./$as_dir;; 14330 esac 14331 test -d "$as_dir" || eval $as_mkdir_p || { 14332 as_dirs= 14333 while :; do 14334 case $as_dir in #( 14335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14336 *) as_qdir=$as_dir;; 14337 esac 14338 as_dirs="'$as_qdir' $as_dirs" 14339 as_dir=`$as_dirname -- "$as_dir" || 14340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14341 X"$as_dir" : 'X\(//\)[^/]' \| \ 14342 X"$as_dir" : 'X\(//\)$' \| \ 14343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14344$as_echo X"$as_dir" | 14345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14346 s//\1/ 14347 q 14348 } 14349 /^X\(\/\/\)[^/].*/{ 14350 s//\1/ 14351 q 14352 } 14353 /^X\(\/\/\)$/{ 14354 s//\1/ 14355 q 14356 } 14357 /^X\(\/\).*/{ 14358 s//\1/ 14359 q 14360 } 14361 s/.*/./; q'` 14362 test -d "$as_dir" && break 14363 done 14364 test -z "$as_dirs" || eval "mkdir $as_dirs" 14365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14366 14367 14368} # as_fn_mkdir_p 14369if mkdir -p . 2>/dev/null; then 14370 as_mkdir_p='mkdir -p "$as_dir"' 14371else 14372 test -d ./-p && rmdir ./-p 14373 as_mkdir_p=false 14374fi 14375 14376 14377# as_fn_executable_p FILE 14378# ----------------------- 14379# Test if FILE is an executable regular file. 14380as_fn_executable_p () 14381{ 14382 test -f "$1" && test -x "$1" 14383} # as_fn_executable_p 14384as_test_x='test -x' 14385as_executable_p=as_fn_executable_p 14386 14387# Sed expression to map a string onto a valid CPP name. 14388as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14389 14390# Sed expression to map a string onto a valid variable name. 14391as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14392 14393 14394exec 6>&1 14395## ----------------------------------- ## 14396## Main body of $CONFIG_STATUS script. ## 14397## ----------------------------------- ## 14398_ASEOF 14399test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14400 14401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14402# Save the log message, to keep $0 and so on meaningful, and to 14403# report actual input values of CONFIG_FILES etc. instead of their 14404# values after options handling. 14405ac_log=" 14406This file was extended by curlInterface $as_me GAP package, which was 14407generated by GNU Autoconf 2.69. Invocation command line was 14408 14409 CONFIG_FILES = $CONFIG_FILES 14410 CONFIG_HEADERS = $CONFIG_HEADERS 14411 CONFIG_LINKS = $CONFIG_LINKS 14412 CONFIG_COMMANDS = $CONFIG_COMMANDS 14413 $ $0 $@ 14414 14415on `(hostname || uname -n) 2>/dev/null | sed 1q` 14416" 14417 14418_ACEOF 14419 14420case $ac_config_files in *" 14421"*) set x $ac_config_files; shift; ac_config_files=$*;; 14422esac 14423 14424case $ac_config_headers in *" 14425"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14426esac 14427 14428 14429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14430# Files that config.status was made for. 14431config_files="$ac_config_files" 14432config_headers="$ac_config_headers" 14433config_commands="$ac_config_commands" 14434 14435_ACEOF 14436 14437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14438ac_cs_usage="\ 14439\`$as_me' instantiates files and other configuration actions 14440from templates according to the current configuration. Unless the files 14441and actions are specified as TAGs, all are instantiated by default. 14442 14443Usage: $0 [OPTION]... [TAG]... 14444 14445 -h, --help print this help, then exit 14446 -V, --version print version number and configuration settings, then exit 14447 --config print configuration, then exit 14448 -q, --quiet, --silent 14449 do not print progress messages 14450 -d, --debug don't remove temporary files 14451 --recheck update $as_me by reconfiguring in the same conditions 14452 --file=FILE[:TEMPLATE] 14453 instantiate the configuration file FILE 14454 --header=FILE[:TEMPLATE] 14455 instantiate the configuration header FILE 14456 14457Configuration files: 14458$config_files 14459 14460Configuration headers: 14461$config_headers 14462 14463Configuration commands: 14464$config_commands 14465 14466Report bugs to the package provider." 14467 14468_ACEOF 14469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14470ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14471ac_cs_version="\\ 14472curlInterface config.status GAP package 14473configured by $0, generated by GNU Autoconf 2.69, 14474 with options \\"\$ac_cs_config\\" 14475 14476Copyright (C) 2012 Free Software Foundation, Inc. 14477This config.status script is free software; the Free Software Foundation 14478gives unlimited permission to copy, distribute and modify it." 14479 14480ac_pwd='$ac_pwd' 14481srcdir='$srcdir' 14482INSTALL='$INSTALL' 14483MKDIR_P='$MKDIR_P' 14484AWK='$AWK' 14485test -n "\$AWK" || AWK=awk 14486_ACEOF 14487 14488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14489# The default lists apply if the user does not specify any file. 14490ac_need_defaults=: 14491while test $# != 0 14492do 14493 case $1 in 14494 --*=?*) 14495 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14497 ac_shift=: 14498 ;; 14499 --*=) 14500 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14501 ac_optarg= 14502 ac_shift=: 14503 ;; 14504 *) 14505 ac_option=$1 14506 ac_optarg=$2 14507 ac_shift=shift 14508 ;; 14509 esac 14510 14511 case $ac_option in 14512 # Handling of the options. 14513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14514 ac_cs_recheck=: ;; 14515 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14516 $as_echo "$ac_cs_version"; exit ;; 14517 --config | --confi | --conf | --con | --co | --c ) 14518 $as_echo "$ac_cs_config"; exit ;; 14519 --debug | --debu | --deb | --de | --d | -d ) 14520 debug=: ;; 14521 --file | --fil | --fi | --f ) 14522 $ac_shift 14523 case $ac_optarg in 14524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14525 '') as_fn_error $? "missing file argument" ;; 14526 esac 14527 as_fn_append CONFIG_FILES " '$ac_optarg'" 14528 ac_need_defaults=false;; 14529 --header | --heade | --head | --hea ) 14530 $ac_shift 14531 case $ac_optarg in 14532 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14533 esac 14534 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14535 ac_need_defaults=false;; 14536 --he | --h) 14537 # Conflict between --help and --header 14538 as_fn_error $? "ambiguous option: \`$1' 14539Try \`$0 --help' for more information.";; 14540 --help | --hel | -h ) 14541 $as_echo "$ac_cs_usage"; exit ;; 14542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14543 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14544 ac_cs_silent=: ;; 14545 14546 # This is an error. 14547 -*) as_fn_error $? "unrecognized option: \`$1' 14548Try \`$0 --help' for more information." ;; 14549 14550 *) as_fn_append ac_config_targets " $1" 14551 ac_need_defaults=false ;; 14552 14553 esac 14554 shift 14555done 14556 14557ac_configure_extra_args= 14558 14559if $ac_cs_silent; then 14560 exec 6>/dev/null 14561 ac_configure_extra_args="$ac_configure_extra_args --silent" 14562fi 14563 14564_ACEOF 14565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14566if \$ac_cs_recheck; then 14567 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14568 shift 14569 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14570 CONFIG_SHELL='$SHELL' 14571 export CONFIG_SHELL 14572 exec "\$@" 14573fi 14574 14575_ACEOF 14576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14577exec 5>>config.log 14578{ 14579 echo 14580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14581## Running $as_me. ## 14582_ASBOX 14583 $as_echo "$ac_log" 14584} >&5 14585 14586_ACEOF 14587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14588# 14589# INIT-COMMANDS 14590# 14591AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14592 14593 14594# The HP-UX ksh and POSIX shell print the target directory to stdout 14595# if CDPATH is set. 14596(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14597 14598sed_quote_subst='$sed_quote_subst' 14599double_quote_subst='$double_quote_subst' 14600delay_variable_subst='$delay_variable_subst' 14601macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14602macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14603enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14604AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 14605DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14606OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14607enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14608pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14609enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14610shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14611SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14612ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14613PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14614host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14615host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14616host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14617build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14618build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14619build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14620SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14621Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14622GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14623EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14624FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14625LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14626NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14627LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14628max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14629ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14630exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14631lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14632lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14633lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14634lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14635lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14636reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14637reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14638deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14639file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14640file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14641want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14642sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14643AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14644AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14645archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14646STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14647RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14648old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14649old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14650old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14651lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14652CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14653CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14654compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14655GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14656lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14657lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14658lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14659lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14660lt_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"`' 14661lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14662nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14663lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14664lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14665objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14666MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14667lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14668lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14669lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14670lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14671lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14672need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14673MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14674DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14675NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14676LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14677OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14678OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14679libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14680shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14681extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14682archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14683enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14684export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14685whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14686compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14687old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14688old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14689archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14690archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14691module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14692module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14693with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14694allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14695no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14696hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14697hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14698hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14699hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14700hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14701hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14702hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14703inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14704link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14705always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14706export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14707exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14708include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14709prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14710postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14711file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14712variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14713need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14714need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14715version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14716runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14717shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14718shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14719libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14720library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14721soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14722install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14723postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14724postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14725finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14726finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14727hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14728sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14729configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14730configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14731hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14732enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14733enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14734enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14735old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14736striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14737 14738LTCC='$LTCC' 14739LTCFLAGS='$LTCFLAGS' 14740compiler='$compiler_DEFAULT' 14741 14742# A function that is used when there is no print builtin or printf. 14743func_fallback_echo () 14744{ 14745 eval 'cat <<_LTECHO_EOF 14746\$1 14747_LTECHO_EOF' 14748} 14749 14750# Quote evaled strings. 14751for var in AS \ 14752DLLTOOL \ 14753OBJDUMP \ 14754SHELL \ 14755ECHO \ 14756PATH_SEPARATOR \ 14757SED \ 14758GREP \ 14759EGREP \ 14760FGREP \ 14761LD \ 14762NM \ 14763LN_S \ 14764lt_SP2NL \ 14765lt_NL2SP \ 14766reload_flag \ 14767deplibs_check_method \ 14768file_magic_cmd \ 14769file_magic_glob \ 14770want_nocaseglob \ 14771sharedlib_from_linklib_cmd \ 14772AR \ 14773AR_FLAGS \ 14774archiver_list_spec \ 14775STRIP \ 14776RANLIB \ 14777CC \ 14778CFLAGS \ 14779compiler \ 14780lt_cv_sys_global_symbol_pipe \ 14781lt_cv_sys_global_symbol_to_cdecl \ 14782lt_cv_sys_global_symbol_to_import \ 14783lt_cv_sys_global_symbol_to_c_name_address \ 14784lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14785lt_cv_nm_interface \ 14786nm_file_list_spec \ 14787lt_cv_truncate_bin \ 14788lt_prog_compiler_no_builtin_flag \ 14789lt_prog_compiler_pic \ 14790lt_prog_compiler_wl \ 14791lt_prog_compiler_static \ 14792lt_cv_prog_compiler_c_o \ 14793need_locks \ 14794MANIFEST_TOOL \ 14795DSYMUTIL \ 14796NMEDIT \ 14797LIPO \ 14798OTOOL \ 14799OTOOL64 \ 14800shrext_cmds \ 14801export_dynamic_flag_spec \ 14802whole_archive_flag_spec \ 14803compiler_needs_object \ 14804with_gnu_ld \ 14805allow_undefined_flag \ 14806no_undefined_flag \ 14807hardcode_libdir_flag_spec \ 14808hardcode_libdir_separator \ 14809exclude_expsyms \ 14810include_expsyms \ 14811file_list_spec \ 14812variables_saved_for_relink \ 14813libname_spec \ 14814library_names_spec \ 14815soname_spec \ 14816install_override_mode \ 14817finish_eval \ 14818old_striplib \ 14819striplib; do 14820 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14821 *[\\\\\\\`\\"\\\$]*) 14822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14823 ;; 14824 *) 14825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14826 ;; 14827 esac 14828done 14829 14830# Double-quote double-evaled strings. 14831for var in reload_cmds \ 14832old_postinstall_cmds \ 14833old_postuninstall_cmds \ 14834old_archive_cmds \ 14835extract_expsyms_cmds \ 14836old_archive_from_new_cmds \ 14837old_archive_from_expsyms_cmds \ 14838archive_cmds \ 14839archive_expsym_cmds \ 14840module_cmds \ 14841module_expsym_cmds \ 14842export_symbols_cmds \ 14843prelink_cmds \ 14844postlink_cmds \ 14845postinstall_cmds \ 14846postuninstall_cmds \ 14847finish_cmds \ 14848sys_lib_search_path_spec \ 14849configure_time_dlsearch_path \ 14850configure_time_lt_sys_library_path; do 14851 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14852 *[\\\\\\\`\\"\\\$]*) 14853 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14854 ;; 14855 *) 14856 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14857 ;; 14858 esac 14859done 14860 14861ac_aux_dir='$ac_aux_dir' 14862 14863# See if we are running on zsh, and set the options that allow our 14864# commands through without removal of \ escapes INIT. 14865if test -n "\${ZSH_VERSION+set}"; then 14866 setopt NO_GLOB_SUBST 14867fi 14868 14869 14870 PACKAGE='$PACKAGE' 14871 VERSION='$VERSION' 14872 RM='$RM' 14873 ofile='$ofile' 14874 14875 14876 14877 14878_ACEOF 14879 14880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14881 14882# Handling of arguments. 14883for ac_config_target in $ac_config_targets 14884do 14885 case $ac_config_target in 14886 "src/pkgconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/pkgconfig.h:cnf/pkgconfig.h.in" ;; 14887 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14888 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14889 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14890 14891 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14892 esac 14893done 14894 14895 14896# If the user did not use the arguments to specify the items to instantiate, 14897# then the envvar interface is used. Set only those that are not. 14898# We use the long form for the default assignment because of an extremely 14899# bizarre bug on SunOS 4.1.3. 14900if $ac_need_defaults; then 14901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14904fi 14905 14906# Have a temporary directory for convenience. Make it in the build tree 14907# simply because there is no reason against having it here, and in addition, 14908# creating and moving files from /tmp can sometimes cause problems. 14909# Hook for its removal unless debugging. 14910# Note that there is a small window in which the directory will not be cleaned: 14911# after its creation but before its name has been assigned to `$tmp'. 14912$debug || 14913{ 14914 tmp= ac_tmp= 14915 trap 'exit_status=$? 14916 : "${ac_tmp:=$tmp}" 14917 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14918' 0 14919 trap 'as_fn_exit 1' 1 2 13 15 14920} 14921# Create a (secure) tmp directory for tmp files. 14922 14923{ 14924 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14925 test -d "$tmp" 14926} || 14927{ 14928 tmp=./conf$$-$RANDOM 14929 (umask 077 && mkdir "$tmp") 14930} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14931ac_tmp=$tmp 14932 14933# Set up the scripts for CONFIG_FILES section. 14934# No need to generate them if there are no CONFIG_FILES. 14935# This happens for instance with `./config.status config.h'. 14936if test -n "$CONFIG_FILES"; then 14937 14938 14939ac_cr=`echo X | tr X '\015'` 14940# On cygwin, bash can eat \r inside `` if the user requested igncr. 14941# But we know of no other shell where ac_cr would be empty at this 14942# point, so we can use a bashism as a fallback. 14943if test "x$ac_cr" = x; then 14944 eval ac_cr=\$\'\\r\' 14945fi 14946ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14947if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14948 ac_cs_awk_cr='\\r' 14949else 14950 ac_cs_awk_cr=$ac_cr 14951fi 14952 14953echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14954_ACEOF 14955 14956 14957{ 14958 echo "cat >conf$$subs.awk <<_ACEOF" && 14959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14960 echo "_ACEOF" 14961} >conf$$subs.sh || 14962 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14963ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14964ac_delim='%!_!# ' 14965for ac_last_try in false false false false false :; do 14966 . ./conf$$subs.sh || 14967 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14968 14969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14970 if test $ac_delim_n = $ac_delim_num; then 14971 break 14972 elif $ac_last_try; then 14973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14974 else 14975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14976 fi 14977done 14978rm -f conf$$subs.sh 14979 14980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14981cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14982_ACEOF 14983sed -n ' 14984h 14985s/^/S["/; s/!.*/"]=/ 14986p 14987g 14988s/^[^!]*!// 14989:repl 14990t repl 14991s/'"$ac_delim"'$// 14992t delim 14993:nl 14994h 14995s/\(.\{148\}\)..*/\1/ 14996t more1 14997s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14998p 14999n 15000b repl 15001:more1 15002s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15003p 15004g 15005s/.\{148\}// 15006t nl 15007:delim 15008h 15009s/\(.\{148\}\)..*/\1/ 15010t more2 15011s/["\\]/\\&/g; s/^/"/; s/$/"/ 15012p 15013b 15014:more2 15015s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15016p 15017g 15018s/.\{148\}// 15019t delim 15020' <conf$$subs.awk | sed ' 15021/^[^""]/{ 15022 N 15023 s/\n// 15024} 15025' >>$CONFIG_STATUS || ac_write_fail=1 15026rm -f conf$$subs.awk 15027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15028_ACAWK 15029cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15030 for (key in S) S_is_set[key] = 1 15031 FS = "" 15032 15033} 15034{ 15035 line = $ 0 15036 nfields = split(line, field, "@") 15037 substed = 0 15038 len = length(field[1]) 15039 for (i = 2; i < nfields; i++) { 15040 key = field[i] 15041 keylen = length(key) 15042 if (S_is_set[key]) { 15043 value = S[key] 15044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15045 len += length(value) + length(field[++i]) 15046 substed = 1 15047 } else 15048 len += 1 + keylen 15049 } 15050 15051 print line 15052} 15053 15054_ACAWK 15055_ACEOF 15056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15057if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15058 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15059else 15060 cat 15061fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15062 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15063_ACEOF 15064 15065# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15066# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15067# trailing colons and then remove the whole line if VPATH becomes empty 15068# (actually we leave an empty line to preserve line numbers). 15069if test "x$srcdir" = x.; then 15070 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15071h 15072s/// 15073s/^/:/ 15074s/[ ]*$/:/ 15075s/:\$(srcdir):/:/g 15076s/:\${srcdir}:/:/g 15077s/:@srcdir@:/:/g 15078s/^:*// 15079s/:*$// 15080x 15081s/\(=[ ]*\).*/\1/ 15082G 15083s/\n// 15084s/^[^=]*=[ ]*$// 15085}' 15086fi 15087 15088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15089fi # test -n "$CONFIG_FILES" 15090 15091# Set up the scripts for CONFIG_HEADERS section. 15092# No need to generate them if there are no CONFIG_HEADERS. 15093# This happens for instance with `./config.status Makefile'. 15094if test -n "$CONFIG_HEADERS"; then 15095cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15096BEGIN { 15097_ACEOF 15098 15099# Transform confdefs.h into an awk script `defines.awk', embedded as 15100# here-document in config.status, that substitutes the proper values into 15101# config.h.in to produce config.h. 15102 15103# Create a delimiter string that does not exist in confdefs.h, to ease 15104# handling of long lines. 15105ac_delim='%!_!# ' 15106for ac_last_try in false false :; do 15107 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15108 if test -z "$ac_tt"; then 15109 break 15110 elif $ac_last_try; then 15111 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15112 else 15113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15114 fi 15115done 15116 15117# For the awk script, D is an array of macro values keyed by name, 15118# likewise P contains macro parameters if any. Preserve backslash 15119# newline sequences. 15120 15121ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15122sed -n ' 15123s/.\{148\}/&'"$ac_delim"'/g 15124t rset 15125:rset 15126s/^[ ]*#[ ]*define[ ][ ]*/ / 15127t def 15128d 15129:def 15130s/\\$// 15131t bsnl 15132s/["\\]/\\&/g 15133s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15134D["\1"]=" \3"/p 15135s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15136d 15137:bsnl 15138s/["\\]/\\&/g 15139s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15140D["\1"]=" \3\\\\\\n"\\/p 15141t cont 15142s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15143t cont 15144d 15145:cont 15146n 15147s/.\{148\}/&'"$ac_delim"'/g 15148t clear 15149:clear 15150s/\\$// 15151t bsnlc 15152s/["\\]/\\&/g; s/^/"/; s/$/"/p 15153d 15154:bsnlc 15155s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15156b cont 15157' <confdefs.h | sed ' 15158s/'"$ac_delim"'/"\\\ 15159"/g' >>$CONFIG_STATUS || ac_write_fail=1 15160 15161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15162 for (key in D) D_is_set[key] = 1 15163 FS = "" 15164} 15165/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15166 line = \$ 0 15167 split(line, arg, " ") 15168 if (arg[1] == "#") { 15169 defundef = arg[2] 15170 mac1 = arg[3] 15171 } else { 15172 defundef = substr(arg[1], 2) 15173 mac1 = arg[2] 15174 } 15175 split(mac1, mac2, "(") #) 15176 macro = mac2[1] 15177 prefix = substr(line, 1, index(line, defundef) - 1) 15178 if (D_is_set[macro]) { 15179 # Preserve the white space surrounding the "#". 15180 print prefix "define", macro P[macro] D[macro] 15181 next 15182 } else { 15183 # Replace #undef with comments. This is necessary, for example, 15184 # in the case of _POSIX_SOURCE, which is predefined and required 15185 # on some systems where configure will not decide to define it. 15186 if (defundef == "undef") { 15187 print "/*", prefix defundef, macro, "*/" 15188 next 15189 } 15190 } 15191} 15192{ print } 15193_ACAWK 15194_ACEOF 15195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15196 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15197fi # test -n "$CONFIG_HEADERS" 15198 15199 15200eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15201shift 15202for ac_tag 15203do 15204 case $ac_tag in 15205 :[FHLC]) ac_mode=$ac_tag; continue;; 15206 esac 15207 case $ac_mode$ac_tag in 15208 :[FHL]*:*);; 15209 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15210 :[FH]-) ac_tag=-:-;; 15211 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15212 esac 15213 ac_save_IFS=$IFS 15214 IFS=: 15215 set x $ac_tag 15216 IFS=$ac_save_IFS 15217 shift 15218 ac_file=$1 15219 shift 15220 15221 case $ac_mode in 15222 :L) ac_source=$1;; 15223 :[FH]) 15224 ac_file_inputs= 15225 for ac_f 15226 do 15227 case $ac_f in 15228 -) ac_f="$ac_tmp/stdin";; 15229 *) # Look for the file first in the build tree, then in the source tree 15230 # (if the path is not absolute). The absolute path cannot be DOS-style, 15231 # because $ac_f cannot contain `:'. 15232 test -f "$ac_f" || 15233 case $ac_f in 15234 [\\/$]*) false;; 15235 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15236 esac || 15237 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15238 esac 15239 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15240 as_fn_append ac_file_inputs " '$ac_f'" 15241 done 15242 15243 # Let's still pretend it is `configure' which instantiates (i.e., don't 15244 # use $as_me), people would be surprised to read: 15245 # /* config.h. Generated by config.status. */ 15246 configure_input='Generated from '` 15247 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15248 `' by configure.' 15249 if test x"$ac_file" != x-; then 15250 configure_input="$ac_file. $configure_input" 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15252$as_echo "$as_me: creating $ac_file" >&6;} 15253 fi 15254 # Neutralize special characters interpreted by sed in replacement strings. 15255 case $configure_input in #( 15256 *\&* | *\|* | *\\* ) 15257 ac_sed_conf_input=`$as_echo "$configure_input" | 15258 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15259 *) ac_sed_conf_input=$configure_input;; 15260 esac 15261 15262 case $ac_tag in 15263 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15265 esac 15266 ;; 15267 esac 15268 15269 ac_dir=`$as_dirname -- "$ac_file" || 15270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15271 X"$ac_file" : 'X\(//\)[^/]' \| \ 15272 X"$ac_file" : 'X\(//\)$' \| \ 15273 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15274$as_echo X"$ac_file" | 15275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15276 s//\1/ 15277 q 15278 } 15279 /^X\(\/\/\)[^/].*/{ 15280 s//\1/ 15281 q 15282 } 15283 /^X\(\/\/\)$/{ 15284 s//\1/ 15285 q 15286 } 15287 /^X\(\/\).*/{ 15288 s//\1/ 15289 q 15290 } 15291 s/.*/./; q'` 15292 as_dir="$ac_dir"; as_fn_mkdir_p 15293 ac_builddir=. 15294 15295case "$ac_dir" in 15296.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15297*) 15298 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15299 # A ".." for each directory in $ac_dir_suffix. 15300 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15301 case $ac_top_builddir_sub in 15302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15304 esac ;; 15305esac 15306ac_abs_top_builddir=$ac_pwd 15307ac_abs_builddir=$ac_pwd$ac_dir_suffix 15308# for backward compatibility: 15309ac_top_builddir=$ac_top_build_prefix 15310 15311case $srcdir in 15312 .) # We are building in place. 15313 ac_srcdir=. 15314 ac_top_srcdir=$ac_top_builddir_sub 15315 ac_abs_top_srcdir=$ac_pwd ;; 15316 [\\/]* | ?:[\\/]* ) # Absolute name. 15317 ac_srcdir=$srcdir$ac_dir_suffix; 15318 ac_top_srcdir=$srcdir 15319 ac_abs_top_srcdir=$srcdir ;; 15320 *) # Relative name. 15321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15322 ac_top_srcdir=$ac_top_build_prefix$srcdir 15323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15324esac 15325ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15326 15327 15328 case $ac_mode in 15329 :F) 15330 # 15331 # CONFIG_FILE 15332 # 15333 15334 case $INSTALL in 15335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15336 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15337 esac 15338 ac_MKDIR_P=$MKDIR_P 15339 case $MKDIR_P in 15340 [\\/$]* | ?:[\\/]* ) ;; 15341 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15342 esac 15343_ACEOF 15344 15345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15346# If the template does not know about datarootdir, expand it. 15347# FIXME: This hack should be removed a few years after 2.60. 15348ac_datarootdir_hack=; ac_datarootdir_seen= 15349ac_sed_dataroot=' 15350/datarootdir/ { 15351 p 15352 q 15353} 15354/@datadir@/p 15355/@docdir@/p 15356/@infodir@/p 15357/@localedir@/p 15358/@mandir@/p' 15359case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15360*datarootdir*) ac_datarootdir_seen=yes;; 15361*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15363$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15364_ACEOF 15365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15366 ac_datarootdir_hack=' 15367 s&@datadir@&$datadir&g 15368 s&@docdir@&$docdir&g 15369 s&@infodir@&$infodir&g 15370 s&@localedir@&$localedir&g 15371 s&@mandir@&$mandir&g 15372 s&\\\${datarootdir}&$datarootdir&g' ;; 15373esac 15374_ACEOF 15375 15376# Neutralize VPATH when `$srcdir' = `.'. 15377# Shell code in configure.ac might set extrasub. 15378# FIXME: do we really want to maintain this feature? 15379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15380ac_sed_extra="$ac_vpsub 15381$extrasub 15382_ACEOF 15383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15384:t 15385/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15386s|@configure_input@|$ac_sed_conf_input|;t t 15387s&@top_builddir@&$ac_top_builddir_sub&;t t 15388s&@top_build_prefix@&$ac_top_build_prefix&;t t 15389s&@srcdir@&$ac_srcdir&;t t 15390s&@abs_srcdir@&$ac_abs_srcdir&;t t 15391s&@top_srcdir@&$ac_top_srcdir&;t t 15392s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15393s&@builddir@&$ac_builddir&;t t 15394s&@abs_builddir@&$ac_abs_builddir&;t t 15395s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15396s&@INSTALL@&$ac_INSTALL&;t t 15397s&@MKDIR_P@&$ac_MKDIR_P&;t t 15398$ac_datarootdir_hack 15399" 15400eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15401 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15402 15403test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15406 "$ac_tmp/out"`; test -z "$ac_out"; } && 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15408which seems to be undefined. Please make sure it is defined" >&5 15409$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15410which seems to be undefined. Please make sure it is defined" >&2;} 15411 15412 rm -f "$ac_tmp/stdin" 15413 case $ac_file in 15414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15416 esac \ 15417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15418 ;; 15419 :H) 15420 # 15421 # CONFIG_HEADER 15422 # 15423 if test x"$ac_file" != x-; then 15424 { 15425 $as_echo "/* $configure_input */" \ 15426 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15427 } >"$ac_tmp/config.h" \ 15428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15429 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15431$as_echo "$as_me: $ac_file is unchanged" >&6;} 15432 else 15433 rm -f "$ac_file" 15434 mv "$ac_tmp/config.h" "$ac_file" \ 15435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15436 fi 15437 else 15438 $as_echo "/* $configure_input */" \ 15439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15440 || as_fn_error $? "could not create -" "$LINENO" 5 15441 fi 15442# Compute "$ac_file"'s index in $config_headers. 15443_am_arg="$ac_file" 15444_am_stamp_count=1 15445for _am_header in $config_headers :; do 15446 case $_am_header in 15447 $_am_arg | $_am_arg:* ) 15448 break ;; 15449 * ) 15450 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15451 esac 15452done 15453echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15454$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15455 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15456 X"$_am_arg" : 'X\(//\)$' \| \ 15457 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15458$as_echo X"$_am_arg" | 15459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15460 s//\1/ 15461 q 15462 } 15463 /^X\(\/\/\)[^/].*/{ 15464 s//\1/ 15465 q 15466 } 15467 /^X\(\/\/\)$/{ 15468 s//\1/ 15469 q 15470 } 15471 /^X\(\/\).*/{ 15472 s//\1/ 15473 q 15474 } 15475 s/.*/./; q'`/stamp-h$_am_stamp_count 15476 ;; 15477 15478 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15479$as_echo "$as_me: executing $ac_file commands" >&6;} 15480 ;; 15481 esac 15482 15483 15484 case $ac_file$ac_mode in 15485 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15486 # Older Autoconf quotes --file arguments for eval, but not when files 15487 # are listed without --file. Let's play safe and only enable the eval 15488 # if we detect the quoting. 15489 case $CONFIG_FILES in 15490 *\'*) eval set x "$CONFIG_FILES" ;; 15491 *) set x $CONFIG_FILES ;; 15492 esac 15493 shift 15494 for mf 15495 do 15496 # Strip MF so we end up with the name of the file. 15497 mf=`echo "$mf" | sed -e 's/:.*$//'` 15498 # Check whether this is an Automake generated Makefile or not. 15499 # We used to match only the files named 'Makefile.in', but 15500 # some people rename them; so instead we look at the file content. 15501 # Grep'ing the first line is not enough: some people post-process 15502 # each Makefile.in and add a new line on top of each file to say so. 15503 # Grep'ing the whole file is not good either: AIX grep has a line 15504 # limit of 2048, but all sed's we know have understand at least 4000. 15505 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15506 dirpart=`$as_dirname -- "$mf" || 15507$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15508 X"$mf" : 'X\(//\)[^/]' \| \ 15509 X"$mf" : 'X\(//\)$' \| \ 15510 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15511$as_echo X"$mf" | 15512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15513 s//\1/ 15514 q 15515 } 15516 /^X\(\/\/\)[^/].*/{ 15517 s//\1/ 15518 q 15519 } 15520 /^X\(\/\/\)$/{ 15521 s//\1/ 15522 q 15523 } 15524 /^X\(\/\).*/{ 15525 s//\1/ 15526 q 15527 } 15528 s/.*/./; q'` 15529 else 15530 continue 15531 fi 15532 # Extract the definition of DEPDIR, am__include, and am__quote 15533 # from the Makefile without running 'make'. 15534 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15535 test -z "$DEPDIR" && continue 15536 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15537 test -z "$am__include" && continue 15538 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15539 # Find all dependency output files, they are included files with 15540 # $(DEPDIR) in their names. We invoke sed twice because it is the 15541 # simplest approach to changing $(DEPDIR) to its actual value in the 15542 # expansion. 15543 for file in `sed -n " 15544 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15545 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15546 # Make sure the directory exists. 15547 test -f "$dirpart/$file" && continue 15548 fdir=`$as_dirname -- "$file" || 15549$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15550 X"$file" : 'X\(//\)[^/]' \| \ 15551 X"$file" : 'X\(//\)$' \| \ 15552 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15553$as_echo X"$file" | 15554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15555 s//\1/ 15556 q 15557 } 15558 /^X\(\/\/\)[^/].*/{ 15559 s//\1/ 15560 q 15561 } 15562 /^X\(\/\/\)$/{ 15563 s//\1/ 15564 q 15565 } 15566 /^X\(\/\).*/{ 15567 s//\1/ 15568 q 15569 } 15570 s/.*/./; q'` 15571 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15572 # echo "creating $dirpart/$file" 15573 echo '# dummy' > "$dirpart/$file" 15574 done 15575 done 15576} 15577 ;; 15578 "libtool":C) 15579 15580 # See if we are running on zsh, and set the options that allow our 15581 # commands through without removal of \ escapes. 15582 if test -n "${ZSH_VERSION+set}"; then 15583 setopt NO_GLOB_SUBST 15584 fi 15585 15586 cfgfile=${ofile}T 15587 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15588 $RM "$cfgfile" 15589 15590 cat <<_LT_EOF >> "$cfgfile" 15591#! $SHELL 15592# Generated automatically by $as_me ($PACKAGE) $VERSION 15593# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15594 15595# Provide generalized library-building support services. 15596# Written by Gordon Matzigkeit, 1996 15597 15598# Copyright (C) 2014 Free Software Foundation, Inc. 15599# This is free software; see the source for copying conditions. There is NO 15600# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15601 15602# GNU Libtool is free software; you can redistribute it and/or modify 15603# it under the terms of the GNU General Public License as published by 15604# the Free Software Foundation; either version 2 of of the License, or 15605# (at your option) any later version. 15606# 15607# As a special exception to the GNU General Public License, if you 15608# distribute this file as part of a program or library that is built 15609# using GNU Libtool, you may include this file under the same 15610# distribution terms that you use for the rest of that program. 15611# 15612# GNU Libtool is distributed in the hope that it will be useful, but 15613# WITHOUT ANY WARRANTY; without even the implied warranty of 15614# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15615# GNU General Public License for more details. 15616# 15617# You should have received a copy of the GNU General Public License 15618# along with this program. If not, see <http://www.gnu.org/licenses/>. 15619 15620 15621# The names of the tagged configurations supported by this script. 15622available_tags='' 15623 15624# Configured defaults for sys_lib_dlsearch_path munging. 15625: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15626 15627# ### BEGIN LIBTOOL CONFIG 15628 15629# Which release of libtool.m4 was used? 15630macro_version=$macro_version 15631macro_revision=$macro_revision 15632 15633# Whether or not to build static libraries. 15634build_old_libs=$enable_static 15635 15636# Assembler program. 15637AS=$lt_AS 15638 15639# DLL creation program. 15640DLLTOOL=$lt_DLLTOOL 15641 15642# Object dumper program. 15643OBJDUMP=$lt_OBJDUMP 15644 15645# Whether or not to build shared libraries. 15646build_libtool_libs=$enable_shared 15647 15648# What type of objects to build. 15649pic_mode=$pic_mode 15650 15651# Whether or not to optimize for fast installation. 15652fast_install=$enable_fast_install 15653 15654# Shared archive member basename,for filename based shared library versioning on AIX. 15655shared_archive_member_spec=$shared_archive_member_spec 15656 15657# Shell to use when invoking shell scripts. 15658SHELL=$lt_SHELL 15659 15660# An echo program that protects backslashes. 15661ECHO=$lt_ECHO 15662 15663# The PATH separator for the build system. 15664PATH_SEPARATOR=$lt_PATH_SEPARATOR 15665 15666# The host system. 15667host_alias=$host_alias 15668host=$host 15669host_os=$host_os 15670 15671# The build system. 15672build_alias=$build_alias 15673build=$build 15674build_os=$build_os 15675 15676# A sed program that does not truncate output. 15677SED=$lt_SED 15678 15679# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15680Xsed="\$SED -e 1s/^X//" 15681 15682# A grep program that handles long lines. 15683GREP=$lt_GREP 15684 15685# An ERE matcher. 15686EGREP=$lt_EGREP 15687 15688# A literal string matcher. 15689FGREP=$lt_FGREP 15690 15691# A BSD- or MS-compatible name lister. 15692NM=$lt_NM 15693 15694# Whether we need soft or hard links. 15695LN_S=$lt_LN_S 15696 15697# What is the maximum length of a command? 15698max_cmd_len=$max_cmd_len 15699 15700# Object file suffix (normally "o"). 15701objext=$ac_objext 15702 15703# Executable file suffix (normally ""). 15704exeext=$exeext 15705 15706# whether the shell understands "unset". 15707lt_unset=$lt_unset 15708 15709# turn spaces into newlines. 15710SP2NL=$lt_lt_SP2NL 15711 15712# turn newlines into spaces. 15713NL2SP=$lt_lt_NL2SP 15714 15715# convert \$build file names to \$host format. 15716to_host_file_cmd=$lt_cv_to_host_file_cmd 15717 15718# convert \$build files to toolchain format. 15719to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15720 15721# Method to check whether dependent libraries are shared objects. 15722deplibs_check_method=$lt_deplibs_check_method 15723 15724# Command to use when deplibs_check_method = "file_magic". 15725file_magic_cmd=$lt_file_magic_cmd 15726 15727# How to find potential files when deplibs_check_method = "file_magic". 15728file_magic_glob=$lt_file_magic_glob 15729 15730# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15731want_nocaseglob=$lt_want_nocaseglob 15732 15733# Command to associate shared and link libraries. 15734sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15735 15736# The archiver. 15737AR=$lt_AR 15738 15739# Flags to create an archive. 15740AR_FLAGS=$lt_AR_FLAGS 15741 15742# How to feed a file listing to the archiver. 15743archiver_list_spec=$lt_archiver_list_spec 15744 15745# A symbol stripping program. 15746STRIP=$lt_STRIP 15747 15748# Commands used to install an old-style archive. 15749RANLIB=$lt_RANLIB 15750old_postinstall_cmds=$lt_old_postinstall_cmds 15751old_postuninstall_cmds=$lt_old_postuninstall_cmds 15752 15753# Whether to use a lock for old archive extraction. 15754lock_old_archive_extraction=$lock_old_archive_extraction 15755 15756# A C compiler. 15757LTCC=$lt_CC 15758 15759# LTCC compiler flags. 15760LTCFLAGS=$lt_CFLAGS 15761 15762# Take the output of nm and produce a listing of raw symbols and C names. 15763global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15764 15765# Transform the output of nm in a proper C declaration. 15766global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15767 15768# Transform the output of nm into a list of symbols to manually relocate. 15769global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15770 15771# Transform the output of nm in a C name address pair. 15772global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15773 15774# Transform the output of nm in a C name address pair when lib prefix is needed. 15775global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15776 15777# The name lister interface. 15778nm_interface=$lt_lt_cv_nm_interface 15779 15780# Specify filename containing input files for \$NM. 15781nm_file_list_spec=$lt_nm_file_list_spec 15782 15783# The root where to search for dependent libraries,and where our libraries should be installed. 15784lt_sysroot=$lt_sysroot 15785 15786# Command to truncate a binary pipe. 15787lt_truncate_bin=$lt_lt_cv_truncate_bin 15788 15789# The name of the directory that contains temporary libtool files. 15790objdir=$objdir 15791 15792# Used to examine libraries when file_magic_cmd begins with "file". 15793MAGIC_CMD=$MAGIC_CMD 15794 15795# Must we lock files when doing compilation? 15796need_locks=$lt_need_locks 15797 15798# Manifest tool. 15799MANIFEST_TOOL=$lt_MANIFEST_TOOL 15800 15801# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15802DSYMUTIL=$lt_DSYMUTIL 15803 15804# Tool to change global to local symbols on Mac OS X. 15805NMEDIT=$lt_NMEDIT 15806 15807# Tool to manipulate fat objects and archives on Mac OS X. 15808LIPO=$lt_LIPO 15809 15810# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15811OTOOL=$lt_OTOOL 15812 15813# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15814OTOOL64=$lt_OTOOL64 15815 15816# Old archive suffix (normally "a"). 15817libext=$libext 15818 15819# Shared library suffix (normally ".so"). 15820shrext_cmds=$lt_shrext_cmds 15821 15822# The commands to extract the exported symbol list from a shared archive. 15823extract_expsyms_cmds=$lt_extract_expsyms_cmds 15824 15825# Variables whose values should be saved in libtool wrapper scripts and 15826# restored at link time. 15827variables_saved_for_relink=$lt_variables_saved_for_relink 15828 15829# Do we need the "lib" prefix for modules? 15830need_lib_prefix=$need_lib_prefix 15831 15832# Do we need a version for libraries? 15833need_version=$need_version 15834 15835# Library versioning type. 15836version_type=$version_type 15837 15838# Shared library runtime path variable. 15839runpath_var=$runpath_var 15840 15841# Shared library path variable. 15842shlibpath_var=$shlibpath_var 15843 15844# Is shlibpath searched before the hard-coded library search path? 15845shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15846 15847# Format of library name prefix. 15848libname_spec=$lt_libname_spec 15849 15850# List of archive names. First name is the real one, the rest are links. 15851# The last name is the one that the linker finds with -lNAME 15852library_names_spec=$lt_library_names_spec 15853 15854# The coded name of the library, if different from the real name. 15855soname_spec=$lt_soname_spec 15856 15857# Permission mode override for installation of shared libraries. 15858install_override_mode=$lt_install_override_mode 15859 15860# Command to use after installation of a shared archive. 15861postinstall_cmds=$lt_postinstall_cmds 15862 15863# Command to use after uninstallation of a shared archive. 15864postuninstall_cmds=$lt_postuninstall_cmds 15865 15866# Commands used to finish a libtool library installation in a directory. 15867finish_cmds=$lt_finish_cmds 15868 15869# As "finish_cmds", except a single script fragment to be evaled but 15870# not shown. 15871finish_eval=$lt_finish_eval 15872 15873# Whether we should hardcode library paths into libraries. 15874hardcode_into_libs=$hardcode_into_libs 15875 15876# Compile-time system search path for libraries. 15877sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15878 15879# Detected run-time system search path for libraries. 15880sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15881 15882# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15883configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15884 15885# Whether dlopen is supported. 15886dlopen_support=$enable_dlopen 15887 15888# Whether dlopen of programs is supported. 15889dlopen_self=$enable_dlopen_self 15890 15891# Whether dlopen of statically linked programs is supported. 15892dlopen_self_static=$enable_dlopen_self_static 15893 15894# Commands to strip libraries. 15895old_striplib=$lt_old_striplib 15896striplib=$lt_striplib 15897 15898 15899# The linker used to build libraries. 15900LD=$lt_LD 15901 15902# How to create reloadable object files. 15903reload_flag=$lt_reload_flag 15904reload_cmds=$lt_reload_cmds 15905 15906# Commands used to build an old-style archive. 15907old_archive_cmds=$lt_old_archive_cmds 15908 15909# A language specific compiler. 15910CC=$lt_compiler 15911 15912# Is the compiler the GNU compiler? 15913with_gcc=$GCC 15914 15915# Compiler flag to turn off builtin functions. 15916no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15917 15918# Additional compiler flags for building library objects. 15919pic_flag=$lt_lt_prog_compiler_pic 15920 15921# How to pass a linker flag through the compiler. 15922wl=$lt_lt_prog_compiler_wl 15923 15924# Compiler flag to prevent dynamic linking. 15925link_static_flag=$lt_lt_prog_compiler_static 15926 15927# Does compiler simultaneously support -c and -o options? 15928compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15929 15930# Whether or not to add -lc for building shared libraries. 15931build_libtool_need_lc=$archive_cmds_need_lc 15932 15933# Whether or not to disallow shared libs when runtime libs are static. 15934allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15935 15936# Compiler flag to allow reflexive dlopens. 15937export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15938 15939# Compiler flag to generate shared objects directly from archives. 15940whole_archive_flag_spec=$lt_whole_archive_flag_spec 15941 15942# Whether the compiler copes with passing no objects directly. 15943compiler_needs_object=$lt_compiler_needs_object 15944 15945# Create an old-style archive from a shared archive. 15946old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15947 15948# Create a temporary old-style archive to link instead of a shared archive. 15949old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15950 15951# Commands used to build a shared archive. 15952archive_cmds=$lt_archive_cmds 15953archive_expsym_cmds=$lt_archive_expsym_cmds 15954 15955# Commands used to build a loadable module if different from building 15956# a shared archive. 15957module_cmds=$lt_module_cmds 15958module_expsym_cmds=$lt_module_expsym_cmds 15959 15960# Whether we are building with GNU ld or not. 15961with_gnu_ld=$lt_with_gnu_ld 15962 15963# Flag that allows shared libraries with undefined symbols to be built. 15964allow_undefined_flag=$lt_allow_undefined_flag 15965 15966# Flag that enforces no undefined symbols. 15967no_undefined_flag=$lt_no_undefined_flag 15968 15969# Flag to hardcode \$libdir into a binary during linking. 15970# This must work even if \$libdir does not exist 15971hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15972 15973# Whether we need a single "-rpath" flag with a separated argument. 15974hardcode_libdir_separator=$lt_hardcode_libdir_separator 15975 15976# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15977# DIR into the resulting binary. 15978hardcode_direct=$hardcode_direct 15979 15980# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15981# DIR into the resulting binary and the resulting library dependency is 15982# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15983# library is relocated. 15984hardcode_direct_absolute=$hardcode_direct_absolute 15985 15986# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15987# into the resulting binary. 15988hardcode_minus_L=$hardcode_minus_L 15989 15990# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15991# into the resulting binary. 15992hardcode_shlibpath_var=$hardcode_shlibpath_var 15993 15994# Set to "yes" if building a shared library automatically hardcodes DIR 15995# into the library and all subsequent libraries and executables linked 15996# against it. 15997hardcode_automatic=$hardcode_automatic 15998 15999# Set to yes if linker adds runtime paths of dependent libraries 16000# to runtime path list. 16001inherit_rpath=$inherit_rpath 16002 16003# Whether libtool must link a program against all its dependency libraries. 16004link_all_deplibs=$link_all_deplibs 16005 16006# Set to "yes" if exported symbols are required. 16007always_export_symbols=$always_export_symbols 16008 16009# The commands to list exported symbols. 16010export_symbols_cmds=$lt_export_symbols_cmds 16011 16012# Symbols that should not be listed in the preloaded symbols. 16013exclude_expsyms=$lt_exclude_expsyms 16014 16015# Symbols that must always be exported. 16016include_expsyms=$lt_include_expsyms 16017 16018# Commands necessary for linking programs (against libraries) with templates. 16019prelink_cmds=$lt_prelink_cmds 16020 16021# Commands necessary for finishing linking programs. 16022postlink_cmds=$lt_postlink_cmds 16023 16024# Specify filename containing input files. 16025file_list_spec=$lt_file_list_spec 16026 16027# How to hardcode a shared library path into an executable. 16028hardcode_action=$hardcode_action 16029 16030# ### END LIBTOOL CONFIG 16031 16032_LT_EOF 16033 16034 cat <<'_LT_EOF' >> "$cfgfile" 16035 16036# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 16037 16038# func_munge_path_list VARIABLE PATH 16039# ----------------------------------- 16040# VARIABLE is name of variable containing _space_ separated list of 16041# directories to be munged by the contents of PATH, which is string 16042# having a format: 16043# "DIR[:DIR]:" 16044# string "DIR[ DIR]" will be prepended to VARIABLE 16045# ":DIR[:DIR]" 16046# string "DIR[ DIR]" will be appended to VARIABLE 16047# "DIRP[:DIRP]::[DIRA:]DIRA" 16048# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 16049# "DIRA[ DIRA]" will be appended to VARIABLE 16050# "DIR[:DIR]" 16051# VARIABLE will be replaced by "DIR[ DIR]" 16052func_munge_path_list () 16053{ 16054 case x$2 in 16055 x) 16056 ;; 16057 *:) 16058 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 16059 ;; 16060 x:*) 16061 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 16062 ;; 16063 *::*) 16064 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 16065 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 16066 ;; 16067 *) 16068 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 16069 ;; 16070 esac 16071} 16072 16073 16074# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16075func_cc_basename () 16076{ 16077 for cc_temp in $*""; do 16078 case $cc_temp in 16079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16081 \-*) ;; 16082 *) break;; 16083 esac 16084 done 16085 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16086} 16087 16088 16089# ### END FUNCTIONS SHARED WITH CONFIGURE 16090 16091_LT_EOF 16092 16093 case $host_os in 16094 aix3*) 16095 cat <<\_LT_EOF >> "$cfgfile" 16096# AIX sometimes has problems with the GCC collect2 program. For some 16097# reason, if we set the COLLECT_NAMES environment variable, the problems 16098# vanish in a puff of smoke. 16099if test set != "${COLLECT_NAMES+set}"; then 16100 COLLECT_NAMES= 16101 export COLLECT_NAMES 16102fi 16103_LT_EOF 16104 ;; 16105 esac 16106 16107 16108ltmain=$ac_aux_dir/ltmain.sh 16109 16110 16111 # We use sed instead of cat because bash on DJGPP gets confused if 16112 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16113 # text mode, it properly converts lines to CR/LF. This bash problem 16114 # is reportedly fixed, but why not run on old versions too? 16115 sed '$q' "$ltmain" >> "$cfgfile" \ 16116 || (rm -f "$cfgfile"; exit 1) 16117 16118 mv -f "$cfgfile" "$ofile" || 16119 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16120 chmod +x "$ofile" 16121 16122 ;; 16123 16124 esac 16125done # for ac_tag 16126 16127 16128as_fn_exit 0 16129_ACEOF 16130ac_clean_files=$ac_clean_files_save 16131 16132test $ac_write_fail = 0 || 16133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16134 16135 16136# configure is writing to config.log, and then calls config.status. 16137# config.status does its own redirection, appending to config.log. 16138# Unfortunately, on DOS this fails, as config.log is still kept open 16139# by configure, so config.status won't be able to write to it; its 16140# output is simply discarded. So we exec the FD to /dev/null, 16141# effectively closing config.log, so it can be properly (re)opened and 16142# appended to by config.status. When coming back to configure, we 16143# need to make the FD available again. 16144if test "$no_create" != yes; then 16145 ac_cs_success=: 16146 ac_config_status_args= 16147 test "$silent" = yes && 16148 ac_config_status_args="$ac_config_status_args --quiet" 16149 exec 5>/dev/null 16150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16151 exec 5>>config.log 16152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16153 # would make configure fail if this is the last instruction. 16154 $ac_cs_success || as_fn_exit 1 16155fi 16156if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16158$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16159fi 16160 16161