1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libjpeg 9.4.0. 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 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='libjpeg' 589PACKAGE_TARNAME='libjpeg' 590PACKAGE_VERSION='9.4.0' 591PACKAGE_STRING='libjpeg 9.4.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_subst_vars='am__EXEEXT_FALSE 632am__EXEEXT_TRUE 633LTLIBOBJS 634LIBOBJS 635JPEG_LIB_VERSION_MINOR 636JPEG_LIB_VERSION_MAJOR 637JPEG_LIB_VERSION 638MEMORYMGR 639LT_SYS_LIBRARY_PATH 640OTOOL64 641OTOOL 642LIPO 643NMEDIT 644DSYMUTIL 645MANIFEST_TOOL 646RANLIB 647NM 648ac_ct_DUMPBIN 649DUMPBIN 650LD 651FGREP 652SED 653LIBTOOL 654OBJDUMP 655DLLTOOL 656AS 657EGREP 658GREP 659HAVE_LD_VERSION_SCRIPT_FALSE 660HAVE_LD_VERSION_SCRIPT_TRUE 661ac_ct_AR 662AR 663LN_S 664CPP 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__include 673DEPDIR 674OBJEXT 675EXEEXT 676ac_ct_CC 677CPPFLAGS 678LDFLAGS 679CFLAGS 680CC 681MAINT 682MAINTAINER_MODE_FALSE 683MAINTAINER_MODE_TRUE 684AM_BACKSLASH 685AM_DEFAULT_VERBOSITY 686AM_DEFAULT_V 687AM_V 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708INSTALL_DATA 709INSTALL_SCRIPT 710INSTALL_PROGRAM 711target_os 712target_vendor 713target_cpu 714target 715host_os 716host_vendor 717host_cpu 718host 719build_os 720build_vendor 721build_cpu 722build 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL 761am__quote' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_silent_rules 766enable_maintainer_mode 767enable_dependency_tracking 768enable_ld_version_script 769enable_shared 770enable_static 771with_pic 772enable_fast_install 773with_aix_soname 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777enable_maxmem 778' 779 ac_precious_vars='build_alias 780host_alias 781target_alias 782CC 783CFLAGS 784LDFLAGS 785LIBS 786CPPFLAGS 787CPP 788LT_SYS_LIBRARY_PATH' 789 790 791# Initialize some variables set by options. 792ac_init_help= 793ac_init_version=false 794ac_unrecognized_opts= 795ac_unrecognized_sep= 796# The variables have the same names as the options, with 797# dashes changed to underlines. 798cache_file=/dev/null 799exec_prefix=NONE 800no_create= 801no_recursion= 802prefix=NONE 803program_prefix=NONE 804program_suffix=NONE 805program_transform_name=s,x,x, 806silent= 807site= 808srcdir= 809verbose= 810x_includes=NONE 811x_libraries=NONE 812 813# Installation directory options. 814# These are left unexpanded so users can "make install exec_prefix=/foo" 815# and all the variables that are supposed to be based on exec_prefix 816# by default will actually change. 817# Use braces instead of parens because sh, perl, etc. also accept them. 818# (The list follows the same order as the GNU Coding Standards.) 819bindir='${exec_prefix}/bin' 820sbindir='${exec_prefix}/sbin' 821libexecdir='${exec_prefix}/libexec' 822datarootdir='${prefix}/share' 823datadir='${datarootdir}' 824sysconfdir='${prefix}/etc' 825sharedstatedir='${prefix}/com' 826localstatedir='${prefix}/var' 827includedir='${prefix}/include' 828oldincludedir='/usr/include' 829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 830infodir='${datarootdir}/info' 831htmldir='${docdir}' 832dvidir='${docdir}' 833pdfdir='${docdir}' 834psdir='${docdir}' 835libdir='${exec_prefix}/lib' 836localedir='${datarootdir}/locale' 837mandir='${datarootdir}/man' 838 839ac_prev= 840ac_dashdash= 841for ac_option 842do 843 # If the previous option needs an argument, assign it. 844 if test -n "$ac_prev"; then 845 eval $ac_prev=\$ac_option 846 ac_prev= 847 continue 848 fi 849 850 case $ac_option in 851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 852 *=) ac_optarg= ;; 853 *) ac_optarg=yes ;; 854 esac 855 856 # Accept the important Cygnus configure options, so we can diagnose typos. 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: $ac_useropt" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1080 ac_prev=sbindir ;; 1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1082 | --sbi=* | --sb=*) 1083 sbindir=$ac_optarg ;; 1084 1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1087 | --sharedst | --shareds | --shared | --share | --shar \ 1088 | --sha | --sh) 1089 ac_prev=sharedstatedir ;; 1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1093 | --sha=* | --sh=*) 1094 sharedstatedir=$ac_optarg ;; 1095 1096 -site | --site | --sit) 1097 ac_prev=site ;; 1098 -site=* | --site=* | --sit=*) 1099 site=$ac_optarg ;; 1100 1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1102 ac_prev=srcdir ;; 1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1104 srcdir=$ac_optarg ;; 1105 1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1107 | --syscon | --sysco | --sysc | --sys | --sy) 1108 ac_prev=sysconfdir ;; 1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1111 sysconfdir=$ac_optarg ;; 1112 1113 -target | --target | --targe | --targ | --tar | --ta | --t) 1114 ac_prev=target_alias ;; 1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1116 target_alias=$ac_optarg ;; 1117 1118 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1119 verbose=yes ;; 1120 1121 -version | --version | --versio | --versi | --vers | -V) 1122 ac_init_version=: ;; 1123 1124 -with-* | --with-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=\$ac_optarg ;; 1139 1140 -without-* | --without-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=no ;; 1155 1156 --x) 1157 # Obsolete; use --with-x. 1158 with_x=yes ;; 1159 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161 | --x-incl | --x-inc | --x-in | --x-i) 1162 ac_prev=x_includes ;; 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165 x_includes=$ac_optarg ;; 1166 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169 ac_prev=x_libraries ;; 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172 x_libraries=$ac_optarg ;; 1173 1174 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1175Try \`$0 --help' for more information" 1176 ;; 1177 1178 *=*) 1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1180 # Reject names that are not valid shell variable names. 1181 case $ac_envvar in #( 1182 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1184 esac 1185 eval $ac_envvar=\$ac_optarg 1186 export $ac_envvar ;; 1187 1188 *) 1189 # FIXME: should be removed in autoconf 3.0. 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1194 ;; 1195 1196 esac 1197done 1198 1199if test -n "$ac_prev"; then 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1201 as_fn_error $? "missing argument to $ac_option" 1202fi 1203 1204if test -n "$ac_unrecognized_opts"; then 1205 case $enable_option_checking in 1206 no) ;; 1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1209 esac 1210fi 1211 1212# Check all directory arguments for consistency. 1213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214 datadir sysconfdir sharedstatedir localstatedir includedir \ 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216 libdir localedir mandir 1217do 1218 eval ac_val=\$$ac_var 1219 # Remove trailing slashes. 1220 case $ac_val in 1221 */ ) 1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1223 eval $ac_var=\$ac_val;; 1224 esac 1225 # Be sure to have absolute directory names. 1226 case $ac_val in 1227 [\\/$]* | ?:[\\/]* ) continue;; 1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1229 esac 1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1231done 1232 1233# There might be people who depend on the old broken behavior: `$host' 1234# used to hold the argument of --host etc. 1235# FIXME: To remove some day. 1236build=$build_alias 1237host=$host_alias 1238target=$target_alias 1239 1240# FIXME: To remove some day. 1241if test "x$host_alias" != x; then 1242 if test "x$build_alias" = x; then 1243 cross_compiling=maybe 1244 elif test "x$build_alias" != "x$host_alias"; then 1245 cross_compiling=yes 1246 fi 1247fi 1248 1249ac_tool_prefix= 1250test -n "$host_alias" && ac_tool_prefix=$host_alias- 1251 1252test "$silent" = yes && exec 6>/dev/null 1253 1254 1255ac_pwd=`pwd` && test -n "$ac_pwd" && 1256ac_ls_di=`ls -di .` && 1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1258 as_fn_error $? "working directory cannot be determined" 1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1260 as_fn_error $? "pwd does not report name of working directory" 1261 1262 1263# Find the source files, if location was not specified. 1264if test -z "$srcdir"; then 1265 ac_srcdir_defaulted=yes 1266 # Try the directory containing this script, then the parent directory. 1267 ac_confdir=`$as_dirname -- "$as_myself" || 1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269 X"$as_myself" : 'X\(//\)[^/]' \| \ 1270 X"$as_myself" : 'X\(//\)$' \| \ 1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1272$as_echo X"$as_myself" | 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)[^/].*/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\).*/{ 1286 s//\1/ 1287 q 1288 } 1289 s/.*/./; q'` 1290 srcdir=$ac_confdir 1291 if test ! -r "$srcdir/$ac_unique_file"; then 1292 srcdir=.. 1293 fi 1294else 1295 ac_srcdir_defaulted=no 1296fi 1297if test ! -r "$srcdir/$ac_unique_file"; then 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1300fi 1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1302ac_abs_confdir=`( 1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1304 pwd)` 1305# When building in place, set srcdir=. 1306if test "$ac_abs_confdir" = "$ac_pwd"; then 1307 srcdir=. 1308fi 1309# Remove unnecessary trailing slashes from srcdir. 1310# Double slashes in file names in object file debugging info 1311# mess up M-x gdb in Emacs. 1312case $srcdir in 1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1314esac 1315for ac_var in $ac_precious_vars; do 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_env_${ac_var}_value=\$${ac_var} 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1320done 1321 1322# 1323# Report the --help message. 1324# 1325if test "$ac_init_help" = "long"; then 1326 # Omit some internal or obsolete options to make the list less imposing. 1327 # This message is too long to be a string in the A/UX 3.1 sh. 1328 cat <<_ACEOF 1329\`configure' configures libjpeg 9.4.0 to adapt to many kinds of systems. 1330 1331Usage: $0 [OPTION]... [VAR=VALUE]... 1332 1333To assign environment variables (e.g., CC, CFLAGS...), specify them as 1334VAR=VALUE. See below for descriptions of some of the useful variables. 1335 1336Defaults for the options are specified in brackets. 1337 1338Configuration: 1339 -h, --help display this help and exit 1340 --help=short display options specific to this package 1341 --help=recursive display the short help of all the included packages 1342 -V, --version display version information and exit 1343 -q, --quiet, --silent do not print \`checking ...' messages 1344 --cache-file=FILE cache test results in FILE [disabled] 1345 -C, --config-cache alias for \`--cache-file=config.cache' 1346 -n, --no-create do not create output files 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1348 1349Installation directories: 1350 --prefix=PREFIX install architecture-independent files in PREFIX 1351 [$ac_default_prefix] 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1353 [PREFIX] 1354 1355By default, \`make install' will install all the files in 1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1357an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1358for instance \`--prefix=\$HOME'. 1359 1360For better control, use the options below. 1361 1362Fine tuning of the installation directories: 1363 --bindir=DIR user executables [EPREFIX/bin] 1364 --sbindir=DIR system admin executables [EPREFIX/sbin] 1365 --libexecdir=DIR program executables [EPREFIX/libexec] 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382_ACEOF 1383 1384 cat <<\_ACEOF 1385 1386Program names: 1387 --program-prefix=PREFIX prepend PREFIX to installed program names 1388 --program-suffix=SUFFIX append SUFFIX to installed program names 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1390 1391System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394 --target=TARGET configure for building compilers for TARGET [HOST] 1395_ACEOF 1396fi 1397 1398if test -n "$ac_init_help"; then 1399 case $ac_init_help in 1400 short | recursive ) echo "Configuration of libjpeg 9.4.0:";; 1401 esac 1402 cat <<\_ACEOF 1403 1404Optional Features: 1405 --disable-option-checking ignore unrecognized --enable/--with options 1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1408 --enable-silent-rules less verbose build output (undo: "make V=1") 1409 --disable-silent-rules verbose build output (undo: "make V=0") 1410 --enable-maintainer-mode 1411 enable make rules and dependencies not useful (and 1412 sometimes confusing) to the casual installer 1413 --enable-dependency-tracking 1414 do not reject slow dependency extractors 1415 --disable-dependency-tracking 1416 speeds up one-time build 1417 --enable-ld-version-script 1418 enable linker version script (default is enabled 1419 when possible) 1420 --enable-shared[=PKGS] build shared libraries [default=yes] 1421 --enable-static[=PKGS] build static libraries [default=yes] 1422 --enable-fast-install[=PKGS] 1423 optimize for fast installation [default=yes] 1424 --disable-libtool-lock avoid locking (might break parallel builds) 1425 --enable-maxmem=N enable use of temp files, set max mem usage to N MB 1426 1427Optional Packages: 1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1430 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1431 both] 1432 --with-aix-soname=aix|svr4|both 1433 shared library versioning (aka "SONAME") variant to 1434 provide on AIX, [default=aix]. 1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1436 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1437 compiler's sysroot if not specified). 1438 1439Some influential environment variables: 1440 CC C compiler command 1441 CFLAGS C compiler flags 1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1443 nonstandard directory <lib dir> 1444 LIBS libraries to pass to the linker, e.g. -l<library> 1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1446 you have headers in a nonstandard directory <include dir> 1447 CPP C preprocessor 1448 LT_SYS_LIBRARY_PATH 1449 User-defined run-time library search path. 1450 1451Use these variables to override the choices made by `configure' or to help 1452it to find libraries and programs with nonstandard names/locations. 1453 1454Report bugs to the package provider. 1455_ACEOF 1456ac_status=$? 1457fi 1458 1459if test "$ac_init_help" = "recursive"; then 1460 # If there are subdirs, report their specific --help. 1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1462 test -d "$ac_dir" || 1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1464 continue 1465 ac_builddir=. 1466 1467case "$ac_dir" in 1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1469*) 1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1471 # A ".." for each directory in $ac_dir_suffix. 1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1473 case $ac_top_builddir_sub in 1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1476 esac ;; 1477esac 1478ac_abs_top_builddir=$ac_pwd 1479ac_abs_builddir=$ac_pwd$ac_dir_suffix 1480# for backward compatibility: 1481ac_top_builddir=$ac_top_build_prefix 1482 1483case $srcdir in 1484 .) # We are building in place. 1485 ac_srcdir=. 1486 ac_top_srcdir=$ac_top_builddir_sub 1487 ac_abs_top_srcdir=$ac_pwd ;; 1488 [\\/]* | ?:[\\/]* ) # Absolute name. 1489 ac_srcdir=$srcdir$ac_dir_suffix; 1490 ac_top_srcdir=$srcdir 1491 ac_abs_top_srcdir=$srcdir ;; 1492 *) # Relative name. 1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1494 ac_top_srcdir=$ac_top_build_prefix$srcdir 1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1496esac 1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1498 1499 cd "$ac_dir" || { ac_status=$?; continue; } 1500 # Check for guested configure. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512fi 1513 1514test -n "$ac_init_help" && exit $ac_status 1515if $ac_init_version; then 1516 cat <<\_ACEOF 1517libjpeg configure 9.4.0 1518generated by GNU Autoconf 2.69 1519 1520Copyright (C) 2012 Free Software Foundation, Inc. 1521This configure script is free software; the Free Software Foundation 1522gives unlimited permission to copy, distribute and modify it. 1523_ACEOF 1524 exit 1525fi 1526 1527## ------------------------ ## 1528## Autoconf initialization. ## 1529## ------------------------ ## 1530 1531# ac_fn_c_try_compile LINENO 1532# -------------------------- 1533# Try to compile conftest.$ac_ext, and return whether this succeeded. 1534ac_fn_c_try_compile () 1535{ 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 rm -f conftest.$ac_objext 1538 if { { ac_try="$ac_compile" 1539case "(($ac_try" in 1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1541 *) ac_try_echo=$ac_try;; 1542esac 1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1544$as_echo "$ac_try_echo"; } >&5 1545 (eval "$ac_compile") 2>conftest.err 1546 ac_status=$? 1547 if test -s conftest.err; then 1548 grep -v '^ *+' conftest.err >conftest.er1 1549 cat conftest.er1 >&5 1550 mv -f conftest.er1 conftest.err 1551 fi 1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1553 test $ac_status = 0; } && { 1554 test -z "$ac_c_werror_flag" || 1555 test ! -s conftest.err 1556 } && test -s conftest.$ac_objext; then : 1557 ac_retval=0 1558else 1559 $as_echo "$as_me: failed program was:" >&5 1560sed 's/^/| /' conftest.$ac_ext >&5 1561 1562 ac_retval=1 1563fi 1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1565 as_fn_set_status $ac_retval 1566 1567} # ac_fn_c_try_compile 1568 1569# ac_fn_c_try_cpp LINENO 1570# ---------------------- 1571# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1572ac_fn_c_try_cpp () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 if { { ac_try="$ac_cpp conftest.$ac_ext" 1576case "(($ac_try" in 1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1578 *) ac_try_echo=$ac_try;; 1579esac 1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1581$as_echo "$ac_try_echo"; } >&5 1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1583 ac_status=$? 1584 if test -s conftest.err; then 1585 grep -v '^ *+' conftest.err >conftest.er1 1586 cat conftest.er1 >&5 1587 mv -f conftest.er1 conftest.err 1588 fi 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } > conftest.i && { 1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1592 test ! -s conftest.err 1593 }; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} # ac_fn_c_try_cpp 1605 1606# ac_fn_c_try_link LINENO 1607# ----------------------- 1608# Try to link conftest.$ac_ext, and return whether this succeeded. 1609ac_fn_c_try_link () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 rm -f conftest.$ac_objext conftest$ac_exeext 1613 if { { ac_try="$ac_link" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_link") 2>conftest.err 1621 ac_status=$? 1622 if test -s conftest.err; then 1623 grep -v '^ *+' conftest.err >conftest.er1 1624 cat conftest.er1 >&5 1625 mv -f conftest.er1 conftest.err 1626 fi 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } && { 1629 test -z "$ac_c_werror_flag" || 1630 test ! -s conftest.err 1631 } && test -s conftest$ac_exeext && { 1632 test "$cross_compiling" = yes || 1633 test -x conftest$ac_exeext 1634 }; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1644 # interfere with the next link command; also delete a directory that is 1645 # left behind by Apple's compiler. We do this before executing the actions. 1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_link 1651 1652# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1653# ------------------------------------------------------- 1654# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1655# the include files in INCLUDES and setting the cache variable VAR 1656# accordingly. 1657ac_fn_c_check_header_mongrel () 1658{ 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 if eval \${$3+:} false; then : 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662$as_echo_n "checking for $2... " >&6; } 1663if eval \${$3+:} false; then : 1664 $as_echo_n "(cached) " >&6 1665fi 1666eval ac_res=\$$3 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668$as_echo "$ac_res" >&6; } 1669else 1670 # Is the header compilable? 1671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1672$as_echo_n "checking $2 usability... " >&6; } 1673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674/* end confdefs.h. */ 1675$4 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO"; then : 1679 ac_header_compiler=yes 1680else 1681 ac_header_compiler=no 1682fi 1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1685$as_echo "$ac_header_compiler" >&6; } 1686 1687# Is the header present? 1688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1689$as_echo_n "checking $2 presence... " >&6; } 1690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1691/* end confdefs.h. */ 1692#include <$2> 1693_ACEOF 1694if ac_fn_c_try_cpp "$LINENO"; then : 1695 ac_header_preproc=yes 1696else 1697 ac_header_preproc=no 1698fi 1699rm -f conftest.err conftest.i conftest.$ac_ext 1700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1701$as_echo "$ac_header_preproc" >&6; } 1702 1703# So? What about this header? 1704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1705 yes:no: ) 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1707$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1709$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1710 ;; 1711 no:yes:* ) 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1713$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1715$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1717$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1719$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1721$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1722 ;; 1723esac 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 eval "$3=\$ac_header_compiler" 1730fi 1731eval ac_res=\$$3 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733$as_echo "$ac_res" >&6; } 1734fi 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 1737} # ac_fn_c_check_header_mongrel 1738 1739# ac_fn_c_try_run LINENO 1740# ---------------------- 1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1742# that executables *can* be run. 1743ac_fn_c_try_run () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 if { { ac_try="$ac_link" 1747case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752$as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_link") 2>&5 1754 ac_status=$? 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1757 { { case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760esac 1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762$as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_try") 2>&5 1764 ac_status=$? 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; }; }; then : 1767 ac_retval=0 1768else 1769 $as_echo "$as_me: program exited with status $ac_status" >&5 1770 $as_echo "$as_me: failed program was:" >&5 1771sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=$ac_status 1774fi 1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 as_fn_set_status $ac_retval 1778 1779} # ac_fn_c_try_run 1780 1781# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1782# ------------------------------------------------------- 1783# Tests whether HEADER exists and can be compiled using the include files in 1784# INCLUDES, setting the cache variable VAR accordingly. 1785ac_fn_c_check_header_compile () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789$as_echo_n "checking for $2... " >&6; } 1790if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792else 1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1794/* end confdefs.h. */ 1795$4 1796#include <$2> 1797_ACEOF 1798if ac_fn_c_try_compile "$LINENO"; then : 1799 eval "$3=yes" 1800else 1801 eval "$3=no" 1802fi 1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1804fi 1805eval ac_res=\$$3 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1807$as_echo "$ac_res" >&6; } 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 1810} # ac_fn_c_check_header_compile 1811 1812# ac_fn_c_check_func LINENO FUNC VAR 1813# ---------------------------------- 1814# Tests whether FUNC exists, setting the cache variable VAR accordingly 1815ac_fn_c_check_func () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819$as_echo_n "checking for $2... " >&6; } 1820if eval \${$3+:} false; then : 1821 $as_echo_n "(cached) " >&6 1822else 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1827#define $2 innocuous_$2 1828 1829/* System header to define __stub macros and hopefully few prototypes, 1830 which can conflict with char $2 (); below. 1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1832 <limits.h> exists even on freestanding compilers. */ 1833 1834#ifdef __STDC__ 1835# include <limits.h> 1836#else 1837# include <assert.h> 1838#endif 1839 1840#undef $2 1841 1842/* Override any GCC internal prototype to avoid an error. 1843 Use char because int might match the return type of a GCC 1844 builtin and then its argument prototype would still apply. */ 1845#ifdef __cplusplus 1846extern "C" 1847#endif 1848char $2 (); 1849/* The GNU C library defines this for functions which it implements 1850 to always fail with ENOSYS. Some functions are actually named 1851 something starting with __ and the normal name is an alias. */ 1852#if defined __stub_$2 || defined __stub___$2 1853choke me 1854#endif 1855 1856int 1857main () 1858{ 1859return $2 (); 1860 ; 1861 return 0; 1862} 1863_ACEOF 1864if ac_fn_c_try_link "$LINENO"; then : 1865 eval "$3=yes" 1866else 1867 eval "$3=no" 1868fi 1869rm -f core conftest.err conftest.$ac_objext \ 1870 conftest$ac_exeext conftest.$ac_ext 1871fi 1872eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874$as_echo "$ac_res" >&6; } 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877} # ac_fn_c_check_func 1878cat >config.log <<_ACEOF 1879This file contains any messages produced by compilers while 1880running configure, to aid debugging if configure makes a mistake. 1881 1882It was created by libjpeg $as_me 9.4.0, which was 1883generated by GNU Autoconf 2.69. Invocation command line was 1884 1885 $ $0 $@ 1886 1887_ACEOF 1888exec 5>>config.log 1889{ 1890cat <<_ASUNAME 1891## --------- ## 1892## Platform. ## 1893## --------- ## 1894 1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1896uname -m = `(uname -m) 2>/dev/null || echo unknown` 1897uname -r = `(uname -r) 2>/dev/null || echo unknown` 1898uname -s = `(uname -s) 2>/dev/null || echo unknown` 1899uname -v = `(uname -v) 2>/dev/null || echo unknown` 1900 1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1902/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1903 1904/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1905/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1907/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1908/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1909/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1910/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1911 1912_ASUNAME 1913 1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915for as_dir in $PATH 1916do 1917 IFS=$as_save_IFS 1918 test -z "$as_dir" && as_dir=. 1919 $as_echo "PATH: $as_dir" 1920 done 1921IFS=$as_save_IFS 1922 1923} >&5 1924 1925cat >&5 <<_ACEOF 1926 1927 1928## ----------- ## 1929## Core tests. ## 1930## ----------- ## 1931 1932_ACEOF 1933 1934 1935# Keep a trace of the command line. 1936# Strip out --no-create and --no-recursion so they do not pile up. 1937# Strip out --silent because we don't want to record it for future runs. 1938# Also quote any args containing shell meta-characters. 1939# Make two passes to allow for proper duplicate-argument suppression. 1940ac_configure_args= 1941ac_configure_args0= 1942ac_configure_args1= 1943ac_must_keep_next=false 1944for ac_pass in 1 2 1945do 1946 for ac_arg 1947 do 1948 case $ac_arg in 1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951 | -silent | --silent | --silen | --sile | --sil) 1952 continue ;; 1953 *\'*) 1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955 esac 1956 case $ac_pass in 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958 2) 1959 as_fn_append ac_configure_args1 " '$ac_arg'" 1960 if test $ac_must_keep_next = true; then 1961 ac_must_keep_next=false # Got value, back to normal. 1962 else 1963 case $ac_arg in 1964 *=* | --config-cache | -C | -disable-* | --disable-* \ 1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967 | -with-* | --with-* | -without-* | --without-* | --x) 1968 case "$ac_configure_args0 " in 1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970 esac 1971 ;; 1972 -* ) ac_must_keep_next=true ;; 1973 esac 1974 fi 1975 as_fn_append ac_configure_args " '$ac_arg'" 1976 ;; 1977 esac 1978 done 1979done 1980{ ac_configure_args0=; unset ac_configure_args0;} 1981{ ac_configure_args1=; unset ac_configure_args1;} 1982 1983# When interrupted or exit'd, cleanup temporary files, and complete 1984# config.log. We remove comments because anyway the quotes in there 1985# would cause problems or look ugly. 1986# WARNING: Use '\'' to represent an apostrophe within the trap. 1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988trap 'exit_status=$? 1989 # Save into config.log some information that might help in debugging. 1990 { 1991 echo 1992 1993 $as_echo "## ---------------- ## 1994## Cache variables. ## 1995## ---------------- ##" 1996 echo 1997 # The following way of writing the cache mishandles newlines in values, 1998( 1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2000 eval ac_val=\$$ac_var 2001 case $ac_val in #( 2002 *${as_nl}*) 2003 case $ac_var in #( 2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2006 esac 2007 case $ac_var in #( 2008 _ | IFS | as_nl) ;; #( 2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2010 *) { eval $ac_var=; unset $ac_var;} ;; 2011 esac ;; 2012 esac 2013 done 2014 (set) 2>&1 | 2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2016 *${as_nl}ac_space=\ *) 2017 sed -n \ 2018 "s/'\''/'\''\\\\'\'''\''/g; 2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2020 ;; #( 2021 *) 2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2023 ;; 2024 esac | 2025 sort 2026) 2027 echo 2028 2029 $as_echo "## ----------------- ## 2030## Output variables. ## 2031## ----------------- ##" 2032 echo 2033 for ac_var in $ac_subst_vars 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 $as_echo "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 2043 if test -n "$ac_subst_files"; then 2044 $as_echo "## ------------------- ## 2045## File substitutions. ## 2046## ------------------- ##" 2047 echo 2048 for ac_var in $ac_subst_files 2049 do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in 2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2053 esac 2054 $as_echo "$ac_var='\''$ac_val'\''" 2055 done | sort 2056 echo 2057 fi 2058 2059 if test -s confdefs.h; then 2060 $as_echo "## ----------- ## 2061## confdefs.h. ## 2062## ----------- ##" 2063 echo 2064 cat confdefs.h 2065 echo 2066 fi 2067 test "$ac_signal" != 0 && 2068 $as_echo "$as_me: caught signal $ac_signal" 2069 $as_echo "$as_me: exit $exit_status" 2070 } >&5 2071 rm -f core *.core core.conftest.* && 2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2073 exit $exit_status 2074' 0 2075for ac_signal in 1 2 13 15; do 2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2077done 2078ac_signal=0 2079 2080# confdefs.h avoids OS command line length limits that DEFS can exceed. 2081rm -f -r conftest* confdefs.h 2082 2083$as_echo "/* confdefs.h */" > confdefs.h 2084 2085# Predefined preprocessor variables. 2086 2087cat >>confdefs.h <<_ACEOF 2088#define PACKAGE_NAME "$PACKAGE_NAME" 2089_ACEOF 2090 2091cat >>confdefs.h <<_ACEOF 2092#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2093_ACEOF 2094 2095cat >>confdefs.h <<_ACEOF 2096#define PACKAGE_VERSION "$PACKAGE_VERSION" 2097_ACEOF 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_STRING "$PACKAGE_STRING" 2101_ACEOF 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2105_ACEOF 2106 2107cat >>confdefs.h <<_ACEOF 2108#define PACKAGE_URL "$PACKAGE_URL" 2109_ACEOF 2110 2111 2112# Let the site file select an alternate cache file if it wants to. 2113# Prefer an explicitly selected file to automatically selected ones. 2114ac_site_file1=NONE 2115ac_site_file2=NONE 2116if test -n "$CONFIG_SITE"; then 2117 # We do not want a PATH search for config.site. 2118 case $CONFIG_SITE in #(( 2119 -*) ac_site_file1=./$CONFIG_SITE;; 2120 */*) ac_site_file1=$CONFIG_SITE;; 2121 *) ac_site_file1=./$CONFIG_SITE;; 2122 esac 2123elif test "x$prefix" != xNONE; then 2124 ac_site_file1=$prefix/share/config.site 2125 ac_site_file2=$prefix/etc/config.site 2126else 2127 ac_site_file1=$ac_default_prefix/share/config.site 2128 ac_site_file2=$ac_default_prefix/etc/config.site 2129fi 2130for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2131do 2132 test "x$ac_site_file" = xNONE && continue 2133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2135$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2136 sed 's/^/| /' "$ac_site_file" >&5 2137 . "$ac_site_file" \ 2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2140as_fn_error $? "failed to load site script $ac_site_file 2141See \`config.log' for more details" "$LINENO" 5; } 2142 fi 2143done 2144 2145if test -r "$cache_file"; then 2146 # Some versions of bash will fail to source /dev/null (special files 2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2150$as_echo "$as_me: loading cache $cache_file" >&6;} 2151 case $cache_file in 2152 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2153 *) . "./$cache_file";; 2154 esac 2155 fi 2156else 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2158$as_echo "$as_me: creating cache $cache_file" >&6;} 2159 >$cache_file 2160fi 2161 2162# Check that the precious variables saved in the cache have kept the same 2163# value. 2164ac_cache_corrupted=false 2165for ac_var in $ac_precious_vars; do 2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2167 eval ac_new_set=\$ac_env_${ac_var}_set 2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2169 eval ac_new_val=\$ac_env_${ac_var}_value 2170 case $ac_old_set,$ac_new_set in 2171 set,) 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2174 ac_cache_corrupted=: ;; 2175 ,set) 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2178 ac_cache_corrupted=: ;; 2179 ,);; 2180 *) 2181 if test "x$ac_old_val" != "x$ac_new_val"; then 2182 # differences in whitespace do not lead to failure. 2183 ac_old_val_w=`echo x $ac_old_val` 2184 ac_new_val_w=`echo x $ac_new_val` 2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2188 ac_cache_corrupted=: 2189 else 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2192 eval $ac_var=\$ac_old_val 2193 fi 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2195$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2197$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2198 fi;; 2199 esac 2200 # Pass precious variables to config.status. 2201 if test "$ac_new_set" = set; then 2202 case $ac_new_val in 2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2204 *) ac_arg=$ac_var=$ac_new_val ;; 2205 esac 2206 case " $ac_configure_args " in 2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2209 esac 2210 fi 2211done 2212if $ac_cache_corrupted; then 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2218fi 2219## -------------------- ## 2220## Main body of script. ## 2221## -------------------- ## 2222 2223ac_ext=c 2224ac_cpp='$CPP $CPPFLAGS' 2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ac_compiler_gnu=$ac_cv_c_compiler_gnu 2228 2229 2230 2231# Directory where autotools helper scripts lives. 2232ac_aux_dir= 2233for ac_dir in . "$srcdir"/.; do 2234 if test -f "$ac_dir/install-sh"; then 2235 ac_aux_dir=$ac_dir 2236 ac_install_sh="$ac_aux_dir/install-sh -c" 2237 break 2238 elif test -f "$ac_dir/install.sh"; then 2239 ac_aux_dir=$ac_dir 2240 ac_install_sh="$ac_aux_dir/install.sh -c" 2241 break 2242 elif test -f "$ac_dir/shtool"; then 2243 ac_aux_dir=$ac_dir 2244 ac_install_sh="$ac_aux_dir/shtool install -c" 2245 break 2246 fi 2247done 2248if test -z "$ac_aux_dir"; then 2249 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2250fi 2251 2252# These three variables are undocumented and unsupported, 2253# and are intended to be withdrawn in a future Autoconf release. 2254# They can cause serious problems if a builder's source tree is in a directory 2255# whose full name contains unusual characters. 2256ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2257ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2258ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2259 2260 2261 2262# Generate configuration headers. 2263ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg" 2264 2265 2266# Hack: disable autoheader so that it doesn't overwrite our cfg template. 2267AUTOHEADER="echo autoheader ignored" 2268 2269# Check system type 2270# Make sure we can run config.sub. 2271$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2272 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2273 2274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2275$as_echo_n "checking build system type... " >&6; } 2276if ${ac_cv_build+:} false; then : 2277 $as_echo_n "(cached) " >&6 2278else 2279 ac_build_alias=$build_alias 2280test "x$ac_build_alias" = x && 2281 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2282test "x$ac_build_alias" = x && 2283 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2284ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2285 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2286 2287fi 2288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2289$as_echo "$ac_cv_build" >&6; } 2290case $ac_cv_build in 2291*-*-*) ;; 2292*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2293esac 2294build=$ac_cv_build 2295ac_save_IFS=$IFS; IFS='-' 2296set x $ac_cv_build 2297shift 2298build_cpu=$1 2299build_vendor=$2 2300shift; shift 2301# Remember, the first character of IFS is used to create $*, 2302# except with old shells: 2303build_os=$* 2304IFS=$ac_save_IFS 2305case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2306 2307 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2309$as_echo_n "checking host system type... " >&6; } 2310if ${ac_cv_host+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 if test "x$host_alias" = x; then 2314 ac_cv_host=$ac_cv_build 2315else 2316 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2317 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2318fi 2319 2320fi 2321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2322$as_echo "$ac_cv_host" >&6; } 2323case $ac_cv_host in 2324*-*-*) ;; 2325*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2326esac 2327host=$ac_cv_host 2328ac_save_IFS=$IFS; IFS='-' 2329set x $ac_cv_host 2330shift 2331host_cpu=$1 2332host_vendor=$2 2333shift; shift 2334# Remember, the first character of IFS is used to create $*, 2335# except with old shells: 2336host_os=$* 2337IFS=$ac_save_IFS 2338case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2339 2340 2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2342$as_echo_n "checking target system type... " >&6; } 2343if ${ac_cv_target+:} false; then : 2344 $as_echo_n "(cached) " >&6 2345else 2346 if test "x$target_alias" = x; then 2347 ac_cv_target=$ac_cv_host 2348else 2349 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2351fi 2352 2353fi 2354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2355$as_echo "$ac_cv_target" >&6; } 2356case $ac_cv_target in 2357*-*-*) ;; 2358*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2359esac 2360target=$ac_cv_target 2361ac_save_IFS=$IFS; IFS='-' 2362set x $ac_cv_target 2363shift 2364target_cpu=$1 2365target_vendor=$2 2366shift; shift 2367# Remember, the first character of IFS is used to create $*, 2368# except with old shells: 2369target_os=$* 2370IFS=$ac_save_IFS 2371case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2372 2373 2374# The aliases save the names the user supplied, while $host etc. 2375# will get canonicalized. 2376test -n "$target_alias" && 2377 test "$program_prefix$program_suffix$program_transform_name" = \ 2378 NONENONEs,x,x, && 2379 program_prefix=${target_alias}- 2380 2381# Initialize Automake 2382# Don't require all the GNU mandated files 2383am__api_version='1.16' 2384 2385# Find a good install program. We prefer a C program (faster), 2386# so one script is as good as another. But avoid the broken or 2387# incompatible versions: 2388# SysV /etc/install, /usr/sbin/install 2389# SunOS /usr/etc/install 2390# IRIX /sbin/install 2391# AIX /bin/install 2392# AmigaOS /C/install, which installs bootblocks on floppy discs 2393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2394# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2396# OS/2's system install, which has a completely different semantic 2397# ./install, which can be erroneously created by make from ./install.sh. 2398# Reject install programs that cannot install multiple files. 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2400$as_echo_n "checking for a BSD-compatible install... " >&6; } 2401if test -z "$INSTALL"; then 2402if ${ac_cv_path_install+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404else 2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406for as_dir in $PATH 2407do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 # Account for people who put trailing slashes in PATH elements. 2411case $as_dir/ in #(( 2412 ./ | .// | /[cC]/* | \ 2413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2414 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2415 /usr/ucb/* ) ;; 2416 *) 2417 # OSF1 and SCO ODT 3.0 have their own names for install. 2418 # Don't use installbsd from OSF since it installs stuff as root 2419 # by default. 2420 for ac_prog in ginstall scoinst install; do 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2423 if test $ac_prog = install && 2424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2425 # AIX install. It has an incompatible calling convention. 2426 : 2427 elif test $ac_prog = install && 2428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2429 # program-specific install script used by HP pwplus--don't use. 2430 : 2431 else 2432 rm -rf conftest.one conftest.two conftest.dir 2433 echo one > conftest.one 2434 echo two > conftest.two 2435 mkdir conftest.dir 2436 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2437 test -s conftest.one && test -s conftest.two && 2438 test -s conftest.dir/conftest.one && 2439 test -s conftest.dir/conftest.two 2440 then 2441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2442 break 3 2443 fi 2444 fi 2445 fi 2446 done 2447 done 2448 ;; 2449esac 2450 2451 done 2452IFS=$as_save_IFS 2453 2454rm -rf conftest.one conftest.two conftest.dir 2455 2456fi 2457 if test "${ac_cv_path_install+set}" = set; then 2458 INSTALL=$ac_cv_path_install 2459 else 2460 # As a last resort, use the slow shell script. Don't cache a 2461 # value for INSTALL within a source directory, because that will 2462 # break other packages using the cache if that directory is 2463 # removed, or if the value is a relative name. 2464 INSTALL=$ac_install_sh 2465 fi 2466fi 2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2468$as_echo "$INSTALL" >&6; } 2469 2470# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2471# It thinks the first close brace ends the variable substitution. 2472test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2473 2474test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2475 2476test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2477 2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2479$as_echo_n "checking whether build environment is sane... " >&6; } 2480# Reject unsafe characters in $srcdir or the absolute working directory 2481# name. Accept space and tab only in the latter. 2482am_lf=' 2483' 2484case `pwd` in 2485 *[\\\"\#\$\&\'\`$am_lf]*) 2486 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2487esac 2488case $srcdir in 2489 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2490 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2491esac 2492 2493# Do 'set' in a subshell so we don't clobber the current shell's 2494# arguments. Must try -L first in case configure is actually a 2495# symlink; some systems play weird games with the mod time of symlinks 2496# (eg FreeBSD returns the mod time of the symlink's containing 2497# directory). 2498if ( 2499 am_has_slept=no 2500 for am_try in 1 2; do 2501 echo "timestamp, slept: $am_has_slept" > conftest.file 2502 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2503 if test "$*" = "X"; then 2504 # -L didn't work. 2505 set X `ls -t "$srcdir/configure" conftest.file` 2506 fi 2507 if test "$*" != "X $srcdir/configure conftest.file" \ 2508 && test "$*" != "X conftest.file $srcdir/configure"; then 2509 2510 # If neither matched, then we have a broken ls. This can happen 2511 # if, for instance, CONFIG_SHELL is bash and it inherits a 2512 # broken ls alias from the environment. This has actually 2513 # happened. Such a system could not be considered "sane". 2514 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2515 alias in your environment" "$LINENO" 5 2516 fi 2517 if test "$2" = conftest.file || test $am_try -eq 2; then 2518 break 2519 fi 2520 # Just in case. 2521 sleep 1 2522 am_has_slept=yes 2523 done 2524 test "$2" = conftest.file 2525 ) 2526then 2527 # Ok. 2528 : 2529else 2530 as_fn_error $? "newly created file is older than distributed files! 2531Check your system clock" "$LINENO" 5 2532fi 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2534$as_echo "yes" >&6; } 2535# If we didn't sleep, we still need to ensure time stamps of config.status and 2536# generated files are strictly newer. 2537am_sleep_pid= 2538if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2539 ( sleep 1 ) & 2540 am_sleep_pid=$! 2541fi 2542 2543rm -f conftest.file 2544 2545test "$program_prefix" != NONE && 2546 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2547# Use a double $ so make ignores it. 2548test "$program_suffix" != NONE && 2549 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2550# Double any \ or $. 2551# By default was `s,x,x', remove it if useless. 2552ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2553program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2554 2555# Expand $ac_aux_dir to an absolute path. 2556am_aux_dir=`cd "$ac_aux_dir" && pwd` 2557 2558if test x"${MISSING+set}" != xset; then 2559 case $am_aux_dir in 2560 *\ * | *\ *) 2561 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2562 *) 2563 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2564 esac 2565fi 2566# Use eval to expand $SHELL 2567if eval "$MISSING --is-lightweight"; then 2568 am_missing_run="$MISSING " 2569else 2570 am_missing_run= 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2572$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2573fi 2574 2575if test x"${install_sh+set}" != xset; then 2576 case $am_aux_dir in 2577 *\ * | *\ *) 2578 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2579 *) 2580 install_sh="\${SHELL} $am_aux_dir/install-sh" 2581 esac 2582fi 2583 2584# Installed binaries are usually stripped using 'strip' when the user 2585# run "make install-strip". However 'strip' might not be the right 2586# tool to use in cross-compilation environments, therefore Automake 2587# will honor the 'STRIP' environment variable to overrule this program. 2588if test "$cross_compiling" != no; then 2589 if test -n "$ac_tool_prefix"; then 2590 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2591set dummy ${ac_tool_prefix}strip; ac_word=$2 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2593$as_echo_n "checking for $ac_word... " >&6; } 2594if ${ac_cv_prog_STRIP+:} false; then : 2595 $as_echo_n "(cached) " >&6 2596else 2597 if test -n "$STRIP"; then 2598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2599else 2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2601for as_dir in $PATH 2602do 2603 IFS=$as_save_IFS 2604 test -z "$as_dir" && as_dir=. 2605 for ac_exec_ext in '' $ac_executable_extensions; do 2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2607 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2609 break 2 2610 fi 2611done 2612 done 2613IFS=$as_save_IFS 2614 2615fi 2616fi 2617STRIP=$ac_cv_prog_STRIP 2618if test -n "$STRIP"; then 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2620$as_echo "$STRIP" >&6; } 2621else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2623$as_echo "no" >&6; } 2624fi 2625 2626 2627fi 2628if test -z "$ac_cv_prog_STRIP"; then 2629 ac_ct_STRIP=$STRIP 2630 # Extract the first word of "strip", so it can be a program name with args. 2631set dummy strip; ac_word=$2 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2633$as_echo_n "checking for $ac_word... " >&6; } 2634if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 if test -n "$ac_ct_STRIP"; then 2638 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2639else 2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2641for as_dir in $PATH 2642do 2643 IFS=$as_save_IFS 2644 test -z "$as_dir" && as_dir=. 2645 for ac_exec_ext in '' $ac_executable_extensions; do 2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2647 ac_cv_prog_ac_ct_STRIP="strip" 2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2649 break 2 2650 fi 2651done 2652 done 2653IFS=$as_save_IFS 2654 2655fi 2656fi 2657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2658if test -n "$ac_ct_STRIP"; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2660$as_echo "$ac_ct_STRIP" >&6; } 2661else 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2663$as_echo "no" >&6; } 2664fi 2665 2666 if test "x$ac_ct_STRIP" = x; then 2667 STRIP=":" 2668 else 2669 case $cross_compiling:$ac_tool_warned in 2670yes:) 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2673ac_tool_warned=yes ;; 2674esac 2675 STRIP=$ac_ct_STRIP 2676 fi 2677else 2678 STRIP="$ac_cv_prog_STRIP" 2679fi 2680 2681fi 2682INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2683 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2685$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2686if test -z "$MKDIR_P"; then 2687 if ${ac_cv_path_mkdir+:} false; then : 2688 $as_echo_n "(cached) " >&6 2689else 2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_prog in mkdir gmkdir; do 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2698 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2699 'mkdir (GNU coreutils) '* | \ 2700 'mkdir (coreutils) '* | \ 2701 'mkdir (fileutils) '4.1*) 2702 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2703 break 3;; 2704 esac 2705 done 2706 done 2707 done 2708IFS=$as_save_IFS 2709 2710fi 2711 2712 test -d ./--version && rmdir ./--version 2713 if test "${ac_cv_path_mkdir+set}" = set; then 2714 MKDIR_P="$ac_cv_path_mkdir -p" 2715 else 2716 # As a last resort, use the slow shell script. Don't cache a 2717 # value for MKDIR_P within a source directory, because that will 2718 # break other packages using the cache if that directory is 2719 # removed, or if the value is a relative name. 2720 MKDIR_P="$ac_install_sh -d" 2721 fi 2722fi 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2724$as_echo "$MKDIR_P" >&6; } 2725 2726for ac_prog in gawk mawk nawk awk 2727do 2728 # Extract the first word of "$ac_prog", so it can be a program name with args. 2729set dummy $ac_prog; ac_word=$2 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2731$as_echo_n "checking for $ac_word... " >&6; } 2732if ${ac_cv_prog_AWK+:} false; then : 2733 $as_echo_n "(cached) " >&6 2734else 2735 if test -n "$AWK"; then 2736 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2737else 2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH 2740do 2741 IFS=$as_save_IFS 2742 test -z "$as_dir" && as_dir=. 2743 for ac_exec_ext in '' $ac_executable_extensions; do 2744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2745 ac_cv_prog_AWK="$ac_prog" 2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2747 break 2 2748 fi 2749done 2750 done 2751IFS=$as_save_IFS 2752 2753fi 2754fi 2755AWK=$ac_cv_prog_AWK 2756if test -n "$AWK"; then 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2758$as_echo "$AWK" >&6; } 2759else 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2761$as_echo "no" >&6; } 2762fi 2763 2764 2765 test -n "$AWK" && break 2766done 2767 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2769$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2770set x ${MAKE-make} 2771ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2772if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 cat >conftest.make <<\_ACEOF 2776SHELL = /bin/sh 2777all: 2778 @echo '@@@%%%=$(MAKE)=@@@%%%' 2779_ACEOF 2780# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2781case `${MAKE-make} -f conftest.make 2>/dev/null` in 2782 *@@@%%%=?*=@@@%%%*) 2783 eval ac_cv_prog_make_${ac_make}_set=yes;; 2784 *) 2785 eval ac_cv_prog_make_${ac_make}_set=no;; 2786esac 2787rm -f conftest.make 2788fi 2789if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2791$as_echo "yes" >&6; } 2792 SET_MAKE= 2793else 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2795$as_echo "no" >&6; } 2796 SET_MAKE="MAKE=${MAKE-make}" 2797fi 2798 2799rm -rf .tst 2>/dev/null 2800mkdir .tst 2>/dev/null 2801if test -d .tst; then 2802 am__leading_dot=. 2803else 2804 am__leading_dot=_ 2805fi 2806rmdir .tst 2>/dev/null 2807 2808# Check whether --enable-silent-rules was given. 2809if test "${enable_silent_rules+set}" = set; then : 2810 enableval=$enable_silent_rules; 2811fi 2812 2813case $enable_silent_rules in # ((( 2814 yes) AM_DEFAULT_VERBOSITY=0;; 2815 no) AM_DEFAULT_VERBOSITY=1;; 2816 *) AM_DEFAULT_VERBOSITY=1;; 2817esac 2818am_make=${MAKE-make} 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2820$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2821if ${am_cv_make_support_nested_variables+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 if $as_echo 'TRUE=$(BAR$(V)) 2825BAR0=false 2826BAR1=true 2827V=1 2828am__doit: 2829 @$(TRUE) 2830.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2831 am_cv_make_support_nested_variables=yes 2832else 2833 am_cv_make_support_nested_variables=no 2834fi 2835fi 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2837$as_echo "$am_cv_make_support_nested_variables" >&6; } 2838if test $am_cv_make_support_nested_variables = yes; then 2839 AM_V='$(V)' 2840 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2841else 2842 AM_V=$AM_DEFAULT_VERBOSITY 2843 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2844fi 2845AM_BACKSLASH='\' 2846 2847if test "`cd $srcdir && pwd`" != "`pwd`"; then 2848 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2849 # is not polluted with repeated "-I." 2850 am__isrc=' -I$(srcdir)' 2851 # test to see if srcdir already configured 2852 if test -f $srcdir/config.status; then 2853 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2854 fi 2855fi 2856 2857# test whether we have cygpath 2858if test -z "$CYGPATH_W"; then 2859 if (cygpath --version) >/dev/null 2>/dev/null; then 2860 CYGPATH_W='cygpath -w' 2861 else 2862 CYGPATH_W=echo 2863 fi 2864fi 2865 2866 2867# Define the identity of the package. 2868 PACKAGE='libjpeg' 2869 VERSION='9.4.0' 2870 2871 2872cat >>confdefs.h <<_ACEOF 2873#define PACKAGE "$PACKAGE" 2874_ACEOF 2875 2876 2877cat >>confdefs.h <<_ACEOF 2878#define VERSION "$VERSION" 2879_ACEOF 2880 2881# Some tools Automake needs. 2882 2883ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2884 2885 2886AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2887 2888 2889AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2890 2891 2892AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2893 2894 2895MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2896 2897# For better backward compatibility. To be removed once Automake 1.9.x 2898# dies out for good. For more background, see: 2899# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2900# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2901mkdir_p='$(MKDIR_P)' 2902 2903# We need awk for the "check" target (and possibly the TAP driver). The 2904# system "awk" is bad on some platforms. 2905# Always define AMTAR for backward compatibility. Yes, it's still used 2906# in the wild :-( We should find a proper way to deprecate it ... 2907AMTAR='$${TAR-tar}' 2908 2909 2910# We'll loop over all known methods to create a tar archive until one works. 2911_am_tools='gnutar pax cpio none' 2912 2913am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2914 2915 2916 2917 2918 2919 2920# POSIX will say in a future version that running "rm -f" with no argument 2921# is OK; and we want to be able to make that assumption in our Makefile 2922# recipes. So use an aggressive probe to check that the usage we want is 2923# actually supported "in the wild" to an acceptable degree. 2924# See automake bug#10828. 2925# To make any issue more visible, cause the running configure to be aborted 2926# by default if the 'rm' program in use doesn't match our expectations; the 2927# user can still override this though. 2928if rm -f && rm -fr && rm -rf; then : OK; else 2929 cat >&2 <<'END' 2930Oops! 2931 2932Your 'rm' program seems unable to run without file operands specified 2933on the command line, even when the '-f' option is present. This is contrary 2934to the behaviour of most rm programs out there, and not conforming with 2935the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2936 2937Please tell bug-automake@gnu.org about your system, including the value 2938of your $PATH and any error possibly output before this message. This 2939can help us improve future automake versions. 2940 2941END 2942 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2943 echo 'Configuration will proceed anyway, since you have set the' >&2 2944 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2945 echo >&2 2946 else 2947 cat >&2 <<'END' 2948Aborting the configuration process, to ensure you take notice of the issue. 2949 2950You can download and install GNU coreutils to get an 'rm' implementation 2951that behaves properly: <https://www.gnu.org/software/coreutils/>. 2952 2953If you want to complete the configuration process using your problematic 2954'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2955to "yes", and re-run configure. 2956 2957END 2958 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2959 fi 2960fi 2961 2962 2963# Make --enable-silent-rules the default. 2964# To get verbose build output you may configure 2965# with --disable-silent-rules or use "make V=1". 2966# Check whether --enable-silent-rules was given. 2967if test "${enable_silent_rules+set}" = set; then : 2968 enableval=$enable_silent_rules; 2969fi 2970 2971case $enable_silent_rules in # ((( 2972 yes) AM_DEFAULT_VERBOSITY=0;; 2973 no) AM_DEFAULT_VERBOSITY=1;; 2974 *) AM_DEFAULT_VERBOSITY=0;; 2975esac 2976am_make=${MAKE-make} 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2978$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2979if ${am_cv_make_support_nested_variables+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if $as_echo 'TRUE=$(BAR$(V)) 2983BAR0=false 2984BAR1=true 2985V=1 2986am__doit: 2987 @$(TRUE) 2988.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2989 am_cv_make_support_nested_variables=yes 2990else 2991 am_cv_make_support_nested_variables=no 2992fi 2993fi 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2995$as_echo "$am_cv_make_support_nested_variables" >&6; } 2996if test $am_cv_make_support_nested_variables = yes; then 2997 AM_V='$(V)' 2998 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2999else 3000 AM_V=$AM_DEFAULT_VERBOSITY 3001 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3002fi 3003AM_BACKSLASH='\' 3004 3005 3006# Add configure option --enable-maintainer-mode which enables 3007# dependency checking and generation useful to package maintainers. 3008# This is made an option to avoid confusing end users. 3009 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3011$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3012 # Check whether --enable-maintainer-mode was given. 3013if test "${enable_maintainer_mode+set}" = set; then : 3014 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3015else 3016 USE_MAINTAINER_MODE=no 3017fi 3018 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3020$as_echo "$USE_MAINTAINER_MODE" >&6; } 3021 if test $USE_MAINTAINER_MODE = yes; then 3022 MAINTAINER_MODE_TRUE= 3023 MAINTAINER_MODE_FALSE='#' 3024else 3025 MAINTAINER_MODE_TRUE='#' 3026 MAINTAINER_MODE_FALSE= 3027fi 3028 3029 MAINT=$MAINTAINER_MODE_TRUE 3030 3031 3032 3033# Check for programs 3034ac_ext=c 3035ac_cpp='$CPP $CPPFLAGS' 3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3038ac_compiler_gnu=$ac_cv_c_compiler_gnu 3039if test -n "$ac_tool_prefix"; then 3040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3041set dummy ${ac_tool_prefix}gcc; ac_word=$2 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3043$as_echo_n "checking for $ac_word... " >&6; } 3044if ${ac_cv_prog_CC+:} false; then : 3045 $as_echo_n "(cached) " >&6 3046else 3047 if test -n "$CC"; then 3048 ac_cv_prog_CC="$CC" # Let the user override the test. 3049else 3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051for as_dir in $PATH 3052do 3053 IFS=$as_save_IFS 3054 test -z "$as_dir" && as_dir=. 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3057 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061done 3062 done 3063IFS=$as_save_IFS 3064 3065fi 3066fi 3067CC=$ac_cv_prog_CC 3068if test -n "$CC"; then 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3070$as_echo "$CC" >&6; } 3071else 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3073$as_echo "no" >&6; } 3074fi 3075 3076 3077fi 3078if test -z "$ac_cv_prog_CC"; then 3079 ac_ct_CC=$CC 3080 # Extract the first word of "gcc", so it can be a program name with args. 3081set dummy gcc; ac_word=$2 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3083$as_echo_n "checking for $ac_word... " >&6; } 3084if ${ac_cv_prog_ac_ct_CC+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 if test -n "$ac_ct_CC"; then 3088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3089else 3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 test -z "$as_dir" && as_dir=. 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3097 ac_cv_prog_ac_ct_CC="gcc" 3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101done 3102 done 3103IFS=$as_save_IFS 3104 3105fi 3106fi 3107ac_ct_CC=$ac_cv_prog_ac_ct_CC 3108if test -n "$ac_ct_CC"; then 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3110$as_echo "$ac_ct_CC" >&6; } 3111else 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3113$as_echo "no" >&6; } 3114fi 3115 3116 if test "x$ac_ct_CC" = x; then 3117 CC="" 3118 else 3119 case $cross_compiling:$ac_tool_warned in 3120yes:) 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3123ac_tool_warned=yes ;; 3124esac 3125 CC=$ac_ct_CC 3126 fi 3127else 3128 CC="$ac_cv_prog_CC" 3129fi 3130 3131if test -z "$CC"; then 3132 if test -n "$ac_tool_prefix"; then 3133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3134set dummy ${ac_tool_prefix}cc; ac_word=$2 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136$as_echo_n "checking for $ac_word... " >&6; } 3137if ${ac_cv_prog_CC+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 if test -n "$CC"; then 3141 ac_cv_prog_CC="$CC" # Let the user override the test. 3142else 3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144for as_dir in $PATH 3145do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_CC="${ac_tool_prefix}cc" 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154done 3155 done 3156IFS=$as_save_IFS 3157 3158fi 3159fi 3160CC=$ac_cv_prog_CC 3161if test -n "$CC"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3163$as_echo "$CC" >&6; } 3164else 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166$as_echo "no" >&6; } 3167fi 3168 3169 3170 fi 3171fi 3172if test -z "$CC"; then 3173 # Extract the first word of "cc", so it can be a program name with args. 3174set dummy cc; ac_word=$2 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3176$as_echo_n "checking for $ac_word... " >&6; } 3177if ${ac_cv_prog_CC+:} false; then : 3178 $as_echo_n "(cached) " >&6 3179else 3180 if test -n "$CC"; then 3181 ac_cv_prog_CC="$CC" # Let the user override the test. 3182else 3183 ac_prog_rejected=no 3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3185for as_dir in $PATH 3186do 3187 IFS=$as_save_IFS 3188 test -z "$as_dir" && as_dir=. 3189 for ac_exec_ext in '' $ac_executable_extensions; do 3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3192 ac_prog_rejected=yes 3193 continue 3194 fi 3195 ac_cv_prog_CC="cc" 3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3197 break 2 3198 fi 3199done 3200 done 3201IFS=$as_save_IFS 3202 3203if test $ac_prog_rejected = yes; then 3204 # We found a bogon in the path, so make sure we never use it. 3205 set dummy $ac_cv_prog_CC 3206 shift 3207 if test $# != 0; then 3208 # We chose a different compiler from the bogus one. 3209 # However, it has the same basename, so the bogon will be chosen 3210 # first if we set CC to just the basename; use the full file name. 3211 shift 3212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3213 fi 3214fi 3215fi 3216fi 3217CC=$ac_cv_prog_CC 3218if test -n "$CC"; then 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3220$as_echo "$CC" >&6; } 3221else 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3223$as_echo "no" >&6; } 3224fi 3225 3226 3227fi 3228if test -z "$CC"; then 3229 if test -n "$ac_tool_prefix"; then 3230 for ac_prog in cl.exe 3231 do 3232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3233set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3235$as_echo_n "checking for $ac_word... " >&6; } 3236if ${ac_cv_prog_CC+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 if test -n "$CC"; then 3240 ac_cv_prog_CC="$CC" # Let the user override the test. 3241else 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 test -z "$as_dir" && as_dir=. 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253done 3254 done 3255IFS=$as_save_IFS 3256 3257fi 3258fi 3259CC=$ac_cv_prog_CC 3260if test -n "$CC"; then 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3262$as_echo "$CC" >&6; } 3263else 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3265$as_echo "no" >&6; } 3266fi 3267 3268 3269 test -n "$CC" && break 3270 done 3271fi 3272if test -z "$CC"; then 3273 ac_ct_CC=$CC 3274 for ac_prog in cl.exe 3275do 3276 # Extract the first word of "$ac_prog", so it can be a program name with args. 3277set dummy $ac_prog; ac_word=$2 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3279$as_echo_n "checking for $ac_word... " >&6; } 3280if ${ac_cv_prog_ac_ct_CC+:} false; then : 3281 $as_echo_n "(cached) " >&6 3282else 3283 if test -n "$ac_ct_CC"; then 3284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3285else 3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3287for as_dir in $PATH 3288do 3289 IFS=$as_save_IFS 3290 test -z "$as_dir" && as_dir=. 3291 for ac_exec_ext in '' $ac_executable_extensions; do 3292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3293 ac_cv_prog_ac_ct_CC="$ac_prog" 3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3295 break 2 3296 fi 3297done 3298 done 3299IFS=$as_save_IFS 3300 3301fi 3302fi 3303ac_ct_CC=$ac_cv_prog_ac_ct_CC 3304if test -n "$ac_ct_CC"; then 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3306$as_echo "$ac_ct_CC" >&6; } 3307else 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3309$as_echo "no" >&6; } 3310fi 3311 3312 3313 test -n "$ac_ct_CC" && break 3314done 3315 3316 if test "x$ac_ct_CC" = x; then 3317 CC="" 3318 else 3319 case $cross_compiling:$ac_tool_warned in 3320yes:) 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3323ac_tool_warned=yes ;; 3324esac 3325 CC=$ac_ct_CC 3326 fi 3327fi 3328 3329fi 3330 3331 3332test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3334as_fn_error $? "no acceptable C compiler found in \$PATH 3335See \`config.log' for more details" "$LINENO" 5; } 3336 3337# Provide some information about the compiler. 3338$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3339set X $ac_compile 3340ac_compiler=$2 3341for ac_option in --version -v -V -qversion; do 3342 { { ac_try="$ac_compiler $ac_option >&5" 3343case "(($ac_try" in 3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3345 *) ac_try_echo=$ac_try;; 3346esac 3347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3348$as_echo "$ac_try_echo"; } >&5 3349 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3350 ac_status=$? 3351 if test -s conftest.err; then 3352 sed '10a\ 3353... rest of stderr output deleted ... 3354 10q' conftest.err >conftest.er1 3355 cat conftest.er1 >&5 3356 fi 3357 rm -f conftest.er1 conftest.err 3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3359 test $ac_status = 0; } 3360done 3361 3362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3363/* end confdefs.h. */ 3364 3365int 3366main () 3367{ 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373ac_clean_files_save=$ac_clean_files 3374ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3375# Try to create an executable without -o first, disregard a.out. 3376# It will help us diagnose broken compilers, and finding out an intuition 3377# of exeext. 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3379$as_echo_n "checking whether the C compiler works... " >&6; } 3380ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3381 3382# The possible output files: 3383ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3384 3385ac_rmfiles= 3386for ac_file in $ac_files 3387do 3388 case $ac_file in 3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3390 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3391 esac 3392done 3393rm -f $ac_rmfiles 3394 3395if { { ac_try="$ac_link_default" 3396case "(($ac_try" in 3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3398 *) ac_try_echo=$ac_try;; 3399esac 3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3401$as_echo "$ac_try_echo"; } >&5 3402 (eval "$ac_link_default") 2>&5 3403 ac_status=$? 3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3405 test $ac_status = 0; }; then : 3406 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3407# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3408# in a Makefile. We should not override ac_cv_exeext if it was cached, 3409# so that the user can short-circuit this test for compilers unknown to 3410# Autoconf. 3411for ac_file in $ac_files '' 3412do 3413 test -f "$ac_file" || continue 3414 case $ac_file in 3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3416 ;; 3417 [ab].out ) 3418 # We found the default executable, but exeext='' is most 3419 # certainly right. 3420 break;; 3421 *.* ) 3422 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3423 then :; else 3424 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3425 fi 3426 # We set ac_cv_exeext here because the later test for it is not 3427 # safe: cross compilers may not add the suffix if given an `-o' 3428 # argument, so we may need to know it at that point already. 3429 # Even if this section looks crufty: it has the advantage of 3430 # actually working. 3431 break;; 3432 * ) 3433 break;; 3434 esac 3435done 3436test "$ac_cv_exeext" = no && ac_cv_exeext= 3437 3438else 3439 ac_file='' 3440fi 3441if test -z "$ac_file"; then : 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3443$as_echo "no" >&6; } 3444$as_echo "$as_me: failed program was:" >&5 3445sed 's/^/| /' conftest.$ac_ext >&5 3446 3447{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3449as_fn_error 77 "C compiler cannot create executables 3450See \`config.log' for more details" "$LINENO" 5; } 3451else 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3453$as_echo "yes" >&6; } 3454fi 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3456$as_echo_n "checking for C compiler default output file name... " >&6; } 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3458$as_echo "$ac_file" >&6; } 3459ac_exeext=$ac_cv_exeext 3460 3461rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3462ac_clean_files=$ac_clean_files_save 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3464$as_echo_n "checking for suffix of executables... " >&6; } 3465if { { ac_try="$ac_link" 3466case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469esac 3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471$as_echo "$ac_try_echo"; } >&5 3472 (eval "$ac_link") 2>&5 3473 ac_status=$? 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; }; then : 3476 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3477# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3478# work properly (i.e., refer to `conftest.exe'), while it won't with 3479# `rm'. 3480for ac_file in conftest.exe conftest conftest.*; do 3481 test -f "$ac_file" || continue 3482 case $ac_file in 3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3485 break;; 3486 * ) break;; 3487 esac 3488done 3489else 3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3492as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3493See \`config.log' for more details" "$LINENO" 5; } 3494fi 3495rm -f conftest conftest$ac_cv_exeext 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3497$as_echo "$ac_cv_exeext" >&6; } 3498 3499rm -f conftest.$ac_ext 3500EXEEXT=$ac_cv_exeext 3501ac_exeext=$EXEEXT 3502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503/* end confdefs.h. */ 3504#include <stdio.h> 3505int 3506main () 3507{ 3508FILE *f = fopen ("conftest.out", "w"); 3509 return ferror (f) || fclose (f) != 0; 3510 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515ac_clean_files="$ac_clean_files conftest.out" 3516# Check that the compiler produces executables we can run. If not, either 3517# the compiler is broken, or we cross compile. 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3519$as_echo_n "checking whether we are cross compiling... " >&6; } 3520if test "$cross_compiling" != yes; then 3521 { { ac_try="$ac_link" 3522case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525esac 3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3527$as_echo "$ac_try_echo"; } >&5 3528 (eval "$ac_link") 2>&5 3529 ac_status=$? 3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3531 test $ac_status = 0; } 3532 if { ac_try='./conftest$ac_cv_exeext' 3533 { { case "(($ac_try" in 3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3535 *) ac_try_echo=$ac_try;; 3536esac 3537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3538$as_echo "$ac_try_echo"; } >&5 3539 (eval "$ac_try") 2>&5 3540 ac_status=$? 3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3542 test $ac_status = 0; }; }; then 3543 cross_compiling=no 3544 else 3545 if test "$cross_compiling" = maybe; then 3546 cross_compiling=yes 3547 else 3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3550as_fn_error $? "cannot run C compiled programs. 3551If you meant to cross compile, use \`--host'. 3552See \`config.log' for more details" "$LINENO" 5; } 3553 fi 3554 fi 3555fi 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3557$as_echo "$cross_compiling" >&6; } 3558 3559rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3560ac_clean_files=$ac_clean_files_save 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3562$as_echo_n "checking for suffix of object files... " >&6; } 3563if ${ac_cv_objext+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567/* end confdefs.h. */ 3568 3569int 3570main () 3571{ 3572 3573 ; 3574 return 0; 3575} 3576_ACEOF 3577rm -f conftest.o conftest.obj 3578if { { ac_try="$ac_compile" 3579case "(($ac_try" in 3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3581 *) ac_try_echo=$ac_try;; 3582esac 3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3584$as_echo "$ac_try_echo"; } >&5 3585 (eval "$ac_compile") 2>&5 3586 ac_status=$? 3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3588 test $ac_status = 0; }; then : 3589 for ac_file in conftest.o conftest.obj conftest.*; do 3590 test -f "$ac_file" || continue; 3591 case $ac_file in 3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3594 break;; 3595 esac 3596done 3597else 3598 $as_echo "$as_me: failed program was:" >&5 3599sed 's/^/| /' conftest.$ac_ext >&5 3600 3601{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3603as_fn_error $? "cannot compute suffix of object files: cannot compile 3604See \`config.log' for more details" "$LINENO" 5; } 3605fi 3606rm -f conftest.$ac_cv_objext conftest.$ac_ext 3607fi 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3609$as_echo "$ac_cv_objext" >&6; } 3610OBJEXT=$ac_cv_objext 3611ac_objext=$OBJEXT 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3613$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3614if ${ac_cv_c_compiler_gnu+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618/* end confdefs.h. */ 3619 3620int 3621main () 3622{ 3623#ifndef __GNUC__ 3624 choke me 3625#endif 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631if ac_fn_c_try_compile "$LINENO"; then : 3632 ac_compiler_gnu=yes 3633else 3634 ac_compiler_gnu=no 3635fi 3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3637ac_cv_c_compiler_gnu=$ac_compiler_gnu 3638 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3641$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3642if test $ac_compiler_gnu = yes; then 3643 GCC=yes 3644else 3645 GCC= 3646fi 3647ac_test_CFLAGS=${CFLAGS+set} 3648ac_save_CFLAGS=$CFLAGS 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3650$as_echo_n "checking whether $CC accepts -g... " >&6; } 3651if ${ac_cv_prog_cc_g+:} false; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 ac_save_c_werror_flag=$ac_c_werror_flag 3655 ac_c_werror_flag=yes 3656 ac_cv_prog_cc_g=no 3657 CFLAGS="-g" 3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660 3661int 3662main () 3663{ 3664 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669if ac_fn_c_try_compile "$LINENO"; then : 3670 ac_cv_prog_cc_g=yes 3671else 3672 CFLAGS="" 3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3674/* end confdefs.h. */ 3675 3676int 3677main () 3678{ 3679 3680 ; 3681 return 0; 3682} 3683_ACEOF 3684if ac_fn_c_try_compile "$LINENO"; then : 3685 3686else 3687 ac_c_werror_flag=$ac_save_c_werror_flag 3688 CFLAGS="-g" 3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3690/* end confdefs.h. */ 3691 3692int 3693main () 3694{ 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700if ac_fn_c_try_compile "$LINENO"; then : 3701 ac_cv_prog_cc_g=yes 3702fi 3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3704fi 3705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3706fi 3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3708 ac_c_werror_flag=$ac_save_c_werror_flag 3709fi 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3711$as_echo "$ac_cv_prog_cc_g" >&6; } 3712if test "$ac_test_CFLAGS" = set; then 3713 CFLAGS=$ac_save_CFLAGS 3714elif test $ac_cv_prog_cc_g = yes; then 3715 if test "$GCC" = yes; then 3716 CFLAGS="-g -O2" 3717 else 3718 CFLAGS="-g" 3719 fi 3720else 3721 if test "$GCC" = yes; then 3722 CFLAGS="-O2" 3723 else 3724 CFLAGS= 3725 fi 3726fi 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3728$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3729if ${ac_cv_prog_cc_c89+:} false; then : 3730 $as_echo_n "(cached) " >&6 3731else 3732 ac_cv_prog_cc_c89=no 3733ac_save_CC=$CC 3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736#include <stdarg.h> 3737#include <stdio.h> 3738struct stat; 3739/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3740struct buf { int x; }; 3741FILE * (*rcsopen) (struct buf *, struct stat *, int); 3742static char *e (p, i) 3743 char **p; 3744 int i; 3745{ 3746 return p[i]; 3747} 3748static char *f (char * (*g) (char **, int), char **p, ...) 3749{ 3750 char *s; 3751 va_list v; 3752 va_start (v,p); 3753 s = g (p, va_arg (v,int)); 3754 va_end (v); 3755 return s; 3756} 3757 3758/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3759 function prototypes and stuff, but not '\xHH' hex character constants. 3760 These don't provoke an error unfortunately, instead are silently treated 3761 as 'x'. The following induces an error, until -std is added to get 3762 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3763 array size at least. It's necessary to write '\x00'==0 to get something 3764 that's true only with -std. */ 3765int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3766 3767/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3768 inside strings and character constants. */ 3769#define FOO(x) 'x' 3770int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3771 3772int test (int i, double x); 3773struct s1 {int (*f) (int a);}; 3774struct s2 {int (*f) (double a);}; 3775int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3776int argc; 3777char **argv; 3778int 3779main () 3780{ 3781return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3787 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3788do 3789 CC="$ac_save_CC $ac_arg" 3790 if ac_fn_c_try_compile "$LINENO"; then : 3791 ac_cv_prog_cc_c89=$ac_arg 3792fi 3793rm -f core conftest.err conftest.$ac_objext 3794 test "x$ac_cv_prog_cc_c89" != "xno" && break 3795done 3796rm -f conftest.$ac_ext 3797CC=$ac_save_CC 3798 3799fi 3800# AC_CACHE_VAL 3801case "x$ac_cv_prog_cc_c89" in 3802 x) 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3804$as_echo "none needed" >&6; } ;; 3805 xno) 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3807$as_echo "unsupported" >&6; } ;; 3808 *) 3809 CC="$CC $ac_cv_prog_cc_c89" 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3811$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3812esac 3813if test "x$ac_cv_prog_cc_c89" != xno; then : 3814 3815fi 3816 3817ac_ext=c 3818ac_cpp='$CPP $CPPFLAGS' 3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822 3823ac_ext=c 3824ac_cpp='$CPP $CPPFLAGS' 3825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3827ac_compiler_gnu=$ac_cv_c_compiler_gnu 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3829$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3830if ${am_cv_prog_cc_c_o+:} false; then : 3831 $as_echo_n "(cached) " >&6 3832else 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835 3836int 3837main () 3838{ 3839 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844 # Make sure it works both with $CC and with simple cc. 3845 # Following AC_PROG_CC_C_O, we do the test twice because some 3846 # compilers refuse to overwrite an existing .o file with -o, 3847 # though they will create one. 3848 am_cv_prog_cc_c_o=yes 3849 for am_i in 1 2; do 3850 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3851 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3852 ac_status=$? 3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3854 (exit $ac_status); } \ 3855 && test -f conftest2.$ac_objext; then 3856 : OK 3857 else 3858 am_cv_prog_cc_c_o=no 3859 break 3860 fi 3861 done 3862 rm -f core conftest* 3863 unset am_i 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3866$as_echo "$am_cv_prog_cc_c_o" >&6; } 3867if test "$am_cv_prog_cc_c_o" != yes; then 3868 # Losing compiler, so override with the script. 3869 # FIXME: It is wrong to rewrite CC. 3870 # But if we don't then we get into trouble of one sort or another. 3871 # A longer-term fix would be to have automake use am__CC in this case, 3872 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3873 CC="$am_aux_dir/compile $CC" 3874fi 3875ac_ext=c 3876ac_cpp='$CPP $CPPFLAGS' 3877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3879ac_compiler_gnu=$ac_cv_c_compiler_gnu 3880 3881DEPDIR="${am__leading_dot}deps" 3882 3883ac_config_commands="$ac_config_commands depfiles" 3884 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3886$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3887cat > confinc.mk << 'END' 3888am__doit: 3889 @echo this is the am__doit target >confinc.out 3890.PHONY: am__doit 3891END 3892am__include="#" 3893am__quote= 3894# BSD make does it like this. 3895echo '.include "confinc.mk" # ignored' > confmf.BSD 3896# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3897echo 'include confinc.mk # ignored' > confmf.GNU 3898_am_result=no 3899for s in GNU BSD; do 3900 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3901 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3902 ac_status=$? 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } 3905 case $?:`cat confinc.out 2>/dev/null` in #( 3906 '0:this is the am__doit target') : 3907 case $s in #( 3908 BSD) : 3909 am__include='.include' am__quote='"' ;; #( 3910 *) : 3911 am__include='include' am__quote='' ;; 3912esac ;; #( 3913 *) : 3914 ;; 3915esac 3916 if test "$am__include" != "#"; then 3917 _am_result="yes ($s style)" 3918 break 3919 fi 3920done 3921rm -f confinc.* confmf.* 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3923$as_echo "${_am_result}" >&6; } 3924 3925# Check whether --enable-dependency-tracking was given. 3926if test "${enable_dependency_tracking+set}" = set; then : 3927 enableval=$enable_dependency_tracking; 3928fi 3929 3930if test "x$enable_dependency_tracking" != xno; then 3931 am_depcomp="$ac_aux_dir/depcomp" 3932 AMDEPBACKSLASH='\' 3933 am__nodep='_no' 3934fi 3935 if test "x$enable_dependency_tracking" != xno; then 3936 AMDEP_TRUE= 3937 AMDEP_FALSE='#' 3938else 3939 AMDEP_TRUE='#' 3940 AMDEP_FALSE= 3941fi 3942 3943 3944 3945depcc="$CC" am_compiler_list= 3946 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3948$as_echo_n "checking dependency style of $depcc... " >&6; } 3949if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3950 $as_echo_n "(cached) " >&6 3951else 3952 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3953 # We make a subdir and do the tests there. Otherwise we can end up 3954 # making bogus files that we don't know about and never remove. For 3955 # instance it was reported that on HP-UX the gcc test will end up 3956 # making a dummy file named 'D' -- because '-MD' means "put the output 3957 # in D". 3958 rm -rf conftest.dir 3959 mkdir conftest.dir 3960 # Copy depcomp to subdir because otherwise we won't find it if we're 3961 # using a relative directory. 3962 cp "$am_depcomp" conftest.dir 3963 cd conftest.dir 3964 # We will build objects and dependencies in a subdirectory because 3965 # it helps to detect inapplicable dependency modes. For instance 3966 # both Tru64's cc and ICC support -MD to output dependencies as a 3967 # side effect of compilation, but ICC will put the dependencies in 3968 # the current directory while Tru64 will put them in the object 3969 # directory. 3970 mkdir sub 3971 3972 am_cv_CC_dependencies_compiler_type=none 3973 if test "$am_compiler_list" = ""; then 3974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3975 fi 3976 am__universal=false 3977 case " $depcc " in #( 3978 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3979 esac 3980 3981 for depmode in $am_compiler_list; do 3982 # Setup a source with many dependencies, because some compilers 3983 # like to wrap large dependency lists on column 80 (with \), and 3984 # we should not choose a depcomp mode which is confused by this. 3985 # 3986 # We need to recreate these files for each test, as the compiler may 3987 # overwrite some of them when testing with obscure command lines. 3988 # This happens at least with the AIX C compiler. 3989 : > sub/conftest.c 3990 for i in 1 2 3 4 5 6; do 3991 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3992 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3993 # Solaris 10 /bin/sh. 3994 echo '/* dummy */' > sub/conftst$i.h 3995 done 3996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3997 3998 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3999 # mode. It turns out that the SunPro C++ compiler does not properly 4000 # handle '-M -o', and we need to detect this. Also, some Intel 4001 # versions had trouble with output in subdirs. 4002 am__obj=sub/conftest.${OBJEXT-o} 4003 am__minus_obj="-o $am__obj" 4004 case $depmode in 4005 gcc) 4006 # This depmode causes a compiler race in universal mode. 4007 test "$am__universal" = false || continue 4008 ;; 4009 nosideeffect) 4010 # After this tag, mechanisms are not by side-effect, so they'll 4011 # only be used when explicitly requested. 4012 if test "x$enable_dependency_tracking" = xyes; then 4013 continue 4014 else 4015 break 4016 fi 4017 ;; 4018 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4019 # This compiler won't grok '-c -o', but also, the minuso test has 4020 # not run yet. These depmodes are late enough in the game, and 4021 # so weak that their functioning should not be impacted. 4022 am__obj=conftest.${OBJEXT-o} 4023 am__minus_obj= 4024 ;; 4025 none) break ;; 4026 esac 4027 if depmode=$depmode \ 4028 source=sub/conftest.c object=$am__obj \ 4029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4030 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4031 >/dev/null 2>conftest.err && 4032 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4034 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4036 # icc doesn't choke on unknown options, it will just issue warnings 4037 # or remarks (even with -Werror). So we grep stderr for any message 4038 # that says an option was ignored or not supported. 4039 # When given -MP, icc 7.0 and 7.1 complain thusly: 4040 # icc: Command line warning: ignoring option '-M'; no argument required 4041 # The diagnosis changed in icc 8.0: 4042 # icc: Command line remark: option '-MP' not supported 4043 if (grep 'ignoring option' conftest.err || 4044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4045 am_cv_CC_dependencies_compiler_type=$depmode 4046 break 4047 fi 4048 fi 4049 done 4050 4051 cd .. 4052 rm -rf conftest.dir 4053else 4054 am_cv_CC_dependencies_compiler_type=none 4055fi 4056 4057fi 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4059$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4060CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4061 4062 if 4063 test "x$enable_dependency_tracking" != xno \ 4064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4065 am__fastdepCC_TRUE= 4066 am__fastdepCC_FALSE='#' 4067else 4068 am__fastdepCC_TRUE='#' 4069 am__fastdepCC_FALSE= 4070fi 4071 4072 4073 case $ac_cv_prog_cc_stdc in #( 4074 no) : 4075 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4076 *) : 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4078$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4079if ${ac_cv_prog_cc_c99+:} false; then : 4080 $as_echo_n "(cached) " >&6 4081else 4082 ac_cv_prog_cc_c99=no 4083ac_save_CC=$CC 4084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085/* end confdefs.h. */ 4086#include <stdarg.h> 4087#include <stdbool.h> 4088#include <stdlib.h> 4089#include <wchar.h> 4090#include <stdio.h> 4091 4092// Check varargs macros. These examples are taken from C99 6.10.3.5. 4093#define debug(...) fprintf (stderr, __VA_ARGS__) 4094#define showlist(...) puts (#__VA_ARGS__) 4095#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4096static void 4097test_varargs_macros (void) 4098{ 4099 int x = 1234; 4100 int y = 5678; 4101 debug ("Flag"); 4102 debug ("X = %d\n", x); 4103 showlist (The first, second, and third items.); 4104 report (x>y, "x is %d but y is %d", x, y); 4105} 4106 4107// Check long long types. 4108#define BIG64 18446744073709551615ull 4109#define BIG32 4294967295ul 4110#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4111#if !BIG_OK 4112 your preprocessor is broken; 4113#endif 4114#if BIG_OK 4115#else 4116 your preprocessor is broken; 4117#endif 4118static long long int bignum = -9223372036854775807LL; 4119static unsigned long long int ubignum = BIG64; 4120 4121struct incomplete_array 4122{ 4123 int datasize; 4124 double data[]; 4125}; 4126 4127struct named_init { 4128 int number; 4129 const wchar_t *name; 4130 double average; 4131}; 4132 4133typedef const char *ccp; 4134 4135static inline int 4136test_restrict (ccp restrict text) 4137{ 4138 // See if C++-style comments work. 4139 // Iterate through items via the restricted pointer. 4140 // Also check for declarations in for loops. 4141 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4142 continue; 4143 return 0; 4144} 4145 4146// Check varargs and va_copy. 4147static void 4148test_varargs (const char *format, ...) 4149{ 4150 va_list args; 4151 va_start (args, format); 4152 va_list args_copy; 4153 va_copy (args_copy, args); 4154 4155 const char *str; 4156 int number; 4157 float fnumber; 4158 4159 while (*format) 4160 { 4161 switch (*format++) 4162 { 4163 case 's': // string 4164 str = va_arg (args_copy, const char *); 4165 break; 4166 case 'd': // int 4167 number = va_arg (args_copy, int); 4168 break; 4169 case 'f': // float 4170 fnumber = va_arg (args_copy, double); 4171 break; 4172 default: 4173 break; 4174 } 4175 } 4176 va_end (args_copy); 4177 va_end (args); 4178} 4179 4180int 4181main () 4182{ 4183 4184 // Check bool. 4185 _Bool success = false; 4186 4187 // Check restrict. 4188 if (test_restrict ("String literal") == 0) 4189 success = true; 4190 char *restrict newvar = "Another string"; 4191 4192 // Check varargs. 4193 test_varargs ("s, d' f .", "string", 65, 34.234); 4194 test_varargs_macros (); 4195 4196 // Check flexible array members. 4197 struct incomplete_array *ia = 4198 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4199 ia->datasize = 10; 4200 for (int i = 0; i < ia->datasize; ++i) 4201 ia->data[i] = i * 1.234; 4202 4203 // Check named initializers. 4204 struct named_init ni = { 4205 .number = 34, 4206 .name = L"Test wide string", 4207 .average = 543.34343, 4208 }; 4209 4210 ni.number = 58; 4211 4212 int dynamic_array[ni.number]; 4213 dynamic_array[ni.number - 1] = 543; 4214 4215 // work around unused variable warnings 4216 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4217 || dynamic_array[ni.number - 1] != 543); 4218 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4224do 4225 CC="$ac_save_CC $ac_arg" 4226 if ac_fn_c_try_compile "$LINENO"; then : 4227 ac_cv_prog_cc_c99=$ac_arg 4228fi 4229rm -f core conftest.err conftest.$ac_objext 4230 test "x$ac_cv_prog_cc_c99" != "xno" && break 4231done 4232rm -f conftest.$ac_ext 4233CC=$ac_save_CC 4234 4235fi 4236# AC_CACHE_VAL 4237case "x$ac_cv_prog_cc_c99" in 4238 x) 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4240$as_echo "none needed" >&6; } ;; 4241 xno) 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4243$as_echo "unsupported" >&6; } ;; 4244 *) 4245 CC="$CC $ac_cv_prog_cc_c99" 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4247$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4248esac 4249if test "x$ac_cv_prog_cc_c99" != xno; then : 4250 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4251else 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4253$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4254if ${ac_cv_prog_cc_c89+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 ac_cv_prog_cc_c89=no 4258ac_save_CC=$CC 4259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4260/* end confdefs.h. */ 4261#include <stdarg.h> 4262#include <stdio.h> 4263struct stat; 4264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4265struct buf { int x; }; 4266FILE * (*rcsopen) (struct buf *, struct stat *, int); 4267static char *e (p, i) 4268 char **p; 4269 int i; 4270{ 4271 return p[i]; 4272} 4273static char *f (char * (*g) (char **, int), char **p, ...) 4274{ 4275 char *s; 4276 va_list v; 4277 va_start (v,p); 4278 s = g (p, va_arg (v,int)); 4279 va_end (v); 4280 return s; 4281} 4282 4283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4284 function prototypes and stuff, but not '\xHH' hex character constants. 4285 These don't provoke an error unfortunately, instead are silently treated 4286 as 'x'. The following induces an error, until -std is added to get 4287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4288 array size at least. It's necessary to write '\x00'==0 to get something 4289 that's true only with -std. */ 4290int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4291 4292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4293 inside strings and character constants. */ 4294#define FOO(x) 'x' 4295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4296 4297int test (int i, double x); 4298struct s1 {int (*f) (int a);}; 4299struct s2 {int (*f) (double a);}; 4300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4301int argc; 4302char **argv; 4303int 4304main () 4305{ 4306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4307 ; 4308 return 0; 4309} 4310_ACEOF 4311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4313do 4314 CC="$ac_save_CC $ac_arg" 4315 if ac_fn_c_try_compile "$LINENO"; then : 4316 ac_cv_prog_cc_c89=$ac_arg 4317fi 4318rm -f core conftest.err conftest.$ac_objext 4319 test "x$ac_cv_prog_cc_c89" != "xno" && break 4320done 4321rm -f conftest.$ac_ext 4322CC=$ac_save_CC 4323 4324fi 4325# AC_CACHE_VAL 4326case "x$ac_cv_prog_cc_c89" in 4327 x) 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4329$as_echo "none needed" >&6; } ;; 4330 xno) 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4332$as_echo "unsupported" >&6; } ;; 4333 *) 4334 CC="$CC $ac_cv_prog_cc_c89" 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4336$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4337esac 4338if test "x$ac_cv_prog_cc_c89" != xno; then : 4339 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4340else 4341 ac_cv_prog_cc_stdc=no 4342fi 4343 4344fi 4345 ;; 4346esac 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4348$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4349 if ${ac_cv_prog_cc_stdc+:} false; then : 4350 $as_echo_n "(cached) " >&6 4351fi 4352 4353 case $ac_cv_prog_cc_stdc in #( 4354 no) : 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4356$as_echo "unsupported" >&6; } ;; #( 4357 '') : 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4359$as_echo "none needed" >&6; } ;; #( 4360 *) : 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4362$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4363esac 4364 4365ac_ext=c 4366ac_cpp='$CPP $CPPFLAGS' 4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4369ac_compiler_gnu=$ac_cv_c_compiler_gnu 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4371$as_echo_n "checking how to run the C preprocessor... " >&6; } 4372# On Suns, sometimes $CPP names a directory. 4373if test -n "$CPP" && test -d "$CPP"; then 4374 CPP= 4375fi 4376if test -z "$CPP"; then 4377 if ${ac_cv_prog_CPP+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 # Double quotes because CPP needs to be expanded 4381 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4382 do 4383 ac_preproc_ok=false 4384for ac_c_preproc_warn_flag in '' yes 4385do 4386 # Use a header file that comes with gcc, so configuring glibc 4387 # with a fresh cross-compiler works. 4388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4389 # <limits.h> exists even on freestanding compilers. 4390 # On the NeXT, cc -E runs the code through the compiler's parser, 4391 # not just through cpp. "Syntax error" is here to catch this case. 4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4393/* end confdefs.h. */ 4394#ifdef __STDC__ 4395# include <limits.h> 4396#else 4397# include <assert.h> 4398#endif 4399 Syntax error 4400_ACEOF 4401if ac_fn_c_try_cpp "$LINENO"; then : 4402 4403else 4404 # Broken: fails on valid input. 4405continue 4406fi 4407rm -f conftest.err conftest.i conftest.$ac_ext 4408 4409 # OK, works on sane cases. Now check whether nonexistent headers 4410 # can be detected and how. 4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4412/* end confdefs.h. */ 4413#include <ac_nonexistent.h> 4414_ACEOF 4415if ac_fn_c_try_cpp "$LINENO"; then : 4416 # Broken: success on invalid input. 4417continue 4418else 4419 # Passes both tests. 4420ac_preproc_ok=: 4421break 4422fi 4423rm -f conftest.err conftest.i conftest.$ac_ext 4424 4425done 4426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4427rm -f conftest.i conftest.err conftest.$ac_ext 4428if $ac_preproc_ok; then : 4429 break 4430fi 4431 4432 done 4433 ac_cv_prog_CPP=$CPP 4434 4435fi 4436 CPP=$ac_cv_prog_CPP 4437else 4438 ac_cv_prog_CPP=$CPP 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4441$as_echo "$CPP" >&6; } 4442ac_preproc_ok=false 4443for ac_c_preproc_warn_flag in '' yes 4444do 4445 # Use a header file that comes with gcc, so configuring glibc 4446 # with a fresh cross-compiler works. 4447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4448 # <limits.h> exists even on freestanding compilers. 4449 # On the NeXT, cc -E runs the code through the compiler's parser, 4450 # not just through cpp. "Syntax error" is here to catch this case. 4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4452/* end confdefs.h. */ 4453#ifdef __STDC__ 4454# include <limits.h> 4455#else 4456# include <assert.h> 4457#endif 4458 Syntax error 4459_ACEOF 4460if ac_fn_c_try_cpp "$LINENO"; then : 4461 4462else 4463 # Broken: fails on valid input. 4464continue 4465fi 4466rm -f conftest.err conftest.i conftest.$ac_ext 4467 4468 # OK, works on sane cases. Now check whether nonexistent headers 4469 # can be detected and how. 4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471/* end confdefs.h. */ 4472#include <ac_nonexistent.h> 4473_ACEOF 4474if ac_fn_c_try_cpp "$LINENO"; then : 4475 # Broken: success on invalid input. 4476continue 4477else 4478 # Passes both tests. 4479ac_preproc_ok=: 4480break 4481fi 4482rm -f conftest.err conftest.i conftest.$ac_ext 4483 4484done 4485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4486rm -f conftest.i conftest.err conftest.$ac_ext 4487if $ac_preproc_ok; then : 4488 4489else 4490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4492as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4493See \`config.log' for more details" "$LINENO" 5; } 4494fi 4495 4496ac_ext=c 4497ac_cpp='$CPP $CPPFLAGS' 4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4500ac_compiler_gnu=$ac_cv_c_compiler_gnu 4501 4502 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4504$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4505set x ${MAKE-make} 4506ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4507if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 cat >conftest.make <<\_ACEOF 4511SHELL = /bin/sh 4512all: 4513 @echo '@@@%%%=$(MAKE)=@@@%%%' 4514_ACEOF 4515# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4516case `${MAKE-make} -f conftest.make 2>/dev/null` in 4517 *@@@%%%=?*=@@@%%%*) 4518 eval ac_cv_prog_make_${ac_make}_set=yes;; 4519 *) 4520 eval ac_cv_prog_make_${ac_make}_set=no;; 4521esac 4522rm -f conftest.make 4523fi 4524if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4526$as_echo "yes" >&6; } 4527 SET_MAKE= 4528else 4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4530$as_echo "no" >&6; } 4531 SET_MAKE="MAKE=${MAKE-make}" 4532fi 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4535$as_echo_n "checking whether ln -s works... " >&6; } 4536LN_S=$as_ln_s 4537if test "$LN_S" = "ln -s"; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4539$as_echo "yes" >&6; } 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4542$as_echo "no, using $LN_S" >&6; } 4543fi 4544 4545 4546if test -n "$ac_tool_prefix"; then 4547 for ac_prog in ar lib "link -lib" 4548 do 4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4550set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4552$as_echo_n "checking for $ac_word... " >&6; } 4553if ${ac_cv_prog_AR+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 if test -n "$AR"; then 4557 ac_cv_prog_AR="$AR" # Let the user override the test. 4558else 4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4560for as_dir in $PATH 4561do 4562 IFS=$as_save_IFS 4563 test -z "$as_dir" && as_dir=. 4564 for ac_exec_ext in '' $ac_executable_extensions; do 4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4566 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4568 break 2 4569 fi 4570done 4571 done 4572IFS=$as_save_IFS 4573 4574fi 4575fi 4576AR=$ac_cv_prog_AR 4577if test -n "$AR"; then 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4579$as_echo "$AR" >&6; } 4580else 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4582$as_echo "no" >&6; } 4583fi 4584 4585 4586 test -n "$AR" && break 4587 done 4588fi 4589if test -z "$AR"; then 4590 ac_ct_AR=$AR 4591 for ac_prog in ar lib "link -lib" 4592do 4593 # Extract the first word of "$ac_prog", so it can be a program name with args. 4594set dummy $ac_prog; ac_word=$2 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4596$as_echo_n "checking for $ac_word... " >&6; } 4597if ${ac_cv_prog_ac_ct_AR+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599else 4600 if test -n "$ac_ct_AR"; then 4601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4602else 4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4604for as_dir in $PATH 4605do 4606 IFS=$as_save_IFS 4607 test -z "$as_dir" && as_dir=. 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4610 ac_cv_prog_ac_ct_AR="$ac_prog" 4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4612 break 2 4613 fi 4614done 4615 done 4616IFS=$as_save_IFS 4617 4618fi 4619fi 4620ac_ct_AR=$ac_cv_prog_ac_ct_AR 4621if test -n "$ac_ct_AR"; then 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4623$as_echo "$ac_ct_AR" >&6; } 4624else 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626$as_echo "no" >&6; } 4627fi 4628 4629 4630 test -n "$ac_ct_AR" && break 4631done 4632 4633 if test "x$ac_ct_AR" = x; then 4634 AR="false" 4635 else 4636 case $cross_compiling:$ac_tool_warned in 4637yes:) 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4640ac_tool_warned=yes ;; 4641esac 4642 AR=$ac_ct_AR 4643 fi 4644fi 4645 4646: ${AR=ar} 4647 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4649$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4650if ${am_cv_ar_interface+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 ac_ext=c 4654ac_cpp='$CPP $CPPFLAGS' 4655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4657ac_compiler_gnu=$ac_cv_c_compiler_gnu 4658 4659 am_cv_ar_interface=ar 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662int some_variable = 0; 4663_ACEOF 4664if ac_fn_c_try_compile "$LINENO"; then : 4665 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4667 (eval $am_ar_try) 2>&5 4668 ac_status=$? 4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4670 test $ac_status = 0; } 4671 if test "$ac_status" -eq 0; then 4672 am_cv_ar_interface=ar 4673 else 4674 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4676 (eval $am_ar_try) 2>&5 4677 ac_status=$? 4678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4679 test $ac_status = 0; } 4680 if test "$ac_status" -eq 0; then 4681 am_cv_ar_interface=lib 4682 else 4683 am_cv_ar_interface=unknown 4684 fi 4685 fi 4686 rm -f conftest.lib libconftest.a 4687 4688fi 4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4690 ac_ext=c 4691ac_cpp='$CPP $CPPFLAGS' 4692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4694ac_compiler_gnu=$ac_cv_c_compiler_gnu 4695 4696fi 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4698$as_echo "$am_cv_ar_interface" >&6; } 4699 4700case $am_cv_ar_interface in 4701ar) 4702 ;; 4703lib) 4704 # Microsoft lib, so override with the ar-lib wrapper script. 4705 # FIXME: It is wrong to rewrite AR. 4706 # But if we don't then we get into trouble of one sort or another. 4707 # A longer-term fix would be to have automake use am__AR in this case, 4708 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4709 # similar. 4710 AR="$am_aux_dir/ar-lib $AR" 4711 ;; 4712unknown) 4713 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4714 ;; 4715esac 4716 4717 4718# Check if LD supports linker scripts, 4719# and define automake conditional HAVE_LD_VERSION_SCRIPT if so. 4720# Check whether --enable-ld-version-script was given. 4721if test "${enable_ld_version_script+set}" = set; then : 4722 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 4723fi 4724 4725if test -z "$have_ld_version_script"; then 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 4727$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 4728 save_LDFLAGS="$LDFLAGS" 4729 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 4730 cat > conftest.map <<EOF 4731VERS_1 { 4732 global: sym; 4733}; 4734 4735VERS_2 { 4736 global: sym; 4737} VERS_1; 4738EOF 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740/* end confdefs.h. */ 4741 4742int 4743main () 4744{ 4745 4746 ; 4747 return 0; 4748} 4749_ACEOF 4750if ac_fn_c_try_link "$LINENO"; then : 4751 have_ld_version_script=yes 4752else 4753 have_ld_version_script=no 4754fi 4755rm -f core conftest.err conftest.$ac_objext \ 4756 conftest$ac_exeext conftest.$ac_ext 4757 rm -f conftest.map 4758 LDFLAGS="$save_LDFLAGS" 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 4760$as_echo "$have_ld_version_script" >&6; } 4761fi 4762 if test "$have_ld_version_script" = "yes"; then 4763 HAVE_LD_VERSION_SCRIPT_TRUE= 4764 HAVE_LD_VERSION_SCRIPT_FALSE='#' 4765else 4766 HAVE_LD_VERSION_SCRIPT_TRUE='#' 4767 HAVE_LD_VERSION_SCRIPT_FALSE= 4768fi 4769 4770 4771# See if compiler supports prototypes. 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 4773$as_echo_n "checking for function prototypes... " >&6; } 4774if ${ijg_cv_have_prototypes+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4778/* end confdefs.h. */ 4779 4780int testfunction (int arg1, int * arg2); /* check prototypes */ 4781struct methods_struct { /* check method-pointer declarations */ 4782 int (*error_exit) (char *msgtext); 4783 int (*trace_message) (char *msgtext); 4784 int (*another_method) (void); 4785}; 4786int testfunction (int arg1, int * arg2) /* check definitions */ 4787{ return arg2[arg1]; } 4788int test2function (void) /* check void arg list */ 4789{ return 0; } 4790 4791_ACEOF 4792if ac_fn_c_try_compile "$LINENO"; then : 4793 ijg_cv_have_prototypes=yes 4794else 4795 ijg_cv_have_prototypes=no 4796fi 4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4798fi 4799 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5 4801$as_echo "$ijg_cv_have_prototypes" >&6; } 4802if test $ijg_cv_have_prototypes = yes; then 4803 4804$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 4805 4806else 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not seem to know about function prototypes. 4808 Perhaps it needs a special switch to enable ANSI C mode. 4809 If so, we recommend running configure like this: 4810 ./configure CC='cc -switch' 4811 where -switch is the proper switch." >&5 4812$as_echo "$as_me: WARNING: Your compiler does not seem to know about function prototypes. 4813 Perhaps it needs a special switch to enable ANSI C mode. 4814 If so, we recommend running configure like this: 4815 ./configure CC='cc -switch' 4816 where -switch is the proper switch." >&2;} 4817fi 4818 4819# Check header files 4820 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4822$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4823if ${ac_cv_path_GREP+:} false; then : 4824 $as_echo_n "(cached) " >&6 4825else 4826 if test -z "$GREP"; then 4827 ac_path_GREP_found=false 4828 # Loop through the user's path and test for each of PROGNAME-LIST 4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4830for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4831do 4832 IFS=$as_save_IFS 4833 test -z "$as_dir" && as_dir=. 4834 for ac_prog in grep ggrep; do 4835 for ac_exec_ext in '' $ac_executable_extensions; do 4836 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4837 as_fn_executable_p "$ac_path_GREP" || continue 4838# Check for GNU ac_path_GREP and select it if it is found. 4839 # Check for GNU $ac_path_GREP 4840case `"$ac_path_GREP" --version 2>&1` in 4841*GNU*) 4842 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4843*) 4844 ac_count=0 4845 $as_echo_n 0123456789 >"conftest.in" 4846 while : 4847 do 4848 cat "conftest.in" "conftest.in" >"conftest.tmp" 4849 mv "conftest.tmp" "conftest.in" 4850 cp "conftest.in" "conftest.nl" 4851 $as_echo 'GREP' >> "conftest.nl" 4852 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4854 as_fn_arith $ac_count + 1 && ac_count=$as_val 4855 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4856 # Best one so far, save it but keep looking for a better one 4857 ac_cv_path_GREP="$ac_path_GREP" 4858 ac_path_GREP_max=$ac_count 4859 fi 4860 # 10*(2^10) chars as input seems more than enough 4861 test $ac_count -gt 10 && break 4862 done 4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4864esac 4865 4866 $ac_path_GREP_found && break 3 4867 done 4868 done 4869 done 4870IFS=$as_save_IFS 4871 if test -z "$ac_cv_path_GREP"; then 4872 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4873 fi 4874else 4875 ac_cv_path_GREP=$GREP 4876fi 4877 4878fi 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4880$as_echo "$ac_cv_path_GREP" >&6; } 4881 GREP="$ac_cv_path_GREP" 4882 4883 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4885$as_echo_n "checking for egrep... " >&6; } 4886if ${ac_cv_path_EGREP+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4890 then ac_cv_path_EGREP="$GREP -E" 4891 else 4892 if test -z "$EGREP"; then 4893 ac_path_EGREP_found=false 4894 # Loop through the user's path and test for each of PROGNAME-LIST 4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4896for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4897do 4898 IFS=$as_save_IFS 4899 test -z "$as_dir" && as_dir=. 4900 for ac_prog in egrep; do 4901 for ac_exec_ext in '' $ac_executable_extensions; do 4902 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4903 as_fn_executable_p "$ac_path_EGREP" || continue 4904# Check for GNU ac_path_EGREP and select it if it is found. 4905 # Check for GNU $ac_path_EGREP 4906case `"$ac_path_EGREP" --version 2>&1` in 4907*GNU*) 4908 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4909*) 4910 ac_count=0 4911 $as_echo_n 0123456789 >"conftest.in" 4912 while : 4913 do 4914 cat "conftest.in" "conftest.in" >"conftest.tmp" 4915 mv "conftest.tmp" "conftest.in" 4916 cp "conftest.in" "conftest.nl" 4917 $as_echo 'EGREP' >> "conftest.nl" 4918 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4920 as_fn_arith $ac_count + 1 && ac_count=$as_val 4921 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4922 # Best one so far, save it but keep looking for a better one 4923 ac_cv_path_EGREP="$ac_path_EGREP" 4924 ac_path_EGREP_max=$ac_count 4925 fi 4926 # 10*(2^10) chars as input seems more than enough 4927 test $ac_count -gt 10 && break 4928 done 4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4930esac 4931 4932 $ac_path_EGREP_found && break 3 4933 done 4934 done 4935 done 4936IFS=$as_save_IFS 4937 if test -z "$ac_cv_path_EGREP"; then 4938 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4939 fi 4940else 4941 ac_cv_path_EGREP=$EGREP 4942fi 4943 4944 fi 4945fi 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4947$as_echo "$ac_cv_path_EGREP" >&6; } 4948 EGREP="$ac_cv_path_EGREP" 4949 4950 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4952$as_echo_n "checking for ANSI C header files... " >&6; } 4953if ${ac_cv_header_stdc+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958#include <stdlib.h> 4959#include <stdarg.h> 4960#include <string.h> 4961#include <float.h> 4962 4963int 4964main () 4965{ 4966 4967 ; 4968 return 0; 4969} 4970_ACEOF 4971if ac_fn_c_try_compile "$LINENO"; then : 4972 ac_cv_header_stdc=yes 4973else 4974 ac_cv_header_stdc=no 4975fi 4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4977 4978if test $ac_cv_header_stdc = yes; then 4979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981/* end confdefs.h. */ 4982#include <string.h> 4983 4984_ACEOF 4985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4986 $EGREP "memchr" >/dev/null 2>&1; then : 4987 4988else 4989 ac_cv_header_stdc=no 4990fi 4991rm -f conftest* 4992 4993fi 4994 4995if test $ac_cv_header_stdc = yes; then 4996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999#include <stdlib.h> 5000 5001_ACEOF 5002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5003 $EGREP "free" >/dev/null 2>&1; then : 5004 5005else 5006 ac_cv_header_stdc=no 5007fi 5008rm -f conftest* 5009 5010fi 5011 5012if test $ac_cv_header_stdc = yes; then 5013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5014 if test "$cross_compiling" = yes; then : 5015 : 5016else 5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5018/* end confdefs.h. */ 5019#include <ctype.h> 5020#include <stdlib.h> 5021#if ((' ' & 0x0FF) == 0x020) 5022# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5023# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5024#else 5025# define ISLOWER(c) \ 5026 (('a' <= (c) && (c) <= 'i') \ 5027 || ('j' <= (c) && (c) <= 'r') \ 5028 || ('s' <= (c) && (c) <= 'z')) 5029# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5030#endif 5031 5032#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5033int 5034main () 5035{ 5036 int i; 5037 for (i = 0; i < 256; i++) 5038 if (XOR (islower (i), ISLOWER (i)) 5039 || toupper (i) != TOUPPER (i)) 5040 return 2; 5041 return 0; 5042} 5043_ACEOF 5044if ac_fn_c_try_run "$LINENO"; then : 5045 5046else 5047 ac_cv_header_stdc=no 5048fi 5049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5050 conftest.$ac_objext conftest.beam conftest.$ac_ext 5051fi 5052 5053fi 5054fi 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5056$as_echo "$ac_cv_header_stdc" >&6; } 5057if test $ac_cv_header_stdc = yes; then 5058 5059$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5060 5061fi 5062 5063# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5064for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5065 inttypes.h stdint.h unistd.h 5066do : 5067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5068ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5069" 5070if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5071 cat >>confdefs.h <<_ACEOF 5072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5073_ACEOF 5074 5075fi 5076 5077done 5078 5079 5080for ac_header in stddef.h stdlib.h locale.h 5081do : 5082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5083ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5084if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5085 cat >>confdefs.h <<_ACEOF 5086#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5087_ACEOF 5088 5089fi 5090 5091done 5092 5093ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 5094if test "x$ac_cv_header_string_h" = xyes; then : 5095 5096else 5097 5098$as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h 5099 5100fi 5101 5102 5103 5104# See whether type size_t is defined in any ANSI-standard places; 5105# if not, perhaps it is defined in <sys/types.h>. 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 5107$as_echo_n "checking for size_t... " >&6; } 5108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110 5111#ifdef HAVE_STDDEF_H 5112#include <stddef.h> 5113#endif 5114#ifdef HAVE_STDLIB_H 5115#include <stdlib.h> 5116#endif 5117#include <stdio.h> 5118#ifdef NEED_BSD_STRINGS 5119#include <strings.h> 5120#else 5121#include <string.h> 5122#endif 5123typedef size_t my_size_t; 5124 5125int 5126main () 5127{ 5128 my_size_t foovar; 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133if ac_fn_c_try_compile "$LINENO"; then : 5134 ijg_size_t_ok=yes 5135else 5136 ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h" 5137fi 5138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5 5140$as_echo "$ijg_size_t_ok" >&6; } 5141if test "$ijg_size_t_ok" != yes; then 5142 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 5143if test "x$ac_cv_header_sys_types_h" = xyes; then : 5144 5145$as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h 5146 5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148/* end confdefs.h. */ 5149#include <sys/types.h> 5150_ACEOF 5151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5152 $EGREP "size_t" >/dev/null 2>&1; then : 5153 ijg_size_t_ok="size_t is in sys/types.h" 5154else 5155 ijg_size_t_ok=no 5156fi 5157rm -f conftest* 5158 5159else 5160 ijg_size_t_ok=no 5161fi 5162 5163 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5 5165$as_echo "$ijg_size_t_ok" >&6; } 5166 if test "$ijg_size_t_ok" = no; then 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Type size_t is not defined in any of the usual places. 5168 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&5 5169$as_echo "$as_me: WARNING: Type size_t is not defined in any of the usual places. 5170 Try putting '\"typedef unsigned int size_t;\"' in jconfig.h." >&2;} 5171 fi 5172fi 5173 5174# Check compiler characteristics 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5 5176$as_echo_n "checking for type unsigned char... " >&6; } 5177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5178/* end confdefs.h. */ 5179 5180int 5181main () 5182{ 5183 unsigned char un_char; 5184 ; 5185 return 0; 5186} 5187_ACEOF 5188if ac_fn_c_try_compile "$LINENO"; then : 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5190$as_echo "yes" >&6; } 5191 5192$as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h 5193 5194else 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5196$as_echo "no" >&6; } 5197fi 5198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5199 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5 5201$as_echo_n "checking for type unsigned short... " >&6; } 5202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203/* end confdefs.h. */ 5204 5205int 5206main () 5207{ 5208 unsigned short un_short; 5209 ; 5210 return 0; 5211} 5212_ACEOF 5213if ac_fn_c_try_compile "$LINENO"; then : 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5215$as_echo "yes" >&6; } 5216 5217$as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h 5218 5219else 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5221$as_echo "no" >&6; } 5222fi 5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5224 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5 5226$as_echo_n "checking for type void... " >&6; } 5227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5228/* end confdefs.h. */ 5229 5230/* Caution: a C++ compiler will insist on valid prototypes */ 5231typedef void * void_ptr; /* check void * */ 5232#ifdef HAVE_PROTOTYPES /* check ptr to function returning void */ 5233typedef void (*void_func) (int a, int b); 5234#else 5235typedef void (*void_func) (); 5236#endif 5237 5238#ifdef HAVE_PROTOTYPES /* check void function result */ 5239void test3function (void_ptr arg1, void_func arg2) 5240#else 5241void test3function (arg1, arg2) 5242 void_ptr arg1; 5243 void_func arg2; 5244#endif 5245{ 5246 char * locptr = (char *) arg1; /* check casting to and from void * */ 5247 arg1 = (void *) locptr; 5248 (*arg2) (1, 2); /* check call of fcn returning void */ 5249} 5250 5251int 5252main () 5253{ 5254 5255 ; 5256 return 0; 5257} 5258_ACEOF 5259if ac_fn_c_try_compile "$LINENO"; then : 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5261$as_echo "yes" >&6; } 5262else 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5264$as_echo "no" >&6; } 5265 5266$as_echo "#define void char" >>confdefs.h 5267 5268fi 5269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5271$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5272if ${ac_cv_c_const+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277 5278int 5279main () 5280{ 5281 5282#ifndef __cplusplus 5283 /* Ultrix mips cc rejects this sort of thing. */ 5284 typedef int charset[2]; 5285 const charset cs = { 0, 0 }; 5286 /* SunOS 4.1.1 cc rejects this. */ 5287 char const *const *pcpcc; 5288 char **ppc; 5289 /* NEC SVR4.0.2 mips cc rejects this. */ 5290 struct point {int x, y;}; 5291 static struct point const zero = {0,0}; 5292 /* AIX XL C 1.02.0.0 rejects this. 5293 It does not let you subtract one const X* pointer from another in 5294 an arm of an if-expression whose if-part is not a constant 5295 expression */ 5296 const char *g = "string"; 5297 pcpcc = &g + (g ? g-g : 0); 5298 /* HPUX 7.0 cc rejects these. */ 5299 ++pcpcc; 5300 ppc = (char**) pcpcc; 5301 pcpcc = (char const *const *) ppc; 5302 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5303 char tx; 5304 char *t = &tx; 5305 char const *s = 0 ? (char *) 0 : (char const *) 0; 5306 5307 *t++ = 0; 5308 if (s) return 0; 5309 } 5310 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5311 int x[] = {25, 17}; 5312 const int *foo = &x[0]; 5313 ++foo; 5314 } 5315 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5316 typedef const int *iptr; 5317 iptr p = 0; 5318 ++p; 5319 } 5320 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5321 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5322 struct s { int j; const int *ap[3]; } bx; 5323 struct s *b = &bx; b->j = 5; 5324 } 5325 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5326 const int foo = 10; 5327 if (!foo) return 0; 5328 } 5329 return !cs[0] && !zero.x; 5330#endif 5331 5332 ; 5333 return 0; 5334} 5335_ACEOF 5336if ac_fn_c_try_compile "$LINENO"; then : 5337 ac_cv_c_const=yes 5338else 5339 ac_cv_c_const=no 5340fi 5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5342fi 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5344$as_echo "$ac_cv_c_const" >&6; } 5345if test $ac_cv_c_const = no; then 5346 5347$as_echo "#define const /**/" >>confdefs.h 5348 5349fi 5350 5351 5352# Check for non-broken inline under various spellings 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5354$as_echo_n "checking for inline... " >&6; } 5355ijg_cv_inline="" 5356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358 5359int 5360main () 5361{ 5362} __inline__ int foo() { return 0; } 5363int bar() { return foo(); 5364 ; 5365 return 0; 5366} 5367_ACEOF 5368if ac_fn_c_try_compile "$LINENO"; then : 5369 ijg_cv_inline="__inline__" 5370else 5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373 5374int 5375main () 5376{ 5377} __inline int foo() { return 0; } 5378int bar() { return foo(); 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383if ac_fn_c_try_compile "$LINENO"; then : 5384 ijg_cv_inline="__inline" 5385else 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387/* end confdefs.h. */ 5388 5389int 5390main () 5391{ 5392} inline int foo() { return 0; } 5393int bar() { return foo(); 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_compile "$LINENO"; then : 5399 ijg_cv_inline="inline" 5400fi 5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5402fi 5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5404fi 5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5 5407$as_echo "$ijg_cv_inline" >&6; } 5408 5409cat >>confdefs.h <<_ACEOF 5410#define INLINE $ijg_cv_inline 5411_ACEOF 5412 5413 5414# We cannot check for bogus warnings, but at least we can check for errors 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5 5416$as_echo_n "checking for broken incomplete types... " >&6; } 5417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419 typedef struct undefined_structure * undef_struct_ptr; 5420int 5421main () 5422{ 5423 5424 ; 5425 return 0; 5426} 5427_ACEOF 5428if ac_fn_c_try_compile "$LINENO"; then : 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5430$as_echo "ok" >&6; } 5431else 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5 5433$as_echo "broken" >&6; } 5434 5435$as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h 5436 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5439 5440# Test whether global names are unique to at least 15 chars 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5 5442$as_echo_n "checking for short external names... " >&6; } 5443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5444/* end confdefs.h. */ 5445 5446int possibly_duplicate_function () { return 0; } 5447int possibly_dupli_function () { return 1; } 5448 5449int 5450main () 5451{ 5452 5453 ; 5454 return 0; 5455} 5456_ACEOF 5457if ac_fn_c_try_link "$LINENO"; then : 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5459$as_echo "ok" >&6; } 5460else 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5 5462$as_echo "short" >&6; } 5463 5464$as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h 5465 5466fi 5467rm -f core conftest.err conftest.$ac_objext \ 5468 conftest$ac_exeext conftest.$ac_ext 5469 5470# Run-time checks 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5 5472$as_echo_n "checking to see if char is signed... " >&6; } 5473if test "$cross_compiling" = yes; then : 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming that char is signed on target machine. 5475 If it is unsigned, this will be a little bit inefficient." >&5 5476$as_echo "$as_me: WARNING: Assuming that char is signed on target machine. 5477 If it is unsigned, this will be a little bit inefficient." >&2;} 5478 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482 5483#ifdef HAVE_STDLIB_H 5484#include <stdlib.h> 5485#endif 5486#include <stdio.h> 5487#ifdef HAVE_PROTOTYPES 5488int is_char_signed (int arg) 5489#else 5490int is_char_signed (arg) 5491 int arg; 5492#endif 5493{ 5494 if (arg == 189) { /* expected result for unsigned char */ 5495 return 0; /* type char is unsigned */ 5496 } 5497 else if (arg != -67) { /* expected result for signed char */ 5498 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n"); 5499 printf("I fear the JPEG software will not work at all.\n\n"); 5500 } 5501 return 1; /* assume char is signed otherwise */ 5502} 5503char signed_char_check = (char) (-67); 5504int main() { 5505 exit(is_char_signed((int) signed_char_check)); 5506} 5507_ACEOF 5508if ac_fn_c_try_run "$LINENO"; then : 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510$as_echo "no" >&6; } 5511 5512$as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h 5513 5514else 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5516$as_echo "yes" >&6; } 5517fi 5518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5519 conftest.$ac_objext conftest.beam conftest.$ac_ext 5520fi 5521 5522 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5 5524$as_echo_n "checking to see if right shift is signed... " >&6; } 5525if test "$cross_compiling" = yes; then : 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5 5527$as_echo "Assuming that right shift is signed on target machine." >&6; } 5528else 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531 5532#ifdef HAVE_STDLIB_H 5533#include <stdlib.h> 5534#endif 5535#include <stdio.h> 5536#ifdef HAVE_PROTOTYPES 5537int is_shifting_signed (long arg) 5538#else 5539int is_shifting_signed (arg) 5540 long arg; 5541#endif 5542/* See whether right-shift on a long is signed or not. */ 5543{ 5544 long res = arg >> 4; 5545 5546 if (res == -0x7F7E80CL) { /* expected result for signed shift */ 5547 return 1; /* right shift is signed */ 5548 } 5549 /* see if unsigned-shift hack will fix it. */ 5550 /* we can't just test exact value since it depends on width of long... */ 5551 res |= (~0L) << (32-4); 5552 if (res == -0x7F7E80CL) { /* expected result now? */ 5553 return 0; /* right shift is unsigned */ 5554 } 5555 printf("Right shift isn't acting as I expect it to.\n"); 5556 printf("I fear the JPEG software will not work at all.\n\n"); 5557 return 0; /* try it with unsigned anyway */ 5558} 5559int main() { 5560 exit(is_shifting_signed(-0x7F7E80B1L)); 5561} 5562_ACEOF 5563if ac_fn_c_try_run "$LINENO"; then : 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5565$as_echo "no" >&6; } 5566 5567$as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h 5568 5569else 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5571$as_echo "yes" >&6; } 5572fi 5573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5574 conftest.$ac_objext conftest.beam conftest.$ac_ext 5575fi 5576 5577 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5 5579$as_echo_n "checking to see if fopen accepts b spec... " >&6; } 5580if test "$cross_compiling" = yes; then : 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5 5582$as_echo "Assuming that it does." >&6; } 5583else 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585/* end confdefs.h. */ 5586 5587#ifdef HAVE_STDLIB_H 5588#include <stdlib.h> 5589#endif 5590#include <stdio.h> 5591int main() { 5592 if (fopen("conftestdata", "wb") != NULL) 5593 exit(0); 5594 exit(1); 5595} 5596_ACEOF 5597if ac_fn_c_try_run "$LINENO"; then : 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5599$as_echo "yes" >&6; } 5600else 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5602$as_echo "no" >&6; } 5603 5604$as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h 5605 5606fi 5607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5608 conftest.$ac_objext conftest.beam conftest.$ac_ext 5609fi 5610 5611 5612# Configure libtool 5613enable_win32_dll=yes 5614 5615case $host in 5616*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5617 if test -n "$ac_tool_prefix"; then 5618 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5619set dummy ${ac_tool_prefix}as; ac_word=$2 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5621$as_echo_n "checking for $ac_word... " >&6; } 5622if ${ac_cv_prog_AS+:} false; then : 5623 $as_echo_n "(cached) " >&6 5624else 5625 if test -n "$AS"; then 5626 ac_cv_prog_AS="$AS" # Let the user override the test. 5627else 5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5629for as_dir in $PATH 5630do 5631 IFS=$as_save_IFS 5632 test -z "$as_dir" && as_dir=. 5633 for ac_exec_ext in '' $ac_executable_extensions; do 5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5635 ac_cv_prog_AS="${ac_tool_prefix}as" 5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5637 break 2 5638 fi 5639done 5640 done 5641IFS=$as_save_IFS 5642 5643fi 5644fi 5645AS=$ac_cv_prog_AS 5646if test -n "$AS"; then 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5648$as_echo "$AS" >&6; } 5649else 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651$as_echo "no" >&6; } 5652fi 5653 5654 5655fi 5656if test -z "$ac_cv_prog_AS"; then 5657 ac_ct_AS=$AS 5658 # Extract the first word of "as", so it can be a program name with args. 5659set dummy as; ac_word=$2 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5661$as_echo_n "checking for $ac_word... " >&6; } 5662if ${ac_cv_prog_ac_ct_AS+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$ac_ct_AS"; then 5666 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5675 ac_cv_prog_ac_ct_AS="as" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680 done 5681IFS=$as_save_IFS 5682 5683fi 5684fi 5685ac_ct_AS=$ac_cv_prog_ac_ct_AS 5686if test -n "$ac_ct_AS"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5688$as_echo "$ac_ct_AS" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 if test "x$ac_ct_AS" = x; then 5695 AS="false" 5696 else 5697 case $cross_compiling:$ac_tool_warned in 5698yes:) 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5701ac_tool_warned=yes ;; 5702esac 5703 AS=$ac_ct_AS 5704 fi 5705else 5706 AS="$ac_cv_prog_AS" 5707fi 5708 5709 if test -n "$ac_tool_prefix"; then 5710 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5711set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5713$as_echo_n "checking for $ac_word... " >&6; } 5714if ${ac_cv_prog_DLLTOOL+:} false; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 if test -n "$DLLTOOL"; then 5718 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5719else 5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5721for as_dir in $PATH 5722do 5723 IFS=$as_save_IFS 5724 test -z "$as_dir" && as_dir=. 5725 for ac_exec_ext in '' $ac_executable_extensions; do 5726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5727 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5729 break 2 5730 fi 5731done 5732 done 5733IFS=$as_save_IFS 5734 5735fi 5736fi 5737DLLTOOL=$ac_cv_prog_DLLTOOL 5738if test -n "$DLLTOOL"; then 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5740$as_echo "$DLLTOOL" >&6; } 5741else 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5743$as_echo "no" >&6; } 5744fi 5745 5746 5747fi 5748if test -z "$ac_cv_prog_DLLTOOL"; then 5749 ac_ct_DLLTOOL=$DLLTOOL 5750 # Extract the first word of "dlltool", so it can be a program name with args. 5751set dummy dlltool; ac_word=$2 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5753$as_echo_n "checking for $ac_word... " >&6; } 5754if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 if test -n "$ac_ct_DLLTOOL"; then 5758 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5759else 5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5761for as_dir in $PATH 5762do 5763 IFS=$as_save_IFS 5764 test -z "$as_dir" && as_dir=. 5765 for ac_exec_ext in '' $ac_executable_extensions; do 5766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5767 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5769 break 2 5770 fi 5771done 5772 done 5773IFS=$as_save_IFS 5774 5775fi 5776fi 5777ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5778if test -n "$ac_ct_DLLTOOL"; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5780$as_echo "$ac_ct_DLLTOOL" >&6; } 5781else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5783$as_echo "no" >&6; } 5784fi 5785 5786 if test "x$ac_ct_DLLTOOL" = x; then 5787 DLLTOOL="false" 5788 else 5789 case $cross_compiling:$ac_tool_warned in 5790yes:) 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5793ac_tool_warned=yes ;; 5794esac 5795 DLLTOOL=$ac_ct_DLLTOOL 5796 fi 5797else 5798 DLLTOOL="$ac_cv_prog_DLLTOOL" 5799fi 5800 5801 if test -n "$ac_tool_prefix"; then 5802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5803set dummy ${ac_tool_prefix}objdump; ac_word=$2 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5805$as_echo_n "checking for $ac_word... " >&6; } 5806if ${ac_cv_prog_OBJDUMP+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 if test -n "$OBJDUMP"; then 5810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5811else 5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813for as_dir in $PATH 5814do 5815 IFS=$as_save_IFS 5816 test -z "$as_dir" && as_dir=. 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5821 break 2 5822 fi 5823done 5824 done 5825IFS=$as_save_IFS 5826 5827fi 5828fi 5829OBJDUMP=$ac_cv_prog_OBJDUMP 5830if test -n "$OBJDUMP"; then 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5832$as_echo "$OBJDUMP" >&6; } 5833else 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5835$as_echo "no" >&6; } 5836fi 5837 5838 5839fi 5840if test -z "$ac_cv_prog_OBJDUMP"; then 5841 ac_ct_OBJDUMP=$OBJDUMP 5842 # Extract the first word of "objdump", so it can be a program name with args. 5843set dummy objdump; ac_word=$2 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5845$as_echo_n "checking for $ac_word... " >&6; } 5846if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5847 $as_echo_n "(cached) " >&6 5848else 5849 if test -n "$ac_ct_OBJDUMP"; then 5850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5851else 5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5853for as_dir in $PATH 5854do 5855 IFS=$as_save_IFS 5856 test -z "$as_dir" && as_dir=. 5857 for ac_exec_ext in '' $ac_executable_extensions; do 5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5859 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5861 break 2 5862 fi 5863done 5864 done 5865IFS=$as_save_IFS 5866 5867fi 5868fi 5869ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5870if test -n "$ac_ct_OBJDUMP"; then 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5872$as_echo "$ac_ct_OBJDUMP" >&6; } 5873else 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5875$as_echo "no" >&6; } 5876fi 5877 5878 if test "x$ac_ct_OBJDUMP" = x; then 5879 OBJDUMP="false" 5880 else 5881 case $cross_compiling:$ac_tool_warned in 5882yes:) 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5885ac_tool_warned=yes ;; 5886esac 5887 OBJDUMP=$ac_ct_OBJDUMP 5888 fi 5889else 5890 OBJDUMP="$ac_cv_prog_OBJDUMP" 5891fi 5892 5893 ;; 5894esac 5895 5896test -z "$AS" && AS=as 5897 5898 5899 5900 5901 5902test -z "$DLLTOOL" && DLLTOOL=dlltool 5903 5904 5905 5906 5907 5908test -z "$OBJDUMP" && OBJDUMP=objdump 5909 5910 5911 5912 5913 5914 5915 5916case `pwd` in 5917 *\ * | *\ *) 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5919$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5920esac 5921 5922 5923 5924macro_version='2.4.6' 5925macro_revision='2.4.6' 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939ltmain=$ac_aux_dir/ltmain.sh 5940 5941# Backslashify metacharacters that are still active within 5942# double-quoted strings. 5943sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5944 5945# Same as above, but do not quote variable references. 5946double_quote_subst='s/\(["`\\]\)/\\\1/g' 5947 5948# Sed substitution to delay expansion of an escaped shell variable in a 5949# double_quote_subst'ed string. 5950delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5951 5952# Sed substitution to delay expansion of an escaped single quote. 5953delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5954 5955# Sed substitution to avoid accidental globbing in evaled expressions 5956no_glob_subst='s/\*/\\\*/g' 5957 5958ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5959ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5960ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5961 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5963$as_echo_n "checking how to print strings... " >&6; } 5964# Test print first, because it will be a builtin if present. 5965if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5966 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5967 ECHO='print -r --' 5968elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5969 ECHO='printf %s\n' 5970else 5971 # Use this function as a fallback that always works. 5972 func_fallback_echo () 5973 { 5974 eval 'cat <<_LTECHO_EOF 5975$1 5976_LTECHO_EOF' 5977 } 5978 ECHO='func_fallback_echo' 5979fi 5980 5981# func_echo_all arg... 5982# Invoke $ECHO with all args, space-separated. 5983func_echo_all () 5984{ 5985 $ECHO "" 5986} 5987 5988case $ECHO in 5989 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5990$as_echo "printf" >&6; } ;; 5991 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5992$as_echo "print -r" >&6; } ;; 5993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5994$as_echo "cat" >&6; } ;; 5995esac 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6011$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6012if ${ac_cv_path_SED+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6016 for ac_i in 1 2 3 4 5 6 7; do 6017 ac_script="$ac_script$as_nl$ac_script" 6018 done 6019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6020 { ac_script=; unset ac_script;} 6021 if test -z "$SED"; then 6022 ac_path_SED_found=false 6023 # Loop through the user's path and test for each of PROGNAME-LIST 6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6025for as_dir in $PATH 6026do 6027 IFS=$as_save_IFS 6028 test -z "$as_dir" && as_dir=. 6029 for ac_prog in sed gsed; do 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6032 as_fn_executable_p "$ac_path_SED" || continue 6033# Check for GNU ac_path_SED and select it if it is found. 6034 # Check for GNU $ac_path_SED 6035case `"$ac_path_SED" --version 2>&1` in 6036*GNU*) 6037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6038*) 6039 ac_count=0 6040 $as_echo_n 0123456789 >"conftest.in" 6041 while : 6042 do 6043 cat "conftest.in" "conftest.in" >"conftest.tmp" 6044 mv "conftest.tmp" "conftest.in" 6045 cp "conftest.in" "conftest.nl" 6046 $as_echo '' >> "conftest.nl" 6047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6049 as_fn_arith $ac_count + 1 && ac_count=$as_val 6050 if test $ac_count -gt ${ac_path_SED_max-0}; then 6051 # Best one so far, save it but keep looking for a better one 6052 ac_cv_path_SED="$ac_path_SED" 6053 ac_path_SED_max=$ac_count 6054 fi 6055 # 10*(2^10) chars as input seems more than enough 6056 test $ac_count -gt 10 && break 6057 done 6058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6059esac 6060 6061 $ac_path_SED_found && break 3 6062 done 6063 done 6064 done 6065IFS=$as_save_IFS 6066 if test -z "$ac_cv_path_SED"; then 6067 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6068 fi 6069else 6070 ac_cv_path_SED=$SED 6071fi 6072 6073fi 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6075$as_echo "$ac_cv_path_SED" >&6; } 6076 SED="$ac_cv_path_SED" 6077 rm -f conftest.sed 6078 6079test -z "$SED" && SED=sed 6080Xsed="$SED -e 1s/^X//" 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6093$as_echo_n "checking for fgrep... " >&6; } 6094if ${ac_cv_path_FGREP+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6098 then ac_cv_path_FGREP="$GREP -F" 6099 else 6100 if test -z "$FGREP"; then 6101 ac_path_FGREP_found=false 6102 # Loop through the user's path and test for each of PROGNAME-LIST 6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_prog in fgrep; do 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6111 as_fn_executable_p "$ac_path_FGREP" || continue 6112# Check for GNU ac_path_FGREP and select it if it is found. 6113 # Check for GNU $ac_path_FGREP 6114case `"$ac_path_FGREP" --version 2>&1` in 6115*GNU*) 6116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6117*) 6118 ac_count=0 6119 $as_echo_n 0123456789 >"conftest.in" 6120 while : 6121 do 6122 cat "conftest.in" "conftest.in" >"conftest.tmp" 6123 mv "conftest.tmp" "conftest.in" 6124 cp "conftest.in" "conftest.nl" 6125 $as_echo 'FGREP' >> "conftest.nl" 6126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6128 as_fn_arith $ac_count + 1 && ac_count=$as_val 6129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6130 # Best one so far, save it but keep looking for a better one 6131 ac_cv_path_FGREP="$ac_path_FGREP" 6132 ac_path_FGREP_max=$ac_count 6133 fi 6134 # 10*(2^10) chars as input seems more than enough 6135 test $ac_count -gt 10 && break 6136 done 6137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6138esac 6139 6140 $ac_path_FGREP_found && break 3 6141 done 6142 done 6143 done 6144IFS=$as_save_IFS 6145 if test -z "$ac_cv_path_FGREP"; then 6146 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6147 fi 6148else 6149 ac_cv_path_FGREP=$FGREP 6150fi 6151 6152 fi 6153fi 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6155$as_echo "$ac_cv_path_FGREP" >&6; } 6156 FGREP="$ac_cv_path_FGREP" 6157 6158 6159test -z "$GREP" && GREP=grep 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179# Check whether --with-gnu-ld was given. 6180if test "${with_gnu_ld+set}" = set; then : 6181 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6182else 6183 with_gnu_ld=no 6184fi 6185 6186ac_prog=ld 6187if test yes = "$GCC"; then 6188 # Check if gcc -print-prog-name=ld gives a path. 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6190$as_echo_n "checking for ld used by $CC... " >&6; } 6191 case $host in 6192 *-*-mingw*) 6193 # gcc leaves a trailing carriage return, which upsets mingw 6194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6195 *) 6196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6197 esac 6198 case $ac_prog in 6199 # Accept absolute paths. 6200 [\\/]* | ?:[\\/]*) 6201 re_direlt='/[^/][^/]*/\.\./' 6202 # Canonicalize the pathname of ld 6203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6206 done 6207 test -z "$LD" && LD=$ac_prog 6208 ;; 6209 "") 6210 # If it fails, then pretend we aren't using GCC. 6211 ac_prog=ld 6212 ;; 6213 *) 6214 # If it is relative, then search for the first ld in PATH. 6215 with_gnu_ld=unknown 6216 ;; 6217 esac 6218elif test yes = "$with_gnu_ld"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6220$as_echo_n "checking for GNU ld... " >&6; } 6221else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6223$as_echo_n "checking for non-GNU ld... " >&6; } 6224fi 6225if ${lt_cv_path_LD+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 if test -z "$LD"; then 6229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6230 for ac_dir in $PATH; do 6231 IFS=$lt_save_ifs 6232 test -z "$ac_dir" && ac_dir=. 6233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6234 lt_cv_path_LD=$ac_dir/$ac_prog 6235 # Check to see if the program is GNU ld. I'd rather use --version, 6236 # but apparently some variants of GNU ld only accept -v. 6237 # Break only if it was the GNU/non-GNU ld that we prefer. 6238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6239 *GNU* | *'with BFD'*) 6240 test no != "$with_gnu_ld" && break 6241 ;; 6242 *) 6243 test yes != "$with_gnu_ld" && break 6244 ;; 6245 esac 6246 fi 6247 done 6248 IFS=$lt_save_ifs 6249else 6250 lt_cv_path_LD=$LD # Let the user override the test with a path. 6251fi 6252fi 6253 6254LD=$lt_cv_path_LD 6255if test -n "$LD"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6257$as_echo "$LD" >&6; } 6258else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260$as_echo "no" >&6; } 6261fi 6262test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6264$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6265if ${lt_cv_prog_gnu_ld+:} false; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6269case `$LD -v 2>&1 </dev/null` in 6270*GNU* | *'with BFD'*) 6271 lt_cv_prog_gnu_ld=yes 6272 ;; 6273*) 6274 lt_cv_prog_gnu_ld=no 6275 ;; 6276esac 6277fi 6278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6279$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6280with_gnu_ld=$lt_cv_prog_gnu_ld 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6291$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6292if ${lt_cv_path_NM+:} false; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 if test -n "$NM"; then 6296 # Let the user override the test. 6297 lt_cv_path_NM=$NM 6298else 6299 lt_nm_to_check=${ac_tool_prefix}nm 6300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6301 lt_nm_to_check="$lt_nm_to_check nm" 6302 fi 6303 for lt_tmp_nm in $lt_nm_to_check; do 6304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6306 IFS=$lt_save_ifs 6307 test -z "$ac_dir" && ac_dir=. 6308 tmp_nm=$ac_dir/$lt_tmp_nm 6309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6310 # Check to see if the nm accepts a BSD-compat flag. 6311 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6312 # nm: unknown option "B" ignored 6313 # Tru64's nm complains that /dev/null is an invalid object file 6314 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6315 case $build_os in 6316 mingw*) lt_bad_file=conftest.nm/nofile ;; 6317 *) lt_bad_file=/dev/null ;; 6318 esac 6319 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6320 *$lt_bad_file* | *'Invalid file or object type'*) 6321 lt_cv_path_NM="$tmp_nm -B" 6322 break 2 6323 ;; 6324 *) 6325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6326 */dev/null*) 6327 lt_cv_path_NM="$tmp_nm -p" 6328 break 2 6329 ;; 6330 *) 6331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6332 continue # so that we can try to find one that supports BSD flags 6333 ;; 6334 esac 6335 ;; 6336 esac 6337 fi 6338 done 6339 IFS=$lt_save_ifs 6340 done 6341 : ${lt_cv_path_NM=no} 6342fi 6343fi 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6345$as_echo "$lt_cv_path_NM" >&6; } 6346if test no != "$lt_cv_path_NM"; then 6347 NM=$lt_cv_path_NM 6348else 6349 # Didn't find any BSD compatible name lister, look for dumpbin. 6350 if test -n "$DUMPBIN"; then : 6351 # Let the user override the test. 6352 else 6353 if test -n "$ac_tool_prefix"; then 6354 for ac_prog in dumpbin "link -dump" 6355 do 6356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6357set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6359$as_echo_n "checking for $ac_word... " >&6; } 6360if ${ac_cv_prog_DUMPBIN+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 if test -n "$DUMPBIN"; then 6364 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6365else 6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6367for as_dir in $PATH 6368do 6369 IFS=$as_save_IFS 6370 test -z "$as_dir" && as_dir=. 6371 for ac_exec_ext in '' $ac_executable_extensions; do 6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6373 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6375 break 2 6376 fi 6377done 6378 done 6379IFS=$as_save_IFS 6380 6381fi 6382fi 6383DUMPBIN=$ac_cv_prog_DUMPBIN 6384if test -n "$DUMPBIN"; then 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6386$as_echo "$DUMPBIN" >&6; } 6387else 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6389$as_echo "no" >&6; } 6390fi 6391 6392 6393 test -n "$DUMPBIN" && break 6394 done 6395fi 6396if test -z "$DUMPBIN"; then 6397 ac_ct_DUMPBIN=$DUMPBIN 6398 for ac_prog in dumpbin "link -dump" 6399do 6400 # Extract the first word of "$ac_prog", so it can be a program name with args. 6401set dummy $ac_prog; ac_word=$2 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403$as_echo_n "checking for $ac_word... " >&6; } 6404if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406else 6407 if test -n "$ac_ct_DUMPBIN"; then 6408 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6409else 6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6411for as_dir in $PATH 6412do 6413 IFS=$as_save_IFS 6414 test -z "$as_dir" && as_dir=. 6415 for ac_exec_ext in '' $ac_executable_extensions; do 6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6417 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6419 break 2 6420 fi 6421done 6422 done 6423IFS=$as_save_IFS 6424 6425fi 6426fi 6427ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6428if test -n "$ac_ct_DUMPBIN"; then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6430$as_echo "$ac_ct_DUMPBIN" >&6; } 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6433$as_echo "no" >&6; } 6434fi 6435 6436 6437 test -n "$ac_ct_DUMPBIN" && break 6438done 6439 6440 if test "x$ac_ct_DUMPBIN" = x; then 6441 DUMPBIN=":" 6442 else 6443 case $cross_compiling:$ac_tool_warned in 6444yes:) 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6447ac_tool_warned=yes ;; 6448esac 6449 DUMPBIN=$ac_ct_DUMPBIN 6450 fi 6451fi 6452 6453 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6454 *COFF*) 6455 DUMPBIN="$DUMPBIN -symbols -headers" 6456 ;; 6457 *) 6458 DUMPBIN=: 6459 ;; 6460 esac 6461 fi 6462 6463 if test : != "$DUMPBIN"; then 6464 NM=$DUMPBIN 6465 fi 6466fi 6467test -z "$NM" && NM=nm 6468 6469 6470 6471 6472 6473 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6475$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6476if ${lt_cv_nm_interface+:} false; then : 6477 $as_echo_n "(cached) " >&6 6478else 6479 lt_cv_nm_interface="BSD nm" 6480 echo "int some_variable = 0;" > conftest.$ac_ext 6481 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6482 (eval "$ac_compile" 2>conftest.err) 6483 cat conftest.err >&5 6484 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6485 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6486 cat conftest.err >&5 6487 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6488 cat conftest.out >&5 6489 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6490 lt_cv_nm_interface="MS dumpbin" 6491 fi 6492 rm -f conftest* 6493fi 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6495$as_echo "$lt_cv_nm_interface" >&6; } 6496 6497# find the maximum length of command line arguments 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6499$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6500if ${lt_cv_sys_max_cmd_len+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 i=0 6504 teststring=ABCD 6505 6506 case $build_os in 6507 msdosdjgpp*) 6508 # On DJGPP, this test can blow up pretty badly due to problems in libc 6509 # (any single argument exceeding 2000 bytes causes a buffer overrun 6510 # during glob expansion). Even if it were fixed, the result of this 6511 # check would be larger than it should be. 6512 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6513 ;; 6514 6515 gnu*) 6516 # Under GNU Hurd, this test is not required because there is 6517 # no limit to the length of command line arguments. 6518 # Libtool will interpret -1 as no limit whatsoever 6519 lt_cv_sys_max_cmd_len=-1; 6520 ;; 6521 6522 cygwin* | mingw* | cegcc*) 6523 # On Win9x/ME, this test blows up -- it succeeds, but takes 6524 # about 5 minutes as the teststring grows exponentially. 6525 # Worse, since 9x/ME are not pre-emptively multitasking, 6526 # you end up with a "frozen" computer, even though with patience 6527 # the test eventually succeeds (with a max line length of 256k). 6528 # Instead, let's just punt: use the minimum linelength reported by 6529 # all of the supported platforms: 8192 (on NT/2K/XP). 6530 lt_cv_sys_max_cmd_len=8192; 6531 ;; 6532 6533 mint*) 6534 # On MiNT this can take a long time and run out of memory. 6535 lt_cv_sys_max_cmd_len=8192; 6536 ;; 6537 6538 amigaos*) 6539 # On AmigaOS with pdksh, this test takes hours, literally. 6540 # So we just punt and use a minimum line length of 8192. 6541 lt_cv_sys_max_cmd_len=8192; 6542 ;; 6543 6544 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6545 # This has been around since 386BSD, at least. Likely further. 6546 if test -x /sbin/sysctl; then 6547 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6548 elif test -x /usr/sbin/sysctl; then 6549 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6550 else 6551 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6552 fi 6553 # And add a safety zone 6554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6556 ;; 6557 6558 interix*) 6559 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6560 lt_cv_sys_max_cmd_len=196608 6561 ;; 6562 6563 os2*) 6564 # The test takes a long time on OS/2. 6565 lt_cv_sys_max_cmd_len=8192 6566 ;; 6567 6568 osf*) 6569 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6570 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6571 # nice to cause kernel panics so lets avoid the loop below. 6572 # First set a reasonable default. 6573 lt_cv_sys_max_cmd_len=16384 6574 # 6575 if test -x /sbin/sysconfig; then 6576 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6577 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6578 esac 6579 fi 6580 ;; 6581 sco3.2v5*) 6582 lt_cv_sys_max_cmd_len=102400 6583 ;; 6584 sysv5* | sco5v6* | sysv4.2uw2*) 6585 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6586 if test -n "$kargmax"; then 6587 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6588 else 6589 lt_cv_sys_max_cmd_len=32768 6590 fi 6591 ;; 6592 *) 6593 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6594 if test -n "$lt_cv_sys_max_cmd_len" && \ 6595 test undefined != "$lt_cv_sys_max_cmd_len"; then 6596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6598 else 6599 # Make teststring a little bigger before we do anything with it. 6600 # a 1K string should be a reasonable start. 6601 for i in 1 2 3 4 5 6 7 8; do 6602 teststring=$teststring$teststring 6603 done 6604 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6605 # If test is not a shell built-in, we'll probably end up computing a 6606 # maximum length that is only half of the actual maximum length, but 6607 # we can't tell. 6608 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6609 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6610 test 17 != "$i" # 1/2 MB should be enough 6611 do 6612 i=`expr $i + 1` 6613 teststring=$teststring$teststring 6614 done 6615 # Only check the string length outside the loop. 6616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6617 teststring= 6618 # Add a significant safety factor because C++ compilers can tack on 6619 # massive amounts of additional arguments before passing them to the 6620 # linker. It appears as though 1/2 is a usable value. 6621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6622 fi 6623 ;; 6624 esac 6625 6626fi 6627 6628if test -n "$lt_cv_sys_max_cmd_len"; then 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6630$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6631else 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6633$as_echo "none" >&6; } 6634fi 6635max_cmd_len=$lt_cv_sys_max_cmd_len 6636 6637 6638 6639 6640 6641 6642: ${CP="cp -f"} 6643: ${MV="mv -f"} 6644: ${RM="rm -f"} 6645 6646if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6647 lt_unset=unset 6648else 6649 lt_unset=false 6650fi 6651 6652 6653 6654 6655 6656# test EBCDIC or ASCII 6657case `echo X|tr X '\101'` in 6658 A) # ASCII based system 6659 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6660 lt_SP2NL='tr \040 \012' 6661 lt_NL2SP='tr \015\012 \040\040' 6662 ;; 6663 *) # EBCDIC based system 6664 lt_SP2NL='tr \100 \n' 6665 lt_NL2SP='tr \r\n \100\100' 6666 ;; 6667esac 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6678$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6679if ${lt_cv_to_host_file_cmd+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 case $host in 6683 *-*-mingw* ) 6684 case $build in 6685 *-*-mingw* ) # actually msys 6686 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6687 ;; 6688 *-*-cygwin* ) 6689 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6690 ;; 6691 * ) # otherwise, assume *nix 6692 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6693 ;; 6694 esac 6695 ;; 6696 *-*-cygwin* ) 6697 case $build in 6698 *-*-mingw* ) # actually msys 6699 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6700 ;; 6701 *-*-cygwin* ) 6702 lt_cv_to_host_file_cmd=func_convert_file_noop 6703 ;; 6704 * ) # otherwise, assume *nix 6705 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6706 ;; 6707 esac 6708 ;; 6709 * ) # unhandled hosts (and "normal" native builds) 6710 lt_cv_to_host_file_cmd=func_convert_file_noop 6711 ;; 6712esac 6713 6714fi 6715 6716to_host_file_cmd=$lt_cv_to_host_file_cmd 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6718$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6719 6720 6721 6722 6723 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6725$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6726if ${lt_cv_to_tool_file_cmd+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 #assume ordinary cross tools, or native build. 6730lt_cv_to_tool_file_cmd=func_convert_file_noop 6731case $host in 6732 *-*-mingw* ) 6733 case $build in 6734 *-*-mingw* ) # actually msys 6735 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6736 ;; 6737 esac 6738 ;; 6739esac 6740 6741fi 6742 6743to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6745$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6746 6747 6748 6749 6750 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6752$as_echo_n "checking for $LD option to reload object files... " >&6; } 6753if ${lt_cv_ld_reload_flag+:} false; then : 6754 $as_echo_n "(cached) " >&6 6755else 6756 lt_cv_ld_reload_flag='-r' 6757fi 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6759$as_echo "$lt_cv_ld_reload_flag" >&6; } 6760reload_flag=$lt_cv_ld_reload_flag 6761case $reload_flag in 6762"" | " "*) ;; 6763*) reload_flag=" $reload_flag" ;; 6764esac 6765reload_cmds='$LD$reload_flag -o $output$reload_objs' 6766case $host_os in 6767 cygwin* | mingw* | pw32* | cegcc*) 6768 if test yes != "$GCC"; then 6769 reload_cmds=false 6770 fi 6771 ;; 6772 darwin*) 6773 if test yes = "$GCC"; then 6774 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6775 else 6776 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6777 fi 6778 ;; 6779esac 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789if test -n "$ac_tool_prefix"; then 6790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6791set dummy ${ac_tool_prefix}objdump; ac_word=$2 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6793$as_echo_n "checking for $ac_word... " >&6; } 6794if ${ac_cv_prog_OBJDUMP+:} false; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 if test -n "$OBJDUMP"; then 6798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6799else 6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6801for as_dir in $PATH 6802do 6803 IFS=$as_save_IFS 6804 test -z "$as_dir" && as_dir=. 6805 for ac_exec_ext in '' $ac_executable_extensions; do 6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6807 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6809 break 2 6810 fi 6811done 6812 done 6813IFS=$as_save_IFS 6814 6815fi 6816fi 6817OBJDUMP=$ac_cv_prog_OBJDUMP 6818if test -n "$OBJDUMP"; then 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6820$as_echo "$OBJDUMP" >&6; } 6821else 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6823$as_echo "no" >&6; } 6824fi 6825 6826 6827fi 6828if test -z "$ac_cv_prog_OBJDUMP"; then 6829 ac_ct_OBJDUMP=$OBJDUMP 6830 # Extract the first word of "objdump", so it can be a program name with args. 6831set dummy objdump; ac_word=$2 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6833$as_echo_n "checking for $ac_word... " >&6; } 6834if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6835 $as_echo_n "(cached) " >&6 6836else 6837 if test -n "$ac_ct_OBJDUMP"; then 6838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6839else 6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6841for as_dir in $PATH 6842do 6843 IFS=$as_save_IFS 6844 test -z "$as_dir" && as_dir=. 6845 for ac_exec_ext in '' $ac_executable_extensions; do 6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6847 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6849 break 2 6850 fi 6851done 6852 done 6853IFS=$as_save_IFS 6854 6855fi 6856fi 6857ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6858if test -n "$ac_ct_OBJDUMP"; then 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6860$as_echo "$ac_ct_OBJDUMP" >&6; } 6861else 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6863$as_echo "no" >&6; } 6864fi 6865 6866 if test "x$ac_ct_OBJDUMP" = x; then 6867 OBJDUMP="false" 6868 else 6869 case $cross_compiling:$ac_tool_warned in 6870yes:) 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6873ac_tool_warned=yes ;; 6874esac 6875 OBJDUMP=$ac_ct_OBJDUMP 6876 fi 6877else 6878 OBJDUMP="$ac_cv_prog_OBJDUMP" 6879fi 6880 6881test -z "$OBJDUMP" && OBJDUMP=objdump 6882 6883 6884 6885 6886 6887 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6889$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6890if ${lt_cv_deplibs_check_method+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 lt_cv_file_magic_cmd='$MAGIC_CMD' 6894lt_cv_file_magic_test_file= 6895lt_cv_deplibs_check_method='unknown' 6896# Need to set the preceding variable on all platforms that support 6897# interlibrary dependencies. 6898# 'none' -- dependencies not supported. 6899# 'unknown' -- same as none, but documents that we really don't know. 6900# 'pass_all' -- all dependencies passed with no checks. 6901# 'test_compile' -- check by making test program. 6902# 'file_magic [[regex]]' -- check by looking for files in library path 6903# that responds to the $file_magic_cmd with a given extended regex. 6904# If you have 'file' or equivalent on your system and you're not sure 6905# whether 'pass_all' will *always* work, you probably want this one. 6906 6907case $host_os in 6908aix[4-9]*) 6909 lt_cv_deplibs_check_method=pass_all 6910 ;; 6911 6912beos*) 6913 lt_cv_deplibs_check_method=pass_all 6914 ;; 6915 6916bsdi[45]*) 6917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6918 lt_cv_file_magic_cmd='/usr/bin/file -L' 6919 lt_cv_file_magic_test_file=/shlib/libc.so 6920 ;; 6921 6922cygwin*) 6923 # func_win32_libid is a shell function defined in ltmain.sh 6924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6925 lt_cv_file_magic_cmd='func_win32_libid' 6926 ;; 6927 6928mingw* | pw32*) 6929 # Base MSYS/MinGW do not provide the 'file' command needed by 6930 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6931 # unless we find 'file', for example because we are cross-compiling. 6932 if ( file / ) >/dev/null 2>&1; then 6933 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6934 lt_cv_file_magic_cmd='func_win32_libid' 6935 else 6936 # Keep this pattern in sync with the one in func_win32_libid. 6937 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6938 lt_cv_file_magic_cmd='$OBJDUMP -f' 6939 fi 6940 ;; 6941 6942cegcc*) 6943 # use the weaker test based on 'objdump'. See mingw*. 6944 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6945 lt_cv_file_magic_cmd='$OBJDUMP -f' 6946 ;; 6947 6948darwin* | rhapsody*) 6949 lt_cv_deplibs_check_method=pass_all 6950 ;; 6951 6952freebsd* | dragonfly*) 6953 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6954 case $host_cpu in 6955 i*86 ) 6956 # Not sure whether the presence of OpenBSD here was a mistake. 6957 # Let's accept both of them until this is cleared up. 6958 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6959 lt_cv_file_magic_cmd=/usr/bin/file 6960 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6961 ;; 6962 esac 6963 else 6964 lt_cv_deplibs_check_method=pass_all 6965 fi 6966 ;; 6967 6968haiku*) 6969 lt_cv_deplibs_check_method=pass_all 6970 ;; 6971 6972hpux10.20* | hpux11*) 6973 lt_cv_file_magic_cmd=/usr/bin/file 6974 case $host_cpu in 6975 ia64*) 6976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6977 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6978 ;; 6979 hppa*64*) 6980 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]' 6981 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6982 ;; 6983 *) 6984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6985 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6986 ;; 6987 esac 6988 ;; 6989 6990interix[3-9]*) 6991 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6993 ;; 6994 6995irix5* | irix6* | nonstopux*) 6996 case $LD in 6997 *-32|*"-32 ") libmagic=32-bit;; 6998 *-n32|*"-n32 ") libmagic=N32;; 6999 *-64|*"-64 ") libmagic=64-bit;; 7000 *) libmagic=never-match;; 7001 esac 7002 lt_cv_deplibs_check_method=pass_all 7003 ;; 7004 7005# This must be glibc/ELF. 7006linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7007 lt_cv_deplibs_check_method=pass_all 7008 ;; 7009 7010netbsd*) 7011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7013 else 7014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7015 fi 7016 ;; 7017 7018newos6*) 7019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7020 lt_cv_file_magic_cmd=/usr/bin/file 7021 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7022 ;; 7023 7024*nto* | *qnx*) 7025 lt_cv_deplibs_check_method=pass_all 7026 ;; 7027 7028openbsd* | bitrig*) 7029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7031 else 7032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7033 fi 7034 ;; 7035 7036osf3* | osf4* | osf5*) 7037 lt_cv_deplibs_check_method=pass_all 7038 ;; 7039 7040rdos*) 7041 lt_cv_deplibs_check_method=pass_all 7042 ;; 7043 7044solaris*) 7045 lt_cv_deplibs_check_method=pass_all 7046 ;; 7047 7048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7049 lt_cv_deplibs_check_method=pass_all 7050 ;; 7051 7052sysv4 | sysv4.3*) 7053 case $host_vendor in 7054 motorola) 7055 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]' 7056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7057 ;; 7058 ncr) 7059 lt_cv_deplibs_check_method=pass_all 7060 ;; 7061 sequent) 7062 lt_cv_file_magic_cmd='/bin/file' 7063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7064 ;; 7065 sni) 7066 lt_cv_file_magic_cmd='/bin/file' 7067 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7068 lt_cv_file_magic_test_file=/lib/libc.so 7069 ;; 7070 siemens) 7071 lt_cv_deplibs_check_method=pass_all 7072 ;; 7073 pc) 7074 lt_cv_deplibs_check_method=pass_all 7075 ;; 7076 esac 7077 ;; 7078 7079tpf*) 7080 lt_cv_deplibs_check_method=pass_all 7081 ;; 7082os2*) 7083 lt_cv_deplibs_check_method=pass_all 7084 ;; 7085esac 7086 7087fi 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7089$as_echo "$lt_cv_deplibs_check_method" >&6; } 7090 7091file_magic_glob= 7092want_nocaseglob=no 7093if test "$build" = "$host"; then 7094 case $host_os in 7095 mingw* | pw32*) 7096 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7097 want_nocaseglob=yes 7098 else 7099 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7100 fi 7101 ;; 7102 esac 7103fi 7104 7105file_magic_cmd=$lt_cv_file_magic_cmd 7106deplibs_check_method=$lt_cv_deplibs_check_method 7107test -z "$deplibs_check_method" && deplibs_check_method=unknown 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130if test -n "$ac_tool_prefix"; then 7131 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7132set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7134$as_echo_n "checking for $ac_word... " >&6; } 7135if ${ac_cv_prog_DLLTOOL+:} false; then : 7136 $as_echo_n "(cached) " >&6 7137else 7138 if test -n "$DLLTOOL"; then 7139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7140else 7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7142for as_dir in $PATH 7143do 7144 IFS=$as_save_IFS 7145 test -z "$as_dir" && as_dir=. 7146 for ac_exec_ext in '' $ac_executable_extensions; do 7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7148 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7150 break 2 7151 fi 7152done 7153 done 7154IFS=$as_save_IFS 7155 7156fi 7157fi 7158DLLTOOL=$ac_cv_prog_DLLTOOL 7159if test -n "$DLLTOOL"; then 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7161$as_echo "$DLLTOOL" >&6; } 7162else 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7164$as_echo "no" >&6; } 7165fi 7166 7167 7168fi 7169if test -z "$ac_cv_prog_DLLTOOL"; then 7170 ac_ct_DLLTOOL=$DLLTOOL 7171 # Extract the first word of "dlltool", so it can be a program name with args. 7172set dummy dlltool; ac_word=$2 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7174$as_echo_n "checking for $ac_word... " >&6; } 7175if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 if test -n "$ac_ct_DLLTOOL"; then 7179 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7180else 7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7182for as_dir in $PATH 7183do 7184 IFS=$as_save_IFS 7185 test -z "$as_dir" && as_dir=. 7186 for ac_exec_ext in '' $ac_executable_extensions; do 7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7188 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7190 break 2 7191 fi 7192done 7193 done 7194IFS=$as_save_IFS 7195 7196fi 7197fi 7198ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7199if test -n "$ac_ct_DLLTOOL"; then 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7201$as_echo "$ac_ct_DLLTOOL" >&6; } 7202else 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7204$as_echo "no" >&6; } 7205fi 7206 7207 if test "x$ac_ct_DLLTOOL" = x; then 7208 DLLTOOL="false" 7209 else 7210 case $cross_compiling:$ac_tool_warned in 7211yes:) 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7214ac_tool_warned=yes ;; 7215esac 7216 DLLTOOL=$ac_ct_DLLTOOL 7217 fi 7218else 7219 DLLTOOL="$ac_cv_prog_DLLTOOL" 7220fi 7221 7222test -z "$DLLTOOL" && DLLTOOL=dlltool 7223 7224 7225 7226 7227 7228 7229 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7231$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7232if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7233 $as_echo_n "(cached) " >&6 7234else 7235 lt_cv_sharedlib_from_linklib_cmd='unknown' 7236 7237case $host_os in 7238cygwin* | mingw* | pw32* | cegcc*) 7239 # two different shell functions defined in ltmain.sh; 7240 # decide which one to use based on capabilities of $DLLTOOL 7241 case `$DLLTOOL --help 2>&1` in 7242 *--identify-strict*) 7243 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7244 ;; 7245 *) 7246 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7247 ;; 7248 esac 7249 ;; 7250*) 7251 # fallback: assume linklib IS sharedlib 7252 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7253 ;; 7254esac 7255 7256fi 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7258$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7259sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7260test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7261 7262 7263 7264 7265 7266 7267 7268if test -n "$ac_tool_prefix"; then 7269 for ac_prog in ar 7270 do 7271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7274$as_echo_n "checking for $ac_word... " >&6; } 7275if ${ac_cv_prog_AR+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 if test -n "$AR"; then 7279 ac_cv_prog_AR="$AR" # Let the user override the test. 7280else 7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282for as_dir in $PATH 7283do 7284 IFS=$as_save_IFS 7285 test -z "$as_dir" && as_dir=. 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7288 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7290 break 2 7291 fi 7292done 7293 done 7294IFS=$as_save_IFS 7295 7296fi 7297fi 7298AR=$ac_cv_prog_AR 7299if test -n "$AR"; then 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7301$as_echo "$AR" >&6; } 7302else 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7304$as_echo "no" >&6; } 7305fi 7306 7307 7308 test -n "$AR" && break 7309 done 7310fi 7311if test -z "$AR"; then 7312 ac_ct_AR=$AR 7313 for ac_prog in ar 7314do 7315 # Extract the first word of "$ac_prog", so it can be a program name with args. 7316set dummy $ac_prog; ac_word=$2 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7318$as_echo_n "checking for $ac_word... " >&6; } 7319if ${ac_cv_prog_ac_ct_AR+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 if test -n "$ac_ct_AR"; then 7323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7324else 7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7326for as_dir in $PATH 7327do 7328 IFS=$as_save_IFS 7329 test -z "$as_dir" && as_dir=. 7330 for ac_exec_ext in '' $ac_executable_extensions; do 7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7332 ac_cv_prog_ac_ct_AR="$ac_prog" 7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7334 break 2 7335 fi 7336done 7337 done 7338IFS=$as_save_IFS 7339 7340fi 7341fi 7342ac_ct_AR=$ac_cv_prog_ac_ct_AR 7343if test -n "$ac_ct_AR"; then 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7345$as_echo "$ac_ct_AR" >&6; } 7346else 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7348$as_echo "no" >&6; } 7349fi 7350 7351 7352 test -n "$ac_ct_AR" && break 7353done 7354 7355 if test "x$ac_ct_AR" = x; then 7356 AR="false" 7357 else 7358 case $cross_compiling:$ac_tool_warned in 7359yes:) 7360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7362ac_tool_warned=yes ;; 7363esac 7364 AR=$ac_ct_AR 7365 fi 7366fi 7367 7368: ${AR=ar} 7369: ${AR_FLAGS=cru} 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7382$as_echo_n "checking for archiver @FILE support... " >&6; } 7383if ${lt_cv_ar_at_file+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 lt_cv_ar_at_file=no 7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388/* end confdefs.h. */ 7389 7390int 7391main () 7392{ 7393 7394 ; 7395 return 0; 7396} 7397_ACEOF 7398if ac_fn_c_try_compile "$LINENO"; then : 7399 echo conftest.$ac_objext > conftest.lst 7400 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7402 (eval $lt_ar_try) 2>&5 7403 ac_status=$? 7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7405 test $ac_status = 0; } 7406 if test 0 -eq "$ac_status"; then 7407 # Ensure the archiver fails upon bogus file names. 7408 rm -f conftest.$ac_objext libconftest.a 7409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7410 (eval $lt_ar_try) 2>&5 7411 ac_status=$? 7412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7413 test $ac_status = 0; } 7414 if test 0 -ne "$ac_status"; then 7415 lt_cv_ar_at_file=@ 7416 fi 7417 fi 7418 rm -f conftest.* libconftest.a 7419 7420fi 7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7422 7423fi 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7425$as_echo "$lt_cv_ar_at_file" >&6; } 7426 7427if test no = "$lt_cv_ar_at_file"; then 7428 archiver_list_spec= 7429else 7430 archiver_list_spec=$lt_cv_ar_at_file 7431fi 7432 7433 7434 7435 7436 7437 7438 7439if test -n "$ac_tool_prefix"; then 7440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7441set dummy ${ac_tool_prefix}strip; ac_word=$2 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7443$as_echo_n "checking for $ac_word... " >&6; } 7444if ${ac_cv_prog_STRIP+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 if test -n "$STRIP"; then 7448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7449else 7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7451for as_dir in $PATH 7452do 7453 IFS=$as_save_IFS 7454 test -z "$as_dir" && as_dir=. 7455 for ac_exec_ext in '' $ac_executable_extensions; do 7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7457 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7459 break 2 7460 fi 7461done 7462 done 7463IFS=$as_save_IFS 7464 7465fi 7466fi 7467STRIP=$ac_cv_prog_STRIP 7468if test -n "$STRIP"; then 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7470$as_echo "$STRIP" >&6; } 7471else 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7473$as_echo "no" >&6; } 7474fi 7475 7476 7477fi 7478if test -z "$ac_cv_prog_STRIP"; then 7479 ac_ct_STRIP=$STRIP 7480 # Extract the first word of "strip", so it can be a program name with args. 7481set dummy strip; ac_word=$2 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7483$as_echo_n "checking for $ac_word... " >&6; } 7484if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7485 $as_echo_n "(cached) " >&6 7486else 7487 if test -n "$ac_ct_STRIP"; then 7488 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7489else 7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH 7492do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_exec_ext in '' $ac_executable_extensions; do 7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7497 ac_cv_prog_ac_ct_STRIP="strip" 7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7499 break 2 7500 fi 7501done 7502 done 7503IFS=$as_save_IFS 7504 7505fi 7506fi 7507ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7508if test -n "$ac_ct_STRIP"; then 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7510$as_echo "$ac_ct_STRIP" >&6; } 7511else 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7513$as_echo "no" >&6; } 7514fi 7515 7516 if test "x$ac_ct_STRIP" = x; then 7517 STRIP=":" 7518 else 7519 case $cross_compiling:$ac_tool_warned in 7520yes:) 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7523ac_tool_warned=yes ;; 7524esac 7525 STRIP=$ac_ct_STRIP 7526 fi 7527else 7528 STRIP="$ac_cv_prog_STRIP" 7529fi 7530 7531test -z "$STRIP" && STRIP=: 7532 7533 7534 7535 7536 7537 7538if test -n "$ac_tool_prefix"; then 7539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7540set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7542$as_echo_n "checking for $ac_word... " >&6; } 7543if ${ac_cv_prog_RANLIB+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 if test -n "$RANLIB"; then 7547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7548else 7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7550for as_dir in $PATH 7551do 7552 IFS=$as_save_IFS 7553 test -z "$as_dir" && as_dir=. 7554 for ac_exec_ext in '' $ac_executable_extensions; do 7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7558 break 2 7559 fi 7560done 7561 done 7562IFS=$as_save_IFS 7563 7564fi 7565fi 7566RANLIB=$ac_cv_prog_RANLIB 7567if test -n "$RANLIB"; then 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7569$as_echo "$RANLIB" >&6; } 7570else 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572$as_echo "no" >&6; } 7573fi 7574 7575 7576fi 7577if test -z "$ac_cv_prog_RANLIB"; then 7578 ac_ct_RANLIB=$RANLIB 7579 # Extract the first word of "ranlib", so it can be a program name with args. 7580set dummy ranlib; ac_word=$2 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7582$as_echo_n "checking for $ac_word... " >&6; } 7583if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 if test -n "$ac_ct_RANLIB"; then 7587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7588else 7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7590for as_dir in $PATH 7591do 7592 IFS=$as_save_IFS 7593 test -z "$as_dir" && as_dir=. 7594 for ac_exec_ext in '' $ac_executable_extensions; do 7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7596 ac_cv_prog_ac_ct_RANLIB="ranlib" 7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7598 break 2 7599 fi 7600done 7601 done 7602IFS=$as_save_IFS 7603 7604fi 7605fi 7606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7607if test -n "$ac_ct_RANLIB"; then 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7609$as_echo "$ac_ct_RANLIB" >&6; } 7610else 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7612$as_echo "no" >&6; } 7613fi 7614 7615 if test "x$ac_ct_RANLIB" = x; then 7616 RANLIB=":" 7617 else 7618 case $cross_compiling:$ac_tool_warned in 7619yes:) 7620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7622ac_tool_warned=yes ;; 7623esac 7624 RANLIB=$ac_ct_RANLIB 7625 fi 7626else 7627 RANLIB="$ac_cv_prog_RANLIB" 7628fi 7629 7630test -z "$RANLIB" && RANLIB=: 7631 7632 7633 7634 7635 7636 7637# Determine commands to create old-style static archives. 7638old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7639old_postinstall_cmds='chmod 644 $oldlib' 7640old_postuninstall_cmds= 7641 7642if test -n "$RANLIB"; then 7643 case $host_os in 7644 bitrig* | openbsd*) 7645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7646 ;; 7647 *) 7648 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7649 ;; 7650 esac 7651 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7652fi 7653 7654case $host_os in 7655 darwin*) 7656 lock_old_archive_extraction=yes ;; 7657 *) 7658 lock_old_archive_extraction=no ;; 7659esac 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699# If no C compiler was specified, use CC. 7700LTCC=${LTCC-"$CC"} 7701 7702# If no C compiler flags were specified, use CFLAGS. 7703LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7704 7705# Allow CC to be a program name with arguments. 7706compiler=$CC 7707 7708 7709# Check for command to grab the raw symbol name followed by C symbol from nm. 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7711$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7712if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714else 7715 7716# These are sane defaults that work on at least a few old systems. 7717# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7718 7719# Character class describing NM global symbol codes. 7720symcode='[BCDEGRST]' 7721 7722# Regexp to match symbols that can be accessed directly from C. 7723sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7724 7725# Define system-specific variables. 7726case $host_os in 7727aix*) 7728 symcode='[BCDT]' 7729 ;; 7730cygwin* | mingw* | pw32* | cegcc*) 7731 symcode='[ABCDGISTW]' 7732 ;; 7733hpux*) 7734 if test ia64 = "$host_cpu"; then 7735 symcode='[ABCDEGRST]' 7736 fi 7737 ;; 7738irix* | nonstopux*) 7739 symcode='[BCDEGRST]' 7740 ;; 7741osf*) 7742 symcode='[BCDEGQRST]' 7743 ;; 7744solaris*) 7745 symcode='[BDRT]' 7746 ;; 7747sco3.2v5*) 7748 symcode='[DT]' 7749 ;; 7750sysv4.2uw2*) 7751 symcode='[DT]' 7752 ;; 7753sysv5* | sco5v6* | unixware* | OpenUNIX*) 7754 symcode='[ABDT]' 7755 ;; 7756sysv4) 7757 symcode='[DFNSTU]' 7758 ;; 7759esac 7760 7761# If we're using GNU nm, then use its standard symbol codes. 7762case `$NM -V 2>&1` in 7763*GNU* | *'with BFD'*) 7764 symcode='[ABCDGIRSTW]' ;; 7765esac 7766 7767if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7768 # Gets list of data symbols to import. 7769 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7770 # Adjust the below global symbol transforms to fixup imported variables. 7771 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7772 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7773 lt_c_name_lib_hook="\ 7774 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7775 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7776else 7777 # Disable hooks by default. 7778 lt_cv_sys_global_symbol_to_import= 7779 lt_cdecl_hook= 7780 lt_c_name_hook= 7781 lt_c_name_lib_hook= 7782fi 7783 7784# Transform an extracted symbol line into a proper C declaration. 7785# Some systems (esp. on ia64) link data and code symbols differently, 7786# so use this general approach. 7787lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7788$lt_cdecl_hook\ 7789" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7790" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7791 7792# Transform an extracted symbol line into symbol name and symbol address 7793lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7794$lt_c_name_hook\ 7795" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7796" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7797 7798# Transform an extracted symbol line into symbol name with lib prefix and 7799# symbol address. 7800lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7801$lt_c_name_lib_hook\ 7802" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7803" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7804" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7805 7806# Handle CRLF in mingw tool chain 7807opt_cr= 7808case $build_os in 7809mingw*) 7810 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7811 ;; 7812esac 7813 7814# Try without a prefix underscore, then with it. 7815for ac_symprfx in "" "_"; do 7816 7817 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7818 symxfrm="\\1 $ac_symprfx\\2 \\2" 7819 7820 # Write the raw and C identifiers. 7821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7822 # Fake it for dumpbin and say T for any non-static function, 7823 # D for any global variable and I for any imported variable. 7824 # Also find C++ and __fastcall symbols from MSVC++, 7825 # which start with @ or ?. 7826 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7827" {last_section=section; section=\$ 3};"\ 7828" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7829" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7830" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7831" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7832" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7833" \$ 0!~/External *\|/{next};"\ 7834" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7835" {if(hide[section]) next};"\ 7836" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7837" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7838" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7839" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7840" ' prfx=^$ac_symprfx" 7841 else 7842 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7843 fi 7844 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7845 7846 # Check to see that the pipe works correctly. 7847 pipe_works=no 7848 7849 rm -f conftest* 7850 cat > conftest.$ac_ext <<_LT_EOF 7851#ifdef __cplusplus 7852extern "C" { 7853#endif 7854char nm_test_var; 7855void nm_test_func(void); 7856void nm_test_func(void){} 7857#ifdef __cplusplus 7858} 7859#endif 7860int main(){nm_test_var='a';nm_test_func();return(0);} 7861_LT_EOF 7862 7863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7864 (eval $ac_compile) 2>&5 7865 ac_status=$? 7866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7867 test $ac_status = 0; }; then 7868 # Now try to grab the symbols. 7869 nlist=conftest.nm 7870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7871 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7872 ac_status=$? 7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7874 test $ac_status = 0; } && test -s "$nlist"; then 7875 # Try sorting and uniquifying the output. 7876 if sort "$nlist" | uniq > "$nlist"T; then 7877 mv -f "$nlist"T "$nlist" 7878 else 7879 rm -f "$nlist"T 7880 fi 7881 7882 # Make sure that we snagged all the symbols we need. 7883 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7884 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7885 cat <<_LT_EOF > conftest.$ac_ext 7886/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7887#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7888/* DATA imports from DLLs on WIN32 can't be const, because runtime 7889 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7890# define LT_DLSYM_CONST 7891#elif defined __osf__ 7892/* This system does not cope well with relocations in const data. */ 7893# define LT_DLSYM_CONST 7894#else 7895# define LT_DLSYM_CONST const 7896#endif 7897 7898#ifdef __cplusplus 7899extern "C" { 7900#endif 7901 7902_LT_EOF 7903 # Now generate the symbol file. 7904 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7905 7906 cat <<_LT_EOF >> conftest.$ac_ext 7907 7908/* The mapping between symbol names and symbols. */ 7909LT_DLSYM_CONST struct { 7910 const char *name; 7911 void *address; 7912} 7913lt__PROGRAM__LTX_preloaded_symbols[] = 7914{ 7915 { "@PROGRAM@", (void *) 0 }, 7916_LT_EOF 7917 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7918 cat <<\_LT_EOF >> conftest.$ac_ext 7919 {0, (void *) 0} 7920}; 7921 7922/* This works around a problem in FreeBSD linker */ 7923#ifdef FREEBSD_WORKAROUND 7924static const void *lt_preloaded_setup() { 7925 return lt__PROGRAM__LTX_preloaded_symbols; 7926} 7927#endif 7928 7929#ifdef __cplusplus 7930} 7931#endif 7932_LT_EOF 7933 # Now try linking the two files. 7934 mv conftest.$ac_objext conftstm.$ac_objext 7935 lt_globsym_save_LIBS=$LIBS 7936 lt_globsym_save_CFLAGS=$CFLAGS 7937 LIBS=conftstm.$ac_objext 7938 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7940 (eval $ac_link) 2>&5 7941 ac_status=$? 7942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7943 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7944 pipe_works=yes 7945 fi 7946 LIBS=$lt_globsym_save_LIBS 7947 CFLAGS=$lt_globsym_save_CFLAGS 7948 else 7949 echo "cannot find nm_test_func in $nlist" >&5 7950 fi 7951 else 7952 echo "cannot find nm_test_var in $nlist" >&5 7953 fi 7954 else 7955 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7956 fi 7957 else 7958 echo "$progname: failed program was:" >&5 7959 cat conftest.$ac_ext >&5 7960 fi 7961 rm -rf conftest* conftst* 7962 7963 # Do not use the global_symbol_pipe unless it works. 7964 if test yes = "$pipe_works"; then 7965 break 7966 else 7967 lt_cv_sys_global_symbol_pipe= 7968 fi 7969done 7970 7971fi 7972 7973if test -z "$lt_cv_sys_global_symbol_pipe"; then 7974 lt_cv_sys_global_symbol_to_cdecl= 7975fi 7976if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7978$as_echo "failed" >&6; } 7979else 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7981$as_echo "ok" >&6; } 7982fi 7983 7984# Response file support. 7985if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7986 nm_file_list_spec='@' 7987elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7988 nm_file_list_spec='@' 7989fi 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8028$as_echo_n "checking for sysroot... " >&6; } 8029 8030# Check whether --with-sysroot was given. 8031if test "${with_sysroot+set}" = set; then : 8032 withval=$with_sysroot; 8033else 8034 with_sysroot=no 8035fi 8036 8037 8038lt_sysroot= 8039case $with_sysroot in #( 8040 yes) 8041 if test yes = "$GCC"; then 8042 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8043 fi 8044 ;; #( 8045 /*) 8046 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8047 ;; #( 8048 no|'') 8049 ;; #( 8050 *) 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8052$as_echo "$with_sysroot" >&6; } 8053 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8054 ;; 8055esac 8056 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8058$as_echo "${lt_sysroot:-no}" >&6; } 8059 8060 8061 8062 8063 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8065$as_echo_n "checking for a working dd... " >&6; } 8066if ${ac_cv_path_lt_DD+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 printf 0123456789abcdef0123456789abcdef >conftest.i 8070cat conftest.i conftest.i >conftest2.i 8071: ${lt_DD:=$DD} 8072if test -z "$lt_DD"; then 8073 ac_path_lt_DD_found=false 8074 # Loop through the user's path and test for each of PROGNAME-LIST 8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8076for as_dir in $PATH 8077do 8078 IFS=$as_save_IFS 8079 test -z "$as_dir" && as_dir=. 8080 for ac_prog in dd; do 8081 for ac_exec_ext in '' $ac_executable_extensions; do 8082 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8083 as_fn_executable_p "$ac_path_lt_DD" || continue 8084if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8085 cmp -s conftest.i conftest.out \ 8086 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8087fi 8088 $ac_path_lt_DD_found && break 3 8089 done 8090 done 8091 done 8092IFS=$as_save_IFS 8093 if test -z "$ac_cv_path_lt_DD"; then 8094 : 8095 fi 8096else 8097 ac_cv_path_lt_DD=$lt_DD 8098fi 8099 8100rm -f conftest.i conftest2.i conftest.out 8101fi 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8103$as_echo "$ac_cv_path_lt_DD" >&6; } 8104 8105 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8107$as_echo_n "checking how to truncate binary pipes... " >&6; } 8108if ${lt_cv_truncate_bin+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 printf 0123456789abcdef0123456789abcdef >conftest.i 8112cat conftest.i conftest.i >conftest2.i 8113lt_cv_truncate_bin= 8114if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8115 cmp -s conftest.i conftest.out \ 8116 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8117fi 8118rm -f conftest.i conftest2.i conftest.out 8119test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8120fi 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8122$as_echo "$lt_cv_truncate_bin" >&6; } 8123 8124 8125 8126 8127 8128 8129 8130# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8131func_cc_basename () 8132{ 8133 for cc_temp in $*""; do 8134 case $cc_temp in 8135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8137 \-*) ;; 8138 *) break;; 8139 esac 8140 done 8141 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8142} 8143 8144# Check whether --enable-libtool-lock was given. 8145if test "${enable_libtool_lock+set}" = set; then : 8146 enableval=$enable_libtool_lock; 8147fi 8148 8149test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8150 8151# Some flags need to be propagated to the compiler or linker for good 8152# libtool support. 8153case $host in 8154ia64-*-hpux*) 8155 # Find out what ABI is being produced by ac_compile, and set mode 8156 # options accordingly. 8157 echo 'int i;' > conftest.$ac_ext 8158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8159 (eval $ac_compile) 2>&5 8160 ac_status=$? 8161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8162 test $ac_status = 0; }; then 8163 case `/usr/bin/file conftest.$ac_objext` in 8164 *ELF-32*) 8165 HPUX_IA64_MODE=32 8166 ;; 8167 *ELF-64*) 8168 HPUX_IA64_MODE=64 8169 ;; 8170 esac 8171 fi 8172 rm -rf conftest* 8173 ;; 8174*-*-irix6*) 8175 # Find out what ABI is being produced by ac_compile, and set linker 8176 # options accordingly. 8177 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8179 (eval $ac_compile) 2>&5 8180 ac_status=$? 8181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8182 test $ac_status = 0; }; then 8183 if test yes = "$lt_cv_prog_gnu_ld"; then 8184 case `/usr/bin/file conftest.$ac_objext` in 8185 *32-bit*) 8186 LD="${LD-ld} -melf32bsmip" 8187 ;; 8188 *N32*) 8189 LD="${LD-ld} -melf32bmipn32" 8190 ;; 8191 *64-bit*) 8192 LD="${LD-ld} -melf64bmip" 8193 ;; 8194 esac 8195 else 8196 case `/usr/bin/file conftest.$ac_objext` in 8197 *32-bit*) 8198 LD="${LD-ld} -32" 8199 ;; 8200 *N32*) 8201 LD="${LD-ld} -n32" 8202 ;; 8203 *64-bit*) 8204 LD="${LD-ld} -64" 8205 ;; 8206 esac 8207 fi 8208 fi 8209 rm -rf conftest* 8210 ;; 8211 8212mips64*-*linux*) 8213 # Find out what ABI is being produced by ac_compile, and set linker 8214 # options accordingly. 8215 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8217 (eval $ac_compile) 2>&5 8218 ac_status=$? 8219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8220 test $ac_status = 0; }; then 8221 emul=elf 8222 case `/usr/bin/file conftest.$ac_objext` in 8223 *32-bit*) 8224 emul="${emul}32" 8225 ;; 8226 *64-bit*) 8227 emul="${emul}64" 8228 ;; 8229 esac 8230 case `/usr/bin/file conftest.$ac_objext` in 8231 *MSB*) 8232 emul="${emul}btsmip" 8233 ;; 8234 *LSB*) 8235 emul="${emul}ltsmip" 8236 ;; 8237 esac 8238 case `/usr/bin/file conftest.$ac_objext` in 8239 *N32*) 8240 emul="${emul}n32" 8241 ;; 8242 esac 8243 LD="${LD-ld} -m $emul" 8244 fi 8245 rm -rf conftest* 8246 ;; 8247 8248x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8249s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8250 # Find out what ABI is being produced by ac_compile, and set linker 8251 # options accordingly. Note that the listed cases only cover the 8252 # situations where additional linker options are needed (such as when 8253 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8254 # vice versa); the common cases where no linker options are needed do 8255 # not appear in the list. 8256 echo 'int i;' > conftest.$ac_ext 8257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8258 (eval $ac_compile) 2>&5 8259 ac_status=$? 8260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8261 test $ac_status = 0; }; then 8262 case `/usr/bin/file conftest.o` in 8263 *32-bit*) 8264 case $host in 8265 x86_64-*kfreebsd*-gnu) 8266 LD="${LD-ld} -m elf_i386_fbsd" 8267 ;; 8268 x86_64-*linux*) 8269 case `/usr/bin/file conftest.o` in 8270 *x86-64*) 8271 LD="${LD-ld} -m elf32_x86_64" 8272 ;; 8273 *) 8274 LD="${LD-ld} -m elf_i386" 8275 ;; 8276 esac 8277 ;; 8278 powerpc64le-*linux*) 8279 LD="${LD-ld} -m elf32lppclinux" 8280 ;; 8281 powerpc64-*linux*) 8282 LD="${LD-ld} -m elf32ppclinux" 8283 ;; 8284 s390x-*linux*) 8285 LD="${LD-ld} -m elf_s390" 8286 ;; 8287 sparc64-*linux*) 8288 LD="${LD-ld} -m elf32_sparc" 8289 ;; 8290 esac 8291 ;; 8292 *64-bit*) 8293 case $host in 8294 x86_64-*kfreebsd*-gnu) 8295 LD="${LD-ld} -m elf_x86_64_fbsd" 8296 ;; 8297 x86_64-*linux*) 8298 LD="${LD-ld} -m elf_x86_64" 8299 ;; 8300 powerpcle-*linux*) 8301 LD="${LD-ld} -m elf64lppc" 8302 ;; 8303 powerpc-*linux*) 8304 LD="${LD-ld} -m elf64ppc" 8305 ;; 8306 s390*-*linux*|s390*-*tpf*) 8307 LD="${LD-ld} -m elf64_s390" 8308 ;; 8309 sparc*-*linux*) 8310 LD="${LD-ld} -m elf64_sparc" 8311 ;; 8312 esac 8313 ;; 8314 esac 8315 fi 8316 rm -rf conftest* 8317 ;; 8318 8319*-*-sco3.2v5*) 8320 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8321 SAVE_CFLAGS=$CFLAGS 8322 CFLAGS="$CFLAGS -belf" 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8324$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8325if ${lt_cv_cc_needs_belf+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327else 8328 ac_ext=c 8329ac_cpp='$CPP $CPPFLAGS' 8330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8332ac_compiler_gnu=$ac_cv_c_compiler_gnu 8333 8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335/* end confdefs.h. */ 8336 8337int 8338main () 8339{ 8340 8341 ; 8342 return 0; 8343} 8344_ACEOF 8345if ac_fn_c_try_link "$LINENO"; then : 8346 lt_cv_cc_needs_belf=yes 8347else 8348 lt_cv_cc_needs_belf=no 8349fi 8350rm -f core conftest.err conftest.$ac_objext \ 8351 conftest$ac_exeext conftest.$ac_ext 8352 ac_ext=c 8353ac_cpp='$CPP $CPPFLAGS' 8354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8356ac_compiler_gnu=$ac_cv_c_compiler_gnu 8357 8358fi 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8360$as_echo "$lt_cv_cc_needs_belf" >&6; } 8361 if test yes != "$lt_cv_cc_needs_belf"; then 8362 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8363 CFLAGS=$SAVE_CFLAGS 8364 fi 8365 ;; 8366*-*solaris*) 8367 # Find out what ABI is being produced by ac_compile, and set linker 8368 # options accordingly. 8369 echo 'int i;' > conftest.$ac_ext 8370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8371 (eval $ac_compile) 2>&5 8372 ac_status=$? 8373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8374 test $ac_status = 0; }; then 8375 case `/usr/bin/file conftest.o` in 8376 *64-bit*) 8377 case $lt_cv_prog_gnu_ld in 8378 yes*) 8379 case $host in 8380 i?86-*-solaris*|x86_64-*-solaris*) 8381 LD="${LD-ld} -m elf_x86_64" 8382 ;; 8383 sparc*-*-solaris*) 8384 LD="${LD-ld} -m elf64_sparc" 8385 ;; 8386 esac 8387 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8388 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8389 LD=${LD-ld}_sol2 8390 fi 8391 ;; 8392 *) 8393 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8394 LD="${LD-ld} -64" 8395 fi 8396 ;; 8397 esac 8398 ;; 8399 esac 8400 fi 8401 rm -rf conftest* 8402 ;; 8403esac 8404 8405need_locks=$enable_libtool_lock 8406 8407if test -n "$ac_tool_prefix"; then 8408 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8409set dummy ${ac_tool_prefix}mt; ac_word=$2 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8411$as_echo_n "checking for $ac_word... " >&6; } 8412if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8413 $as_echo_n "(cached) " >&6 8414else 8415 if test -n "$MANIFEST_TOOL"; then 8416 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8417else 8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8419for as_dir in $PATH 8420do 8421 IFS=$as_save_IFS 8422 test -z "$as_dir" && as_dir=. 8423 for ac_exec_ext in '' $ac_executable_extensions; do 8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8425 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8427 break 2 8428 fi 8429done 8430 done 8431IFS=$as_save_IFS 8432 8433fi 8434fi 8435MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8436if test -n "$MANIFEST_TOOL"; then 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8438$as_echo "$MANIFEST_TOOL" >&6; } 8439else 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8441$as_echo "no" >&6; } 8442fi 8443 8444 8445fi 8446if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8447 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8448 # Extract the first word of "mt", so it can be a program name with args. 8449set dummy mt; ac_word=$2 8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8451$as_echo_n "checking for $ac_word... " >&6; } 8452if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 if test -n "$ac_ct_MANIFEST_TOOL"; then 8456 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8457else 8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8459for as_dir in $PATH 8460do 8461 IFS=$as_save_IFS 8462 test -z "$as_dir" && as_dir=. 8463 for ac_exec_ext in '' $ac_executable_extensions; do 8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8465 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8467 break 2 8468 fi 8469done 8470 done 8471IFS=$as_save_IFS 8472 8473fi 8474fi 8475ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8476if test -n "$ac_ct_MANIFEST_TOOL"; then 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8478$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8479else 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8481$as_echo "no" >&6; } 8482fi 8483 8484 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8485 MANIFEST_TOOL=":" 8486 else 8487 case $cross_compiling:$ac_tool_warned in 8488yes:) 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8491ac_tool_warned=yes ;; 8492esac 8493 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8494 fi 8495else 8496 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8497fi 8498 8499test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8501$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8502if ${lt_cv_path_mainfest_tool+:} false; then : 8503 $as_echo_n "(cached) " >&6 8504else 8505 lt_cv_path_mainfest_tool=no 8506 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8507 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8508 cat conftest.err >&5 8509 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8510 lt_cv_path_mainfest_tool=yes 8511 fi 8512 rm -f conftest* 8513fi 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8515$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8516if test yes != "$lt_cv_path_mainfest_tool"; then 8517 MANIFEST_TOOL=: 8518fi 8519 8520 8521 8522 8523 8524 8525 case $host_os in 8526 rhapsody* | darwin*) 8527 if test -n "$ac_tool_prefix"; then 8528 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8529set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8531$as_echo_n "checking for $ac_word... " >&6; } 8532if ${ac_cv_prog_DSYMUTIL+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 if test -n "$DSYMUTIL"; then 8536 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8537else 8538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8539for as_dir in $PATH 8540do 8541 IFS=$as_save_IFS 8542 test -z "$as_dir" && as_dir=. 8543 for ac_exec_ext in '' $ac_executable_extensions; do 8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8545 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8547 break 2 8548 fi 8549done 8550 done 8551IFS=$as_save_IFS 8552 8553fi 8554fi 8555DSYMUTIL=$ac_cv_prog_DSYMUTIL 8556if test -n "$DSYMUTIL"; then 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8558$as_echo "$DSYMUTIL" >&6; } 8559else 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8561$as_echo "no" >&6; } 8562fi 8563 8564 8565fi 8566if test -z "$ac_cv_prog_DSYMUTIL"; then 8567 ac_ct_DSYMUTIL=$DSYMUTIL 8568 # Extract the first word of "dsymutil", so it can be a program name with args. 8569set dummy dsymutil; ac_word=$2 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8571$as_echo_n "checking for $ac_word... " >&6; } 8572if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 if test -n "$ac_ct_DSYMUTIL"; then 8576 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8577else 8578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8579for as_dir in $PATH 8580do 8581 IFS=$as_save_IFS 8582 test -z "$as_dir" && as_dir=. 8583 for ac_exec_ext in '' $ac_executable_extensions; do 8584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8585 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8587 break 2 8588 fi 8589done 8590 done 8591IFS=$as_save_IFS 8592 8593fi 8594fi 8595ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8596if test -n "$ac_ct_DSYMUTIL"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8598$as_echo "$ac_ct_DSYMUTIL" >&6; } 8599else 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601$as_echo "no" >&6; } 8602fi 8603 8604 if test "x$ac_ct_DSYMUTIL" = x; then 8605 DSYMUTIL=":" 8606 else 8607 case $cross_compiling:$ac_tool_warned in 8608yes:) 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8611ac_tool_warned=yes ;; 8612esac 8613 DSYMUTIL=$ac_ct_DSYMUTIL 8614 fi 8615else 8616 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8617fi 8618 8619 if test -n "$ac_tool_prefix"; then 8620 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8621set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8623$as_echo_n "checking for $ac_word... " >&6; } 8624if ${ac_cv_prog_NMEDIT+:} false; then : 8625 $as_echo_n "(cached) " >&6 8626else 8627 if test -n "$NMEDIT"; then 8628 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8629else 8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8631for as_dir in $PATH 8632do 8633 IFS=$as_save_IFS 8634 test -z "$as_dir" && as_dir=. 8635 for ac_exec_ext in '' $ac_executable_extensions; do 8636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8637 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8639 break 2 8640 fi 8641done 8642 done 8643IFS=$as_save_IFS 8644 8645fi 8646fi 8647NMEDIT=$ac_cv_prog_NMEDIT 8648if test -n "$NMEDIT"; then 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8650$as_echo "$NMEDIT" >&6; } 8651else 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8653$as_echo "no" >&6; } 8654fi 8655 8656 8657fi 8658if test -z "$ac_cv_prog_NMEDIT"; then 8659 ac_ct_NMEDIT=$NMEDIT 8660 # Extract the first word of "nmedit", so it can be a program name with args. 8661set dummy nmedit; ac_word=$2 8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8663$as_echo_n "checking for $ac_word... " >&6; } 8664if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 if test -n "$ac_ct_NMEDIT"; then 8668 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8669else 8670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8671for as_dir in $PATH 8672do 8673 IFS=$as_save_IFS 8674 test -z "$as_dir" && as_dir=. 8675 for ac_exec_ext in '' $ac_executable_extensions; do 8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8677 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8679 break 2 8680 fi 8681done 8682 done 8683IFS=$as_save_IFS 8684 8685fi 8686fi 8687ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8688if test -n "$ac_ct_NMEDIT"; then 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8690$as_echo "$ac_ct_NMEDIT" >&6; } 8691else 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8693$as_echo "no" >&6; } 8694fi 8695 8696 if test "x$ac_ct_NMEDIT" = x; then 8697 NMEDIT=":" 8698 else 8699 case $cross_compiling:$ac_tool_warned in 8700yes:) 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8703ac_tool_warned=yes ;; 8704esac 8705 NMEDIT=$ac_ct_NMEDIT 8706 fi 8707else 8708 NMEDIT="$ac_cv_prog_NMEDIT" 8709fi 8710 8711 if test -n "$ac_tool_prefix"; then 8712 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8713set dummy ${ac_tool_prefix}lipo; ac_word=$2 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8715$as_echo_n "checking for $ac_word... " >&6; } 8716if ${ac_cv_prog_LIPO+:} false; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 if test -n "$LIPO"; then 8720 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8721else 8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8723for as_dir in $PATH 8724do 8725 IFS=$as_save_IFS 8726 test -z "$as_dir" && as_dir=. 8727 for ac_exec_ext in '' $ac_executable_extensions; do 8728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8729 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8731 break 2 8732 fi 8733done 8734 done 8735IFS=$as_save_IFS 8736 8737fi 8738fi 8739LIPO=$ac_cv_prog_LIPO 8740if test -n "$LIPO"; then 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8742$as_echo "$LIPO" >&6; } 8743else 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8745$as_echo "no" >&6; } 8746fi 8747 8748 8749fi 8750if test -z "$ac_cv_prog_LIPO"; then 8751 ac_ct_LIPO=$LIPO 8752 # Extract the first word of "lipo", so it can be a program name with args. 8753set dummy lipo; ac_word=$2 8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8755$as_echo_n "checking for $ac_word... " >&6; } 8756if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758else 8759 if test -n "$ac_ct_LIPO"; then 8760 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8761else 8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8763for as_dir in $PATH 8764do 8765 IFS=$as_save_IFS 8766 test -z "$as_dir" && as_dir=. 8767 for ac_exec_ext in '' $ac_executable_extensions; do 8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8769 ac_cv_prog_ac_ct_LIPO="lipo" 8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8771 break 2 8772 fi 8773done 8774 done 8775IFS=$as_save_IFS 8776 8777fi 8778fi 8779ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8780if test -n "$ac_ct_LIPO"; then 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8782$as_echo "$ac_ct_LIPO" >&6; } 8783else 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8785$as_echo "no" >&6; } 8786fi 8787 8788 if test "x$ac_ct_LIPO" = x; then 8789 LIPO=":" 8790 else 8791 case $cross_compiling:$ac_tool_warned in 8792yes:) 8793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8795ac_tool_warned=yes ;; 8796esac 8797 LIPO=$ac_ct_LIPO 8798 fi 8799else 8800 LIPO="$ac_cv_prog_LIPO" 8801fi 8802 8803 if test -n "$ac_tool_prefix"; then 8804 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8805set dummy ${ac_tool_prefix}otool; ac_word=$2 8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8807$as_echo_n "checking for $ac_word... " >&6; } 8808if ${ac_cv_prog_OTOOL+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 if test -n "$OTOOL"; then 8812 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8813else 8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8815for as_dir in $PATH 8816do 8817 IFS=$as_save_IFS 8818 test -z "$as_dir" && as_dir=. 8819 for ac_exec_ext in '' $ac_executable_extensions; do 8820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8821 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8823 break 2 8824 fi 8825done 8826 done 8827IFS=$as_save_IFS 8828 8829fi 8830fi 8831OTOOL=$ac_cv_prog_OTOOL 8832if test -n "$OTOOL"; then 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8834$as_echo "$OTOOL" >&6; } 8835else 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8837$as_echo "no" >&6; } 8838fi 8839 8840 8841fi 8842if test -z "$ac_cv_prog_OTOOL"; then 8843 ac_ct_OTOOL=$OTOOL 8844 # Extract the first word of "otool", so it can be a program name with args. 8845set dummy otool; ac_word=$2 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8847$as_echo_n "checking for $ac_word... " >&6; } 8848if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 if test -n "$ac_ct_OTOOL"; then 8852 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8853else 8854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8855for as_dir in $PATH 8856do 8857 IFS=$as_save_IFS 8858 test -z "$as_dir" && as_dir=. 8859 for ac_exec_ext in '' $ac_executable_extensions; do 8860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8861 ac_cv_prog_ac_ct_OTOOL="otool" 8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8863 break 2 8864 fi 8865done 8866 done 8867IFS=$as_save_IFS 8868 8869fi 8870fi 8871ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8872if test -n "$ac_ct_OTOOL"; then 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8874$as_echo "$ac_ct_OTOOL" >&6; } 8875else 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8877$as_echo "no" >&6; } 8878fi 8879 8880 if test "x$ac_ct_OTOOL" = x; then 8881 OTOOL=":" 8882 else 8883 case $cross_compiling:$ac_tool_warned in 8884yes:) 8885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8887ac_tool_warned=yes ;; 8888esac 8889 OTOOL=$ac_ct_OTOOL 8890 fi 8891else 8892 OTOOL="$ac_cv_prog_OTOOL" 8893fi 8894 8895 if test -n "$ac_tool_prefix"; then 8896 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8897set dummy ${ac_tool_prefix}otool64; ac_word=$2 8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8899$as_echo_n "checking for $ac_word... " >&6; } 8900if ${ac_cv_prog_OTOOL64+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902else 8903 if test -n "$OTOOL64"; then 8904 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8905else 8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8907for as_dir in $PATH 8908do 8909 IFS=$as_save_IFS 8910 test -z "$as_dir" && as_dir=. 8911 for ac_exec_ext in '' $ac_executable_extensions; do 8912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8913 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8915 break 2 8916 fi 8917done 8918 done 8919IFS=$as_save_IFS 8920 8921fi 8922fi 8923OTOOL64=$ac_cv_prog_OTOOL64 8924if test -n "$OTOOL64"; then 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8926$as_echo "$OTOOL64" >&6; } 8927else 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8929$as_echo "no" >&6; } 8930fi 8931 8932 8933fi 8934if test -z "$ac_cv_prog_OTOOL64"; then 8935 ac_ct_OTOOL64=$OTOOL64 8936 # Extract the first word of "otool64", so it can be a program name with args. 8937set dummy otool64; ac_word=$2 8938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8939$as_echo_n "checking for $ac_word... " >&6; } 8940if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8941 $as_echo_n "(cached) " >&6 8942else 8943 if test -n "$ac_ct_OTOOL64"; then 8944 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8945else 8946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8947for as_dir in $PATH 8948do 8949 IFS=$as_save_IFS 8950 test -z "$as_dir" && as_dir=. 8951 for ac_exec_ext in '' $ac_executable_extensions; do 8952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8953 ac_cv_prog_ac_ct_OTOOL64="otool64" 8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8955 break 2 8956 fi 8957done 8958 done 8959IFS=$as_save_IFS 8960 8961fi 8962fi 8963ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8964if test -n "$ac_ct_OTOOL64"; then 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8966$as_echo "$ac_ct_OTOOL64" >&6; } 8967else 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8969$as_echo "no" >&6; } 8970fi 8971 8972 if test "x$ac_ct_OTOOL64" = x; then 8973 OTOOL64=":" 8974 else 8975 case $cross_compiling:$ac_tool_warned in 8976yes:) 8977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8979ac_tool_warned=yes ;; 8980esac 8981 OTOOL64=$ac_ct_OTOOL64 8982 fi 8983else 8984 OTOOL64="$ac_cv_prog_OTOOL64" 8985fi 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9014$as_echo_n "checking for -single_module linker flag... " >&6; } 9015if ${lt_cv_apple_cc_single_mod+:} false; then : 9016 $as_echo_n "(cached) " >&6 9017else 9018 lt_cv_apple_cc_single_mod=no 9019 if test -z "$LT_MULTI_MODULE"; then 9020 # By default we will add the -single_module flag. You can override 9021 # by either setting the environment variable LT_MULTI_MODULE 9022 # non-empty at configure time, or by adding -multi_module to the 9023 # link flags. 9024 rm -rf libconftest.dylib* 9025 echo "int foo(void){return 1;}" > conftest.c 9026 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9027-dynamiclib -Wl,-single_module conftest.c" >&5 9028 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9029 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9030 _lt_result=$? 9031 # If there is a non-empty error log, and "single_module" 9032 # appears in it, assume the flag caused a linker warning 9033 if test -s conftest.err && $GREP single_module conftest.err; then 9034 cat conftest.err >&5 9035 # Otherwise, if the output was created with a 0 exit code from 9036 # the compiler, it worked. 9037 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9038 lt_cv_apple_cc_single_mod=yes 9039 else 9040 cat conftest.err >&5 9041 fi 9042 rm -rf libconftest.dylib* 9043 rm -f conftest.* 9044 fi 9045fi 9046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9047$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9048 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9050$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9051if ${lt_cv_ld_exported_symbols_list+:} false; then : 9052 $as_echo_n "(cached) " >&6 9053else 9054 lt_cv_ld_exported_symbols_list=no 9055 save_LDFLAGS=$LDFLAGS 9056 echo "_main" > conftest.sym 9057 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9059/* end confdefs.h. */ 9060 9061int 9062main () 9063{ 9064 9065 ; 9066 return 0; 9067} 9068_ACEOF 9069if ac_fn_c_try_link "$LINENO"; then : 9070 lt_cv_ld_exported_symbols_list=yes 9071else 9072 lt_cv_ld_exported_symbols_list=no 9073fi 9074rm -f core conftest.err conftest.$ac_objext \ 9075 conftest$ac_exeext conftest.$ac_ext 9076 LDFLAGS=$save_LDFLAGS 9077 9078fi 9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9080$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9081 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9083$as_echo_n "checking for -force_load linker flag... " >&6; } 9084if ${lt_cv_ld_force_load+:} false; then : 9085 $as_echo_n "(cached) " >&6 9086else 9087 lt_cv_ld_force_load=no 9088 cat > conftest.c << _LT_EOF 9089int forced_loaded() { return 2;} 9090_LT_EOF 9091 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9092 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9093 echo "$AR cru libconftest.a conftest.o" >&5 9094 $AR cru libconftest.a conftest.o 2>&5 9095 echo "$RANLIB libconftest.a" >&5 9096 $RANLIB libconftest.a 2>&5 9097 cat > conftest.c << _LT_EOF 9098int main() { return 0;} 9099_LT_EOF 9100 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9101 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9102 _lt_result=$? 9103 if test -s conftest.err && $GREP force_load conftest.err; then 9104 cat conftest.err >&5 9105 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9106 lt_cv_ld_force_load=yes 9107 else 9108 cat conftest.err >&5 9109 fi 9110 rm -f conftest.err libconftest.a conftest conftest.c 9111 rm -rf conftest.dSYM 9112 9113fi 9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9115$as_echo "$lt_cv_ld_force_load" >&6; } 9116 case $host_os in 9117 rhapsody* | darwin1.[012]) 9118 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9119 darwin1.*) 9120 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9121 darwin*) # darwin 5.x on 9122 # if running on 10.5 or later, the deployment target defaults 9123 # to the OS version, if on x86, and 10.4, the deployment 9124 # target defaults to 10.4. Don't you love it? 9125 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9126 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9127 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9128 10.[012][,.]*) 9129 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9130 10.*) 9131 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9132 esac 9133 ;; 9134 esac 9135 if test yes = "$lt_cv_apple_cc_single_mod"; then 9136 _lt_dar_single_mod='$single_module' 9137 fi 9138 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9139 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9140 else 9141 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9142 fi 9143 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9144 _lt_dsymutil='~$DSYMUTIL $lib || :' 9145 else 9146 _lt_dsymutil= 9147 fi 9148 ;; 9149 esac 9150 9151# func_munge_path_list VARIABLE PATH 9152# ----------------------------------- 9153# VARIABLE is name of variable containing _space_ separated list of 9154# directories to be munged by the contents of PATH, which is string 9155# having a format: 9156# "DIR[:DIR]:" 9157# string "DIR[ DIR]" will be prepended to VARIABLE 9158# ":DIR[:DIR]" 9159# string "DIR[ DIR]" will be appended to VARIABLE 9160# "DIRP[:DIRP]::[DIRA:]DIRA" 9161# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9162# "DIRA[ DIRA]" will be appended to VARIABLE 9163# "DIR[:DIR]" 9164# VARIABLE will be replaced by "DIR[ DIR]" 9165func_munge_path_list () 9166{ 9167 case x$2 in 9168 x) 9169 ;; 9170 *:) 9171 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9172 ;; 9173 x:*) 9174 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9175 ;; 9176 *::*) 9177 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9178 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9179 ;; 9180 *) 9181 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9182 ;; 9183 esac 9184} 9185 9186for ac_header in dlfcn.h 9187do : 9188 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9189" 9190if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9191 cat >>confdefs.h <<_ACEOF 9192#define HAVE_DLFCN_H 1 9193_ACEOF 9194 9195fi 9196 9197done 9198 9199 9200 9201 9202 9203# Set options 9204 9205 9206 9207 enable_dlopen=no 9208 9209 9210 9211 # Check whether --enable-shared was given. 9212if test "${enable_shared+set}" = set; then : 9213 enableval=$enable_shared; p=${PACKAGE-default} 9214 case $enableval in 9215 yes) enable_shared=yes ;; 9216 no) enable_shared=no ;; 9217 *) 9218 enable_shared=no 9219 # Look at the argument we got. We use all the common list separators. 9220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9221 for pkg in $enableval; do 9222 IFS=$lt_save_ifs 9223 if test "X$pkg" = "X$p"; then 9224 enable_shared=yes 9225 fi 9226 done 9227 IFS=$lt_save_ifs 9228 ;; 9229 esac 9230else 9231 enable_shared=yes 9232fi 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 # Check whether --enable-static was given. 9243if test "${enable_static+set}" = set; then : 9244 enableval=$enable_static; p=${PACKAGE-default} 9245 case $enableval in 9246 yes) enable_static=yes ;; 9247 no) enable_static=no ;; 9248 *) 9249 enable_static=no 9250 # Look at the argument we got. We use all the common list separators. 9251 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9252 for pkg in $enableval; do 9253 IFS=$lt_save_ifs 9254 if test "X$pkg" = "X$p"; then 9255 enable_static=yes 9256 fi 9257 done 9258 IFS=$lt_save_ifs 9259 ;; 9260 esac 9261else 9262 enable_static=yes 9263fi 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274# Check whether --with-pic was given. 9275if test "${with_pic+set}" = set; then : 9276 withval=$with_pic; lt_p=${PACKAGE-default} 9277 case $withval in 9278 yes|no) pic_mode=$withval ;; 9279 *) 9280 pic_mode=default 9281 # Look at the argument we got. We use all the common list separators. 9282 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9283 for lt_pkg in $withval; do 9284 IFS=$lt_save_ifs 9285 if test "X$lt_pkg" = "X$lt_p"; then 9286 pic_mode=yes 9287 fi 9288 done 9289 IFS=$lt_save_ifs 9290 ;; 9291 esac 9292else 9293 pic_mode=default 9294fi 9295 9296 9297 9298 9299 9300 9301 9302 9303 # Check whether --enable-fast-install was given. 9304if test "${enable_fast_install+set}" = set; then : 9305 enableval=$enable_fast_install; p=${PACKAGE-default} 9306 case $enableval in 9307 yes) enable_fast_install=yes ;; 9308 no) enable_fast_install=no ;; 9309 *) 9310 enable_fast_install=no 9311 # Look at the argument we got. We use all the common list separators. 9312 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9313 for pkg in $enableval; do 9314 IFS=$lt_save_ifs 9315 if test "X$pkg" = "X$p"; then 9316 enable_fast_install=yes 9317 fi 9318 done 9319 IFS=$lt_save_ifs 9320 ;; 9321 esac 9322else 9323 enable_fast_install=yes 9324fi 9325 9326 9327 9328 9329 9330 9331 9332 9333 shared_archive_member_spec= 9334case $host,$enable_shared in 9335power*-*-aix[5-9]*,yes) 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9337$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9338 9339# Check whether --with-aix-soname was given. 9340if test "${with_aix_soname+set}" = set; then : 9341 withval=$with_aix_soname; case $withval in 9342 aix|svr4|both) 9343 ;; 9344 *) 9345 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9346 ;; 9347 esac 9348 lt_cv_with_aix_soname=$with_aix_soname 9349else 9350 if ${lt_cv_with_aix_soname+:} false; then : 9351 $as_echo_n "(cached) " >&6 9352else 9353 lt_cv_with_aix_soname=aix 9354fi 9355 9356 with_aix_soname=$lt_cv_with_aix_soname 9357fi 9358 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9360$as_echo "$with_aix_soname" >&6; } 9361 if test aix != "$with_aix_soname"; then 9362 # For the AIX way of multilib, we name the shared archive member 9363 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9364 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9365 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9366 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9367 if test 64 = "${OBJECT_MODE-32}"; then 9368 shared_archive_member_spec=shr_64 9369 else 9370 shared_archive_member_spec=shr 9371 fi 9372 fi 9373 ;; 9374*) 9375 with_aix_soname=aix 9376 ;; 9377esac 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388# This can be used to rebuild libtool when needed 9389LIBTOOL_DEPS=$ltmain 9390 9391# Always use our own libtool. 9392LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423test -z "$LN_S" && LN_S="ln -s" 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438if test -n "${ZSH_VERSION+set}"; then 9439 setopt NO_GLOB_SUBST 9440fi 9441 9442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9443$as_echo_n "checking for objdir... " >&6; } 9444if ${lt_cv_objdir+:} false; then : 9445 $as_echo_n "(cached) " >&6 9446else 9447 rm -f .libs 2>/dev/null 9448mkdir .libs 2>/dev/null 9449if test -d .libs; then 9450 lt_cv_objdir=.libs 9451else 9452 # MS-DOS does not allow filenames that begin with a dot. 9453 lt_cv_objdir=_libs 9454fi 9455rmdir .libs 2>/dev/null 9456fi 9457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9458$as_echo "$lt_cv_objdir" >&6; } 9459objdir=$lt_cv_objdir 9460 9461 9462 9463 9464 9465cat >>confdefs.h <<_ACEOF 9466#define LT_OBJDIR "$lt_cv_objdir/" 9467_ACEOF 9468 9469 9470 9471 9472case $host_os in 9473aix3*) 9474 # AIX sometimes has problems with the GCC collect2 program. For some 9475 # reason, if we set the COLLECT_NAMES environment variable, the problems 9476 # vanish in a puff of smoke. 9477 if test set != "${COLLECT_NAMES+set}"; then 9478 COLLECT_NAMES= 9479 export COLLECT_NAMES 9480 fi 9481 ;; 9482esac 9483 9484# Global variables: 9485ofile=libtool 9486can_build_shared=yes 9487 9488# All known linkers require a '.a' archive for static linking (except MSVC, 9489# which needs '.lib'). 9490libext=a 9491 9492with_gnu_ld=$lt_cv_prog_gnu_ld 9493 9494old_CC=$CC 9495old_CFLAGS=$CFLAGS 9496 9497# Set sane defaults for various variables 9498test -z "$CC" && CC=cc 9499test -z "$LTCC" && LTCC=$CC 9500test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9501test -z "$LD" && LD=ld 9502test -z "$ac_objext" && ac_objext=o 9503 9504func_cc_basename $compiler 9505cc_basename=$func_cc_basename_result 9506 9507 9508# Only perform the check for file, if the check method requires it 9509test -z "$MAGIC_CMD" && MAGIC_CMD=file 9510case $deplibs_check_method in 9511file_magic*) 9512 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9514$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9515if ${lt_cv_path_MAGIC_CMD+:} false; then : 9516 $as_echo_n "(cached) " >&6 9517else 9518 case $MAGIC_CMD in 9519[\\/*] | ?:[\\/]*) 9520 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9521 ;; 9522*) 9523 lt_save_MAGIC_CMD=$MAGIC_CMD 9524 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9526 for ac_dir in $ac_dummy; do 9527 IFS=$lt_save_ifs 9528 test -z "$ac_dir" && ac_dir=. 9529 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9530 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9531 if test -n "$file_magic_test_file"; then 9532 case $deplibs_check_method in 9533 "file_magic "*) 9534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9537 $EGREP "$file_magic_regex" > /dev/null; then 9538 : 9539 else 9540 cat <<_LT_EOF 1>&2 9541 9542*** Warning: the command libtool uses to detect shared libraries, 9543*** $file_magic_cmd, produces output that libtool cannot recognize. 9544*** The result is that libtool may fail to recognize shared libraries 9545*** as such. This will affect the creation of libtool libraries that 9546*** depend on shared libraries, but programs linked with such libtool 9547*** libraries will work regardless of this problem. Nevertheless, you 9548*** may want to report the problem to your system manager and/or to 9549*** bug-libtool@gnu.org 9550 9551_LT_EOF 9552 fi ;; 9553 esac 9554 fi 9555 break 9556 fi 9557 done 9558 IFS=$lt_save_ifs 9559 MAGIC_CMD=$lt_save_MAGIC_CMD 9560 ;; 9561esac 9562fi 9563 9564MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9565if test -n "$MAGIC_CMD"; then 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9567$as_echo "$MAGIC_CMD" >&6; } 9568else 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9570$as_echo "no" >&6; } 9571fi 9572 9573 9574 9575 9576 9577if test -z "$lt_cv_path_MAGIC_CMD"; then 9578 if test -n "$ac_tool_prefix"; then 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9580$as_echo_n "checking for file... " >&6; } 9581if ${lt_cv_path_MAGIC_CMD+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583else 9584 case $MAGIC_CMD in 9585[\\/*] | ?:[\\/]*) 9586 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9587 ;; 9588*) 9589 lt_save_MAGIC_CMD=$MAGIC_CMD 9590 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9592 for ac_dir in $ac_dummy; do 9593 IFS=$lt_save_ifs 9594 test -z "$ac_dir" && ac_dir=. 9595 if test -f "$ac_dir/file"; then 9596 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9597 if test -n "$file_magic_test_file"; then 9598 case $deplibs_check_method in 9599 "file_magic "*) 9600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9601 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9603 $EGREP "$file_magic_regex" > /dev/null; then 9604 : 9605 else 9606 cat <<_LT_EOF 1>&2 9607 9608*** Warning: the command libtool uses to detect shared libraries, 9609*** $file_magic_cmd, produces output that libtool cannot recognize. 9610*** The result is that libtool may fail to recognize shared libraries 9611*** as such. This will affect the creation of libtool libraries that 9612*** depend on shared libraries, but programs linked with such libtool 9613*** libraries will work regardless of this problem. Nevertheless, you 9614*** may want to report the problem to your system manager and/or to 9615*** bug-libtool@gnu.org 9616 9617_LT_EOF 9618 fi ;; 9619 esac 9620 fi 9621 break 9622 fi 9623 done 9624 IFS=$lt_save_ifs 9625 MAGIC_CMD=$lt_save_MAGIC_CMD 9626 ;; 9627esac 9628fi 9629 9630MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9631if test -n "$MAGIC_CMD"; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9633$as_echo "$MAGIC_CMD" >&6; } 9634else 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636$as_echo "no" >&6; } 9637fi 9638 9639 9640 else 9641 MAGIC_CMD=: 9642 fi 9643fi 9644 9645 fi 9646 ;; 9647esac 9648 9649# Use C for the default configuration in the libtool script 9650 9651lt_save_CC=$CC 9652ac_ext=c 9653ac_cpp='$CPP $CPPFLAGS' 9654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9656ac_compiler_gnu=$ac_cv_c_compiler_gnu 9657 9658 9659# Source file extension for C test sources. 9660ac_ext=c 9661 9662# Object file extension for compiled C test sources. 9663objext=o 9664objext=$objext 9665 9666# Code to be used in simple compile tests 9667lt_simple_compile_test_code="int some_variable = 0;" 9668 9669# Code to be used in simple link tests 9670lt_simple_link_test_code='int main(){return(0);}' 9671 9672 9673 9674 9675 9676 9677 9678# If no C compiler was specified, use CC. 9679LTCC=${LTCC-"$CC"} 9680 9681# If no C compiler flags were specified, use CFLAGS. 9682LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9683 9684# Allow CC to be a program name with arguments. 9685compiler=$CC 9686 9687# Save the default compiler, since it gets overwritten when the other 9688# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9689compiler_DEFAULT=$CC 9690 9691# save warnings/boilerplate of simple test code 9692ac_outfile=conftest.$ac_objext 9693echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9694eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9695_lt_compiler_boilerplate=`cat conftest.err` 9696$RM conftest* 9697 9698ac_outfile=conftest.$ac_objext 9699echo "$lt_simple_link_test_code" >conftest.$ac_ext 9700eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9701_lt_linker_boilerplate=`cat conftest.err` 9702$RM -r conftest* 9703 9704 9705if test -n "$compiler"; then 9706 9707lt_prog_compiler_no_builtin_flag= 9708 9709if test yes = "$GCC"; then 9710 case $cc_basename in 9711 nvcc*) 9712 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9713 *) 9714 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9715 esac 9716 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9718$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9719if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721else 9722 lt_cv_prog_compiler_rtti_exceptions=no 9723 ac_outfile=conftest.$ac_objext 9724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9725 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9726 # Insert the option either (1) after the last *FLAGS variable, or 9727 # (2) before a word containing "conftest.", or (3) at the end. 9728 # Note that $ac_compile itself does not contain backslashes and begins 9729 # with a dollar sign (not a hyphen), so the echo should work correctly. 9730 # The option is referenced via a variable to avoid confusing sed. 9731 lt_compile=`echo "$ac_compile" | $SED \ 9732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9734 -e 's:$: $lt_compiler_flag:'` 9735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9736 (eval "$lt_compile" 2>conftest.err) 9737 ac_status=$? 9738 cat conftest.err >&5 9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9740 if (exit $ac_status) && test -s "$ac_outfile"; then 9741 # The compiler can only warn and ignore the option if not recognized 9742 # So say no if there are warnings other than the usual output. 9743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9745 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9746 lt_cv_prog_compiler_rtti_exceptions=yes 9747 fi 9748 fi 9749 $RM conftest* 9750 9751fi 9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9753$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9754 9755if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9756 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9757else 9758 : 9759fi 9760 9761fi 9762 9763 9764 9765 9766 9767 9768 lt_prog_compiler_wl= 9769lt_prog_compiler_pic= 9770lt_prog_compiler_static= 9771 9772 9773 if test yes = "$GCC"; then 9774 lt_prog_compiler_wl='-Wl,' 9775 lt_prog_compiler_static='-static' 9776 9777 case $host_os in 9778 aix*) 9779 # All AIX code is PIC. 9780 if test ia64 = "$host_cpu"; then 9781 # AIX 5 now supports IA64 processor 9782 lt_prog_compiler_static='-Bstatic' 9783 fi 9784 lt_prog_compiler_pic='-fPIC' 9785 ;; 9786 9787 amigaos*) 9788 case $host_cpu in 9789 powerpc) 9790 # see comment about AmigaOS4 .so support 9791 lt_prog_compiler_pic='-fPIC' 9792 ;; 9793 m68k) 9794 # FIXME: we need at least 68020 code to build shared libraries, but 9795 # adding the '-m68020' flag to GCC prevents building anything better, 9796 # like '-m68040'. 9797 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9798 ;; 9799 esac 9800 ;; 9801 9802 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9803 # PIC is the default for these OSes. 9804 ;; 9805 9806 mingw* | cygwin* | pw32* | os2* | cegcc*) 9807 # This hack is so that the source file can tell whether it is being 9808 # built for inclusion in a dll (and should export symbols for example). 9809 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9810 # (--disable-auto-import) libraries 9811 lt_prog_compiler_pic='-DDLL_EXPORT' 9812 case $host_os in 9813 os2*) 9814 lt_prog_compiler_static='$wl-static' 9815 ;; 9816 esac 9817 ;; 9818 9819 darwin* | rhapsody*) 9820 # PIC is the default on this platform 9821 # Common symbols not allowed in MH_DYLIB files 9822 lt_prog_compiler_pic='-fno-common' 9823 ;; 9824 9825 haiku*) 9826 # PIC is the default for Haiku. 9827 # The "-static" flag exists, but is broken. 9828 lt_prog_compiler_static= 9829 ;; 9830 9831 hpux*) 9832 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9833 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9834 # sets the default TLS model and affects inlining. 9835 case $host_cpu in 9836 hppa*64*) 9837 # +Z the default 9838 ;; 9839 *) 9840 lt_prog_compiler_pic='-fPIC' 9841 ;; 9842 esac 9843 ;; 9844 9845 interix[3-9]*) 9846 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9847 # Instead, we relocate shared libraries at runtime. 9848 ;; 9849 9850 msdosdjgpp*) 9851 # Just because we use GCC doesn't mean we suddenly get shared libraries 9852 # on systems that don't support them. 9853 lt_prog_compiler_can_build_shared=no 9854 enable_shared=no 9855 ;; 9856 9857 *nto* | *qnx*) 9858 # QNX uses GNU C++, but need to define -shared option too, otherwise 9859 # it will coredump. 9860 lt_prog_compiler_pic='-fPIC -shared' 9861 ;; 9862 9863 sysv4*MP*) 9864 if test -d /usr/nec; then 9865 lt_prog_compiler_pic=-Kconform_pic 9866 fi 9867 ;; 9868 9869 *) 9870 lt_prog_compiler_pic='-fPIC' 9871 ;; 9872 esac 9873 9874 case $cc_basename in 9875 nvcc*) # Cuda Compiler Driver 2.2 9876 lt_prog_compiler_wl='-Xlinker ' 9877 if test -n "$lt_prog_compiler_pic"; then 9878 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9879 fi 9880 ;; 9881 esac 9882 else 9883 # PORTME Check for flag to pass linker flags through the system compiler. 9884 case $host_os in 9885 aix*) 9886 lt_prog_compiler_wl='-Wl,' 9887 if test ia64 = "$host_cpu"; then 9888 # AIX 5 now supports IA64 processor 9889 lt_prog_compiler_static='-Bstatic' 9890 else 9891 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9892 fi 9893 ;; 9894 9895 darwin* | rhapsody*) 9896 # PIC is the default on this platform 9897 # Common symbols not allowed in MH_DYLIB files 9898 lt_prog_compiler_pic='-fno-common' 9899 case $cc_basename in 9900 nagfor*) 9901 # NAG Fortran compiler 9902 lt_prog_compiler_wl='-Wl,-Wl,,' 9903 lt_prog_compiler_pic='-PIC' 9904 lt_prog_compiler_static='-Bstatic' 9905 ;; 9906 esac 9907 ;; 9908 9909 mingw* | cygwin* | pw32* | os2* | cegcc*) 9910 # This hack is so that the source file can tell whether it is being 9911 # built for inclusion in a dll (and should export symbols for example). 9912 lt_prog_compiler_pic='-DDLL_EXPORT' 9913 case $host_os in 9914 os2*) 9915 lt_prog_compiler_static='$wl-static' 9916 ;; 9917 esac 9918 ;; 9919 9920 hpux9* | hpux10* | hpux11*) 9921 lt_prog_compiler_wl='-Wl,' 9922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9923 # not for PA HP-UX. 9924 case $host_cpu in 9925 hppa*64*|ia64*) 9926 # +Z the default 9927 ;; 9928 *) 9929 lt_prog_compiler_pic='+Z' 9930 ;; 9931 esac 9932 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9933 lt_prog_compiler_static='$wl-a ${wl}archive' 9934 ;; 9935 9936 irix5* | irix6* | nonstopux*) 9937 lt_prog_compiler_wl='-Wl,' 9938 # PIC (with -KPIC) is the default. 9939 lt_prog_compiler_static='-non_shared' 9940 ;; 9941 9942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9943 case $cc_basename in 9944 # old Intel for x86_64, which still supported -KPIC. 9945 ecc*) 9946 lt_prog_compiler_wl='-Wl,' 9947 lt_prog_compiler_pic='-KPIC' 9948 lt_prog_compiler_static='-static' 9949 ;; 9950 # icc used to be incompatible with GCC. 9951 # ICC 10 doesn't accept -KPIC any more. 9952 icc* | ifort*) 9953 lt_prog_compiler_wl='-Wl,' 9954 lt_prog_compiler_pic='-fPIC' 9955 lt_prog_compiler_static='-static' 9956 ;; 9957 # Lahey Fortran 8.1. 9958 lf95*) 9959 lt_prog_compiler_wl='-Wl,' 9960 lt_prog_compiler_pic='--shared' 9961 lt_prog_compiler_static='--static' 9962 ;; 9963 nagfor*) 9964 # NAG Fortran compiler 9965 lt_prog_compiler_wl='-Wl,-Wl,,' 9966 lt_prog_compiler_pic='-PIC' 9967 lt_prog_compiler_static='-Bstatic' 9968 ;; 9969 tcc*) 9970 # Fabrice Bellard et al's Tiny C Compiler 9971 lt_prog_compiler_wl='-Wl,' 9972 lt_prog_compiler_pic='-fPIC' 9973 lt_prog_compiler_static='-static' 9974 ;; 9975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9976 # Portland Group compilers (*not* the Pentium gcc compiler, 9977 # which looks to be a dead project) 9978 lt_prog_compiler_wl='-Wl,' 9979 lt_prog_compiler_pic='-fpic' 9980 lt_prog_compiler_static='-Bstatic' 9981 ;; 9982 ccc*) 9983 lt_prog_compiler_wl='-Wl,' 9984 # All Alpha code is PIC. 9985 lt_prog_compiler_static='-non_shared' 9986 ;; 9987 xl* | bgxl* | bgf* | mpixl*) 9988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9989 lt_prog_compiler_wl='-Wl,' 9990 lt_prog_compiler_pic='-qpic' 9991 lt_prog_compiler_static='-qstaticlink' 9992 ;; 9993 *) 9994 case `$CC -V 2>&1 | sed 5q` in 9995 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9996 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9997 lt_prog_compiler_pic='-KPIC' 9998 lt_prog_compiler_static='-Bstatic' 9999 lt_prog_compiler_wl='' 10000 ;; 10001 *Sun\ F* | *Sun*Fortran*) 10002 lt_prog_compiler_pic='-KPIC' 10003 lt_prog_compiler_static='-Bstatic' 10004 lt_prog_compiler_wl='-Qoption ld ' 10005 ;; 10006 *Sun\ C*) 10007 # Sun C 5.9 10008 lt_prog_compiler_pic='-KPIC' 10009 lt_prog_compiler_static='-Bstatic' 10010 lt_prog_compiler_wl='-Wl,' 10011 ;; 10012 *Intel*\ [CF]*Compiler*) 10013 lt_prog_compiler_wl='-Wl,' 10014 lt_prog_compiler_pic='-fPIC' 10015 lt_prog_compiler_static='-static' 10016 ;; 10017 *Portland\ Group*) 10018 lt_prog_compiler_wl='-Wl,' 10019 lt_prog_compiler_pic='-fpic' 10020 lt_prog_compiler_static='-Bstatic' 10021 ;; 10022 esac 10023 ;; 10024 esac 10025 ;; 10026 10027 newsos6) 10028 lt_prog_compiler_pic='-KPIC' 10029 lt_prog_compiler_static='-Bstatic' 10030 ;; 10031 10032 *nto* | *qnx*) 10033 # QNX uses GNU C++, but need to define -shared option too, otherwise 10034 # it will coredump. 10035 lt_prog_compiler_pic='-fPIC -shared' 10036 ;; 10037 10038 osf3* | osf4* | osf5*) 10039 lt_prog_compiler_wl='-Wl,' 10040 # All OSF/1 code is PIC. 10041 lt_prog_compiler_static='-non_shared' 10042 ;; 10043 10044 rdos*) 10045 lt_prog_compiler_static='-non_shared' 10046 ;; 10047 10048 solaris*) 10049 lt_prog_compiler_pic='-KPIC' 10050 lt_prog_compiler_static='-Bstatic' 10051 case $cc_basename in 10052 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10053 lt_prog_compiler_wl='-Qoption ld ';; 10054 *) 10055 lt_prog_compiler_wl='-Wl,';; 10056 esac 10057 ;; 10058 10059 sunos4*) 10060 lt_prog_compiler_wl='-Qoption ld ' 10061 lt_prog_compiler_pic='-PIC' 10062 lt_prog_compiler_static='-Bstatic' 10063 ;; 10064 10065 sysv4 | sysv4.2uw2* | sysv4.3*) 10066 lt_prog_compiler_wl='-Wl,' 10067 lt_prog_compiler_pic='-KPIC' 10068 lt_prog_compiler_static='-Bstatic' 10069 ;; 10070 10071 sysv4*MP*) 10072 if test -d /usr/nec; then 10073 lt_prog_compiler_pic='-Kconform_pic' 10074 lt_prog_compiler_static='-Bstatic' 10075 fi 10076 ;; 10077 10078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10079 lt_prog_compiler_wl='-Wl,' 10080 lt_prog_compiler_pic='-KPIC' 10081 lt_prog_compiler_static='-Bstatic' 10082 ;; 10083 10084 unicos*) 10085 lt_prog_compiler_wl='-Wl,' 10086 lt_prog_compiler_can_build_shared=no 10087 ;; 10088 10089 uts4*) 10090 lt_prog_compiler_pic='-pic' 10091 lt_prog_compiler_static='-Bstatic' 10092 ;; 10093 10094 *) 10095 lt_prog_compiler_can_build_shared=no 10096 ;; 10097 esac 10098 fi 10099 10100case $host_os in 10101 # For platforms that do not support PIC, -DPIC is meaningless: 10102 *djgpp*) 10103 lt_prog_compiler_pic= 10104 ;; 10105 *) 10106 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10107 ;; 10108esac 10109 10110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10111$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10112if ${lt_cv_prog_compiler_pic+:} false; then : 10113 $as_echo_n "(cached) " >&6 10114else 10115 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10116fi 10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10118$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10119lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10120 10121# 10122# Check to make sure the PIC flag actually works. 10123# 10124if test -n "$lt_prog_compiler_pic"; then 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10126$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10127if ${lt_cv_prog_compiler_pic_works+:} false; then : 10128 $as_echo_n "(cached) " >&6 10129else 10130 lt_cv_prog_compiler_pic_works=no 10131 ac_outfile=conftest.$ac_objext 10132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10134 # Insert the option either (1) after the last *FLAGS variable, or 10135 # (2) before a word containing "conftest.", or (3) at the end. 10136 # Note that $ac_compile itself does not contain backslashes and begins 10137 # with a dollar sign (not a hyphen), so the echo should work correctly. 10138 # The option is referenced via a variable to avoid confusing sed. 10139 lt_compile=`echo "$ac_compile" | $SED \ 10140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10142 -e 's:$: $lt_compiler_flag:'` 10143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10144 (eval "$lt_compile" 2>conftest.err) 10145 ac_status=$? 10146 cat conftest.err >&5 10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10148 if (exit $ac_status) && test -s "$ac_outfile"; then 10149 # The compiler can only warn and ignore the option if not recognized 10150 # So say no if there are warnings other than the usual output. 10151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10154 lt_cv_prog_compiler_pic_works=yes 10155 fi 10156 fi 10157 $RM conftest* 10158 10159fi 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10161$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10162 10163if test yes = "$lt_cv_prog_compiler_pic_works"; then 10164 case $lt_prog_compiler_pic in 10165 "" | " "*) ;; 10166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10167 esac 10168else 10169 lt_prog_compiler_pic= 10170 lt_prog_compiler_can_build_shared=no 10171fi 10172 10173fi 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185# 10186# Check to make sure the static flag actually works. 10187# 10188wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10190$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10191if ${lt_cv_prog_compiler_static_works+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193else 10194 lt_cv_prog_compiler_static_works=no 10195 save_LDFLAGS=$LDFLAGS 10196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10197 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10199 # The linker can only warn and ignore the option if not recognized 10200 # So say no if there are warnings 10201 if test -s conftest.err; then 10202 # Append any errors to the config.log. 10203 cat conftest.err 1>&5 10204 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10206 if diff conftest.exp conftest.er2 >/dev/null; then 10207 lt_cv_prog_compiler_static_works=yes 10208 fi 10209 else 10210 lt_cv_prog_compiler_static_works=yes 10211 fi 10212 fi 10213 $RM -r conftest* 10214 LDFLAGS=$save_LDFLAGS 10215 10216fi 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10218$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10219 10220if test yes = "$lt_cv_prog_compiler_static_works"; then 10221 : 10222else 10223 lt_prog_compiler_static= 10224fi 10225 10226 10227 10228 10229 10230 10231 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10233$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10234if ${lt_cv_prog_compiler_c_o+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 lt_cv_prog_compiler_c_o=no 10238 $RM -r conftest 2>/dev/null 10239 mkdir conftest 10240 cd conftest 10241 mkdir out 10242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10243 10244 lt_compiler_flag="-o out/conftest2.$ac_objext" 10245 # Insert the option either (1) after the last *FLAGS variable, or 10246 # (2) before a word containing "conftest.", or (3) at the end. 10247 # Note that $ac_compile itself does not contain backslashes and begins 10248 # with a dollar sign (not a hyphen), so the echo should work correctly. 10249 lt_compile=`echo "$ac_compile" | $SED \ 10250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10252 -e 's:$: $lt_compiler_flag:'` 10253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10254 (eval "$lt_compile" 2>out/conftest.err) 10255 ac_status=$? 10256 cat out/conftest.err >&5 10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10258 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10259 then 10260 # The compiler can only warn and ignore the option if not recognized 10261 # So say no if there are warnings 10262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10265 lt_cv_prog_compiler_c_o=yes 10266 fi 10267 fi 10268 chmod u+w . 2>&5 10269 $RM conftest* 10270 # SGI C++ compiler will create directory out/ii_files/ for 10271 # template instantiation 10272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10273 $RM out/* && rmdir out 10274 cd .. 10275 $RM -r conftest 10276 $RM conftest* 10277 10278fi 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10280$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10281 10282 10283 10284 10285 10286 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10288$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10289if ${lt_cv_prog_compiler_c_o+:} false; then : 10290 $as_echo_n "(cached) " >&6 10291else 10292 lt_cv_prog_compiler_c_o=no 10293 $RM -r conftest 2>/dev/null 10294 mkdir conftest 10295 cd conftest 10296 mkdir out 10297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10298 10299 lt_compiler_flag="-o out/conftest2.$ac_objext" 10300 # Insert the option either (1) after the last *FLAGS variable, or 10301 # (2) before a word containing "conftest.", or (3) at the end. 10302 # Note that $ac_compile itself does not contain backslashes and begins 10303 # with a dollar sign (not a hyphen), so the echo should work correctly. 10304 lt_compile=`echo "$ac_compile" | $SED \ 10305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10307 -e 's:$: $lt_compiler_flag:'` 10308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10309 (eval "$lt_compile" 2>out/conftest.err) 10310 ac_status=$? 10311 cat out/conftest.err >&5 10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10313 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10314 then 10315 # The compiler can only warn and ignore the option if not recognized 10316 # So say no if there are warnings 10317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10320 lt_cv_prog_compiler_c_o=yes 10321 fi 10322 fi 10323 chmod u+w . 2>&5 10324 $RM conftest* 10325 # SGI C++ compiler will create directory out/ii_files/ for 10326 # template instantiation 10327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10328 $RM out/* && rmdir out 10329 cd .. 10330 $RM -r conftest 10331 $RM conftest* 10332 10333fi 10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10335$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10336 10337 10338 10339 10340hard_links=nottested 10341if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10342 # do not overwrite the value of need_locks provided by the user 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10344$as_echo_n "checking if we can lock with hard links... " >&6; } 10345 hard_links=yes 10346 $RM conftest* 10347 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10348 touch conftest.a 10349 ln conftest.a conftest.b 2>&5 || hard_links=no 10350 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10352$as_echo "$hard_links" >&6; } 10353 if test no = "$hard_links"; then 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10355$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10356 need_locks=warn 10357 fi 10358else 10359 need_locks=no 10360fi 10361 10362 10363 10364 10365 10366 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10368$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10369 10370 runpath_var= 10371 allow_undefined_flag= 10372 always_export_symbols=no 10373 archive_cmds= 10374 archive_expsym_cmds= 10375 compiler_needs_object=no 10376 enable_shared_with_static_runtimes=no 10377 export_dynamic_flag_spec= 10378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10379 hardcode_automatic=no 10380 hardcode_direct=no 10381 hardcode_direct_absolute=no 10382 hardcode_libdir_flag_spec= 10383 hardcode_libdir_separator= 10384 hardcode_minus_L=no 10385 hardcode_shlibpath_var=unsupported 10386 inherit_rpath=no 10387 link_all_deplibs=unknown 10388 module_cmds= 10389 module_expsym_cmds= 10390 old_archive_from_new_cmds= 10391 old_archive_from_expsyms_cmds= 10392 thread_safe_flag_spec= 10393 whole_archive_flag_spec= 10394 # include_expsyms should be a list of space-separated symbols to be *always* 10395 # included in the symbol list 10396 include_expsyms= 10397 # exclude_expsyms can be an extended regexp of symbols to exclude 10398 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10399 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10400 # as well as any symbol that contains 'd'. 10401 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10402 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10403 # platforms (ab)use it in PIC code, but their linkers get confused if 10404 # the symbol is explicitly referenced. Since portable code cannot 10405 # rely on this symbol name, it's probably fine to never include it in 10406 # preloaded symbol tables. 10407 # Exclude shared library initialization/finalization symbols. 10408 extract_expsyms_cmds= 10409 10410 case $host_os in 10411 cygwin* | mingw* | pw32* | cegcc*) 10412 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10413 # When not using gcc, we currently assume that we are using 10414 # Microsoft Visual C++. 10415 if test yes != "$GCC"; then 10416 with_gnu_ld=no 10417 fi 10418 ;; 10419 interix*) 10420 # we just hope/assume this is gcc and not c89 (= MSVC++) 10421 with_gnu_ld=yes 10422 ;; 10423 openbsd* | bitrig*) 10424 with_gnu_ld=no 10425 ;; 10426 esac 10427 10428 ld_shlibs=yes 10429 10430 # On some targets, GNU ld is compatible enough with the native linker 10431 # that we're better off using the native interface for both. 10432 lt_use_gnu_ld_interface=no 10433 if test yes = "$with_gnu_ld"; then 10434 case $host_os in 10435 aix*) 10436 # The AIX port of GNU ld has always aspired to compatibility 10437 # with the native linker. However, as the warning in the GNU ld 10438 # block says, versions before 2.19.5* couldn't really create working 10439 # shared libraries, regardless of the interface used. 10440 case `$LD -v 2>&1` in 10441 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10442 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10443 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10444 *) 10445 lt_use_gnu_ld_interface=yes 10446 ;; 10447 esac 10448 ;; 10449 *) 10450 lt_use_gnu_ld_interface=yes 10451 ;; 10452 esac 10453 fi 10454 10455 if test yes = "$lt_use_gnu_ld_interface"; then 10456 # If archive_cmds runs LD, not CC, wlarc should be empty 10457 wlarc='$wl' 10458 10459 # Set some defaults for GNU ld with shared library support. These 10460 # are reset later if shared libraries are not supported. Putting them 10461 # here allows them to be overridden if necessary. 10462 runpath_var=LD_RUN_PATH 10463 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10464 export_dynamic_flag_spec='$wl--export-dynamic' 10465 # ancient GNU ld didn't support --whole-archive et. al. 10466 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10467 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10468 else 10469 whole_archive_flag_spec= 10470 fi 10471 supports_anon_versioning=no 10472 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10473 *GNU\ gold*) supports_anon_versioning=yes ;; 10474 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10475 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10476 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10477 *\ 2.11.*) ;; # other 2.11 versions 10478 *) supports_anon_versioning=yes ;; 10479 esac 10480 10481 # See if GNU ld supports shared libraries. 10482 case $host_os in 10483 aix[3-9]*) 10484 # On AIX/PPC, the GNU linker is very broken 10485 if test ia64 != "$host_cpu"; then 10486 ld_shlibs=no 10487 cat <<_LT_EOF 1>&2 10488 10489*** Warning: the GNU linker, at least up to release 2.19, is reported 10490*** to be unable to reliably create shared libraries on AIX. 10491*** Therefore, libtool is disabling shared libraries support. If you 10492*** really care for shared libraries, you may want to install binutils 10493*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10494*** You will then need to restart the configuration process. 10495 10496_LT_EOF 10497 fi 10498 ;; 10499 10500 amigaos*) 10501 case $host_cpu in 10502 powerpc) 10503 # see comment about AmigaOS4 .so support 10504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10505 archive_expsym_cmds='' 10506 ;; 10507 m68k) 10508 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)' 10509 hardcode_libdir_flag_spec='-L$libdir' 10510 hardcode_minus_L=yes 10511 ;; 10512 esac 10513 ;; 10514 10515 beos*) 10516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10517 allow_undefined_flag=unsupported 10518 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10519 # support --undefined. This deserves some investigation. FIXME 10520 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10521 else 10522 ld_shlibs=no 10523 fi 10524 ;; 10525 10526 cygwin* | mingw* | pw32* | cegcc*) 10527 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10528 # as there is no search path for DLLs. 10529 hardcode_libdir_flag_spec='-L$libdir' 10530 export_dynamic_flag_spec='$wl--export-all-symbols' 10531 allow_undefined_flag=unsupported 10532 always_export_symbols=no 10533 enable_shared_with_static_runtimes=yes 10534 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' 10535 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10536 10537 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10539 # If the export-symbols file already is a .def file, use it as 10540 # is; otherwise, prepend EXPORTS... 10541 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10542 cp $export_symbols $output_objdir/$soname.def; 10543 else 10544 echo EXPORTS > $output_objdir/$soname.def; 10545 cat $export_symbols >> $output_objdir/$soname.def; 10546 fi~ 10547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10548 else 10549 ld_shlibs=no 10550 fi 10551 ;; 10552 10553 haiku*) 10554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10555 link_all_deplibs=yes 10556 ;; 10557 10558 os2*) 10559 hardcode_libdir_flag_spec='-L$libdir' 10560 hardcode_minus_L=yes 10561 allow_undefined_flag=unsupported 10562 shrext_cmds=.dll 10563 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10564 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10565 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10566 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10567 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10568 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10569 emximp -o $lib $output_objdir/$libname.def' 10570 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10571 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10572 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10573 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10574 prefix_cmds="$SED"~ 10575 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10576 prefix_cmds="$prefix_cmds -e 1d"; 10577 fi~ 10578 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10579 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10580 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10581 emximp -o $lib $output_objdir/$libname.def' 10582 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10583 enable_shared_with_static_runtimes=yes 10584 ;; 10585 10586 interix[3-9]*) 10587 hardcode_direct=no 10588 hardcode_shlibpath_var=no 10589 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10590 export_dynamic_flag_spec='$wl-E' 10591 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10592 # Instead, shared libraries are loaded at an image base (0x10000000 by 10593 # default) and relocated if they conflict, which is a slow very memory 10594 # consuming and fragmenting process. To avoid this, we pick a random, 10595 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10596 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10598 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' 10599 ;; 10600 10601 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10602 tmp_diet=no 10603 if test linux-dietlibc = "$host_os"; then 10604 case $cc_basename in 10605 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10606 esac 10607 fi 10608 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10609 && test no = "$tmp_diet" 10610 then 10611 tmp_addflag=' $pic_flag' 10612 tmp_sharedflag='-shared' 10613 case $cc_basename,$host_cpu in 10614 pgcc*) # Portland Group C compiler 10615 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' 10616 tmp_addflag=' $pic_flag' 10617 ;; 10618 pgf77* | pgf90* | pgf95* | pgfortran*) 10619 # Portland Group f77 and f90 compilers 10620 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' 10621 tmp_addflag=' $pic_flag -Mnomain' ;; 10622 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10623 tmp_addflag=' -i_dynamic' ;; 10624 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10625 tmp_addflag=' -i_dynamic -nofor_main' ;; 10626 ifc* | ifort*) # Intel Fortran compiler 10627 tmp_addflag=' -nofor_main' ;; 10628 lf95*) # Lahey Fortran 8.1 10629 whole_archive_flag_spec= 10630 tmp_sharedflag='--shared' ;; 10631 nagfor*) # NAGFOR 5.3 10632 tmp_sharedflag='-Wl,-shared' ;; 10633 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10634 tmp_sharedflag='-qmkshrobj' 10635 tmp_addflag= ;; 10636 nvcc*) # Cuda Compiler Driver 2.2 10637 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' 10638 compiler_needs_object=yes 10639 ;; 10640 esac 10641 case `$CC -V 2>&1 | sed 5q` in 10642 *Sun\ C*) # Sun C 5.9 10643 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' 10644 compiler_needs_object=yes 10645 tmp_sharedflag='-G' ;; 10646 *Sun\ F*) # Sun Fortran 8.3 10647 tmp_sharedflag='-G' ;; 10648 esac 10649 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10650 10651 if test yes = "$supports_anon_versioning"; then 10652 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10653 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10654 echo "local: *; };" >> $output_objdir/$libname.ver~ 10655 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10656 fi 10657 10658 case $cc_basename in 10659 tcc*) 10660 export_dynamic_flag_spec='-rdynamic' 10661 ;; 10662 xlf* | bgf* | bgxlf* | mpixlf*) 10663 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10664 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10665 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10666 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10667 if test yes = "$supports_anon_versioning"; then 10668 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10670 echo "local: *; };" >> $output_objdir/$libname.ver~ 10671 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10672 fi 10673 ;; 10674 esac 10675 else 10676 ld_shlibs=no 10677 fi 10678 ;; 10679 10680 netbsd*) 10681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10682 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10683 wlarc= 10684 else 10685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10686 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10687 fi 10688 ;; 10689 10690 solaris*) 10691 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10692 ld_shlibs=no 10693 cat <<_LT_EOF 1>&2 10694 10695*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10696*** create shared libraries on Solaris systems. Therefore, libtool 10697*** is disabling shared libraries support. We urge you to upgrade GNU 10698*** binutils to release 2.9.1 or newer. Another option is to modify 10699*** your PATH or compiler configuration so that the native linker is 10700*** used, and then restart. 10701 10702_LT_EOF 10703 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10704 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10705 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10706 else 10707 ld_shlibs=no 10708 fi 10709 ;; 10710 10711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10712 case `$LD -v 2>&1` in 10713 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10714 ld_shlibs=no 10715 cat <<_LT_EOF 1>&2 10716 10717*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10718*** reliably create shared libraries on SCO systems. Therefore, libtool 10719*** is disabling shared libraries support. We urge you to upgrade GNU 10720*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10721*** your PATH or compiler configuration so that the native linker is 10722*** used, and then restart. 10723 10724_LT_EOF 10725 ;; 10726 *) 10727 # For security reasons, it is highly recommended that you always 10728 # use absolute paths for naming shared libraries, and exclude the 10729 # DT_RUNPATH tag from executables and libraries. But doing so 10730 # requires that you compile everything twice, which is a pain. 10731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10732 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10735 else 10736 ld_shlibs=no 10737 fi 10738 ;; 10739 esac 10740 ;; 10741 10742 sunos4*) 10743 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10744 wlarc= 10745 hardcode_direct=yes 10746 hardcode_shlibpath_var=no 10747 ;; 10748 10749 *) 10750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10753 else 10754 ld_shlibs=no 10755 fi 10756 ;; 10757 esac 10758 10759 if test no = "$ld_shlibs"; then 10760 runpath_var= 10761 hardcode_libdir_flag_spec= 10762 export_dynamic_flag_spec= 10763 whole_archive_flag_spec= 10764 fi 10765 else 10766 # PORTME fill in a description of your system's linker (not GNU ld) 10767 case $host_os in 10768 aix3*) 10769 allow_undefined_flag=unsupported 10770 always_export_symbols=yes 10771 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' 10772 # Note: this linker hardcodes the directories in LIBPATH if there 10773 # are no directories specified by -L. 10774 hardcode_minus_L=yes 10775 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10776 # Neither direct hardcoding nor static linking is supported with a 10777 # broken collect2. 10778 hardcode_direct=unsupported 10779 fi 10780 ;; 10781 10782 aix[4-9]*) 10783 if test ia64 = "$host_cpu"; then 10784 # On IA64, the linker does run time linking by default, so we don't 10785 # have to do anything special. 10786 aix_use_runtimelinking=no 10787 exp_sym_flag='-Bexport' 10788 no_entry_flag= 10789 else 10790 # If we're using GNU nm, then we don't want the "-C" option. 10791 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10792 # Without the "-l" option, or with the "-B" option, AIX nm treats 10793 # weak defined symbols like other global defined symbols, whereas 10794 # GNU nm marks them as "W". 10795 # While the 'weak' keyword is ignored in the Export File, we need 10796 # it in the Import File for the 'aix-soname' feature, so we have 10797 # to replace the "-B" option with "-P" for AIX nm. 10798 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10799 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' 10800 else 10801 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' 10802 fi 10803 aix_use_runtimelinking=no 10804 10805 # Test if we are trying to use run time linking or normal 10806 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10807 # have runtime linking enabled, and use it for executables. 10808 # For shared libraries, we enable/disable runtime linking 10809 # depending on the kind of the shared library created - 10810 # when "with_aix_soname,aix_use_runtimelinking" is: 10811 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10812 # "aix,yes" lib.so shared, rtl:yes, for executables 10813 # lib.a static archive 10814 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10815 # lib.a(lib.so.V) shared, rtl:no, for executables 10816 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10817 # lib.a(lib.so.V) shared, rtl:no 10818 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10819 # lib.a static archive 10820 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10821 for ld_flag in $LDFLAGS; do 10822 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10823 aix_use_runtimelinking=yes 10824 break 10825 fi 10826 done 10827 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10828 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10829 # so we don't have lib.a shared libs to link our executables. 10830 # We have to force runtime linking in this case. 10831 aix_use_runtimelinking=yes 10832 LDFLAGS="$LDFLAGS -Wl,-brtl" 10833 fi 10834 ;; 10835 esac 10836 10837 exp_sym_flag='-bexport' 10838 no_entry_flag='-bnoentry' 10839 fi 10840 10841 # When large executables or shared objects are built, AIX ld can 10842 # have problems creating the table of contents. If linking a library 10843 # or program results in "error TOC overflow" add -mminimal-toc to 10844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10846 10847 archive_cmds='' 10848 hardcode_direct=yes 10849 hardcode_direct_absolute=yes 10850 hardcode_libdir_separator=':' 10851 link_all_deplibs=yes 10852 file_list_spec='$wl-f,' 10853 case $with_aix_soname,$aix_use_runtimelinking in 10854 aix,*) ;; # traditional, no import file 10855 svr4,* | *,yes) # use import file 10856 # The Import File defines what to hardcode. 10857 hardcode_direct=no 10858 hardcode_direct_absolute=no 10859 ;; 10860 esac 10861 10862 if test yes = "$GCC"; then 10863 case $host_os in aix4.[012]|aix4.[012].*) 10864 # We only want to do this on AIX 4.2 and lower, the check 10865 # below for broken collect2 doesn't work under 4.3+ 10866 collect2name=`$CC -print-prog-name=collect2` 10867 if test -f "$collect2name" && 10868 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10869 then 10870 # We have reworked collect2 10871 : 10872 else 10873 # We have old collect2 10874 hardcode_direct=unsupported 10875 # It fails to find uninstalled libraries when the uninstalled 10876 # path is not listed in the libpath. Setting hardcode_minus_L 10877 # to unsupported forces relinking 10878 hardcode_minus_L=yes 10879 hardcode_libdir_flag_spec='-L$libdir' 10880 hardcode_libdir_separator= 10881 fi 10882 ;; 10883 esac 10884 shared_flag='-shared' 10885 if test yes = "$aix_use_runtimelinking"; then 10886 shared_flag="$shared_flag "'$wl-G' 10887 fi 10888 # Need to ensure runtime linking is disabled for the traditional 10889 # shared library, or the linker may eventually find shared libraries 10890 # /with/ Import File - we do not want to mix them. 10891 shared_flag_aix='-shared' 10892 shared_flag_svr4='-shared $wl-G' 10893 else 10894 # not using gcc 10895 if test ia64 = "$host_cpu"; then 10896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10897 # chokes on -Wl,-G. The following line is correct: 10898 shared_flag='-G' 10899 else 10900 if test yes = "$aix_use_runtimelinking"; then 10901 shared_flag='$wl-G' 10902 else 10903 shared_flag='$wl-bM:SRE' 10904 fi 10905 shared_flag_aix='$wl-bM:SRE' 10906 shared_flag_svr4='$wl-G' 10907 fi 10908 fi 10909 10910 export_dynamic_flag_spec='$wl-bexpall' 10911 # It seems that -bexpall does not export symbols beginning with 10912 # underscore (_), so it is better to generate a list of symbols to export. 10913 always_export_symbols=yes 10914 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10915 # Warning - without using the other runtime loading flags (-brtl), 10916 # -berok will link without error, but may produce a broken library. 10917 allow_undefined_flag='-berok' 10918 # Determine the default libpath from the value encoded in an 10919 # empty executable. 10920 if test set = "${lt_cv_aix_libpath+set}"; then 10921 aix_libpath=$lt_cv_aix_libpath 10922else 10923 if ${lt_cv_aix_libpath_+:} false; then : 10924 $as_echo_n "(cached) " >&6 10925else 10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10927/* end confdefs.h. */ 10928 10929int 10930main () 10931{ 10932 10933 ; 10934 return 0; 10935} 10936_ACEOF 10937if ac_fn_c_try_link "$LINENO"; then : 10938 10939 lt_aix_libpath_sed=' 10940 /Import File Strings/,/^$/ { 10941 /^0/ { 10942 s/^0 *\([^ ]*\) *$/\1/ 10943 p 10944 } 10945 }' 10946 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10947 # Check for a 64-bit object if we didn't find anything. 10948 if test -z "$lt_cv_aix_libpath_"; then 10949 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10950 fi 10951fi 10952rm -f core conftest.err conftest.$ac_objext \ 10953 conftest$ac_exeext conftest.$ac_ext 10954 if test -z "$lt_cv_aix_libpath_"; then 10955 lt_cv_aix_libpath_=/usr/lib:/lib 10956 fi 10957 10958fi 10959 10960 aix_libpath=$lt_cv_aix_libpath_ 10961fi 10962 10963 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10964 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 10965 else 10966 if test ia64 = "$host_cpu"; then 10967 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10968 allow_undefined_flag="-z nodefs" 10969 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" 10970 else 10971 # Determine the default libpath from the value encoded in an 10972 # empty executable. 10973 if test set = "${lt_cv_aix_libpath+set}"; then 10974 aix_libpath=$lt_cv_aix_libpath 10975else 10976 if ${lt_cv_aix_libpath_+:} false; then : 10977 $as_echo_n "(cached) " >&6 10978else 10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10980/* end confdefs.h. */ 10981 10982int 10983main () 10984{ 10985 10986 ; 10987 return 0; 10988} 10989_ACEOF 10990if ac_fn_c_try_link "$LINENO"; then : 10991 10992 lt_aix_libpath_sed=' 10993 /Import File Strings/,/^$/ { 10994 /^0/ { 10995 s/^0 *\([^ ]*\) *$/\1/ 10996 p 10997 } 10998 }' 10999 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11000 # Check for a 64-bit object if we didn't find anything. 11001 if test -z "$lt_cv_aix_libpath_"; then 11002 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11003 fi 11004fi 11005rm -f core conftest.err conftest.$ac_objext \ 11006 conftest$ac_exeext conftest.$ac_ext 11007 if test -z "$lt_cv_aix_libpath_"; then 11008 lt_cv_aix_libpath_=/usr/lib:/lib 11009 fi 11010 11011fi 11012 11013 aix_libpath=$lt_cv_aix_libpath_ 11014fi 11015 11016 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11017 # Warning - without using the other run time loading flags, 11018 # -berok will link without error, but may produce a broken library. 11019 no_undefined_flag=' $wl-bernotok' 11020 allow_undefined_flag=' $wl-berok' 11021 if test yes = "$with_gnu_ld"; then 11022 # We only use this code for GNU lds that support --whole-archive. 11023 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11024 else 11025 # Exported symbols can be pulled into shared objects from archives 11026 whole_archive_flag_spec='$convenience' 11027 fi 11028 archive_cmds_need_lc=yes 11029 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11030 # -brtl affects multiple linker settings, -berok does not and is overridden later 11031 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11032 if test svr4 != "$with_aix_soname"; then 11033 # This is similar to how AIX traditionally builds its shared libraries. 11034 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' 11035 fi 11036 if test aix != "$with_aix_soname"; then 11037 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' 11038 else 11039 # used by -dlpreopen to get the symbols 11040 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11041 fi 11042 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11043 fi 11044 fi 11045 ;; 11046 11047 amigaos*) 11048 case $host_cpu in 11049 powerpc) 11050 # see comment about AmigaOS4 .so support 11051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11052 archive_expsym_cmds='' 11053 ;; 11054 m68k) 11055 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)' 11056 hardcode_libdir_flag_spec='-L$libdir' 11057 hardcode_minus_L=yes 11058 ;; 11059 esac 11060 ;; 11061 11062 bsdi[45]*) 11063 export_dynamic_flag_spec=-rdynamic 11064 ;; 11065 11066 cygwin* | mingw* | pw32* | cegcc*) 11067 # When not using gcc, we currently assume that we are using 11068 # Microsoft Visual C++. 11069 # hardcode_libdir_flag_spec is actually meaningless, as there is 11070 # no search path for DLLs. 11071 case $cc_basename in 11072 cl*) 11073 # Native MSVC 11074 hardcode_libdir_flag_spec=' ' 11075 allow_undefined_flag=unsupported 11076 always_export_symbols=yes 11077 file_list_spec='@' 11078 # Tell ltmain to make .lib files, not .a files. 11079 libext=lib 11080 # Tell ltmain to make .dll files, not .so files. 11081 shrext_cmds=.dll 11082 # FIXME: Setting linknames here is a bad hack. 11083 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11084 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11085 cp "$export_symbols" "$output_objdir/$soname.def"; 11086 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11087 else 11088 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11089 fi~ 11090 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11091 linknames=' 11092 # The linker will not automatically build a static lib if we build a DLL. 11093 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11094 enable_shared_with_static_runtimes=yes 11095 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11097 # Don't use ranlib 11098 old_postinstall_cmds='chmod 644 $oldlib' 11099 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11100 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11101 case $lt_outputfile in 11102 *.exe|*.EXE) ;; 11103 *) 11104 lt_outputfile=$lt_outputfile.exe 11105 lt_tool_outputfile=$lt_tool_outputfile.exe 11106 ;; 11107 esac~ 11108 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11109 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11110 $RM "$lt_outputfile.manifest"; 11111 fi' 11112 ;; 11113 *) 11114 # Assume MSVC wrapper 11115 hardcode_libdir_flag_spec=' ' 11116 allow_undefined_flag=unsupported 11117 # Tell ltmain to make .lib files, not .a files. 11118 libext=lib 11119 # Tell ltmain to make .dll files, not .so files. 11120 shrext_cmds=.dll 11121 # FIXME: Setting linknames here is a bad hack. 11122 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11123 # The linker will automatically build a .lib file if we build a DLL. 11124 old_archive_from_new_cmds='true' 11125 # FIXME: Should let the user specify the lib program. 11126 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11127 enable_shared_with_static_runtimes=yes 11128 ;; 11129 esac 11130 ;; 11131 11132 darwin* | rhapsody*) 11133 11134 11135 archive_cmds_need_lc=no 11136 hardcode_direct=no 11137 hardcode_automatic=yes 11138 hardcode_shlibpath_var=unsupported 11139 if test yes = "$lt_cv_ld_force_load"; then 11140 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\"`' 11141 11142 else 11143 whole_archive_flag_spec='' 11144 fi 11145 link_all_deplibs=yes 11146 allow_undefined_flag=$_lt_dar_allow_undefined 11147 case $cc_basename in 11148 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11149 *) _lt_dar_can_shared=$GCC ;; 11150 esac 11151 if test yes = "$_lt_dar_can_shared"; then 11152 output_verbose_link_cmd=func_echo_all 11153 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11154 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11155 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" 11156 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" 11157 11158 else 11159 ld_shlibs=no 11160 fi 11161 11162 ;; 11163 11164 dgux*) 11165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11166 hardcode_libdir_flag_spec='-L$libdir' 11167 hardcode_shlibpath_var=no 11168 ;; 11169 11170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11171 # support. Future versions do this automatically, but an explicit c++rt0.o 11172 # does not break anything, and helps significantly (at the cost of a little 11173 # extra space). 11174 freebsd2.2*) 11175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11176 hardcode_libdir_flag_spec='-R$libdir' 11177 hardcode_direct=yes 11178 hardcode_shlibpath_var=no 11179 ;; 11180 11181 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11182 freebsd2.*) 11183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11184 hardcode_direct=yes 11185 hardcode_minus_L=yes 11186 hardcode_shlibpath_var=no 11187 ;; 11188 11189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11190 freebsd* | dragonfly*) 11191 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11192 hardcode_libdir_flag_spec='-R$libdir' 11193 hardcode_direct=yes 11194 hardcode_shlibpath_var=no 11195 ;; 11196 11197 hpux9*) 11198 if test yes = "$GCC"; then 11199 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' 11200 else 11201 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' 11202 fi 11203 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11204 hardcode_libdir_separator=: 11205 hardcode_direct=yes 11206 11207 # hardcode_minus_L: Not really in the search PATH, 11208 # but as the default location of the library. 11209 hardcode_minus_L=yes 11210 export_dynamic_flag_spec='$wl-E' 11211 ;; 11212 11213 hpux10*) 11214 if test yes,no = "$GCC,$with_gnu_ld"; then 11215 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11216 else 11217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11218 fi 11219 if test no = "$with_gnu_ld"; then 11220 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11221 hardcode_libdir_separator=: 11222 hardcode_direct=yes 11223 hardcode_direct_absolute=yes 11224 export_dynamic_flag_spec='$wl-E' 11225 # hardcode_minus_L: Not really in the search PATH, 11226 # but as the default location of the library. 11227 hardcode_minus_L=yes 11228 fi 11229 ;; 11230 11231 hpux11*) 11232 if test yes,no = "$GCC,$with_gnu_ld"; then 11233 case $host_cpu in 11234 hppa*64*) 11235 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11236 ;; 11237 ia64*) 11238 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11239 ;; 11240 *) 11241 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11242 ;; 11243 esac 11244 else 11245 case $host_cpu in 11246 hppa*64*) 11247 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11248 ;; 11249 ia64*) 11250 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11251 ;; 11252 *) 11253 11254 # Older versions of the 11.00 compiler do not understand -b yet 11255 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11257$as_echo_n "checking if $CC understands -b... " >&6; } 11258if ${lt_cv_prog_compiler__b+:} false; then : 11259 $as_echo_n "(cached) " >&6 11260else 11261 lt_cv_prog_compiler__b=no 11262 save_LDFLAGS=$LDFLAGS 11263 LDFLAGS="$LDFLAGS -b" 11264 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11265 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11266 # The linker can only warn and ignore the option if not recognized 11267 # So say no if there are warnings 11268 if test -s conftest.err; then 11269 # Append any errors to the config.log. 11270 cat conftest.err 1>&5 11271 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11273 if diff conftest.exp conftest.er2 >/dev/null; then 11274 lt_cv_prog_compiler__b=yes 11275 fi 11276 else 11277 lt_cv_prog_compiler__b=yes 11278 fi 11279 fi 11280 $RM -r conftest* 11281 LDFLAGS=$save_LDFLAGS 11282 11283fi 11284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11285$as_echo "$lt_cv_prog_compiler__b" >&6; } 11286 11287if test yes = "$lt_cv_prog_compiler__b"; then 11288 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11289else 11290 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11291fi 11292 11293 ;; 11294 esac 11295 fi 11296 if test no = "$with_gnu_ld"; then 11297 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11298 hardcode_libdir_separator=: 11299 11300 case $host_cpu in 11301 hppa*64*|ia64*) 11302 hardcode_direct=no 11303 hardcode_shlibpath_var=no 11304 ;; 11305 *) 11306 hardcode_direct=yes 11307 hardcode_direct_absolute=yes 11308 export_dynamic_flag_spec='$wl-E' 11309 11310 # hardcode_minus_L: Not really in the search PATH, 11311 # but as the default location of the library. 11312 hardcode_minus_L=yes 11313 ;; 11314 esac 11315 fi 11316 ;; 11317 11318 irix5* | irix6* | nonstopux*) 11319 if test yes = "$GCC"; then 11320 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' 11321 # Try to use the -exported_symbol ld option, if it does not 11322 # work, assume that -exports_file does not work either and 11323 # implicitly export all symbols. 11324 # This should be the same for all languages, so no per-tag cache variable. 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11326$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11327if ${lt_cv_irix_exported_symbol+:} false; then : 11328 $as_echo_n "(cached) " >&6 11329else 11330 save_LDFLAGS=$LDFLAGS 11331 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11333/* end confdefs.h. */ 11334int foo (void) { return 0; } 11335_ACEOF 11336if ac_fn_c_try_link "$LINENO"; then : 11337 lt_cv_irix_exported_symbol=yes 11338else 11339 lt_cv_irix_exported_symbol=no 11340fi 11341rm -f core conftest.err conftest.$ac_objext \ 11342 conftest$ac_exeext conftest.$ac_ext 11343 LDFLAGS=$save_LDFLAGS 11344fi 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11346$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11347 if test yes = "$lt_cv_irix_exported_symbol"; then 11348 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' 11349 fi 11350 else 11351 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' 11352 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' 11353 fi 11354 archive_cmds_need_lc='no' 11355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11356 hardcode_libdir_separator=: 11357 inherit_rpath=yes 11358 link_all_deplibs=yes 11359 ;; 11360 11361 linux*) 11362 case $cc_basename in 11363 tcc*) 11364 # Fabrice Bellard et al's Tiny C Compiler 11365 ld_shlibs=yes 11366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11367 ;; 11368 esac 11369 ;; 11370 11371 netbsd*) 11372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11374 else 11375 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11376 fi 11377 hardcode_libdir_flag_spec='-R$libdir' 11378 hardcode_direct=yes 11379 hardcode_shlibpath_var=no 11380 ;; 11381 11382 newsos6) 11383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11384 hardcode_direct=yes 11385 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11386 hardcode_libdir_separator=: 11387 hardcode_shlibpath_var=no 11388 ;; 11389 11390 *nto* | *qnx*) 11391 ;; 11392 11393 openbsd* | bitrig*) 11394 if test -f /usr/libexec/ld.so; then 11395 hardcode_direct=yes 11396 hardcode_shlibpath_var=no 11397 hardcode_direct_absolute=yes 11398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11400 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11401 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11402 export_dynamic_flag_spec='$wl-E' 11403 else 11404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11405 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11406 fi 11407 else 11408 ld_shlibs=no 11409 fi 11410 ;; 11411 11412 os2*) 11413 hardcode_libdir_flag_spec='-L$libdir' 11414 hardcode_minus_L=yes 11415 allow_undefined_flag=unsupported 11416 shrext_cmds=.dll 11417 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11420 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11421 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11422 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11423 emximp -o $lib $output_objdir/$libname.def' 11424 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11425 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11426 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11427 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11428 prefix_cmds="$SED"~ 11429 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11430 prefix_cmds="$prefix_cmds -e 1d"; 11431 fi~ 11432 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11433 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11434 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11435 emximp -o $lib $output_objdir/$libname.def' 11436 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11437 enable_shared_with_static_runtimes=yes 11438 ;; 11439 11440 osf3*) 11441 if test yes = "$GCC"; then 11442 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11443 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' 11444 else 11445 allow_undefined_flag=' -expect_unresolved \*' 11446 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' 11447 fi 11448 archive_cmds_need_lc='no' 11449 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11450 hardcode_libdir_separator=: 11451 ;; 11452 11453 osf4* | osf5*) # as osf3* with the addition of -msym flag 11454 if test yes = "$GCC"; then 11455 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11456 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' 11457 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11458 else 11459 allow_undefined_flag=' -expect_unresolved \*' 11460 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' 11461 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~ 11462 $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' 11463 11464 # Both c and cxx compiler support -rpath directly 11465 hardcode_libdir_flag_spec='-rpath $libdir' 11466 fi 11467 archive_cmds_need_lc='no' 11468 hardcode_libdir_separator=: 11469 ;; 11470 11471 solaris*) 11472 no_undefined_flag=' -z defs' 11473 if test yes = "$GCC"; then 11474 wlarc='$wl' 11475 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11477 $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' 11478 else 11479 case `$CC -V 2>&1` in 11480 *"Compilers 5.0"*) 11481 wlarc='' 11482 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11484 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11485 ;; 11486 *) 11487 wlarc='$wl' 11488 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11490 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11491 ;; 11492 esac 11493 fi 11494 hardcode_libdir_flag_spec='-R$libdir' 11495 hardcode_shlibpath_var=no 11496 case $host_os in 11497 solaris2.[0-5] | solaris2.[0-5].*) ;; 11498 *) 11499 # The compiler driver will combine and reorder linker options, 11500 # but understands '-z linker_flag'. GCC discards it without '$wl', 11501 # but is careful enough not to reorder. 11502 # Supported since Solaris 2.6 (maybe 2.5.1?) 11503 if test yes = "$GCC"; then 11504 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11505 else 11506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11507 fi 11508 ;; 11509 esac 11510 link_all_deplibs=yes 11511 ;; 11512 11513 sunos4*) 11514 if test sequent = "$host_vendor"; then 11515 # Use $CC to link under sequent, because it throws in some extra .o 11516 # files that make .init and .fini sections work. 11517 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11518 else 11519 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11520 fi 11521 hardcode_libdir_flag_spec='-L$libdir' 11522 hardcode_direct=yes 11523 hardcode_minus_L=yes 11524 hardcode_shlibpath_var=no 11525 ;; 11526 11527 sysv4) 11528 case $host_vendor in 11529 sni) 11530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11531 hardcode_direct=yes # is this really true??? 11532 ;; 11533 siemens) 11534 ## LD is ld it makes a PLAMLIB 11535 ## CC just makes a GrossModule. 11536 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11537 reload_cmds='$CC -r -o $output$reload_objs' 11538 hardcode_direct=no 11539 ;; 11540 motorola) 11541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11542 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11543 ;; 11544 esac 11545 runpath_var='LD_RUN_PATH' 11546 hardcode_shlibpath_var=no 11547 ;; 11548 11549 sysv4.3*) 11550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11551 hardcode_shlibpath_var=no 11552 export_dynamic_flag_spec='-Bexport' 11553 ;; 11554 11555 sysv4*MP*) 11556 if test -d /usr/nec; then 11557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11558 hardcode_shlibpath_var=no 11559 runpath_var=LD_RUN_PATH 11560 hardcode_runpath_var=yes 11561 ld_shlibs=yes 11562 fi 11563 ;; 11564 11565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11566 no_undefined_flag='$wl-z,text' 11567 archive_cmds_need_lc=no 11568 hardcode_shlibpath_var=no 11569 runpath_var='LD_RUN_PATH' 11570 11571 if test yes = "$GCC"; then 11572 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11573 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11574 else 11575 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11576 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11577 fi 11578 ;; 11579 11580 sysv5* | sco3.2v5* | sco5v6*) 11581 # Note: We CANNOT use -z defs as we might desire, because we do not 11582 # link with -lc, and that would cause any symbols used from libc to 11583 # always be unresolved, which means just about no library would 11584 # ever link correctly. If we're not using GNU ld we use -z text 11585 # though, which does catch some bad symbols but isn't as heavy-handed 11586 # as -z defs. 11587 no_undefined_flag='$wl-z,text' 11588 allow_undefined_flag='$wl-z,nodefs' 11589 archive_cmds_need_lc=no 11590 hardcode_shlibpath_var=no 11591 hardcode_libdir_flag_spec='$wl-R,$libdir' 11592 hardcode_libdir_separator=':' 11593 link_all_deplibs=yes 11594 export_dynamic_flag_spec='$wl-Bexport' 11595 runpath_var='LD_RUN_PATH' 11596 11597 if test yes = "$GCC"; then 11598 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11599 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11600 else 11601 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11602 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11603 fi 11604 ;; 11605 11606 uts4*) 11607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11608 hardcode_libdir_flag_spec='-L$libdir' 11609 hardcode_shlibpath_var=no 11610 ;; 11611 11612 *) 11613 ld_shlibs=no 11614 ;; 11615 esac 11616 11617 if test sni = "$host_vendor"; then 11618 case $host in 11619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11620 export_dynamic_flag_spec='$wl-Blargedynsym' 11621 ;; 11622 esac 11623 fi 11624 fi 11625 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11627$as_echo "$ld_shlibs" >&6; } 11628test no = "$ld_shlibs" && can_build_shared=no 11629 11630with_gnu_ld=$with_gnu_ld 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646# 11647# Do we need to explicitly link libc? 11648# 11649case "x$archive_cmds_need_lc" in 11650x|xyes) 11651 # Assume -lc should be added 11652 archive_cmds_need_lc=yes 11653 11654 if test yes,yes = "$GCC,$enable_shared"; then 11655 case $archive_cmds in 11656 *'~'*) 11657 # FIXME: we may have to deal with multi-command sequences. 11658 ;; 11659 '$CC '*) 11660 # Test whether the compiler implicitly links with -lc since on some 11661 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11662 # to ld, don't add -lc before -lgcc. 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11664$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11665if ${lt_cv_archive_cmds_need_lc+:} false; then : 11666 $as_echo_n "(cached) " >&6 11667else 11668 $RM conftest* 11669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11670 11671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11672 (eval $ac_compile) 2>&5 11673 ac_status=$? 11674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11675 test $ac_status = 0; } 2>conftest.err; then 11676 soname=conftest 11677 lib=conftest 11678 libobjs=conftest.$ac_objext 11679 deplibs= 11680 wl=$lt_prog_compiler_wl 11681 pic_flag=$lt_prog_compiler_pic 11682 compiler_flags=-v 11683 linker_flags=-v 11684 verstring= 11685 output_objdir=. 11686 libname=conftest 11687 lt_save_allow_undefined_flag=$allow_undefined_flag 11688 allow_undefined_flag= 11689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11690 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11691 ac_status=$? 11692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11693 test $ac_status = 0; } 11694 then 11695 lt_cv_archive_cmds_need_lc=no 11696 else 11697 lt_cv_archive_cmds_need_lc=yes 11698 fi 11699 allow_undefined_flag=$lt_save_allow_undefined_flag 11700 else 11701 cat conftest.err 1>&5 11702 fi 11703 $RM conftest* 11704 11705fi 11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11707$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11708 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11709 ;; 11710 esac 11711 fi 11712 ;; 11713esac 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11867$as_echo_n "checking dynamic linker characteristics... " >&6; } 11868 11869if test yes = "$GCC"; then 11870 case $host_os in 11871 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11872 *) lt_awk_arg='/^libraries:/' ;; 11873 esac 11874 case $host_os in 11875 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11876 *) lt_sed_strip_eq='s|=/|/|g' ;; 11877 esac 11878 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11879 case $lt_search_path_spec in 11880 *\;*) 11881 # if the path contains ";" then we assume it to be the separator 11882 # otherwise default to the standard path separator (i.e. ":") - it is 11883 # assumed that no part of a normal pathname contains ";" but that should 11884 # okay in the real world where ";" in dirpaths is itself problematic. 11885 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11886 ;; 11887 *) 11888 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11889 ;; 11890 esac 11891 # Ok, now we have the path, separated by spaces, we can step through it 11892 # and add multilib dir if necessary... 11893 lt_tmp_lt_search_path_spec= 11894 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11895 # ...but if some path component already ends with the multilib dir we assume 11896 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11897 case "$lt_multi_os_dir; $lt_search_path_spec " in 11898 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11899 lt_multi_os_dir= 11900 ;; 11901 esac 11902 for lt_sys_path in $lt_search_path_spec; do 11903 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11904 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11905 elif test -n "$lt_multi_os_dir"; then 11906 test -d "$lt_sys_path" && \ 11907 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11908 fi 11909 done 11910 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11911BEGIN {RS = " "; FS = "/|\n";} { 11912 lt_foo = ""; 11913 lt_count = 0; 11914 for (lt_i = NF; lt_i > 0; lt_i--) { 11915 if ($lt_i != "" && $lt_i != ".") { 11916 if ($lt_i == "..") { 11917 lt_count++; 11918 } else { 11919 if (lt_count == 0) { 11920 lt_foo = "/" $lt_i lt_foo; 11921 } else { 11922 lt_count--; 11923 } 11924 } 11925 } 11926 } 11927 if (lt_foo != "") { lt_freq[lt_foo]++; } 11928 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11929}'` 11930 # AWK program above erroneously prepends '/' to C:/dos/paths 11931 # for these hosts. 11932 case $host_os in 11933 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11934 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11935 esac 11936 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11937else 11938 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11939fi 11940library_names_spec= 11941libname_spec='lib$name' 11942soname_spec= 11943shrext_cmds=.so 11944postinstall_cmds= 11945postuninstall_cmds= 11946finish_cmds= 11947finish_eval= 11948shlibpath_var= 11949shlibpath_overrides_runpath=unknown 11950version_type=none 11951dynamic_linker="$host_os ld.so" 11952sys_lib_dlsearch_path_spec="/lib /usr/lib" 11953need_lib_prefix=unknown 11954hardcode_into_libs=no 11955 11956# when you set need_version to no, make sure it does not cause -set_version 11957# flags to be left without arguments 11958need_version=unknown 11959 11960 11961 11962case $host_os in 11963aix3*) 11964 version_type=linux # correct to gnu/linux during the next big refactor 11965 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11966 shlibpath_var=LIBPATH 11967 11968 # AIX 3 has no versioning support, so we append a major version to the name. 11969 soname_spec='$libname$release$shared_ext$major' 11970 ;; 11971 11972aix[4-9]*) 11973 version_type=linux # correct to gnu/linux during the next big refactor 11974 need_lib_prefix=no 11975 need_version=no 11976 hardcode_into_libs=yes 11977 if test ia64 = "$host_cpu"; then 11978 # AIX 5 supports IA64 11979 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11980 shlibpath_var=LD_LIBRARY_PATH 11981 else 11982 # With GCC up to 2.95.x, collect2 would create an import file 11983 # for dependence libraries. The import file would start with 11984 # the line '#! .'. This would cause the generated library to 11985 # depend on '.', always an invalid library. This was fixed in 11986 # development snapshots of GCC prior to 3.0. 11987 case $host_os in 11988 aix4 | aix4.[01] | aix4.[01].*) 11989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11990 echo ' yes ' 11991 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11992 : 11993 else 11994 can_build_shared=no 11995 fi 11996 ;; 11997 esac 11998 # Using Import Files as archive members, it is possible to support 11999 # filename-based versioning of shared library archives on AIX. While 12000 # this would work for both with and without runtime linking, it will 12001 # prevent static linking of such archives. So we do filename-based 12002 # shared library versioning with .so extension only, which is used 12003 # when both runtime linking and shared linking is enabled. 12004 # Unfortunately, runtime linking may impact performance, so we do 12005 # not want this to be the default eventually. Also, we use the 12006 # versioned .so libs for executables only if there is the -brtl 12007 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12008 # To allow for filename-based versioning support, we need to create 12009 # libNAME.so.V as an archive file, containing: 12010 # *) an Import File, referring to the versioned filename of the 12011 # archive as well as the shared archive member, telling the 12012 # bitwidth (32 or 64) of that shared object, and providing the 12013 # list of exported symbols of that shared object, eventually 12014 # decorated with the 'weak' keyword 12015 # *) the shared object with the F_LOADONLY flag set, to really avoid 12016 # it being seen by the linker. 12017 # At run time we better use the real file rather than another symlink, 12018 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12019 12020 case $with_aix_soname,$aix_use_runtimelinking in 12021 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12022 # soname into executable. Probably we can add versioning support to 12023 # collect2, so additional links can be useful in future. 12024 aix,yes) # traditional libtool 12025 dynamic_linker='AIX unversionable lib.so' 12026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12027 # instead of lib<name>.a to let people know that these are not 12028 # typical AIX shared libraries. 12029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12030 ;; 12031 aix,no) # traditional AIX only 12032 dynamic_linker='AIX lib.a(lib.so.V)' 12033 # We preserve .a as extension for shared libraries through AIX4.2 12034 # and later when we are not doing run time linking. 12035 library_names_spec='$libname$release.a $libname.a' 12036 soname_spec='$libname$release$shared_ext$major' 12037 ;; 12038 svr4,*) # full svr4 only 12039 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12040 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12041 # We do not specify a path in Import Files, so LIBPATH fires. 12042 shlibpath_overrides_runpath=yes 12043 ;; 12044 *,yes) # both, prefer svr4 12045 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12046 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12047 # unpreferred sharedlib libNAME.a needs extra handling 12048 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"' 12049 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"' 12050 # We do not specify a path in Import Files, so LIBPATH fires. 12051 shlibpath_overrides_runpath=yes 12052 ;; 12053 *,no) # both, prefer aix 12054 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12055 library_names_spec='$libname$release.a $libname.a' 12056 soname_spec='$libname$release$shared_ext$major' 12057 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12058 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)' 12059 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"' 12060 ;; 12061 esac 12062 shlibpath_var=LIBPATH 12063 fi 12064 ;; 12065 12066amigaos*) 12067 case $host_cpu in 12068 powerpc) 12069 # Since July 2007 AmigaOS4 officially supports .so libraries. 12070 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12072 ;; 12073 m68k) 12074 library_names_spec='$libname.ixlibrary $libname.a' 12075 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12076 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' 12077 ;; 12078 esac 12079 ;; 12080 12081beos*) 12082 library_names_spec='$libname$shared_ext' 12083 dynamic_linker="$host_os ld.so" 12084 shlibpath_var=LIBRARY_PATH 12085 ;; 12086 12087bsdi[45]*) 12088 version_type=linux # correct to gnu/linux during the next big refactor 12089 need_version=no 12090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12091 soname_spec='$libname$release$shared_ext$major' 12092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12093 shlibpath_var=LD_LIBRARY_PATH 12094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12096 # the default ld.so.conf also contains /usr/contrib/lib and 12097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12098 # libtool to hard-code these into programs 12099 ;; 12100 12101cygwin* | mingw* | pw32* | cegcc*) 12102 version_type=windows 12103 shrext_cmds=.dll 12104 need_version=no 12105 need_lib_prefix=no 12106 12107 case $GCC,$cc_basename in 12108 yes,*) 12109 # gcc 12110 library_names_spec='$libname.dll.a' 12111 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12112 postinstall_cmds='base_file=`basename \$file`~ 12113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12114 dldir=$destdir/`dirname \$dlpath`~ 12115 test -d \$dldir || mkdir -p \$dldir~ 12116 $install_prog $dir/$dlname \$dldir/$dlname~ 12117 chmod a+x \$dldir/$dlname~ 12118 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12119 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12120 fi' 12121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12122 dlpath=$dir/\$dldll~ 12123 $RM \$dlpath' 12124 shlibpath_overrides_runpath=yes 12125 12126 case $host_os in 12127 cygwin*) 12128 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12129 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12130 12131 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12132 ;; 12133 mingw* | cegcc*) 12134 # MinGW DLLs use traditional 'lib' prefix 12135 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12136 ;; 12137 pw32*) 12138 # pw32 DLLs use 'pw' prefix rather than 'lib' 12139 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12140 ;; 12141 esac 12142 dynamic_linker='Win32 ld.exe' 12143 ;; 12144 12145 *,cl*) 12146 # Native MSVC 12147 libname_spec='$name' 12148 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12149 library_names_spec='$libname.dll.lib' 12150 12151 case $build_os in 12152 mingw*) 12153 sys_lib_search_path_spec= 12154 lt_save_ifs=$IFS 12155 IFS=';' 12156 for lt_path in $LIB 12157 do 12158 IFS=$lt_save_ifs 12159 # Let DOS variable expansion print the short 8.3 style file name. 12160 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12161 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12162 done 12163 IFS=$lt_save_ifs 12164 # Convert to MSYS style. 12165 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12166 ;; 12167 cygwin*) 12168 # Convert to unix form, then to dos form, then back to unix form 12169 # but this time dos style (no spaces!) so that the unix form looks 12170 # like /cygdrive/c/PROGRA~1:/cygdr... 12171 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12172 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12173 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12174 ;; 12175 *) 12176 sys_lib_search_path_spec=$LIB 12177 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12178 # It is most probably a Windows format PATH. 12179 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12180 else 12181 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12182 fi 12183 # FIXME: find the short name or the path components, as spaces are 12184 # common. (e.g. "Program Files" -> "PROGRA~1") 12185 ;; 12186 esac 12187 12188 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12189 postinstall_cmds='base_file=`basename \$file`~ 12190 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12191 dldir=$destdir/`dirname \$dlpath`~ 12192 test -d \$dldir || mkdir -p \$dldir~ 12193 $install_prog $dir/$dlname \$dldir/$dlname' 12194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12195 dlpath=$dir/\$dldll~ 12196 $RM \$dlpath' 12197 shlibpath_overrides_runpath=yes 12198 dynamic_linker='Win32 link.exe' 12199 ;; 12200 12201 *) 12202 # Assume MSVC wrapper 12203 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12204 dynamic_linker='Win32 ld.exe' 12205 ;; 12206 esac 12207 # FIXME: first we should search . and the directory the executable is in 12208 shlibpath_var=PATH 12209 ;; 12210 12211darwin* | rhapsody*) 12212 dynamic_linker="$host_os dyld" 12213 version_type=darwin 12214 need_lib_prefix=no 12215 need_version=no 12216 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12217 soname_spec='$libname$release$major$shared_ext' 12218 shlibpath_overrides_runpath=yes 12219 shlibpath_var=DYLD_LIBRARY_PATH 12220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12221 12222 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12223 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12224 ;; 12225 12226dgux*) 12227 version_type=linux # correct to gnu/linux during the next big refactor 12228 need_lib_prefix=no 12229 need_version=no 12230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12231 soname_spec='$libname$release$shared_ext$major' 12232 shlibpath_var=LD_LIBRARY_PATH 12233 ;; 12234 12235freebsd* | dragonfly*) 12236 # DragonFly does not have aout. When/if they implement a new 12237 # versioning mechanism, adjust this. 12238 if test -x /usr/bin/objformat; then 12239 objformat=`/usr/bin/objformat` 12240 else 12241 case $host_os in 12242 freebsd[23].*) objformat=aout ;; 12243 *) objformat=elf ;; 12244 esac 12245 fi 12246 version_type=freebsd-$objformat 12247 case $version_type in 12248 freebsd-elf*) 12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12250 soname_spec='$libname$release$shared_ext$major' 12251 need_version=no 12252 need_lib_prefix=no 12253 ;; 12254 freebsd-*) 12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12256 need_version=yes 12257 ;; 12258 esac 12259 shlibpath_var=LD_LIBRARY_PATH 12260 case $host_os in 12261 freebsd2.*) 12262 shlibpath_overrides_runpath=yes 12263 ;; 12264 freebsd3.[01]* | freebsdelf3.[01]*) 12265 shlibpath_overrides_runpath=yes 12266 hardcode_into_libs=yes 12267 ;; 12268 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12269 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12270 shlibpath_overrides_runpath=no 12271 hardcode_into_libs=yes 12272 ;; 12273 *) # from 4.6 on, and DragonFly 12274 shlibpath_overrides_runpath=yes 12275 hardcode_into_libs=yes 12276 ;; 12277 esac 12278 ;; 12279 12280haiku*) 12281 version_type=linux # correct to gnu/linux during the next big refactor 12282 need_lib_prefix=no 12283 need_version=no 12284 dynamic_linker="$host_os runtime_loader" 12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12286 soname_spec='$libname$release$shared_ext$major' 12287 shlibpath_var=LIBRARY_PATH 12288 shlibpath_overrides_runpath=no 12289 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12290 hardcode_into_libs=yes 12291 ;; 12292 12293hpux9* | hpux10* | hpux11*) 12294 # Give a soname corresponding to the major version so that dld.sl refuses to 12295 # link against other versions. 12296 version_type=sunos 12297 need_lib_prefix=no 12298 need_version=no 12299 case $host_cpu in 12300 ia64*) 12301 shrext_cmds='.so' 12302 hardcode_into_libs=yes 12303 dynamic_linker="$host_os dld.so" 12304 shlibpath_var=LD_LIBRARY_PATH 12305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12307 soname_spec='$libname$release$shared_ext$major' 12308 if test 32 = "$HPUX_IA64_MODE"; then 12309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12310 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12311 else 12312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12313 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12314 fi 12315 ;; 12316 hppa*64*) 12317 shrext_cmds='.sl' 12318 hardcode_into_libs=yes 12319 dynamic_linker="$host_os dld.sl" 12320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12323 soname_spec='$libname$release$shared_ext$major' 12324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12326 ;; 12327 *) 12328 shrext_cmds='.sl' 12329 dynamic_linker="$host_os dld.sl" 12330 shlibpath_var=SHLIB_PATH 12331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12333 soname_spec='$libname$release$shared_ext$major' 12334 ;; 12335 esac 12336 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12337 postinstall_cmds='chmod 555 $lib' 12338 # or fails outright, so override atomically: 12339 install_override_mode=555 12340 ;; 12341 12342interix[3-9]*) 12343 version_type=linux # correct to gnu/linux during the next big refactor 12344 need_lib_prefix=no 12345 need_version=no 12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12347 soname_spec='$libname$release$shared_ext$major' 12348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12349 shlibpath_var=LD_LIBRARY_PATH 12350 shlibpath_overrides_runpath=no 12351 hardcode_into_libs=yes 12352 ;; 12353 12354irix5* | irix6* | nonstopux*) 12355 case $host_os in 12356 nonstopux*) version_type=nonstopux ;; 12357 *) 12358 if test yes = "$lt_cv_prog_gnu_ld"; then 12359 version_type=linux # correct to gnu/linux during the next big refactor 12360 else 12361 version_type=irix 12362 fi ;; 12363 esac 12364 need_lib_prefix=no 12365 need_version=no 12366 soname_spec='$libname$release$shared_ext$major' 12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12368 case $host_os in 12369 irix5* | nonstopux*) 12370 libsuff= shlibsuff= 12371 ;; 12372 *) 12373 case $LD in # libtool.m4 will add one of these switches to LD 12374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12375 libsuff= shlibsuff= libmagic=32-bit;; 12376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12377 libsuff=32 shlibsuff=N32 libmagic=N32;; 12378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12379 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12380 *) libsuff= shlibsuff= libmagic=never-match;; 12381 esac 12382 ;; 12383 esac 12384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12385 shlibpath_overrides_runpath=no 12386 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12387 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12388 hardcode_into_libs=yes 12389 ;; 12390 12391# No shared lib support for Linux oldld, aout, or coff. 12392linux*oldld* | linux*aout* | linux*coff*) 12393 dynamic_linker=no 12394 ;; 12395 12396linux*android*) 12397 version_type=none # Android doesn't support versioned libraries. 12398 need_lib_prefix=no 12399 need_version=no 12400 library_names_spec='$libname$release$shared_ext' 12401 soname_spec='$libname$release$shared_ext' 12402 finish_cmds= 12403 shlibpath_var=LD_LIBRARY_PATH 12404 shlibpath_overrides_runpath=yes 12405 12406 # This implies no fast_install, which is unacceptable. 12407 # Some rework will be needed to allow for fast_install 12408 # before this can be enabled. 12409 hardcode_into_libs=yes 12410 12411 dynamic_linker='Android linker' 12412 # Don't embed -rpath directories since the linker doesn't support them. 12413 hardcode_libdir_flag_spec='-L$libdir' 12414 ;; 12415 12416# This must be glibc/ELF. 12417linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12418 version_type=linux # correct to gnu/linux during the next big refactor 12419 need_lib_prefix=no 12420 need_version=no 12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12422 soname_spec='$libname$release$shared_ext$major' 12423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12424 shlibpath_var=LD_LIBRARY_PATH 12425 shlibpath_overrides_runpath=no 12426 12427 # Some binutils ld are patched to set DT_RUNPATH 12428 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12429 $as_echo_n "(cached) " >&6 12430else 12431 lt_cv_shlibpath_overrides_runpath=no 12432 save_LDFLAGS=$LDFLAGS 12433 save_libdir=$libdir 12434 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12435 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12437/* end confdefs.h. */ 12438 12439int 12440main () 12441{ 12442 12443 ; 12444 return 0; 12445} 12446_ACEOF 12447if ac_fn_c_try_link "$LINENO"; then : 12448 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12449 lt_cv_shlibpath_overrides_runpath=yes 12450fi 12451fi 12452rm -f core conftest.err conftest.$ac_objext \ 12453 conftest$ac_exeext conftest.$ac_ext 12454 LDFLAGS=$save_LDFLAGS 12455 libdir=$save_libdir 12456 12457fi 12458 12459 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12460 12461 # This implies no fast_install, which is unacceptable. 12462 # Some rework will be needed to allow for fast_install 12463 # before this can be enabled. 12464 hardcode_into_libs=yes 12465 12466 # Ideally, we could use ldconfig to report *all* directores which are 12467 # searched for libraries, however this is still not possible. Aside from not 12468 # being certain /sbin/ldconfig is available, command 12469 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12470 # even though it is searched at run-time. Try to do the best guess by 12471 # appending ld.so.conf contents (and includes) to the search path. 12472 if test -f /etc/ld.so.conf; then 12473 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' ' '` 12474 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12475 fi 12476 12477 # We used to test for /lib/ld.so.1 and disable shared libraries on 12478 # powerpc, because MkLinux only supported shared libraries with the 12479 # GNU dynamic linker. Since this was broken with cross compilers, 12480 # most powerpc-linux boxes support dynamic linking these days and 12481 # people can always --disable-shared, the test was removed, and we 12482 # assume the GNU/Linux dynamic linker is in use. 12483 dynamic_linker='GNU/Linux ld.so' 12484 ;; 12485 12486netbsd*) 12487 version_type=sunos 12488 need_lib_prefix=no 12489 need_version=no 12490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12491 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12493 dynamic_linker='NetBSD (a.out) ld.so' 12494 else 12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12496 soname_spec='$libname$release$shared_ext$major' 12497 dynamic_linker='NetBSD ld.elf_so' 12498 fi 12499 shlibpath_var=LD_LIBRARY_PATH 12500 shlibpath_overrides_runpath=yes 12501 hardcode_into_libs=yes 12502 ;; 12503 12504newsos6) 12505 version_type=linux # correct to gnu/linux during the next big refactor 12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12507 shlibpath_var=LD_LIBRARY_PATH 12508 shlibpath_overrides_runpath=yes 12509 ;; 12510 12511*nto* | *qnx*) 12512 version_type=qnx 12513 need_lib_prefix=no 12514 need_version=no 12515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12516 soname_spec='$libname$release$shared_ext$major' 12517 shlibpath_var=LD_LIBRARY_PATH 12518 shlibpath_overrides_runpath=no 12519 hardcode_into_libs=yes 12520 dynamic_linker='ldqnx.so' 12521 ;; 12522 12523openbsd* | bitrig*) 12524 version_type=sunos 12525 sys_lib_dlsearch_path_spec=/usr/lib 12526 need_lib_prefix=no 12527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12528 need_version=no 12529 else 12530 need_version=yes 12531 fi 12532 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12534 shlibpath_var=LD_LIBRARY_PATH 12535 shlibpath_overrides_runpath=yes 12536 ;; 12537 12538os2*) 12539 libname_spec='$name' 12540 version_type=windows 12541 shrext_cmds=.dll 12542 need_version=no 12543 need_lib_prefix=no 12544 # OS/2 can only load a DLL with a base name of 8 characters or less. 12545 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12546 v=$($ECHO $release$versuffix | tr -d .-); 12547 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12548 $ECHO $n$v`$shared_ext' 12549 library_names_spec='${libname}_dll.$libext' 12550 dynamic_linker='OS/2 ld.exe' 12551 shlibpath_var=BEGINLIBPATH 12552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12554 postinstall_cmds='base_file=`basename \$file`~ 12555 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12556 dldir=$destdir/`dirname \$dlpath`~ 12557 test -d \$dldir || mkdir -p \$dldir~ 12558 $install_prog $dir/$dlname \$dldir/$dlname~ 12559 chmod a+x \$dldir/$dlname~ 12560 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12561 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12562 fi' 12563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12564 dlpath=$dir/\$dldll~ 12565 $RM \$dlpath' 12566 ;; 12567 12568osf3* | osf4* | osf5*) 12569 version_type=osf 12570 need_lib_prefix=no 12571 need_version=no 12572 soname_spec='$libname$release$shared_ext$major' 12573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12577 ;; 12578 12579rdos*) 12580 dynamic_linker=no 12581 ;; 12582 12583solaris*) 12584 version_type=linux # correct to gnu/linux during the next big refactor 12585 need_lib_prefix=no 12586 need_version=no 12587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12588 soname_spec='$libname$release$shared_ext$major' 12589 shlibpath_var=LD_LIBRARY_PATH 12590 shlibpath_overrides_runpath=yes 12591 hardcode_into_libs=yes 12592 # ldd complains unless libraries are executable 12593 postinstall_cmds='chmod +x $lib' 12594 ;; 12595 12596sunos4*) 12597 version_type=sunos 12598 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12600 shlibpath_var=LD_LIBRARY_PATH 12601 shlibpath_overrides_runpath=yes 12602 if test yes = "$with_gnu_ld"; then 12603 need_lib_prefix=no 12604 fi 12605 need_version=yes 12606 ;; 12607 12608sysv4 | sysv4.3*) 12609 version_type=linux # correct to gnu/linux during the next big refactor 12610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12611 soname_spec='$libname$release$shared_ext$major' 12612 shlibpath_var=LD_LIBRARY_PATH 12613 case $host_vendor in 12614 sni) 12615 shlibpath_overrides_runpath=no 12616 need_lib_prefix=no 12617 runpath_var=LD_RUN_PATH 12618 ;; 12619 siemens) 12620 need_lib_prefix=no 12621 ;; 12622 motorola) 12623 need_lib_prefix=no 12624 need_version=no 12625 shlibpath_overrides_runpath=no 12626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12627 ;; 12628 esac 12629 ;; 12630 12631sysv4*MP*) 12632 if test -d /usr/nec; then 12633 version_type=linux # correct to gnu/linux during the next big refactor 12634 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12635 soname_spec='$libname$shared_ext.$major' 12636 shlibpath_var=LD_LIBRARY_PATH 12637 fi 12638 ;; 12639 12640sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12641 version_type=sco 12642 need_lib_prefix=no 12643 need_version=no 12644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12645 soname_spec='$libname$release$shared_ext$major' 12646 shlibpath_var=LD_LIBRARY_PATH 12647 shlibpath_overrides_runpath=yes 12648 hardcode_into_libs=yes 12649 if test yes = "$with_gnu_ld"; then 12650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12651 else 12652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12653 case $host_os in 12654 sco3.2v5*) 12655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12656 ;; 12657 esac 12658 fi 12659 sys_lib_dlsearch_path_spec='/usr/lib' 12660 ;; 12661 12662tpf*) 12663 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12664 version_type=linux # correct to gnu/linux during the next big refactor 12665 need_lib_prefix=no 12666 need_version=no 12667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12668 shlibpath_var=LD_LIBRARY_PATH 12669 shlibpath_overrides_runpath=no 12670 hardcode_into_libs=yes 12671 ;; 12672 12673uts4*) 12674 version_type=linux # correct to gnu/linux during the next big refactor 12675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12676 soname_spec='$libname$release$shared_ext$major' 12677 shlibpath_var=LD_LIBRARY_PATH 12678 ;; 12679 12680*) 12681 dynamic_linker=no 12682 ;; 12683esac 12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12685$as_echo "$dynamic_linker" >&6; } 12686test no = "$dynamic_linker" && can_build_shared=no 12687 12688variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12689if test yes = "$GCC"; then 12690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12691fi 12692 12693if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12694 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12695fi 12696 12697if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12698 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12699fi 12700 12701# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12702configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12703 12704# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12705func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12706 12707# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12708configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12807$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12808hardcode_action= 12809if test -n "$hardcode_libdir_flag_spec" || 12810 test -n "$runpath_var" || 12811 test yes = "$hardcode_automatic"; then 12812 12813 # We can hardcode non-existent directories. 12814 if test no != "$hardcode_direct" && 12815 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12816 # have to relink, otherwise we might link with an installed library 12817 # when we should be linking with a yet-to-be-installed one 12818 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12819 test no != "$hardcode_minus_L"; then 12820 # Linking always hardcodes the temporary library directory. 12821 hardcode_action=relink 12822 else 12823 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12824 hardcode_action=immediate 12825 fi 12826else 12827 # We cannot hardcode anything, or else we can only hardcode existing 12828 # directories. 12829 hardcode_action=unsupported 12830fi 12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12832$as_echo "$hardcode_action" >&6; } 12833 12834if test relink = "$hardcode_action" || 12835 test yes = "$inherit_rpath"; then 12836 # Fast installation is not supported 12837 enable_fast_install=no 12838elif test yes = "$shlibpath_overrides_runpath" || 12839 test no = "$enable_shared"; then 12840 # Fast installation is not necessary 12841 enable_fast_install=needless 12842fi 12843 12844 12845 12846 12847 12848 12849 if test yes != "$enable_dlopen"; then 12850 enable_dlopen=unknown 12851 enable_dlopen_self=unknown 12852 enable_dlopen_self_static=unknown 12853else 12854 lt_cv_dlopen=no 12855 lt_cv_dlopen_libs= 12856 12857 case $host_os in 12858 beos*) 12859 lt_cv_dlopen=load_add_on 12860 lt_cv_dlopen_libs= 12861 lt_cv_dlopen_self=yes 12862 ;; 12863 12864 mingw* | pw32* | cegcc*) 12865 lt_cv_dlopen=LoadLibrary 12866 lt_cv_dlopen_libs= 12867 ;; 12868 12869 cygwin*) 12870 lt_cv_dlopen=dlopen 12871 lt_cv_dlopen_libs= 12872 ;; 12873 12874 darwin*) 12875 # if libdl is installed we need to link against it 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12877$as_echo_n "checking for dlopen in -ldl... " >&6; } 12878if ${ac_cv_lib_dl_dlopen+:} false; then : 12879 $as_echo_n "(cached) " >&6 12880else 12881 ac_check_lib_save_LIBS=$LIBS 12882LIBS="-ldl $LIBS" 12883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884/* end confdefs.h. */ 12885 12886/* Override any GCC internal prototype to avoid an error. 12887 Use char because int might match the return type of a GCC 12888 builtin and then its argument prototype would still apply. */ 12889#ifdef __cplusplus 12890extern "C" 12891#endif 12892char dlopen (); 12893int 12894main () 12895{ 12896return dlopen (); 12897 ; 12898 return 0; 12899} 12900_ACEOF 12901if ac_fn_c_try_link "$LINENO"; then : 12902 ac_cv_lib_dl_dlopen=yes 12903else 12904 ac_cv_lib_dl_dlopen=no 12905fi 12906rm -f core conftest.err conftest.$ac_objext \ 12907 conftest$ac_exeext conftest.$ac_ext 12908LIBS=$ac_check_lib_save_LIBS 12909fi 12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12911$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12912if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12913 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12914else 12915 12916 lt_cv_dlopen=dyld 12917 lt_cv_dlopen_libs= 12918 lt_cv_dlopen_self=yes 12919 12920fi 12921 12922 ;; 12923 12924 tpf*) 12925 # Don't try to run any link tests for TPF. We know it's impossible 12926 # because TPF is a cross-compiler, and we know how we open DSOs. 12927 lt_cv_dlopen=dlopen 12928 lt_cv_dlopen_libs= 12929 lt_cv_dlopen_self=no 12930 ;; 12931 12932 *) 12933 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12934if test "x$ac_cv_func_shl_load" = xyes; then : 12935 lt_cv_dlopen=shl_load 12936else 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12938$as_echo_n "checking for shl_load in -ldld... " >&6; } 12939if ${ac_cv_lib_dld_shl_load+:} false; then : 12940 $as_echo_n "(cached) " >&6 12941else 12942 ac_check_lib_save_LIBS=$LIBS 12943LIBS="-ldld $LIBS" 12944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12945/* end confdefs.h. */ 12946 12947/* Override any GCC internal prototype to avoid an error. 12948 Use char because int might match the return type of a GCC 12949 builtin and then its argument prototype would still apply. */ 12950#ifdef __cplusplus 12951extern "C" 12952#endif 12953char shl_load (); 12954int 12955main () 12956{ 12957return shl_load (); 12958 ; 12959 return 0; 12960} 12961_ACEOF 12962if ac_fn_c_try_link "$LINENO"; then : 12963 ac_cv_lib_dld_shl_load=yes 12964else 12965 ac_cv_lib_dld_shl_load=no 12966fi 12967rm -f core conftest.err conftest.$ac_objext \ 12968 conftest$ac_exeext conftest.$ac_ext 12969LIBS=$ac_check_lib_save_LIBS 12970fi 12971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12972$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12973if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12974 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12975else 12976 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12977if test "x$ac_cv_func_dlopen" = xyes; then : 12978 lt_cv_dlopen=dlopen 12979else 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12981$as_echo_n "checking for dlopen in -ldl... " >&6; } 12982if ${ac_cv_lib_dl_dlopen+:} false; then : 12983 $as_echo_n "(cached) " >&6 12984else 12985 ac_check_lib_save_LIBS=$LIBS 12986LIBS="-ldl $LIBS" 12987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12988/* end confdefs.h. */ 12989 12990/* Override any GCC internal prototype to avoid an error. 12991 Use char because int might match the return type of a GCC 12992 builtin and then its argument prototype would still apply. */ 12993#ifdef __cplusplus 12994extern "C" 12995#endif 12996char dlopen (); 12997int 12998main () 12999{ 13000return dlopen (); 13001 ; 13002 return 0; 13003} 13004_ACEOF 13005if ac_fn_c_try_link "$LINENO"; then : 13006 ac_cv_lib_dl_dlopen=yes 13007else 13008 ac_cv_lib_dl_dlopen=no 13009fi 13010rm -f core conftest.err conftest.$ac_objext \ 13011 conftest$ac_exeext conftest.$ac_ext 13012LIBS=$ac_check_lib_save_LIBS 13013fi 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13015$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13016if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13017 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13018else 13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13020$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13021if ${ac_cv_lib_svld_dlopen+:} false; then : 13022 $as_echo_n "(cached) " >&6 13023else 13024 ac_check_lib_save_LIBS=$LIBS 13025LIBS="-lsvld $LIBS" 13026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028 13029/* Override any GCC internal prototype to avoid an error. 13030 Use char because int might match the return type of a GCC 13031 builtin and then its argument prototype would still apply. */ 13032#ifdef __cplusplus 13033extern "C" 13034#endif 13035char dlopen (); 13036int 13037main () 13038{ 13039return dlopen (); 13040 ; 13041 return 0; 13042} 13043_ACEOF 13044if ac_fn_c_try_link "$LINENO"; then : 13045 ac_cv_lib_svld_dlopen=yes 13046else 13047 ac_cv_lib_svld_dlopen=no 13048fi 13049rm -f core conftest.err conftest.$ac_objext \ 13050 conftest$ac_exeext conftest.$ac_ext 13051LIBS=$ac_check_lib_save_LIBS 13052fi 13053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13054$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13055if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13056 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13057else 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13059$as_echo_n "checking for dld_link in -ldld... " >&6; } 13060if ${ac_cv_lib_dld_dld_link+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062else 13063 ac_check_lib_save_LIBS=$LIBS 13064LIBS="-ldld $LIBS" 13065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13066/* end confdefs.h. */ 13067 13068/* Override any GCC internal prototype to avoid an error. 13069 Use char because int might match the return type of a GCC 13070 builtin and then its argument prototype would still apply. */ 13071#ifdef __cplusplus 13072extern "C" 13073#endif 13074char dld_link (); 13075int 13076main () 13077{ 13078return dld_link (); 13079 ; 13080 return 0; 13081} 13082_ACEOF 13083if ac_fn_c_try_link "$LINENO"; then : 13084 ac_cv_lib_dld_dld_link=yes 13085else 13086 ac_cv_lib_dld_dld_link=no 13087fi 13088rm -f core conftest.err conftest.$ac_objext \ 13089 conftest$ac_exeext conftest.$ac_ext 13090LIBS=$ac_check_lib_save_LIBS 13091fi 13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13093$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13094if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13095 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13096fi 13097 13098 13099fi 13100 13101 13102fi 13103 13104 13105fi 13106 13107 13108fi 13109 13110 13111fi 13112 13113 ;; 13114 esac 13115 13116 if test no = "$lt_cv_dlopen"; then 13117 enable_dlopen=no 13118 else 13119 enable_dlopen=yes 13120 fi 13121 13122 case $lt_cv_dlopen in 13123 dlopen) 13124 save_CPPFLAGS=$CPPFLAGS 13125 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13126 13127 save_LDFLAGS=$LDFLAGS 13128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13129 13130 save_LIBS=$LIBS 13131 LIBS="$lt_cv_dlopen_libs $LIBS" 13132 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13134$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13135if ${lt_cv_dlopen_self+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137else 13138 if test yes = "$cross_compiling"; then : 13139 lt_cv_dlopen_self=cross 13140else 13141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13142 lt_status=$lt_dlunknown 13143 cat > conftest.$ac_ext <<_LT_EOF 13144#line $LINENO "configure" 13145#include "confdefs.h" 13146 13147#if HAVE_DLFCN_H 13148#include <dlfcn.h> 13149#endif 13150 13151#include <stdio.h> 13152 13153#ifdef RTLD_GLOBAL 13154# define LT_DLGLOBAL RTLD_GLOBAL 13155#else 13156# ifdef DL_GLOBAL 13157# define LT_DLGLOBAL DL_GLOBAL 13158# else 13159# define LT_DLGLOBAL 0 13160# endif 13161#endif 13162 13163/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13164 find out it does not work in some platform. */ 13165#ifndef LT_DLLAZY_OR_NOW 13166# ifdef RTLD_LAZY 13167# define LT_DLLAZY_OR_NOW RTLD_LAZY 13168# else 13169# ifdef DL_LAZY 13170# define LT_DLLAZY_OR_NOW DL_LAZY 13171# else 13172# ifdef RTLD_NOW 13173# define LT_DLLAZY_OR_NOW RTLD_NOW 13174# else 13175# ifdef DL_NOW 13176# define LT_DLLAZY_OR_NOW DL_NOW 13177# else 13178# define LT_DLLAZY_OR_NOW 0 13179# endif 13180# endif 13181# endif 13182# endif 13183#endif 13184 13185/* When -fvisibility=hidden is used, assume the code has been annotated 13186 correspondingly for the symbols needed. */ 13187#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13188int fnord () __attribute__((visibility("default"))); 13189#endif 13190 13191int fnord () { return 42; } 13192int main () 13193{ 13194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13195 int status = $lt_dlunknown; 13196 13197 if (self) 13198 { 13199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13200 else 13201 { 13202 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13203 else puts (dlerror ()); 13204 } 13205 /* dlclose (self); */ 13206 } 13207 else 13208 puts (dlerror ()); 13209 13210 return status; 13211} 13212_LT_EOF 13213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13214 (eval $ac_link) 2>&5 13215 ac_status=$? 13216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13217 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13218 (./conftest; exit; ) >&5 2>/dev/null 13219 lt_status=$? 13220 case x$lt_status in 13221 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13222 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13223 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13224 esac 13225 else : 13226 # compilation failed 13227 lt_cv_dlopen_self=no 13228 fi 13229fi 13230rm -fr conftest* 13231 13232 13233fi 13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13235$as_echo "$lt_cv_dlopen_self" >&6; } 13236 13237 if test yes = "$lt_cv_dlopen_self"; then 13238 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13240$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13241if ${lt_cv_dlopen_self_static+:} false; then : 13242 $as_echo_n "(cached) " >&6 13243else 13244 if test yes = "$cross_compiling"; then : 13245 lt_cv_dlopen_self_static=cross 13246else 13247 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13248 lt_status=$lt_dlunknown 13249 cat > conftest.$ac_ext <<_LT_EOF 13250#line $LINENO "configure" 13251#include "confdefs.h" 13252 13253#if HAVE_DLFCN_H 13254#include <dlfcn.h> 13255#endif 13256 13257#include <stdio.h> 13258 13259#ifdef RTLD_GLOBAL 13260# define LT_DLGLOBAL RTLD_GLOBAL 13261#else 13262# ifdef DL_GLOBAL 13263# define LT_DLGLOBAL DL_GLOBAL 13264# else 13265# define LT_DLGLOBAL 0 13266# endif 13267#endif 13268 13269/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13270 find out it does not work in some platform. */ 13271#ifndef LT_DLLAZY_OR_NOW 13272# ifdef RTLD_LAZY 13273# define LT_DLLAZY_OR_NOW RTLD_LAZY 13274# else 13275# ifdef DL_LAZY 13276# define LT_DLLAZY_OR_NOW DL_LAZY 13277# else 13278# ifdef RTLD_NOW 13279# define LT_DLLAZY_OR_NOW RTLD_NOW 13280# else 13281# ifdef DL_NOW 13282# define LT_DLLAZY_OR_NOW DL_NOW 13283# else 13284# define LT_DLLAZY_OR_NOW 0 13285# endif 13286# endif 13287# endif 13288# endif 13289#endif 13290 13291/* When -fvisibility=hidden is used, assume the code has been annotated 13292 correspondingly for the symbols needed. */ 13293#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13294int fnord () __attribute__((visibility("default"))); 13295#endif 13296 13297int fnord () { return 42; } 13298int main () 13299{ 13300 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13301 int status = $lt_dlunknown; 13302 13303 if (self) 13304 { 13305 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13306 else 13307 { 13308 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13309 else puts (dlerror ()); 13310 } 13311 /* dlclose (self); */ 13312 } 13313 else 13314 puts (dlerror ()); 13315 13316 return status; 13317} 13318_LT_EOF 13319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13320 (eval $ac_link) 2>&5 13321 ac_status=$? 13322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13323 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13324 (./conftest; exit; ) >&5 2>/dev/null 13325 lt_status=$? 13326 case x$lt_status in 13327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13328 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13329 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13330 esac 13331 else : 13332 # compilation failed 13333 lt_cv_dlopen_self_static=no 13334 fi 13335fi 13336rm -fr conftest* 13337 13338 13339fi 13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13341$as_echo "$lt_cv_dlopen_self_static" >&6; } 13342 fi 13343 13344 CPPFLAGS=$save_CPPFLAGS 13345 LDFLAGS=$save_LDFLAGS 13346 LIBS=$save_LIBS 13347 ;; 13348 esac 13349 13350 case $lt_cv_dlopen_self in 13351 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13352 *) enable_dlopen_self=unknown ;; 13353 esac 13354 13355 case $lt_cv_dlopen_self_static in 13356 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13357 *) enable_dlopen_self_static=unknown ;; 13358 esac 13359fi 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377striplib= 13378old_striplib= 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13380$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13381if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13383 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13385$as_echo "yes" >&6; } 13386else 13387# FIXME - insert some real tests, host_os isn't really good enough 13388 case $host_os in 13389 darwin*) 13390 if test -n "$STRIP"; then 13391 striplib="$STRIP -x" 13392 old_striplib="$STRIP -S" 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13394$as_echo "yes" >&6; } 13395 else 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13397$as_echo "no" >&6; } 13398 fi 13399 ;; 13400 *) 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13402$as_echo "no" >&6; } 13403 ;; 13404 esac 13405fi 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 # Report what library types will actually be built 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13420$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13422$as_echo "$can_build_shared" >&6; } 13423 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13425$as_echo_n "checking whether to build shared libraries... " >&6; } 13426 test no = "$can_build_shared" && enable_shared=no 13427 13428 # On AIX, shared libraries and static libraries use the same namespace, and 13429 # are all built from PIC. 13430 case $host_os in 13431 aix3*) 13432 test yes = "$enable_shared" && enable_static=no 13433 if test -n "$RANLIB"; then 13434 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13435 postinstall_cmds='$RANLIB $lib' 13436 fi 13437 ;; 13438 13439 aix[4-9]*) 13440 if test ia64 != "$host_cpu"; then 13441 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13442 yes,aix,yes) ;; # shared object as lib.so file only 13443 yes,svr4,*) ;; # shared object as lib.so archive member only 13444 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13445 esac 13446 fi 13447 ;; 13448 esac 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13450$as_echo "$enable_shared" >&6; } 13451 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13453$as_echo_n "checking whether to build static libraries... " >&6; } 13454 # Make sure either enable_shared or enable_static is yes. 13455 test yes = "$enable_shared" || enable_static=yes 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13457$as_echo "$enable_static" >&6; } 13458 13459 13460 13461 13462fi 13463ac_ext=c 13464ac_cpp='$CPP $CPPFLAGS' 13465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13467ac_compiler_gnu=$ac_cv_c_compiler_gnu 13468 13469CC=$lt_save_CC 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 ac_config_commands="$ac_config_commands libtool" 13486 13487 13488 13489 13490# Only expand once: 13491 13492 13493 13494# Select memory manager depending on user input. 13495# If no "-enable-maxmem", use jmemnobs 13496MEMORYMGR='jmemnobs' 13497MAXMEM="no" 13498# Check whether --enable-maxmem was given. 13499if test "${enable_maxmem+set}" = set; then : 13500 enableval=$enable_maxmem; MAXMEM="$enableval" 13501fi 13502 13503if test "x$MAXMEM" = xyes; then 13504 MAXMEM=1 13505fi 13506if test "x$MAXMEM" != xno; then 13507 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then 13508 as_fn_error $? "non-numeric argument to --enable-maxmem" "$LINENO" 5 13509 fi 13510 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576` 13511 13512cat >>confdefs.h <<_ACEOF 13513#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM} 13514_ACEOF 13515 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5 13517$as_echo_n "checking for 'tmpfile()'... " >&6; } 13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13519/* end confdefs.h. */ 13520#include <stdio.h> 13521int 13522main () 13523{ 13524 FILE * tfile = tmpfile(); 13525 ; 13526 return 0; 13527} 13528_ACEOF 13529if ac_fn_c_try_link "$LINENO"; then : 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13531$as_echo "yes" >&6; } 13532 MEMORYMGR='jmemansi' 13533else 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13535$as_echo "no" >&6; } 13536 MEMORYMGR='jmemname' 13537 13538 # Test for the need to remove temporary files using a signal handler 13539 # (for cjpeg/djpeg) 13540 13541$as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h 13542 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5 13544$as_echo_n "checking for 'mktemp()'... " >&6; } 13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13546/* end confdefs.h. */ 13547 13548int 13549main () 13550{ 13551 char fname[80]; mktemp(fname); 13552 ; 13553 return 0; 13554} 13555_ACEOF 13556if ac_fn_c_try_link "$LINENO"; then : 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13558$as_echo "yes" >&6; } 13559else 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13561$as_echo "no" >&6; } 13562 13563$as_echo "#define NO_MKTEMP 1" >>confdefs.h 13564 13565fi 13566rm -f core conftest.err conftest.$ac_objext \ 13567 conftest$ac_exeext conftest.$ac_ext 13568fi 13569rm -f core conftest.err conftest.$ac_objext \ 13570 conftest$ac_exeext conftest.$ac_ext 13571fi 13572 13573 13574# Extract the library version IDs from jpeglib.h. 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5 13576$as_echo_n "checking libjpeg version number... " >&6; } 13577major=`sed -ne 's/^#define JPEG_LIB_VERSION_MAJOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h` 13578minor=`sed -ne 's/^#define JPEG_LIB_VERSION_MINOR *\([0-9][0-9]*\).*$/\1/p' $srcdir/jpeglib.h` 13579JPEG_LIB_VERSION=`expr $major + $minor`:0:$minor 13580 13581JPEG_LIB_VERSION_MAJOR=$major 13582 13583JPEG_LIB_VERSION_MINOR=$minor 13584 13585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $major.$minor.0" >&5 13586$as_echo "$major.$minor.0" >&6; } 13587 13588ac_config_files="$ac_config_files Makefile libjpeg.pc" 13589 13590cat >confcache <<\_ACEOF 13591# This file is a shell script that caches the results of configure 13592# tests run on this system so they can be shared between configure 13593# scripts and configure runs, see configure's option --config-cache. 13594# It is not useful on other systems. If it contains results you don't 13595# want to keep, you may remove or edit it. 13596# 13597# config.status only pays attention to the cache file if you give it 13598# the --recheck option to rerun configure. 13599# 13600# `ac_cv_env_foo' variables (set or unset) will be overridden when 13601# loading this file, other *unset* `ac_cv_foo' will be assigned the 13602# following values. 13603 13604_ACEOF 13605 13606# The following way of writing the cache mishandles newlines in values, 13607# but we know of no workaround that is simple, portable, and efficient. 13608# So, we kill variables containing newlines. 13609# Ultrix sh set writes to stderr and can't be redirected directly, 13610# and sets the high bit in the cache file unless we assign to the vars. 13611( 13612 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13613 eval ac_val=\$$ac_var 13614 case $ac_val in #( 13615 *${as_nl}*) 13616 case $ac_var in #( 13617 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13618$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13619 esac 13620 case $ac_var in #( 13621 _ | IFS | as_nl) ;; #( 13622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13623 *) { eval $ac_var=; unset $ac_var;} ;; 13624 esac ;; 13625 esac 13626 done 13627 13628 (set) 2>&1 | 13629 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13630 *${as_nl}ac_space=\ *) 13631 # `set' does not quote correctly, so add quotes: double-quote 13632 # substitution turns \\\\ into \\, and sed turns \\ into \. 13633 sed -n \ 13634 "s/'/'\\\\''/g; 13635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13636 ;; #( 13637 *) 13638 # `set' quotes correctly as required by POSIX, so do not add quotes. 13639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13640 ;; 13641 esac | 13642 sort 13643) | 13644 sed ' 13645 /^ac_cv_env_/b end 13646 t clear 13647 :clear 13648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13649 t end 13650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13651 :end' >>confcache 13652if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13653 if test -w "$cache_file"; then 13654 if test "x$cache_file" != "x/dev/null"; then 13655 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13656$as_echo "$as_me: updating cache $cache_file" >&6;} 13657 if test ! -f "$cache_file" || test -h "$cache_file"; then 13658 cat confcache >"$cache_file" 13659 else 13660 case $cache_file in #( 13661 */* | ?:*) 13662 mv -f confcache "$cache_file"$$ && 13663 mv -f "$cache_file"$$ "$cache_file" ;; #( 13664 *) 13665 mv -f confcache "$cache_file" ;; 13666 esac 13667 fi 13668 fi 13669 else 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13671$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13672 fi 13673fi 13674rm -f confcache 13675 13676test "x$prefix" = xNONE && prefix=$ac_default_prefix 13677# Let make expand exec_prefix. 13678test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13679 13680DEFS=-DHAVE_CONFIG_H 13681 13682ac_libobjs= 13683ac_ltlibobjs= 13684U= 13685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13686 # 1. Remove the extension, and $U if already installed. 13687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13688 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13690 # will be set to the directory where LIBOBJS objects are built. 13691 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13692 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13693done 13694LIBOBJS=$ac_libobjs 13695 13696LTLIBOBJS=$ac_ltlibobjs 13697 13698 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13700$as_echo_n "checking that generated files are newer than configure... " >&6; } 13701 if test -n "$am_sleep_pid"; then 13702 # Hide warnings about reused PIDs. 13703 wait $am_sleep_pid 2>/dev/null 13704 fi 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13706$as_echo "done" >&6; } 13707 if test -n "$EXEEXT"; then 13708 am__EXEEXT_TRUE= 13709 am__EXEEXT_FALSE='#' 13710else 13711 am__EXEEXT_TRUE='#' 13712 am__EXEEXT_FALSE= 13713fi 13714 13715if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13716 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13717Usually this means the macro was only invoked conditionally." "$LINENO" 5 13718fi 13719if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13720 as_fn_error $? "conditional \"AMDEP\" was never defined. 13721Usually this means the macro was only invoked conditionally." "$LINENO" 5 13722fi 13723if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13724 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13725Usually this means the macro was only invoked conditionally." "$LINENO" 5 13726fi 13727if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 13728 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 13729Usually this means the macro was only invoked conditionally." "$LINENO" 5 13730fi 13731 13732: "${CONFIG_STATUS=./config.status}" 13733ac_write_fail=0 13734ac_clean_files_save=$ac_clean_files 13735ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13736{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13737$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13738as_write_fail=0 13739cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13740#! $SHELL 13741# Generated by $as_me. 13742# Run this file to recreate the current configuration. 13743# Compiler output produced by configure, useful for debugging 13744# configure, is in config.log if it exists. 13745 13746debug=false 13747ac_cs_recheck=false 13748ac_cs_silent=false 13749 13750SHELL=\${CONFIG_SHELL-$SHELL} 13751export SHELL 13752_ASEOF 13753cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13754## -------------------- ## 13755## M4sh Initialization. ## 13756## -------------------- ## 13757 13758# Be more Bourne compatible 13759DUALCASE=1; export DUALCASE # for MKS sh 13760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13761 emulate sh 13762 NULLCMD=: 13763 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13764 # is contrary to our usage. Disable this feature. 13765 alias -g '${1+"$@"}'='"$@"' 13766 setopt NO_GLOB_SUBST 13767else 13768 case `(set -o) 2>/dev/null` in #( 13769 *posix*) : 13770 set -o posix ;; #( 13771 *) : 13772 ;; 13773esac 13774fi 13775 13776 13777as_nl=' 13778' 13779export as_nl 13780# Printing a long string crashes Solaris 7 /usr/bin/printf. 13781as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13782as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13784# Prefer a ksh shell builtin over an external printf program on Solaris, 13785# but without wasting forks for bash or zsh. 13786if test -z "$BASH_VERSION$ZSH_VERSION" \ 13787 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13788 as_echo='print -r --' 13789 as_echo_n='print -rn --' 13790elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13791 as_echo='printf %s\n' 13792 as_echo_n='printf %s' 13793else 13794 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13795 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13796 as_echo_n='/usr/ucb/echo -n' 13797 else 13798 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13799 as_echo_n_body='eval 13800 arg=$1; 13801 case $arg in #( 13802 *"$as_nl"*) 13803 expr "X$arg" : "X\\(.*\\)$as_nl"; 13804 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13805 esac; 13806 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13807 ' 13808 export as_echo_n_body 13809 as_echo_n='sh -c $as_echo_n_body as_echo' 13810 fi 13811 export as_echo_body 13812 as_echo='sh -c $as_echo_body as_echo' 13813fi 13814 13815# The user is always right. 13816if test "${PATH_SEPARATOR+set}" != set; then 13817 PATH_SEPARATOR=: 13818 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13819 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13820 PATH_SEPARATOR=';' 13821 } 13822fi 13823 13824 13825# IFS 13826# We need space, tab and new line, in precisely that order. Quoting is 13827# there to prevent editors from complaining about space-tab. 13828# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13829# splitting by setting IFS to empty value.) 13830IFS=" "" $as_nl" 13831 13832# Find who we are. Look in the path if we contain no directory separator. 13833as_myself= 13834case $0 in #(( 13835 *[\\/]* ) as_myself=$0 ;; 13836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13837for as_dir in $PATH 13838do 13839 IFS=$as_save_IFS 13840 test -z "$as_dir" && as_dir=. 13841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13842 done 13843IFS=$as_save_IFS 13844 13845 ;; 13846esac 13847# We did not find ourselves, most probably we were run as `sh COMMAND' 13848# in which case we are not to be found in the path. 13849if test "x$as_myself" = x; then 13850 as_myself=$0 13851fi 13852if test ! -f "$as_myself"; then 13853 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13854 exit 1 13855fi 13856 13857# Unset variables that we do not need and which cause bugs (e.g. in 13858# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13859# suppresses any "Segmentation fault" message there. '((' could 13860# trigger a bug in pdksh 5.2.14. 13861for as_var in BASH_ENV ENV MAIL MAILPATH 13862do eval test x\${$as_var+set} = xset \ 13863 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13864done 13865PS1='$ ' 13866PS2='> ' 13867PS4='+ ' 13868 13869# NLS nuisances. 13870LC_ALL=C 13871export LC_ALL 13872LANGUAGE=C 13873export LANGUAGE 13874 13875# CDPATH. 13876(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13877 13878 13879# as_fn_error STATUS ERROR [LINENO LOG_FD] 13880# ---------------------------------------- 13881# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13882# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13883# script with STATUS, using 1 if that was 0. 13884as_fn_error () 13885{ 13886 as_status=$1; test $as_status -eq 0 && as_status=1 13887 if test "$4"; then 13888 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13889 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13890 fi 13891 $as_echo "$as_me: error: $2" >&2 13892 as_fn_exit $as_status 13893} # as_fn_error 13894 13895 13896# as_fn_set_status STATUS 13897# ----------------------- 13898# Set $? to STATUS, without forking. 13899as_fn_set_status () 13900{ 13901 return $1 13902} # as_fn_set_status 13903 13904# as_fn_exit STATUS 13905# ----------------- 13906# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13907as_fn_exit () 13908{ 13909 set +e 13910 as_fn_set_status $1 13911 exit $1 13912} # as_fn_exit 13913 13914# as_fn_unset VAR 13915# --------------- 13916# Portably unset VAR. 13917as_fn_unset () 13918{ 13919 { eval $1=; unset $1;} 13920} 13921as_unset=as_fn_unset 13922# as_fn_append VAR VALUE 13923# ---------------------- 13924# Append the text in VALUE to the end of the definition contained in VAR. Take 13925# advantage of any shell optimizations that allow amortized linear growth over 13926# repeated appends, instead of the typical quadratic growth present in naive 13927# implementations. 13928if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13929 eval 'as_fn_append () 13930 { 13931 eval $1+=\$2 13932 }' 13933else 13934 as_fn_append () 13935 { 13936 eval $1=\$$1\$2 13937 } 13938fi # as_fn_append 13939 13940# as_fn_arith ARG... 13941# ------------------ 13942# Perform arithmetic evaluation on the ARGs, and store the result in the 13943# global $as_val. Take advantage of shells that can avoid forks. The arguments 13944# must be portable across $(()) and expr. 13945if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13946 eval 'as_fn_arith () 13947 { 13948 as_val=$(( $* )) 13949 }' 13950else 13951 as_fn_arith () 13952 { 13953 as_val=`expr "$@" || test $? -eq 1` 13954 } 13955fi # as_fn_arith 13956 13957 13958if expr a : '\(a\)' >/dev/null 2>&1 && 13959 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13960 as_expr=expr 13961else 13962 as_expr=false 13963fi 13964 13965if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13966 as_basename=basename 13967else 13968 as_basename=false 13969fi 13970 13971if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13972 as_dirname=dirname 13973else 13974 as_dirname=false 13975fi 13976 13977as_me=`$as_basename -- "$0" || 13978$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13979 X"$0" : 'X\(//\)$' \| \ 13980 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13981$as_echo X/"$0" | 13982 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13983 s//\1/ 13984 q 13985 } 13986 /^X\/\(\/\/\)$/{ 13987 s//\1/ 13988 q 13989 } 13990 /^X\/\(\/\).*/{ 13991 s//\1/ 13992 q 13993 } 13994 s/.*/./; q'` 13995 13996# Avoid depending upon Character Ranges. 13997as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13998as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13999as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14000as_cr_digits='0123456789' 14001as_cr_alnum=$as_cr_Letters$as_cr_digits 14002 14003ECHO_C= ECHO_N= ECHO_T= 14004case `echo -n x` in #((((( 14005-n*) 14006 case `echo 'xy\c'` in 14007 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14008 xy) ECHO_C='\c';; 14009 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14010 ECHO_T=' ';; 14011 esac;; 14012*) 14013 ECHO_N='-n';; 14014esac 14015 14016rm -f conf$$ conf$$.exe conf$$.file 14017if test -d conf$$.dir; then 14018 rm -f conf$$.dir/conf$$.file 14019else 14020 rm -f conf$$.dir 14021 mkdir conf$$.dir 2>/dev/null 14022fi 14023if (echo >conf$$.file) 2>/dev/null; then 14024 if ln -s conf$$.file conf$$ 2>/dev/null; then 14025 as_ln_s='ln -s' 14026 # ... but there are two gotchas: 14027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14029 # In both cases, we have to default to `cp -pR'. 14030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14031 as_ln_s='cp -pR' 14032 elif ln conf$$.file conf$$ 2>/dev/null; then 14033 as_ln_s=ln 14034 else 14035 as_ln_s='cp -pR' 14036 fi 14037else 14038 as_ln_s='cp -pR' 14039fi 14040rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14041rmdir conf$$.dir 2>/dev/null 14042 14043 14044# as_fn_mkdir_p 14045# ------------- 14046# Create "$as_dir" as a directory, including parents if necessary. 14047as_fn_mkdir_p () 14048{ 14049 14050 case $as_dir in #( 14051 -*) as_dir=./$as_dir;; 14052 esac 14053 test -d "$as_dir" || eval $as_mkdir_p || { 14054 as_dirs= 14055 while :; do 14056 case $as_dir in #( 14057 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14058 *) as_qdir=$as_dir;; 14059 esac 14060 as_dirs="'$as_qdir' $as_dirs" 14061 as_dir=`$as_dirname -- "$as_dir" || 14062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14063 X"$as_dir" : 'X\(//\)[^/]' \| \ 14064 X"$as_dir" : 'X\(//\)$' \| \ 14065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14066$as_echo X"$as_dir" | 14067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14068 s//\1/ 14069 q 14070 } 14071 /^X\(\/\/\)[^/].*/{ 14072 s//\1/ 14073 q 14074 } 14075 /^X\(\/\/\)$/{ 14076 s//\1/ 14077 q 14078 } 14079 /^X\(\/\).*/{ 14080 s//\1/ 14081 q 14082 } 14083 s/.*/./; q'` 14084 test -d "$as_dir" && break 14085 done 14086 test -z "$as_dirs" || eval "mkdir $as_dirs" 14087 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14088 14089 14090} # as_fn_mkdir_p 14091if mkdir -p . 2>/dev/null; then 14092 as_mkdir_p='mkdir -p "$as_dir"' 14093else 14094 test -d ./-p && rmdir ./-p 14095 as_mkdir_p=false 14096fi 14097 14098 14099# as_fn_executable_p FILE 14100# ----------------------- 14101# Test if FILE is an executable regular file. 14102as_fn_executable_p () 14103{ 14104 test -f "$1" && test -x "$1" 14105} # as_fn_executable_p 14106as_test_x='test -x' 14107as_executable_p=as_fn_executable_p 14108 14109# Sed expression to map a string onto a valid CPP name. 14110as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14111 14112# Sed expression to map a string onto a valid variable name. 14113as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14114 14115 14116exec 6>&1 14117## ----------------------------------- ## 14118## Main body of $CONFIG_STATUS script. ## 14119## ----------------------------------- ## 14120_ASEOF 14121test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14122 14123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14124# Save the log message, to keep $0 and so on meaningful, and to 14125# report actual input values of CONFIG_FILES etc. instead of their 14126# values after options handling. 14127ac_log=" 14128This file was extended by libjpeg $as_me 9.4.0, which was 14129generated by GNU Autoconf 2.69. Invocation command line was 14130 14131 CONFIG_FILES = $CONFIG_FILES 14132 CONFIG_HEADERS = $CONFIG_HEADERS 14133 CONFIG_LINKS = $CONFIG_LINKS 14134 CONFIG_COMMANDS = $CONFIG_COMMANDS 14135 $ $0 $@ 14136 14137on `(hostname || uname -n) 2>/dev/null | sed 1q` 14138" 14139 14140_ACEOF 14141 14142case $ac_config_files in *" 14143"*) set x $ac_config_files; shift; ac_config_files=$*;; 14144esac 14145 14146case $ac_config_headers in *" 14147"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14148esac 14149 14150 14151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14152# Files that config.status was made for. 14153config_files="$ac_config_files" 14154config_headers="$ac_config_headers" 14155config_commands="$ac_config_commands" 14156 14157_ACEOF 14158 14159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14160ac_cs_usage="\ 14161\`$as_me' instantiates files and other configuration actions 14162from templates according to the current configuration. Unless the files 14163and actions are specified as TAGs, all are instantiated by default. 14164 14165Usage: $0 [OPTION]... [TAG]... 14166 14167 -h, --help print this help, then exit 14168 -V, --version print version number and configuration settings, then exit 14169 --config print configuration, then exit 14170 -q, --quiet, --silent 14171 do not print progress messages 14172 -d, --debug don't remove temporary files 14173 --recheck update $as_me by reconfiguring in the same conditions 14174 --file=FILE[:TEMPLATE] 14175 instantiate the configuration file FILE 14176 --header=FILE[:TEMPLATE] 14177 instantiate the configuration header FILE 14178 14179Configuration files: 14180$config_files 14181 14182Configuration headers: 14183$config_headers 14184 14185Configuration commands: 14186$config_commands 14187 14188Report bugs to the package provider." 14189 14190_ACEOF 14191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14192ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14193ac_cs_version="\\ 14194libjpeg config.status 9.4.0 14195configured by $0, generated by GNU Autoconf 2.69, 14196 with options \\"\$ac_cs_config\\" 14197 14198Copyright (C) 2012 Free Software Foundation, Inc. 14199This config.status script is free software; the Free Software Foundation 14200gives unlimited permission to copy, distribute and modify it." 14201 14202ac_pwd='$ac_pwd' 14203srcdir='$srcdir' 14204INSTALL='$INSTALL' 14205MKDIR_P='$MKDIR_P' 14206AWK='$AWK' 14207test -n "\$AWK" || AWK=awk 14208_ACEOF 14209 14210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14211# The default lists apply if the user does not specify any file. 14212ac_need_defaults=: 14213while test $# != 0 14214do 14215 case $1 in 14216 --*=?*) 14217 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14219 ac_shift=: 14220 ;; 14221 --*=) 14222 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14223 ac_optarg= 14224 ac_shift=: 14225 ;; 14226 *) 14227 ac_option=$1 14228 ac_optarg=$2 14229 ac_shift=shift 14230 ;; 14231 esac 14232 14233 case $ac_option in 14234 # Handling of the options. 14235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14236 ac_cs_recheck=: ;; 14237 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14238 $as_echo "$ac_cs_version"; exit ;; 14239 --config | --confi | --conf | --con | --co | --c ) 14240 $as_echo "$ac_cs_config"; exit ;; 14241 --debug | --debu | --deb | --de | --d | -d ) 14242 debug=: ;; 14243 --file | --fil | --fi | --f ) 14244 $ac_shift 14245 case $ac_optarg in 14246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14247 '') as_fn_error $? "missing file argument" ;; 14248 esac 14249 as_fn_append CONFIG_FILES " '$ac_optarg'" 14250 ac_need_defaults=false;; 14251 --header | --heade | --head | --hea ) 14252 $ac_shift 14253 case $ac_optarg in 14254 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14255 esac 14256 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14257 ac_need_defaults=false;; 14258 --he | --h) 14259 # Conflict between --help and --header 14260 as_fn_error $? "ambiguous option: \`$1' 14261Try \`$0 --help' for more information.";; 14262 --help | --hel | -h ) 14263 $as_echo "$ac_cs_usage"; exit ;; 14264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14265 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14266 ac_cs_silent=: ;; 14267 14268 # This is an error. 14269 -*) as_fn_error $? "unrecognized option: \`$1' 14270Try \`$0 --help' for more information." ;; 14271 14272 *) as_fn_append ac_config_targets " $1" 14273 ac_need_defaults=false ;; 14274 14275 esac 14276 shift 14277done 14278 14279ac_configure_extra_args= 14280 14281if $ac_cs_silent; then 14282 exec 6>/dev/null 14283 ac_configure_extra_args="$ac_configure_extra_args --silent" 14284fi 14285 14286_ACEOF 14287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14288if \$ac_cs_recheck; then 14289 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14290 shift 14291 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14292 CONFIG_SHELL='$SHELL' 14293 export CONFIG_SHELL 14294 exec "\$@" 14295fi 14296 14297_ACEOF 14298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14299exec 5>>config.log 14300{ 14301 echo 14302 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14303## Running $as_me. ## 14304_ASBOX 14305 $as_echo "$ac_log" 14306} >&5 14307 14308_ACEOF 14309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14310# 14311# INIT-COMMANDS 14312# 14313AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14314 14315 14316# The HP-UX ksh and POSIX shell print the target directory to stdout 14317# if CDPATH is set. 14318(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14319 14320sed_quote_subst='$sed_quote_subst' 14321double_quote_subst='$double_quote_subst' 14322delay_variable_subst='$delay_variable_subst' 14323AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 14324DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14325OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14326macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14327macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14328enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14329enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14330pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14331enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14332shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14333SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14334ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14335PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14336host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14337host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14338host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14339build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14340build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14341build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14342SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14343Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14344GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14345EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14346FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14347LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14348NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14349LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14350max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14351ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14352exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14353lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14354lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14355lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14356lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14357lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14358reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14359reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14360deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14361file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14362file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14363want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14364sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14365AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14366AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14367archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14368STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14369RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14370old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14371old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14372old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14373lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14374CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14375CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14376compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14377GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14378lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14379lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14380lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14381lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14382lt_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"`' 14383lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14384nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14385lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14386lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14387objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14388MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14389lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14390lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14391lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14392lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14393lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14394need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14395MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14396DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14397NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14398LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14399OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14400OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14401libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14402shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14403extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14404archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14405enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14406export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14407whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14408compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14409old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14410old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14411archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14412archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14413module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14414module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14415with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14416allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14417no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14418hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14419hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14420hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14421hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14422hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14423hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14424hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14425inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14426link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14427always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14428export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14429exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14430include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14431prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14432postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14433file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14434variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14435need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14436need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14437version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14438runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14439shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14440shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14441libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14442library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14443soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14444install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14445postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14446postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14447finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14448finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14449hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14450sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14451configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14452configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14453hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14454enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14455enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14456enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14457old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14458striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14459 14460LTCC='$LTCC' 14461LTCFLAGS='$LTCFLAGS' 14462compiler='$compiler_DEFAULT' 14463 14464# A function that is used when there is no print builtin or printf. 14465func_fallback_echo () 14466{ 14467 eval 'cat <<_LTECHO_EOF 14468\$1 14469_LTECHO_EOF' 14470} 14471 14472# Quote evaled strings. 14473for var in AS \ 14474DLLTOOL \ 14475OBJDUMP \ 14476SHELL \ 14477ECHO \ 14478PATH_SEPARATOR \ 14479SED \ 14480GREP \ 14481EGREP \ 14482FGREP \ 14483LD \ 14484NM \ 14485LN_S \ 14486lt_SP2NL \ 14487lt_NL2SP \ 14488reload_flag \ 14489deplibs_check_method \ 14490file_magic_cmd \ 14491file_magic_glob \ 14492want_nocaseglob \ 14493sharedlib_from_linklib_cmd \ 14494AR \ 14495AR_FLAGS \ 14496archiver_list_spec \ 14497STRIP \ 14498RANLIB \ 14499CC \ 14500CFLAGS \ 14501compiler \ 14502lt_cv_sys_global_symbol_pipe \ 14503lt_cv_sys_global_symbol_to_cdecl \ 14504lt_cv_sys_global_symbol_to_import \ 14505lt_cv_sys_global_symbol_to_c_name_address \ 14506lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14507lt_cv_nm_interface \ 14508nm_file_list_spec \ 14509lt_cv_truncate_bin \ 14510lt_prog_compiler_no_builtin_flag \ 14511lt_prog_compiler_pic \ 14512lt_prog_compiler_wl \ 14513lt_prog_compiler_static \ 14514lt_cv_prog_compiler_c_o \ 14515need_locks \ 14516MANIFEST_TOOL \ 14517DSYMUTIL \ 14518NMEDIT \ 14519LIPO \ 14520OTOOL \ 14521OTOOL64 \ 14522shrext_cmds \ 14523export_dynamic_flag_spec \ 14524whole_archive_flag_spec \ 14525compiler_needs_object \ 14526with_gnu_ld \ 14527allow_undefined_flag \ 14528no_undefined_flag \ 14529hardcode_libdir_flag_spec \ 14530hardcode_libdir_separator \ 14531exclude_expsyms \ 14532include_expsyms \ 14533file_list_spec \ 14534variables_saved_for_relink \ 14535libname_spec \ 14536library_names_spec \ 14537soname_spec \ 14538install_override_mode \ 14539finish_eval \ 14540old_striplib \ 14541striplib; do 14542 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14543 *[\\\\\\\`\\"\\\$]*) 14544 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14545 ;; 14546 *) 14547 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14548 ;; 14549 esac 14550done 14551 14552# Double-quote double-evaled strings. 14553for var in reload_cmds \ 14554old_postinstall_cmds \ 14555old_postuninstall_cmds \ 14556old_archive_cmds \ 14557extract_expsyms_cmds \ 14558old_archive_from_new_cmds \ 14559old_archive_from_expsyms_cmds \ 14560archive_cmds \ 14561archive_expsym_cmds \ 14562module_cmds \ 14563module_expsym_cmds \ 14564export_symbols_cmds \ 14565prelink_cmds \ 14566postlink_cmds \ 14567postinstall_cmds \ 14568postuninstall_cmds \ 14569finish_cmds \ 14570sys_lib_search_path_spec \ 14571configure_time_dlsearch_path \ 14572configure_time_lt_sys_library_path; do 14573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14574 *[\\\\\\\`\\"\\\$]*) 14575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14576 ;; 14577 *) 14578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14579 ;; 14580 esac 14581done 14582 14583ac_aux_dir='$ac_aux_dir' 14584 14585# See if we are running on zsh, and set the options that allow our 14586# commands through without removal of \ escapes INIT. 14587if test -n "\${ZSH_VERSION+set}"; then 14588 setopt NO_GLOB_SUBST 14589fi 14590 14591 14592 PACKAGE='$PACKAGE' 14593 VERSION='$VERSION' 14594 RM='$RM' 14595 ofile='$ofile' 14596 14597 14598 14599 14600_ACEOF 14601 14602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14603 14604# Handling of arguments. 14605for ac_config_target in $ac_config_targets 14606do 14607 case $ac_config_target in 14608 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;; 14609 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14610 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14611 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14612 "libjpeg.pc") CONFIG_FILES="$CONFIG_FILES libjpeg.pc" ;; 14613 14614 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14615 esac 14616done 14617 14618 14619# If the user did not use the arguments to specify the items to instantiate, 14620# then the envvar interface is used. Set only those that are not. 14621# We use the long form for the default assignment because of an extremely 14622# bizarre bug on SunOS 4.1.3. 14623if $ac_need_defaults; then 14624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14627fi 14628 14629# Have a temporary directory for convenience. Make it in the build tree 14630# simply because there is no reason against having it here, and in addition, 14631# creating and moving files from /tmp can sometimes cause problems. 14632# Hook for its removal unless debugging. 14633# Note that there is a small window in which the directory will not be cleaned: 14634# after its creation but before its name has been assigned to `$tmp'. 14635$debug || 14636{ 14637 tmp= ac_tmp= 14638 trap 'exit_status=$? 14639 : "${ac_tmp:=$tmp}" 14640 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14641' 0 14642 trap 'as_fn_exit 1' 1 2 13 15 14643} 14644# Create a (secure) tmp directory for tmp files. 14645 14646{ 14647 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14648 test -d "$tmp" 14649} || 14650{ 14651 tmp=./conf$$-$RANDOM 14652 (umask 077 && mkdir "$tmp") 14653} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14654ac_tmp=$tmp 14655 14656# Set up the scripts for CONFIG_FILES section. 14657# No need to generate them if there are no CONFIG_FILES. 14658# This happens for instance with `./config.status config.h'. 14659if test -n "$CONFIG_FILES"; then 14660 14661 14662ac_cr=`echo X | tr X '\015'` 14663# On cygwin, bash can eat \r inside `` if the user requested igncr. 14664# But we know of no other shell where ac_cr would be empty at this 14665# point, so we can use a bashism as a fallback. 14666if test "x$ac_cr" = x; then 14667 eval ac_cr=\$\'\\r\' 14668fi 14669ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14670if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14671 ac_cs_awk_cr='\\r' 14672else 14673 ac_cs_awk_cr=$ac_cr 14674fi 14675 14676echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14677_ACEOF 14678 14679 14680{ 14681 echo "cat >conf$$subs.awk <<_ACEOF" && 14682 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14683 echo "_ACEOF" 14684} >conf$$subs.sh || 14685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14686ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14687ac_delim='%!_!# ' 14688for ac_last_try in false false false false false :; do 14689 . ./conf$$subs.sh || 14690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14691 14692 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14693 if test $ac_delim_n = $ac_delim_num; then 14694 break 14695 elif $ac_last_try; then 14696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14697 else 14698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14699 fi 14700done 14701rm -f conf$$subs.sh 14702 14703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14704cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14705_ACEOF 14706sed -n ' 14707h 14708s/^/S["/; s/!.*/"]=/ 14709p 14710g 14711s/^[^!]*!// 14712:repl 14713t repl 14714s/'"$ac_delim"'$// 14715t delim 14716:nl 14717h 14718s/\(.\{148\}\)..*/\1/ 14719t more1 14720s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14721p 14722n 14723b repl 14724:more1 14725s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14726p 14727g 14728s/.\{148\}// 14729t nl 14730:delim 14731h 14732s/\(.\{148\}\)..*/\1/ 14733t more2 14734s/["\\]/\\&/g; s/^/"/; s/$/"/ 14735p 14736b 14737:more2 14738s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14739p 14740g 14741s/.\{148\}// 14742t delim 14743' <conf$$subs.awk | sed ' 14744/^[^""]/{ 14745 N 14746 s/\n// 14747} 14748' >>$CONFIG_STATUS || ac_write_fail=1 14749rm -f conf$$subs.awk 14750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14751_ACAWK 14752cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14753 for (key in S) S_is_set[key] = 1 14754 FS = "" 14755 14756} 14757{ 14758 line = $ 0 14759 nfields = split(line, field, "@") 14760 substed = 0 14761 len = length(field[1]) 14762 for (i = 2; i < nfields; i++) { 14763 key = field[i] 14764 keylen = length(key) 14765 if (S_is_set[key]) { 14766 value = S[key] 14767 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14768 len += length(value) + length(field[++i]) 14769 substed = 1 14770 } else 14771 len += 1 + keylen 14772 } 14773 14774 print line 14775} 14776 14777_ACAWK 14778_ACEOF 14779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14780if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14781 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14782else 14783 cat 14784fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14785 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14786_ACEOF 14787 14788# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14789# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14790# trailing colons and then remove the whole line if VPATH becomes empty 14791# (actually we leave an empty line to preserve line numbers). 14792if test "x$srcdir" = x.; then 14793 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14794h 14795s/// 14796s/^/:/ 14797s/[ ]*$/:/ 14798s/:\$(srcdir):/:/g 14799s/:\${srcdir}:/:/g 14800s/:@srcdir@:/:/g 14801s/^:*// 14802s/:*$// 14803x 14804s/\(=[ ]*\).*/\1/ 14805G 14806s/\n// 14807s/^[^=]*=[ ]*$// 14808}' 14809fi 14810 14811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14812fi # test -n "$CONFIG_FILES" 14813 14814# Set up the scripts for CONFIG_HEADERS section. 14815# No need to generate them if there are no CONFIG_HEADERS. 14816# This happens for instance with `./config.status Makefile'. 14817if test -n "$CONFIG_HEADERS"; then 14818cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14819BEGIN { 14820_ACEOF 14821 14822# Transform confdefs.h into an awk script `defines.awk', embedded as 14823# here-document in config.status, that substitutes the proper values into 14824# config.h.in to produce config.h. 14825 14826# Create a delimiter string that does not exist in confdefs.h, to ease 14827# handling of long lines. 14828ac_delim='%!_!# ' 14829for ac_last_try in false false :; do 14830 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14831 if test -z "$ac_tt"; then 14832 break 14833 elif $ac_last_try; then 14834 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14835 else 14836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14837 fi 14838done 14839 14840# For the awk script, D is an array of macro values keyed by name, 14841# likewise P contains macro parameters if any. Preserve backslash 14842# newline sequences. 14843 14844ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14845sed -n ' 14846s/.\{148\}/&'"$ac_delim"'/g 14847t rset 14848:rset 14849s/^[ ]*#[ ]*define[ ][ ]*/ / 14850t def 14851d 14852:def 14853s/\\$// 14854t bsnl 14855s/["\\]/\\&/g 14856s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14857D["\1"]=" \3"/p 14858s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14859d 14860:bsnl 14861s/["\\]/\\&/g 14862s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14863D["\1"]=" \3\\\\\\n"\\/p 14864t cont 14865s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14866t cont 14867d 14868:cont 14869n 14870s/.\{148\}/&'"$ac_delim"'/g 14871t clear 14872:clear 14873s/\\$// 14874t bsnlc 14875s/["\\]/\\&/g; s/^/"/; s/$/"/p 14876d 14877:bsnlc 14878s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14879b cont 14880' <confdefs.h | sed ' 14881s/'"$ac_delim"'/"\\\ 14882"/g' >>$CONFIG_STATUS || ac_write_fail=1 14883 14884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14885 for (key in D) D_is_set[key] = 1 14886 FS = "" 14887} 14888/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14889 line = \$ 0 14890 split(line, arg, " ") 14891 if (arg[1] == "#") { 14892 defundef = arg[2] 14893 mac1 = arg[3] 14894 } else { 14895 defundef = substr(arg[1], 2) 14896 mac1 = arg[2] 14897 } 14898 split(mac1, mac2, "(") #) 14899 macro = mac2[1] 14900 prefix = substr(line, 1, index(line, defundef) - 1) 14901 if (D_is_set[macro]) { 14902 # Preserve the white space surrounding the "#". 14903 print prefix "define", macro P[macro] D[macro] 14904 next 14905 } else { 14906 # Replace #undef with comments. This is necessary, for example, 14907 # in the case of _POSIX_SOURCE, which is predefined and required 14908 # on some systems where configure will not decide to define it. 14909 if (defundef == "undef") { 14910 print "/*", prefix defundef, macro, "*/" 14911 next 14912 } 14913 } 14914} 14915{ print } 14916_ACAWK 14917_ACEOF 14918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14919 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14920fi # test -n "$CONFIG_HEADERS" 14921 14922 14923eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14924shift 14925for ac_tag 14926do 14927 case $ac_tag in 14928 :[FHLC]) ac_mode=$ac_tag; continue;; 14929 esac 14930 case $ac_mode$ac_tag in 14931 :[FHL]*:*);; 14932 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14933 :[FH]-) ac_tag=-:-;; 14934 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14935 esac 14936 ac_save_IFS=$IFS 14937 IFS=: 14938 set x $ac_tag 14939 IFS=$ac_save_IFS 14940 shift 14941 ac_file=$1 14942 shift 14943 14944 case $ac_mode in 14945 :L) ac_source=$1;; 14946 :[FH]) 14947 ac_file_inputs= 14948 for ac_f 14949 do 14950 case $ac_f in 14951 -) ac_f="$ac_tmp/stdin";; 14952 *) # Look for the file first in the build tree, then in the source tree 14953 # (if the path is not absolute). The absolute path cannot be DOS-style, 14954 # because $ac_f cannot contain `:'. 14955 test -f "$ac_f" || 14956 case $ac_f in 14957 [\\/$]*) false;; 14958 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14959 esac || 14960 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14961 esac 14962 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14963 as_fn_append ac_file_inputs " '$ac_f'" 14964 done 14965 14966 # Let's still pretend it is `configure' which instantiates (i.e., don't 14967 # use $as_me), people would be surprised to read: 14968 # /* config.h. Generated by config.status. */ 14969 configure_input='Generated from '` 14970 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14971 `' by configure.' 14972 if test x"$ac_file" != x-; then 14973 configure_input="$ac_file. $configure_input" 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14975$as_echo "$as_me: creating $ac_file" >&6;} 14976 fi 14977 # Neutralize special characters interpreted by sed in replacement strings. 14978 case $configure_input in #( 14979 *\&* | *\|* | *\\* ) 14980 ac_sed_conf_input=`$as_echo "$configure_input" | 14981 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14982 *) ac_sed_conf_input=$configure_input;; 14983 esac 14984 14985 case $ac_tag in 14986 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14988 esac 14989 ;; 14990 esac 14991 14992 ac_dir=`$as_dirname -- "$ac_file" || 14993$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14994 X"$ac_file" : 'X\(//\)[^/]' \| \ 14995 X"$ac_file" : 'X\(//\)$' \| \ 14996 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14997$as_echo X"$ac_file" | 14998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14999 s//\1/ 15000 q 15001 } 15002 /^X\(\/\/\)[^/].*/{ 15003 s//\1/ 15004 q 15005 } 15006 /^X\(\/\/\)$/{ 15007 s//\1/ 15008 q 15009 } 15010 /^X\(\/\).*/{ 15011 s//\1/ 15012 q 15013 } 15014 s/.*/./; q'` 15015 as_dir="$ac_dir"; as_fn_mkdir_p 15016 ac_builddir=. 15017 15018case "$ac_dir" in 15019.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15020*) 15021 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15022 # A ".." for each directory in $ac_dir_suffix. 15023 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15024 case $ac_top_builddir_sub in 15025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15027 esac ;; 15028esac 15029ac_abs_top_builddir=$ac_pwd 15030ac_abs_builddir=$ac_pwd$ac_dir_suffix 15031# for backward compatibility: 15032ac_top_builddir=$ac_top_build_prefix 15033 15034case $srcdir in 15035 .) # We are building in place. 15036 ac_srcdir=. 15037 ac_top_srcdir=$ac_top_builddir_sub 15038 ac_abs_top_srcdir=$ac_pwd ;; 15039 [\\/]* | ?:[\\/]* ) # Absolute name. 15040 ac_srcdir=$srcdir$ac_dir_suffix; 15041 ac_top_srcdir=$srcdir 15042 ac_abs_top_srcdir=$srcdir ;; 15043 *) # Relative name. 15044 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15045 ac_top_srcdir=$ac_top_build_prefix$srcdir 15046 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15047esac 15048ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15049 15050 15051 case $ac_mode in 15052 :F) 15053 # 15054 # CONFIG_FILE 15055 # 15056 15057 case $INSTALL in 15058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15059 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15060 esac 15061 ac_MKDIR_P=$MKDIR_P 15062 case $MKDIR_P in 15063 [\\/$]* | ?:[\\/]* ) ;; 15064 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15065 esac 15066_ACEOF 15067 15068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15069# If the template does not know about datarootdir, expand it. 15070# FIXME: This hack should be removed a few years after 2.60. 15071ac_datarootdir_hack=; ac_datarootdir_seen= 15072ac_sed_dataroot=' 15073/datarootdir/ { 15074 p 15075 q 15076} 15077/@datadir@/p 15078/@docdir@/p 15079/@infodir@/p 15080/@localedir@/p 15081/@mandir@/p' 15082case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15083*datarootdir*) ac_datarootdir_seen=yes;; 15084*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15086$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15087_ACEOF 15088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15089 ac_datarootdir_hack=' 15090 s&@datadir@&$datadir&g 15091 s&@docdir@&$docdir&g 15092 s&@infodir@&$infodir&g 15093 s&@localedir@&$localedir&g 15094 s&@mandir@&$mandir&g 15095 s&\\\${datarootdir}&$datarootdir&g' ;; 15096esac 15097_ACEOF 15098 15099# Neutralize VPATH when `$srcdir' = `.'. 15100# Shell code in configure.ac might set extrasub. 15101# FIXME: do we really want to maintain this feature? 15102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15103ac_sed_extra="$ac_vpsub 15104$extrasub 15105_ACEOF 15106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15107:t 15108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15109s|@configure_input@|$ac_sed_conf_input|;t t 15110s&@top_builddir@&$ac_top_builddir_sub&;t t 15111s&@top_build_prefix@&$ac_top_build_prefix&;t t 15112s&@srcdir@&$ac_srcdir&;t t 15113s&@abs_srcdir@&$ac_abs_srcdir&;t t 15114s&@top_srcdir@&$ac_top_srcdir&;t t 15115s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15116s&@builddir@&$ac_builddir&;t t 15117s&@abs_builddir@&$ac_abs_builddir&;t t 15118s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15119s&@INSTALL@&$ac_INSTALL&;t t 15120s&@MKDIR_P@&$ac_MKDIR_P&;t t 15121$ac_datarootdir_hack 15122" 15123eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15124 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15125 15126test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15127 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15128 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15129 "$ac_tmp/out"`; test -z "$ac_out"; } && 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15131which seems to be undefined. Please make sure it is defined" >&5 15132$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15133which seems to be undefined. Please make sure it is defined" >&2;} 15134 15135 rm -f "$ac_tmp/stdin" 15136 case $ac_file in 15137 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15138 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15139 esac \ 15140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15141 ;; 15142 :H) 15143 # 15144 # CONFIG_HEADER 15145 # 15146 if test x"$ac_file" != x-; then 15147 { 15148 $as_echo "/* $configure_input */" \ 15149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15150 } >"$ac_tmp/config.h" \ 15151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15152 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15153 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15154$as_echo "$as_me: $ac_file is unchanged" >&6;} 15155 else 15156 rm -f "$ac_file" 15157 mv "$ac_tmp/config.h" "$ac_file" \ 15158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15159 fi 15160 else 15161 $as_echo "/* $configure_input */" \ 15162 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15163 || as_fn_error $? "could not create -" "$LINENO" 5 15164 fi 15165# Compute "$ac_file"'s index in $config_headers. 15166_am_arg="$ac_file" 15167_am_stamp_count=1 15168for _am_header in $config_headers :; do 15169 case $_am_header in 15170 $_am_arg | $_am_arg:* ) 15171 break ;; 15172 * ) 15173 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15174 esac 15175done 15176echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15177$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15178 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15179 X"$_am_arg" : 'X\(//\)$' \| \ 15180 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15181$as_echo X"$_am_arg" | 15182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15183 s//\1/ 15184 q 15185 } 15186 /^X\(\/\/\)[^/].*/{ 15187 s//\1/ 15188 q 15189 } 15190 /^X\(\/\/\)$/{ 15191 s//\1/ 15192 q 15193 } 15194 /^X\(\/\).*/{ 15195 s//\1/ 15196 q 15197 } 15198 s/.*/./; q'`/stamp-h$_am_stamp_count 15199 ;; 15200 15201 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15202$as_echo "$as_me: executing $ac_file commands" >&6;} 15203 ;; 15204 esac 15205 15206 15207 case $ac_file$ac_mode in 15208 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15209 # Older Autoconf quotes --file arguments for eval, but not when files 15210 # are listed without --file. Let's play safe and only enable the eval 15211 # if we detect the quoting. 15212 # TODO: see whether this extra hack can be removed once we start 15213 # requiring Autoconf 2.70 or later. 15214 case $CONFIG_FILES in #( 15215 *\'*) : 15216 eval set x "$CONFIG_FILES" ;; #( 15217 *) : 15218 set x $CONFIG_FILES ;; #( 15219 *) : 15220 ;; 15221esac 15222 shift 15223 # Used to flag and report bootstrapping failures. 15224 am_rc=0 15225 for am_mf 15226 do 15227 # Strip MF so we end up with the name of the file. 15228 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15229 # Check whether this is an Automake generated Makefile which includes 15230 # dependency-tracking related rules and includes. 15231 # Grep'ing the whole file directly is not great: AIX grep has a line 15232 # limit of 2048, but all sed's we know have understand at least 4000. 15233 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15234 || continue 15235 am_dirpart=`$as_dirname -- "$am_mf" || 15236$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15237 X"$am_mf" : 'X\(//\)[^/]' \| \ 15238 X"$am_mf" : 'X\(//\)$' \| \ 15239 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15240$as_echo X"$am_mf" | 15241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15242 s//\1/ 15243 q 15244 } 15245 /^X\(\/\/\)[^/].*/{ 15246 s//\1/ 15247 q 15248 } 15249 /^X\(\/\/\)$/{ 15250 s//\1/ 15251 q 15252 } 15253 /^X\(\/\).*/{ 15254 s//\1/ 15255 q 15256 } 15257 s/.*/./; q'` 15258 am_filepart=`$as_basename -- "$am_mf" || 15259$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15260 X"$am_mf" : 'X\(//\)$' \| \ 15261 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15262$as_echo X/"$am_mf" | 15263 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15264 s//\1/ 15265 q 15266 } 15267 /^X\/\(\/\/\)$/{ 15268 s//\1/ 15269 q 15270 } 15271 /^X\/\(\/\).*/{ 15272 s//\1/ 15273 q 15274 } 15275 s/.*/./; q'` 15276 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15277 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15278 | $MAKE -f - am--depfiles" >&5 15279 (cd "$am_dirpart" \ 15280 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15281 | $MAKE -f - am--depfiles) >&5 2>&5 15282 ac_status=$? 15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15284 (exit $ac_status); } || am_rc=$? 15285 done 15286 if test $am_rc -ne 0; then 15287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15289as_fn_error $? "Something went wrong bootstrapping makefile fragments 15290 for automatic dependency tracking. Try re-running configure with the 15291 '--disable-dependency-tracking' option to at least be able to build 15292 the package (albeit without support for automatic dependency tracking). 15293See \`config.log' for more details" "$LINENO" 5; } 15294 fi 15295 { am_dirpart=; unset am_dirpart;} 15296 { am_filepart=; unset am_filepart;} 15297 { am_mf=; unset am_mf;} 15298 { am_rc=; unset am_rc;} 15299 rm -f conftest-deps.mk 15300} 15301 ;; 15302 "libtool":C) 15303 15304 # See if we are running on zsh, and set the options that allow our 15305 # commands through without removal of \ escapes. 15306 if test -n "${ZSH_VERSION+set}"; then 15307 setopt NO_GLOB_SUBST 15308 fi 15309 15310 cfgfile=${ofile}T 15311 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15312 $RM "$cfgfile" 15313 15314 cat <<_LT_EOF >> "$cfgfile" 15315#! $SHELL 15316# Generated automatically by $as_me ($PACKAGE) $VERSION 15317# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15318# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15319 15320# Provide generalized library-building support services. 15321# Written by Gordon Matzigkeit, 1996 15322 15323# Copyright (C) 2014 Free Software Foundation, Inc. 15324# This is free software; see the source for copying conditions. There is NO 15325# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15326 15327# GNU Libtool is free software; you can redistribute it and/or modify 15328# it under the terms of the GNU General Public License as published by 15329# the Free Software Foundation; either version 2 of of the License, or 15330# (at your option) any later version. 15331# 15332# As a special exception to the GNU General Public License, if you 15333# distribute this file as part of a program or library that is built 15334# using GNU Libtool, you may include this file under the same 15335# distribution terms that you use for the rest of that program. 15336# 15337# GNU Libtool is distributed in the hope that it will be useful, but 15338# WITHOUT ANY WARRANTY; without even the implied warranty of 15339# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15340# GNU General Public License for more details. 15341# 15342# You should have received a copy of the GNU General Public License 15343# along with this program. If not, see <http://www.gnu.org/licenses/>. 15344 15345 15346# The names of the tagged configurations supported by this script. 15347available_tags='' 15348 15349# Configured defaults for sys_lib_dlsearch_path munging. 15350: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15351 15352# ### BEGIN LIBTOOL CONFIG 15353 15354# Assembler program. 15355AS=$lt_AS 15356 15357# DLL creation program. 15358DLLTOOL=$lt_DLLTOOL 15359 15360# Object dumper program. 15361OBJDUMP=$lt_OBJDUMP 15362 15363# Which release of libtool.m4 was used? 15364macro_version=$macro_version 15365macro_revision=$macro_revision 15366 15367# Whether or not to build shared libraries. 15368build_libtool_libs=$enable_shared 15369 15370# Whether or not to build static libraries. 15371build_old_libs=$enable_static 15372 15373# What type of objects to build. 15374pic_mode=$pic_mode 15375 15376# Whether or not to optimize for fast installation. 15377fast_install=$enable_fast_install 15378 15379# Shared archive member basename,for filename based shared library versioning on AIX. 15380shared_archive_member_spec=$shared_archive_member_spec 15381 15382# Shell to use when invoking shell scripts. 15383SHELL=$lt_SHELL 15384 15385# An echo program that protects backslashes. 15386ECHO=$lt_ECHO 15387 15388# The PATH separator for the build system. 15389PATH_SEPARATOR=$lt_PATH_SEPARATOR 15390 15391# The host system. 15392host_alias=$host_alias 15393host=$host 15394host_os=$host_os 15395 15396# The build system. 15397build_alias=$build_alias 15398build=$build 15399build_os=$build_os 15400 15401# A sed program that does not truncate output. 15402SED=$lt_SED 15403 15404# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15405Xsed="\$SED -e 1s/^X//" 15406 15407# A grep program that handles long lines. 15408GREP=$lt_GREP 15409 15410# An ERE matcher. 15411EGREP=$lt_EGREP 15412 15413# A literal string matcher. 15414FGREP=$lt_FGREP 15415 15416# A BSD- or MS-compatible name lister. 15417NM=$lt_NM 15418 15419# Whether we need soft or hard links. 15420LN_S=$lt_LN_S 15421 15422# What is the maximum length of a command? 15423max_cmd_len=$max_cmd_len 15424 15425# Object file suffix (normally "o"). 15426objext=$ac_objext 15427 15428# Executable file suffix (normally ""). 15429exeext=$exeext 15430 15431# whether the shell understands "unset". 15432lt_unset=$lt_unset 15433 15434# turn spaces into newlines. 15435SP2NL=$lt_lt_SP2NL 15436 15437# turn newlines into spaces. 15438NL2SP=$lt_lt_NL2SP 15439 15440# convert \$build file names to \$host format. 15441to_host_file_cmd=$lt_cv_to_host_file_cmd 15442 15443# convert \$build files to toolchain format. 15444to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15445 15446# Method to check whether dependent libraries are shared objects. 15447deplibs_check_method=$lt_deplibs_check_method 15448 15449# Command to use when deplibs_check_method = "file_magic". 15450file_magic_cmd=$lt_file_magic_cmd 15451 15452# How to find potential files when deplibs_check_method = "file_magic". 15453file_magic_glob=$lt_file_magic_glob 15454 15455# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15456want_nocaseglob=$lt_want_nocaseglob 15457 15458# Command to associate shared and link libraries. 15459sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15460 15461# The archiver. 15462AR=$lt_AR 15463 15464# Flags to create an archive. 15465AR_FLAGS=$lt_AR_FLAGS 15466 15467# How to feed a file listing to the archiver. 15468archiver_list_spec=$lt_archiver_list_spec 15469 15470# A symbol stripping program. 15471STRIP=$lt_STRIP 15472 15473# Commands used to install an old-style archive. 15474RANLIB=$lt_RANLIB 15475old_postinstall_cmds=$lt_old_postinstall_cmds 15476old_postuninstall_cmds=$lt_old_postuninstall_cmds 15477 15478# Whether to use a lock for old archive extraction. 15479lock_old_archive_extraction=$lock_old_archive_extraction 15480 15481# A C compiler. 15482LTCC=$lt_CC 15483 15484# LTCC compiler flags. 15485LTCFLAGS=$lt_CFLAGS 15486 15487# Take the output of nm and produce a listing of raw symbols and C names. 15488global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15489 15490# Transform the output of nm in a proper C declaration. 15491global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15492 15493# Transform the output of nm into a list of symbols to manually relocate. 15494global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15495 15496# Transform the output of nm in a C name address pair. 15497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15498 15499# Transform the output of nm in a C name address pair when lib prefix is needed. 15500global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15501 15502# The name lister interface. 15503nm_interface=$lt_lt_cv_nm_interface 15504 15505# Specify filename containing input files for \$NM. 15506nm_file_list_spec=$lt_nm_file_list_spec 15507 15508# The root where to search for dependent libraries,and where our libraries should be installed. 15509lt_sysroot=$lt_sysroot 15510 15511# Command to truncate a binary pipe. 15512lt_truncate_bin=$lt_lt_cv_truncate_bin 15513 15514# The name of the directory that contains temporary libtool files. 15515objdir=$objdir 15516 15517# Used to examine libraries when file_magic_cmd begins with "file". 15518MAGIC_CMD=$MAGIC_CMD 15519 15520# Must we lock files when doing compilation? 15521need_locks=$lt_need_locks 15522 15523# Manifest tool. 15524MANIFEST_TOOL=$lt_MANIFEST_TOOL 15525 15526# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15527DSYMUTIL=$lt_DSYMUTIL 15528 15529# Tool to change global to local symbols on Mac OS X. 15530NMEDIT=$lt_NMEDIT 15531 15532# Tool to manipulate fat objects and archives on Mac OS X. 15533LIPO=$lt_LIPO 15534 15535# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15536OTOOL=$lt_OTOOL 15537 15538# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15539OTOOL64=$lt_OTOOL64 15540 15541# Old archive suffix (normally "a"). 15542libext=$libext 15543 15544# Shared library suffix (normally ".so"). 15545shrext_cmds=$lt_shrext_cmds 15546 15547# The commands to extract the exported symbol list from a shared archive. 15548extract_expsyms_cmds=$lt_extract_expsyms_cmds 15549 15550# Variables whose values should be saved in libtool wrapper scripts and 15551# restored at link time. 15552variables_saved_for_relink=$lt_variables_saved_for_relink 15553 15554# Do we need the "lib" prefix for modules? 15555need_lib_prefix=$need_lib_prefix 15556 15557# Do we need a version for libraries? 15558need_version=$need_version 15559 15560# Library versioning type. 15561version_type=$version_type 15562 15563# Shared library runtime path variable. 15564runpath_var=$runpath_var 15565 15566# Shared library path variable. 15567shlibpath_var=$shlibpath_var 15568 15569# Is shlibpath searched before the hard-coded library search path? 15570shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15571 15572# Format of library name prefix. 15573libname_spec=$lt_libname_spec 15574 15575# List of archive names. First name is the real one, the rest are links. 15576# The last name is the one that the linker finds with -lNAME 15577library_names_spec=$lt_library_names_spec 15578 15579# The coded name of the library, if different from the real name. 15580soname_spec=$lt_soname_spec 15581 15582# Permission mode override for installation of shared libraries. 15583install_override_mode=$lt_install_override_mode 15584 15585# Command to use after installation of a shared archive. 15586postinstall_cmds=$lt_postinstall_cmds 15587 15588# Command to use after uninstallation of a shared archive. 15589postuninstall_cmds=$lt_postuninstall_cmds 15590 15591# Commands used to finish a libtool library installation in a directory. 15592finish_cmds=$lt_finish_cmds 15593 15594# As "finish_cmds", except a single script fragment to be evaled but 15595# not shown. 15596finish_eval=$lt_finish_eval 15597 15598# Whether we should hardcode library paths into libraries. 15599hardcode_into_libs=$hardcode_into_libs 15600 15601# Compile-time system search path for libraries. 15602sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15603 15604# Detected run-time system search path for libraries. 15605sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15606 15607# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15608configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15609 15610# Whether dlopen is supported. 15611dlopen_support=$enable_dlopen 15612 15613# Whether dlopen of programs is supported. 15614dlopen_self=$enable_dlopen_self 15615 15616# Whether dlopen of statically linked programs is supported. 15617dlopen_self_static=$enable_dlopen_self_static 15618 15619# Commands to strip libraries. 15620old_striplib=$lt_old_striplib 15621striplib=$lt_striplib 15622 15623 15624# The linker used to build libraries. 15625LD=$lt_LD 15626 15627# How to create reloadable object files. 15628reload_flag=$lt_reload_flag 15629reload_cmds=$lt_reload_cmds 15630 15631# Commands used to build an old-style archive. 15632old_archive_cmds=$lt_old_archive_cmds 15633 15634# A language specific compiler. 15635CC=$lt_compiler 15636 15637# Is the compiler the GNU compiler? 15638with_gcc=$GCC 15639 15640# Compiler flag to turn off builtin functions. 15641no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15642 15643# Additional compiler flags for building library objects. 15644pic_flag=$lt_lt_prog_compiler_pic 15645 15646# How to pass a linker flag through the compiler. 15647wl=$lt_lt_prog_compiler_wl 15648 15649# Compiler flag to prevent dynamic linking. 15650link_static_flag=$lt_lt_prog_compiler_static 15651 15652# Does compiler simultaneously support -c and -o options? 15653compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15654 15655# Whether or not to add -lc for building shared libraries. 15656build_libtool_need_lc=$archive_cmds_need_lc 15657 15658# Whether or not to disallow shared libs when runtime libs are static. 15659allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15660 15661# Compiler flag to allow reflexive dlopens. 15662export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15663 15664# Compiler flag to generate shared objects directly from archives. 15665whole_archive_flag_spec=$lt_whole_archive_flag_spec 15666 15667# Whether the compiler copes with passing no objects directly. 15668compiler_needs_object=$lt_compiler_needs_object 15669 15670# Create an old-style archive from a shared archive. 15671old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15672 15673# Create a temporary old-style archive to link instead of a shared archive. 15674old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15675 15676# Commands used to build a shared archive. 15677archive_cmds=$lt_archive_cmds 15678archive_expsym_cmds=$lt_archive_expsym_cmds 15679 15680# Commands used to build a loadable module if different from building 15681# a shared archive. 15682module_cmds=$lt_module_cmds 15683module_expsym_cmds=$lt_module_expsym_cmds 15684 15685# Whether we are building with GNU ld or not. 15686with_gnu_ld=$lt_with_gnu_ld 15687 15688# Flag that allows shared libraries with undefined symbols to be built. 15689allow_undefined_flag=$lt_allow_undefined_flag 15690 15691# Flag that enforces no undefined symbols. 15692no_undefined_flag=$lt_no_undefined_flag 15693 15694# Flag to hardcode \$libdir into a binary during linking. 15695# This must work even if \$libdir does not exist 15696hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15697 15698# Whether we need a single "-rpath" flag with a separated argument. 15699hardcode_libdir_separator=$lt_hardcode_libdir_separator 15700 15701# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15702# DIR into the resulting binary. 15703hardcode_direct=$hardcode_direct 15704 15705# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15706# DIR into the resulting binary and the resulting library dependency is 15707# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15708# library is relocated. 15709hardcode_direct_absolute=$hardcode_direct_absolute 15710 15711# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15712# into the resulting binary. 15713hardcode_minus_L=$hardcode_minus_L 15714 15715# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15716# into the resulting binary. 15717hardcode_shlibpath_var=$hardcode_shlibpath_var 15718 15719# Set to "yes" if building a shared library automatically hardcodes DIR 15720# into the library and all subsequent libraries and executables linked 15721# against it. 15722hardcode_automatic=$hardcode_automatic 15723 15724# Set to yes if linker adds runtime paths of dependent libraries 15725# to runtime path list. 15726inherit_rpath=$inherit_rpath 15727 15728# Whether libtool must link a program against all its dependency libraries. 15729link_all_deplibs=$link_all_deplibs 15730 15731# Set to "yes" if exported symbols are required. 15732always_export_symbols=$always_export_symbols 15733 15734# The commands to list exported symbols. 15735export_symbols_cmds=$lt_export_symbols_cmds 15736 15737# Symbols that should not be listed in the preloaded symbols. 15738exclude_expsyms=$lt_exclude_expsyms 15739 15740# Symbols that must always be exported. 15741include_expsyms=$lt_include_expsyms 15742 15743# Commands necessary for linking programs (against libraries) with templates. 15744prelink_cmds=$lt_prelink_cmds 15745 15746# Commands necessary for finishing linking programs. 15747postlink_cmds=$lt_postlink_cmds 15748 15749# Specify filename containing input files. 15750file_list_spec=$lt_file_list_spec 15751 15752# How to hardcode a shared library path into an executable. 15753hardcode_action=$hardcode_action 15754 15755# ### END LIBTOOL CONFIG 15756 15757_LT_EOF 15758 15759 cat <<'_LT_EOF' >> "$cfgfile" 15760 15761# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15762 15763# func_munge_path_list VARIABLE PATH 15764# ----------------------------------- 15765# VARIABLE is name of variable containing _space_ separated list of 15766# directories to be munged by the contents of PATH, which is string 15767# having a format: 15768# "DIR[:DIR]:" 15769# string "DIR[ DIR]" will be prepended to VARIABLE 15770# ":DIR[:DIR]" 15771# string "DIR[ DIR]" will be appended to VARIABLE 15772# "DIRP[:DIRP]::[DIRA:]DIRA" 15773# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15774# "DIRA[ DIRA]" will be appended to VARIABLE 15775# "DIR[:DIR]" 15776# VARIABLE will be replaced by "DIR[ DIR]" 15777func_munge_path_list () 15778{ 15779 case x$2 in 15780 x) 15781 ;; 15782 *:) 15783 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15784 ;; 15785 x:*) 15786 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15787 ;; 15788 *::*) 15789 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15790 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15791 ;; 15792 *) 15793 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15794 ;; 15795 esac 15796} 15797 15798 15799# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15800func_cc_basename () 15801{ 15802 for cc_temp in $*""; do 15803 case $cc_temp in 15804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15806 \-*) ;; 15807 *) break;; 15808 esac 15809 done 15810 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15811} 15812 15813 15814# ### END FUNCTIONS SHARED WITH CONFIGURE 15815 15816_LT_EOF 15817 15818 case $host_os in 15819 aix3*) 15820 cat <<\_LT_EOF >> "$cfgfile" 15821# AIX sometimes has problems with the GCC collect2 program. For some 15822# reason, if we set the COLLECT_NAMES environment variable, the problems 15823# vanish in a puff of smoke. 15824if test set != "${COLLECT_NAMES+set}"; then 15825 COLLECT_NAMES= 15826 export COLLECT_NAMES 15827fi 15828_LT_EOF 15829 ;; 15830 esac 15831 15832 15833ltmain=$ac_aux_dir/ltmain.sh 15834 15835 15836 # We use sed instead of cat because bash on DJGPP gets confused if 15837 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15838 # text mode, it properly converts lines to CR/LF. This bash problem 15839 # is reportedly fixed, but why not run on old versions too? 15840 sed '$q' "$ltmain" >> "$cfgfile" \ 15841 || (rm -f "$cfgfile"; exit 1) 15842 15843 mv -f "$cfgfile" "$ofile" || 15844 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15845 chmod +x "$ofile" 15846 15847 ;; 15848 15849 esac 15850done # for ac_tag 15851 15852 15853as_fn_exit 0 15854_ACEOF 15855ac_clean_files=$ac_clean_files_save 15856 15857test $ac_write_fail = 0 || 15858 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15859 15860 15861# configure is writing to config.log, and then calls config.status. 15862# config.status does its own redirection, appending to config.log. 15863# Unfortunately, on DOS this fails, as config.log is still kept open 15864# by configure, so config.status won't be able to write to it; its 15865# output is simply discarded. So we exec the FD to /dev/null, 15866# effectively closing config.log, so it can be properly (re)opened and 15867# appended to by config.status. When coming back to configure, we 15868# need to make the FD available again. 15869if test "$no_create" != yes; then 15870 ac_cs_success=: 15871 ac_config_status_args= 15872 test "$silent" = yes && 15873 ac_config_status_args="$ac_config_status_args --quiet" 15874 exec 5>/dev/null 15875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15876 exec 5>>config.log 15877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15878 # would make configure fail if this is the last instruction. 15879 $ac_cs_success || as_fn_exit 1 15880fi 15881if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15883$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15884fi 15885 15886