1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for opcodes 2.42. 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='opcodes' 589PACKAGE_TARNAME='opcodes' 590PACKAGE_VERSION='2.42' 591PACKAGE_STRING='opcodes 2.42' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="z8k-dis.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632gt_needs= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637BFD_MACHINES 638archdefs 639SHARED_DEPENDENCIES 640SHARED_LIBADD 641SHARED_LDFLAGS 642BUILD_LIB_DEPS 643BUILD_LIBS 644LIBM 645cgendir 646CGEN_MAINT_FALSE 647CGEN_MAINT_TRUE 648HDEFINES 649ENABLE_BFD_64_BIT_FALSE 650ENABLE_BFD_64_BIT_TRUE 651EXEEXT_FOR_BUILD 652CC_FOR_BUILD 653CATOBJEXT 654GENCAT 655INSTOBJEXT 656DATADIRNAME 657CATALOGS 658INCINTL 659LIBINTL_DEP 660POSUB 661LTLIBINTL 662LIBINTL 663INTLLIBS 664LTLIBICONV 665LIBICONV 666INTL_MACOSX_LIBS 667MSGMERGE 668XGETTEXT 669GMSGFMT 670MSGFMT 671USE_NLS 672MKINSTALLDIRS 673bfdincludedir 674bfdlibdir 675target_noncanonical 676host_noncanonical 677INSTALL_LIBBFD_FALSE 678INSTALL_LIBBFD_TRUE 679MAINT 680MAINTAINER_MODE_FALSE 681MAINTAINER_MODE_TRUE 682WARN_WRITE_STRINGS 683NO_WERROR 684WARN_CFLAGS_FOR_BUILD 685WARN_CFLAGS 686OTOOL64 687OTOOL 688LIPO 689NMEDIT 690DSYMUTIL 691OBJDUMP 692LN_S 693NM 694ac_ct_DUMPBIN 695DUMPBIN 696LD 697FGREP 698SED 699LIBTOOL 700RANLIB 701AR 702EGREP 703GREP 704CPP 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__quote 713am__include 714DEPDIR 715OBJEXT 716EXEEXT 717ac_ct_CC 718CPPFLAGS 719LDFLAGS 720CFLAGS 721CC 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_os 750target_vendor 751target_cpu 752target 753host_os 754host_vendor 755host_cpu 756host 757build_os 758build_vendor 759build_cpu 760build 761target_alias 762host_alias 763build_alias 764LIBS 765ECHO_T 766ECHO_N 767ECHO_C 768DEFS 769mandir 770localedir 771libdir 772psdir 773pdfdir 774dvidir 775htmldir 776infodir 777docdir 778oldincludedir 779includedir 780localstatedir 781sharedstatedir 782sysconfdir 783datadir 784datarootdir 785libexecdir 786sbindir 787bindir 788program_transform_name 789prefix 790exec_prefix 791PACKAGE_URL 792PACKAGE_BUGREPORT 793PACKAGE_STRING 794PACKAGE_VERSION 795PACKAGE_TARNAME 796PACKAGE_NAME 797PATH_SEPARATOR 798SHELL' 799ac_subst_files='' 800ac_user_opts=' 801enable_option_checking 802enable_silent_rules 803enable_dependency_tracking 804enable_shared 805enable_static 806with_pic 807enable_fast_install 808with_gnu_ld 809enable_libtool_lock 810enable_checking 811enable_targets 812enable_werror 813enable_build_warnings 814enable_maintainer_mode 815enable_install_libbfd 816enable_nls 817enable_rpath 818with_libiconv_prefix 819with_libiconv_type 820with_libintl_prefix 821with_libintl_type 822enable_64_bit_bfd 823enable_cgen_maint 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CPP' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292fi 1293 1294ac_tool_prefix= 1295test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297test "$silent" = yes && exec 6>/dev/null 1298 1299 1300ac_pwd=`pwd` && test -n "$ac_pwd" && 1301ac_ls_di=`ls -di .` && 1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308# Find the source files, if location was not specified. 1309if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317$as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339else 1340 ac_srcdir_defaulted=no 1341fi 1342if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345fi 1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350# When building in place, set srcdir=. 1351if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353fi 1354# Remove unnecessary trailing slashes from srcdir. 1355# Double slashes in file names in object file debugging info 1356# mess up M-x gdb in Emacs. 1357case $srcdir in 1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359esac 1360for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365done 1366 1367# 1368# Report the --help message. 1369# 1370if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374\`configure' configures opcodes 2.42 to adapt to many kinds of systems. 1375 1376Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381Defaults for the options are specified in brackets. 1382 1383Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400By default, \`make install' will install all the files in 1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403for instance \`--prefix=\$HOME'. 1404 1405For better control, use the options below. 1406 1407Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427_ACEOF 1428 1429 cat <<\_ACEOF 1430 1431Program names: 1432 --program-prefix=PREFIX prepend PREFIX to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439 --target=TARGET configure for building compilers for TARGET [HOST] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of opcodes 2.42:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-silent-rules less verbose build output (undo: "make V=1") 1454 --disable-silent-rules verbose build output (undo: "make V=0") 1455 --enable-dependency-tracking 1456 do not reject slow dependency extractors 1457 --disable-dependency-tracking 1458 speeds up one-time build 1459 --enable-shared[=PKGS] build shared libraries [default=no] 1460 --enable-static[=PKGS] build static libraries [default=yes] 1461 --enable-fast-install[=PKGS] 1462 optimize for fast installation [default=yes] 1463 --disable-libtool-lock avoid locking (might break parallel builds) 1464 --enable-checking enable run-time checks 1465 --enable-targets alternative target configurations 1466 --enable-werror treat compile warnings as errors 1467 --enable-build-warnings enable build-time compiler warnings 1468 --enable-maintainer-mode 1469 enable make rules and dependencies not useful (and 1470 sometimes confusing) to the casual installer 1471 --enable-install-libbfd controls installation of libbfd and related headers 1472 --disable-nls do not use Native Language Support 1473 --disable-rpath do not hardcode runtime library paths 1474 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1475 --enable-cgen-maint=dir build cgen generated files 1476 1477Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-pic try to use only PIC/non-PIC objects [default=use 1481 both] 1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1483 --with-gnu-ld assume the C compiler uses GNU ld default=no 1484 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1485 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1486 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1487 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1488 --without-libintl-prefix don't search for libintl in includedir and libdir 1489 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1490 1491Some influential environment variables: 1492 CC C compiler command 1493 CFLAGS C compiler flags 1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1495 nonstandard directory <lib dir> 1496 LIBS libraries to pass to the linker, e.g. -l<library> 1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1498 you have headers in a nonstandard directory <include dir> 1499 CPP C preprocessor 1500 1501Use these variables to override the choices made by `configure' or to help 1502it to find libraries and programs with nonstandard names/locations. 1503 1504Report bugs to the package provider. 1505_ACEOF 1506ac_status=$? 1507fi 1508 1509if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || 1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1514 continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567opcodes configure 2.42 1568generated by GNU Autoconf 2.69 1569 1570Copyright (C) 2012 Free Software Foundation, Inc. 1571This configure script is free software; the Free Software Foundation 1572gives unlimited permission to copy, distribute and modify it. 1573_ACEOF 1574 exit 1575fi 1576 1577## ------------------------ ## 1578## Autoconf initialization. ## 1579## ------------------------ ## 1580 1581# ac_fn_c_try_compile LINENO 1582# -------------------------- 1583# Try to compile conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_compile () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext 1588 if { { ac_try="$ac_compile" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_compile") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest.$ac_objext; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_compile 1618 1619# ac_fn_c_try_cpp LINENO 1620# ---------------------- 1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1622ac_fn_c_try_cpp () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_cpp conftest.$ac_ext" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } > conftest.i && { 1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 }; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: failed program was:" >&5 1647sed 's/^/| /' conftest.$ac_ext >&5 1648 1649 ac_retval=1 1650fi 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654} # ac_fn_c_try_cpp 1655 1656# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1657# ------------------------------------------------------- 1658# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1659# the include files in INCLUDES and setting the cache variable VAR 1660# accordingly. 1661ac_fn_c_check_header_mongrel () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if eval \${$3+:} false; then : 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666$as_echo_n "checking for $2... " >&6; } 1667if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669fi 1670eval ac_res=\$$3 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672$as_echo "$ac_res" >&6; } 1673else 1674 # Is the header compilable? 1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1676$as_echo_n "checking $2 usability... " >&6; } 1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679$4 1680#include <$2> 1681_ACEOF 1682if ac_fn_c_try_compile "$LINENO"; then : 1683 ac_header_compiler=yes 1684else 1685 ac_header_compiler=no 1686fi 1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1689$as_echo "$ac_header_compiler" >&6; } 1690 1691# Is the header present? 1692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1693$as_echo_n "checking $2 presence... " >&6; } 1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1695/* end confdefs.h. */ 1696#include <$2> 1697_ACEOF 1698if ac_fn_c_try_cpp "$LINENO"; then : 1699 ac_header_preproc=yes 1700else 1701 ac_header_preproc=no 1702fi 1703rm -f conftest.err conftest.i conftest.$ac_ext 1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1705$as_echo "$ac_header_preproc" >&6; } 1706 1707# So? What about this header? 1708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1709 yes:no: ) 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1711$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1714 ;; 1715 no:yes:* ) 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1717$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1719$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1721$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1723$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1726 ;; 1727esac 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729$as_echo_n "checking for $2... " >&6; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732else 1733 eval "$3=\$ac_header_compiler" 1734fi 1735eval ac_res=\$$3 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737$as_echo "$ac_res" >&6; } 1738fi 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741} # ac_fn_c_check_header_mongrel 1742 1743# ac_fn_c_try_run LINENO 1744# ---------------------- 1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1746# that executables *can* be run. 1747ac_fn_c_try_run () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_link" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756$as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>&5 1758 ac_status=$? 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1761 { { case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_try") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; }; }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: program exited with status $ac_status" >&5 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=$ac_status 1778fi 1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_run 1784 1785# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1786# ------------------------------------------------------- 1787# Tests whether HEADER exists and can be compiled using the include files in 1788# INCLUDES, setting the cache variable VAR accordingly. 1789ac_fn_c_check_header_compile () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796else 1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798/* end confdefs.h. */ 1799$4 1800#include <$2> 1801_ACEOF 1802if ac_fn_c_try_compile "$LINENO"; then : 1803 eval "$3=yes" 1804else 1805 eval "$3=no" 1806fi 1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1808fi 1809eval ac_res=\$$3 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1811$as_echo "$ac_res" >&6; } 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 1814} # ac_fn_c_check_header_compile 1815 1816# ac_fn_c_try_link LINENO 1817# ----------------------- 1818# Try to link conftest.$ac_ext, and return whether this succeeded. 1819ac_fn_c_try_link () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 rm -f conftest.$ac_objext conftest$ac_exeext 1823 if { { ac_try="$ac_link" 1824case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827esac 1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829$as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_link") 2>conftest.err 1831 ac_status=$? 1832 if test -s conftest.err; then 1833 grep -v '^ *+' conftest.err >conftest.er1 1834 cat conftest.er1 >&5 1835 mv -f conftest.er1 conftest.err 1836 fi 1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1838 test $ac_status = 0; } && { 1839 test -z "$ac_c_werror_flag" || 1840 test ! -s conftest.err 1841 } && test -s conftest$ac_exeext && { 1842 test "$cross_compiling" = yes || 1843 test -x conftest$ac_exeext 1844 }; then : 1845 ac_retval=0 1846else 1847 $as_echo "$as_me: failed program was:" >&5 1848sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=1 1851fi 1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1854 # interfere with the next link command; also delete a directory that is 1855 # left behind by Apple's compiler. We do this before executing the actions. 1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 as_fn_set_status $ac_retval 1859 1860} # ac_fn_c_try_link 1861 1862# ac_fn_c_check_func LINENO FUNC VAR 1863# ---------------------------------- 1864# Tests whether FUNC exists, setting the cache variable VAR accordingly 1865ac_fn_c_check_func () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1869$as_echo_n "checking for $2... " >&6; } 1870if eval \${$3+:} false; then : 1871 $as_echo_n "(cached) " >&6 1872else 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877#define $2 innocuous_$2 1878 1879/* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (); below. 1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1882 <limits.h> exists even on freestanding compilers. */ 1883 1884#ifdef __STDC__ 1885# include <limits.h> 1886#else 1887# include <assert.h> 1888#endif 1889 1890#undef $2 1891 1892/* Override any GCC internal prototype to avoid an error. 1893 Use char because int might match the return type of a GCC 1894 builtin and then its argument prototype would still apply. */ 1895#ifdef __cplusplus 1896extern "C" 1897#endif 1898char $2 (); 1899/* The GNU C library defines this for functions which it implements 1900 to always fail with ENOSYS. Some functions are actually named 1901 something starting with __ and the normal name is an alias. */ 1902#if defined __stub_$2 || defined __stub___$2 1903choke me 1904#endif 1905 1906int 1907main () 1908{ 1909return $2 (); 1910 ; 1911 return 0; 1912} 1913_ACEOF 1914if ac_fn_c_try_link "$LINENO"; then : 1915 eval "$3=yes" 1916else 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext \ 1920 conftest$ac_exeext conftest.$ac_ext 1921fi 1922eval ac_res=\$$3 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924$as_echo "$ac_res" >&6; } 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 1927} # ac_fn_c_check_func 1928 1929# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1930# -------------------------------------------- 1931# Tries to find the compile-time value of EXPR in a program that includes 1932# INCLUDES, setting VAR accordingly. Returns whether the value could be 1933# computed 1934ac_fn_c_compute_int () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 if test "$cross_compiling" = yes; then 1938 # Depending upon the size, compute the lo and hi bounds. 1939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$4 1942int 1943main () 1944{ 1945static int test_array [1 - 2 * !(($2) >= 0)]; 1946test_array [0] = 0; 1947return test_array [0]; 1948 1949 ; 1950 return 0; 1951} 1952_ACEOF 1953if ac_fn_c_try_compile "$LINENO"; then : 1954 ac_lo=0 ac_mid=0 1955 while :; do 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958$4 1959int 1960main () 1961{ 1962static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1963test_array [0] = 0; 1964return test_array [0]; 1965 1966 ; 1967 return 0; 1968} 1969_ACEOF 1970if ac_fn_c_try_compile "$LINENO"; then : 1971 ac_hi=$ac_mid; break 1972else 1973 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1974 if test $ac_lo -le $ac_mid; then 1975 ac_lo= ac_hi= 1976 break 1977 fi 1978 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1979fi 1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1981 done 1982else 1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1984/* end confdefs.h. */ 1985$4 1986int 1987main () 1988{ 1989static int test_array [1 - 2 * !(($2) < 0)]; 1990test_array [0] = 0; 1991return test_array [0]; 1992 1993 ; 1994 return 0; 1995} 1996_ACEOF 1997if ac_fn_c_try_compile "$LINENO"; then : 1998 ac_hi=-1 ac_mid=-1 1999 while :; do 2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2001/* end confdefs.h. */ 2002$4 2003int 2004main () 2005{ 2006static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2007test_array [0] = 0; 2008return test_array [0]; 2009 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 ac_lo=$ac_mid; break 2016else 2017 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2018 if test $ac_mid -le $ac_hi; then 2019 ac_lo= ac_hi= 2020 break 2021 fi 2022 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2023fi 2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2025 done 2026else 2027 ac_lo= ac_hi= 2028fi 2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030fi 2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2032# Binary search between lo and hi bounds. 2033while test "x$ac_lo" != "x$ac_hi"; do 2034 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038int 2039main () 2040{ 2041static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2042test_array [0] = 0; 2043return test_array [0]; 2044 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO"; then : 2050 ac_hi=$ac_mid 2051else 2052 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2053fi 2054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2055done 2056case $ac_lo in #(( 2057?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2058'') ac_retval=1 ;; 2059esac 2060 else 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062/* end confdefs.h. */ 2063$4 2064static long int longval () { return $2; } 2065static unsigned long int ulongval () { return $2; } 2066#include <stdio.h> 2067#include <stdlib.h> 2068int 2069main () 2070{ 2071 2072 FILE *f = fopen ("conftest.val", "w"); 2073 if (! f) 2074 return 1; 2075 if (($2) < 0) 2076 { 2077 long int i = longval (); 2078 if (i != ($2)) 2079 return 1; 2080 fprintf (f, "%ld", i); 2081 } 2082 else 2083 { 2084 unsigned long int i = ulongval (); 2085 if (i != ($2)) 2086 return 1; 2087 fprintf (f, "%lu", i); 2088 } 2089 /* Do not output a trailing newline, as this causes \r\n confusion 2090 on some platforms. */ 2091 return ferror (f) || fclose (f) != 0; 2092 2093 ; 2094 return 0; 2095} 2096_ACEOF 2097if ac_fn_c_try_run "$LINENO"; then : 2098 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2099else 2100 ac_retval=1 2101fi 2102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2103 conftest.$ac_objext conftest.beam conftest.$ac_ext 2104rm -f conftest.val 2105 2106 fi 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 as_fn_set_status $ac_retval 2109 2110} # ac_fn_c_compute_int 2111 2112# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2113# --------------------------------------------- 2114# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2115# accordingly. 2116ac_fn_c_check_decl () 2117{ 2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2119 as_decl_name=`echo $2|sed 's/ *(.*//'` 2120 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2122$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2123if eval \${$3+:} false; then : 2124 $as_echo_n "(cached) " >&6 2125else 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129int 2130main () 2131{ 2132#ifndef $as_decl_name 2133#ifdef __cplusplus 2134 (void) $as_decl_use; 2135#else 2136 (void) $as_decl_name; 2137#endif 2138#endif 2139 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if ac_fn_c_try_compile "$LINENO"; then : 2145 eval "$3=yes" 2146else 2147 eval "$3=no" 2148fi 2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2150fi 2151eval ac_res=\$$3 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2153$as_echo "$ac_res" >&6; } 2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2155 2156} # ac_fn_c_check_decl 2157cat >config.log <<_ACEOF 2158This file contains any messages produced by compilers while 2159running configure, to aid debugging if configure makes a mistake. 2160 2161It was created by opcodes $as_me 2.42, which was 2162generated by GNU Autoconf 2.69. Invocation command line was 2163 2164 $ $0 $@ 2165 2166_ACEOF 2167exec 5>>config.log 2168{ 2169cat <<_ASUNAME 2170## --------- ## 2171## Platform. ## 2172## --------- ## 2173 2174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2175uname -m = `(uname -m) 2>/dev/null || echo unknown` 2176uname -r = `(uname -r) 2>/dev/null || echo unknown` 2177uname -s = `(uname -s) 2>/dev/null || echo unknown` 2178uname -v = `(uname -v) 2>/dev/null || echo unknown` 2179 2180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2182 2183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2186/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2190 2191_ASUNAME 2192 2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2194for as_dir in $PATH 2195do 2196 IFS=$as_save_IFS 2197 test -z "$as_dir" && as_dir=. 2198 $as_echo "PATH: $as_dir" 2199 done 2200IFS=$as_save_IFS 2201 2202} >&5 2203 2204cat >&5 <<_ACEOF 2205 2206 2207## ----------- ## 2208## Core tests. ## 2209## ----------- ## 2210 2211_ACEOF 2212 2213 2214# Keep a trace of the command line. 2215# Strip out --no-create and --no-recursion so they do not pile up. 2216# Strip out --silent because we don't want to record it for future runs. 2217# Also quote any args containing shell meta-characters. 2218# Make two passes to allow for proper duplicate-argument suppression. 2219ac_configure_args= 2220ac_configure_args0= 2221ac_configure_args1= 2222ac_must_keep_next=false 2223for ac_pass in 1 2 2224do 2225 for ac_arg 2226 do 2227 case $ac_arg in 2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2230 | -silent | --silent | --silen | --sile | --sil) 2231 continue ;; 2232 *\'*) 2233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2234 esac 2235 case $ac_pass in 2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2237 2) 2238 as_fn_append ac_configure_args1 " '$ac_arg'" 2239 if test $ac_must_keep_next = true; then 2240 ac_must_keep_next=false # Got value, back to normal. 2241 else 2242 case $ac_arg in 2243 *=* | --config-cache | -C | -disable-* | --disable-* \ 2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2246 | -with-* | --with-* | -without-* | --without-* | --x) 2247 case "$ac_configure_args0 " in 2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2249 esac 2250 ;; 2251 -* ) ac_must_keep_next=true ;; 2252 esac 2253 fi 2254 as_fn_append ac_configure_args " '$ac_arg'" 2255 ;; 2256 esac 2257 done 2258done 2259{ ac_configure_args0=; unset ac_configure_args0;} 2260{ ac_configure_args1=; unset ac_configure_args1;} 2261 2262# When interrupted or exit'd, cleanup temporary files, and complete 2263# config.log. We remove comments because anyway the quotes in there 2264# would cause problems or look ugly. 2265# WARNING: Use '\'' to represent an apostrophe within the trap. 2266# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2267trap 'exit_status=$? 2268 # Save into config.log some information that might help in debugging. 2269 { 2270 echo 2271 2272 $as_echo "## ---------------- ## 2273## Cache variables. ## 2274## ---------------- ##" 2275 echo 2276 # The following way of writing the cache mishandles newlines in values, 2277( 2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2279 eval ac_val=\$$ac_var 2280 case $ac_val in #( 2281 *${as_nl}*) 2282 case $ac_var in #( 2283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2285 esac 2286 case $ac_var in #( 2287 _ | IFS | as_nl) ;; #( 2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2289 *) { eval $ac_var=; unset $ac_var;} ;; 2290 esac ;; 2291 esac 2292 done 2293 (set) 2>&1 | 2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2295 *${as_nl}ac_space=\ *) 2296 sed -n \ 2297 "s/'\''/'\''\\\\'\'''\''/g; 2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2299 ;; #( 2300 *) 2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2302 ;; 2303 esac | 2304 sort 2305) 2306 echo 2307 2308 $as_echo "## ----------------- ## 2309## Output variables. ## 2310## ----------------- ##" 2311 echo 2312 for ac_var in $ac_subst_vars 2313 do 2314 eval ac_val=\$$ac_var 2315 case $ac_val in 2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2317 esac 2318 $as_echo "$ac_var='\''$ac_val'\''" 2319 done | sort 2320 echo 2321 2322 if test -n "$ac_subst_files"; then 2323 $as_echo "## ------------------- ## 2324## File substitutions. ## 2325## ------------------- ##" 2326 echo 2327 for ac_var in $ac_subst_files 2328 do 2329 eval ac_val=\$$ac_var 2330 case $ac_val in 2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2332 esac 2333 $as_echo "$ac_var='\''$ac_val'\''" 2334 done | sort 2335 echo 2336 fi 2337 2338 if test -s confdefs.h; then 2339 $as_echo "## ----------- ## 2340## confdefs.h. ## 2341## ----------- ##" 2342 echo 2343 cat confdefs.h 2344 echo 2345 fi 2346 test "$ac_signal" != 0 && 2347 $as_echo "$as_me: caught signal $ac_signal" 2348 $as_echo "$as_me: exit $exit_status" 2349 } >&5 2350 rm -f core *.core core.conftest.* && 2351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2352 exit $exit_status 2353' 0 2354for ac_signal in 1 2 13 15; do 2355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2356done 2357ac_signal=0 2358 2359# confdefs.h avoids OS command line length limits that DEFS can exceed. 2360rm -f -r conftest* confdefs.h 2361 2362$as_echo "/* confdefs.h */" > confdefs.h 2363 2364# Predefined preprocessor variables. 2365 2366cat >>confdefs.h <<_ACEOF 2367#define PACKAGE_NAME "$PACKAGE_NAME" 2368_ACEOF 2369 2370cat >>confdefs.h <<_ACEOF 2371#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2372_ACEOF 2373 2374cat >>confdefs.h <<_ACEOF 2375#define PACKAGE_VERSION "$PACKAGE_VERSION" 2376_ACEOF 2377 2378cat >>confdefs.h <<_ACEOF 2379#define PACKAGE_STRING "$PACKAGE_STRING" 2380_ACEOF 2381 2382cat >>confdefs.h <<_ACEOF 2383#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2384_ACEOF 2385 2386cat >>confdefs.h <<_ACEOF 2387#define PACKAGE_URL "$PACKAGE_URL" 2388_ACEOF 2389 2390 2391# Let the site file select an alternate cache file if it wants to. 2392# Prefer an explicitly selected file to automatically selected ones. 2393ac_site_file1=NONE 2394ac_site_file2=NONE 2395if test -n "$CONFIG_SITE"; then 2396 # We do not want a PATH search for config.site. 2397 case $CONFIG_SITE in #(( 2398 -*) ac_site_file1=./$CONFIG_SITE;; 2399 */*) ac_site_file1=$CONFIG_SITE;; 2400 *) ac_site_file1=./$CONFIG_SITE;; 2401 esac 2402elif test "x$prefix" != xNONE; then 2403 ac_site_file1=$prefix/share/config.site 2404 ac_site_file2=$prefix/etc/config.site 2405else 2406 ac_site_file1=$ac_default_prefix/share/config.site 2407 ac_site_file2=$ac_default_prefix/etc/config.site 2408fi 2409for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2410do 2411 test "x$ac_site_file" = xNONE && continue 2412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2414$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2415 sed 's/^/| /' "$ac_site_file" >&5 2416 . "$ac_site_file" \ 2417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2419as_fn_error $? "failed to load site script $ac_site_file 2420See \`config.log' for more details" "$LINENO" 5; } 2421 fi 2422done 2423 2424if test -r "$cache_file"; then 2425 # Some versions of bash will fail to source /dev/null (special files 2426 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2429$as_echo "$as_me: loading cache $cache_file" >&6;} 2430 case $cache_file in 2431 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2432 *) . "./$cache_file";; 2433 esac 2434 fi 2435else 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2437$as_echo "$as_me: creating cache $cache_file" >&6;} 2438 >$cache_file 2439fi 2440 2441gt_needs="$gt_needs " 2442# Check that the precious variables saved in the cache have kept the same 2443# value. 2444ac_cache_corrupted=false 2445for ac_var in $ac_precious_vars; do 2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2447 eval ac_new_set=\$ac_env_${ac_var}_set 2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2449 eval ac_new_val=\$ac_env_${ac_var}_value 2450 case $ac_old_set,$ac_new_set in 2451 set,) 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2453$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2454 ac_cache_corrupted=: ;; 2455 ,set) 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2457$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2458 ac_cache_corrupted=: ;; 2459 ,);; 2460 *) 2461 if test "x$ac_old_val" != "x$ac_new_val"; then 2462 # differences in whitespace do not lead to failure. 2463 ac_old_val_w=`echo x $ac_old_val` 2464 ac_new_val_w=`echo x $ac_new_val` 2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2467$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2468 ac_cache_corrupted=: 2469 else 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2471$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2472 eval $ac_var=\$ac_old_val 2473 fi 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2475$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2477$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2478 fi;; 2479 esac 2480 # Pass precious variables to config.status. 2481 if test "$ac_new_set" = set; then 2482 case $ac_new_val in 2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2484 *) ac_arg=$ac_var=$ac_new_val ;; 2485 esac 2486 case " $ac_configure_args " in 2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2489 esac 2490 fi 2491done 2492if $ac_cache_corrupted; then 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2496$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2497 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2498fi 2499## -------------------- ## 2500## Main body of script. ## 2501## -------------------- ## 2502 2503ac_ext=c 2504ac_cpp='$CPP $CPPFLAGS' 2505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2507ac_compiler_gnu=$ac_cv_c_compiler_gnu 2508 2509 2510 2511 2512 2513 2514 2515ac_aux_dir= 2516for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2517 if test -f "$ac_dir/install-sh"; then 2518 ac_aux_dir=$ac_dir 2519 ac_install_sh="$ac_aux_dir/install-sh -c" 2520 break 2521 elif test -f "$ac_dir/install.sh"; then 2522 ac_aux_dir=$ac_dir 2523 ac_install_sh="$ac_aux_dir/install.sh -c" 2524 break 2525 elif test -f "$ac_dir/shtool"; then 2526 ac_aux_dir=$ac_dir 2527 ac_install_sh="$ac_aux_dir/shtool install -c" 2528 break 2529 fi 2530done 2531if test -z "$ac_aux_dir"; then 2532 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2533fi 2534 2535# These three variables are undocumented and unsupported, 2536# and are intended to be withdrawn in a future Autoconf release. 2537# They can cause serious problems if a builder's source tree is in a directory 2538# whose full name contains unusual characters. 2539ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2540ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2541ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2542 2543 2544# Make sure we can run config.sub. 2545$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2546 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2547 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2549$as_echo_n "checking build system type... " >&6; } 2550if ${ac_cv_build+:} false; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 ac_build_alias=$build_alias 2554test "x$ac_build_alias" = x && 2555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2556test "x$ac_build_alias" = x && 2557 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2558ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2560 2561fi 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2563$as_echo "$ac_cv_build" >&6; } 2564case $ac_cv_build in 2565*-*-*) ;; 2566*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2567esac 2568build=$ac_cv_build 2569ac_save_IFS=$IFS; IFS='-' 2570set x $ac_cv_build 2571shift 2572build_cpu=$1 2573build_vendor=$2 2574shift; shift 2575# Remember, the first character of IFS is used to create $*, 2576# except with old shells: 2577build_os=$* 2578IFS=$ac_save_IFS 2579case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2580 2581 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2583$as_echo_n "checking host system type... " >&6; } 2584if ${ac_cv_host+:} false; then : 2585 $as_echo_n "(cached) " >&6 2586else 2587 if test "x$host_alias" = x; then 2588 ac_cv_host=$ac_cv_build 2589else 2590 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2592fi 2593 2594fi 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2596$as_echo "$ac_cv_host" >&6; } 2597case $ac_cv_host in 2598*-*-*) ;; 2599*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2600esac 2601host=$ac_cv_host 2602ac_save_IFS=$IFS; IFS='-' 2603set x $ac_cv_host 2604shift 2605host_cpu=$1 2606host_vendor=$2 2607shift; shift 2608# Remember, the first character of IFS is used to create $*, 2609# except with old shells: 2610host_os=$* 2611IFS=$ac_save_IFS 2612case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2613 2614 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2616$as_echo_n "checking target system type... " >&6; } 2617if ${ac_cv_target+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619else 2620 if test "x$target_alias" = x; then 2621 ac_cv_target=$ac_cv_host 2622else 2623 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2625fi 2626 2627fi 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2629$as_echo "$ac_cv_target" >&6; } 2630case $ac_cv_target in 2631*-*-*) ;; 2632*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2633esac 2634target=$ac_cv_target 2635ac_save_IFS=$IFS; IFS='-' 2636set x $ac_cv_target 2637shift 2638target_cpu=$1 2639target_vendor=$2 2640shift; shift 2641# Remember, the first character of IFS is used to create $*, 2642# except with old shells: 2643target_os=$* 2644IFS=$ac_save_IFS 2645case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2646 2647 2648# The aliases save the names the user supplied, while $host etc. 2649# will get canonicalized. 2650test -n "$target_alias" && 2651 test "$program_prefix$program_suffix$program_transform_name" = \ 2652 NONENONEs,x,x, && 2653 program_prefix=${target_alias}- 2654 2655am__api_version='1.15' 2656 2657# Find a good install program. We prefer a C program (faster), 2658# so one script is as good as another. But avoid the broken or 2659# incompatible versions: 2660# SysV /etc/install, /usr/sbin/install 2661# SunOS /usr/etc/install 2662# IRIX /sbin/install 2663# AIX /bin/install 2664# AmigaOS /C/install, which installs bootblocks on floppy discs 2665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2666# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2668# OS/2's system install, which has a completely different semantic 2669# ./install, which can be erroneously created by make from ./install.sh. 2670# Reject install programs that cannot install multiple files. 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2672$as_echo_n "checking for a BSD-compatible install... " >&6; } 2673if test -z "$INSTALL"; then 2674if ${ac_cv_path_install+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2678for as_dir in $PATH 2679do 2680 IFS=$as_save_IFS 2681 test -z "$as_dir" && as_dir=. 2682 # Account for people who put trailing slashes in PATH elements. 2683case $as_dir/ in #(( 2684 ./ | .// | /[cC]/* | \ 2685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2686 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2687 /usr/ucb/* ) ;; 2688 *) 2689 # OSF1 and SCO ODT 3.0 have their own names for install. 2690 # Don't use installbsd from OSF since it installs stuff as root 2691 # by default. 2692 for ac_prog in ginstall scoinst install; do 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2695 if test $ac_prog = install && 2696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2697 # AIX install. It has an incompatible calling convention. 2698 : 2699 elif test $ac_prog = install && 2700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2701 # program-specific install script used by HP pwplus--don't use. 2702 : 2703 else 2704 rm -rf conftest.one conftest.two conftest.dir 2705 echo one > conftest.one 2706 echo two > conftest.two 2707 mkdir conftest.dir 2708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2709 test -s conftest.one && test -s conftest.two && 2710 test -s conftest.dir/conftest.one && 2711 test -s conftest.dir/conftest.two 2712 then 2713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2714 break 3 2715 fi 2716 fi 2717 fi 2718 done 2719 done 2720 ;; 2721esac 2722 2723 done 2724IFS=$as_save_IFS 2725 2726rm -rf conftest.one conftest.two conftest.dir 2727 2728fi 2729 if test "${ac_cv_path_install+set}" = set; then 2730 INSTALL=$ac_cv_path_install 2731 else 2732 # As a last resort, use the slow shell script. Don't cache a 2733 # value for INSTALL within a source directory, because that will 2734 # break other packages using the cache if that directory is 2735 # removed, or if the value is a relative name. 2736 INSTALL=$ac_install_sh 2737 fi 2738fi 2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2740$as_echo "$INSTALL" >&6; } 2741 2742# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2743# It thinks the first close brace ends the variable substitution. 2744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2745 2746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2747 2748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2749 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2751$as_echo_n "checking whether build environment is sane... " >&6; } 2752# Reject unsafe characters in $srcdir or the absolute working directory 2753# name. Accept space and tab only in the latter. 2754am_lf=' 2755' 2756case `pwd` in 2757 *[\\\"\#\$\&\'\`$am_lf]*) 2758 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2759esac 2760case $srcdir in 2761 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2762 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2763esac 2764 2765# Do 'set' in a subshell so we don't clobber the current shell's 2766# arguments. Must try -L first in case configure is actually a 2767# symlink; some systems play weird games with the mod time of symlinks 2768# (eg FreeBSD returns the mod time of the symlink's containing 2769# directory). 2770if ( 2771 am_has_slept=no 2772 for am_try in 1 2; do 2773 echo "timestamp, slept: $am_has_slept" > conftest.file 2774 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2775 if test "$*" = "X"; then 2776 # -L didn't work. 2777 set X `ls -t "$srcdir/configure" conftest.file` 2778 fi 2779 if test "$*" != "X $srcdir/configure conftest.file" \ 2780 && test "$*" != "X conftest.file $srcdir/configure"; then 2781 2782 # If neither matched, then we have a broken ls. This can happen 2783 # if, for instance, CONFIG_SHELL is bash and it inherits a 2784 # broken ls alias from the environment. This has actually 2785 # happened. Such a system could not be considered "sane". 2786 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2787 alias in your environment" "$LINENO" 5 2788 fi 2789 if test "$2" = conftest.file || test $am_try -eq 2; then 2790 break 2791 fi 2792 # Just in case. 2793 sleep 1 2794 am_has_slept=yes 2795 done 2796 test "$2" = conftest.file 2797 ) 2798then 2799 # Ok. 2800 : 2801else 2802 as_fn_error $? "newly created file is older than distributed files! 2803Check your system clock" "$LINENO" 5 2804fi 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2806$as_echo "yes" >&6; } 2807# If we didn't sleep, we still need to ensure time stamps of config.status and 2808# generated files are strictly newer. 2809am_sleep_pid= 2810if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2811 ( sleep 1 ) & 2812 am_sleep_pid=$! 2813fi 2814 2815rm -f conftest.file 2816 2817test "$program_prefix" != NONE && 2818 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2819# Use a double $ so make ignores it. 2820test "$program_suffix" != NONE && 2821 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2822# Double any \ or $. 2823# By default was `s,x,x', remove it if useless. 2824ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2825program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2826 2827# Expand $ac_aux_dir to an absolute path. 2828am_aux_dir=`cd "$ac_aux_dir" && pwd` 2829 2830if test x"${MISSING+set}" != xset; then 2831 case $am_aux_dir in 2832 *\ * | *\ *) 2833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2834 *) 2835 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2836 esac 2837fi 2838# Use eval to expand $SHELL 2839if eval "$MISSING --is-lightweight"; then 2840 am_missing_run="$MISSING " 2841else 2842 am_missing_run= 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2844$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2845fi 2846 2847if test x"${install_sh+set}" != xset; then 2848 case $am_aux_dir in 2849 *\ * | *\ *) 2850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2851 *) 2852 install_sh="\${SHELL} $am_aux_dir/install-sh" 2853 esac 2854fi 2855 2856# Installed binaries are usually stripped using 'strip' when the user 2857# run "make install-strip". However 'strip' might not be the right 2858# tool to use in cross-compilation environments, therefore Automake 2859# will honor the 'STRIP' environment variable to overrule this program. 2860if test "$cross_compiling" != no; then 2861 if test -n "$ac_tool_prefix"; then 2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2863set dummy ${ac_tool_prefix}strip; ac_word=$2 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2865$as_echo_n "checking for $ac_word... " >&6; } 2866if ${ac_cv_prog_STRIP+:} false; then : 2867 $as_echo_n "(cached) " >&6 2868else 2869 if test -n "$STRIP"; then 2870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2871else 2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873for as_dir in $PATH 2874do 2875 IFS=$as_save_IFS 2876 test -z "$as_dir" && as_dir=. 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2879 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2881 break 2 2882 fi 2883done 2884 done 2885IFS=$as_save_IFS 2886 2887fi 2888fi 2889STRIP=$ac_cv_prog_STRIP 2890if test -n "$STRIP"; then 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2892$as_echo "$STRIP" >&6; } 2893else 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2895$as_echo "no" >&6; } 2896fi 2897 2898 2899fi 2900if test -z "$ac_cv_prog_STRIP"; then 2901 ac_ct_STRIP=$STRIP 2902 # Extract the first word of "strip", so it can be a program name with args. 2903set dummy strip; ac_word=$2 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2905$as_echo_n "checking for $ac_word... " >&6; } 2906if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 if test -n "$ac_ct_STRIP"; then 2910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2911else 2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2919 ac_cv_prog_ac_ct_STRIP="strip" 2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923done 2924 done 2925IFS=$as_save_IFS 2926 2927fi 2928fi 2929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2930if test -n "$ac_ct_STRIP"; then 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2932$as_echo "$ac_ct_STRIP" >&6; } 2933else 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2935$as_echo "no" >&6; } 2936fi 2937 2938 if test "x$ac_ct_STRIP" = x; then 2939 STRIP=":" 2940 else 2941 case $cross_compiling:$ac_tool_warned in 2942yes:) 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2945ac_tool_warned=yes ;; 2946esac 2947 STRIP=$ac_ct_STRIP 2948 fi 2949else 2950 STRIP="$ac_cv_prog_STRIP" 2951fi 2952 2953fi 2954INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2955 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2957$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2958if test -z "$MKDIR_P"; then 2959 if ${ac_cv_path_mkdir+:} false; then : 2960 $as_echo_n "(cached) " >&6 2961else 2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2964do 2965 IFS=$as_save_IFS 2966 test -z "$as_dir" && as_dir=. 2967 for ac_prog in mkdir gmkdir; do 2968 for ac_exec_ext in '' $ac_executable_extensions; do 2969 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2971 'mkdir (GNU coreutils) '* | \ 2972 'mkdir (coreutils) '* | \ 2973 'mkdir (fileutils) '4.1*) 2974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2975 break 3;; 2976 esac 2977 done 2978 done 2979 done 2980IFS=$as_save_IFS 2981 2982fi 2983 2984 test -d ./--version && rmdir ./--version 2985 if test "${ac_cv_path_mkdir+set}" = set; then 2986 MKDIR_P="$ac_cv_path_mkdir -p" 2987 else 2988 # As a last resort, use the slow shell script. Don't cache a 2989 # value for MKDIR_P within a source directory, because that will 2990 # break other packages using the cache if that directory is 2991 # removed, or if the value is a relative name. 2992 MKDIR_P="$ac_install_sh -d" 2993 fi 2994fi 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2996$as_echo "$MKDIR_P" >&6; } 2997 2998for ac_prog in gawk mawk nawk awk 2999do 3000 # Extract the first word of "$ac_prog", so it can be a program name with args. 3001set dummy $ac_prog; ac_word=$2 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3003$as_echo_n "checking for $ac_word... " >&6; } 3004if ${ac_cv_prog_AWK+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test -n "$AWK"; then 3008 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3009else 3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3011for as_dir in $PATH 3012do 3013 IFS=$as_save_IFS 3014 test -z "$as_dir" && as_dir=. 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3017 ac_cv_prog_AWK="$ac_prog" 3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3019 break 2 3020 fi 3021done 3022 done 3023IFS=$as_save_IFS 3024 3025fi 3026fi 3027AWK=$ac_cv_prog_AWK 3028if test -n "$AWK"; then 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3030$as_echo "$AWK" >&6; } 3031else 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033$as_echo "no" >&6; } 3034fi 3035 3036 3037 test -n "$AWK" && break 3038done 3039 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3041$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3042set x ${MAKE-make} 3043ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3044if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3045 $as_echo_n "(cached) " >&6 3046else 3047 cat >conftest.make <<\_ACEOF 3048SHELL = /bin/sh 3049all: 3050 @echo '@@@%%%=$(MAKE)=@@@%%%' 3051_ACEOF 3052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3053case `${MAKE-make} -f conftest.make 2>/dev/null` in 3054 *@@@%%%=?*=@@@%%%*) 3055 eval ac_cv_prog_make_${ac_make}_set=yes;; 3056 *) 3057 eval ac_cv_prog_make_${ac_make}_set=no;; 3058esac 3059rm -f conftest.make 3060fi 3061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3063$as_echo "yes" >&6; } 3064 SET_MAKE= 3065else 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067$as_echo "no" >&6; } 3068 SET_MAKE="MAKE=${MAKE-make}" 3069fi 3070 3071rm -rf .tst 2>/dev/null 3072mkdir .tst 2>/dev/null 3073if test -d .tst; then 3074 am__leading_dot=. 3075else 3076 am__leading_dot=_ 3077fi 3078rmdir .tst 2>/dev/null 3079 3080# Check whether --enable-silent-rules was given. 3081if test "${enable_silent_rules+set}" = set; then : 3082 enableval=$enable_silent_rules; 3083fi 3084 3085case $enable_silent_rules in # ((( 3086 yes) AM_DEFAULT_VERBOSITY=0;; 3087 no) AM_DEFAULT_VERBOSITY=1;; 3088 *) AM_DEFAULT_VERBOSITY=1;; 3089esac 3090am_make=${MAKE-make} 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3092$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3093if ${am_cv_make_support_nested_variables+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if $as_echo 'TRUE=$(BAR$(V)) 3097BAR0=false 3098BAR1=true 3099V=1 3100am__doit: 3101 @$(TRUE) 3102.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3103 am_cv_make_support_nested_variables=yes 3104else 3105 am_cv_make_support_nested_variables=no 3106fi 3107fi 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3109$as_echo "$am_cv_make_support_nested_variables" >&6; } 3110if test $am_cv_make_support_nested_variables = yes; then 3111 AM_V='$(V)' 3112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3113else 3114 AM_V=$AM_DEFAULT_VERBOSITY 3115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3116fi 3117AM_BACKSLASH='\' 3118 3119if test "`cd $srcdir && pwd`" != "`pwd`"; then 3120 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3121 # is not polluted with repeated "-I." 3122 am__isrc=' -I$(srcdir)' 3123 # test to see if srcdir already configured 3124 if test -f $srcdir/config.status; then 3125 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3126 fi 3127fi 3128 3129# test whether we have cygpath 3130if test -z "$CYGPATH_W"; then 3131 if (cygpath --version) >/dev/null 2>/dev/null; then 3132 CYGPATH_W='cygpath -w' 3133 else 3134 CYGPATH_W=echo 3135 fi 3136fi 3137 3138 3139# Define the identity of the package. 3140 PACKAGE='opcodes' 3141 VERSION='2.42' 3142 3143 3144cat >>confdefs.h <<_ACEOF 3145#define PACKAGE "$PACKAGE" 3146_ACEOF 3147 3148 3149cat >>confdefs.h <<_ACEOF 3150#define VERSION "$VERSION" 3151_ACEOF 3152 3153# Some tools Automake needs. 3154 3155ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3156 3157 3158AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3159 3160 3161AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3162 3163 3164AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3165 3166 3167MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3168 3169# For better backward compatibility. To be removed once Automake 1.9.x 3170# dies out for good. For more background, see: 3171# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3172# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3173mkdir_p='$(MKDIR_P)' 3174 3175# We need awk for the "check" target (and possibly the TAP driver). The 3176# system "awk" is bad on some platforms. 3177# Always define AMTAR for backward compatibility. Yes, it's still used 3178# in the wild :-( We should find a proper way to deprecate it ... 3179AMTAR='$${TAR-tar}' 3180 3181 3182# We'll loop over all known methods to create a tar archive until one works. 3183_am_tools='gnutar pax cpio none' 3184 3185am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3186 3187 3188 3189 3190 3191 3192# POSIX will say in a future version that running "rm -f" with no argument 3193# is OK; and we want to be able to make that assumption in our Makefile 3194# recipes. So use an aggressive probe to check that the usage we want is 3195# actually supported "in the wild" to an acceptable degree. 3196# See automake bug#10828. 3197# To make any issue more visible, cause the running configure to be aborted 3198# by default if the 'rm' program in use doesn't match our expectations; the 3199# user can still override this though. 3200if rm -f && rm -fr && rm -rf; then : OK; else 3201 cat >&2 <<'END' 3202Oops! 3203 3204Your 'rm' program seems unable to run without file operands specified 3205on the command line, even when the '-f' option is present. This is contrary 3206to the behaviour of most rm programs out there, and not conforming with 3207the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3208 3209Please tell bug-automake@gnu.org about your system, including the value 3210of your $PATH and any error possibly output before this message. This 3211can help us improve future automake versions. 3212 3213END 3214 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3215 echo 'Configuration will proceed anyway, since you have set the' >&2 3216 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3217 echo >&2 3218 else 3219 cat >&2 <<'END' 3220Aborting the configuration process, to ensure you take notice of the issue. 3221 3222You can download and install GNU coreutils to get an 'rm' implementation 3223that behaves properly: <http://www.gnu.org/software/coreutils/>. 3224 3225If you want to complete the configuration process using your problematic 3226'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3227to "yes", and re-run configure. 3228 3229END 3230 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3231 fi 3232fi 3233 3234# Check whether --enable-silent-rules was given. 3235if test "${enable_silent_rules+set}" = set; then : 3236 enableval=$enable_silent_rules; 3237fi 3238 3239case $enable_silent_rules in # ((( 3240 yes) AM_DEFAULT_VERBOSITY=0;; 3241 no) AM_DEFAULT_VERBOSITY=1;; 3242 *) AM_DEFAULT_VERBOSITY=0;; 3243esac 3244am_make=${MAKE-make} 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3246$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3247if ${am_cv_make_support_nested_variables+:} false; then : 3248 $as_echo_n "(cached) " >&6 3249else 3250 if $as_echo 'TRUE=$(BAR$(V)) 3251BAR0=false 3252BAR1=true 3253V=1 3254am__doit: 3255 @$(TRUE) 3256.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3257 am_cv_make_support_nested_variables=yes 3258else 3259 am_cv_make_support_nested_variables=no 3260fi 3261fi 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3263$as_echo "$am_cv_make_support_nested_variables" >&6; } 3264if test $am_cv_make_support_nested_variables = yes; then 3265 AM_V='$(V)' 3266 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3267else 3268 AM_V=$AM_DEFAULT_VERBOSITY 3269 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3270fi 3271AM_BACKSLASH='\' 3272 3273 3274ac_ext=c 3275ac_cpp='$CPP $CPPFLAGS' 3276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3278ac_compiler_gnu=$ac_cv_c_compiler_gnu 3279if test -n "$ac_tool_prefix"; then 3280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3281set dummy ${ac_tool_prefix}gcc; ac_word=$2 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283$as_echo_n "checking for $ac_word... " >&6; } 3284if ${ac_cv_prog_CC+:} false; then : 3285 $as_echo_n "(cached) " >&6 3286else 3287 if test -n "$CC"; then 3288 ac_cv_prog_CC="$CC" # Let the user override the test. 3289else 3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3291for as_dir in $PATH 3292do 3293 IFS=$as_save_IFS 3294 test -z "$as_dir" && as_dir=. 3295 for ac_exec_ext in '' $ac_executable_extensions; do 3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3297 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3299 break 2 3300 fi 3301done 3302 done 3303IFS=$as_save_IFS 3304 3305fi 3306fi 3307CC=$ac_cv_prog_CC 3308if test -n "$CC"; then 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3310$as_echo "$CC" >&6; } 3311else 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3313$as_echo "no" >&6; } 3314fi 3315 3316 3317fi 3318if test -z "$ac_cv_prog_CC"; then 3319 ac_ct_CC=$CC 3320 # Extract the first word of "gcc", so it can be a program name with args. 3321set dummy gcc; ac_word=$2 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3323$as_echo_n "checking for $ac_word... " >&6; } 3324if ${ac_cv_prog_ac_ct_CC+:} false; then : 3325 $as_echo_n "(cached) " >&6 3326else 3327 if test -n "$ac_ct_CC"; then 3328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3329else 3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3331for as_dir in $PATH 3332do 3333 IFS=$as_save_IFS 3334 test -z "$as_dir" && as_dir=. 3335 for ac_exec_ext in '' $ac_executable_extensions; do 3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3337 ac_cv_prog_ac_ct_CC="gcc" 3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3339 break 2 3340 fi 3341done 3342 done 3343IFS=$as_save_IFS 3344 3345fi 3346fi 3347ac_ct_CC=$ac_cv_prog_ac_ct_CC 3348if test -n "$ac_ct_CC"; then 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3350$as_echo "$ac_ct_CC" >&6; } 3351else 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3353$as_echo "no" >&6; } 3354fi 3355 3356 if test "x$ac_ct_CC" = x; then 3357 CC="" 3358 else 3359 case $cross_compiling:$ac_tool_warned in 3360yes:) 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3363ac_tool_warned=yes ;; 3364esac 3365 CC=$ac_ct_CC 3366 fi 3367else 3368 CC="$ac_cv_prog_CC" 3369fi 3370 3371if test -z "$CC"; then 3372 if test -n "$ac_tool_prefix"; then 3373 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3374set dummy ${ac_tool_prefix}cc; ac_word=$2 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3376$as_echo_n "checking for $ac_word... " >&6; } 3377if ${ac_cv_prog_CC+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 if test -n "$CC"; then 3381 ac_cv_prog_CC="$CC" # Let the user override the test. 3382else 3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384for as_dir in $PATH 3385do 3386 IFS=$as_save_IFS 3387 test -z "$as_dir" && as_dir=. 3388 for ac_exec_ext in '' $ac_executable_extensions; do 3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3390 ac_cv_prog_CC="${ac_tool_prefix}cc" 3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3392 break 2 3393 fi 3394done 3395 done 3396IFS=$as_save_IFS 3397 3398fi 3399fi 3400CC=$ac_cv_prog_CC 3401if test -n "$CC"; then 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3403$as_echo "$CC" >&6; } 3404else 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3406$as_echo "no" >&6; } 3407fi 3408 3409 3410 fi 3411fi 3412if test -z "$CC"; then 3413 # Extract the first word of "cc", so it can be a program name with args. 3414set dummy cc; ac_word=$2 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3416$as_echo_n "checking for $ac_word... " >&6; } 3417if ${ac_cv_prog_CC+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 if test -n "$CC"; then 3421 ac_cv_prog_CC="$CC" # Let the user override the test. 3422else 3423 ac_prog_rejected=no 3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3425for as_dir in $PATH 3426do 3427 IFS=$as_save_IFS 3428 test -z "$as_dir" && as_dir=. 3429 for ac_exec_ext in '' $ac_executable_extensions; do 3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3432 ac_prog_rejected=yes 3433 continue 3434 fi 3435 ac_cv_prog_CC="cc" 3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3437 break 2 3438 fi 3439done 3440 done 3441IFS=$as_save_IFS 3442 3443if test $ac_prog_rejected = yes; then 3444 # We found a bogon in the path, so make sure we never use it. 3445 set dummy $ac_cv_prog_CC 3446 shift 3447 if test $# != 0; then 3448 # We chose a different compiler from the bogus one. 3449 # However, it has the same basename, so the bogon will be chosen 3450 # first if we set CC to just the basename; use the full file name. 3451 shift 3452 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3453 fi 3454fi 3455fi 3456fi 3457CC=$ac_cv_prog_CC 3458if test -n "$CC"; then 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3460$as_echo "$CC" >&6; } 3461else 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463$as_echo "no" >&6; } 3464fi 3465 3466 3467fi 3468if test -z "$CC"; then 3469 if test -n "$ac_tool_prefix"; then 3470 for ac_prog in cl.exe 3471 do 3472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3473set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3475$as_echo_n "checking for $ac_word... " >&6; } 3476if ${ac_cv_prog_CC+:} false; then : 3477 $as_echo_n "(cached) " >&6 3478else 3479 if test -n "$CC"; then 3480 ac_cv_prog_CC="$CC" # Let the user override the test. 3481else 3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3483for as_dir in $PATH 3484do 3485 IFS=$as_save_IFS 3486 test -z "$as_dir" && as_dir=. 3487 for ac_exec_ext in '' $ac_executable_extensions; do 3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3491 break 2 3492 fi 3493done 3494 done 3495IFS=$as_save_IFS 3496 3497fi 3498fi 3499CC=$ac_cv_prog_CC 3500if test -n "$CC"; then 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3502$as_echo "$CC" >&6; } 3503else 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3505$as_echo "no" >&6; } 3506fi 3507 3508 3509 test -n "$CC" && break 3510 done 3511fi 3512if test -z "$CC"; then 3513 ac_ct_CC=$CC 3514 for ac_prog in cl.exe 3515do 3516 # Extract the first word of "$ac_prog", so it can be a program name with args. 3517set dummy $ac_prog; ac_word=$2 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3519$as_echo_n "checking for $ac_word... " >&6; } 3520if ${ac_cv_prog_ac_ct_CC+:} false; then : 3521 $as_echo_n "(cached) " >&6 3522else 3523 if test -n "$ac_ct_CC"; then 3524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3525else 3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3527for as_dir in $PATH 3528do 3529 IFS=$as_save_IFS 3530 test -z "$as_dir" && as_dir=. 3531 for ac_exec_ext in '' $ac_executable_extensions; do 3532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3533 ac_cv_prog_ac_ct_CC="$ac_prog" 3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3535 break 2 3536 fi 3537done 3538 done 3539IFS=$as_save_IFS 3540 3541fi 3542fi 3543ac_ct_CC=$ac_cv_prog_ac_ct_CC 3544if test -n "$ac_ct_CC"; then 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3546$as_echo "$ac_ct_CC" >&6; } 3547else 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3549$as_echo "no" >&6; } 3550fi 3551 3552 3553 test -n "$ac_ct_CC" && break 3554done 3555 3556 if test "x$ac_ct_CC" = x; then 3557 CC="" 3558 else 3559 case $cross_compiling:$ac_tool_warned in 3560yes:) 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3563ac_tool_warned=yes ;; 3564esac 3565 CC=$ac_ct_CC 3566 fi 3567fi 3568 3569fi 3570 3571 3572test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3574as_fn_error $? "no acceptable C compiler found in \$PATH 3575See \`config.log' for more details" "$LINENO" 5; } 3576 3577# Provide some information about the compiler. 3578$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3579set X $ac_compile 3580ac_compiler=$2 3581for ac_option in --version -v -V -qversion; do 3582 { { ac_try="$ac_compiler $ac_option >&5" 3583case "(($ac_try" in 3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3585 *) ac_try_echo=$ac_try;; 3586esac 3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3588$as_echo "$ac_try_echo"; } >&5 3589 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3590 ac_status=$? 3591 if test -s conftest.err; then 3592 sed '10a\ 3593... rest of stderr output deleted ... 3594 10q' conftest.err >conftest.er1 3595 cat conftest.er1 >&5 3596 fi 3597 rm -f conftest.er1 conftest.err 3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3599 test $ac_status = 0; } 3600done 3601 3602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3603/* end confdefs.h. */ 3604 3605int 3606main () 3607{ 3608 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613ac_clean_files_save=$ac_clean_files 3614ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3615# Try to create an executable without -o first, disregard a.out. 3616# It will help us diagnose broken compilers, and finding out an intuition 3617# of exeext. 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3619$as_echo_n "checking whether the C compiler works... " >&6; } 3620ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3621 3622# The possible output files: 3623ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3624 3625ac_rmfiles= 3626for ac_file in $ac_files 3627do 3628 case $ac_file in 3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3630 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3631 esac 3632done 3633rm -f $ac_rmfiles 3634 3635if { { ac_try="$ac_link_default" 3636case "(($ac_try" in 3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3638 *) ac_try_echo=$ac_try;; 3639esac 3640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3641$as_echo "$ac_try_echo"; } >&5 3642 (eval "$ac_link_default") 2>&5 3643 ac_status=$? 3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3645 test $ac_status = 0; }; then : 3646 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3647# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3648# in a Makefile. We should not override ac_cv_exeext if it was cached, 3649# so that the user can short-circuit this test for compilers unknown to 3650# Autoconf. 3651for ac_file in $ac_files '' 3652do 3653 test -f "$ac_file" || continue 3654 case $ac_file in 3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3656 ;; 3657 [ab].out ) 3658 # We found the default executable, but exeext='' is most 3659 # certainly right. 3660 break;; 3661 *.* ) 3662 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3663 then :; else 3664 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3665 fi 3666 # We set ac_cv_exeext here because the later test for it is not 3667 # safe: cross compilers may not add the suffix if given an `-o' 3668 # argument, so we may need to know it at that point already. 3669 # Even if this section looks crufty: it has the advantage of 3670 # actually working. 3671 break;; 3672 * ) 3673 break;; 3674 esac 3675done 3676test "$ac_cv_exeext" = no && ac_cv_exeext= 3677 3678else 3679 ac_file='' 3680fi 3681if test -z "$ac_file"; then : 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683$as_echo "no" >&6; } 3684$as_echo "$as_me: failed program was:" >&5 3685sed 's/^/| /' conftest.$ac_ext >&5 3686 3687{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3689as_fn_error 77 "C compiler cannot create executables 3690See \`config.log' for more details" "$LINENO" 5; } 3691else 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3693$as_echo "yes" >&6; } 3694fi 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3696$as_echo_n "checking for C compiler default output file name... " >&6; } 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3698$as_echo "$ac_file" >&6; } 3699ac_exeext=$ac_cv_exeext 3700 3701rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3702ac_clean_files=$ac_clean_files_save 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3704$as_echo_n "checking for suffix of executables... " >&6; } 3705if { { ac_try="$ac_link" 3706case "(($ac_try" in 3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3708 *) ac_try_echo=$ac_try;; 3709esac 3710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3711$as_echo "$ac_try_echo"; } >&5 3712 (eval "$ac_link") 2>&5 3713 ac_status=$? 3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3715 test $ac_status = 0; }; then : 3716 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3717# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3718# work properly (i.e., refer to `conftest.exe'), while it won't with 3719# `rm'. 3720for ac_file in conftest.exe conftest conftest.*; do 3721 test -f "$ac_file" || continue 3722 case $ac_file in 3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3724 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3725 break;; 3726 * ) break;; 3727 esac 3728done 3729else 3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3732as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3733See \`config.log' for more details" "$LINENO" 5; } 3734fi 3735rm -f conftest conftest$ac_cv_exeext 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3737$as_echo "$ac_cv_exeext" >&6; } 3738 3739rm -f conftest.$ac_ext 3740EXEEXT=$ac_cv_exeext 3741ac_exeext=$EXEEXT 3742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743/* end confdefs.h. */ 3744#include <stdio.h> 3745int 3746main () 3747{ 3748FILE *f = fopen ("conftest.out", "w"); 3749 return ferror (f) || fclose (f) != 0; 3750 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755ac_clean_files="$ac_clean_files conftest.out" 3756# Check that the compiler produces executables we can run. If not, either 3757# the compiler is broken, or we cross compile. 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3759$as_echo_n "checking whether we are cross compiling... " >&6; } 3760if test "$cross_compiling" != yes; then 3761 { { ac_try="$ac_link" 3762case "(($ac_try" in 3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3764 *) ac_try_echo=$ac_try;; 3765esac 3766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3767$as_echo "$ac_try_echo"; } >&5 3768 (eval "$ac_link") 2>&5 3769 ac_status=$? 3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3771 test $ac_status = 0; } 3772 if { ac_try='./conftest$ac_cv_exeext' 3773 { { case "(($ac_try" in 3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3775 *) ac_try_echo=$ac_try;; 3776esac 3777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3778$as_echo "$ac_try_echo"; } >&5 3779 (eval "$ac_try") 2>&5 3780 ac_status=$? 3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3782 test $ac_status = 0; }; }; then 3783 cross_compiling=no 3784 else 3785 if test "$cross_compiling" = maybe; then 3786 cross_compiling=yes 3787 else 3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3790as_fn_error $? "cannot run C compiled programs. 3791If you meant to cross compile, use \`--host'. 3792See \`config.log' for more details" "$LINENO" 5; } 3793 fi 3794 fi 3795fi 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3797$as_echo "$cross_compiling" >&6; } 3798 3799rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3800ac_clean_files=$ac_clean_files_save 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3802$as_echo_n "checking for suffix of object files... " >&6; } 3803if ${ac_cv_objext+:} false; then : 3804 $as_echo_n "(cached) " >&6 3805else 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808 3809int 3810main () 3811{ 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817rm -f conftest.o conftest.obj 3818if { { ac_try="$ac_compile" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3824$as_echo "$ac_try_echo"; } >&5 3825 (eval "$ac_compile") 2>&5 3826 ac_status=$? 3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3828 test $ac_status = 0; }; then : 3829 for ac_file in conftest.o conftest.obj conftest.*; do 3830 test -f "$ac_file" || continue; 3831 case $ac_file in 3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3834 break;; 3835 esac 3836done 3837else 3838 $as_echo "$as_me: failed program was:" >&5 3839sed 's/^/| /' conftest.$ac_ext >&5 3840 3841{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3843as_fn_error $? "cannot compute suffix of object files: cannot compile 3844See \`config.log' for more details" "$LINENO" 5; } 3845fi 3846rm -f conftest.$ac_cv_objext conftest.$ac_ext 3847fi 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3849$as_echo "$ac_cv_objext" >&6; } 3850OBJEXT=$ac_cv_objext 3851ac_objext=$OBJEXT 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3853$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3854if ${ac_cv_c_compiler_gnu+:} false; then : 3855 $as_echo_n "(cached) " >&6 3856else 3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3858/* end confdefs.h. */ 3859 3860int 3861main () 3862{ 3863#ifndef __GNUC__ 3864 choke me 3865#endif 3866 3867 ; 3868 return 0; 3869} 3870_ACEOF 3871if ac_fn_c_try_compile "$LINENO"; then : 3872 ac_compiler_gnu=yes 3873else 3874 ac_compiler_gnu=no 3875fi 3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3877ac_cv_c_compiler_gnu=$ac_compiler_gnu 3878 3879fi 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3881$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3882if test $ac_compiler_gnu = yes; then 3883 GCC=yes 3884else 3885 GCC= 3886fi 3887ac_test_CFLAGS=${CFLAGS+set} 3888ac_save_CFLAGS=$CFLAGS 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3890$as_echo_n "checking whether $CC accepts -g... " >&6; } 3891if ${ac_cv_prog_cc_g+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 ac_save_c_werror_flag=$ac_c_werror_flag 3895 ac_c_werror_flag=yes 3896 ac_cv_prog_cc_g=no 3897 CFLAGS="-g" 3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900 3901int 3902main () 3903{ 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909if ac_fn_c_try_compile "$LINENO"; then : 3910 ac_cv_prog_cc_g=yes 3911else 3912 CFLAGS="" 3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915 3916int 3917main () 3918{ 3919 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924if ac_fn_c_try_compile "$LINENO"; then : 3925 3926else 3927 ac_c_werror_flag=$ac_save_c_werror_flag 3928 CFLAGS="-g" 3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930/* end confdefs.h. */ 3931 3932int 3933main () 3934{ 3935 3936 ; 3937 return 0; 3938} 3939_ACEOF 3940if ac_fn_c_try_compile "$LINENO"; then : 3941 ac_cv_prog_cc_g=yes 3942fi 3943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3944fi 3945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3946fi 3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3948 ac_c_werror_flag=$ac_save_c_werror_flag 3949fi 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3951$as_echo "$ac_cv_prog_cc_g" >&6; } 3952if test "$ac_test_CFLAGS" = set; then 3953 CFLAGS=$ac_save_CFLAGS 3954elif test $ac_cv_prog_cc_g = yes; then 3955 if test "$GCC" = yes; then 3956 CFLAGS="-g -O2" 3957 else 3958 CFLAGS="-g" 3959 fi 3960else 3961 if test "$GCC" = yes; then 3962 CFLAGS="-O2" 3963 else 3964 CFLAGS= 3965 fi 3966fi 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3968$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3969if ${ac_cv_prog_cc_c89+:} false; then : 3970 $as_echo_n "(cached) " >&6 3971else 3972 ac_cv_prog_cc_c89=no 3973ac_save_CC=$CC 3974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3975/* end confdefs.h. */ 3976#include <stdarg.h> 3977#include <stdio.h> 3978struct stat; 3979/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3980struct buf { int x; }; 3981FILE * (*rcsopen) (struct buf *, struct stat *, int); 3982static char *e (p, i) 3983 char **p; 3984 int i; 3985{ 3986 return p[i]; 3987} 3988static char *f (char * (*g) (char **, int), char **p, ...) 3989{ 3990 char *s; 3991 va_list v; 3992 va_start (v,p); 3993 s = g (p, va_arg (v,int)); 3994 va_end (v); 3995 return s; 3996} 3997 3998/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3999 function prototypes and stuff, but not '\xHH' hex character constants. 4000 These don't provoke an error unfortunately, instead are silently treated 4001 as 'x'. The following induces an error, until -std is added to get 4002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4003 array size at least. It's necessary to write '\x00'==0 to get something 4004 that's true only with -std. */ 4005int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4006 4007/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4008 inside strings and character constants. */ 4009#define FOO(x) 'x' 4010int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4011 4012int test (int i, double x); 4013struct s1 {int (*f) (int a);}; 4014struct s2 {int (*f) (double a);}; 4015int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4016int argc; 4017char **argv; 4018int 4019main () 4020{ 4021return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4022 ; 4023 return 0; 4024} 4025_ACEOF 4026for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4028do 4029 CC="$ac_save_CC $ac_arg" 4030 if ac_fn_c_try_compile "$LINENO"; then : 4031 ac_cv_prog_cc_c89=$ac_arg 4032fi 4033rm -f core conftest.err conftest.$ac_objext 4034 test "x$ac_cv_prog_cc_c89" != "xno" && break 4035done 4036rm -f conftest.$ac_ext 4037CC=$ac_save_CC 4038 4039fi 4040# AC_CACHE_VAL 4041case "x$ac_cv_prog_cc_c89" in 4042 x) 4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4044$as_echo "none needed" >&6; } ;; 4045 xno) 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4047$as_echo "unsupported" >&6; } ;; 4048 *) 4049 CC="$CC $ac_cv_prog_cc_c89" 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4051$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4052esac 4053if test "x$ac_cv_prog_cc_c89" != xno; then : 4054 4055fi 4056 4057ac_ext=c 4058ac_cpp='$CPP $CPPFLAGS' 4059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4061ac_compiler_gnu=$ac_cv_c_compiler_gnu 4062 4063ac_ext=c 4064ac_cpp='$CPP $CPPFLAGS' 4065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4067ac_compiler_gnu=$ac_cv_c_compiler_gnu 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4069$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4070if ${am_cv_prog_cc_c_o+:} false; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074/* end confdefs.h. */ 4075 4076int 4077main () 4078{ 4079 4080 ; 4081 return 0; 4082} 4083_ACEOF 4084 # Make sure it works both with $CC and with simple cc. 4085 # Following AC_PROG_CC_C_O, we do the test twice because some 4086 # compilers refuse to overwrite an existing .o file with -o, 4087 # though they will create one. 4088 am_cv_prog_cc_c_o=yes 4089 for am_i in 1 2; do 4090 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4091 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4092 ac_status=$? 4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4094 (exit $ac_status); } \ 4095 && test -f conftest2.$ac_objext; then 4096 : OK 4097 else 4098 am_cv_prog_cc_c_o=no 4099 break 4100 fi 4101 done 4102 rm -f core conftest* 4103 unset am_i 4104fi 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4106$as_echo "$am_cv_prog_cc_c_o" >&6; } 4107if test "$am_cv_prog_cc_c_o" != yes; then 4108 # Losing compiler, so override with the script. 4109 # FIXME: It is wrong to rewrite CC. 4110 # But if we don't then we get into trouble of one sort or another. 4111 # A longer-term fix would be to have automake use am__CC in this case, 4112 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4113 CC="$am_aux_dir/compile $CC" 4114fi 4115ac_ext=c 4116ac_cpp='$CPP $CPPFLAGS' 4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4119ac_compiler_gnu=$ac_cv_c_compiler_gnu 4120 4121DEPDIR="${am__leading_dot}deps" 4122 4123ac_config_commands="$ac_config_commands depfiles" 4124 4125 4126am_make=${MAKE-make} 4127cat > confinc << 'END' 4128am__doit: 4129 @echo this is the am__doit target 4130.PHONY: am__doit 4131END 4132# If we don't find an include directive, just comment out the code. 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4134$as_echo_n "checking for style of include used by $am_make... " >&6; } 4135am__include="#" 4136am__quote= 4137_am_result=none 4138# First try GNU make style include. 4139echo "include confinc" > confmf 4140# Ignore all kinds of additional output from 'make'. 4141case `$am_make -s -f confmf 2> /dev/null` in #( 4142*the\ am__doit\ target*) 4143 am__include=include 4144 am__quote= 4145 _am_result=GNU 4146 ;; 4147esac 4148# Now try BSD make style include. 4149if test "$am__include" = "#"; then 4150 echo '.include "confinc"' > confmf 4151 case `$am_make -s -f confmf 2> /dev/null` in #( 4152 *the\ am__doit\ target*) 4153 am__include=.include 4154 am__quote="\"" 4155 _am_result=BSD 4156 ;; 4157 esac 4158fi 4159 4160 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4162$as_echo "$_am_result" >&6; } 4163rm -f confinc confmf 4164 4165# Check whether --enable-dependency-tracking was given. 4166if test "${enable_dependency_tracking+set}" = set; then : 4167 enableval=$enable_dependency_tracking; 4168fi 4169 4170if test "x$enable_dependency_tracking" != xno; then 4171 am_depcomp="$ac_aux_dir/depcomp" 4172 AMDEPBACKSLASH='\' 4173 am__nodep='_no' 4174fi 4175 if test "x$enable_dependency_tracking" != xno; then 4176 AMDEP_TRUE= 4177 AMDEP_FALSE='#' 4178else 4179 AMDEP_TRUE='#' 4180 AMDEP_FALSE= 4181fi 4182 4183 4184 4185depcc="$CC" am_compiler_list= 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4188$as_echo_n "checking dependency style of $depcc... " >&6; } 4189if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4193 # We make a subdir and do the tests there. Otherwise we can end up 4194 # making bogus files that we don't know about and never remove. For 4195 # instance it was reported that on HP-UX the gcc test will end up 4196 # making a dummy file named 'D' -- because '-MD' means "put the output 4197 # in D". 4198 rm -rf conftest.dir 4199 mkdir conftest.dir 4200 # Copy depcomp to subdir because otherwise we won't find it if we're 4201 # using a relative directory. 4202 cp "$am_depcomp" conftest.dir 4203 cd conftest.dir 4204 # We will build objects and dependencies in a subdirectory because 4205 # it helps to detect inapplicable dependency modes. For instance 4206 # both Tru64's cc and ICC support -MD to output dependencies as a 4207 # side effect of compilation, but ICC will put the dependencies in 4208 # the current directory while Tru64 will put them in the object 4209 # directory. 4210 mkdir sub 4211 4212 am_cv_CC_dependencies_compiler_type=none 4213 if test "$am_compiler_list" = ""; then 4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4215 fi 4216 am__universal=false 4217 case " $depcc " in #( 4218 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4219 esac 4220 4221 for depmode in $am_compiler_list; do 4222 # Setup a source with many dependencies, because some compilers 4223 # like to wrap large dependency lists on column 80 (with \), and 4224 # we should not choose a depcomp mode which is confused by this. 4225 # 4226 # We need to recreate these files for each test, as the compiler may 4227 # overwrite some of them when testing with obscure command lines. 4228 # This happens at least with the AIX C compiler. 4229 : > sub/conftest.c 4230 for i in 1 2 3 4 5 6; do 4231 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4232 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4233 # Solaris 10 /bin/sh. 4234 echo '/* dummy */' > sub/conftst$i.h 4235 done 4236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4237 4238 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4239 # mode. It turns out that the SunPro C++ compiler does not properly 4240 # handle '-M -o', and we need to detect this. Also, some Intel 4241 # versions had trouble with output in subdirs. 4242 am__obj=sub/conftest.${OBJEXT-o} 4243 am__minus_obj="-o $am__obj" 4244 case $depmode in 4245 gcc) 4246 # This depmode causes a compiler race in universal mode. 4247 test "$am__universal" = false || continue 4248 ;; 4249 nosideeffect) 4250 # After this tag, mechanisms are not by side-effect, so they'll 4251 # only be used when explicitly requested. 4252 if test "x$enable_dependency_tracking" = xyes; then 4253 continue 4254 else 4255 break 4256 fi 4257 ;; 4258 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4259 # This compiler won't grok '-c -o', but also, the minuso test has 4260 # not run yet. These depmodes are late enough in the game, and 4261 # so weak that their functioning should not be impacted. 4262 am__obj=conftest.${OBJEXT-o} 4263 am__minus_obj= 4264 ;; 4265 none) break ;; 4266 esac 4267 if depmode=$depmode \ 4268 source=sub/conftest.c object=$am__obj \ 4269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4271 >/dev/null 2>conftest.err && 4272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4276 # icc doesn't choke on unknown options, it will just issue warnings 4277 # or remarks (even with -Werror). So we grep stderr for any message 4278 # that says an option was ignored or not supported. 4279 # When given -MP, icc 7.0 and 7.1 complain thusly: 4280 # icc: Command line warning: ignoring option '-M'; no argument required 4281 # The diagnosis changed in icc 8.0: 4282 # icc: Command line remark: option '-MP' not supported 4283 if (grep 'ignoring option' conftest.err || 4284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4285 am_cv_CC_dependencies_compiler_type=$depmode 4286 break 4287 fi 4288 fi 4289 done 4290 4291 cd .. 4292 rm -rf conftest.dir 4293else 4294 am_cv_CC_dependencies_compiler_type=none 4295fi 4296 4297fi 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4299$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4300CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4301 4302 if 4303 test "x$enable_dependency_tracking" != xno \ 4304 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4305 am__fastdepCC_TRUE= 4306 am__fastdepCC_FALSE='#' 4307else 4308 am__fastdepCC_TRUE='#' 4309 am__fastdepCC_FALSE= 4310fi 4311 4312 4313 4314ac_ext=c 4315ac_cpp='$CPP $CPPFLAGS' 4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4318ac_compiler_gnu=$ac_cv_c_compiler_gnu 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4320$as_echo_n "checking how to run the C preprocessor... " >&6; } 4321# On Suns, sometimes $CPP names a directory. 4322if test -n "$CPP" && test -d "$CPP"; then 4323 CPP= 4324fi 4325if test -z "$CPP"; then 4326 if ${ac_cv_prog_CPP+:} false; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 # Double quotes because CPP needs to be expanded 4330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4331 do 4332 ac_preproc_ok=false 4333for ac_c_preproc_warn_flag in '' yes 4334do 4335 # Use a header file that comes with gcc, so configuring glibc 4336 # with a fresh cross-compiler works. 4337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4338 # <limits.h> exists even on freestanding compilers. 4339 # On the NeXT, cc -E runs the code through the compiler's parser, 4340 # not just through cpp. "Syntax error" is here to catch this case. 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343#ifdef __STDC__ 4344# include <limits.h> 4345#else 4346# include <assert.h> 4347#endif 4348 Syntax error 4349_ACEOF 4350if ac_fn_c_try_cpp "$LINENO"; then : 4351 4352else 4353 # Broken: fails on valid input. 4354continue 4355fi 4356rm -f conftest.err conftest.i conftest.$ac_ext 4357 4358 # OK, works on sane cases. Now check whether nonexistent headers 4359 # can be detected and how. 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <ac_nonexistent.h> 4363_ACEOF 4364if ac_fn_c_try_cpp "$LINENO"; then : 4365 # Broken: success on invalid input. 4366continue 4367else 4368 # Passes both tests. 4369ac_preproc_ok=: 4370break 4371fi 4372rm -f conftest.err conftest.i conftest.$ac_ext 4373 4374done 4375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4376rm -f conftest.i conftest.err conftest.$ac_ext 4377if $ac_preproc_ok; then : 4378 break 4379fi 4380 4381 done 4382 ac_cv_prog_CPP=$CPP 4383 4384fi 4385 CPP=$ac_cv_prog_CPP 4386else 4387 ac_cv_prog_CPP=$CPP 4388fi 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4390$as_echo "$CPP" >&6; } 4391ac_preproc_ok=false 4392for ac_c_preproc_warn_flag in '' yes 4393do 4394 # Use a header file that comes with gcc, so configuring glibc 4395 # with a fresh cross-compiler works. 4396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4397 # <limits.h> exists even on freestanding compilers. 4398 # On the NeXT, cc -E runs the code through the compiler's parser, 4399 # not just through cpp. "Syntax error" is here to catch this case. 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402#ifdef __STDC__ 4403# include <limits.h> 4404#else 4405# include <assert.h> 4406#endif 4407 Syntax error 4408_ACEOF 4409if ac_fn_c_try_cpp "$LINENO"; then : 4410 4411else 4412 # Broken: fails on valid input. 4413continue 4414fi 4415rm -f conftest.err conftest.i conftest.$ac_ext 4416 4417 # OK, works on sane cases. Now check whether nonexistent headers 4418 # can be detected and how. 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4420/* end confdefs.h. */ 4421#include <ac_nonexistent.h> 4422_ACEOF 4423if ac_fn_c_try_cpp "$LINENO"; then : 4424 # Broken: success on invalid input. 4425continue 4426else 4427 # Passes both tests. 4428ac_preproc_ok=: 4429break 4430fi 4431rm -f conftest.err conftest.i conftest.$ac_ext 4432 4433done 4434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4435rm -f conftest.i conftest.err conftest.$ac_ext 4436if $ac_preproc_ok; then : 4437 4438else 4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4441as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4442See \`config.log' for more details" "$LINENO" 5; } 4443fi 4444 4445ac_ext=c 4446ac_cpp='$CPP $CPPFLAGS' 4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4449ac_compiler_gnu=$ac_cv_c_compiler_gnu 4450 4451 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4453$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4454if ${ac_cv_path_GREP+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 if test -z "$GREP"; then 4458 ac_path_GREP_found=false 4459 # Loop through the user's path and test for each of PROGNAME-LIST 4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4462do 4463 IFS=$as_save_IFS 4464 test -z "$as_dir" && as_dir=. 4465 for ac_prog in grep ggrep; do 4466 for ac_exec_ext in '' $ac_executable_extensions; do 4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4468 as_fn_executable_p "$ac_path_GREP" || continue 4469# Check for GNU ac_path_GREP and select it if it is found. 4470 # Check for GNU $ac_path_GREP 4471case `"$ac_path_GREP" --version 2>&1` in 4472*GNU*) 4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4474*) 4475 ac_count=0 4476 $as_echo_n 0123456789 >"conftest.in" 4477 while : 4478 do 4479 cat "conftest.in" "conftest.in" >"conftest.tmp" 4480 mv "conftest.tmp" "conftest.in" 4481 cp "conftest.in" "conftest.nl" 4482 $as_echo 'GREP' >> "conftest.nl" 4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4485 as_fn_arith $ac_count + 1 && ac_count=$as_val 4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4487 # Best one so far, save it but keep looking for a better one 4488 ac_cv_path_GREP="$ac_path_GREP" 4489 ac_path_GREP_max=$ac_count 4490 fi 4491 # 10*(2^10) chars as input seems more than enough 4492 test $ac_count -gt 10 && break 4493 done 4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4495esac 4496 4497 $ac_path_GREP_found && break 3 4498 done 4499 done 4500 done 4501IFS=$as_save_IFS 4502 if test -z "$ac_cv_path_GREP"; then 4503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4504 fi 4505else 4506 ac_cv_path_GREP=$GREP 4507fi 4508 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4511$as_echo "$ac_cv_path_GREP" >&6; } 4512 GREP="$ac_cv_path_GREP" 4513 4514 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4516$as_echo_n "checking for egrep... " >&6; } 4517if ${ac_cv_path_EGREP+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4521 then ac_cv_path_EGREP="$GREP -E" 4522 else 4523 if test -z "$EGREP"; then 4524 ac_path_EGREP_found=false 4525 # Loop through the user's path and test for each of PROGNAME-LIST 4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4528do 4529 IFS=$as_save_IFS 4530 test -z "$as_dir" && as_dir=. 4531 for ac_prog in egrep; do 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4534 as_fn_executable_p "$ac_path_EGREP" || continue 4535# Check for GNU ac_path_EGREP and select it if it is found. 4536 # Check for GNU $ac_path_EGREP 4537case `"$ac_path_EGREP" --version 2>&1` in 4538*GNU*) 4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4540*) 4541 ac_count=0 4542 $as_echo_n 0123456789 >"conftest.in" 4543 while : 4544 do 4545 cat "conftest.in" "conftest.in" >"conftest.tmp" 4546 mv "conftest.tmp" "conftest.in" 4547 cp "conftest.in" "conftest.nl" 4548 $as_echo 'EGREP' >> "conftest.nl" 4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4551 as_fn_arith $ac_count + 1 && ac_count=$as_val 4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4553 # Best one so far, save it but keep looking for a better one 4554 ac_cv_path_EGREP="$ac_path_EGREP" 4555 ac_path_EGREP_max=$ac_count 4556 fi 4557 # 10*(2^10) chars as input seems more than enough 4558 test $ac_count -gt 10 && break 4559 done 4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4561esac 4562 4563 $ac_path_EGREP_found && break 3 4564 done 4565 done 4566 done 4567IFS=$as_save_IFS 4568 if test -z "$ac_cv_path_EGREP"; then 4569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4570 fi 4571else 4572 ac_cv_path_EGREP=$EGREP 4573fi 4574 4575 fi 4576fi 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4578$as_echo "$ac_cv_path_EGREP" >&6; } 4579 EGREP="$ac_cv_path_EGREP" 4580 4581 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4583$as_echo_n "checking for ANSI C header files... " >&6; } 4584if ${ac_cv_header_stdc+:} false; then : 4585 $as_echo_n "(cached) " >&6 4586else 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589#include <stdlib.h> 4590#include <stdarg.h> 4591#include <string.h> 4592#include <float.h> 4593 4594int 4595main () 4596{ 4597 4598 ; 4599 return 0; 4600} 4601_ACEOF 4602if ac_fn_c_try_compile "$LINENO"; then : 4603 ac_cv_header_stdc=yes 4604else 4605 ac_cv_header_stdc=no 4606fi 4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4608 4609if test $ac_cv_header_stdc = yes; then 4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613#include <string.h> 4614 4615_ACEOF 4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4617 $EGREP "memchr" >/dev/null 2>&1; then : 4618 4619else 4620 ac_cv_header_stdc=no 4621fi 4622rm -f conftest* 4623 4624fi 4625 4626if test $ac_cv_header_stdc = yes; then 4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630#include <stdlib.h> 4631 4632_ACEOF 4633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4634 $EGREP "free" >/dev/null 2>&1; then : 4635 4636else 4637 ac_cv_header_stdc=no 4638fi 4639rm -f conftest* 4640 4641fi 4642 4643if test $ac_cv_header_stdc = yes; then 4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4645 if test "$cross_compiling" = yes; then : 4646 : 4647else 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650#include <ctype.h> 4651#include <stdlib.h> 4652#if ((' ' & 0x0FF) == 0x020) 4653# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4654# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4655#else 4656# define ISLOWER(c) \ 4657 (('a' <= (c) && (c) <= 'i') \ 4658 || ('j' <= (c) && (c) <= 'r') \ 4659 || ('s' <= (c) && (c) <= 'z')) 4660# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4661#endif 4662 4663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4664int 4665main () 4666{ 4667 int i; 4668 for (i = 0; i < 256; i++) 4669 if (XOR (islower (i), ISLOWER (i)) 4670 || toupper (i) != TOUPPER (i)) 4671 return 2; 4672 return 0; 4673} 4674_ACEOF 4675if ac_fn_c_try_run "$LINENO"; then : 4676 4677else 4678 ac_cv_header_stdc=no 4679fi 4680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4681 conftest.$ac_objext conftest.beam conftest.$ac_ext 4682fi 4683 4684fi 4685fi 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4687$as_echo "$ac_cv_header_stdc" >&6; } 4688if test $ac_cv_header_stdc = yes; then 4689 4690$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4691 4692fi 4693 4694# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4695for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4696 inttypes.h stdint.h unistd.h 4697do : 4698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4699ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4700" 4701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4702 cat >>confdefs.h <<_ACEOF 4703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4704_ACEOF 4705 4706fi 4707 4708done 4709 4710 4711 4712 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4713if test "x$ac_cv_header_minix_config_h" = xyes; then : 4714 MINIX=yes 4715else 4716 MINIX= 4717fi 4718 4719 4720 if test "$MINIX" = yes; then 4721 4722$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4723 4724 4725$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4726 4727 4728$as_echo "#define _MINIX 1" >>confdefs.h 4729 4730 fi 4731 4732 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4734$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4735if ${ac_cv_safe_to_define___extensions__+:} false; then : 4736 $as_echo_n "(cached) " >&6 4737else 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740 4741# define __EXTENSIONS__ 1 4742 $ac_includes_default 4743int 4744main () 4745{ 4746 4747 ; 4748 return 0; 4749} 4750_ACEOF 4751if ac_fn_c_try_compile "$LINENO"; then : 4752 ac_cv_safe_to_define___extensions__=yes 4753else 4754 ac_cv_safe_to_define___extensions__=no 4755fi 4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4757fi 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4759$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4760 test $ac_cv_safe_to_define___extensions__ = yes && 4761 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4762 4763 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4764 4765 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4766 4767 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4768 4769 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4770 4771 4772 4773 4774 4775if test -n "$ac_tool_prefix"; then 4776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4777set dummy ${ac_tool_prefix}ar; ac_word=$2 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4779$as_echo_n "checking for $ac_word... " >&6; } 4780if ${ac_cv_prog_AR+:} false; then : 4781 $as_echo_n "(cached) " >&6 4782else 4783 if test -n "$AR"; then 4784 ac_cv_prog_AR="$AR" # Let the user override the test. 4785else 4786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4787for as_dir in $PATH 4788do 4789 IFS=$as_save_IFS 4790 test -z "$as_dir" && as_dir=. 4791 for ac_exec_ext in '' $ac_executable_extensions; do 4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4793 ac_cv_prog_AR="${ac_tool_prefix}ar" 4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4795 break 2 4796 fi 4797done 4798 done 4799IFS=$as_save_IFS 4800 4801fi 4802fi 4803AR=$ac_cv_prog_AR 4804if test -n "$AR"; then 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4806$as_echo "$AR" >&6; } 4807else 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4809$as_echo "no" >&6; } 4810fi 4811 4812 4813fi 4814if test -z "$ac_cv_prog_AR"; then 4815 ac_ct_AR=$AR 4816 # Extract the first word of "ar", so it can be a program name with args. 4817set dummy ar; ac_word=$2 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4819$as_echo_n "checking for $ac_word... " >&6; } 4820if ${ac_cv_prog_ac_ct_AR+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 if test -n "$ac_ct_AR"; then 4824 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4825else 4826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4827for as_dir in $PATH 4828do 4829 IFS=$as_save_IFS 4830 test -z "$as_dir" && as_dir=. 4831 for ac_exec_ext in '' $ac_executable_extensions; do 4832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4833 ac_cv_prog_ac_ct_AR="ar" 4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4835 break 2 4836 fi 4837done 4838 done 4839IFS=$as_save_IFS 4840 4841fi 4842fi 4843ac_ct_AR=$ac_cv_prog_ac_ct_AR 4844if test -n "$ac_ct_AR"; then 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4846$as_echo "$ac_ct_AR" >&6; } 4847else 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4849$as_echo "no" >&6; } 4850fi 4851 4852 if test "x$ac_ct_AR" = x; then 4853 AR="" 4854 else 4855 case $cross_compiling:$ac_tool_warned in 4856yes:) 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4859ac_tool_warned=yes ;; 4860esac 4861 AR=$ac_ct_AR 4862 fi 4863else 4864 AR="$ac_cv_prog_AR" 4865fi 4866 4867if test -n "$ac_tool_prefix"; then 4868 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4869set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4871$as_echo_n "checking for $ac_word... " >&6; } 4872if ${ac_cv_prog_RANLIB+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 if test -n "$RANLIB"; then 4876 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4877else 4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4879for as_dir in $PATH 4880do 4881 IFS=$as_save_IFS 4882 test -z "$as_dir" && as_dir=. 4883 for ac_exec_ext in '' $ac_executable_extensions; do 4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4885 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4887 break 2 4888 fi 4889done 4890 done 4891IFS=$as_save_IFS 4892 4893fi 4894fi 4895RANLIB=$ac_cv_prog_RANLIB 4896if test -n "$RANLIB"; then 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4898$as_echo "$RANLIB" >&6; } 4899else 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4901$as_echo "no" >&6; } 4902fi 4903 4904 4905fi 4906if test -z "$ac_cv_prog_RANLIB"; then 4907 ac_ct_RANLIB=$RANLIB 4908 # Extract the first word of "ranlib", so it can be a program name with args. 4909set dummy ranlib; ac_word=$2 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4911$as_echo_n "checking for $ac_word... " >&6; } 4912if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 if test -n "$ac_ct_RANLIB"; then 4916 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4917else 4918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4919for as_dir in $PATH 4920do 4921 IFS=$as_save_IFS 4922 test -z "$as_dir" && as_dir=. 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4925 ac_cv_prog_ac_ct_RANLIB="ranlib" 4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4927 break 2 4928 fi 4929done 4930 done 4931IFS=$as_save_IFS 4932 4933fi 4934fi 4935ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4936if test -n "$ac_ct_RANLIB"; then 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4938$as_echo "$ac_ct_RANLIB" >&6; } 4939else 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4941$as_echo "no" >&6; } 4942fi 4943 4944 if test "x$ac_ct_RANLIB" = x; then 4945 RANLIB=":" 4946 else 4947 case $cross_compiling:$ac_tool_warned in 4948yes:) 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4951ac_tool_warned=yes ;; 4952esac 4953 RANLIB=$ac_ct_RANLIB 4954 fi 4955else 4956 RANLIB="$ac_cv_prog_RANLIB" 4957fi 4958 4959 4960# Check whether --enable-shared was given. 4961if test "${enable_shared+set}" = set; then : 4962 enableval=$enable_shared; p=${PACKAGE-default} 4963 case $enableval in 4964 yes) enable_shared=yes ;; 4965 no) enable_shared=no ;; 4966 *) 4967 enable_shared=no 4968 # Look at the argument we got. We use all the common list separators. 4969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4970 for pkg in $enableval; do 4971 IFS="$lt_save_ifs" 4972 if test "X$pkg" = "X$p"; then 4973 enable_shared=yes 4974 fi 4975 done 4976 IFS="$lt_save_ifs" 4977 ;; 4978 esac 4979else 4980 enable_shared=no 4981fi 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992case `pwd` in 4993 *\ * | *\ *) 4994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4995$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4996esac 4997 4998 4999 5000macro_version='2.2.7a' 5001macro_revision='1.3134' 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015ltmain="$ac_aux_dir/ltmain.sh" 5016 5017# Backslashify metacharacters that are still active within 5018# double-quoted strings. 5019sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5020 5021# Same as above, but do not quote variable references. 5022double_quote_subst='s/\(["`\\]\)/\\\1/g' 5023 5024# Sed substitution to delay expansion of an escaped shell variable in a 5025# double_quote_subst'ed string. 5026delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5027 5028# Sed substitution to delay expansion of an escaped single quote. 5029delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5030 5031# Sed substitution to avoid accidental globbing in evaled expressions 5032no_glob_subst='s/\*/\\\*/g' 5033 5034ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5035ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5036ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5037 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5039$as_echo_n "checking how to print strings... " >&6; } 5040# Test print first, because it will be a builtin if present. 5041if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5042 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5043 ECHO='print -r --' 5044elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5045 ECHO='printf %s\n' 5046else 5047 # Use this function as a fallback that always works. 5048 func_fallback_echo () 5049 { 5050 eval 'cat <<_LTECHO_EOF 5051$1 5052_LTECHO_EOF' 5053 } 5054 ECHO='func_fallback_echo' 5055fi 5056 5057# func_echo_all arg... 5058# Invoke $ECHO with all args, space-separated. 5059func_echo_all () 5060{ 5061 $ECHO "" 5062} 5063 5064case "$ECHO" in 5065 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5066$as_echo "printf" >&6; } ;; 5067 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5068$as_echo "print -r" >&6; } ;; 5069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5070$as_echo "cat" >&6; } ;; 5071esac 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5087$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5088if ${ac_cv_path_SED+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5092 for ac_i in 1 2 3 4 5 6 7; do 5093 ac_script="$ac_script$as_nl$ac_script" 5094 done 5095 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5096 { ac_script=; unset ac_script;} 5097 if test -z "$SED"; then 5098 ac_path_SED_found=false 5099 # Loop through the user's path and test for each of PROGNAME-LIST 5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5101for as_dir in $PATH 5102do 5103 IFS=$as_save_IFS 5104 test -z "$as_dir" && as_dir=. 5105 for ac_prog in sed gsed; do 5106 for ac_exec_ext in '' $ac_executable_extensions; do 5107 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5108 as_fn_executable_p "$ac_path_SED" || continue 5109# Check for GNU ac_path_SED and select it if it is found. 5110 # Check for GNU $ac_path_SED 5111case `"$ac_path_SED" --version 2>&1` in 5112*GNU*) 5113 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5114*) 5115 ac_count=0 5116 $as_echo_n 0123456789 >"conftest.in" 5117 while : 5118 do 5119 cat "conftest.in" "conftest.in" >"conftest.tmp" 5120 mv "conftest.tmp" "conftest.in" 5121 cp "conftest.in" "conftest.nl" 5122 $as_echo '' >> "conftest.nl" 5123 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5125 as_fn_arith $ac_count + 1 && ac_count=$as_val 5126 if test $ac_count -gt ${ac_path_SED_max-0}; then 5127 # Best one so far, save it but keep looking for a better one 5128 ac_cv_path_SED="$ac_path_SED" 5129 ac_path_SED_max=$ac_count 5130 fi 5131 # 10*(2^10) chars as input seems more than enough 5132 test $ac_count -gt 10 && break 5133 done 5134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5135esac 5136 5137 $ac_path_SED_found && break 3 5138 done 5139 done 5140 done 5141IFS=$as_save_IFS 5142 if test -z "$ac_cv_path_SED"; then 5143 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5144 fi 5145else 5146 ac_cv_path_SED=$SED 5147fi 5148 5149fi 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5151$as_echo "$ac_cv_path_SED" >&6; } 5152 SED="$ac_cv_path_SED" 5153 rm -f conftest.sed 5154 5155test -z "$SED" && SED=sed 5156Xsed="$SED -e 1s/^X//" 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5169$as_echo_n "checking for fgrep... " >&6; } 5170if ${ac_cv_path_FGREP+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5174 then ac_cv_path_FGREP="$GREP -F" 5175 else 5176 if test -z "$FGREP"; then 5177 ac_path_FGREP_found=false 5178 # Loop through the user's path and test for each of PROGNAME-LIST 5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5181do 5182 IFS=$as_save_IFS 5183 test -z "$as_dir" && as_dir=. 5184 for ac_prog in fgrep; do 5185 for ac_exec_ext in '' $ac_executable_extensions; do 5186 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5187 as_fn_executable_p "$ac_path_FGREP" || continue 5188# Check for GNU ac_path_FGREP and select it if it is found. 5189 # Check for GNU $ac_path_FGREP 5190case `"$ac_path_FGREP" --version 2>&1` in 5191*GNU*) 5192 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5193*) 5194 ac_count=0 5195 $as_echo_n 0123456789 >"conftest.in" 5196 while : 5197 do 5198 cat "conftest.in" "conftest.in" >"conftest.tmp" 5199 mv "conftest.tmp" "conftest.in" 5200 cp "conftest.in" "conftest.nl" 5201 $as_echo 'FGREP' >> "conftest.nl" 5202 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5204 as_fn_arith $ac_count + 1 && ac_count=$as_val 5205 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5206 # Best one so far, save it but keep looking for a better one 5207 ac_cv_path_FGREP="$ac_path_FGREP" 5208 ac_path_FGREP_max=$ac_count 5209 fi 5210 # 10*(2^10) chars as input seems more than enough 5211 test $ac_count -gt 10 && break 5212 done 5213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5214esac 5215 5216 $ac_path_FGREP_found && break 3 5217 done 5218 done 5219 done 5220IFS=$as_save_IFS 5221 if test -z "$ac_cv_path_FGREP"; then 5222 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5223 fi 5224else 5225 ac_cv_path_FGREP=$FGREP 5226fi 5227 5228 fi 5229fi 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5231$as_echo "$ac_cv_path_FGREP" >&6; } 5232 FGREP="$ac_cv_path_FGREP" 5233 5234 5235test -z "$GREP" && GREP=grep 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255# Check whether --with-gnu-ld was given. 5256if test "${with_gnu_ld+set}" = set; then : 5257 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5258else 5259 with_gnu_ld=no 5260fi 5261 5262ac_prog=ld 5263if test "$GCC" = yes; then 5264 # Check if gcc -print-prog-name=ld gives a path. 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5266$as_echo_n "checking for ld used by $CC... " >&6; } 5267 case $host in 5268 *-*-mingw*) 5269 # gcc leaves a trailing carriage return which upsets mingw 5270 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5271 *) 5272 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5273 esac 5274 case $ac_prog in 5275 # Accept absolute paths. 5276 [\\/]* | ?:[\\/]*) 5277 re_direlt='/[^/][^/]*/\.\./' 5278 # Canonicalize the pathname of ld 5279 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5280 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5281 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5282 done 5283 test -z "$LD" && LD="$ac_prog" 5284 ;; 5285 "") 5286 # If it fails, then pretend we aren't using GCC. 5287 ac_prog=ld 5288 ;; 5289 *) 5290 # If it is relative, then search for the first ld in PATH. 5291 with_gnu_ld=unknown 5292 ;; 5293 esac 5294elif test "$with_gnu_ld" = yes; then 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5296$as_echo_n "checking for GNU ld... " >&6; } 5297else 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5299$as_echo_n "checking for non-GNU ld... " >&6; } 5300fi 5301if ${lt_cv_path_LD+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 if test -z "$LD"; then 5305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5306 for ac_dir in $PATH; do 5307 IFS="$lt_save_ifs" 5308 test -z "$ac_dir" && ac_dir=. 5309 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5310 lt_cv_path_LD="$ac_dir/$ac_prog" 5311 # Check to see if the program is GNU ld. I'd rather use --version, 5312 # but apparently some variants of GNU ld only accept -v. 5313 # Break only if it was the GNU/non-GNU ld that we prefer. 5314 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5315 *GNU* | *'with BFD'*) 5316 test "$with_gnu_ld" != no && break 5317 ;; 5318 *) 5319 test "$with_gnu_ld" != yes && break 5320 ;; 5321 esac 5322 fi 5323 done 5324 IFS="$lt_save_ifs" 5325else 5326 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5327fi 5328fi 5329 5330LD="$lt_cv_path_LD" 5331if test -n "$LD"; then 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5333$as_echo "$LD" >&6; } 5334else 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5336$as_echo "no" >&6; } 5337fi 5338test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5340$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5341if ${lt_cv_prog_gnu_ld+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5345case `$LD -v 2>&1 </dev/null` in 5346*GNU* | *'with BFD'*) 5347 lt_cv_prog_gnu_ld=yes 5348 ;; 5349*) 5350 lt_cv_prog_gnu_ld=no 5351 ;; 5352esac 5353fi 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5355$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5356with_gnu_ld=$lt_cv_prog_gnu_ld 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5367$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5368if ${lt_cv_path_NM+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 if test -n "$NM"; then 5372 # Let the user override the nm to test. 5373 lt_nm_to_check="$NM" 5374 else 5375 lt_nm_to_check="${ac_tool_prefix}nm" 5376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5377 lt_nm_to_check="$lt_nm_to_check nm" 5378 fi 5379 fi 5380 for lt_tmp_nm in "$lt_nm_to_check"; do 5381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5382 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5383 IFS="$lt_save_ifs" 5384 test -z "$ac_dir" && ac_dir=. 5385 # Strip out any user-provided options from the nm to test twice, 5386 # the first time to test to see if nm (rather than its options) has 5387 # an explicit path, the second time to yield a file which can be 5388 # nm'ed itself. 5389 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5390 case "$tmp_nm_path" in 5391 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5392 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5393 esac 5394 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5395 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5396 # Check to see if the nm accepts a BSD-compat flag. 5397 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5398 # nm: unknown option "B" ignored 5399 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5400 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5401 break 5402 ;; 5403 *) 5404 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5405 *$tmp_nm*) 5406 lt_cv_path_NM="$tmp_nm -p" 5407 break 5408 ;; 5409 *) 5410 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5411 continue # so that we can try to find one that supports BSD flags 5412 ;; 5413 esac 5414 ;; 5415 esac 5416 fi 5417 done 5418 IFS="$lt_save_ifs" 5419 done 5420 : ${lt_cv_path_NM=no} 5421fi 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5423$as_echo "$lt_cv_path_NM" >&6; } 5424if test "$lt_cv_path_NM" != "no"; then 5425 NM="$lt_cv_path_NM" 5426else 5427 # Didn't find any BSD compatible name lister, look for dumpbin. 5428 if test -n "$DUMPBIN"; then : 5429 # Let the user override the test. 5430 else 5431 if test -n "$ac_tool_prefix"; then 5432 for ac_prog in dumpbin "link -dump" 5433 do 5434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5435set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5437$as_echo_n "checking for $ac_word... " >&6; } 5438if ${ac_cv_prog_DUMPBIN+:} false; then : 5439 $as_echo_n "(cached) " >&6 5440else 5441 if test -n "$DUMPBIN"; then 5442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5443else 5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5445for as_dir in $PATH 5446do 5447 IFS=$as_save_IFS 5448 test -z "$as_dir" && as_dir=. 5449 for ac_exec_ext in '' $ac_executable_extensions; do 5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5451 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5453 break 2 5454 fi 5455done 5456 done 5457IFS=$as_save_IFS 5458 5459fi 5460fi 5461DUMPBIN=$ac_cv_prog_DUMPBIN 5462if test -n "$DUMPBIN"; then 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5464$as_echo "$DUMPBIN" >&6; } 5465else 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5467$as_echo "no" >&6; } 5468fi 5469 5470 5471 test -n "$DUMPBIN" && break 5472 done 5473fi 5474if test -z "$DUMPBIN"; then 5475 ac_ct_DUMPBIN=$DUMPBIN 5476 for ac_prog in dumpbin "link -dump" 5477do 5478 # Extract the first word of "$ac_prog", so it can be a program name with args. 5479set dummy $ac_prog; ac_word=$2 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5481$as_echo_n "checking for $ac_word... " >&6; } 5482if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 if test -n "$ac_ct_DUMPBIN"; then 5486 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5487else 5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489for as_dir in $PATH 5490do 5491 IFS=$as_save_IFS 5492 test -z "$as_dir" && as_dir=. 5493 for ac_exec_ext in '' $ac_executable_extensions; do 5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5495 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5497 break 2 5498 fi 5499done 5500 done 5501IFS=$as_save_IFS 5502 5503fi 5504fi 5505ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5506if test -n "$ac_ct_DUMPBIN"; then 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5508$as_echo "$ac_ct_DUMPBIN" >&6; } 5509else 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5511$as_echo "no" >&6; } 5512fi 5513 5514 5515 test -n "$ac_ct_DUMPBIN" && break 5516done 5517 5518 if test "x$ac_ct_DUMPBIN" = x; then 5519 DUMPBIN=":" 5520 else 5521 case $cross_compiling:$ac_tool_warned in 5522yes:) 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5525ac_tool_warned=yes ;; 5526esac 5527 DUMPBIN=$ac_ct_DUMPBIN 5528 fi 5529fi 5530 5531 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5532 *COFF*) 5533 DUMPBIN="$DUMPBIN -symbols" 5534 ;; 5535 *) 5536 DUMPBIN=: 5537 ;; 5538 esac 5539 fi 5540 5541 if test "$DUMPBIN" != ":"; then 5542 NM="$DUMPBIN" 5543 fi 5544fi 5545test -z "$NM" && NM=nm 5546 5547 5548 5549 5550 5551 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5553$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5554if ${lt_cv_nm_interface+:} false; then : 5555 $as_echo_n "(cached) " >&6 5556else 5557 lt_cv_nm_interface="BSD nm" 5558 echo "int some_variable = 0;" > conftest.$ac_ext 5559 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5560 (eval "$ac_compile" 2>conftest.err) 5561 cat conftest.err >&5 5562 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5564 cat conftest.err >&5 5565 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5566 cat conftest.out >&5 5567 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5568 lt_cv_nm_interface="MS dumpbin" 5569 fi 5570 rm -f conftest* 5571fi 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5573$as_echo "$lt_cv_nm_interface" >&6; } 5574 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5576$as_echo_n "checking whether ln -s works... " >&6; } 5577LN_S=$as_ln_s 5578if test "$LN_S" = "ln -s"; then 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5580$as_echo "yes" >&6; } 5581else 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5583$as_echo "no, using $LN_S" >&6; } 5584fi 5585 5586# find the maximum length of command line arguments 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5588$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5589if ${lt_cv_sys_max_cmd_len+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 i=0 5593 teststring="ABCD" 5594 5595 case $build_os in 5596 msdosdjgpp*) 5597 # On DJGPP, this test can blow up pretty badly due to problems in libc 5598 # (any single argument exceeding 2000 bytes causes a buffer overrun 5599 # during glob expansion). Even if it were fixed, the result of this 5600 # check would be larger than it should be. 5601 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5602 ;; 5603 5604 gnu*) 5605 # Under GNU Hurd, this test is not required because there is 5606 # no limit to the length of command line arguments. 5607 # Libtool will interpret -1 as no limit whatsoever 5608 lt_cv_sys_max_cmd_len=-1; 5609 ;; 5610 5611 cygwin* | mingw* | cegcc*) 5612 # On Win9x/ME, this test blows up -- it succeeds, but takes 5613 # about 5 minutes as the teststring grows exponentially. 5614 # Worse, since 9x/ME are not pre-emptively multitasking, 5615 # you end up with a "frozen" computer, even though with patience 5616 # the test eventually succeeds (with a max line length of 256k). 5617 # Instead, let's just punt: use the minimum linelength reported by 5618 # all of the supported platforms: 8192 (on NT/2K/XP). 5619 lt_cv_sys_max_cmd_len=8192; 5620 ;; 5621 5622 mint*) 5623 # On MiNT this can take a long time and run out of memory. 5624 lt_cv_sys_max_cmd_len=8192; 5625 ;; 5626 5627 amigaos*) 5628 # On AmigaOS with pdksh, this test takes hours, literally. 5629 # So we just punt and use a minimum line length of 8192. 5630 lt_cv_sys_max_cmd_len=8192; 5631 ;; 5632 5633 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5634 # This has been around since 386BSD, at least. Likely further. 5635 if test -x /sbin/sysctl; then 5636 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5637 elif test -x /usr/sbin/sysctl; then 5638 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5639 else 5640 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5641 fi 5642 # And add a safety zone 5643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5645 ;; 5646 5647 interix*) 5648 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5649 lt_cv_sys_max_cmd_len=196608 5650 ;; 5651 5652 osf*) 5653 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5654 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5655 # nice to cause kernel panics so lets avoid the loop below. 5656 # First set a reasonable default. 5657 lt_cv_sys_max_cmd_len=16384 5658 # 5659 if test -x /sbin/sysconfig; then 5660 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5661 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5662 esac 5663 fi 5664 ;; 5665 sco3.2v5*) 5666 lt_cv_sys_max_cmd_len=102400 5667 ;; 5668 sysv5* | sco5v6* | sysv4.2uw2*) 5669 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5670 if test -n "$kargmax"; then 5671 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5672 else 5673 lt_cv_sys_max_cmd_len=32768 5674 fi 5675 ;; 5676 *) 5677 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5678 if test -n "$lt_cv_sys_max_cmd_len"; then 5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5681 else 5682 # Make teststring a little bigger before we do anything with it. 5683 # a 1K string should be a reasonable start. 5684 for i in 1 2 3 4 5 6 7 8 ; do 5685 teststring=$teststring$teststring 5686 done 5687 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5688 # If test is not a shell built-in, we'll probably end up computing a 5689 # maximum length that is only half of the actual maximum length, but 5690 # we can't tell. 5691 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5692 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5693 test $i != 17 # 1/2 MB should be enough 5694 do 5695 i=`expr $i + 1` 5696 teststring=$teststring$teststring 5697 done 5698 # Only check the string length outside the loop. 5699 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5700 teststring= 5701 # Add a significant safety factor because C++ compilers can tack on 5702 # massive amounts of additional arguments before passing them to the 5703 # linker. It appears as though 1/2 is a usable value. 5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5705 fi 5706 ;; 5707 esac 5708 5709fi 5710 5711if test -n $lt_cv_sys_max_cmd_len ; then 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5713$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5714else 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5716$as_echo "none" >&6; } 5717fi 5718max_cmd_len=$lt_cv_sys_max_cmd_len 5719 5720 5721 5722 5723 5724 5725: ${CP="cp -f"} 5726: ${MV="mv -f"} 5727: ${RM="rm -f"} 5728 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5730$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5731# Try some XSI features 5732xsi_shell=no 5733( _lt_dummy="a/b/c" 5734 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5735 = c,a/b,, \ 5736 && eval 'test $(( 1 + 1 )) -eq 2 \ 5737 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5738 && xsi_shell=yes 5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5740$as_echo "$xsi_shell" >&6; } 5741 5742 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5744$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5745lt_shell_append=no 5746( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5747 >/dev/null 2>&1 \ 5748 && lt_shell_append=yes 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5750$as_echo "$lt_shell_append" >&6; } 5751 5752 5753if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5754 lt_unset=unset 5755else 5756 lt_unset=false 5757fi 5758 5759 5760 5761 5762 5763# test EBCDIC or ASCII 5764case `echo X|tr X '\101'` in 5765 A) # ASCII based system 5766 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5767 lt_SP2NL='tr \040 \012' 5768 lt_NL2SP='tr \015\012 \040\040' 5769 ;; 5770 *) # EBCDIC based system 5771 lt_SP2NL='tr \100 \n' 5772 lt_NL2SP='tr \r\n \100\100' 5773 ;; 5774esac 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5785$as_echo_n "checking for $LD option to reload object files... " >&6; } 5786if ${lt_cv_ld_reload_flag+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 lt_cv_ld_reload_flag='-r' 5790fi 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5792$as_echo "$lt_cv_ld_reload_flag" >&6; } 5793reload_flag=$lt_cv_ld_reload_flag 5794case $reload_flag in 5795"" | " "*) ;; 5796*) reload_flag=" $reload_flag" ;; 5797esac 5798reload_cmds='$LD$reload_flag -o $output$reload_objs' 5799case $host_os in 5800 darwin*) 5801 if test "$GCC" = yes; then 5802 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5803 else 5804 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5805 fi 5806 ;; 5807esac 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817if test -n "$ac_tool_prefix"; then 5818 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5819set dummy ${ac_tool_prefix}objdump; ac_word=$2 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5821$as_echo_n "checking for $ac_word... " >&6; } 5822if ${ac_cv_prog_OBJDUMP+:} false; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 if test -n "$OBJDUMP"; then 5826 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5827else 5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5829for as_dir in $PATH 5830do 5831 IFS=$as_save_IFS 5832 test -z "$as_dir" && as_dir=. 5833 for ac_exec_ext in '' $ac_executable_extensions; do 5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5835 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5837 break 2 5838 fi 5839done 5840 done 5841IFS=$as_save_IFS 5842 5843fi 5844fi 5845OBJDUMP=$ac_cv_prog_OBJDUMP 5846if test -n "$OBJDUMP"; then 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5848$as_echo "$OBJDUMP" >&6; } 5849else 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5851$as_echo "no" >&6; } 5852fi 5853 5854 5855fi 5856if test -z "$ac_cv_prog_OBJDUMP"; then 5857 ac_ct_OBJDUMP=$OBJDUMP 5858 # Extract the first word of "objdump", so it can be a program name with args. 5859set dummy objdump; ac_word=$2 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5861$as_echo_n "checking for $ac_word... " >&6; } 5862if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5863 $as_echo_n "(cached) " >&6 5864else 5865 if test -n "$ac_ct_OBJDUMP"; then 5866 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5867else 5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH 5870do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5875 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879done 5880 done 5881IFS=$as_save_IFS 5882 5883fi 5884fi 5885ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5886if test -n "$ac_ct_OBJDUMP"; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5888$as_echo "$ac_ct_OBJDUMP" >&6; } 5889else 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891$as_echo "no" >&6; } 5892fi 5893 5894 if test "x$ac_ct_OBJDUMP" = x; then 5895 OBJDUMP="false" 5896 else 5897 case $cross_compiling:$ac_tool_warned in 5898yes:) 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5901ac_tool_warned=yes ;; 5902esac 5903 OBJDUMP=$ac_ct_OBJDUMP 5904 fi 5905else 5906 OBJDUMP="$ac_cv_prog_OBJDUMP" 5907fi 5908 5909test -z "$OBJDUMP" && OBJDUMP=objdump 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5920$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5921if ${lt_cv_deplibs_check_method+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 lt_cv_file_magic_cmd='$MAGIC_CMD' 5925lt_cv_file_magic_test_file= 5926lt_cv_deplibs_check_method='unknown' 5927# Need to set the preceding variable on all platforms that support 5928# interlibrary dependencies. 5929# 'none' -- dependencies not supported. 5930# `unknown' -- same as none, but documents that we really don't know. 5931# 'pass_all' -- all dependencies passed with no checks. 5932# 'test_compile' -- check by making test program. 5933# 'file_magic [[regex]]' -- check by looking for files in library path 5934# which responds to the $file_magic_cmd with a given extended regex. 5935# If you have `file' or equivalent on your system and you're not sure 5936# whether `pass_all' will *always* work, you probably want this one. 5937 5938case $host_os in 5939aix[4-9]*) 5940 lt_cv_deplibs_check_method=pass_all 5941 ;; 5942 5943beos*) 5944 lt_cv_deplibs_check_method=pass_all 5945 ;; 5946 5947bsdi[45]*) 5948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5949 lt_cv_file_magic_cmd='/usr/bin/file -L' 5950 lt_cv_file_magic_test_file=/shlib/libc.so 5951 ;; 5952 5953cygwin*) 5954 # func_win32_libid is a shell function defined in ltmain.sh 5955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5956 lt_cv_file_magic_cmd='func_win32_libid' 5957 ;; 5958 5959mingw* | pw32*) 5960 # Base MSYS/MinGW do not provide the 'file' command needed by 5961 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5962 # unless we find 'file', for example because we are cross-compiling. 5963 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5964 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5965 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5966 lt_cv_file_magic_cmd='func_win32_libid' 5967 else 5968 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5969 lt_cv_file_magic_cmd='$OBJDUMP -f' 5970 fi 5971 ;; 5972 5973cegcc*) 5974 # use the weaker test based on 'objdump'. See mingw*. 5975 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5976 lt_cv_file_magic_cmd='$OBJDUMP -f' 5977 ;; 5978 5979darwin* | rhapsody*) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 5983freebsd* | dragonfly*) 5984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5985 case $host_cpu in 5986 i*86 ) 5987 # Not sure whether the presence of OpenBSD here was a mistake. 5988 # Let's accept both of them until this is cleared up. 5989 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5990 lt_cv_file_magic_cmd=/usr/bin/file 5991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5992 ;; 5993 esac 5994 else 5995 lt_cv_deplibs_check_method=pass_all 5996 fi 5997 ;; 5998 5999gnu*) 6000 lt_cv_deplibs_check_method=pass_all 6001 ;; 6002 6003haiku*) 6004 lt_cv_deplibs_check_method=pass_all 6005 ;; 6006 6007hpux10.20* | hpux11*) 6008 lt_cv_file_magic_cmd=/usr/bin/file 6009 case $host_cpu in 6010 ia64*) 6011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6012 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6013 ;; 6014 hppa*64*) 6015 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]' 6016 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6017 ;; 6018 *) 6019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6020 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6021 ;; 6022 esac 6023 ;; 6024 6025interix[3-9]*) 6026 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6028 ;; 6029 6030irix5* | irix6* | nonstopux*) 6031 case $LD in 6032 *-32|*"-32 ") libmagic=32-bit;; 6033 *-n32|*"-n32 ") libmagic=N32;; 6034 *-64|*"-64 ") libmagic=64-bit;; 6035 *) libmagic=never-match;; 6036 esac 6037 lt_cv_deplibs_check_method=pass_all 6038 ;; 6039 6040# This must be Linux ELF. 6041linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 6042 lt_cv_deplibs_check_method=pass_all 6043 ;; 6044 6045netbsd*) 6046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6048 else 6049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6050 fi 6051 ;; 6052 6053newos6*) 6054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6055 lt_cv_file_magic_cmd=/usr/bin/file 6056 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6057 ;; 6058 6059*nto* | *qnx*) 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063openbsd*) 6064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6066 else 6067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6068 fi 6069 ;; 6070 6071osf3* | osf4* | osf5*) 6072 lt_cv_deplibs_check_method=pass_all 6073 ;; 6074 6075rdos*) 6076 lt_cv_deplibs_check_method=pass_all 6077 ;; 6078 6079solaris*) 6080 lt_cv_deplibs_check_method=pass_all 6081 ;; 6082 6083sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6084 lt_cv_deplibs_check_method=pass_all 6085 ;; 6086 6087sysv4 | sysv4.3*) 6088 case $host_vendor in 6089 motorola) 6090 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]' 6091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6092 ;; 6093 ncr) 6094 lt_cv_deplibs_check_method=pass_all 6095 ;; 6096 sequent) 6097 lt_cv_file_magic_cmd='/bin/file' 6098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6099 ;; 6100 sni) 6101 lt_cv_file_magic_cmd='/bin/file' 6102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6103 lt_cv_file_magic_test_file=/lib/libc.so 6104 ;; 6105 siemens) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 pc) 6109 lt_cv_deplibs_check_method=pass_all 6110 ;; 6111 esac 6112 ;; 6113 6114tpf*) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117vxworks*) 6118 # Assume VxWorks cross toolchains are built on Linux, possibly 6119 # as canadian for Windows hosts. 6120 lt_cv_deplibs_check_method=pass_all 6121 ;; 6122esac 6123 6124fi 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6126$as_echo "$lt_cv_deplibs_check_method" >&6; } 6127file_magic_cmd=$lt_cv_file_magic_cmd 6128deplibs_check_method=$lt_cv_deplibs_check_method 6129test -z "$deplibs_check_method" && deplibs_check_method=unknown 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142plugin_option= 6143plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 6144for plugin in $plugin_names; do 6145 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 6146 if test x$plugin_so = x$plugin; then 6147 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 6148 fi 6149 if test x$plugin_so != x$plugin; then 6150 plugin_option="--plugin $plugin_so" 6151 break 6152 fi 6153done 6154 6155if test -n "$ac_tool_prefix"; then 6156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6157set dummy ${ac_tool_prefix}ar; ac_word=$2 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159$as_echo_n "checking for $ac_word... " >&6; } 6160if ${ac_cv_prog_AR+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 if test -n "$AR"; then 6164 ac_cv_prog_AR="$AR" # Let the user override the test. 6165else 6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6167for as_dir in $PATH 6168do 6169 IFS=$as_save_IFS 6170 test -z "$as_dir" && as_dir=. 6171 for ac_exec_ext in '' $ac_executable_extensions; do 6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6173 ac_cv_prog_AR="${ac_tool_prefix}ar" 6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6175 break 2 6176 fi 6177done 6178 done 6179IFS=$as_save_IFS 6180 6181fi 6182fi 6183AR=$ac_cv_prog_AR 6184if test -n "$AR"; then 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6186$as_echo "$AR" >&6; } 6187else 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189$as_echo "no" >&6; } 6190fi 6191 6192 6193fi 6194if test -z "$ac_cv_prog_AR"; then 6195 ac_ct_AR=$AR 6196 # Extract the first word of "ar", so it can be a program name with args. 6197set dummy ar; ac_word=$2 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6199$as_echo_n "checking for $ac_word... " >&6; } 6200if ${ac_cv_prog_ac_ct_AR+:} false; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 if test -n "$ac_ct_AR"; then 6204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6205else 6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207for as_dir in $PATH 6208do 6209 IFS=$as_save_IFS 6210 test -z "$as_dir" && as_dir=. 6211 for ac_exec_ext in '' $ac_executable_extensions; do 6212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6213 ac_cv_prog_ac_ct_AR="ar" 6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6215 break 2 6216 fi 6217done 6218 done 6219IFS=$as_save_IFS 6220 6221fi 6222fi 6223ac_ct_AR=$ac_cv_prog_ac_ct_AR 6224if test -n "$ac_ct_AR"; then 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6226$as_echo "$ac_ct_AR" >&6; } 6227else 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6229$as_echo "no" >&6; } 6230fi 6231 6232 if test "x$ac_ct_AR" = x; then 6233 AR="false" 6234 else 6235 case $cross_compiling:$ac_tool_warned in 6236yes:) 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6239ac_tool_warned=yes ;; 6240esac 6241 AR=$ac_ct_AR 6242 fi 6243else 6244 AR="$ac_cv_prog_AR" 6245fi 6246 6247test -z "$AR" && AR=ar 6248if test -n "$plugin_option"; then 6249 if $AR --help 2>&1 | grep -q "\--plugin"; then 6250 touch conftest.c 6251 $AR $plugin_option rc conftest.a conftest.c 6252 if test "$?" != 0; then 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6254$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6255 else 6256 AR="$AR $plugin_option" 6257 fi 6258 rm -f conftest.* 6259 fi 6260fi 6261test -z "$AR_FLAGS" && AR_FLAGS=cru 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273if test -n "$ac_tool_prefix"; then 6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6275set dummy ${ac_tool_prefix}strip; ac_word=$2 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6277$as_echo_n "checking for $ac_word... " >&6; } 6278if ${ac_cv_prog_STRIP+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 if test -n "$STRIP"; then 6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6283else 6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6285for as_dir in $PATH 6286do 6287 IFS=$as_save_IFS 6288 test -z "$as_dir" && as_dir=. 6289 for ac_exec_ext in '' $ac_executable_extensions; do 6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6293 break 2 6294 fi 6295done 6296 done 6297IFS=$as_save_IFS 6298 6299fi 6300fi 6301STRIP=$ac_cv_prog_STRIP 6302if test -n "$STRIP"; then 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6304$as_echo "$STRIP" >&6; } 6305else 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6307$as_echo "no" >&6; } 6308fi 6309 6310 6311fi 6312if test -z "$ac_cv_prog_STRIP"; then 6313 ac_ct_STRIP=$STRIP 6314 # Extract the first word of "strip", so it can be a program name with args. 6315set dummy strip; ac_word=$2 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6317$as_echo_n "checking for $ac_word... " >&6; } 6318if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 if test -n "$ac_ct_STRIP"; then 6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6323else 6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6325for as_dir in $PATH 6326do 6327 IFS=$as_save_IFS 6328 test -z "$as_dir" && as_dir=. 6329 for ac_exec_ext in '' $ac_executable_extensions; do 6330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6331 ac_cv_prog_ac_ct_STRIP="strip" 6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6333 break 2 6334 fi 6335done 6336 done 6337IFS=$as_save_IFS 6338 6339fi 6340fi 6341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6342if test -n "$ac_ct_STRIP"; then 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6344$as_echo "$ac_ct_STRIP" >&6; } 6345else 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6347$as_echo "no" >&6; } 6348fi 6349 6350 if test "x$ac_ct_STRIP" = x; then 6351 STRIP=":" 6352 else 6353 case $cross_compiling:$ac_tool_warned in 6354yes:) 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6357ac_tool_warned=yes ;; 6358esac 6359 STRIP=$ac_ct_STRIP 6360 fi 6361else 6362 STRIP="$ac_cv_prog_STRIP" 6363fi 6364 6365test -z "$STRIP" && STRIP=: 6366 6367 6368 6369 6370 6371 6372if test -n "$ac_tool_prefix"; then 6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6376$as_echo_n "checking for $ac_word... " >&6; } 6377if ${ac_cv_prog_RANLIB+:} false; then : 6378 $as_echo_n "(cached) " >&6 6379else 6380 if test -n "$RANLIB"; then 6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6382else 6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384for as_dir in $PATH 6385do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395 done 6396IFS=$as_save_IFS 6397 6398fi 6399fi 6400RANLIB=$ac_cv_prog_RANLIB 6401if test -n "$RANLIB"; then 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6403$as_echo "$RANLIB" >&6; } 6404else 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6406$as_echo "no" >&6; } 6407fi 6408 6409 6410fi 6411if test -z "$ac_cv_prog_RANLIB"; then 6412 ac_ct_RANLIB=$RANLIB 6413 # Extract the first word of "ranlib", so it can be a program name with args. 6414set dummy ranlib; ac_word=$2 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6416$as_echo_n "checking for $ac_word... " >&6; } 6417if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 if test -n "$ac_ct_RANLIB"; then 6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_exec_ext in '' $ac_executable_extensions; do 6429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6430 ac_cv_prog_ac_ct_RANLIB="ranlib" 6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6432 break 2 6433 fi 6434done 6435 done 6436IFS=$as_save_IFS 6437 6438fi 6439fi 6440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6441if test -n "$ac_ct_RANLIB"; then 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6443$as_echo "$ac_ct_RANLIB" >&6; } 6444else 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6446$as_echo "no" >&6; } 6447fi 6448 6449 if test "x$ac_ct_RANLIB" = x; then 6450 RANLIB=":" 6451 else 6452 case $cross_compiling:$ac_tool_warned in 6453yes:) 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6456ac_tool_warned=yes ;; 6457esac 6458 RANLIB=$ac_ct_RANLIB 6459 fi 6460else 6461 RANLIB="$ac_cv_prog_RANLIB" 6462fi 6463 6464test -z "$RANLIB" && RANLIB=: 6465if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6466 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6467 RANLIB="$RANLIB $plugin_option" 6468 fi 6469fi 6470 6471 6472 6473 6474 6475 6476# Determine commands to create old-style static archives. 6477old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6478old_postinstall_cmds='chmod 644 $oldlib' 6479old_postuninstall_cmds= 6480 6481if test -n "$RANLIB"; then 6482 case $host_os in 6483 openbsd*) 6484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6485 ;; 6486 *) 6487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6488 ;; 6489 esac 6490 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6491fi 6492 6493case $host_os in 6494 darwin*) 6495 lock_old_archive_extraction=yes ;; 6496 *) 6497 lock_old_archive_extraction=no ;; 6498esac 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538# If no C compiler was specified, use CC. 6539LTCC=${LTCC-"$CC"} 6540 6541# If no C compiler flags were specified, use CFLAGS. 6542LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6543 6544# Allow CC to be a program name with arguments. 6545compiler=$CC 6546 6547 6548# Check for command to grab the raw symbol name followed by C symbol from nm. 6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6550$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6551if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6552 $as_echo_n "(cached) " >&6 6553else 6554 6555# These are sane defaults that work on at least a few old systems. 6556# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6557 6558# Character class describing NM global symbol codes. 6559symcode='[BCDEGRST]' 6560 6561# Regexp to match symbols that can be accessed directly from C. 6562sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6563 6564# Define system-specific variables. 6565case $host_os in 6566aix*) 6567 symcode='[BCDT]' 6568 ;; 6569cygwin* | mingw* | pw32* | cegcc*) 6570 symcode='[ABCDGISTW]' 6571 ;; 6572hpux*) 6573 if test "$host_cpu" = ia64; then 6574 symcode='[ABCDEGRST]' 6575 fi 6576 ;; 6577irix* | nonstopux*) 6578 symcode='[BCDEGRST]' 6579 ;; 6580osf*) 6581 symcode='[BCDEGQRST]' 6582 ;; 6583solaris*) 6584 symcode='[BCDRT]' 6585 ;; 6586sco3.2v5*) 6587 symcode='[DT]' 6588 ;; 6589sysv4.2uw2*) 6590 symcode='[DT]' 6591 ;; 6592sysv5* | sco5v6* | unixware* | OpenUNIX*) 6593 symcode='[ABDT]' 6594 ;; 6595sysv4) 6596 symcode='[DFNSTU]' 6597 ;; 6598esac 6599 6600# If we're using GNU nm, then use its standard symbol codes. 6601case `$NM -V 2>&1` in 6602*GNU* | *'with BFD'*) 6603 symcode='[ABCDGIRSTW]' ;; 6604esac 6605 6606# Transform an extracted symbol line into a proper C declaration. 6607# Some systems (esp. on ia64) link data and code symbols differently, 6608# so use this general approach. 6609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6610 6611# Transform an extracted symbol line into symbol name and symbol address 6612lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6613lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6614 6615# Handle CRLF in mingw tool chain 6616opt_cr= 6617case $build_os in 6618mingw*) 6619 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6620 ;; 6621esac 6622 6623# Try without a prefix underscore, then with it. 6624for ac_symprfx in "" "_"; do 6625 6626 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6627 symxfrm="\\1 $ac_symprfx\\2 \\2" 6628 6629 # Write the raw and C identifiers. 6630 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6631 # Fake it for dumpbin and say T for any non-static function 6632 # and D for any global variable. 6633 # Also find C++ and __fastcall symbols from MSVC++, 6634 # which start with @ or ?. 6635 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6636" {last_section=section; section=\$ 3};"\ 6637" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6638" \$ 0!~/External *\|/{next};"\ 6639" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6640" {if(hide[section]) next};"\ 6641" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6642" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6643" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6644" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6645" ' prfx=^$ac_symprfx" 6646 else 6647 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6648 fi 6649 6650 # Check to see that the pipe works correctly. 6651 pipe_works=no 6652 6653 rm -f conftest* 6654 cat > conftest.$ac_ext <<_LT_EOF 6655#ifdef __cplusplus 6656extern "C" { 6657#endif 6658char nm_test_var; 6659void nm_test_func(void); 6660void nm_test_func(void){} 6661#ifdef __cplusplus 6662} 6663#endif 6664int main(){nm_test_var='a';nm_test_func();return(0);} 6665_LT_EOF 6666 6667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6668 (eval $ac_compile) 2>&5 6669 ac_status=$? 6670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6671 test $ac_status = 0; }; then 6672 # Now try to grab the symbols. 6673 nlist=conftest.nm 6674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6675 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6676 ac_status=$? 6677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6678 test $ac_status = 0; } && test -s "$nlist"; then 6679 # Try sorting and uniquifying the output. 6680 if sort "$nlist" | uniq > "$nlist"T; then 6681 mv -f "$nlist"T "$nlist" 6682 else 6683 rm -f "$nlist"T 6684 fi 6685 6686 # Make sure that we snagged all the symbols we need. 6687 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6688 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6689 cat <<_LT_EOF > conftest.$ac_ext 6690#ifdef __cplusplus 6691extern "C" { 6692#endif 6693 6694_LT_EOF 6695 # Now generate the symbol file. 6696 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6697 6698 cat <<_LT_EOF >> conftest.$ac_ext 6699 6700/* The mapping between symbol names and symbols. */ 6701const struct { 6702 const char *name; 6703 void *address; 6704} 6705lt__PROGRAM__LTX_preloaded_symbols[] = 6706{ 6707 { "@PROGRAM@", (void *) 0 }, 6708_LT_EOF 6709 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6710 cat <<\_LT_EOF >> conftest.$ac_ext 6711 {0, (void *) 0} 6712}; 6713 6714/* This works around a problem in FreeBSD linker */ 6715#ifdef FREEBSD_WORKAROUND 6716static const void *lt_preloaded_setup() { 6717 return lt__PROGRAM__LTX_preloaded_symbols; 6718} 6719#endif 6720 6721#ifdef __cplusplus 6722} 6723#endif 6724_LT_EOF 6725 # Now try linking the two files. 6726 mv conftest.$ac_objext conftstm.$ac_objext 6727 lt_save_LIBS="$LIBS" 6728 lt_save_CFLAGS="$CFLAGS" 6729 LIBS="conftstm.$ac_objext" 6730 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6732 (eval $ac_link) 2>&5 6733 ac_status=$? 6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6735 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6736 pipe_works=yes 6737 fi 6738 LIBS="$lt_save_LIBS" 6739 CFLAGS="$lt_save_CFLAGS" 6740 else 6741 echo "cannot find nm_test_func in $nlist" >&5 6742 fi 6743 else 6744 echo "cannot find nm_test_var in $nlist" >&5 6745 fi 6746 else 6747 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6748 fi 6749 else 6750 echo "$progname: failed program was:" >&5 6751 cat conftest.$ac_ext >&5 6752 fi 6753 rm -rf conftest* conftst* 6754 6755 # Do not use the global_symbol_pipe unless it works. 6756 if test "$pipe_works" = yes; then 6757 break 6758 else 6759 lt_cv_sys_global_symbol_pipe= 6760 fi 6761done 6762 6763fi 6764 6765if test -z "$lt_cv_sys_global_symbol_pipe"; then 6766 lt_cv_sys_global_symbol_to_cdecl= 6767fi 6768if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6770$as_echo "failed" >&6; } 6771else 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6773$as_echo "ok" >&6; } 6774fi 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797# Check whether --enable-libtool-lock was given. 6798if test "${enable_libtool_lock+set}" = set; then : 6799 enableval=$enable_libtool_lock; 6800fi 6801 6802test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6803 6804# Some flags need to be propagated to the compiler or linker for good 6805# libtool support. 6806case $host in 6807ia64-*-hpux*) 6808 # Find out which ABI we are using. 6809 echo 'int i;' > conftest.$ac_ext 6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6811 (eval $ac_compile) 2>&5 6812 ac_status=$? 6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6814 test $ac_status = 0; }; then 6815 case `/usr/bin/file conftest.$ac_objext` in 6816 *ELF-32*) 6817 HPUX_IA64_MODE="32" 6818 ;; 6819 *ELF-64*) 6820 HPUX_IA64_MODE="64" 6821 ;; 6822 esac 6823 fi 6824 rm -rf conftest* 6825 ;; 6826*-*-irix6*) 6827 # Find out which ABI we are using. 6828 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6830 (eval $ac_compile) 2>&5 6831 ac_status=$? 6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6833 test $ac_status = 0; }; then 6834 if test "$lt_cv_prog_gnu_ld" = yes; then 6835 case `/usr/bin/file conftest.$ac_objext` in 6836 *32-bit*) 6837 LD="${LD-ld} -melf32bsmip" 6838 ;; 6839 *N32*) 6840 LD="${LD-ld} -melf32bmipn32" 6841 ;; 6842 *64-bit*) 6843 LD="${LD-ld} -melf64bmip" 6844 ;; 6845 esac 6846 else 6847 case `/usr/bin/file conftest.$ac_objext` in 6848 *32-bit*) 6849 LD="${LD-ld} -32" 6850 ;; 6851 *N32*) 6852 LD="${LD-ld} -n32" 6853 ;; 6854 *64-bit*) 6855 LD="${LD-ld} -64" 6856 ;; 6857 esac 6858 fi 6859 fi 6860 rm -rf conftest* 6861 ;; 6862 6863x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6864s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6865 # Find out which ABI we are using. 6866 echo 'int i;' > conftest.$ac_ext 6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6868 (eval $ac_compile) 2>&5 6869 ac_status=$? 6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6871 test $ac_status = 0; }; then 6872 case `/usr/bin/file conftest.o` in 6873 *32-bit*) 6874 case $host in 6875 x86_64-*kfreebsd*-gnu) 6876 LD="${LD-ld} -m elf_i386_fbsd" 6877 ;; 6878 x86_64-*linux*) 6879 case `/usr/bin/file conftest.o` in 6880 *x86-64*) 6881 LD="${LD-ld} -m elf32_x86_64" 6882 ;; 6883 *) 6884 LD="${LD-ld} -m elf_i386" 6885 ;; 6886 esac 6887 ;; 6888 powerpc64le-*linux*) 6889 LD="${LD-ld} -m elf32lppclinux" 6890 ;; 6891 powerpc64-*linux*) 6892 LD="${LD-ld} -m elf32ppclinux" 6893 ;; 6894 s390x-*linux*) 6895 LD="${LD-ld} -m elf_s390" 6896 ;; 6897 sparc64-*linux*) 6898 LD="${LD-ld} -m elf32_sparc" 6899 ;; 6900 esac 6901 ;; 6902 *64-bit*) 6903 case $host in 6904 x86_64-*kfreebsd*-gnu) 6905 LD="${LD-ld} -m elf_x86_64_fbsd" 6906 ;; 6907 x86_64-*linux*) 6908 LD="${LD-ld} -m elf_x86_64" 6909 ;; 6910 powerpcle-*linux*) 6911 LD="${LD-ld} -m elf64lppc" 6912 ;; 6913 powerpc-*linux*) 6914 LD="${LD-ld} -m elf64ppc" 6915 ;; 6916 s390*-*linux*|s390*-*tpf*) 6917 LD="${LD-ld} -m elf64_s390" 6918 ;; 6919 sparc*-*linux*) 6920 LD="${LD-ld} -m elf64_sparc" 6921 ;; 6922 esac 6923 ;; 6924 esac 6925 fi 6926 rm -rf conftest* 6927 ;; 6928 6929*-*-sco3.2v5*) 6930 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6931 SAVE_CFLAGS="$CFLAGS" 6932 CFLAGS="$CFLAGS -belf" 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6934$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6935if ${lt_cv_cc_needs_belf+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 ac_ext=c 6939ac_cpp='$CPP $CPPFLAGS' 6940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6942ac_compiler_gnu=$ac_cv_c_compiler_gnu 6943 6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945/* end confdefs.h. */ 6946 6947int 6948main () 6949{ 6950 6951 ; 6952 return 0; 6953} 6954_ACEOF 6955if ac_fn_c_try_link "$LINENO"; then : 6956 lt_cv_cc_needs_belf=yes 6957else 6958 lt_cv_cc_needs_belf=no 6959fi 6960rm -f core conftest.err conftest.$ac_objext \ 6961 conftest$ac_exeext conftest.$ac_ext 6962 ac_ext=c 6963ac_cpp='$CPP $CPPFLAGS' 6964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6966ac_compiler_gnu=$ac_cv_c_compiler_gnu 6967 6968fi 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6970$as_echo "$lt_cv_cc_needs_belf" >&6; } 6971 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6972 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6973 CFLAGS="$SAVE_CFLAGS" 6974 fi 6975 ;; 6976sparc*-*solaris*) 6977 # Find out which ABI we are using. 6978 echo 'int i;' > conftest.$ac_ext 6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6980 (eval $ac_compile) 2>&5 6981 ac_status=$? 6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6983 test $ac_status = 0; }; then 6984 case `/usr/bin/file conftest.o` in 6985 *64-bit*) 6986 case $lt_cv_prog_gnu_ld in 6987 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6988 *) 6989 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6990 LD="${LD-ld} -64" 6991 fi 6992 ;; 6993 esac 6994 ;; 6995 esac 6996 fi 6997 rm -rf conftest* 6998 ;; 6999esac 7000 7001need_locks="$enable_libtool_lock" 7002 7003 7004 case $host_os in 7005 rhapsody* | darwin*) 7006 if test -n "$ac_tool_prefix"; then 7007 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7008set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7010$as_echo_n "checking for $ac_word... " >&6; } 7011if ${ac_cv_prog_DSYMUTIL+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013else 7014 if test -n "$DSYMUTIL"; then 7015 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7016else 7017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018for as_dir in $PATH 7019do 7020 IFS=$as_save_IFS 7021 test -z "$as_dir" && as_dir=. 7022 for ac_exec_ext in '' $ac_executable_extensions; do 7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7024 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7026 break 2 7027 fi 7028done 7029 done 7030IFS=$as_save_IFS 7031 7032fi 7033fi 7034DSYMUTIL=$ac_cv_prog_DSYMUTIL 7035if test -n "$DSYMUTIL"; then 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7037$as_echo "$DSYMUTIL" >&6; } 7038else 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7040$as_echo "no" >&6; } 7041fi 7042 7043 7044fi 7045if test -z "$ac_cv_prog_DSYMUTIL"; then 7046 ac_ct_DSYMUTIL=$DSYMUTIL 7047 # Extract the first word of "dsymutil", so it can be a program name with args. 7048set dummy dsymutil; ac_word=$2 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7050$as_echo_n "checking for $ac_word... " >&6; } 7051if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 if test -n "$ac_ct_DSYMUTIL"; then 7055 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7056else 7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7058for as_dir in $PATH 7059do 7060 IFS=$as_save_IFS 7061 test -z "$as_dir" && as_dir=. 7062 for ac_exec_ext in '' $ac_executable_extensions; do 7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7064 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7066 break 2 7067 fi 7068done 7069 done 7070IFS=$as_save_IFS 7071 7072fi 7073fi 7074ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7075if test -n "$ac_ct_DSYMUTIL"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7077$as_echo "$ac_ct_DSYMUTIL" >&6; } 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080$as_echo "no" >&6; } 7081fi 7082 7083 if test "x$ac_ct_DSYMUTIL" = x; then 7084 DSYMUTIL=":" 7085 else 7086 case $cross_compiling:$ac_tool_warned in 7087yes:) 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7090ac_tool_warned=yes ;; 7091esac 7092 DSYMUTIL=$ac_ct_DSYMUTIL 7093 fi 7094else 7095 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7096fi 7097 7098 if test -n "$ac_tool_prefix"; then 7099 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7100set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7102$as_echo_n "checking for $ac_word... " >&6; } 7103if ${ac_cv_prog_NMEDIT+:} false; then : 7104 $as_echo_n "(cached) " >&6 7105else 7106 if test -n "$NMEDIT"; then 7107 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7108else 7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7110for as_dir in $PATH 7111do 7112 IFS=$as_save_IFS 7113 test -z "$as_dir" && as_dir=. 7114 for ac_exec_ext in '' $ac_executable_extensions; do 7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7116 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7118 break 2 7119 fi 7120done 7121 done 7122IFS=$as_save_IFS 7123 7124fi 7125fi 7126NMEDIT=$ac_cv_prog_NMEDIT 7127if test -n "$NMEDIT"; then 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7129$as_echo "$NMEDIT" >&6; } 7130else 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7132$as_echo "no" >&6; } 7133fi 7134 7135 7136fi 7137if test -z "$ac_cv_prog_NMEDIT"; then 7138 ac_ct_NMEDIT=$NMEDIT 7139 # Extract the first word of "nmedit", so it can be a program name with args. 7140set dummy nmedit; ac_word=$2 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7142$as_echo_n "checking for $ac_word... " >&6; } 7143if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 if test -n "$ac_ct_NMEDIT"; then 7147 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7148else 7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150for as_dir in $PATH 7151do 7152 IFS=$as_save_IFS 7153 test -z "$as_dir" && as_dir=. 7154 for ac_exec_ext in '' $ac_executable_extensions; do 7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7156 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7158 break 2 7159 fi 7160done 7161 done 7162IFS=$as_save_IFS 7163 7164fi 7165fi 7166ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7167if test -n "$ac_ct_NMEDIT"; then 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7169$as_echo "$ac_ct_NMEDIT" >&6; } 7170else 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7172$as_echo "no" >&6; } 7173fi 7174 7175 if test "x$ac_ct_NMEDIT" = x; then 7176 NMEDIT=":" 7177 else 7178 case $cross_compiling:$ac_tool_warned in 7179yes:) 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7182ac_tool_warned=yes ;; 7183esac 7184 NMEDIT=$ac_ct_NMEDIT 7185 fi 7186else 7187 NMEDIT="$ac_cv_prog_NMEDIT" 7188fi 7189 7190 if test -n "$ac_tool_prefix"; then 7191 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7192set dummy ${ac_tool_prefix}lipo; ac_word=$2 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7194$as_echo_n "checking for $ac_word... " >&6; } 7195if ${ac_cv_prog_LIPO+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197else 7198 if test -n "$LIPO"; then 7199 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7200else 7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7202for as_dir in $PATH 7203do 7204 IFS=$as_save_IFS 7205 test -z "$as_dir" && as_dir=. 7206 for ac_exec_ext in '' $ac_executable_extensions; do 7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7208 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7210 break 2 7211 fi 7212done 7213 done 7214IFS=$as_save_IFS 7215 7216fi 7217fi 7218LIPO=$ac_cv_prog_LIPO 7219if test -n "$LIPO"; then 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7221$as_echo "$LIPO" >&6; } 7222else 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7224$as_echo "no" >&6; } 7225fi 7226 7227 7228fi 7229if test -z "$ac_cv_prog_LIPO"; then 7230 ac_ct_LIPO=$LIPO 7231 # Extract the first word of "lipo", so it can be a program name with args. 7232set dummy lipo; ac_word=$2 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7234$as_echo_n "checking for $ac_word... " >&6; } 7235if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 if test -n "$ac_ct_LIPO"; then 7239 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7240else 7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7242for as_dir in $PATH 7243do 7244 IFS=$as_save_IFS 7245 test -z "$as_dir" && as_dir=. 7246 for ac_exec_ext in '' $ac_executable_extensions; do 7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7248 ac_cv_prog_ac_ct_LIPO="lipo" 7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7250 break 2 7251 fi 7252done 7253 done 7254IFS=$as_save_IFS 7255 7256fi 7257fi 7258ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7259if test -n "$ac_ct_LIPO"; then 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7261$as_echo "$ac_ct_LIPO" >&6; } 7262else 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7264$as_echo "no" >&6; } 7265fi 7266 7267 if test "x$ac_ct_LIPO" = x; then 7268 LIPO=":" 7269 else 7270 case $cross_compiling:$ac_tool_warned in 7271yes:) 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7274ac_tool_warned=yes ;; 7275esac 7276 LIPO=$ac_ct_LIPO 7277 fi 7278else 7279 LIPO="$ac_cv_prog_LIPO" 7280fi 7281 7282 if test -n "$ac_tool_prefix"; then 7283 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7284set dummy ${ac_tool_prefix}otool; ac_word=$2 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7286$as_echo_n "checking for $ac_word... " >&6; } 7287if ${ac_cv_prog_OTOOL+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289else 7290 if test -n "$OTOOL"; then 7291 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7292else 7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7294for as_dir in $PATH 7295do 7296 IFS=$as_save_IFS 7297 test -z "$as_dir" && as_dir=. 7298 for ac_exec_ext in '' $ac_executable_extensions; do 7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7300 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7302 break 2 7303 fi 7304done 7305 done 7306IFS=$as_save_IFS 7307 7308fi 7309fi 7310OTOOL=$ac_cv_prog_OTOOL 7311if test -n "$OTOOL"; then 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7313$as_echo "$OTOOL" >&6; } 7314else 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7316$as_echo "no" >&6; } 7317fi 7318 7319 7320fi 7321if test -z "$ac_cv_prog_OTOOL"; then 7322 ac_ct_OTOOL=$OTOOL 7323 # Extract the first word of "otool", so it can be a program name with args. 7324set dummy otool; ac_word=$2 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7326$as_echo_n "checking for $ac_word... " >&6; } 7327if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 if test -n "$ac_ct_OTOOL"; then 7331 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7332else 7333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7334for as_dir in $PATH 7335do 7336 IFS=$as_save_IFS 7337 test -z "$as_dir" && as_dir=. 7338 for ac_exec_ext in '' $ac_executable_extensions; do 7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7340 ac_cv_prog_ac_ct_OTOOL="otool" 7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7342 break 2 7343 fi 7344done 7345 done 7346IFS=$as_save_IFS 7347 7348fi 7349fi 7350ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7351if test -n "$ac_ct_OTOOL"; then 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7353$as_echo "$ac_ct_OTOOL" >&6; } 7354else 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356$as_echo "no" >&6; } 7357fi 7358 7359 if test "x$ac_ct_OTOOL" = x; then 7360 OTOOL=":" 7361 else 7362 case $cross_compiling:$ac_tool_warned in 7363yes:) 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7366ac_tool_warned=yes ;; 7367esac 7368 OTOOL=$ac_ct_OTOOL 7369 fi 7370else 7371 OTOOL="$ac_cv_prog_OTOOL" 7372fi 7373 7374 if test -n "$ac_tool_prefix"; then 7375 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7376set dummy ${ac_tool_prefix}otool64; ac_word=$2 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7378$as_echo_n "checking for $ac_word... " >&6; } 7379if ${ac_cv_prog_OTOOL64+:} false; then : 7380 $as_echo_n "(cached) " >&6 7381else 7382 if test -n "$OTOOL64"; then 7383 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7384else 7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7386for as_dir in $PATH 7387do 7388 IFS=$as_save_IFS 7389 test -z "$as_dir" && as_dir=. 7390 for ac_exec_ext in '' $ac_executable_extensions; do 7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7392 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7394 break 2 7395 fi 7396done 7397 done 7398IFS=$as_save_IFS 7399 7400fi 7401fi 7402OTOOL64=$ac_cv_prog_OTOOL64 7403if test -n "$OTOOL64"; then 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7405$as_echo "$OTOOL64" >&6; } 7406else 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7408$as_echo "no" >&6; } 7409fi 7410 7411 7412fi 7413if test -z "$ac_cv_prog_OTOOL64"; then 7414 ac_ct_OTOOL64=$OTOOL64 7415 # Extract the first word of "otool64", so it can be a program name with args. 7416set dummy otool64; ac_word=$2 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7418$as_echo_n "checking for $ac_word... " >&6; } 7419if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 if test -n "$ac_ct_OTOOL64"; then 7423 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7424else 7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7426for as_dir in $PATH 7427do 7428 IFS=$as_save_IFS 7429 test -z "$as_dir" && as_dir=. 7430 for ac_exec_ext in '' $ac_executable_extensions; do 7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7432 ac_cv_prog_ac_ct_OTOOL64="otool64" 7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7434 break 2 7435 fi 7436done 7437 done 7438IFS=$as_save_IFS 7439 7440fi 7441fi 7442ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7443if test -n "$ac_ct_OTOOL64"; then 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7445$as_echo "$ac_ct_OTOOL64" >&6; } 7446else 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7448$as_echo "no" >&6; } 7449fi 7450 7451 if test "x$ac_ct_OTOOL64" = x; then 7452 OTOOL64=":" 7453 else 7454 case $cross_compiling:$ac_tool_warned in 7455yes:) 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7458ac_tool_warned=yes ;; 7459esac 7460 OTOOL64=$ac_ct_OTOOL64 7461 fi 7462else 7463 OTOOL64="$ac_cv_prog_OTOOL64" 7464fi 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7493$as_echo_n "checking for -single_module linker flag... " >&6; } 7494if ${lt_cv_apple_cc_single_mod+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496else 7497 lt_cv_apple_cc_single_mod=no 7498 if test -z "${LT_MULTI_MODULE}"; then 7499 # By default we will add the -single_module flag. You can override 7500 # by either setting the environment variable LT_MULTI_MODULE 7501 # non-empty at configure time, or by adding -multi_module to the 7502 # link flags. 7503 rm -rf libconftest.dylib* 7504 echo "int foo(void){return 1;}" > conftest.c 7505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7506-dynamiclib -Wl,-single_module conftest.c" >&5 7507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7508 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7509 _lt_result=$? 7510 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7511 lt_cv_apple_cc_single_mod=yes 7512 else 7513 cat conftest.err >&5 7514 fi 7515 rm -rf libconftest.dylib* 7516 rm -f conftest.* 7517 fi 7518fi 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7520$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7522$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7523if ${lt_cv_ld_exported_symbols_list+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 lt_cv_ld_exported_symbols_list=no 7527 save_LDFLAGS=$LDFLAGS 7528 echo "_main" > conftest.sym 7529 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7531/* end confdefs.h. */ 7532 7533int 7534main () 7535{ 7536 7537 ; 7538 return 0; 7539} 7540_ACEOF 7541if ac_fn_c_try_link "$LINENO"; then : 7542 lt_cv_ld_exported_symbols_list=yes 7543else 7544 lt_cv_ld_exported_symbols_list=no 7545fi 7546rm -f core conftest.err conftest.$ac_objext \ 7547 conftest$ac_exeext conftest.$ac_ext 7548 LDFLAGS="$save_LDFLAGS" 7549 7550fi 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7552$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7554$as_echo_n "checking for -force_load linker flag... " >&6; } 7555if ${lt_cv_ld_force_load+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 lt_cv_ld_force_load=no 7559 cat > conftest.c << _LT_EOF 7560int forced_loaded() { return 2;} 7561_LT_EOF 7562 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7563 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7564 echo "$AR cru libconftest.a conftest.o" >&5 7565 $AR cru libconftest.a conftest.o 2>&5 7566 cat > conftest.c << _LT_EOF 7567int main() { return 0;} 7568_LT_EOF 7569 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7570 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7571 _lt_result=$? 7572 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7573 lt_cv_ld_force_load=yes 7574 else 7575 cat conftest.err >&5 7576 fi 7577 rm -f conftest.err libconftest.a conftest conftest.c 7578 rm -rf conftest.dSYM 7579 7580fi 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7582$as_echo "$lt_cv_ld_force_load" >&6; } 7583 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7584 # build without first building modern cctools / linker. 7585 case $host_cpu-$host_os in 7586 *-rhapsody* | *-darwin1.[012]) 7587 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7588 *-darwin1.*) 7589 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7590 *-darwin*) 7591 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7592 # deployment target is forced to an earlier version. 7593 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7594 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7595 ;; 7596 10.[012][,.]*) 7597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7598 ;; 7599 *) 7600 ;; 7601 esac 7602 ;; 7603 esac 7604 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7605 _lt_dar_single_mod='$single_module' 7606 fi 7607 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7608 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7609 else 7610 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7611 fi 7612 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7613 _lt_dsymutil='~$DSYMUTIL $lib || :' 7614 else 7615 _lt_dsymutil= 7616 fi 7617 ;; 7618 esac 7619 7620for ac_header in dlfcn.h 7621do : 7622 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7623" 7624if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7625 cat >>confdefs.h <<_ACEOF 7626#define HAVE_DLFCN_H 1 7627_ACEOF 7628 7629fi 7630 7631done 7632 7633 7634 7635 7636 7637# Set options 7638 7639 7640 7641 enable_dlopen=no 7642 7643 7644 enable_win32_dll=no 7645 7646 7647 7648 # Check whether --enable-static was given. 7649if test "${enable_static+set}" = set; then : 7650 enableval=$enable_static; p=${PACKAGE-default} 7651 case $enableval in 7652 yes) enable_static=yes ;; 7653 no) enable_static=no ;; 7654 *) 7655 enable_static=no 7656 # Look at the argument we got. We use all the common list separators. 7657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7658 for pkg in $enableval; do 7659 IFS="$lt_save_ifs" 7660 if test "X$pkg" = "X$p"; then 7661 enable_static=yes 7662 fi 7663 done 7664 IFS="$lt_save_ifs" 7665 ;; 7666 esac 7667else 7668 enable_static=yes 7669fi 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680# Check whether --with-pic was given. 7681if test "${with_pic+set}" = set; then : 7682 withval=$with_pic; pic_mode="$withval" 7683else 7684 pic_mode=default 7685fi 7686 7687 7688test -z "$pic_mode" && pic_mode=default 7689 7690 7691 7692 7693 7694 7695 7696 # Check whether --enable-fast-install was given. 7697if test "${enable_fast_install+set}" = set; then : 7698 enableval=$enable_fast_install; p=${PACKAGE-default} 7699 case $enableval in 7700 yes) enable_fast_install=yes ;; 7701 no) enable_fast_install=no ;; 7702 *) 7703 enable_fast_install=no 7704 # Look at the argument we got. We use all the common list separators. 7705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7706 for pkg in $enableval; do 7707 IFS="$lt_save_ifs" 7708 if test "X$pkg" = "X$p"; then 7709 enable_fast_install=yes 7710 fi 7711 done 7712 IFS="$lt_save_ifs" 7713 ;; 7714 esac 7715else 7716 enable_fast_install=yes 7717fi 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729# This can be used to rebuild libtool when needed 7730LIBTOOL_DEPS="$ltmain" 7731 7732# Always use our own libtool. 7733LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760test -z "$LN_S" && LN_S="ln -s" 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775if test -n "${ZSH_VERSION+set}" ; then 7776 setopt NO_GLOB_SUBST 7777fi 7778 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7780$as_echo_n "checking for objdir... " >&6; } 7781if ${lt_cv_objdir+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 rm -f .libs 2>/dev/null 7785mkdir .libs 2>/dev/null 7786if test -d .libs; then 7787 lt_cv_objdir=.libs 7788else 7789 # MS-DOS does not allow filenames that begin with a dot. 7790 lt_cv_objdir=_libs 7791fi 7792rmdir .libs 2>/dev/null 7793fi 7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7795$as_echo "$lt_cv_objdir" >&6; } 7796objdir=$lt_cv_objdir 7797 7798 7799 7800 7801 7802cat >>confdefs.h <<_ACEOF 7803#define LT_OBJDIR "$lt_cv_objdir/" 7804_ACEOF 7805 7806 7807 7808 7809case $host_os in 7810aix3*) 7811 # AIX sometimes has problems with the GCC collect2 program. For some 7812 # reason, if we set the COLLECT_NAMES environment variable, the problems 7813 # vanish in a puff of smoke. 7814 if test "X${COLLECT_NAMES+set}" != Xset; then 7815 COLLECT_NAMES= 7816 export COLLECT_NAMES 7817 fi 7818 ;; 7819esac 7820 7821# Global variables: 7822ofile=libtool 7823can_build_shared=yes 7824 7825# All known linkers require a `.a' archive for static linking (except MSVC, 7826# which needs '.lib'). 7827libext=a 7828 7829with_gnu_ld="$lt_cv_prog_gnu_ld" 7830 7831old_CC="$CC" 7832old_CFLAGS="$CFLAGS" 7833 7834# Set sane defaults for various variables 7835test -z "$CC" && CC=cc 7836test -z "$LTCC" && LTCC=$CC 7837test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7838test -z "$LD" && LD=ld 7839test -z "$ac_objext" && ac_objext=o 7840 7841for cc_temp in $compiler""; do 7842 case $cc_temp in 7843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7845 \-*) ;; 7846 *) break;; 7847 esac 7848done 7849cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7850 7851 7852# Only perform the check for file, if the check method requires it 7853test -z "$MAGIC_CMD" && MAGIC_CMD=file 7854case $deplibs_check_method in 7855file_magic*) 7856 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7858$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7859if ${lt_cv_path_MAGIC_CMD+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 case $MAGIC_CMD in 7863[\\/*] | ?:[\\/]*) 7864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7865 ;; 7866*) 7867 lt_save_MAGIC_CMD="$MAGIC_CMD" 7868 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7870 for ac_dir in $ac_dummy; do 7871 IFS="$lt_save_ifs" 7872 test -z "$ac_dir" && ac_dir=. 7873 if test -f $ac_dir/${ac_tool_prefix}file; then 7874 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7875 if test -n "$file_magic_test_file"; then 7876 case $deplibs_check_method in 7877 "file_magic "*) 7878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7881 $EGREP "$file_magic_regex" > /dev/null; then 7882 : 7883 else 7884 cat <<_LT_EOF 1>&2 7885 7886*** Warning: the command libtool uses to detect shared libraries, 7887*** $file_magic_cmd, produces output that libtool cannot recognize. 7888*** The result is that libtool may fail to recognize shared libraries 7889*** as such. This will affect the creation of libtool libraries that 7890*** depend on shared libraries, but programs linked with such libtool 7891*** libraries will work regardless of this problem. Nevertheless, you 7892*** may want to report the problem to your system manager and/or to 7893*** bug-libtool@gnu.org 7894 7895_LT_EOF 7896 fi ;; 7897 esac 7898 fi 7899 break 7900 fi 7901 done 7902 IFS="$lt_save_ifs" 7903 MAGIC_CMD="$lt_save_MAGIC_CMD" 7904 ;; 7905esac 7906fi 7907 7908MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7909if test -n "$MAGIC_CMD"; then 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7911$as_echo "$MAGIC_CMD" >&6; } 7912else 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7914$as_echo "no" >&6; } 7915fi 7916 7917 7918 7919 7920 7921if test -z "$lt_cv_path_MAGIC_CMD"; then 7922 if test -n "$ac_tool_prefix"; then 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7924$as_echo_n "checking for file... " >&6; } 7925if ${lt_cv_path_MAGIC_CMD+:} false; then : 7926 $as_echo_n "(cached) " >&6 7927else 7928 case $MAGIC_CMD in 7929[\\/*] | ?:[\\/]*) 7930 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7931 ;; 7932*) 7933 lt_save_MAGIC_CMD="$MAGIC_CMD" 7934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7935 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7936 for ac_dir in $ac_dummy; do 7937 IFS="$lt_save_ifs" 7938 test -z "$ac_dir" && ac_dir=. 7939 if test -f $ac_dir/file; then 7940 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7941 if test -n "$file_magic_test_file"; then 7942 case $deplibs_check_method in 7943 "file_magic "*) 7944 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7946 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7947 $EGREP "$file_magic_regex" > /dev/null; then 7948 : 7949 else 7950 cat <<_LT_EOF 1>&2 7951 7952*** Warning: the command libtool uses to detect shared libraries, 7953*** $file_magic_cmd, produces output that libtool cannot recognize. 7954*** The result is that libtool may fail to recognize shared libraries 7955*** as such. This will affect the creation of libtool libraries that 7956*** depend on shared libraries, but programs linked with such libtool 7957*** libraries will work regardless of this problem. Nevertheless, you 7958*** may want to report the problem to your system manager and/or to 7959*** bug-libtool@gnu.org 7960 7961_LT_EOF 7962 fi ;; 7963 esac 7964 fi 7965 break 7966 fi 7967 done 7968 IFS="$lt_save_ifs" 7969 MAGIC_CMD="$lt_save_MAGIC_CMD" 7970 ;; 7971esac 7972fi 7973 7974MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7975if test -n "$MAGIC_CMD"; then 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7977$as_echo "$MAGIC_CMD" >&6; } 7978else 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7980$as_echo "no" >&6; } 7981fi 7982 7983 7984 else 7985 MAGIC_CMD=: 7986 fi 7987fi 7988 7989 fi 7990 ;; 7991esac 7992 7993# Use C for the default configuration in the libtool script 7994 7995lt_save_CC="$CC" 7996ac_ext=c 7997ac_cpp='$CPP $CPPFLAGS' 7998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8000ac_compiler_gnu=$ac_cv_c_compiler_gnu 8001 8002 8003# Source file extension for C test sources. 8004ac_ext=c 8005 8006# Object file extension for compiled C test sources. 8007objext=o 8008objext=$objext 8009 8010# Code to be used in simple compile tests 8011lt_simple_compile_test_code="int some_variable = 0;" 8012 8013# Code to be used in simple link tests 8014lt_simple_link_test_code='int main(){return(0);}' 8015 8016 8017 8018 8019 8020 8021 8022# If no C compiler was specified, use CC. 8023LTCC=${LTCC-"$CC"} 8024 8025# If no C compiler flags were specified, use CFLAGS. 8026LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8027 8028# Allow CC to be a program name with arguments. 8029compiler=$CC 8030 8031# Save the default compiler, since it gets overwritten when the other 8032# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8033compiler_DEFAULT=$CC 8034 8035# save warnings/boilerplate of simple test code 8036ac_outfile=conftest.$ac_objext 8037echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8038eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8039_lt_compiler_boilerplate=`cat conftest.err` 8040$RM conftest* 8041 8042ac_outfile=conftest.$ac_objext 8043echo "$lt_simple_link_test_code" >conftest.$ac_ext 8044eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8045_lt_linker_boilerplate=`cat conftest.err` 8046$RM -r conftest* 8047 8048 8049## CAVEAT EMPTOR: 8050## There is no encapsulation within the following macros, do not change 8051## the running order or otherwise move them around unless you know exactly 8052## what you are doing... 8053if test -n "$compiler"; then 8054 8055lt_prog_compiler_no_builtin_flag= 8056 8057if test "$GCC" = yes; then 8058 case $cc_basename in 8059 nvcc*) 8060 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8061 *) 8062 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8063 esac 8064 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8066$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8067if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069else 8070 lt_cv_prog_compiler_rtti_exceptions=no 8071 ac_outfile=conftest.$ac_objext 8072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8073 lt_compiler_flag="-fno-rtti -fno-exceptions" 8074 # Insert the option either (1) after the last *FLAGS variable, or 8075 # (2) before a word containing "conftest.", or (3) at the end. 8076 # Note that $ac_compile itself does not contain backslashes and begins 8077 # with a dollar sign (not a hyphen), so the echo should work correctly. 8078 # The option is referenced via a variable to avoid confusing sed. 8079 lt_compile=`echo "$ac_compile" | $SED \ 8080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8082 -e 's:$: $lt_compiler_flag:'` 8083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8084 (eval "$lt_compile" 2>conftest.err) 8085 ac_status=$? 8086 cat conftest.err >&5 8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8088 if (exit $ac_status) && test -s "$ac_outfile"; then 8089 # The compiler can only warn and ignore the option if not recognized 8090 # So say no if there are warnings other than the usual output. 8091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8094 lt_cv_prog_compiler_rtti_exceptions=yes 8095 fi 8096 fi 8097 $RM conftest* 8098 8099fi 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8101$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8102 8103if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8104 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8105else 8106 : 8107fi 8108 8109fi 8110 8111 8112 8113 8114 8115 8116 lt_prog_compiler_wl= 8117lt_prog_compiler_pic= 8118lt_prog_compiler_static= 8119 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8121$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8122 8123 if test "$GCC" = yes; then 8124 lt_prog_compiler_wl='-Wl,' 8125 lt_prog_compiler_static='-static' 8126 8127 case $host_os in 8128 aix*) 8129 # All AIX code is PIC. 8130 if test "$host_cpu" = ia64; then 8131 # AIX 5 now supports IA64 processor 8132 lt_prog_compiler_static='-Bstatic' 8133 fi 8134 lt_prog_compiler_pic='-fPIC' 8135 ;; 8136 8137 amigaos*) 8138 case $host_cpu in 8139 powerpc) 8140 # see comment about AmigaOS4 .so support 8141 lt_prog_compiler_pic='-fPIC' 8142 ;; 8143 m68k) 8144 # FIXME: we need at least 68020 code to build shared libraries, but 8145 # adding the `-m68020' flag to GCC prevents building anything better, 8146 # like `-m68040'. 8147 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8148 ;; 8149 esac 8150 ;; 8151 8152 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8153 # PIC is the default for these OSes. 8154 ;; 8155 8156 mingw* | cygwin* | pw32* | os2* | cegcc*) 8157 # This hack is so that the source file can tell whether it is being 8158 # built for inclusion in a dll (and should export symbols for example). 8159 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8160 # (--disable-auto-import) libraries 8161 lt_prog_compiler_pic='-DDLL_EXPORT' 8162 ;; 8163 8164 darwin* | rhapsody*) 8165 # PIC is the default on this platform 8166 # Common symbols not allowed in MH_DYLIB files 8167 lt_prog_compiler_pic='-fno-common' 8168 ;; 8169 8170 haiku*) 8171 # PIC is the default for Haiku. 8172 # The "-static" flag exists, but is broken. 8173 lt_prog_compiler_static= 8174 ;; 8175 8176 hpux*) 8177 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8178 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8179 # sets the default TLS model and affects inlining. 8180 case $host_cpu in 8181 hppa*64*) 8182 # +Z the default 8183 ;; 8184 *) 8185 lt_prog_compiler_pic='-fPIC' 8186 ;; 8187 esac 8188 ;; 8189 8190 interix[3-9]*) 8191 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8192 # Instead, we relocate shared libraries at runtime. 8193 ;; 8194 8195 msdosdjgpp*) 8196 # Just because we use GCC doesn't mean we suddenly get shared libraries 8197 # on systems that don't support them. 8198 lt_prog_compiler_can_build_shared=no 8199 enable_shared=no 8200 ;; 8201 8202 *nto* | *qnx*) 8203 # QNX uses GNU C++, but need to define -shared option too, otherwise 8204 # it will coredump. 8205 lt_prog_compiler_pic='-fPIC -shared' 8206 ;; 8207 8208 sysv4*MP*) 8209 if test -d /usr/nec; then 8210 lt_prog_compiler_pic=-Kconform_pic 8211 fi 8212 ;; 8213 8214 *) 8215 lt_prog_compiler_pic='-fPIC' 8216 ;; 8217 esac 8218 8219 case $cc_basename in 8220 nvcc*) # Cuda Compiler Driver 2.2 8221 lt_prog_compiler_wl='-Xlinker ' 8222 lt_prog_compiler_pic='-Xcompiler -fPIC' 8223 ;; 8224 esac 8225 else 8226 # PORTME Check for flag to pass linker flags through the system compiler. 8227 case $host_os in 8228 aix*) 8229 lt_prog_compiler_wl='-Wl,' 8230 if test "$host_cpu" = ia64; then 8231 # AIX 5 now supports IA64 processor 8232 lt_prog_compiler_static='-Bstatic' 8233 else 8234 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8235 fi 8236 ;; 8237 8238 mingw* | cygwin* | pw32* | os2* | cegcc*) 8239 # This hack is so that the source file can tell whether it is being 8240 # built for inclusion in a dll (and should export symbols for example). 8241 lt_prog_compiler_pic='-DDLL_EXPORT' 8242 ;; 8243 8244 hpux9* | hpux10* | hpux11*) 8245 lt_prog_compiler_wl='-Wl,' 8246 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8247 # not for PA HP-UX. 8248 case $host_cpu in 8249 hppa*64*|ia64*) 8250 # +Z the default 8251 ;; 8252 *) 8253 lt_prog_compiler_pic='+Z' 8254 ;; 8255 esac 8256 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8257 lt_prog_compiler_static='${wl}-a ${wl}archive' 8258 ;; 8259 8260 irix5* | irix6* | nonstopux*) 8261 lt_prog_compiler_wl='-Wl,' 8262 # PIC (with -KPIC) is the default. 8263 lt_prog_compiler_static='-non_shared' 8264 ;; 8265 8266 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8267 case $cc_basename in 8268 # old Intel for x86_64 which still supported -KPIC. 8269 ecc*) 8270 lt_prog_compiler_wl='-Wl,' 8271 lt_prog_compiler_pic='-KPIC' 8272 lt_prog_compiler_static='-static' 8273 ;; 8274 # icc used to be incompatible with GCC. 8275 # ICC 10 doesn't accept -KPIC any more. 8276 icc* | ifort*) 8277 lt_prog_compiler_wl='-Wl,' 8278 lt_prog_compiler_pic='-fPIC' 8279 lt_prog_compiler_static='-static' 8280 ;; 8281 # Lahey Fortran 8.1. 8282 lf95*) 8283 lt_prog_compiler_wl='-Wl,' 8284 lt_prog_compiler_pic='--shared' 8285 lt_prog_compiler_static='--static' 8286 ;; 8287 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8288 # Portland Group compilers (*not* the Pentium gcc compiler, 8289 # which looks to be a dead project) 8290 lt_prog_compiler_wl='-Wl,' 8291 lt_prog_compiler_pic='-fpic' 8292 lt_prog_compiler_static='-Bstatic' 8293 ;; 8294 ccc*) 8295 lt_prog_compiler_wl='-Wl,' 8296 # All Alpha code is PIC. 8297 lt_prog_compiler_static='-non_shared' 8298 ;; 8299 xl* | bgxl* | bgf* | mpixl*) 8300 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8301 lt_prog_compiler_wl='-Wl,' 8302 lt_prog_compiler_pic='-qpic' 8303 lt_prog_compiler_static='-qstaticlink' 8304 ;; 8305 *) 8306 case `$CC -V 2>&1 | sed 5q` in 8307 *Sun\ F* | *Sun*Fortran*) 8308 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8309 lt_prog_compiler_pic='-KPIC' 8310 lt_prog_compiler_static='-Bstatic' 8311 lt_prog_compiler_wl='' 8312 ;; 8313 *Sun\ C*) 8314 # Sun C 5.9 8315 lt_prog_compiler_pic='-KPIC' 8316 lt_prog_compiler_static='-Bstatic' 8317 lt_prog_compiler_wl='-Wl,' 8318 ;; 8319 esac 8320 ;; 8321 esac 8322 ;; 8323 8324 newsos6) 8325 lt_prog_compiler_pic='-KPIC' 8326 lt_prog_compiler_static='-Bstatic' 8327 ;; 8328 8329 *nto* | *qnx*) 8330 # QNX uses GNU C++, but need to define -shared option too, otherwise 8331 # it will coredump. 8332 lt_prog_compiler_pic='-fPIC -shared' 8333 ;; 8334 8335 osf3* | osf4* | osf5*) 8336 lt_prog_compiler_wl='-Wl,' 8337 # All OSF/1 code is PIC. 8338 lt_prog_compiler_static='-non_shared' 8339 ;; 8340 8341 rdos*) 8342 lt_prog_compiler_static='-non_shared' 8343 ;; 8344 8345 solaris*) 8346 lt_prog_compiler_pic='-KPIC' 8347 lt_prog_compiler_static='-Bstatic' 8348 case $cc_basename in 8349 f77* | f90* | f95*) 8350 lt_prog_compiler_wl='-Qoption ld ';; 8351 *) 8352 lt_prog_compiler_wl='-Wl,';; 8353 esac 8354 ;; 8355 8356 sunos4*) 8357 lt_prog_compiler_wl='-Qoption ld ' 8358 lt_prog_compiler_pic='-PIC' 8359 lt_prog_compiler_static='-Bstatic' 8360 ;; 8361 8362 sysv4 | sysv4.2uw2* | sysv4.3*) 8363 lt_prog_compiler_wl='-Wl,' 8364 lt_prog_compiler_pic='-KPIC' 8365 lt_prog_compiler_static='-Bstatic' 8366 ;; 8367 8368 sysv4*MP*) 8369 if test -d /usr/nec ;then 8370 lt_prog_compiler_pic='-Kconform_pic' 8371 lt_prog_compiler_static='-Bstatic' 8372 fi 8373 ;; 8374 8375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8376 lt_prog_compiler_wl='-Wl,' 8377 lt_prog_compiler_pic='-KPIC' 8378 lt_prog_compiler_static='-Bstatic' 8379 ;; 8380 8381 unicos*) 8382 lt_prog_compiler_wl='-Wl,' 8383 lt_prog_compiler_can_build_shared=no 8384 ;; 8385 8386 uts4*) 8387 lt_prog_compiler_pic='-pic' 8388 lt_prog_compiler_static='-Bstatic' 8389 ;; 8390 8391 *) 8392 lt_prog_compiler_can_build_shared=no 8393 ;; 8394 esac 8395 fi 8396 8397case $host_os in 8398 # For platforms which do not support PIC, -DPIC is meaningless: 8399 *djgpp*) 8400 lt_prog_compiler_pic= 8401 ;; 8402 *) 8403 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8404 ;; 8405esac 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8407$as_echo "$lt_prog_compiler_pic" >&6; } 8408 8409 8410 8411 8412 8413 8414# 8415# Check to make sure the PIC flag actually works. 8416# 8417if test -n "$lt_prog_compiler_pic"; then 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8419$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8420if ${lt_cv_prog_compiler_pic_works+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 lt_cv_prog_compiler_pic_works=no 8424 ac_outfile=conftest.$ac_objext 8425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8426 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8427 # Insert the option either (1) after the last *FLAGS variable, or 8428 # (2) before a word containing "conftest.", or (3) at the end. 8429 # Note that $ac_compile itself does not contain backslashes and begins 8430 # with a dollar sign (not a hyphen), so the echo should work correctly. 8431 # The option is referenced via a variable to avoid confusing sed. 8432 lt_compile=`echo "$ac_compile" | $SED \ 8433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8435 -e 's:$: $lt_compiler_flag:'` 8436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8437 (eval "$lt_compile" 2>conftest.err) 8438 ac_status=$? 8439 cat conftest.err >&5 8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 if (exit $ac_status) && test -s "$ac_outfile"; then 8442 # The compiler can only warn and ignore the option if not recognized 8443 # So say no if there are warnings other than the usual output. 8444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8447 lt_cv_prog_compiler_pic_works=yes 8448 fi 8449 fi 8450 $RM conftest* 8451 8452fi 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8454$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8455 8456if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8457 case $lt_prog_compiler_pic in 8458 "" | " "*) ;; 8459 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8460 esac 8461else 8462 lt_prog_compiler_pic= 8463 lt_prog_compiler_can_build_shared=no 8464fi 8465 8466fi 8467 8468 8469 8470 8471 8472 8473# 8474# Check to make sure the static flag actually works. 8475# 8476wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8478$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8479if ${lt_cv_prog_compiler_static_works+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 lt_cv_prog_compiler_static_works=no 8483 save_LDFLAGS="$LDFLAGS" 8484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8485 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8487 # The linker can only warn and ignore the option if not recognized 8488 # So say no if there are warnings 8489 if test -s conftest.err; then 8490 # Append any errors to the config.log. 8491 cat conftest.err 1>&5 8492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8494 if diff conftest.exp conftest.er2 >/dev/null; then 8495 lt_cv_prog_compiler_static_works=yes 8496 fi 8497 else 8498 lt_cv_prog_compiler_static_works=yes 8499 fi 8500 fi 8501 $RM -r conftest* 8502 LDFLAGS="$save_LDFLAGS" 8503 8504fi 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8506$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8507 8508if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8509 : 8510else 8511 lt_prog_compiler_static= 8512fi 8513 8514 8515 8516 8517 8518 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8521$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8522if ${lt_cv_prog_compiler_c_o+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 lt_cv_prog_compiler_c_o=no 8526 $RM -r conftest 2>/dev/null 8527 mkdir conftest 8528 cd conftest 8529 mkdir out 8530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8531 8532 lt_compiler_flag="-o out/conftest2.$ac_objext" 8533 # Insert the option either (1) after the last *FLAGS variable, or 8534 # (2) before a word containing "conftest.", or (3) at the end. 8535 # Note that $ac_compile itself does not contain backslashes and begins 8536 # with a dollar sign (not a hyphen), so the echo should work correctly. 8537 lt_compile=`echo "$ac_compile" | $SED \ 8538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8540 -e 's:$: $lt_compiler_flag:'` 8541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8542 (eval "$lt_compile" 2>out/conftest.err) 8543 ac_status=$? 8544 cat out/conftest.err >&5 8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8546 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8547 then 8548 # The compiler can only warn and ignore the option if not recognized 8549 # So say no if there are warnings 8550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8553 lt_cv_prog_compiler_c_o=yes 8554 fi 8555 fi 8556 chmod u+w . 2>&5 8557 $RM conftest* 8558 # SGI C++ compiler will create directory out/ii_files/ for 8559 # template instantiation 8560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8561 $RM out/* && rmdir out 8562 cd .. 8563 $RM -r conftest 8564 $RM conftest* 8565 8566fi 8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8568$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8569 8570 8571 8572 8573 8574 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8576$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8577if ${lt_cv_prog_compiler_c_o+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 lt_cv_prog_compiler_c_o=no 8581 $RM -r conftest 2>/dev/null 8582 mkdir conftest 8583 cd conftest 8584 mkdir out 8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8586 8587 lt_compiler_flag="-o out/conftest2.$ac_objext" 8588 # Insert the option either (1) after the last *FLAGS variable, or 8589 # (2) before a word containing "conftest.", or (3) at the end. 8590 # Note that $ac_compile itself does not contain backslashes and begins 8591 # with a dollar sign (not a hyphen), so the echo should work correctly. 8592 lt_compile=`echo "$ac_compile" | $SED \ 8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8595 -e 's:$: $lt_compiler_flag:'` 8596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8597 (eval "$lt_compile" 2>out/conftest.err) 8598 ac_status=$? 8599 cat out/conftest.err >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8601 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8602 then 8603 # The compiler can only warn and ignore the option if not recognized 8604 # So say no if there are warnings 8605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8608 lt_cv_prog_compiler_c_o=yes 8609 fi 8610 fi 8611 chmod u+w . 2>&5 8612 $RM conftest* 8613 # SGI C++ compiler will create directory out/ii_files/ for 8614 # template instantiation 8615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8616 $RM out/* && rmdir out 8617 cd .. 8618 $RM -r conftest 8619 $RM conftest* 8620 8621fi 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8623$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8624 8625 8626 8627 8628hard_links="nottested" 8629if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8630 # do not overwrite the value of need_locks provided by the user 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8632$as_echo_n "checking if we can lock with hard links... " >&6; } 8633 hard_links=yes 8634 $RM conftest* 8635 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8636 touch conftest.a 8637 ln conftest.a conftest.b 2>&5 || hard_links=no 8638 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8640$as_echo "$hard_links" >&6; } 8641 if test "$hard_links" = no; then 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8643$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8644 need_locks=warn 8645 fi 8646else 8647 need_locks=no 8648fi 8649 8650 8651 8652 8653 8654 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8656$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8657 8658 runpath_var= 8659 allow_undefined_flag= 8660 always_export_symbols=no 8661 archive_cmds= 8662 archive_expsym_cmds= 8663 compiler_needs_object=no 8664 enable_shared_with_static_runtimes=no 8665 export_dynamic_flag_spec= 8666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8667 hardcode_automatic=no 8668 hardcode_direct=no 8669 hardcode_direct_absolute=no 8670 hardcode_libdir_flag_spec= 8671 hardcode_libdir_flag_spec_ld= 8672 hardcode_libdir_separator= 8673 hardcode_minus_L=no 8674 hardcode_shlibpath_var=unsupported 8675 inherit_rpath=no 8676 link_all_deplibs=unknown 8677 module_cmds= 8678 module_expsym_cmds= 8679 old_archive_from_new_cmds= 8680 old_archive_from_expsyms_cmds= 8681 thread_safe_flag_spec= 8682 whole_archive_flag_spec= 8683 # include_expsyms should be a list of space-separated symbols to be *always* 8684 # included in the symbol list 8685 include_expsyms= 8686 # exclude_expsyms can be an extended regexp of symbols to exclude 8687 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8689 # as well as any symbol that contains `d'. 8690 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8692 # platforms (ab)use it in PIC code, but their linkers get confused if 8693 # the symbol is explicitly referenced. Since portable code cannot 8694 # rely on this symbol name, it's probably fine to never include it in 8695 # preloaded symbol tables. 8696 # Exclude shared library initialization/finalization symbols. 8697 extract_expsyms_cmds= 8698 8699 case $host_os in 8700 cygwin* | mingw* | pw32* | cegcc*) 8701 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8702 # When not using gcc, we currently assume that we are using 8703 # Microsoft Visual C++. 8704 if test "$GCC" != yes; then 8705 with_gnu_ld=no 8706 fi 8707 ;; 8708 interix*) 8709 # we just hope/assume this is gcc and not c89 (= MSVC++) 8710 with_gnu_ld=yes 8711 ;; 8712 openbsd*) 8713 with_gnu_ld=no 8714 ;; 8715 esac 8716 8717 ld_shlibs=yes 8718 8719 # On some targets, GNU ld is compatible enough with the native linker 8720 # that we're better off using the native interface for both. 8721 lt_use_gnu_ld_interface=no 8722 if test "$with_gnu_ld" = yes; then 8723 case $host_os in 8724 aix*) 8725 # The AIX port of GNU ld has always aspired to compatibility 8726 # with the native linker. However, as the warning in the GNU ld 8727 # block says, versions before 2.19.5* couldn't really create working 8728 # shared libraries, regardless of the interface used. 8729 case `$LD -v 2>&1` in 8730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8732 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8733 *) 8734 lt_use_gnu_ld_interface=yes 8735 ;; 8736 esac 8737 ;; 8738 *) 8739 lt_use_gnu_ld_interface=yes 8740 ;; 8741 esac 8742 fi 8743 8744 if test "$lt_use_gnu_ld_interface" = yes; then 8745 # If archive_cmds runs LD, not CC, wlarc should be empty 8746 wlarc='${wl}' 8747 8748 # Set some defaults for GNU ld with shared library support. These 8749 # are reset later if shared libraries are not supported. Putting them 8750 # here allows them to be overridden if necessary. 8751 runpath_var=LD_RUN_PATH 8752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8753 export_dynamic_flag_spec='${wl}--export-dynamic' 8754 # ancient GNU ld didn't support --whole-archive et. al. 8755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8756 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8757 else 8758 whole_archive_flag_spec= 8759 fi 8760 supports_anon_versioning=no 8761 case `$LD -v 2>&1` in 8762 *GNU\ gold*) supports_anon_versioning=yes ;; 8763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8766 *\ 2.11.*) ;; # other 2.11 versions 8767 *) supports_anon_versioning=yes ;; 8768 esac 8769 8770 # See if GNU ld supports shared libraries. 8771 case $host_os in 8772 aix[3-9]*) 8773 # On AIX/PPC, the GNU linker is very broken 8774 if test "$host_cpu" != ia64; then 8775 ld_shlibs=no 8776 cat <<_LT_EOF 1>&2 8777 8778*** Warning: the GNU linker, at least up to release 2.19, is reported 8779*** to be unable to reliably create shared libraries on AIX. 8780*** Therefore, libtool is disabling shared libraries support. If you 8781*** really care for shared libraries, you may want to install binutils 8782*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8783*** You will then need to restart the configuration process. 8784 8785_LT_EOF 8786 fi 8787 ;; 8788 8789 amigaos*) 8790 case $host_cpu in 8791 powerpc) 8792 # see comment about AmigaOS4 .so support 8793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8794 archive_expsym_cmds='' 8795 ;; 8796 m68k) 8797 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)' 8798 hardcode_libdir_flag_spec='-L$libdir' 8799 hardcode_minus_L=yes 8800 ;; 8801 esac 8802 ;; 8803 8804 beos*) 8805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8806 allow_undefined_flag=unsupported 8807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8808 # support --undefined. This deserves some investigation. FIXME 8809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8810 else 8811 ld_shlibs=no 8812 fi 8813 ;; 8814 8815 cygwin* | mingw* | pw32* | cegcc*) 8816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8817 # as there is no search path for DLLs. 8818 hardcode_libdir_flag_spec='-L$libdir' 8819 export_dynamic_flag_spec='${wl}--export-all-symbols' 8820 allow_undefined_flag=unsupported 8821 always_export_symbols=no 8822 enable_shared_with_static_runtimes=yes 8823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8824 8825 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8827 # If the export-symbols file already is a .def file (1st line 8828 # is EXPORTS), use it as is; otherwise, prepend... 8829 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8830 cp $export_symbols $output_objdir/$soname.def; 8831 else 8832 echo EXPORTS > $output_objdir/$soname.def; 8833 cat $export_symbols >> $output_objdir/$soname.def; 8834 fi~ 8835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8836 else 8837 ld_shlibs=no 8838 fi 8839 ;; 8840 8841 haiku*) 8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8843 link_all_deplibs=yes 8844 ;; 8845 8846 interix[3-9]*) 8847 hardcode_direct=no 8848 hardcode_shlibpath_var=no 8849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8850 export_dynamic_flag_spec='${wl}-E' 8851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8852 # Instead, shared libraries are loaded at an image base (0x10000000 by 8853 # default) and relocated if they conflict, which is a slow very memory 8854 # consuming and fragmenting process. To avoid this, we pick a random, 8855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8856 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8858 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' 8859 ;; 8860 8861 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8862 tmp_diet=no 8863 if test "$host_os" = linux-dietlibc; then 8864 case $cc_basename in 8865 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8866 esac 8867 fi 8868 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8869 && test "$tmp_diet" = no 8870 then 8871 tmp_addflag=' $pic_flag' 8872 tmp_sharedflag='-shared' 8873 case $cc_basename,$host_cpu in 8874 pgcc*) # Portland Group C compiler 8875 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' 8876 tmp_addflag=' $pic_flag' 8877 ;; 8878 pgf77* | pgf90* | pgf95* | pgfortran*) 8879 # Portland Group f77 and f90 compilers 8880 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' 8881 tmp_addflag=' $pic_flag -Mnomain' ;; 8882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8883 tmp_addflag=' -i_dynamic' ;; 8884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8885 tmp_addflag=' -i_dynamic -nofor_main' ;; 8886 ifc* | ifort*) # Intel Fortran compiler 8887 tmp_addflag=' -nofor_main' ;; 8888 lf95*) # Lahey Fortran 8.1 8889 whole_archive_flag_spec= 8890 tmp_sharedflag='--shared' ;; 8891 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8892 tmp_sharedflag='-qmkshrobj' 8893 tmp_addflag= ;; 8894 nvcc*) # Cuda Compiler Driver 2.2 8895 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' 8896 compiler_needs_object=yes 8897 ;; 8898 esac 8899 case `$CC -V 2>&1 | sed 5q` in 8900 *Sun\ C*) # Sun C 5.9 8901 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' 8902 compiler_needs_object=yes 8903 tmp_sharedflag='-G' ;; 8904 *Sun\ F*) # Sun Fortran 8.3 8905 tmp_sharedflag='-G' ;; 8906 esac 8907 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8908 8909 if test "x$supports_anon_versioning" = xyes; then 8910 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8912 echo "local: *; };" >> $output_objdir/$libname.ver~ 8913 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8914 fi 8915 8916 case $cc_basename in 8917 xlf* | bgf* | bgxlf* | mpixlf*) 8918 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8919 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8920 hardcode_libdir_flag_spec= 8921 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8922 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8923 if test "x$supports_anon_versioning" = xyes; then 8924 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8925 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8926 echo "local: *; };" >> $output_objdir/$libname.ver~ 8927 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8928 fi 8929 ;; 8930 esac 8931 else 8932 ld_shlibs=no 8933 fi 8934 ;; 8935 8936 netbsd*) 8937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8938 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8939 wlarc= 8940 else 8941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8943 fi 8944 ;; 8945 8946 solaris*) 8947 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8948 ld_shlibs=no 8949 cat <<_LT_EOF 1>&2 8950 8951*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8952*** create shared libraries on Solaris systems. Therefore, libtool 8953*** is disabling shared libraries support. We urge you to upgrade GNU 8954*** binutils to release 2.9.1 or newer. Another option is to modify 8955*** your PATH or compiler configuration so that the native linker is 8956*** used, and then restart. 8957 8958_LT_EOF 8959 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8962 else 8963 ld_shlibs=no 8964 fi 8965 ;; 8966 8967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8968 case `$LD -v 2>&1` in 8969 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8970 ld_shlibs=no 8971 cat <<_LT_EOF 1>&2 8972 8973*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8974*** reliably create shared libraries on SCO systems. Therefore, libtool 8975*** is disabling shared libraries support. We urge you to upgrade GNU 8976*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8977*** your PATH or compiler configuration so that the native linker is 8978*** used, and then restart. 8979 8980_LT_EOF 8981 ;; 8982 *) 8983 # For security reasons, it is highly recommended that you always 8984 # use absolute paths for naming shared libraries, and exclude the 8985 # DT_RUNPATH tag from executables and libraries. But doing so 8986 # requires that you compile everything twice, which is a pain. 8987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8991 else 8992 ld_shlibs=no 8993 fi 8994 ;; 8995 esac 8996 ;; 8997 8998 sunos4*) 8999 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9000 wlarc= 9001 hardcode_direct=yes 9002 hardcode_shlibpath_var=no 9003 ;; 9004 9005 *) 9006 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9009 else 9010 ld_shlibs=no 9011 fi 9012 ;; 9013 esac 9014 9015 if test "$ld_shlibs" = no; then 9016 runpath_var= 9017 hardcode_libdir_flag_spec= 9018 export_dynamic_flag_spec= 9019 whole_archive_flag_spec= 9020 fi 9021 else 9022 # PORTME fill in a description of your system's linker (not GNU ld) 9023 case $host_os in 9024 aix3*) 9025 allow_undefined_flag=unsupported 9026 always_export_symbols=yes 9027 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' 9028 # Note: this linker hardcodes the directories in LIBPATH if there 9029 # are no directories specified by -L. 9030 hardcode_minus_L=yes 9031 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9032 # Neither direct hardcoding nor static linking is supported with a 9033 # broken collect2. 9034 hardcode_direct=unsupported 9035 fi 9036 ;; 9037 9038 aix[4-9]*) 9039 if test "$host_cpu" = ia64; then 9040 # On IA64, the linker does run time linking by default, so we don't 9041 # have to do anything special. 9042 aix_use_runtimelinking=no 9043 exp_sym_flag='-Bexport' 9044 no_entry_flag="" 9045 else 9046 # If we're using GNU nm, then we don't want the "-C" option. 9047 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9048 # Also, AIX nm treats weak defined symbols like other global 9049 # defined symbols, whereas GNU nm marks them as "W". 9050 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9051 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9052 else 9053 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9054 fi 9055 aix_use_runtimelinking=no 9056 9057 # Test if we are trying to use run time linking or normal 9058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9059 # need to do runtime linking. 9060 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9061 for ld_flag in $LDFLAGS; do 9062 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9063 aix_use_runtimelinking=yes 9064 break 9065 fi 9066 done 9067 ;; 9068 esac 9069 9070 exp_sym_flag='-bexport' 9071 no_entry_flag='-bnoentry' 9072 fi 9073 9074 # When large executables or shared objects are built, AIX ld can 9075 # have problems creating the table of contents. If linking a library 9076 # or program results in "error TOC overflow" add -mminimal-toc to 9077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9079 9080 archive_cmds='' 9081 hardcode_direct=yes 9082 hardcode_direct_absolute=yes 9083 hardcode_libdir_separator=':' 9084 link_all_deplibs=yes 9085 file_list_spec='${wl}-f,' 9086 9087 if test "$GCC" = yes; then 9088 case $host_os in aix4.[012]|aix4.[012].*) 9089 # We only want to do this on AIX 4.2 and lower, the check 9090 # below for broken collect2 doesn't work under 4.3+ 9091 collect2name=`${CC} -print-prog-name=collect2` 9092 if test -f "$collect2name" && 9093 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9094 then 9095 # We have reworked collect2 9096 : 9097 else 9098 # We have old collect2 9099 hardcode_direct=unsupported 9100 # It fails to find uninstalled libraries when the uninstalled 9101 # path is not listed in the libpath. Setting hardcode_minus_L 9102 # to unsupported forces relinking 9103 hardcode_minus_L=yes 9104 hardcode_libdir_flag_spec='-L$libdir' 9105 hardcode_libdir_separator= 9106 fi 9107 ;; 9108 esac 9109 shared_flag='-shared' 9110 if test "$aix_use_runtimelinking" = yes; then 9111 shared_flag="$shared_flag "'${wl}-G' 9112 fi 9113 else 9114 # not using gcc 9115 if test "$host_cpu" = ia64; then 9116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9117 # chokes on -Wl,-G. The following line is correct: 9118 shared_flag='-G' 9119 else 9120 if test "$aix_use_runtimelinking" = yes; then 9121 shared_flag='${wl}-G' 9122 else 9123 shared_flag='${wl}-bM:SRE' 9124 fi 9125 fi 9126 fi 9127 9128 export_dynamic_flag_spec='${wl}-bexpall' 9129 # It seems that -bexpall does not export symbols beginning with 9130 # underscore (_), so it is better to generate a list of symbols to export. 9131 always_export_symbols=yes 9132 if test "$aix_use_runtimelinking" = yes; then 9133 # Warning - without using the other runtime loading flags (-brtl), 9134 # -berok will link without error, but may produce a broken library. 9135 allow_undefined_flag='-berok' 9136 # Determine the default libpath from the value encoded in an 9137 # empty executable. 9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9139/* end confdefs.h. */ 9140 9141int 9142main () 9143{ 9144 9145 ; 9146 return 0; 9147} 9148_ACEOF 9149if ac_fn_c_try_link "$LINENO"; then : 9150 9151lt_aix_libpath_sed=' 9152 /Import File Strings/,/^$/ { 9153 /^0/ { 9154 s/^0 *\(.*\)$/\1/ 9155 p 9156 } 9157 }' 9158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9159# Check for a 64-bit object if we didn't find anything. 9160if test -z "$aix_libpath"; then 9161 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9162fi 9163fi 9164rm -f core conftest.err conftest.$ac_objext \ 9165 conftest$ac_exeext conftest.$ac_ext 9166if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9167 9168 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9169 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9170 else 9171 if test "$host_cpu" = ia64; then 9172 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9173 allow_undefined_flag="-z nodefs" 9174 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" 9175 else 9176 # Determine the default libpath from the value encoded in an 9177 # empty executable. 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179/* end confdefs.h. */ 9180 9181int 9182main () 9183{ 9184 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189if ac_fn_c_try_link "$LINENO"; then : 9190 9191lt_aix_libpath_sed=' 9192 /Import File Strings/,/^$/ { 9193 /^0/ { 9194 s/^0 *\(.*\)$/\1/ 9195 p 9196 } 9197 }' 9198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9199# Check for a 64-bit object if we didn't find anything. 9200if test -z "$aix_libpath"; then 9201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9202fi 9203fi 9204rm -f core conftest.err conftest.$ac_objext \ 9205 conftest$ac_exeext conftest.$ac_ext 9206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9207 9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9209 # Warning - without using the other run time loading flags, 9210 # -berok will link without error, but may produce a broken library. 9211 no_undefined_flag=' ${wl}-bernotok' 9212 allow_undefined_flag=' ${wl}-berok' 9213 if test "$with_gnu_ld" = yes; then 9214 # We only use this code for GNU lds that support --whole-archive. 9215 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9216 else 9217 # Exported symbols can be pulled into shared objects from archives 9218 whole_archive_flag_spec='$convenience' 9219 fi 9220 archive_cmds_need_lc=yes 9221 # This is similar to how AIX traditionally builds its shared libraries. 9222 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9223 fi 9224 fi 9225 ;; 9226 9227 amigaos*) 9228 case $host_cpu in 9229 powerpc) 9230 # see comment about AmigaOS4 .so support 9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9232 archive_expsym_cmds='' 9233 ;; 9234 m68k) 9235 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)' 9236 hardcode_libdir_flag_spec='-L$libdir' 9237 hardcode_minus_L=yes 9238 ;; 9239 esac 9240 ;; 9241 9242 bsdi[45]*) 9243 export_dynamic_flag_spec=-rdynamic 9244 ;; 9245 9246 cygwin* | mingw* | pw32* | cegcc*) 9247 # When not using gcc, we currently assume that we are using 9248 # Microsoft Visual C++. 9249 # hardcode_libdir_flag_spec is actually meaningless, as there is 9250 # no search path for DLLs. 9251 hardcode_libdir_flag_spec=' ' 9252 allow_undefined_flag=unsupported 9253 # Tell ltmain to make .lib files, not .a files. 9254 libext=lib 9255 # Tell ltmain to make .dll files, not .so files. 9256 shrext_cmds=".dll" 9257 # FIXME: Setting linknames here is a bad hack. 9258 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9259 # The linker will automatically build a .lib file if we build a DLL. 9260 old_archive_from_new_cmds='true' 9261 # FIXME: Should let the user specify the lib program. 9262 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9263 fix_srcfile_path='`cygpath -w "$srcfile"`' 9264 enable_shared_with_static_runtimes=yes 9265 ;; 9266 9267 darwin* | rhapsody*) 9268 9269 9270 archive_cmds_need_lc=no 9271 hardcode_direct=no 9272 hardcode_automatic=yes 9273 hardcode_shlibpath_var=unsupported 9274 if test "$lt_cv_ld_force_load" = "yes"; then 9275 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\"`' 9276 else 9277 whole_archive_flag_spec='' 9278 fi 9279 link_all_deplibs=yes 9280 allow_undefined_flag="$_lt_dar_allow_undefined" 9281 case $cc_basename in 9282 ifort*) _lt_dar_can_shared=yes ;; 9283 *) _lt_dar_can_shared=$GCC ;; 9284 esac 9285 if test "$_lt_dar_can_shared" = "yes"; then 9286 output_verbose_link_cmd=func_echo_all 9287 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9288 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9289 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}" 9290 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}" 9291 9292 else 9293 ld_shlibs=no 9294 fi 9295 9296 ;; 9297 9298 dgux*) 9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9300 hardcode_libdir_flag_spec='-L$libdir' 9301 hardcode_shlibpath_var=no 9302 ;; 9303 9304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9305 # support. Future versions do this automatically, but an explicit c++rt0.o 9306 # does not break anything, and helps significantly (at the cost of a little 9307 # extra space). 9308 freebsd2.2*) 9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9310 hardcode_libdir_flag_spec='-R$libdir' 9311 hardcode_direct=yes 9312 hardcode_shlibpath_var=no 9313 ;; 9314 9315 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9316 freebsd2.*) 9317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9318 hardcode_direct=yes 9319 hardcode_minus_L=yes 9320 hardcode_shlibpath_var=no 9321 ;; 9322 9323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9324 freebsd* | dragonfly*) 9325 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9326 hardcode_libdir_flag_spec='-R$libdir' 9327 hardcode_direct=yes 9328 hardcode_shlibpath_var=no 9329 ;; 9330 9331 hpux9*) 9332 if test "$GCC" = yes; then 9333 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9334 else 9335 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9336 fi 9337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9338 hardcode_libdir_separator=: 9339 hardcode_direct=yes 9340 9341 # hardcode_minus_L: Not really in the search PATH, 9342 # but as the default location of the library. 9343 hardcode_minus_L=yes 9344 export_dynamic_flag_spec='${wl}-E' 9345 ;; 9346 9347 hpux10*) 9348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9350 else 9351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9352 fi 9353 if test "$with_gnu_ld" = no; then 9354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9355 hardcode_libdir_flag_spec_ld='+b $libdir' 9356 hardcode_libdir_separator=: 9357 hardcode_direct=yes 9358 hardcode_direct_absolute=yes 9359 export_dynamic_flag_spec='${wl}-E' 9360 # hardcode_minus_L: Not really in the search PATH, 9361 # but as the default location of the library. 9362 hardcode_minus_L=yes 9363 fi 9364 ;; 9365 9366 hpux11*) 9367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9368 case $host_cpu in 9369 hppa*64*) 9370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9371 ;; 9372 ia64*) 9373 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9374 ;; 9375 *) 9376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9377 ;; 9378 esac 9379 else 9380 case $host_cpu in 9381 hppa*64*) 9382 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9383 ;; 9384 ia64*) 9385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9386 ;; 9387 *) 9388 9389 # Older versions of the 11.00 compiler do not understand -b yet 9390 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9392$as_echo_n "checking if $CC understands -b... " >&6; } 9393if ${lt_cv_prog_compiler__b+:} false; then : 9394 $as_echo_n "(cached) " >&6 9395else 9396 lt_cv_prog_compiler__b=no 9397 save_LDFLAGS="$LDFLAGS" 9398 LDFLAGS="$LDFLAGS -b" 9399 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9401 # The linker can only warn and ignore the option if not recognized 9402 # So say no if there are warnings 9403 if test -s conftest.err; then 9404 # Append any errors to the config.log. 9405 cat conftest.err 1>&5 9406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9408 if diff conftest.exp conftest.er2 >/dev/null; then 9409 lt_cv_prog_compiler__b=yes 9410 fi 9411 else 9412 lt_cv_prog_compiler__b=yes 9413 fi 9414 fi 9415 $RM -r conftest* 9416 LDFLAGS="$save_LDFLAGS" 9417 9418fi 9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9420$as_echo "$lt_cv_prog_compiler__b" >&6; } 9421 9422if test x"$lt_cv_prog_compiler__b" = xyes; then 9423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9424else 9425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9426fi 9427 9428 ;; 9429 esac 9430 fi 9431 if test "$with_gnu_ld" = no; then 9432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9433 hardcode_libdir_separator=: 9434 9435 case $host_cpu in 9436 hppa*64*|ia64*) 9437 hardcode_direct=no 9438 hardcode_shlibpath_var=no 9439 ;; 9440 *) 9441 hardcode_direct=yes 9442 hardcode_direct_absolute=yes 9443 export_dynamic_flag_spec='${wl}-E' 9444 9445 # hardcode_minus_L: Not really in the search PATH, 9446 # but as the default location of the library. 9447 hardcode_minus_L=yes 9448 ;; 9449 esac 9450 fi 9451 ;; 9452 9453 irix5* | irix6* | nonstopux*) 9454 if test "$GCC" = yes; then 9455 archive_cmds='$CC -shared $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' 9456 # Try to use the -exported_symbol ld option, if it does not 9457 # work, assume that -exports_file does not work either and 9458 # implicitly export all symbols. 9459 save_LDFLAGS="$LDFLAGS" 9460 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9462/* end confdefs.h. */ 9463int foo(void) {} 9464_ACEOF 9465if ac_fn_c_try_link "$LINENO"; then : 9466 archive_expsym_cmds='$CC -shared $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' 9467 9468fi 9469rm -f core conftest.err conftest.$ac_objext \ 9470 conftest$ac_exeext conftest.$ac_ext 9471 LDFLAGS="$save_LDFLAGS" 9472 else 9473 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' 9474 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' 9475 fi 9476 archive_cmds_need_lc='no' 9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9478 hardcode_libdir_separator=: 9479 inherit_rpath=yes 9480 link_all_deplibs=yes 9481 ;; 9482 9483 netbsd*) 9484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9486 else 9487 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9488 fi 9489 hardcode_libdir_flag_spec='-R$libdir' 9490 hardcode_direct=yes 9491 hardcode_shlibpath_var=no 9492 ;; 9493 9494 newsos6) 9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9496 hardcode_direct=yes 9497 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9498 hardcode_libdir_separator=: 9499 hardcode_shlibpath_var=no 9500 ;; 9501 9502 *nto* | *qnx*) 9503 ;; 9504 9505 openbsd*) 9506 if test -f /usr/libexec/ld.so; then 9507 hardcode_direct=yes 9508 hardcode_shlibpath_var=no 9509 hardcode_direct_absolute=yes 9510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9511 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9512 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9514 export_dynamic_flag_spec='${wl}-E' 9515 else 9516 case $host_os in 9517 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9519 hardcode_libdir_flag_spec='-R$libdir' 9520 ;; 9521 *) 9522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9523 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9524 ;; 9525 esac 9526 fi 9527 else 9528 ld_shlibs=no 9529 fi 9530 ;; 9531 9532 os2*) 9533 hardcode_libdir_flag_spec='-L$libdir' 9534 hardcode_minus_L=yes 9535 allow_undefined_flag=unsupported 9536 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9537 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9538 ;; 9539 9540 osf3*) 9541 if test "$GCC" = yes; then 9542 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9543 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' 9544 else 9545 allow_undefined_flag=' -expect_unresolved \*' 9546 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' 9547 fi 9548 archive_cmds_need_lc='no' 9549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9550 hardcode_libdir_separator=: 9551 ;; 9552 9553 osf4* | osf5*) # as osf3* with the addition of -msym flag 9554 if test "$GCC" = yes; then 9555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9556 archive_cmds='$CC -shared${allow_undefined_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' 9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9558 else 9559 allow_undefined_flag=' -expect_unresolved \*' 9560 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' 9561 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~ 9562 $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' 9563 9564 # Both c and cxx compiler support -rpath directly 9565 hardcode_libdir_flag_spec='-rpath $libdir' 9566 fi 9567 archive_cmds_need_lc='no' 9568 hardcode_libdir_separator=: 9569 ;; 9570 9571 solaris*) 9572 no_undefined_flag=' -z defs' 9573 if test "$GCC" = yes; then 9574 wlarc='${wl}' 9575 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9576 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9577 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9578 else 9579 case `$CC -V 2>&1` in 9580 *"Compilers 5.0"*) 9581 wlarc='' 9582 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9583 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9585 ;; 9586 *) 9587 wlarc='${wl}' 9588 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9590 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9591 ;; 9592 esac 9593 fi 9594 hardcode_libdir_flag_spec='-R$libdir' 9595 hardcode_shlibpath_var=no 9596 case $host_os in 9597 solaris2.[0-5] | solaris2.[0-5].*) ;; 9598 *) 9599 # The compiler driver will combine and reorder linker options, 9600 # but understands `-z linker_flag'. GCC discards it without `$wl', 9601 # but is careful enough not to reorder. 9602 # Supported since Solaris 2.6 (maybe 2.5.1?) 9603 if test "$GCC" = yes; then 9604 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9605 else 9606 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9607 fi 9608 ;; 9609 esac 9610 link_all_deplibs=yes 9611 ;; 9612 9613 sunos4*) 9614 if test "x$host_vendor" = xsequent; then 9615 # Use $CC to link under sequent, because it throws in some extra .o 9616 # files that make .init and .fini sections work. 9617 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9618 else 9619 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9620 fi 9621 hardcode_libdir_flag_spec='-L$libdir' 9622 hardcode_direct=yes 9623 hardcode_minus_L=yes 9624 hardcode_shlibpath_var=no 9625 ;; 9626 9627 sysv4) 9628 case $host_vendor in 9629 sni) 9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9631 hardcode_direct=yes # is this really true??? 9632 ;; 9633 siemens) 9634 ## LD is ld it makes a PLAMLIB 9635 ## CC just makes a GrossModule. 9636 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9637 reload_cmds='$CC -r -o $output$reload_objs' 9638 hardcode_direct=no 9639 ;; 9640 motorola) 9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9642 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9643 ;; 9644 esac 9645 runpath_var='LD_RUN_PATH' 9646 hardcode_shlibpath_var=no 9647 ;; 9648 9649 sysv4.3*) 9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9651 hardcode_shlibpath_var=no 9652 export_dynamic_flag_spec='-Bexport' 9653 ;; 9654 9655 sysv4*MP*) 9656 if test -d /usr/nec; then 9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9658 hardcode_shlibpath_var=no 9659 runpath_var=LD_RUN_PATH 9660 hardcode_runpath_var=yes 9661 ld_shlibs=yes 9662 fi 9663 ;; 9664 9665 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9666 no_undefined_flag='${wl}-z,text' 9667 archive_cmds_need_lc=no 9668 hardcode_shlibpath_var=no 9669 runpath_var='LD_RUN_PATH' 9670 9671 if test "$GCC" = yes; then 9672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9674 else 9675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9677 fi 9678 ;; 9679 9680 sysv5* | sco3.2v5* | sco5v6*) 9681 # Note: We can NOT use -z defs as we might desire, because we do not 9682 # link with -lc, and that would cause any symbols used from libc to 9683 # always be unresolved, which means just about no library would 9684 # ever link correctly. If we're not using GNU ld we use -z text 9685 # though, which does catch some bad symbols but isn't as heavy-handed 9686 # as -z defs. 9687 no_undefined_flag='${wl}-z,text' 9688 allow_undefined_flag='${wl}-z,nodefs' 9689 archive_cmds_need_lc=no 9690 hardcode_shlibpath_var=no 9691 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9692 hardcode_libdir_separator=':' 9693 link_all_deplibs=yes 9694 export_dynamic_flag_spec='${wl}-Bexport' 9695 runpath_var='LD_RUN_PATH' 9696 9697 if test "$GCC" = yes; then 9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9700 else 9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9703 fi 9704 ;; 9705 9706 uts4*) 9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9708 hardcode_libdir_flag_spec='-L$libdir' 9709 hardcode_shlibpath_var=no 9710 ;; 9711 9712 *) 9713 ld_shlibs=no 9714 ;; 9715 esac 9716 9717 if test x$host_vendor = xsni; then 9718 case $host in 9719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9720 export_dynamic_flag_spec='${wl}-Blargedynsym' 9721 ;; 9722 esac 9723 fi 9724 fi 9725 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9727$as_echo "$ld_shlibs" >&6; } 9728test "$ld_shlibs" = no && can_build_shared=no 9729 9730with_gnu_ld=$with_gnu_ld 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746# 9747# Do we need to explicitly link libc? 9748# 9749case "x$archive_cmds_need_lc" in 9750x|xyes) 9751 # Assume -lc should be added 9752 archive_cmds_need_lc=yes 9753 9754 if test "$enable_shared" = yes && test "$GCC" = yes; then 9755 case $archive_cmds in 9756 *'~'*) 9757 # FIXME: we may have to deal with multi-command sequences. 9758 ;; 9759 '$CC '*) 9760 # Test whether the compiler implicitly links with -lc since on some 9761 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9762 # to ld, don't add -lc before -lgcc. 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9764$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9765if ${lt_cv_archive_cmds_need_lc+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 $RM conftest* 9769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9770 9771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9772 (eval $ac_compile) 2>&5 9773 ac_status=$? 9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9775 test $ac_status = 0; } 2>conftest.err; then 9776 soname=conftest 9777 lib=conftest 9778 libobjs=conftest.$ac_objext 9779 deplibs= 9780 wl=$lt_prog_compiler_wl 9781 pic_flag=$lt_prog_compiler_pic 9782 compiler_flags=-v 9783 linker_flags=-v 9784 verstring= 9785 output_objdir=. 9786 libname=conftest 9787 lt_save_allow_undefined_flag=$allow_undefined_flag 9788 allow_undefined_flag= 9789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9790 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9791 ac_status=$? 9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9793 test $ac_status = 0; } 9794 then 9795 lt_cv_archive_cmds_need_lc=no 9796 else 9797 lt_cv_archive_cmds_need_lc=yes 9798 fi 9799 allow_undefined_flag=$lt_save_allow_undefined_flag 9800 else 9801 cat conftest.err 1>&5 9802 fi 9803 $RM conftest* 9804 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9807$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9808 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9809 ;; 9810 esac 9811 fi 9812 ;; 9813esac 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9972$as_echo_n "checking dynamic linker characteristics... " >&6; } 9973 9974if test "$GCC" = yes; then 9975 case $host_os in 9976 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9977 *) lt_awk_arg="/^libraries:/" ;; 9978 esac 9979 case $host_os in 9980 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9981 *) lt_sed_strip_eq="s,=/,/,g" ;; 9982 esac 9983 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9984 case $lt_search_path_spec in 9985 *\;*) 9986 # if the path contains ";" then we assume it to be the separator 9987 # otherwise default to the standard path separator (i.e. ":") - it is 9988 # assumed that no part of a normal pathname contains ";" but that should 9989 # okay in the real world where ";" in dirpaths is itself problematic. 9990 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9991 ;; 9992 *) 9993 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9994 ;; 9995 esac 9996 # Ok, now we have the path, separated by spaces, we can step through it 9997 # and add multilib dir if necessary. 9998 lt_tmp_lt_search_path_spec= 9999 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10000 for lt_sys_path in $lt_search_path_spec; do 10001 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10003 else 10004 test -d "$lt_sys_path" && \ 10005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10006 fi 10007 done 10008 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10009BEGIN {RS=" "; FS="/|\n";} { 10010 lt_foo=""; 10011 lt_count=0; 10012 for (lt_i = NF; lt_i > 0; lt_i--) { 10013 if ($lt_i != "" && $lt_i != ".") { 10014 if ($lt_i == "..") { 10015 lt_count++; 10016 } else { 10017 if (lt_count == 0) { 10018 lt_foo="/" $lt_i lt_foo; 10019 } else { 10020 lt_count--; 10021 } 10022 } 10023 } 10024 } 10025 if (lt_foo != "") { lt_freq[lt_foo]++; } 10026 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10027}'` 10028 # AWK program above erroneously prepends '/' to C:/dos/paths 10029 # for these hosts. 10030 case $host_os in 10031 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10032 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10033 esac 10034 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10035else 10036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10037fi 10038library_names_spec= 10039libname_spec='lib$name' 10040soname_spec= 10041shrext_cmds=".so" 10042postinstall_cmds= 10043postuninstall_cmds= 10044finish_cmds= 10045finish_eval= 10046shlibpath_var= 10047shlibpath_overrides_runpath=unknown 10048version_type=none 10049dynamic_linker="$host_os ld.so" 10050sys_lib_dlsearch_path_spec="/lib /usr/lib" 10051need_lib_prefix=unknown 10052hardcode_into_libs=no 10053 10054# when you set need_version to no, make sure it does not cause -set_version 10055# flags to be left without arguments 10056need_version=unknown 10057 10058case $host_os in 10059aix3*) 10060 version_type=linux 10061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10062 shlibpath_var=LIBPATH 10063 10064 # AIX 3 has no versioning support, so we append a major version to the name. 10065 soname_spec='${libname}${release}${shared_ext}$major' 10066 ;; 10067 10068aix[4-9]*) 10069 version_type=linux 10070 need_lib_prefix=no 10071 need_version=no 10072 hardcode_into_libs=yes 10073 if test "$host_cpu" = ia64; then 10074 # AIX 5 supports IA64 10075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10076 shlibpath_var=LD_LIBRARY_PATH 10077 else 10078 # With GCC up to 2.95.x, collect2 would create an import file 10079 # for dependence libraries. The import file would start with 10080 # the line `#! .'. This would cause the generated library to 10081 # depend on `.', always an invalid library. This was fixed in 10082 # development snapshots of GCC prior to 3.0. 10083 case $host_os in 10084 aix4 | aix4.[01] | aix4.[01].*) 10085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10086 echo ' yes ' 10087 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10088 : 10089 else 10090 can_build_shared=no 10091 fi 10092 ;; 10093 esac 10094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10095 # soname into executable. Probably we can add versioning support to 10096 # collect2, so additional links can be useful in future. 10097 if test "$aix_use_runtimelinking" = yes; then 10098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10099 # instead of lib<name>.a to let people know that these are not 10100 # typical AIX shared libraries. 10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10102 else 10103 # We preserve .a as extension for shared libraries through AIX4.2 10104 # and later when we are not doing run time linking. 10105 library_names_spec='${libname}${release}.a $libname.a' 10106 soname_spec='${libname}${release}${shared_ext}$major' 10107 fi 10108 shlibpath_var=LIBPATH 10109 fi 10110 ;; 10111 10112amigaos*) 10113 case $host_cpu in 10114 powerpc) 10115 # Since July 2007 AmigaOS4 officially supports .so libraries. 10116 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10118 ;; 10119 m68k) 10120 library_names_spec='$libname.ixlibrary $libname.a' 10121 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10122 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10123 ;; 10124 esac 10125 ;; 10126 10127beos*) 10128 library_names_spec='${libname}${shared_ext}' 10129 dynamic_linker="$host_os ld.so" 10130 shlibpath_var=LIBRARY_PATH 10131 ;; 10132 10133bsdi[45]*) 10134 version_type=linux 10135 need_version=no 10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10137 soname_spec='${libname}${release}${shared_ext}$major' 10138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10139 shlibpath_var=LD_LIBRARY_PATH 10140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10142 # the default ld.so.conf also contains /usr/contrib/lib and 10143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10144 # libtool to hard-code these into programs 10145 ;; 10146 10147cygwin* | mingw* | pw32* | cegcc*) 10148 version_type=windows 10149 shrext_cmds=".dll" 10150 need_version=no 10151 need_lib_prefix=no 10152 10153 case $GCC,$host_os in 10154 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10155 library_names_spec='$libname.dll.a' 10156 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10157 postinstall_cmds='base_file=`basename \${file}`~ 10158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10159 dldir=$destdir/`dirname \$dlpath`~ 10160 test -d \$dldir || mkdir -p \$dldir~ 10161 $install_prog $dir/$dlname \$dldir/$dlname~ 10162 chmod a+x \$dldir/$dlname~ 10163 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10164 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10165 fi' 10166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10167 dlpath=$dir/\$dldll~ 10168 $RM \$dlpath' 10169 shlibpath_overrides_runpath=yes 10170 10171 case $host_os in 10172 cygwin*) 10173 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10175 10176 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10177 ;; 10178 mingw* | cegcc*) 10179 # MinGW DLLs use traditional 'lib' prefix 10180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10181 ;; 10182 pw32*) 10183 # pw32 DLLs use 'pw' prefix rather than 'lib' 10184 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10185 ;; 10186 esac 10187 ;; 10188 10189 *) 10190 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10191 ;; 10192 esac 10193 dynamic_linker='Win32 ld.exe' 10194 # FIXME: first we should search . and the directory the executable is in 10195 shlibpath_var=PATH 10196 ;; 10197 10198darwin* | rhapsody*) 10199 dynamic_linker="$host_os dyld" 10200 version_type=darwin 10201 need_lib_prefix=no 10202 need_version=no 10203 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10204 soname_spec='${libname}${release}${major}$shared_ext' 10205 shlibpath_overrides_runpath=yes 10206 shlibpath_var=DYLD_LIBRARY_PATH 10207 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10208 10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10210 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10211 ;; 10212 10213dgux*) 10214 version_type=linux 10215 need_lib_prefix=no 10216 need_version=no 10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10218 soname_spec='${libname}${release}${shared_ext}$major' 10219 shlibpath_var=LD_LIBRARY_PATH 10220 ;; 10221 10222freebsd* | dragonfly*) 10223 # DragonFly does not have aout. When/if they implement a new 10224 # versioning mechanism, adjust this. 10225 if test -x /usr/bin/objformat; then 10226 objformat=`/usr/bin/objformat` 10227 else 10228 case $host_os in 10229 freebsd[23].*) objformat=aout ;; 10230 *) objformat=elf ;; 10231 esac 10232 fi 10233 version_type=freebsd-$objformat 10234 case $version_type in 10235 freebsd-elf*) 10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10237 need_version=no 10238 need_lib_prefix=no 10239 ;; 10240 freebsd-*) 10241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10242 need_version=yes 10243 ;; 10244 esac 10245 shlibpath_var=LD_LIBRARY_PATH 10246 case $host_os in 10247 freebsd2.*) 10248 shlibpath_overrides_runpath=yes 10249 ;; 10250 freebsd3.[01]* | freebsdelf3.[01]*) 10251 shlibpath_overrides_runpath=yes 10252 hardcode_into_libs=yes 10253 ;; 10254 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10255 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10256 shlibpath_overrides_runpath=no 10257 hardcode_into_libs=yes 10258 ;; 10259 *) # from 4.6 on, and DragonFly 10260 shlibpath_overrides_runpath=yes 10261 hardcode_into_libs=yes 10262 ;; 10263 esac 10264 ;; 10265 10266haiku*) 10267 version_type=linux 10268 need_lib_prefix=no 10269 need_version=no 10270 dynamic_linker="$host_os runtime_loader" 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10272 soname_spec='${libname}${release}${shared_ext}$major' 10273 shlibpath_var=LIBRARY_PATH 10274 shlibpath_overrides_runpath=yes 10275 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10276 hardcode_into_libs=yes 10277 ;; 10278 10279hpux9* | hpux10* | hpux11*) 10280 # Give a soname corresponding to the major version so that dld.sl refuses to 10281 # link against other versions. 10282 version_type=sunos 10283 need_lib_prefix=no 10284 need_version=no 10285 case $host_cpu in 10286 ia64*) 10287 shrext_cmds='.so' 10288 hardcode_into_libs=yes 10289 dynamic_linker="$host_os dld.so" 10290 shlibpath_var=LD_LIBRARY_PATH 10291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10293 soname_spec='${libname}${release}${shared_ext}$major' 10294 if test "X$HPUX_IA64_MODE" = X32; then 10295 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10296 else 10297 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10298 fi 10299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10300 ;; 10301 hppa*64*) 10302 shrext_cmds='.sl' 10303 hardcode_into_libs=yes 10304 dynamic_linker="$host_os dld.sl" 10305 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10308 soname_spec='${libname}${release}${shared_ext}$major' 10309 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10311 ;; 10312 *) 10313 shrext_cmds='.sl' 10314 dynamic_linker="$host_os dld.sl" 10315 shlibpath_var=SHLIB_PATH 10316 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10318 soname_spec='${libname}${release}${shared_ext}$major' 10319 ;; 10320 esac 10321 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10322 postinstall_cmds='chmod 555 $lib' 10323 # or fails outright, so override atomically: 10324 install_override_mode=555 10325 ;; 10326 10327interix[3-9]*) 10328 version_type=linux 10329 need_lib_prefix=no 10330 need_version=no 10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10332 soname_spec='${libname}${release}${shared_ext}$major' 10333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10334 shlibpath_var=LD_LIBRARY_PATH 10335 shlibpath_overrides_runpath=no 10336 hardcode_into_libs=yes 10337 ;; 10338 10339irix5* | irix6* | nonstopux*) 10340 case $host_os in 10341 nonstopux*) version_type=nonstopux ;; 10342 *) 10343 if test "$lt_cv_prog_gnu_ld" = yes; then 10344 version_type=linux 10345 else 10346 version_type=irix 10347 fi ;; 10348 esac 10349 need_lib_prefix=no 10350 need_version=no 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10353 case $host_os in 10354 irix5* | nonstopux*) 10355 libsuff= shlibsuff= 10356 ;; 10357 *) 10358 case $LD in # libtool.m4 will add one of these switches to LD 10359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10360 libsuff= shlibsuff= libmagic=32-bit;; 10361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10362 libsuff=32 shlibsuff=N32 libmagic=N32;; 10363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10364 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10365 *) libsuff= shlibsuff= libmagic=never-match;; 10366 esac 10367 ;; 10368 esac 10369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10370 shlibpath_overrides_runpath=no 10371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10373 hardcode_into_libs=yes 10374 ;; 10375 10376# No shared lib support for Linux oldld, aout, or coff. 10377linux*oldld* | linux*aout* | linux*coff*) 10378 dynamic_linker=no 10379 ;; 10380 10381# This must be Linux ELF. 10382 10383# uclinux* changes (here and below) have been submitted to the libtool 10384# project, but have not yet been accepted: they are GCC-local changes 10385# for the time being. (See 10386# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10387linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10388 version_type=linux 10389 need_lib_prefix=no 10390 need_version=no 10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10392 soname_spec='${libname}${release}${shared_ext}$major' 10393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10394 shlibpath_var=LD_LIBRARY_PATH 10395 shlibpath_overrides_runpath=no 10396 10397 # Some binutils ld are patched to set DT_RUNPATH 10398 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10399 $as_echo_n "(cached) " >&6 10400else 10401 lt_cv_shlibpath_overrides_runpath=no 10402 save_LDFLAGS=$LDFLAGS 10403 save_libdir=$libdir 10404 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10405 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10407/* end confdefs.h. */ 10408 10409int 10410main () 10411{ 10412 10413 ; 10414 return 0; 10415} 10416_ACEOF 10417if ac_fn_c_try_link "$LINENO"; then : 10418 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10419 lt_cv_shlibpath_overrides_runpath=yes 10420fi 10421fi 10422rm -f core conftest.err conftest.$ac_objext \ 10423 conftest$ac_exeext conftest.$ac_ext 10424 LDFLAGS=$save_LDFLAGS 10425 libdir=$save_libdir 10426 10427fi 10428 10429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10430 10431 # This implies no fast_install, which is unacceptable. 10432 # Some rework will be needed to allow for fast_install 10433 # before this can be enabled. 10434 hardcode_into_libs=yes 10435 10436 # Append ld.so.conf contents to the search path 10437 if test -f /etc/ld.so.conf; then 10438 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' ' '` 10439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10440 fi 10441 10442 # We used to test for /lib/ld.so.1 and disable shared libraries on 10443 # powerpc, because MkLinux only supported shared libraries with the 10444 # GNU dynamic linker. Since this was broken with cross compilers, 10445 # most powerpc-linux boxes support dynamic linking these days and 10446 # people can always --disable-shared, the test was removed, and we 10447 # assume the GNU/Linux dynamic linker is in use. 10448 dynamic_linker='GNU/Linux ld.so' 10449 ;; 10450 10451netbsd*) 10452 version_type=sunos 10453 need_lib_prefix=no 10454 need_version=no 10455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10458 dynamic_linker='NetBSD (a.out) ld.so' 10459 else 10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10461 soname_spec='${libname}${release}${shared_ext}$major' 10462 dynamic_linker='NetBSD ld.elf_so' 10463 fi 10464 shlibpath_var=LD_LIBRARY_PATH 10465 shlibpath_overrides_runpath=yes 10466 hardcode_into_libs=yes 10467 ;; 10468 10469newsos6) 10470 version_type=linux 10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10472 shlibpath_var=LD_LIBRARY_PATH 10473 shlibpath_overrides_runpath=yes 10474 ;; 10475 10476*nto* | *qnx*) 10477 version_type=qnx 10478 need_lib_prefix=no 10479 need_version=no 10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10481 soname_spec='${libname}${release}${shared_ext}$major' 10482 shlibpath_var=LD_LIBRARY_PATH 10483 shlibpath_overrides_runpath=no 10484 hardcode_into_libs=yes 10485 dynamic_linker='ldqnx.so' 10486 ;; 10487 10488openbsd*) 10489 version_type=sunos 10490 sys_lib_dlsearch_path_spec="/usr/lib" 10491 need_lib_prefix=no 10492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10493 case $host_os in 10494 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10495 *) need_version=no ;; 10496 esac 10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10499 shlibpath_var=LD_LIBRARY_PATH 10500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10501 case $host_os in 10502 openbsd2.[89] | openbsd2.[89].*) 10503 shlibpath_overrides_runpath=no 10504 ;; 10505 *) 10506 shlibpath_overrides_runpath=yes 10507 ;; 10508 esac 10509 else 10510 shlibpath_overrides_runpath=yes 10511 fi 10512 ;; 10513 10514os2*) 10515 libname_spec='$name' 10516 shrext_cmds=".dll" 10517 need_lib_prefix=no 10518 library_names_spec='$libname${shared_ext} $libname.a' 10519 dynamic_linker='OS/2 ld.exe' 10520 shlibpath_var=LIBPATH 10521 ;; 10522 10523osf3* | osf4* | osf5*) 10524 version_type=osf 10525 need_lib_prefix=no 10526 need_version=no 10527 soname_spec='${libname}${release}${shared_ext}$major' 10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10529 shlibpath_var=LD_LIBRARY_PATH 10530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10532 ;; 10533 10534rdos*) 10535 dynamic_linker=no 10536 ;; 10537 10538solaris*) 10539 version_type=linux 10540 need_lib_prefix=no 10541 need_version=no 10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10543 soname_spec='${libname}${release}${shared_ext}$major' 10544 shlibpath_var=LD_LIBRARY_PATH 10545 shlibpath_overrides_runpath=yes 10546 hardcode_into_libs=yes 10547 # ldd complains unless libraries are executable 10548 postinstall_cmds='chmod +x $lib' 10549 ;; 10550 10551sunos4*) 10552 version_type=sunos 10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10555 shlibpath_var=LD_LIBRARY_PATH 10556 shlibpath_overrides_runpath=yes 10557 if test "$with_gnu_ld" = yes; then 10558 need_lib_prefix=no 10559 fi 10560 need_version=yes 10561 ;; 10562 10563sysv4 | sysv4.3*) 10564 version_type=linux 10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10566 soname_spec='${libname}${release}${shared_ext}$major' 10567 shlibpath_var=LD_LIBRARY_PATH 10568 case $host_vendor in 10569 sni) 10570 shlibpath_overrides_runpath=no 10571 need_lib_prefix=no 10572 runpath_var=LD_RUN_PATH 10573 ;; 10574 siemens) 10575 need_lib_prefix=no 10576 ;; 10577 motorola) 10578 need_lib_prefix=no 10579 need_version=no 10580 shlibpath_overrides_runpath=no 10581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10582 ;; 10583 esac 10584 ;; 10585 10586sysv4*MP*) 10587 if test -d /usr/nec ;then 10588 version_type=linux 10589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10590 soname_spec='$libname${shared_ext}.$major' 10591 shlibpath_var=LD_LIBRARY_PATH 10592 fi 10593 ;; 10594 10595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10596 version_type=freebsd-elf 10597 need_lib_prefix=no 10598 need_version=no 10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10600 soname_spec='${libname}${release}${shared_ext}$major' 10601 shlibpath_var=LD_LIBRARY_PATH 10602 shlibpath_overrides_runpath=yes 10603 hardcode_into_libs=yes 10604 if test "$with_gnu_ld" = yes; then 10605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10606 else 10607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10608 case $host_os in 10609 sco3.2v5*) 10610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10611 ;; 10612 esac 10613 fi 10614 sys_lib_dlsearch_path_spec='/usr/lib' 10615 ;; 10616 10617tpf*) 10618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10619 version_type=linux 10620 need_lib_prefix=no 10621 need_version=no 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10623 shlibpath_var=LD_LIBRARY_PATH 10624 shlibpath_overrides_runpath=no 10625 hardcode_into_libs=yes 10626 ;; 10627 10628uts4*) 10629 version_type=linux 10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10631 soname_spec='${libname}${release}${shared_ext}$major' 10632 shlibpath_var=LD_LIBRARY_PATH 10633 ;; 10634 10635# Shared libraries for VwWorks, >= 7 only at this stage 10636# and (fpic) still incompatible with "large" code models 10637# in a few configurations. Only for RTP mode in any case, 10638# and upon explicit request at configure time. 10639vxworks7*) 10640 dynamic_linker=no 10641 case ${with_multisubdir}-${enable_shared} in 10642 *large*) 10643 ;; 10644 *mrtp*-yes) 10645 version_type=linux 10646 need_lib_prefix=no 10647 need_version=no 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10649 soname_spec='${libname}${release}${shared_ext}$major' 10650 dynamic_linker="$host_os module_loader" 10651 ;; 10652 esac 10653 ;; 10654*) 10655 dynamic_linker=no 10656 ;; 10657esac 10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10659$as_echo "$dynamic_linker" >&6; } 10660test "$dynamic_linker" = no && can_build_shared=no 10661 10662variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10663if test "$GCC" = yes; then 10664 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10665fi 10666 10667if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10668 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10669fi 10670if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10671 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10672fi 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10766$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10767hardcode_action= 10768if test -n "$hardcode_libdir_flag_spec" || 10769 test -n "$runpath_var" || 10770 test "X$hardcode_automatic" = "Xyes" ; then 10771 10772 # We can hardcode non-existent directories. 10773 if test "$hardcode_direct" != no && 10774 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10775 # have to relink, otherwise we might link with an installed library 10776 # when we should be linking with a yet-to-be-installed one 10777 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10778 test "$hardcode_minus_L" != no; then 10779 # Linking always hardcodes the temporary library directory. 10780 hardcode_action=relink 10781 else 10782 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10783 hardcode_action=immediate 10784 fi 10785else 10786 # We cannot hardcode anything, or else we can only hardcode existing 10787 # directories. 10788 hardcode_action=unsupported 10789fi 10790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10791$as_echo "$hardcode_action" >&6; } 10792 10793if test "$hardcode_action" = relink || 10794 test "$inherit_rpath" = yes; then 10795 # Fast installation is not supported 10796 enable_fast_install=no 10797elif test "$shlibpath_overrides_runpath" = yes || 10798 test "$enable_shared" = no; then 10799 # Fast installation is not necessary 10800 enable_fast_install=needless 10801fi 10802 10803 10804 10805 10806 10807 10808 if test "x$enable_dlopen" != xyes; then 10809 enable_dlopen=unknown 10810 enable_dlopen_self=unknown 10811 enable_dlopen_self_static=unknown 10812else 10813 lt_cv_dlopen=no 10814 lt_cv_dlopen_libs= 10815 10816 case $host_os in 10817 beos*) 10818 lt_cv_dlopen="load_add_on" 10819 lt_cv_dlopen_libs= 10820 lt_cv_dlopen_self=yes 10821 ;; 10822 10823 mingw* | pw32* | cegcc*) 10824 lt_cv_dlopen="LoadLibrary" 10825 lt_cv_dlopen_libs= 10826 ;; 10827 10828 cygwin*) 10829 lt_cv_dlopen="dlopen" 10830 lt_cv_dlopen_libs= 10831 ;; 10832 10833 darwin*) 10834 # if libdl is installed we need to link against it 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10836$as_echo_n "checking for dlopen in -ldl... " >&6; } 10837if ${ac_cv_lib_dl_dlopen+:} false; then : 10838 $as_echo_n "(cached) " >&6 10839else 10840 ac_check_lib_save_LIBS=$LIBS 10841LIBS="-ldl $LIBS" 10842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10843/* end confdefs.h. */ 10844 10845/* Override any GCC internal prototype to avoid an error. 10846 Use char because int might match the return type of a GCC 10847 builtin and then its argument prototype would still apply. */ 10848#ifdef __cplusplus 10849extern "C" 10850#endif 10851char dlopen (); 10852int 10853main () 10854{ 10855return dlopen (); 10856 ; 10857 return 0; 10858} 10859_ACEOF 10860if ac_fn_c_try_link "$LINENO"; then : 10861 ac_cv_lib_dl_dlopen=yes 10862else 10863 ac_cv_lib_dl_dlopen=no 10864fi 10865rm -f core conftest.err conftest.$ac_objext \ 10866 conftest$ac_exeext conftest.$ac_ext 10867LIBS=$ac_check_lib_save_LIBS 10868fi 10869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10870$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10871if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10873else 10874 10875 lt_cv_dlopen="dyld" 10876 lt_cv_dlopen_libs= 10877 lt_cv_dlopen_self=yes 10878 10879fi 10880 10881 ;; 10882 10883 *) 10884 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10885if test "x$ac_cv_func_shl_load" = xyes; then : 10886 lt_cv_dlopen="shl_load" 10887else 10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10889$as_echo_n "checking for shl_load in -ldld... " >&6; } 10890if ${ac_cv_lib_dld_shl_load+:} false; then : 10891 $as_echo_n "(cached) " >&6 10892else 10893 ac_check_lib_save_LIBS=$LIBS 10894LIBS="-ldld $LIBS" 10895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10896/* end confdefs.h. */ 10897 10898/* Override any GCC internal prototype to avoid an error. 10899 Use char because int might match the return type of a GCC 10900 builtin and then its argument prototype would still apply. */ 10901#ifdef __cplusplus 10902extern "C" 10903#endif 10904char shl_load (); 10905int 10906main () 10907{ 10908return shl_load (); 10909 ; 10910 return 0; 10911} 10912_ACEOF 10913if ac_fn_c_try_link "$LINENO"; then : 10914 ac_cv_lib_dld_shl_load=yes 10915else 10916 ac_cv_lib_dld_shl_load=no 10917fi 10918rm -f core conftest.err conftest.$ac_objext \ 10919 conftest$ac_exeext conftest.$ac_ext 10920LIBS=$ac_check_lib_save_LIBS 10921fi 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10923$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10924if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10925 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10926else 10927 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10928if test "x$ac_cv_func_dlopen" = xyes; then : 10929 lt_cv_dlopen="dlopen" 10930else 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10932$as_echo_n "checking for dlopen in -ldl... " >&6; } 10933if ${ac_cv_lib_dl_dlopen+:} false; then : 10934 $as_echo_n "(cached) " >&6 10935else 10936 ac_check_lib_save_LIBS=$LIBS 10937LIBS="-ldl $LIBS" 10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10939/* end confdefs.h. */ 10940 10941/* Override any GCC internal prototype to avoid an error. 10942 Use char because int might match the return type of a GCC 10943 builtin and then its argument prototype would still apply. */ 10944#ifdef __cplusplus 10945extern "C" 10946#endif 10947char dlopen (); 10948int 10949main () 10950{ 10951return dlopen (); 10952 ; 10953 return 0; 10954} 10955_ACEOF 10956if ac_fn_c_try_link "$LINENO"; then : 10957 ac_cv_lib_dl_dlopen=yes 10958else 10959 ac_cv_lib_dl_dlopen=no 10960fi 10961rm -f core conftest.err conftest.$ac_objext \ 10962 conftest$ac_exeext conftest.$ac_ext 10963LIBS=$ac_check_lib_save_LIBS 10964fi 10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10966$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10967if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10969else 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10971$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10972if ${ac_cv_lib_svld_dlopen+:} false; then : 10973 $as_echo_n "(cached) " >&6 10974else 10975 ac_check_lib_save_LIBS=$LIBS 10976LIBS="-lsvld $LIBS" 10977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10978/* end confdefs.h. */ 10979 10980/* Override any GCC internal prototype to avoid an error. 10981 Use char because int might match the return type of a GCC 10982 builtin and then its argument prototype would still apply. */ 10983#ifdef __cplusplus 10984extern "C" 10985#endif 10986char dlopen (); 10987int 10988main () 10989{ 10990return dlopen (); 10991 ; 10992 return 0; 10993} 10994_ACEOF 10995if ac_fn_c_try_link "$LINENO"; then : 10996 ac_cv_lib_svld_dlopen=yes 10997else 10998 ac_cv_lib_svld_dlopen=no 10999fi 11000rm -f core conftest.err conftest.$ac_objext \ 11001 conftest$ac_exeext conftest.$ac_ext 11002LIBS=$ac_check_lib_save_LIBS 11003fi 11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11005$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11006if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11008else 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11010$as_echo_n "checking for dld_link in -ldld... " >&6; } 11011if ${ac_cv_lib_dld_dld_link+:} false; then : 11012 $as_echo_n "(cached) " >&6 11013else 11014 ac_check_lib_save_LIBS=$LIBS 11015LIBS="-ldld $LIBS" 11016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11017/* end confdefs.h. */ 11018 11019/* Override any GCC internal prototype to avoid an error. 11020 Use char because int might match the return type of a GCC 11021 builtin and then its argument prototype would still apply. */ 11022#ifdef __cplusplus 11023extern "C" 11024#endif 11025char dld_link (); 11026int 11027main () 11028{ 11029return dld_link (); 11030 ; 11031 return 0; 11032} 11033_ACEOF 11034if ac_fn_c_try_link "$LINENO"; then : 11035 ac_cv_lib_dld_dld_link=yes 11036else 11037 ac_cv_lib_dld_dld_link=no 11038fi 11039rm -f core conftest.err conftest.$ac_objext \ 11040 conftest$ac_exeext conftest.$ac_ext 11041LIBS=$ac_check_lib_save_LIBS 11042fi 11043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11044$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11045if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11047fi 11048 11049 11050fi 11051 11052 11053fi 11054 11055 11056fi 11057 11058 11059fi 11060 11061 11062fi 11063 11064 ;; 11065 esac 11066 11067 if test "x$lt_cv_dlopen" != xno; then 11068 enable_dlopen=yes 11069 else 11070 enable_dlopen=no 11071 fi 11072 11073 case $lt_cv_dlopen in 11074 dlopen) 11075 save_CPPFLAGS="$CPPFLAGS" 11076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11077 11078 save_LDFLAGS="$LDFLAGS" 11079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11080 11081 save_LIBS="$LIBS" 11082 LIBS="$lt_cv_dlopen_libs $LIBS" 11083 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11085$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11086if ${lt_cv_dlopen_self+:} false; then : 11087 $as_echo_n "(cached) " >&6 11088else 11089 if test "$cross_compiling" = yes; then : 11090 lt_cv_dlopen_self=cross 11091else 11092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11093 lt_status=$lt_dlunknown 11094 cat > conftest.$ac_ext <<_LT_EOF 11095#line 11095 "configure" 11096#include "confdefs.h" 11097 11098#if HAVE_DLFCN_H 11099#include <dlfcn.h> 11100#endif 11101 11102#include <stdio.h> 11103 11104#ifdef RTLD_GLOBAL 11105# define LT_DLGLOBAL RTLD_GLOBAL 11106#else 11107# ifdef DL_GLOBAL 11108# define LT_DLGLOBAL DL_GLOBAL 11109# else 11110# define LT_DLGLOBAL 0 11111# endif 11112#endif 11113 11114/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11115 find out it does not work in some platform. */ 11116#ifndef LT_DLLAZY_OR_NOW 11117# ifdef RTLD_LAZY 11118# define LT_DLLAZY_OR_NOW RTLD_LAZY 11119# else 11120# ifdef DL_LAZY 11121# define LT_DLLAZY_OR_NOW DL_LAZY 11122# else 11123# ifdef RTLD_NOW 11124# define LT_DLLAZY_OR_NOW RTLD_NOW 11125# else 11126# ifdef DL_NOW 11127# define LT_DLLAZY_OR_NOW DL_NOW 11128# else 11129# define LT_DLLAZY_OR_NOW 0 11130# endif 11131# endif 11132# endif 11133# endif 11134#endif 11135 11136/* When -fvisbility=hidden is used, assume the code has been annotated 11137 correspondingly for the symbols needed. */ 11138#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11139void fnord () __attribute__((visibility("default"))); 11140#endif 11141 11142void fnord () { int i=42; } 11143int main () 11144{ 11145 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11146 int status = $lt_dlunknown; 11147 11148 if (self) 11149 { 11150 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11151 else 11152 { 11153 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11154 else puts (dlerror ()); 11155 } 11156 /* dlclose (self); */ 11157 } 11158 else 11159 puts (dlerror ()); 11160 11161 return status; 11162} 11163_LT_EOF 11164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11165 (eval $ac_link) 2>&5 11166 ac_status=$? 11167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11168 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11169 (./conftest; exit; ) >&5 2>/dev/null 11170 lt_status=$? 11171 case x$lt_status in 11172 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11173 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11174 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11175 esac 11176 else : 11177 # compilation failed 11178 lt_cv_dlopen_self=no 11179 fi 11180fi 11181rm -fr conftest* 11182 11183 11184fi 11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11186$as_echo "$lt_cv_dlopen_self" >&6; } 11187 11188 if test "x$lt_cv_dlopen_self" = xyes; then 11189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11191$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11192if ${lt_cv_dlopen_self_static+:} false; then : 11193 $as_echo_n "(cached) " >&6 11194else 11195 if test "$cross_compiling" = yes; then : 11196 lt_cv_dlopen_self_static=cross 11197else 11198 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11199 lt_status=$lt_dlunknown 11200 cat > conftest.$ac_ext <<_LT_EOF 11201#line 11201 "configure" 11202#include "confdefs.h" 11203 11204#if HAVE_DLFCN_H 11205#include <dlfcn.h> 11206#endif 11207 11208#include <stdio.h> 11209 11210#ifdef RTLD_GLOBAL 11211# define LT_DLGLOBAL RTLD_GLOBAL 11212#else 11213# ifdef DL_GLOBAL 11214# define LT_DLGLOBAL DL_GLOBAL 11215# else 11216# define LT_DLGLOBAL 0 11217# endif 11218#endif 11219 11220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11221 find out it does not work in some platform. */ 11222#ifndef LT_DLLAZY_OR_NOW 11223# ifdef RTLD_LAZY 11224# define LT_DLLAZY_OR_NOW RTLD_LAZY 11225# else 11226# ifdef DL_LAZY 11227# define LT_DLLAZY_OR_NOW DL_LAZY 11228# else 11229# ifdef RTLD_NOW 11230# define LT_DLLAZY_OR_NOW RTLD_NOW 11231# else 11232# ifdef DL_NOW 11233# define LT_DLLAZY_OR_NOW DL_NOW 11234# else 11235# define LT_DLLAZY_OR_NOW 0 11236# endif 11237# endif 11238# endif 11239# endif 11240#endif 11241 11242/* When -fvisbility=hidden is used, assume the code has been annotated 11243 correspondingly for the symbols needed. */ 11244#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11245void fnord () __attribute__((visibility("default"))); 11246#endif 11247 11248void fnord () { int i=42; } 11249int main () 11250{ 11251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11252 int status = $lt_dlunknown; 11253 11254 if (self) 11255 { 11256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11257 else 11258 { 11259 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11260 else puts (dlerror ()); 11261 } 11262 /* dlclose (self); */ 11263 } 11264 else 11265 puts (dlerror ()); 11266 11267 return status; 11268} 11269_LT_EOF 11270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11271 (eval $ac_link) 2>&5 11272 ac_status=$? 11273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11274 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11275 (./conftest; exit; ) >&5 2>/dev/null 11276 lt_status=$? 11277 case x$lt_status in 11278 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11279 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11280 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11281 esac 11282 else : 11283 # compilation failed 11284 lt_cv_dlopen_self_static=no 11285 fi 11286fi 11287rm -fr conftest* 11288 11289 11290fi 11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11292$as_echo "$lt_cv_dlopen_self_static" >&6; } 11293 fi 11294 11295 CPPFLAGS="$save_CPPFLAGS" 11296 LDFLAGS="$save_LDFLAGS" 11297 LIBS="$save_LIBS" 11298 ;; 11299 esac 11300 11301 case $lt_cv_dlopen_self in 11302 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11303 *) enable_dlopen_self=unknown ;; 11304 esac 11305 11306 case $lt_cv_dlopen_self_static in 11307 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11308 *) enable_dlopen_self_static=unknown ;; 11309 esac 11310fi 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328striplib= 11329old_striplib= 11330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11331$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11332if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11333 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11334 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11336$as_echo "yes" >&6; } 11337else 11338# FIXME - insert some real tests, host_os isn't really good enough 11339 case $host_os in 11340 darwin*) 11341 if test -n "$STRIP" ; then 11342 striplib="$STRIP -x" 11343 old_striplib="$STRIP -S" 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11345$as_echo "yes" >&6; } 11346 else 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11348$as_echo "no" >&6; } 11349 fi 11350 ;; 11351 *) 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11353$as_echo "no" >&6; } 11354 ;; 11355 esac 11356fi 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 # Report which library types will actually be built 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11371$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11373$as_echo "$can_build_shared" >&6; } 11374 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11376$as_echo_n "checking whether to build shared libraries... " >&6; } 11377 test "$can_build_shared" = "no" && enable_shared=no 11378 11379 # On AIX, shared libraries and static libraries use the same namespace, and 11380 # are all built from PIC. 11381 case $host_os in 11382 aix3*) 11383 test "$enable_shared" = yes && enable_static=no 11384 if test -n "$RANLIB"; then 11385 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11386 postinstall_cmds='$RANLIB $lib' 11387 fi 11388 ;; 11389 11390 aix[4-9]*) 11391 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11392 test "$enable_shared" = yes && enable_static=no 11393 fi 11394 ;; 11395 esac 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11397$as_echo "$enable_shared" >&6; } 11398 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11400$as_echo_n "checking whether to build static libraries... " >&6; } 11401 # Make sure either enable_shared or enable_static is yes. 11402 test "$enable_shared" = yes || enable_static=yes 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11404$as_echo "$enable_static" >&6; } 11405 11406 11407 11408 11409fi 11410ac_ext=c 11411ac_cpp='$CPP $CPPFLAGS' 11412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11414ac_compiler_gnu=$ac_cv_c_compiler_gnu 11415 11416CC="$lt_save_CC" 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 ac_config_commands="$ac_config_commands libtool" 11431 11432 11433 11434 11435# Only expand once: 11436 11437 11438 11439ac_checking= 11440. ${srcdir}/../bfd/development.sh 11441test "$development" = true && ac_checking=yes 11442# Check whether --enable-checking was given. 11443if test "${enable_checking+set}" = set; then : 11444 enableval=$enable_checking; case "${enableval}" in 11445 no|none) ac_checking= ;; 11446 *) ac_checking=yes ;; 11447esac 11448fi 11449if test x$ac_checking != x ; then 11450 11451$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 11452 11453fi 11454 11455# Check whether --enable-targets was given. 11456if test "${enable_targets+set}" = set; then : 11457 enableval=$enable_targets; case "${enableval}" in 11458 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 11459 ;; 11460 no) enable_targets= ;; 11461 *) enable_targets=$enableval ;; 11462esac 11463fi 11464 11465 11466# Set the 'development' global. 11467. $srcdir/../bfd/development.sh 11468 11469# Set acp_cpp_for_build variable 11470ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 11471 11472# Default set of GCC warnings to enable. 11473GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11474GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11475 11476# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479__GNUC__ 11480_ACEOF 11481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11482 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11483 11484else 11485 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 11486fi 11487rm -f conftest* 11488 11489 11490# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11491#cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11492#/* end confdefs.h. */ 11493#__GNUC__ 11494#_ACEOF 11495#if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11496# $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11497# 11498#else 11499# cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11500#/* end confdefs.h. */ 11501#__clang__ 11502#_ACEOF 11503#if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11504# $EGREP "^__clang__$" >/dev/null 2>&1; then : 11505# GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 11506#fi 11507#rm -f conftest* 11508 11509 11510# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 11511WARN_WRITE_STRINGS="" 11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11513/* end confdefs.h. */ 11514__GNUC__ 11515_ACEOF 11516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11517 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11518 11519else 11520 WARN_WRITE_STRINGS="-Wwrite-strings" 11521fi 11522rm -f conftest* 11523 11524 11525# Verify CC_FOR_BUILD to be compatible with warning flags 11526 11527# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11529/* end confdefs.h. */ 11530__GNUC__ 11531_ACEOF 11532if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11533 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11534 11535else 11536 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 11537fi 11538rm -f conftest* 11539 11540 11541# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11542#cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11543#/* end confdefs.h. */ 11544#__GNUC__ 11545#_ACEOF 11546#if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11547# $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11548# 11549#else 11550# cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11551#/* end confdefs.h. */ 11552#__clang__ 11553#_ACEOF 11554#if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11555# $EGREP "^__clang__$" >/dev/null 2>&1; then : 11556# GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 11557#fi 11558#rm -f conftest* 11559 11560 11561# Check whether --enable-werror was given. 11562if test "${enable_werror+set}" = set; then : 11563 enableval=$enable_werror; case "${enableval}" in 11564 yes | y) ERROR_ON_WARNING="yes" ;; 11565 no | n) ERROR_ON_WARNING="no" ;; 11566 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 11567 esac 11568fi 11569 11570 11571# Disable -Wformat by default when using gcc on mingw 11572case "${host}" in 11573 *-*-mingw32*) 11574 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 11575 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 11576 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 11577 fi 11578 ;; 11579 *) ;; 11580esac 11581 11582# Enable -Werror by default when using gcc. Turn it off for releases. 11583if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 11584 ERROR_ON_WARNING=yes 11585fi 11586 11587NO_WERROR= 11588if test "${ERROR_ON_WARNING}" = yes ; then 11589 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 11590 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 11591 NO_WERROR="-Wno-error" 11592fi 11593 11594if test "${GCC}" = yes ; then 11595 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11596 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 11597fi 11598 11599# Check whether --enable-build-warnings was given. 11600if test "${enable_build_warnings+set}" = set; then : 11601 enableval=$enable_build_warnings; case "${enableval}" in 11602 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11603 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 11604 no) if test "${GCC}" = yes ; then 11605 WARN_CFLAGS="-w" 11606 WARN_CFLAGS_FOR_BUILD="-w" 11607 fi;; 11608 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11609 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 11610 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 11611 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11612 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 11613 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 11614 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 11615 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 11616esac 11617fi 11618 11619 11620if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 11621 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 11622fi 11623 11624 11625 11626 11627 11628 11629 11630ac_config_headers="$ac_config_headers config.h:config.in" 11631 11632 11633# PR 14072 11634 11635 11636if test -z "$target" ; then 11637 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 11638fi 11639 11640 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11642$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11643 # Check whether --enable-maintainer-mode was given. 11644if test "${enable_maintainer_mode+set}" = set; then : 11645 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11646else 11647 USE_MAINTAINER_MODE=no 11648fi 11649 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11651$as_echo "$USE_MAINTAINER_MODE" >&6; } 11652 if test $USE_MAINTAINER_MODE = yes; then 11653 MAINTAINER_MODE_TRUE= 11654 MAINTAINER_MODE_FALSE='#' 11655else 11656 MAINTAINER_MODE_TRUE='#' 11657 MAINTAINER_MODE_FALSE= 11658fi 11659 11660 MAINT=$MAINTAINER_MODE_TRUE 11661 11662 11663 case ${build_alias} in 11664 "") build_noncanonical=${build} ;; 11665 *) build_noncanonical=${build_alias} ;; 11666esac 11667 11668 case ${host_alias} in 11669 "") host_noncanonical=${build_noncanonical} ;; 11670 *) host_noncanonical=${host_alias} ;; 11671esac 11672 11673 case ${target_alias} in 11674 "") target_noncanonical=${host_noncanonical} ;; 11675 *) target_noncanonical=${target_alias} ;; 11676esac 11677 11678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 11679$as_echo_n "checking whether to install libbfd... " >&6; } 11680 # Check whether --enable-install-libbfd was given. 11681if test "${enable_install_libbfd+set}" = set; then : 11682 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 11683else 11684 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 11685 install_libbfd_p=yes 11686 else 11687 install_libbfd_p=no 11688 fi 11689fi 11690 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 11692$as_echo "$install_libbfd_p" >&6; } 11693 if test $install_libbfd_p = yes; then 11694 INSTALL_LIBBFD_TRUE= 11695 INSTALL_LIBBFD_FALSE='#' 11696else 11697 INSTALL_LIBBFD_TRUE='#' 11698 INSTALL_LIBBFD_FALSE= 11699fi 11700 11701 # Need _noncanonical variables for this. 11702 11703 11704 11705 11706 # libbfd.a is a host library containing target dependent code 11707 bfdlibdir='$(libdir)' 11708 bfdincludedir='$(includedir)' 11709 if test "${host}" != "${target}"; then 11710 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 11711 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 11712 fi 11713 11714 11715 11716 11717 11718 11719 11720 11721# host-specific stuff: 11722 11723ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN" 11724 11725 MKINSTALLDIRS= 11726 if test -n "$ac_aux_dir"; then 11727 case "$ac_aux_dir" in 11728 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 11729 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 11730 esac 11731 fi 11732 if test -z "$MKINSTALLDIRS"; then 11733 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 11734 fi 11735 11736 11737 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11739$as_echo_n "checking whether NLS is requested... " >&6; } 11740 # Check whether --enable-nls was given. 11741if test "${enable_nls+set}" = set; then : 11742 enableval=$enable_nls; USE_NLS=$enableval 11743else 11744 USE_NLS=yes 11745fi 11746 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11748$as_echo "$USE_NLS" >&6; } 11749 11750 11751 11752 11753 11754 11755# Prepare PATH_SEPARATOR. 11756# The user is always right. 11757if test "${PATH_SEPARATOR+set}" != set; then 11758 echo "#! /bin/sh" >conf$$.sh 11759 echo "exit 0" >>conf$$.sh 11760 chmod +x conf$$.sh 11761 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11762 PATH_SEPARATOR=';' 11763 else 11764 PATH_SEPARATOR=: 11765 fi 11766 rm -f conf$$.sh 11767fi 11768 11769# Find out how to test for executable files. Don't use a zero-byte file, 11770# as systems may use methods other than mode bits to determine executability. 11771cat >conf$$.file <<_ASEOF 11772#! /bin/sh 11773exit 0 11774_ASEOF 11775chmod +x conf$$.file 11776if test -x conf$$.file >/dev/null 2>&1; then 11777 ac_executable_p="test -x" 11778else 11779 ac_executable_p="test -f" 11780fi 11781rm -f conf$$.file 11782 11783# Extract the first word of "msgfmt", so it can be a program name with args. 11784set dummy msgfmt; ac_word=$2 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11786$as_echo_n "checking for $ac_word... " >&6; } 11787if ${ac_cv_path_MSGFMT+:} false; then : 11788 $as_echo_n "(cached) " >&6 11789else 11790 case "$MSGFMT" in 11791 [\\/]* | ?:[\\/]*) 11792 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11793 ;; 11794 *) 11795 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11796 for ac_dir in $PATH; do 11797 IFS="$ac_save_IFS" 11798 test -z "$ac_dir" && ac_dir=. 11799 for ac_exec_ext in '' $ac_executable_extensions; do 11800 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11801 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 11802 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11803 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 11804 break 2 11805 fi 11806 fi 11807 done 11808 done 11809 IFS="$ac_save_IFS" 11810 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 11811 ;; 11812esac 11813fi 11814MSGFMT="$ac_cv_path_MSGFMT" 11815if test "$MSGFMT" != ":"; then 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11817$as_echo "$MSGFMT" >&6; } 11818else 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11820$as_echo "no" >&6; } 11821fi 11822 11823 # Extract the first word of "gmsgfmt", so it can be a program name with args. 11824set dummy gmsgfmt; ac_word=$2 11825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11826$as_echo_n "checking for $ac_word... " >&6; } 11827if ${ac_cv_path_GMSGFMT+:} false; then : 11828 $as_echo_n "(cached) " >&6 11829else 11830 case $GMSGFMT in 11831 [\\/]* | ?:[\\/]*) 11832 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 11833 ;; 11834 *) 11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11836for as_dir in $PATH 11837do 11838 IFS=$as_save_IFS 11839 test -z "$as_dir" && as_dir=. 11840 for ac_exec_ext in '' $ac_executable_extensions; do 11841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11842 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11844 break 2 11845 fi 11846done 11847 done 11848IFS=$as_save_IFS 11849 11850 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 11851 ;; 11852esac 11853fi 11854GMSGFMT=$ac_cv_path_GMSGFMT 11855if test -n "$GMSGFMT"; then 11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 11857$as_echo "$GMSGFMT" >&6; } 11858else 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11860$as_echo "no" >&6; } 11861fi 11862 11863 11864 11865 11866# Prepare PATH_SEPARATOR. 11867# The user is always right. 11868if test "${PATH_SEPARATOR+set}" != set; then 11869 echo "#! /bin/sh" >conf$$.sh 11870 echo "exit 0" >>conf$$.sh 11871 chmod +x conf$$.sh 11872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11873 PATH_SEPARATOR=';' 11874 else 11875 PATH_SEPARATOR=: 11876 fi 11877 rm -f conf$$.sh 11878fi 11879 11880# Find out how to test for executable files. Don't use a zero-byte file, 11881# as systems may use methods other than mode bits to determine executability. 11882cat >conf$$.file <<_ASEOF 11883#! /bin/sh 11884exit 0 11885_ASEOF 11886chmod +x conf$$.file 11887if test -x conf$$.file >/dev/null 2>&1; then 11888 ac_executable_p="test -x" 11889else 11890 ac_executable_p="test -f" 11891fi 11892rm -f conf$$.file 11893 11894# Extract the first word of "xgettext", so it can be a program name with args. 11895set dummy xgettext; ac_word=$2 11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11897$as_echo_n "checking for $ac_word... " >&6; } 11898if ${ac_cv_path_XGETTEXT+:} false; then : 11899 $as_echo_n "(cached) " >&6 11900else 11901 case "$XGETTEXT" in 11902 [\\/]* | ?:[\\/]*) 11903 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 11904 ;; 11905 *) 11906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11907 for ac_dir in $PATH; do 11908 IFS="$ac_save_IFS" 11909 test -z "$ac_dir" && ac_dir=. 11910 for ac_exec_ext in '' $ac_executable_extensions; do 11911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11912 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 11913 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11914 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 11915 break 2 11916 fi 11917 fi 11918 done 11919 done 11920 IFS="$ac_save_IFS" 11921 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 11922 ;; 11923esac 11924fi 11925XGETTEXT="$ac_cv_path_XGETTEXT" 11926if test "$XGETTEXT" != ":"; then 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 11928$as_echo "$XGETTEXT" >&6; } 11929else 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11931$as_echo "no" >&6; } 11932fi 11933 11934 rm -f messages.po 11935 11936 11937# Prepare PATH_SEPARATOR. 11938# The user is always right. 11939if test "${PATH_SEPARATOR+set}" != set; then 11940 echo "#! /bin/sh" >conf$$.sh 11941 echo "exit 0" >>conf$$.sh 11942 chmod +x conf$$.sh 11943 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11944 PATH_SEPARATOR=';' 11945 else 11946 PATH_SEPARATOR=: 11947 fi 11948 rm -f conf$$.sh 11949fi 11950 11951# Find out how to test for executable files. Don't use a zero-byte file, 11952# as systems may use methods other than mode bits to determine executability. 11953cat >conf$$.file <<_ASEOF 11954#! /bin/sh 11955exit 0 11956_ASEOF 11957chmod +x conf$$.file 11958if test -x conf$$.file >/dev/null 2>&1; then 11959 ac_executable_p="test -x" 11960else 11961 ac_executable_p="test -f" 11962fi 11963rm -f conf$$.file 11964 11965# Extract the first word of "msgmerge", so it can be a program name with args. 11966set dummy msgmerge; ac_word=$2 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11968$as_echo_n "checking for $ac_word... " >&6; } 11969if ${ac_cv_path_MSGMERGE+:} false; then : 11970 $as_echo_n "(cached) " >&6 11971else 11972 case "$MSGMERGE" in 11973 [\\/]* | ?:[\\/]*) 11974 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 11975 ;; 11976 *) 11977 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11978 for ac_dir in $PATH; do 11979 IFS="$ac_save_IFS" 11980 test -z "$ac_dir" && ac_dir=. 11981 for ac_exec_ext in '' $ac_executable_extensions; do 11982 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11983 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 11984 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 11985 break 2 11986 fi 11987 fi 11988 done 11989 done 11990 IFS="$ac_save_IFS" 11991 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 11992 ;; 11993esac 11994fi 11995MSGMERGE="$ac_cv_path_MSGMERGE" 11996if test "$MSGMERGE" != ":"; then 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 11998$as_echo "$MSGMERGE" >&6; } 11999else 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12001$as_echo "no" >&6; } 12002fi 12003 12004 12005 if test "$GMSGFMT" != ":"; then 12006 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12007 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12008 : ; 12009 else 12010 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 12012$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 12013 GMSGFMT=":" 12014 fi 12015 fi 12016 12017 if test "$XGETTEXT" != ":"; then 12018 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12019 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12020 : ; 12021 else 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 12023$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 12024 XGETTEXT=":" 12025 fi 12026 rm -f messages.po 12027 fi 12028 12029 ac_config_commands="$ac_config_commands default-1" 12030 12031 12032 12033 if test "X$prefix" = "XNONE"; then 12034 acl_final_prefix="$ac_default_prefix" 12035 else 12036 acl_final_prefix="$prefix" 12037 fi 12038 if test "X$exec_prefix" = "XNONE"; then 12039 acl_final_exec_prefix='${prefix}' 12040 else 12041 acl_final_exec_prefix="$exec_prefix" 12042 fi 12043 acl_save_prefix="$prefix" 12044 prefix="$acl_final_prefix" 12045 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 12046 prefix="$acl_save_prefix" 12047 12048 12049# Check whether --with-gnu-ld was given. 12050if test "${with_gnu_ld+set}" = set; then : 12051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12052else 12053 with_gnu_ld=no 12054fi 12055 12056# Prepare PATH_SEPARATOR. 12057# The user is always right. 12058if test "${PATH_SEPARATOR+set}" != set; then 12059 echo "#! /bin/sh" >conf$$.sh 12060 echo "exit 0" >>conf$$.sh 12061 chmod +x conf$$.sh 12062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12063 PATH_SEPARATOR=';' 12064 else 12065 PATH_SEPARATOR=: 12066 fi 12067 rm -f conf$$.sh 12068fi 12069ac_prog=ld 12070if test "$GCC" = yes; then 12071 # Check if gcc -print-prog-name=ld gives a path. 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 12073$as_echo_n "checking for ld used by GCC... " >&6; } 12074 case $host in 12075 *-*-mingw*) 12076 # gcc leaves a trailing carriage return which upsets mingw 12077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12078 *) 12079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12080 esac 12081 case $ac_prog in 12082 # Accept absolute paths. 12083 [\\/]* | [A-Za-z]:[\\/]*) 12084 re_direlt='/[^/][^/]*/\.\./' 12085 # Canonicalize the path of ld 12086 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 12087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12088 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 12089 done 12090 test -z "$LD" && LD="$ac_prog" 12091 ;; 12092 "") 12093 # If it fails, then pretend we aren't using GCC. 12094 ac_prog=ld 12095 ;; 12096 *) 12097 # If it is relative, then search for the first ld in PATH. 12098 with_gnu_ld=unknown 12099 ;; 12100 esac 12101elif test "$with_gnu_ld" = yes; then 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12103$as_echo_n "checking for GNU ld... " >&6; } 12104else 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12106$as_echo_n "checking for non-GNU ld... " >&6; } 12107fi 12108if ${acl_cv_path_LD+:} false; then : 12109 $as_echo_n "(cached) " >&6 12110else 12111 if test -z "$LD"; then 12112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 12113 for ac_dir in $PATH; do 12114 test -z "$ac_dir" && ac_dir=. 12115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12116 acl_cv_path_LD="$ac_dir/$ac_prog" 12117 # Check to see if the program is GNU ld. I'd rather use --version, 12118 # but apparently some GNU ld's only accept -v. 12119 # Break only if it was the GNU/non-GNU ld that we prefer. 12120 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 12121 test "$with_gnu_ld" != no && break 12122 else 12123 test "$with_gnu_ld" != yes && break 12124 fi 12125 fi 12126 done 12127 IFS="$ac_save_ifs" 12128else 12129 acl_cv_path_LD="$LD" # Let the user override the test with a path. 12130fi 12131fi 12132 12133LD="$acl_cv_path_LD" 12134if test -n "$LD"; then 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12136$as_echo "$LD" >&6; } 12137else 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12139$as_echo "no" >&6; } 12140fi 12141test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12143$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12144if ${acl_cv_prog_gnu_ld+:} false; then : 12145 $as_echo_n "(cached) " >&6 12146else 12147 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12148if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 12149 acl_cv_prog_gnu_ld=yes 12150else 12151 acl_cv_prog_gnu_ld=no 12152fi 12153fi 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 12155$as_echo "$acl_cv_prog_gnu_ld" >&6; } 12156with_gnu_ld=$acl_cv_prog_gnu_ld 12157 12158 12159 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 12161$as_echo_n "checking for shared library run path origin... " >&6; } 12162if ${acl_cv_rpath+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 12166 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 12167 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 12168 . ./conftest.sh 12169 rm -f ./conftest.sh 12170 acl_cv_rpath=done 12171 12172fi 12173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 12174$as_echo "$acl_cv_rpath" >&6; } 12175 wl="$acl_cv_wl" 12176 libext="$acl_cv_libext" 12177 shlibext="$acl_cv_shlibext" 12178 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 12179 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 12180 hardcode_direct="$acl_cv_hardcode_direct" 12181 hardcode_minus_L="$acl_cv_hardcode_minus_L" 12182 # Check whether --enable-rpath was given. 12183if test "${enable_rpath+set}" = set; then : 12184 enableval=$enable_rpath; : 12185else 12186 enable_rpath=yes 12187fi 12188 12189 12190 12191 12192 12193 12194 12195 12196 use_additional=yes 12197 12198 acl_save_prefix="$prefix" 12199 prefix="$acl_final_prefix" 12200 acl_save_exec_prefix="$exec_prefix" 12201 exec_prefix="$acl_final_exec_prefix" 12202 12203 eval additional_includedir=\"$includedir\" 12204 eval additional_libdir=\"$libdir\" 12205 12206 exec_prefix="$acl_save_exec_prefix" 12207 prefix="$acl_save_prefix" 12208 12209 12210# Check whether --with-libiconv-prefix was given. 12211if test "${with_libiconv_prefix+set}" = set; then : 12212 withval=$with_libiconv_prefix; 12213 if test "X$withval" = "Xno"; then 12214 use_additional=no 12215 else 12216 if test "X$withval" = "X"; then 12217 12218 acl_save_prefix="$prefix" 12219 prefix="$acl_final_prefix" 12220 acl_save_exec_prefix="$exec_prefix" 12221 exec_prefix="$acl_final_exec_prefix" 12222 12223 eval additional_includedir=\"$includedir\" 12224 eval additional_libdir=\"$libdir\" 12225 12226 exec_prefix="$acl_save_exec_prefix" 12227 prefix="$acl_save_prefix" 12228 12229 else 12230 additional_includedir="$withval/include" 12231 additional_libdir="$withval/lib" 12232 fi 12233 fi 12234 12235fi 12236 12237 12238# Check whether --with-libiconv-type was given. 12239if test "${with_libiconv_type+set}" = set; then : 12240 withval=$with_libiconv_type; with_libiconv_type=$withval 12241else 12242 with_libiconv_type=auto 12243fi 12244 12245 lib_type=`eval echo \$with_libiconv_type` 12246 12247 LIBICONV= 12248 LTLIBICONV= 12249 INCICONV= 12250 rpathdirs= 12251 ltrpathdirs= 12252 names_already_handled= 12253 names_next_round='iconv ' 12254 while test -n "$names_next_round"; do 12255 names_this_round="$names_next_round" 12256 names_next_round= 12257 for name in $names_this_round; do 12258 already_handled= 12259 for n in $names_already_handled; do 12260 if test "$n" = "$name"; then 12261 already_handled=yes 12262 break 12263 fi 12264 done 12265 if test -z "$already_handled"; then 12266 names_already_handled="$names_already_handled $name" 12267 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12268 eval value=\"\$HAVE_LIB$uppername\" 12269 if test -n "$value"; then 12270 if test "$value" = yes; then 12271 eval value=\"\$LIB$uppername\" 12272 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 12273 eval value=\"\$LTLIB$uppername\" 12274 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 12275 else 12276 : 12277 fi 12278 else 12279 found_dir= 12280 found_la= 12281 found_so= 12282 found_a= 12283 if test $use_additional = yes; then 12284 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12285 found_dir="$additional_libdir" 12286 found_so="$additional_libdir/lib$name.$shlibext" 12287 if test -f "$additional_libdir/lib$name.la"; then 12288 found_la="$additional_libdir/lib$name.la" 12289 fi 12290 elif test x$lib_type != xshared; then 12291 if test -f "$additional_libdir/lib$name.$libext"; then 12292 found_dir="$additional_libdir" 12293 found_a="$additional_libdir/lib$name.$libext" 12294 if test -f "$additional_libdir/lib$name.la"; then 12295 found_la="$additional_libdir/lib$name.la" 12296 fi 12297 fi 12298 fi 12299 fi 12300 if test "X$found_dir" = "X"; then 12301 for x in $LDFLAGS $LTLIBICONV; do 12302 12303 acl_save_prefix="$prefix" 12304 prefix="$acl_final_prefix" 12305 acl_save_exec_prefix="$exec_prefix" 12306 exec_prefix="$acl_final_exec_prefix" 12307 eval x=\"$x\" 12308 exec_prefix="$acl_save_exec_prefix" 12309 prefix="$acl_save_prefix" 12310 12311 case "$x" in 12312 -L*) 12313 dir=`echo "X$x" | sed -e 's/^X-L//'` 12314 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12315 found_dir="$dir" 12316 found_so="$dir/lib$name.$shlibext" 12317 if test -f "$dir/lib$name.la"; then 12318 found_la="$dir/lib$name.la" 12319 fi 12320 elif test x$lib_type != xshared; then 12321 if test -f "$dir/lib$name.$libext"; then 12322 found_dir="$dir" 12323 found_a="$dir/lib$name.$libext" 12324 if test -f "$dir/lib$name.la"; then 12325 found_la="$dir/lib$name.la" 12326 fi 12327 fi 12328 fi 12329 ;; 12330 esac 12331 if test "X$found_dir" != "X"; then 12332 break 12333 fi 12334 done 12335 fi 12336 if test "X$found_dir" != "X"; then 12337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 12338 if test "X$found_so" != "X"; then 12339 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12340 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12341 else 12342 haveit= 12343 for x in $ltrpathdirs; do 12344 if test "X$x" = "X$found_dir"; then 12345 haveit=yes 12346 break 12347 fi 12348 done 12349 if test -z "$haveit"; then 12350 ltrpathdirs="$ltrpathdirs $found_dir" 12351 fi 12352 if test "$hardcode_direct" = yes; then 12353 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12354 else 12355 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12356 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12357 haveit= 12358 for x in $rpathdirs; do 12359 if test "X$x" = "X$found_dir"; then 12360 haveit=yes 12361 break 12362 fi 12363 done 12364 if test -z "$haveit"; then 12365 rpathdirs="$rpathdirs $found_dir" 12366 fi 12367 else 12368 haveit= 12369 for x in $LDFLAGS $LIBICONV; do 12370 12371 acl_save_prefix="$prefix" 12372 prefix="$acl_final_prefix" 12373 acl_save_exec_prefix="$exec_prefix" 12374 exec_prefix="$acl_final_exec_prefix" 12375 eval x=\"$x\" 12376 exec_prefix="$acl_save_exec_prefix" 12377 prefix="$acl_save_prefix" 12378 12379 if test "X$x" = "X-L$found_dir"; then 12380 haveit=yes 12381 break 12382 fi 12383 done 12384 if test -z "$haveit"; then 12385 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 12386 fi 12387 if test "$hardcode_minus_L" != no; then 12388 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12389 else 12390 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12391 fi 12392 fi 12393 fi 12394 fi 12395 else 12396 if test "X$found_a" != "X"; then 12397 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 12398 else 12399 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 12400 fi 12401 fi 12402 additional_includedir= 12403 case "$found_dir" in 12404 */lib | */lib/) 12405 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12406 additional_includedir="$basedir/include" 12407 ;; 12408 esac 12409 if test "X$additional_includedir" != "X"; then 12410 if test "X$additional_includedir" != "X/usr/include"; then 12411 haveit= 12412 if test "X$additional_includedir" = "X/usr/local/include"; then 12413 if test -n "$GCC"; then 12414 case $host_os in 12415 linux*) haveit=yes;; 12416 esac 12417 fi 12418 fi 12419 if test -z "$haveit"; then 12420 for x in $CPPFLAGS $INCICONV; do 12421 12422 acl_save_prefix="$prefix" 12423 prefix="$acl_final_prefix" 12424 acl_save_exec_prefix="$exec_prefix" 12425 exec_prefix="$acl_final_exec_prefix" 12426 eval x=\"$x\" 12427 exec_prefix="$acl_save_exec_prefix" 12428 prefix="$acl_save_prefix" 12429 12430 if test "X$x" = "X-I$additional_includedir"; then 12431 haveit=yes 12432 break 12433 fi 12434 done 12435 if test -z "$haveit"; then 12436 if test -d "$additional_includedir"; then 12437 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 12438 fi 12439 fi 12440 fi 12441 fi 12442 fi 12443 if test -n "$found_la"; then 12444 save_libdir="$libdir" 12445 case "$found_la" in 12446 */* | *\\*) . "$found_la" ;; 12447 *) . "./$found_la" ;; 12448 esac 12449 libdir="$save_libdir" 12450 for dep in $dependency_libs; do 12451 case "$dep" in 12452 -L*) 12453 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12454 if test "X$additional_libdir" != "X/usr/lib"; then 12455 haveit= 12456 if test "X$additional_libdir" = "X/usr/local/lib"; then 12457 if test -n "$GCC"; then 12458 case $host_os in 12459 linux*) haveit=yes;; 12460 esac 12461 fi 12462 fi 12463 if test -z "$haveit"; then 12464 haveit= 12465 for x in $LDFLAGS $LIBICONV; do 12466 12467 acl_save_prefix="$prefix" 12468 prefix="$acl_final_prefix" 12469 acl_save_exec_prefix="$exec_prefix" 12470 exec_prefix="$acl_final_exec_prefix" 12471 eval x=\"$x\" 12472 exec_prefix="$acl_save_exec_prefix" 12473 prefix="$acl_save_prefix" 12474 12475 if test "X$x" = "X-L$additional_libdir"; then 12476 haveit=yes 12477 break 12478 fi 12479 done 12480 if test -z "$haveit"; then 12481 if test -d "$additional_libdir"; then 12482 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 12483 fi 12484 fi 12485 haveit= 12486 for x in $LDFLAGS $LTLIBICONV; do 12487 12488 acl_save_prefix="$prefix" 12489 prefix="$acl_final_prefix" 12490 acl_save_exec_prefix="$exec_prefix" 12491 exec_prefix="$acl_final_exec_prefix" 12492 eval x=\"$x\" 12493 exec_prefix="$acl_save_exec_prefix" 12494 prefix="$acl_save_prefix" 12495 12496 if test "X$x" = "X-L$additional_libdir"; then 12497 haveit=yes 12498 break 12499 fi 12500 done 12501 if test -z "$haveit"; then 12502 if test -d "$additional_libdir"; then 12503 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 12504 fi 12505 fi 12506 fi 12507 fi 12508 ;; 12509 -R*) 12510 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12511 if test "$enable_rpath" != no; then 12512 haveit= 12513 for x in $rpathdirs; do 12514 if test "X$x" = "X$dir"; then 12515 haveit=yes 12516 break 12517 fi 12518 done 12519 if test -z "$haveit"; then 12520 rpathdirs="$rpathdirs $dir" 12521 fi 12522 haveit= 12523 for x in $ltrpathdirs; do 12524 if test "X$x" = "X$dir"; then 12525 haveit=yes 12526 break 12527 fi 12528 done 12529 if test -z "$haveit"; then 12530 ltrpathdirs="$ltrpathdirs $dir" 12531 fi 12532 fi 12533 ;; 12534 -l*) 12535 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12536 ;; 12537 *.la) 12538 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12539 ;; 12540 *) 12541 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 12542 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 12543 ;; 12544 esac 12545 done 12546 fi 12547 else 12548 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 12549 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 12551 else 12552 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 12553 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 12554 fi 12555 fi 12556 fi 12557 fi 12558 done 12559 done 12560 if test "X$rpathdirs" != "X"; then 12561 if test -n "$hardcode_libdir_separator"; then 12562 alldirs= 12563 for found_dir in $rpathdirs; do 12564 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 12565 done 12566 acl_save_libdir="$libdir" 12567 libdir="$alldirs" 12568 eval flag=\"$hardcode_libdir_flag_spec\" 12569 libdir="$acl_save_libdir" 12570 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12571 else 12572 for found_dir in $rpathdirs; do 12573 acl_save_libdir="$libdir" 12574 libdir="$found_dir" 12575 eval flag=\"$hardcode_libdir_flag_spec\" 12576 libdir="$acl_save_libdir" 12577 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12578 done 12579 fi 12580 fi 12581 if test "X$ltrpathdirs" != "X"; then 12582 for found_dir in $ltrpathdirs; do 12583 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 12584 done 12585 fi 12586 12587 12588 12589 12590 12591if test -f ../gettext/uninstalled-config.sh; then 12592 relative_builddir='$(top_builddir)/../gettext' 12593 . ../gettext/uninstalled-config.sh 12594else 12595 # The sister gettext directory doesn't exist and won't collect information on 12596 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 12621$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 12622if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 gt_save_LIBS="$LIBS" 12626 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12628/* end confdefs.h. */ 12629#include <CoreFoundation/CFPreferences.h> 12630int 12631main () 12632{ 12633CFPreferencesCopyAppValue(NULL, NULL) 12634 ; 12635 return 0; 12636} 12637_ACEOF 12638if ac_fn_c_try_link "$LINENO"; then : 12639 gt_cv_func_CFPreferencesCopyAppValue=yes 12640else 12641 gt_cv_func_CFPreferencesCopyAppValue=no 12642fi 12643rm -f core conftest.err conftest.$ac_objext \ 12644 conftest$ac_exeext conftest.$ac_ext 12645 LIBS="$gt_save_LIBS" 12646fi 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 12648$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 12649 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 12650 12651$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 12652 12653 fi 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 12655$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 12656if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 12657 $as_echo_n "(cached) " >&6 12658else 12659 gt_save_LIBS="$LIBS" 12660 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12662/* end confdefs.h. */ 12663#include <CoreFoundation/CFLocale.h> 12664int 12665main () 12666{ 12667CFLocaleCopyPreferredLanguages(); 12668 ; 12669 return 0; 12670} 12671_ACEOF 12672if ac_fn_c_try_link "$LINENO"; then : 12673 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 12674else 12675 gt_cv_func_CFLocaleCopyPreferredLanguages=no 12676fi 12677rm -f core conftest.err conftest.$ac_objext \ 12678 conftest$ac_exeext conftest.$ac_ext 12679 LIBS="$gt_save_LIBS" 12680fi 12681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 12682$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 12683 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12684 12685$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 12686 12687 fi 12688 INTL_MACOSX_LIBS= 12689 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 12690 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12691 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 12692 fi 12693 12694 12695 12696 12697 12698 12699 LIBINTL= 12700 LTLIBINTL= 12701 POSUB= 12702 12703 case " $gt_needs " in 12704 *" need-formatstring-macros "*) gt_api_version=3 ;; 12705 *" need-ngettext "*) gt_api_version=2 ;; 12706 *) gt_api_version=1 ;; 12707 esac 12708 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 12709 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 12710 12711 if test "$USE_NLS" = "yes"; then 12712 gt_use_preinstalled_gnugettext=no 12713 12714 12715 if test $gt_api_version -ge 3; then 12716 gt_revision_test_code=' 12717#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12718#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 12719#endif 12720typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 12721' 12722 else 12723 gt_revision_test_code= 12724 fi 12725 if test $gt_api_version -ge 2; then 12726 gt_expression_test_code=' + * ngettext ("", "", 0)' 12727 else 12728 gt_expression_test_code= 12729 fi 12730 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 12732$as_echo_n "checking for GNU gettext in libc... " >&6; } 12733if eval \${$gt_func_gnugettext_libc+:} false; then : 12734 $as_echo_n "(cached) " >&6 12735else 12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12737/* end confdefs.h. */ 12738 12739#include <libintl.h> 12740#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12741extern int _nl_msg_cat_cntr; 12742extern int *_nl_domain_bindings; 12743#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 12744#else 12745#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 12746#endif 12747$gt_revision_test_code 12748 12749int 12750main () 12751{ 12752 12753bindtextdomain ("", ""); 12754return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 12755 12756 ; 12757 return 0; 12758} 12759_ACEOF 12760if ac_fn_c_try_link "$LINENO"; then : 12761 eval "$gt_func_gnugettext_libc=yes" 12762else 12763 eval "$gt_func_gnugettext_libc=no" 12764fi 12765rm -f core conftest.err conftest.$ac_objext \ 12766 conftest$ac_exeext conftest.$ac_ext 12767fi 12768eval ac_res=\$$gt_func_gnugettext_libc 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12770$as_echo "$ac_res" >&6; } 12771 12772 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 12773 12774 12775 12776 12777 12778 am_save_CPPFLAGS="$CPPFLAGS" 12779 12780 for element in $INCICONV; do 12781 haveit= 12782 for x in $CPPFLAGS; do 12783 12784 acl_save_prefix="$prefix" 12785 prefix="$acl_final_prefix" 12786 acl_save_exec_prefix="$exec_prefix" 12787 exec_prefix="$acl_final_exec_prefix" 12788 eval x=\"$x\" 12789 exec_prefix="$acl_save_exec_prefix" 12790 prefix="$acl_save_prefix" 12791 12792 if test "X$x" = "X$element"; then 12793 haveit=yes 12794 break 12795 fi 12796 done 12797 if test -z "$haveit"; then 12798 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12799 fi 12800 done 12801 12802 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 12804$as_echo_n "checking for iconv... " >&6; } 12805if ${am_cv_func_iconv+:} false; then : 12806 $as_echo_n "(cached) " >&6 12807else 12808 12809 am_cv_func_iconv="no, consider installing GNU libiconv" 12810 am_cv_lib_iconv=no 12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12812/* end confdefs.h. */ 12813 12814#include <stdlib.h> 12815#include <iconv.h> 12816 12817int 12818main () 12819{ 12820iconv_t cd = iconv_open("",""); 12821 iconv(cd,NULL,NULL,NULL,NULL); 12822 iconv_close(cd); 12823 ; 12824 return 0; 12825} 12826_ACEOF 12827if ac_fn_c_try_link "$LINENO"; then : 12828 am_cv_func_iconv=yes 12829fi 12830rm -f core conftest.err conftest.$ac_objext \ 12831 conftest$ac_exeext conftest.$ac_ext 12832 if test "$am_cv_func_iconv" != yes; then 12833 am_save_LIBS="$LIBS" 12834 LIBS="$LIBS $LIBICONV" 12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12836/* end confdefs.h. */ 12837 12838#include <stdlib.h> 12839#include <iconv.h> 12840 12841int 12842main () 12843{ 12844iconv_t cd = iconv_open("",""); 12845 iconv(cd,NULL,NULL,NULL,NULL); 12846 iconv_close(cd); 12847 ; 12848 return 0; 12849} 12850_ACEOF 12851if ac_fn_c_try_link "$LINENO"; then : 12852 am_cv_lib_iconv=yes 12853 am_cv_func_iconv=yes 12854fi 12855rm -f core conftest.err conftest.$ac_objext \ 12856 conftest$ac_exeext conftest.$ac_ext 12857 LIBS="$am_save_LIBS" 12858 fi 12859 12860fi 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 12862$as_echo "$am_cv_func_iconv" >&6; } 12863 if test "$am_cv_func_iconv" = yes; then 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 12865$as_echo_n "checking for working iconv... " >&6; } 12866if ${am_cv_func_iconv_works+:} false; then : 12867 $as_echo_n "(cached) " >&6 12868else 12869 12870 am_save_LIBS="$LIBS" 12871 if test $am_cv_lib_iconv = yes; then 12872 LIBS="$LIBS $LIBICONV" 12873 fi 12874 am_cv_func_iconv_works=no 12875 for ac_iconv_const in '' 'const'; do 12876 if test "$cross_compiling" = yes; then : 12877 case "$host_os" in 12878 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 12879 *) am_cv_func_iconv_works="guessing yes" ;; 12880 esac 12881else 12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12883/* end confdefs.h. */ 12884 12885#include <iconv.h> 12886#include <string.h> 12887 12888#ifndef ICONV_CONST 12889# define ICONV_CONST $ac_iconv_const 12890#endif 12891 12892int 12893main () 12894{ 12895int result = 0; 12896 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 12897 successful returns. This is even documented in 12898 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 12899 { 12900 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 12901 if (cd_utf8_to_88591 != (iconv_t)(-1)) 12902 { 12903 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 12904 char buf[10]; 12905 ICONV_CONST char *inptr = input; 12906 size_t inbytesleft = strlen (input); 12907 char *outptr = buf; 12908 size_t outbytesleft = sizeof (buf); 12909 size_t res = iconv (cd_utf8_to_88591, 12910 &inptr, &inbytesleft, 12911 &outptr, &outbytesleft); 12912 if (res == 0) 12913 result |= 1; 12914 iconv_close (cd_utf8_to_88591); 12915 } 12916 } 12917 /* Test against Solaris 10 bug: Failures are not distinguishable from 12918 successful returns. */ 12919 { 12920 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 12921 if (cd_ascii_to_88591 != (iconv_t)(-1)) 12922 { 12923 static ICONV_CONST char input[] = "\263"; 12924 char buf[10]; 12925 ICONV_CONST char *inptr = input; 12926 size_t inbytesleft = strlen (input); 12927 char *outptr = buf; 12928 size_t outbytesleft = sizeof (buf); 12929 size_t res = iconv (cd_ascii_to_88591, 12930 &inptr, &inbytesleft, 12931 &outptr, &outbytesleft); 12932 if (res == 0) 12933 result |= 2; 12934 iconv_close (cd_ascii_to_88591); 12935 } 12936 } 12937 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 12938 { 12939 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 12940 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12941 { 12942 static ICONV_CONST char input[] = "\304"; 12943 static char buf[2] = { (char)0xDE, (char)0xAD }; 12944 ICONV_CONST char *inptr = input; 12945 size_t inbytesleft = 1; 12946 char *outptr = buf; 12947 size_t outbytesleft = 1; 12948 size_t res = iconv (cd_88591_to_utf8, 12949 &inptr, &inbytesleft, 12950 &outptr, &outbytesleft); 12951 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 12952 result |= 4; 12953 iconv_close (cd_88591_to_utf8); 12954 } 12955 } 12956#if 0 /* This bug could be worked around by the caller. */ 12957 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 12958 { 12959 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 12960 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12961 { 12962 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 12963 char buf[50]; 12964 ICONV_CONST char *inptr = input; 12965 size_t inbytesleft = strlen (input); 12966 char *outptr = buf; 12967 size_t outbytesleft = sizeof (buf); 12968 size_t res = iconv (cd_88591_to_utf8, 12969 &inptr, &inbytesleft, 12970 &outptr, &outbytesleft); 12971 if ((int)res > 0) 12972 result |= 8; 12973 iconv_close (cd_88591_to_utf8); 12974 } 12975 } 12976#endif 12977 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 12978 provided. */ 12979 { 12980 /* Try standardized names. */ 12981 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 12982 /* Try IRIX, OSF/1 names. */ 12983 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 12984 /* Try AIX names. */ 12985 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 12986 /* Try HP-UX names. */ 12987 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 12988 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 12989 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 12990 result |= 16; 12991 if (cd1 != (iconv_t)(-1)) 12992 iconv_close (cd1); 12993 if (cd2 != (iconv_t)(-1)) 12994 iconv_close (cd2); 12995 if (cd3 != (iconv_t)(-1)) 12996 iconv_close (cd3); 12997 if (cd4 != (iconv_t)(-1)) 12998 iconv_close (cd4); 12999 } 13000 return result; 13001 13002 ; 13003 return 0; 13004} 13005_ACEOF 13006if ac_fn_c_try_run "$LINENO"; then : 13007 am_cv_func_iconv_works=yes 13008fi 13009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13010 conftest.$ac_objext conftest.beam conftest.$ac_ext 13011fi 13012 13013 test "$am_cv_func_iconv_works" = no || break 13014 done 13015 LIBS="$am_save_LIBS" 13016 13017fi 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 13019$as_echo "$am_cv_func_iconv_works" >&6; } 13020 case "$am_cv_func_iconv_works" in 13021 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 13022 *) am_func_iconv=yes ;; 13023 esac 13024 else 13025 am_func_iconv=no am_cv_lib_iconv=no 13026 fi 13027 if test "$am_func_iconv" = yes; then 13028 13029$as_echo "#define HAVE_ICONV 1" >>confdefs.h 13030 13031 fi 13032 if test "$am_cv_lib_iconv" = yes; then 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 13034$as_echo_n "checking how to link with libiconv... " >&6; } 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 13036$as_echo "$LIBICONV" >&6; } 13037 else 13038 CPPFLAGS="$am_save_CPPFLAGS" 13039 LIBICONV= 13040 LTLIBICONV= 13041 fi 13042 13043 13044 13045 13046 13047 13048 use_additional=yes 13049 13050 acl_save_prefix="$prefix" 13051 prefix="$acl_final_prefix" 13052 acl_save_exec_prefix="$exec_prefix" 13053 exec_prefix="$acl_final_exec_prefix" 13054 13055 eval additional_includedir=\"$includedir\" 13056 eval additional_libdir=\"$libdir\" 13057 13058 exec_prefix="$acl_save_exec_prefix" 13059 prefix="$acl_save_prefix" 13060 13061 13062# Check whether --with-libintl-prefix was given. 13063if test "${with_libintl_prefix+set}" = set; then : 13064 withval=$with_libintl_prefix; 13065 if test "X$withval" = "Xno"; then 13066 use_additional=no 13067 else 13068 if test "X$withval" = "X"; then 13069 13070 acl_save_prefix="$prefix" 13071 prefix="$acl_final_prefix" 13072 acl_save_exec_prefix="$exec_prefix" 13073 exec_prefix="$acl_final_exec_prefix" 13074 13075 eval additional_includedir=\"$includedir\" 13076 eval additional_libdir=\"$libdir\" 13077 13078 exec_prefix="$acl_save_exec_prefix" 13079 prefix="$acl_save_prefix" 13080 13081 else 13082 additional_includedir="$withval/include" 13083 additional_libdir="$withval/lib" 13084 fi 13085 fi 13086 13087fi 13088 13089 13090# Check whether --with-libintl-type was given. 13091if test "${with_libintl_type+set}" = set; then : 13092 withval=$with_libintl_type; with_libintl_type=$withval 13093else 13094 with_libintl_type=auto 13095fi 13096 13097 lib_type=`eval echo \$with_libintl_type` 13098 13099 LIBINTL= 13100 LTLIBINTL= 13101 INCINTL= 13102 rpathdirs= 13103 ltrpathdirs= 13104 names_already_handled= 13105 names_next_round='intl ' 13106 while test -n "$names_next_round"; do 13107 names_this_round="$names_next_round" 13108 names_next_round= 13109 for name in $names_this_round; do 13110 already_handled= 13111 for n in $names_already_handled; do 13112 if test "$n" = "$name"; then 13113 already_handled=yes 13114 break 13115 fi 13116 done 13117 if test -z "$already_handled"; then 13118 names_already_handled="$names_already_handled $name" 13119 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13120 eval value=\"\$HAVE_LIB$uppername\" 13121 if test -n "$value"; then 13122 if test "$value" = yes; then 13123 eval value=\"\$LIB$uppername\" 13124 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 13125 eval value=\"\$LTLIB$uppername\" 13126 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 13127 else 13128 : 13129 fi 13130 else 13131 found_dir= 13132 found_la= 13133 found_so= 13134 found_a= 13135 if test $use_additional = yes; then 13136 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13137 found_dir="$additional_libdir" 13138 found_so="$additional_libdir/lib$name.$shlibext" 13139 if test -f "$additional_libdir/lib$name.la"; then 13140 found_la="$additional_libdir/lib$name.la" 13141 fi 13142 elif test x$lib_type != xshared; then 13143 if test -f "$additional_libdir/lib$name.$libext"; then 13144 found_dir="$additional_libdir" 13145 found_a="$additional_libdir/lib$name.$libext" 13146 if test -f "$additional_libdir/lib$name.la"; then 13147 found_la="$additional_libdir/lib$name.la" 13148 fi 13149 fi 13150 fi 13151 fi 13152 if test "X$found_dir" = "X"; then 13153 for x in $LDFLAGS $LTLIBINTL; do 13154 13155 acl_save_prefix="$prefix" 13156 prefix="$acl_final_prefix" 13157 acl_save_exec_prefix="$exec_prefix" 13158 exec_prefix="$acl_final_exec_prefix" 13159 eval x=\"$x\" 13160 exec_prefix="$acl_save_exec_prefix" 13161 prefix="$acl_save_prefix" 13162 13163 case "$x" in 13164 -L*) 13165 dir=`echo "X$x" | sed -e 's/^X-L//'` 13166 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 13167 found_dir="$dir" 13168 found_so="$dir/lib$name.$shlibext" 13169 if test -f "$dir/lib$name.la"; then 13170 found_la="$dir/lib$name.la" 13171 fi 13172 elif test x$lib_type != xshared; then 13173 if test -f "$dir/lib$name.$libext"; then 13174 found_dir="$dir" 13175 found_a="$dir/lib$name.$libext" 13176 if test -f "$dir/lib$name.la"; then 13177 found_la="$dir/lib$name.la" 13178 fi 13179 fi 13180 fi 13181 ;; 13182 esac 13183 if test "X$found_dir" != "X"; then 13184 break 13185 fi 13186 done 13187 fi 13188 if test "X$found_dir" != "X"; then 13189 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 13190 if test "X$found_so" != "X"; then 13191 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13192 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13193 else 13194 haveit= 13195 for x in $ltrpathdirs; do 13196 if test "X$x" = "X$found_dir"; then 13197 haveit=yes 13198 break 13199 fi 13200 done 13201 if test -z "$haveit"; then 13202 ltrpathdirs="$ltrpathdirs $found_dir" 13203 fi 13204 if test "$hardcode_direct" = yes; then 13205 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13206 else 13207 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13208 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13209 haveit= 13210 for x in $rpathdirs; do 13211 if test "X$x" = "X$found_dir"; then 13212 haveit=yes 13213 break 13214 fi 13215 done 13216 if test -z "$haveit"; then 13217 rpathdirs="$rpathdirs $found_dir" 13218 fi 13219 else 13220 haveit= 13221 for x in $LDFLAGS $LIBINTL; do 13222 13223 acl_save_prefix="$prefix" 13224 prefix="$acl_final_prefix" 13225 acl_save_exec_prefix="$exec_prefix" 13226 exec_prefix="$acl_final_exec_prefix" 13227 eval x=\"$x\" 13228 exec_prefix="$acl_save_exec_prefix" 13229 prefix="$acl_save_prefix" 13230 13231 if test "X$x" = "X-L$found_dir"; then 13232 haveit=yes 13233 break 13234 fi 13235 done 13236 if test -z "$haveit"; then 13237 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 13238 fi 13239 if test "$hardcode_minus_L" != no; then 13240 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13241 else 13242 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13243 fi 13244 fi 13245 fi 13246 fi 13247 else 13248 if test "X$found_a" != "X"; then 13249 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 13250 else 13251 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 13252 fi 13253 fi 13254 additional_includedir= 13255 case "$found_dir" in 13256 */lib | */lib/) 13257 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13258 additional_includedir="$basedir/include" 13259 ;; 13260 esac 13261 if test "X$additional_includedir" != "X"; then 13262 if test "X$additional_includedir" != "X/usr/include"; then 13263 haveit= 13264 if test "X$additional_includedir" = "X/usr/local/include"; then 13265 if test -n "$GCC"; then 13266 case $host_os in 13267 linux*) haveit=yes;; 13268 esac 13269 fi 13270 fi 13271 if test -z "$haveit"; then 13272 for x in $CPPFLAGS $INCINTL; do 13273 13274 acl_save_prefix="$prefix" 13275 prefix="$acl_final_prefix" 13276 acl_save_exec_prefix="$exec_prefix" 13277 exec_prefix="$acl_final_exec_prefix" 13278 eval x=\"$x\" 13279 exec_prefix="$acl_save_exec_prefix" 13280 prefix="$acl_save_prefix" 13281 13282 if test "X$x" = "X-I$additional_includedir"; then 13283 haveit=yes 13284 break 13285 fi 13286 done 13287 if test -z "$haveit"; then 13288 if test -d "$additional_includedir"; then 13289 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 13290 fi 13291 fi 13292 fi 13293 fi 13294 fi 13295 if test -n "$found_la"; then 13296 save_libdir="$libdir" 13297 case "$found_la" in 13298 */* | *\\*) . "$found_la" ;; 13299 *) . "./$found_la" ;; 13300 esac 13301 libdir="$save_libdir" 13302 for dep in $dependency_libs; do 13303 case "$dep" in 13304 -L*) 13305 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13306 if test "X$additional_libdir" != "X/usr/lib"; then 13307 haveit= 13308 if test "X$additional_libdir" = "X/usr/local/lib"; then 13309 if test -n "$GCC"; then 13310 case $host_os in 13311 linux*) haveit=yes;; 13312 esac 13313 fi 13314 fi 13315 if test -z "$haveit"; then 13316 haveit= 13317 for x in $LDFLAGS $LIBINTL; do 13318 13319 acl_save_prefix="$prefix" 13320 prefix="$acl_final_prefix" 13321 acl_save_exec_prefix="$exec_prefix" 13322 exec_prefix="$acl_final_exec_prefix" 13323 eval x=\"$x\" 13324 exec_prefix="$acl_save_exec_prefix" 13325 prefix="$acl_save_prefix" 13326 13327 if test "X$x" = "X-L$additional_libdir"; then 13328 haveit=yes 13329 break 13330 fi 13331 done 13332 if test -z "$haveit"; then 13333 if test -d "$additional_libdir"; then 13334 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 13335 fi 13336 fi 13337 haveit= 13338 for x in $LDFLAGS $LTLIBINTL; do 13339 13340 acl_save_prefix="$prefix" 13341 prefix="$acl_final_prefix" 13342 acl_save_exec_prefix="$exec_prefix" 13343 exec_prefix="$acl_final_exec_prefix" 13344 eval x=\"$x\" 13345 exec_prefix="$acl_save_exec_prefix" 13346 prefix="$acl_save_prefix" 13347 13348 if test "X$x" = "X-L$additional_libdir"; then 13349 haveit=yes 13350 break 13351 fi 13352 done 13353 if test -z "$haveit"; then 13354 if test -d "$additional_libdir"; then 13355 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 13356 fi 13357 fi 13358 fi 13359 fi 13360 ;; 13361 -R*) 13362 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13363 if test "$enable_rpath" != no; then 13364 haveit= 13365 for x in $rpathdirs; do 13366 if test "X$x" = "X$dir"; then 13367 haveit=yes 13368 break 13369 fi 13370 done 13371 if test -z "$haveit"; then 13372 rpathdirs="$rpathdirs $dir" 13373 fi 13374 haveit= 13375 for x in $ltrpathdirs; do 13376 if test "X$x" = "X$dir"; then 13377 haveit=yes 13378 break 13379 fi 13380 done 13381 if test -z "$haveit"; then 13382 ltrpathdirs="$ltrpathdirs $dir" 13383 fi 13384 fi 13385 ;; 13386 -l*) 13387 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13388 ;; 13389 *.la) 13390 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13391 ;; 13392 *) 13393 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 13394 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 13395 ;; 13396 esac 13397 done 13398 fi 13399 else 13400 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 13401 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13402 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 13403 else 13404 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 13405 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 13406 fi 13407 fi 13408 fi 13409 fi 13410 done 13411 done 13412 if test "X$rpathdirs" != "X"; then 13413 if test -n "$hardcode_libdir_separator"; then 13414 alldirs= 13415 for found_dir in $rpathdirs; do 13416 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13417 done 13418 acl_save_libdir="$libdir" 13419 libdir="$alldirs" 13420 eval flag=\"$hardcode_libdir_flag_spec\" 13421 libdir="$acl_save_libdir" 13422 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13423 else 13424 for found_dir in $rpathdirs; do 13425 acl_save_libdir="$libdir" 13426 libdir="$found_dir" 13427 eval flag=\"$hardcode_libdir_flag_spec\" 13428 libdir="$acl_save_libdir" 13429 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13430 done 13431 fi 13432 fi 13433 if test "X$ltrpathdirs" != "X"; then 13434 for found_dir in $ltrpathdirs; do 13435 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 13436 done 13437 fi 13438 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 13440$as_echo_n "checking for GNU gettext in libintl... " >&6; } 13441if eval \${$gt_func_gnugettext_libintl+:} false; then : 13442 $as_echo_n "(cached) " >&6 13443else 13444 gt_save_CPPFLAGS="$CPPFLAGS" 13445 CPPFLAGS="$CPPFLAGS $INCINTL" 13446 gt_save_LIBS="$LIBS" 13447 LIBS="$LIBS $LIBINTL" 13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450 13451#include <libintl.h> 13452#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13453extern int _nl_msg_cat_cntr; 13454extern 13455#ifdef __cplusplus 13456"C" 13457#endif 13458const char *_nl_expand_alias (const char *); 13459#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13460#else 13461#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13462#endif 13463$gt_revision_test_code 13464 13465int 13466main () 13467{ 13468 13469bindtextdomain ("", ""); 13470return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13471 13472 ; 13473 return 0; 13474} 13475_ACEOF 13476if ac_fn_c_try_link "$LINENO"; then : 13477 eval "$gt_func_gnugettext_libintl=yes" 13478else 13479 eval "$gt_func_gnugettext_libintl=no" 13480fi 13481rm -f core conftest.err conftest.$ac_objext \ 13482 conftest$ac_exeext conftest.$ac_ext 13483 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 13484 LIBS="$LIBS $LIBICONV" 13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13486/* end confdefs.h. */ 13487 13488#include <libintl.h> 13489#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13490extern int _nl_msg_cat_cntr; 13491extern 13492#ifdef __cplusplus 13493"C" 13494#endif 13495const char *_nl_expand_alias (const char *); 13496#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13497#else 13498#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13499#endif 13500$gt_revision_test_code 13501 13502int 13503main () 13504{ 13505 13506bindtextdomain ("", ""); 13507return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13508 13509 ; 13510 return 0; 13511} 13512_ACEOF 13513if ac_fn_c_try_link "$LINENO"; then : 13514 LIBINTL="$LIBINTL $LIBICONV" 13515 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13516 eval "$gt_func_gnugettext_libintl=yes" 13517 13518fi 13519rm -f core conftest.err conftest.$ac_objext \ 13520 conftest$ac_exeext conftest.$ac_ext 13521 fi 13522 CPPFLAGS="$gt_save_CPPFLAGS" 13523 LIBS="$gt_save_LIBS" 13524fi 13525eval ac_res=\$$gt_func_gnugettext_libintl 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13527$as_echo "$ac_res" >&6; } 13528 fi 13529 13530 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 13531 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 13532 && test "$PACKAGE" != gettext-runtime \ 13533 && test "$PACKAGE" != gettext-tools; }; then 13534 gt_use_preinstalled_gnugettext=yes 13535 else 13536 LIBINTL= 13537 LTLIBINTL= 13538 INCINTL= 13539 fi 13540 13541 13542 13543 if test -n "$INTL_MACOSX_LIBS"; then 13544 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13545 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13546 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 13547 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 13548 fi 13549 fi 13550 13551 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13552 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13553 13554$as_echo "#define ENABLE_NLS 1" >>confdefs.h 13555 13556 else 13557 USE_NLS=no 13558 fi 13559 fi 13560 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 13562$as_echo_n "checking whether to use NLS... " >&6; } 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13564$as_echo "$USE_NLS" >&6; } 13565 if test "$USE_NLS" = "yes"; then 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 13567$as_echo_n "checking where the gettext function comes from... " >&6; } 13568 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13569 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13570 gt_source="external libintl" 13571 else 13572 gt_source="libc" 13573 fi 13574 else 13575 gt_source="included intl directory" 13576 fi 13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 13578$as_echo "$gt_source" >&6; } 13579 fi 13580 13581 if test "$USE_NLS" = "yes"; then 13582 13583 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13584 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 13586$as_echo_n "checking how to link with libintl... " >&6; } 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 13588$as_echo "$LIBINTL" >&6; } 13589 13590 for element in $INCINTL; do 13591 haveit= 13592 for x in $CPPFLAGS; do 13593 13594 acl_save_prefix="$prefix" 13595 prefix="$acl_final_prefix" 13596 acl_save_exec_prefix="$exec_prefix" 13597 exec_prefix="$acl_final_exec_prefix" 13598 eval x=\"$x\" 13599 exec_prefix="$acl_save_exec_prefix" 13600 prefix="$acl_save_prefix" 13601 13602 if test "X$x" = "X$element"; then 13603 haveit=yes 13604 break 13605 fi 13606 done 13607 if test -z "$haveit"; then 13608 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13609 fi 13610 done 13611 13612 fi 13613 13614 13615$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13616 13617 13618$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 13619 13620 fi 13621 13622 POSUB=po 13623 fi 13624 13625 13626 13627 INTLLIBS="$LIBINTL" 13628 13629 13630 13631 13632 13633 13634fi 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13647$as_echo_n "checking whether NLS is requested... " >&6; } 13648if test x"$USE_NLS" != xyes; then 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13650$as_echo "no" >&6; } 13651else 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13653$as_echo "yes" >&6; } 13654 13655$as_echo "#define ENABLE_NLS 1" >>confdefs.h 13656 13657 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 13659$as_echo_n "checking for catalogs to be installed... " >&6; } 13660 # Look for .po and .gmo files in the source directory. 13661 CATALOGS= 13662 XLINGUAS= 13663 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 13664 # If there aren't any .gmo files the shell will give us the 13665 # literal string "../path/to/srcdir/po/*.gmo" which has to be 13666 # weeded out. 13667 case "$cat" in *\**) 13668 continue;; 13669 esac 13670 # The quadruple backslash is collapsed to a double backslash 13671 # by the backticks, then collapsed again by the double quotes, 13672 # leaving us with one backslash in the sed expression (right 13673 # before the dot that mustn't act as a wildcard). 13674 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 13675 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 13676 # The user is allowed to set LINGUAS to a list of languages to 13677 # install catalogs for. If it's empty that means "all of them." 13678 if test "x$LINGUAS" = x; then 13679 CATALOGS="$CATALOGS $cat" 13680 XLINGUAS="$XLINGUAS $lang" 13681 else 13682 case "$LINGUAS" in *$lang*) 13683 CATALOGS="$CATALOGS $cat" 13684 XLINGUAS="$XLINGUAS $lang" 13685 ;; 13686 esac 13687 fi 13688 done 13689 LINGUAS="$XLINGUAS" 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 13691$as_echo "$LINGUAS" >&6; } 13692 13693 13694 DATADIRNAME=share 13695 13696 INSTOBJEXT=.mo 13697 13698 GENCAT=gencat 13699 13700 CATOBJEXT=.gmo 13701 13702fi 13703 13704 13705 13706 13707# Prepare PATH_SEPARATOR. 13708# The user is always right. 13709if test "${PATH_SEPARATOR+set}" != set; then 13710 echo "#! /bin/sh" >conf$$.sh 13711 echo "exit 0" >>conf$$.sh 13712 chmod +x conf$$.sh 13713 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13714 PATH_SEPARATOR=';' 13715 else 13716 PATH_SEPARATOR=: 13717 fi 13718 rm -f conf$$.sh 13719fi 13720 13721# Find out how to test for executable files. Don't use a zero-byte file, 13722# as systems may use methods other than mode bits to determine executability. 13723cat >conf$$.file <<_ASEOF 13724#! /bin/sh 13725exit 0 13726_ASEOF 13727chmod +x conf$$.file 13728if test -x conf$$.file >/dev/null 2>&1; then 13729 ac_executable_p="test -x" 13730else 13731 ac_executable_p="test -f" 13732fi 13733rm -f conf$$.file 13734 13735# Extract the first word of "msgfmt", so it can be a program name with args. 13736set dummy msgfmt; ac_word=$2 13737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13738$as_echo_n "checking for $ac_word... " >&6; } 13739if ${ac_cv_path_MSGFMT+:} false; then : 13740 $as_echo_n "(cached) " >&6 13741else 13742 case "$MSGFMT" in 13743 [\\/]* | ?:[\\/]*) 13744 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 13745 ;; 13746 *) 13747 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13748 for ac_dir in $PATH; do 13749 IFS="$ac_save_IFS" 13750 test -z "$ac_dir" && ac_dir=. 13751 for ac_exec_ext in '' $ac_executable_extensions; do 13752 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13753 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 13754 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13755 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 13756 break 2 13757 fi 13758 fi 13759 done 13760 done 13761 IFS="$ac_save_IFS" 13762 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 13763 ;; 13764esac 13765fi 13766MSGFMT="$ac_cv_path_MSGFMT" 13767if test "$MSGFMT" != ":"; then 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13769$as_echo "$MSGFMT" >&6; } 13770else 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13772$as_echo "no" >&6; } 13773fi 13774 13775 # Extract the first word of "gmsgfmt", so it can be a program name with args. 13776set dummy gmsgfmt; ac_word=$2 13777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13778$as_echo_n "checking for $ac_word... " >&6; } 13779if ${ac_cv_path_GMSGFMT+:} false; then : 13780 $as_echo_n "(cached) " >&6 13781else 13782 case $GMSGFMT in 13783 [\\/]* | ?:[\\/]*) 13784 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 13785 ;; 13786 *) 13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13788for as_dir in $PATH 13789do 13790 IFS=$as_save_IFS 13791 test -z "$as_dir" && as_dir=. 13792 for ac_exec_ext in '' $ac_executable_extensions; do 13793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13794 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13796 break 2 13797 fi 13798done 13799 done 13800IFS=$as_save_IFS 13801 13802 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 13803 ;; 13804esac 13805fi 13806GMSGFMT=$ac_cv_path_GMSGFMT 13807if test -n "$GMSGFMT"; then 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 13809$as_echo "$GMSGFMT" >&6; } 13810else 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13812$as_echo "no" >&6; } 13813fi 13814 13815 13816 13817 13818# Prepare PATH_SEPARATOR. 13819# The user is always right. 13820if test "${PATH_SEPARATOR+set}" != set; then 13821 echo "#! /bin/sh" >conf$$.sh 13822 echo "exit 0" >>conf$$.sh 13823 chmod +x conf$$.sh 13824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13825 PATH_SEPARATOR=';' 13826 else 13827 PATH_SEPARATOR=: 13828 fi 13829 rm -f conf$$.sh 13830fi 13831 13832# Find out how to test for executable files. Don't use a zero-byte file, 13833# as systems may use methods other than mode bits to determine executability. 13834cat >conf$$.file <<_ASEOF 13835#! /bin/sh 13836exit 0 13837_ASEOF 13838chmod +x conf$$.file 13839if test -x conf$$.file >/dev/null 2>&1; then 13840 ac_executable_p="test -x" 13841else 13842 ac_executable_p="test -f" 13843fi 13844rm -f conf$$.file 13845 13846# Extract the first word of "xgettext", so it can be a program name with args. 13847set dummy xgettext; ac_word=$2 13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13849$as_echo_n "checking for $ac_word... " >&6; } 13850if ${ac_cv_path_XGETTEXT+:} false; then : 13851 $as_echo_n "(cached) " >&6 13852else 13853 case "$XGETTEXT" in 13854 [\\/]* | ?:[\\/]*) 13855 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 13856 ;; 13857 *) 13858 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13859 for ac_dir in $PATH; do 13860 IFS="$ac_save_IFS" 13861 test -z "$ac_dir" && ac_dir=. 13862 for ac_exec_ext in '' $ac_executable_extensions; do 13863 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13864 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 13865 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13866 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 13867 break 2 13868 fi 13869 fi 13870 done 13871 done 13872 IFS="$ac_save_IFS" 13873 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 13874 ;; 13875esac 13876fi 13877XGETTEXT="$ac_cv_path_XGETTEXT" 13878if test "$XGETTEXT" != ":"; then 13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 13880$as_echo "$XGETTEXT" >&6; } 13881else 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13883$as_echo "no" >&6; } 13884fi 13885 13886 rm -f messages.po 13887 13888 13889# Prepare PATH_SEPARATOR. 13890# The user is always right. 13891if test "${PATH_SEPARATOR+set}" != set; then 13892 echo "#! /bin/sh" >conf$$.sh 13893 echo "exit 0" >>conf$$.sh 13894 chmod +x conf$$.sh 13895 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13896 PATH_SEPARATOR=';' 13897 else 13898 PATH_SEPARATOR=: 13899 fi 13900 rm -f conf$$.sh 13901fi 13902 13903# Find out how to test for executable files. Don't use a zero-byte file, 13904# as systems may use methods other than mode bits to determine executability. 13905cat >conf$$.file <<_ASEOF 13906#! /bin/sh 13907exit 0 13908_ASEOF 13909chmod +x conf$$.file 13910if test -x conf$$.file >/dev/null 2>&1; then 13911 ac_executable_p="test -x" 13912else 13913 ac_executable_p="test -f" 13914fi 13915rm -f conf$$.file 13916 13917# Extract the first word of "msgmerge", so it can be a program name with args. 13918set dummy msgmerge; ac_word=$2 13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13920$as_echo_n "checking for $ac_word... " >&6; } 13921if ${ac_cv_path_MSGMERGE+:} false; then : 13922 $as_echo_n "(cached) " >&6 13923else 13924 case "$MSGMERGE" in 13925 [\\/]* | ?:[\\/]*) 13926 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 13927 ;; 13928 *) 13929 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13930 for ac_dir in $PATH; do 13931 IFS="$ac_save_IFS" 13932 test -z "$ac_dir" && ac_dir=. 13933 for ac_exec_ext in '' $ac_executable_extensions; do 13934 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13935 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 13936 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 13937 break 2 13938 fi 13939 fi 13940 done 13941 done 13942 IFS="$ac_save_IFS" 13943 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 13944 ;; 13945esac 13946fi 13947MSGMERGE="$ac_cv_path_MSGMERGE" 13948if test "$MSGMERGE" != ":"; then 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 13950$as_echo "$MSGMERGE" >&6; } 13951else 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13953$as_echo "no" >&6; } 13954fi 13955 13956 13957 if test "$GMSGFMT" != ":"; then 13958 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 13959 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13960 : ; 13961 else 13962 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 13964$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 13965 GMSGFMT=":" 13966 fi 13967 fi 13968 13969 if test "$XGETTEXT" != ":"; then 13970 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 13971 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13972 : ; 13973 else 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 13975$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 13976 XGETTEXT=":" 13977 fi 13978 rm -f messages.po 13979 fi 13980 13981 ac_config_commands="$ac_config_commands default-2" 13982 13983 13984 13985. ${srcdir}/../bfd/configure.host 13986 13987# Put a plausible default for CC_FOR_BUILD in Makefile. 13988if test -z "$CC_FOR_BUILD"; then 13989 if test "x$cross_compiling" = "xno"; then 13990 CC_FOR_BUILD='$(CC)' 13991 else 13992 CC_FOR_BUILD=gcc 13993 fi 13994fi 13995 13996# Also set EXEEXT_FOR_BUILD. 13997if test "x$cross_compiling" = "xno"; then 13998 EXEEXT_FOR_BUILD='$(EXEEXT)' 13999else 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 14001$as_echo_n "checking for build system executable suffix... " >&6; } 14002if ${bfd_cv_build_exeext+:} false; then : 14003 $as_echo_n "(cached) " >&6 14004else 14005 rm -f conftest* 14006 echo 'int main () { return 0; }' > conftest.c 14007 bfd_cv_build_exeext= 14008 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 14009 for file in conftest.*; do 14010 case $file in 14011 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 14012 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 14013 esac 14014 done 14015 rm -f conftest* 14016 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 14017fi 14018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 14019$as_echo "$bfd_cv_build_exeext" >&6; } 14020 EXEEXT_FOR_BUILD="" 14021 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 14022fi 14023 14024# Check whether --enable-64-bit-bfd was given. 14025if test "${enable_64_bit_bfd+set}" = set; then : 14026 enableval=$enable_64_bit_bfd; case $enableval in #( 14027 yes|no) : 14028 ;; #( 14029 *) : 14030 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #( 14031 *) : 14032 ;; 14033esac 14034else 14035 enable_64_bit_bfd=no 14036fi 14037 14038 14039if test "x$enable_64_bit_bfd" = "xno"; then : 14040 # The cast to long int works around a bug in the HP C Compiler 14041# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14042# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14043# This bug is HP SR number 8606223364. 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14045$as_echo_n "checking size of void *... " >&6; } 14046if ${ac_cv_sizeof_void_p+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14050 14051else 14052 if test "$ac_cv_type_void_p" = yes; then 14053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14055as_fn_error 77 "cannot compute sizeof (void *) 14056See \`config.log' for more details" "$LINENO" 5; } 14057 else 14058 ac_cv_sizeof_void_p=0 14059 fi 14060fi 14061 14062fi 14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14064$as_echo "$ac_cv_sizeof_void_p" >&6; } 14065 14066 14067 14068cat >>confdefs.h <<_ACEOF 14069#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14070_ACEOF 14071 14072 14073 if test "x$ac_cv_sizeof_void_p" = "x8"; then : 14074 enable_64_bit_bfd=yes 14075fi 14076 14077fi 14078 14079 if test "x$enable_64_bit_bfd" = "xyes"; then 14080 ENABLE_BFD_64_BIT_TRUE= 14081 ENABLE_BFD_64_BIT_FALSE='#' 14082else 14083 ENABLE_BFD_64_BIT_TRUE='#' 14084 ENABLE_BFD_64_BIT_FALSE= 14085fi 14086 14087 14088 14089 14090 14091 14092ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 14093if test "x$ac_cv_have_decl_basename" = xyes; then : 14094 ac_have_decl=1 14095else 14096 ac_have_decl=0 14097fi 14098 14099cat >>confdefs.h <<_ACEOF 14100#define HAVE_DECL_BASENAME $ac_have_decl 14101_ACEOF 14102ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 14103if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 14104 ac_have_decl=1 14105else 14106 ac_have_decl=0 14107fi 14108 14109cat >>confdefs.h <<_ACEOF 14110#define HAVE_DECL_STPCPY $ac_have_decl 14111_ACEOF 14112 14113 14114# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do 14115# since sigsetjmp might only be defined as a macro. 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 14117$as_echo_n "checking for sigsetjmp... " >&6; } 14118if ${gdb_cv_func_sigsetjmp+:} false; then : 14119 $as_echo_n "(cached) " >&6 14120else 14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14122/* end confdefs.h. */ 14123 14124#include <setjmp.h> 14125 14126int 14127main () 14128{ 14129sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); 14130 ; 14131 return 0; 14132} 14133_ACEOF 14134if ac_fn_c_try_compile "$LINENO"; then : 14135 bfd_cv_func_sigsetjmp=yes 14136else 14137 bfd_cv_func_sigsetjmp=no 14138fi 14139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14140fi 14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 14142$as_echo "$gdb_cv_func_sigsetjmp" >&6; } 14143if test $bfd_cv_func_sigsetjmp = yes; then 14144 14145$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 14146 14147fi 14148 14149cgen_maint=no 14150cgendir='$(srcdir)/../../cgen' 14151if test -r ${srcdir}/../cgen/iformat.scm; then 14152 cgendir='$(srcdir)/../cgen' 14153fi 14154 14155# Check whether --enable-cgen-maint was given. 14156if test "${enable_cgen_maint+set}" = set; then : 14157 enableval=$enable_cgen_maint; case "${enableval}" in 14158 yes) cgen_maint=yes ;; 14159 no) cgen_maint=no ;; 14160 *) 14161 # Argument is a directory where cgen can be found. In some 14162 # future world cgen could be installable, but right now this 14163 # is not the case. Instead we assume the directory is a path 14164 # to the cgen source tree. 14165 cgen_maint=yes 14166 if test -r ${enableval}/iformat.scm; then 14167 # This looks like a cgen source tree. 14168 cgendir=${enableval} 14169 else 14170 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 14171 fi 14172 ;; 14173esac 14174fi 14175 if test x${cgen_maint} = xyes; then 14176 CGEN_MAINT_TRUE= 14177 CGEN_MAINT_FALSE='#' 14178else 14179 CGEN_MAINT_TRUE='#' 14180 CGEN_MAINT_FALSE= 14181fi 14182 14183 14184 14185using_cgen=no 14186 14187# Check if linker supports --as-needed and --no-as-needed options 14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14189$as_echo_n "checking linker --as-needed support... " >&6; } 14190if ${bfd_cv_ld_as_needed+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 bfd_cv_ld_as_needed=no 14194 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 14195 bfd_cv_ld_as_needed=yes 14196 fi 14197 14198fi 14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 14200$as_echo "$bfd_cv_ld_as_needed" >&6; } 14201 14202LIBM= 14203case $host in 14204*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 14205 # These system don't have libm, or don't need it 14206 ;; 14207*-ncr-sysv4.3*) 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 14209$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 14210if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 14211 $as_echo_n "(cached) " >&6 14212else 14213 ac_check_lib_save_LIBS=$LIBS 14214LIBS="-lmw $LIBS" 14215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14216/* end confdefs.h. */ 14217 14218/* Override any GCC internal prototype to avoid an error. 14219 Use char because int might match the return type of a GCC 14220 builtin and then its argument prototype would still apply. */ 14221#ifdef __cplusplus 14222extern "C" 14223#endif 14224char _mwvalidcheckl (); 14225int 14226main () 14227{ 14228return _mwvalidcheckl (); 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_link "$LINENO"; then : 14234 ac_cv_lib_mw__mwvalidcheckl=yes 14235else 14236 ac_cv_lib_mw__mwvalidcheckl=no 14237fi 14238rm -f core conftest.err conftest.$ac_objext \ 14239 conftest$ac_exeext conftest.$ac_ext 14240LIBS=$ac_check_lib_save_LIBS 14241fi 14242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 14243$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 14244if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 14245 LIBM="-lmw" 14246fi 14247 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 14249$as_echo_n "checking for cos in -lm... " >&6; } 14250if ${ac_cv_lib_m_cos+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252else 14253 ac_check_lib_save_LIBS=$LIBS 14254LIBS="-lm $LIBS" 14255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14256/* end confdefs.h. */ 14257 14258/* Override any GCC internal prototype to avoid an error. 14259 Use char because int might match the return type of a GCC 14260 builtin and then its argument prototype would still apply. */ 14261#ifdef __cplusplus 14262extern "C" 14263#endif 14264char cos (); 14265int 14266main () 14267{ 14268return cos (); 14269 ; 14270 return 0; 14271} 14272_ACEOF 14273if ac_fn_c_try_link "$LINENO"; then : 14274 ac_cv_lib_m_cos=yes 14275else 14276 ac_cv_lib_m_cos=no 14277fi 14278rm -f core conftest.err conftest.$ac_objext \ 14279 conftest$ac_exeext conftest.$ac_ext 14280LIBS=$ac_check_lib_save_LIBS 14281fi 14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 14283$as_echo "$ac_cv_lib_m_cos" >&6; } 14284if test "x$ac_cv_lib_m_cos" = xyes; then : 14285 LIBM="$LIBM -lm" 14286fi 14287 14288 ;; 14289*) 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 14291$as_echo_n "checking for cos in -lm... " >&6; } 14292if ${ac_cv_lib_m_cos+:} false; then : 14293 $as_echo_n "(cached) " >&6 14294else 14295 ac_check_lib_save_LIBS=$LIBS 14296LIBS="-lm $LIBS" 14297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14298/* end confdefs.h. */ 14299 14300/* Override any GCC internal prototype to avoid an error. 14301 Use char because int might match the return type of a GCC 14302 builtin and then its argument prototype would still apply. */ 14303#ifdef __cplusplus 14304extern "C" 14305#endif 14306char cos (); 14307int 14308main () 14309{ 14310return cos (); 14311 ; 14312 return 0; 14313} 14314_ACEOF 14315if ac_fn_c_try_link "$LINENO"; then : 14316 ac_cv_lib_m_cos=yes 14317else 14318 ac_cv_lib_m_cos=no 14319fi 14320rm -f core conftest.err conftest.$ac_objext \ 14321 conftest$ac_exeext conftest.$ac_ext 14322LIBS=$ac_check_lib_save_LIBS 14323fi 14324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 14325$as_echo "$ac_cv_lib_m_cos" >&6; } 14326if test "x$ac_cv_lib_m_cos" = xyes; then : 14327 LIBM="-lm" 14328fi 14329 14330 ;; 14331esac 14332 14333 14334 14335#Libs for generator progs 14336if test "x$cross_compiling" = "xno"; then 14337 BUILD_LIBS=../libiberty/libiberty.a 14338 BUILD_LIB_DEPS=$BUILD_LIBS 14339else 14340 # if cross-compiling, assume that the system provides -liberty 14341 # and that the version is compatible with new headers. 14342 BUILD_LIBS=-liberty 14343 BUILD_LIB_DEPS= 14344fi 14345BUILD_LIBS="$BUILD_LIBS $LIBINTL" 14346BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" 14347 14348 14349 14350 14351# Horrible hacks to build DLLs on Windows and a shared library elsewhere. 14352SHARED_LDFLAGS= 14353SHARED_LIBADD= 14354SHARED_DEPENDENCIES= 14355if test "$enable_shared" = "yes"; then 14356# When building a shared libopcodes, link against the pic version of libiberty 14357# so that apps that use libopcodes won't need libiberty just to satisfy any 14358# libopcodes references. 14359# We can't do that if a pic libiberty is unavailable since including non-pic 14360# code would insert text relocations into libopcodes. 14361# Note that linking against libbfd as we do here, which is itself linked 14362# against libiberty, may not satisfy all the libopcodes libiberty references 14363# since libbfd may not pull in the entirety of libiberty. 14364# Also, jam libintl into the right place in all of this: after libiberty, 14365# which uses it, but before -lcygwin, which it uses. 14366 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 14367 if test -n "$x"; then 14368 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 14369 fi 14370fi 14371 14372SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL" 14373 14374if test "$enable_shared" = "yes"; then 14375 case "${host}" in 14376 *-*-cygwin*) 14377 SHARED_LDFLAGS="-no-undefined" 14378 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" 14379 ;; 14380 *) 14381 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" 14382 SHARED_DEPENDENCIES="../bfd/libbfd.la" 14383 ;; 14384 esac 14385 14386 if test -n "$SHARED_LIBADD"; then 14387 if test -n "$LIBM"; then 14388 if test x"$bfd_cv_ld_as_needed" = xyes; then 14389 # Link against libm only when needed. Put -lc, -lm inside -Wl 14390 # to stop libtool reordering these options. 14391 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 14392 else 14393 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 14394 fi 14395 fi 14396 fi 14397fi 14398 14399 14400 14401 14402# target-specific stuff: 14403 14404# Canonicalize the secondary target names. 14405if test -n "$enable_targets" ; then 14406 for targ in `echo $enable_targets | sed 's/,/ /g'` 14407 do 14408 result=`$ac_config_sub $targ 2>/dev/null` 14409 if test -n "$result" ; then 14410 canon_targets="$canon_targets $result" 14411 else 14412 # Allow targets that config.sub doesn't recognize, like "all". 14413 canon_targets="$canon_targets $targ" 14414 fi 14415 done 14416fi 14417 14418all_targets=false 14419selarchs= 14420for targ in $target $canon_targets 14421do 14422 if test "x$targ" = "xall" ; then 14423 all_targets=true 14424 else 14425 . $srcdir/../bfd/config.bfd 14426 selarchs="$selarchs $targ_archs" 14427 fi 14428done 14429 14430# Utility var, documents generic cgen support files. 14431 14432cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" 14433 14434# We don't do any links based on the target system, just makefile config. 14435 14436if test x${all_targets} = xfalse ; then 14437 14438 # Target architecture .o files. 14439 ta= 14440 14441 for arch in $selarchs 14442 do 14443 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` 14444 archdefs="$archdefs -DARCH_$ad" 14445 case "$arch" in 14446 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;; 14447 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; 14448 bfd_amdgcn_arch) ;; 14449 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; 14450 bfd_arm_arch) ta="$ta arm-dis.lo" ;; 14451 bfd_avr_arch) ta="$ta avr-dis.lo" ;; 14452 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; 14453 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; 14454 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; 14455 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; 14456 bfd_csky_arch) ta="$ta csky-dis.lo" ;; 14457 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; 14458 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; 14459 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; 14460 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; 14461 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; 14462 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;; 14463 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; 14464 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; 14465 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; 14466 bfd_i386_arch|bfd_iamcu_arch) 14467 ta="$ta i386-dis.lo" ;; 14468 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; 14469 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; 14470 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;; 14471 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; 14472 bfd_kvx_arch) ta="$ta kvx-opc.lo kvx-dis.lo" ;; 14473 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;; 14474 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; 14475 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; 14476 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14477 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14478 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14479 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 14480 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;; 14481 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; 14482 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; 14483 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; 14484 bfd_metag_arch) ta="$ta metag-dis.lo" ;; 14485 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; 14486 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;; 14487 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; 14488 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; 14489 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; 14490 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; 14491 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;; 14492 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;; 14493 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;; 14494 bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;; 14495 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; 14496 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;; 14497 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; 14498 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; 14499 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14500 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14501 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;; 14502 bfd_pyramid_arch) ;; 14503 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; 14504 bfd_romp_arch) ;; 14505 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; 14506 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14507 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";; 14508 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; 14509 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; 14510 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; 14511 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;; 14512 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; 14513 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; 14514 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; 14515 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; 14516 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; 14517 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;; 14518 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;; 14519 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;; 14520 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14521 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14522 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14523 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14524 bfd_vax_arch) ta="$ta vax-dis.lo" ;; 14525 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;; 14526 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;; 14527 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;; 14528 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; 14529 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; 14530 bfd_z80_arch) ta="$ta z80-dis.lo" ;; 14531 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; 14532 bfd_bpf_arch) ta="$ta bpf-dis.lo bpf-opc.lo" ;; 14533 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;; 14534 14535 "") ;; 14536 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;; 14537 esac 14538 done 14539 14540 if test $using_cgen = yes ; then 14541 ta="$ta $cgen_files" 14542 fi 14543 14544 # Weed out duplicate .o files. 14545 f="" 14546 for i in $ta ; do 14547 case " $f " in 14548 *" $i "*) ;; 14549 *) f="$f $i" ;; 14550 esac 14551 done 14552 ta="$f" 14553 14554 # And duplicate -D flags. 14555 f="" 14556 for i in $archdefs ; do 14557 case " $f " in 14558 *" $i "*) ;; 14559 *) f="$f $i" ;; 14560 esac 14561 done 14562 archdefs="$f" 14563 14564 BFD_MACHINES="$ta" 14565 14566else # all_targets is true 14567 archdefs=-DARCH_all 14568 if test "$enable_64_bit_bfd" = "yes" ; then 14569 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)' 14570 else 14571 BFD_MACHINES='$(ALL32_MACHINES)' 14572 fi 14573fi 14574 14575 14576 14577 14578ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" 14579 14580cat >confcache <<\_ACEOF 14581# This file is a shell script that caches the results of configure 14582# tests run on this system so they can be shared between configure 14583# scripts and configure runs, see configure's option --config-cache. 14584# It is not useful on other systems. If it contains results you don't 14585# want to keep, you may remove or edit it. 14586# 14587# config.status only pays attention to the cache file if you give it 14588# the --recheck option to rerun configure. 14589# 14590# `ac_cv_env_foo' variables (set or unset) will be overridden when 14591# loading this file, other *unset* `ac_cv_foo' will be assigned the 14592# following values. 14593 14594_ACEOF 14595 14596# The following way of writing the cache mishandles newlines in values, 14597# but we know of no workaround that is simple, portable, and efficient. 14598# So, we kill variables containing newlines. 14599# Ultrix sh set writes to stderr and can't be redirected directly, 14600# and sets the high bit in the cache file unless we assign to the vars. 14601( 14602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14603 eval ac_val=\$$ac_var 14604 case $ac_val in #( 14605 *${as_nl}*) 14606 case $ac_var in #( 14607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14609 esac 14610 case $ac_var in #( 14611 _ | IFS | as_nl) ;; #( 14612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14613 *) { eval $ac_var=; unset $ac_var;} ;; 14614 esac ;; 14615 esac 14616 done 14617 14618 (set) 2>&1 | 14619 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14620 *${as_nl}ac_space=\ *) 14621 # `set' does not quote correctly, so add quotes: double-quote 14622 # substitution turns \\\\ into \\, and sed turns \\ into \. 14623 sed -n \ 14624 "s/'/'\\\\''/g; 14625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14626 ;; #( 14627 *) 14628 # `set' quotes correctly as required by POSIX, so do not add quotes. 14629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14630 ;; 14631 esac | 14632 sort 14633) | 14634 sed ' 14635 /^ac_cv_env_/b end 14636 t clear 14637 :clear 14638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14639 t end 14640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14641 :end' >>confcache 14642if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14643 if test -w "$cache_file"; then 14644 if test "x$cache_file" != "x/dev/null"; then 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14646$as_echo "$as_me: updating cache $cache_file" >&6;} 14647 if test ! -f "$cache_file" || test -h "$cache_file"; then 14648 cat confcache >"$cache_file" 14649 else 14650 case $cache_file in #( 14651 */* | ?:*) 14652 mv -f confcache "$cache_file"$$ && 14653 mv -f "$cache_file"$$ "$cache_file" ;; #( 14654 *) 14655 mv -f confcache "$cache_file" ;; 14656 esac 14657 fi 14658 fi 14659 else 14660 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14661$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14662 fi 14663fi 14664rm -f confcache 14665 14666test "x$prefix" = xNONE && prefix=$ac_default_prefix 14667# Let make expand exec_prefix. 14668test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14669 14670DEFS=-DHAVE_CONFIG_H 14671 14672ac_libobjs= 14673ac_ltlibobjs= 14674U= 14675for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14676 # 1. Remove the extension, and $U if already installed. 14677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14678 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14680 # will be set to the directory where LIBOBJS objects are built. 14681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14683done 14684LIBOBJS=$ac_libobjs 14685 14686LTLIBOBJS=$ac_ltlibobjs 14687 14688 14689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14690$as_echo_n "checking that generated files are newer than configure... " >&6; } 14691 if test -n "$am_sleep_pid"; then 14692 # Hide warnings about reused PIDs. 14693 wait $am_sleep_pid 2>/dev/null 14694 fi 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14696$as_echo "done" >&6; } 14697 if test -n "$EXEEXT"; then 14698 am__EXEEXT_TRUE= 14699 am__EXEEXT_FALSE='#' 14700else 14701 am__EXEEXT_TRUE='#' 14702 am__EXEEXT_FALSE= 14703fi 14704 14705if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14706 as_fn_error $? "conditional \"AMDEP\" was never defined. 14707Usually this means the macro was only invoked conditionally." "$LINENO" 5 14708fi 14709if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14710 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14711Usually this means the macro was only invoked conditionally." "$LINENO" 5 14712fi 14713if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14714 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14715Usually this means the macro was only invoked conditionally." "$LINENO" 5 14716fi 14717if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 14718 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 14719Usually this means the macro was only invoked conditionally." "$LINENO" 5 14720fi 14721if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then 14722 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined. 14723Usually this means the macro was only invoked conditionally." "$LINENO" 5 14724fi 14725if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then 14726 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined. 14727Usually this means the macro was only invoked conditionally." "$LINENO" 5 14728fi 14729 14730: "${CONFIG_STATUS=./config.status}" 14731ac_write_fail=0 14732ac_clean_files_save=$ac_clean_files 14733ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14734{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14735$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14736as_write_fail=0 14737cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14738#! $SHELL 14739# Generated by $as_me. 14740# Run this file to recreate the current configuration. 14741# Compiler output produced by configure, useful for debugging 14742# configure, is in config.log if it exists. 14743 14744debug=false 14745ac_cs_recheck=false 14746ac_cs_silent=false 14747 14748SHELL=\${CONFIG_SHELL-$SHELL} 14749export SHELL 14750_ASEOF 14751cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14752## -------------------- ## 14753## M4sh Initialization. ## 14754## -------------------- ## 14755 14756# Be more Bourne compatible 14757DUALCASE=1; export DUALCASE # for MKS sh 14758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14759 emulate sh 14760 NULLCMD=: 14761 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14762 # is contrary to our usage. Disable this feature. 14763 alias -g '${1+"$@"}'='"$@"' 14764 setopt NO_GLOB_SUBST 14765else 14766 case `(set -o) 2>/dev/null` in #( 14767 *posix*) : 14768 set -o posix ;; #( 14769 *) : 14770 ;; 14771esac 14772fi 14773 14774 14775as_nl=' 14776' 14777export as_nl 14778# Printing a long string crashes Solaris 7 /usr/bin/printf. 14779as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14780as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14781as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14782# Prefer a ksh shell builtin over an external printf program on Solaris, 14783# but without wasting forks for bash or zsh. 14784if test -z "$BASH_VERSION$ZSH_VERSION" \ 14785 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14786 as_echo='print -r --' 14787 as_echo_n='print -rn --' 14788elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14789 as_echo='printf %s\n' 14790 as_echo_n='printf %s' 14791else 14792 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14793 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14794 as_echo_n='/usr/ucb/echo -n' 14795 else 14796 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14797 as_echo_n_body='eval 14798 arg=$1; 14799 case $arg in #( 14800 *"$as_nl"*) 14801 expr "X$arg" : "X\\(.*\\)$as_nl"; 14802 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14803 esac; 14804 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14805 ' 14806 export as_echo_n_body 14807 as_echo_n='sh -c $as_echo_n_body as_echo' 14808 fi 14809 export as_echo_body 14810 as_echo='sh -c $as_echo_body as_echo' 14811fi 14812 14813# The user is always right. 14814if test "${PATH_SEPARATOR+set}" != set; then 14815 PATH_SEPARATOR=: 14816 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14817 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14818 PATH_SEPARATOR=';' 14819 } 14820fi 14821 14822 14823# IFS 14824# We need space, tab and new line, in precisely that order. Quoting is 14825# there to prevent editors from complaining about space-tab. 14826# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14827# splitting by setting IFS to empty value.) 14828IFS=" "" $as_nl" 14829 14830# Find who we are. Look in the path if we contain no directory separator. 14831as_myself= 14832case $0 in #(( 14833 *[\\/]* ) as_myself=$0 ;; 14834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14835for as_dir in $PATH 14836do 14837 IFS=$as_save_IFS 14838 test -z "$as_dir" && as_dir=. 14839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14840 done 14841IFS=$as_save_IFS 14842 14843 ;; 14844esac 14845# We did not find ourselves, most probably we were run as `sh COMMAND' 14846# in which case we are not to be found in the path. 14847if test "x$as_myself" = x; then 14848 as_myself=$0 14849fi 14850if test ! -f "$as_myself"; then 14851 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14852 exit 1 14853fi 14854 14855# Unset variables that we do not need and which cause bugs (e.g. in 14856# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14857# suppresses any "Segmentation fault" message there. '((' could 14858# trigger a bug in pdksh 5.2.14. 14859for as_var in BASH_ENV ENV MAIL MAILPATH 14860do eval test x\${$as_var+set} = xset \ 14861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14862done 14863PS1='$ ' 14864PS2='> ' 14865PS4='+ ' 14866 14867# NLS nuisances. 14868LC_ALL=C 14869export LC_ALL 14870LANGUAGE=C 14871export LANGUAGE 14872 14873# CDPATH. 14874(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14875 14876 14877# as_fn_error STATUS ERROR [LINENO LOG_FD] 14878# ---------------------------------------- 14879# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14880# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14881# script with STATUS, using 1 if that was 0. 14882as_fn_error () 14883{ 14884 as_status=$1; test $as_status -eq 0 && as_status=1 14885 if test "$4"; then 14886 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14887 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14888 fi 14889 $as_echo "$as_me: error: $2" >&2 14890 as_fn_exit $as_status 14891} # as_fn_error 14892 14893 14894# as_fn_set_status STATUS 14895# ----------------------- 14896# Set $? to STATUS, without forking. 14897as_fn_set_status () 14898{ 14899 return $1 14900} # as_fn_set_status 14901 14902# as_fn_exit STATUS 14903# ----------------- 14904# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14905as_fn_exit () 14906{ 14907 set +e 14908 as_fn_set_status $1 14909 exit $1 14910} # as_fn_exit 14911 14912# as_fn_unset VAR 14913# --------------- 14914# Portably unset VAR. 14915as_fn_unset () 14916{ 14917 { eval $1=; unset $1;} 14918} 14919as_unset=as_fn_unset 14920# as_fn_append VAR VALUE 14921# ---------------------- 14922# Append the text in VALUE to the end of the definition contained in VAR. Take 14923# advantage of any shell optimizations that allow amortized linear growth over 14924# repeated appends, instead of the typical quadratic growth present in naive 14925# implementations. 14926if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14927 eval 'as_fn_append () 14928 { 14929 eval $1+=\$2 14930 }' 14931else 14932 as_fn_append () 14933 { 14934 eval $1=\$$1\$2 14935 } 14936fi # as_fn_append 14937 14938# as_fn_arith ARG... 14939# ------------------ 14940# Perform arithmetic evaluation on the ARGs, and store the result in the 14941# global $as_val. Take advantage of shells that can avoid forks. The arguments 14942# must be portable across $(()) and expr. 14943if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14944 eval 'as_fn_arith () 14945 { 14946 as_val=$(( $* )) 14947 }' 14948else 14949 as_fn_arith () 14950 { 14951 as_val=`expr "$@" || test $? -eq 1` 14952 } 14953fi # as_fn_arith 14954 14955 14956if expr a : '\(a\)' >/dev/null 2>&1 && 14957 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14958 as_expr=expr 14959else 14960 as_expr=false 14961fi 14962 14963if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14964 as_basename=basename 14965else 14966 as_basename=false 14967fi 14968 14969if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14970 as_dirname=dirname 14971else 14972 as_dirname=false 14973fi 14974 14975as_me=`$as_basename -- "$0" || 14976$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14977 X"$0" : 'X\(//\)$' \| \ 14978 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14979$as_echo X/"$0" | 14980 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14981 s//\1/ 14982 q 14983 } 14984 /^X\/\(\/\/\)$/{ 14985 s//\1/ 14986 q 14987 } 14988 /^X\/\(\/\).*/{ 14989 s//\1/ 14990 q 14991 } 14992 s/.*/./; q'` 14993 14994# Avoid depending upon Character Ranges. 14995as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14996as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14997as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14998as_cr_digits='0123456789' 14999as_cr_alnum=$as_cr_Letters$as_cr_digits 15000 15001ECHO_C= ECHO_N= ECHO_T= 15002case `echo -n x` in #((((( 15003-n*) 15004 case `echo 'xy\c'` in 15005 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15006 xy) ECHO_C='\c';; 15007 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15008 ECHO_T=' ';; 15009 esac;; 15010*) 15011 ECHO_N='-n';; 15012esac 15013 15014rm -f conf$$ conf$$.exe conf$$.file 15015if test -d conf$$.dir; then 15016 rm -f conf$$.dir/conf$$.file 15017else 15018 rm -f conf$$.dir 15019 mkdir conf$$.dir 2>/dev/null 15020fi 15021if (echo >conf$$.file) 2>/dev/null; then 15022 if ln -s conf$$.file conf$$ 2>/dev/null; then 15023 as_ln_s='ln -s' 15024 # ... but there are two gotchas: 15025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15027 # In both cases, we have to default to `cp -pR'. 15028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15029 as_ln_s='cp -pR' 15030 elif ln conf$$.file conf$$ 2>/dev/null; then 15031 as_ln_s=ln 15032 else 15033 as_ln_s='cp -pR' 15034 fi 15035else 15036 as_ln_s='cp -pR' 15037fi 15038rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15039rmdir conf$$.dir 2>/dev/null 15040 15041 15042# as_fn_mkdir_p 15043# ------------- 15044# Create "$as_dir" as a directory, including parents if necessary. 15045as_fn_mkdir_p () 15046{ 15047 15048 case $as_dir in #( 15049 -*) as_dir=./$as_dir;; 15050 esac 15051 test -d "$as_dir" || eval $as_mkdir_p || { 15052 as_dirs= 15053 while :; do 15054 case $as_dir in #( 15055 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15056 *) as_qdir=$as_dir;; 15057 esac 15058 as_dirs="'$as_qdir' $as_dirs" 15059 as_dir=`$as_dirname -- "$as_dir" || 15060$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15061 X"$as_dir" : 'X\(//\)[^/]' \| \ 15062 X"$as_dir" : 'X\(//\)$' \| \ 15063 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15064$as_echo X"$as_dir" | 15065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15066 s//\1/ 15067 q 15068 } 15069 /^X\(\/\/\)[^/].*/{ 15070 s//\1/ 15071 q 15072 } 15073 /^X\(\/\/\)$/{ 15074 s//\1/ 15075 q 15076 } 15077 /^X\(\/\).*/{ 15078 s//\1/ 15079 q 15080 } 15081 s/.*/./; q'` 15082 test -d "$as_dir" && break 15083 done 15084 test -z "$as_dirs" || eval "mkdir $as_dirs" 15085 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15086 15087 15088} # as_fn_mkdir_p 15089if mkdir -p . 2>/dev/null; then 15090 as_mkdir_p='mkdir -p "$as_dir"' 15091else 15092 test -d ./-p && rmdir ./-p 15093 as_mkdir_p=false 15094fi 15095 15096 15097# as_fn_executable_p FILE 15098# ----------------------- 15099# Test if FILE is an executable regular file. 15100as_fn_executable_p () 15101{ 15102 test -f "$1" && test -x "$1" 15103} # as_fn_executable_p 15104as_test_x='test -x' 15105as_executable_p=as_fn_executable_p 15106 15107# Sed expression to map a string onto a valid CPP name. 15108as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15109 15110# Sed expression to map a string onto a valid variable name. 15111as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15112 15113 15114exec 6>&1 15115## ----------------------------------- ## 15116## Main body of $CONFIG_STATUS script. ## 15117## ----------------------------------- ## 15118_ASEOF 15119test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15120 15121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15122# Save the log message, to keep $0 and so on meaningful, and to 15123# report actual input values of CONFIG_FILES etc. instead of their 15124# values after options handling. 15125ac_log=" 15126This file was extended by opcodes $as_me 2.42, which was 15127generated by GNU Autoconf 2.69. Invocation command line was 15128 15129 CONFIG_FILES = $CONFIG_FILES 15130 CONFIG_HEADERS = $CONFIG_HEADERS 15131 CONFIG_LINKS = $CONFIG_LINKS 15132 CONFIG_COMMANDS = $CONFIG_COMMANDS 15133 $ $0 $@ 15134 15135on `(hostname || uname -n) 2>/dev/null | sed 1q` 15136" 15137 15138_ACEOF 15139 15140case $ac_config_files in *" 15141"*) set x $ac_config_files; shift; ac_config_files=$*;; 15142esac 15143 15144case $ac_config_headers in *" 15145"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15146esac 15147 15148 15149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15150# Files that config.status was made for. 15151config_files="$ac_config_files" 15152config_headers="$ac_config_headers" 15153config_commands="$ac_config_commands" 15154 15155_ACEOF 15156 15157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15158ac_cs_usage="\ 15159\`$as_me' instantiates files and other configuration actions 15160from templates according to the current configuration. Unless the files 15161and actions are specified as TAGs, all are instantiated by default. 15162 15163Usage: $0 [OPTION]... [TAG]... 15164 15165 -h, --help print this help, then exit 15166 -V, --version print version number and configuration settings, then exit 15167 --config print configuration, then exit 15168 -q, --quiet, --silent 15169 do not print progress messages 15170 -d, --debug don't remove temporary files 15171 --recheck update $as_me by reconfiguring in the same conditions 15172 --file=FILE[:TEMPLATE] 15173 instantiate the configuration file FILE 15174 --header=FILE[:TEMPLATE] 15175 instantiate the configuration header FILE 15176 15177Configuration files: 15178$config_files 15179 15180Configuration headers: 15181$config_headers 15182 15183Configuration commands: 15184$config_commands 15185 15186Report bugs to the package provider." 15187 15188_ACEOF 15189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15190ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15191ac_cs_version="\\ 15192opcodes config.status 2.42 15193configured by $0, generated by GNU Autoconf 2.69, 15194 with options \\"\$ac_cs_config\\" 15195 15196Copyright (C) 2012 Free Software Foundation, Inc. 15197This config.status script is free software; the Free Software Foundation 15198gives unlimited permission to copy, distribute and modify it." 15199 15200ac_pwd='$ac_pwd' 15201srcdir='$srcdir' 15202INSTALL='$INSTALL' 15203MKDIR_P='$MKDIR_P' 15204AWK='$AWK' 15205test -n "\$AWK" || AWK=awk 15206_ACEOF 15207 15208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15209# The default lists apply if the user does not specify any file. 15210ac_need_defaults=: 15211while test $# != 0 15212do 15213 case $1 in 15214 --*=?*) 15215 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15216 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15217 ac_shift=: 15218 ;; 15219 --*=) 15220 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15221 ac_optarg= 15222 ac_shift=: 15223 ;; 15224 *) 15225 ac_option=$1 15226 ac_optarg=$2 15227 ac_shift=shift 15228 ;; 15229 esac 15230 15231 case $ac_option in 15232 # Handling of the options. 15233 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15234 ac_cs_recheck=: ;; 15235 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15236 $as_echo "$ac_cs_version"; exit ;; 15237 --config | --confi | --conf | --con | --co | --c ) 15238 $as_echo "$ac_cs_config"; exit ;; 15239 --debug | --debu | --deb | --de | --d | -d ) 15240 debug=: ;; 15241 --file | --fil | --fi | --f ) 15242 $ac_shift 15243 case $ac_optarg in 15244 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15245 '') as_fn_error $? "missing file argument" ;; 15246 esac 15247 as_fn_append CONFIG_FILES " '$ac_optarg'" 15248 ac_need_defaults=false;; 15249 --header | --heade | --head | --hea ) 15250 $ac_shift 15251 case $ac_optarg in 15252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15253 esac 15254 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15255 ac_need_defaults=false;; 15256 --he | --h) 15257 # Conflict between --help and --header 15258 as_fn_error $? "ambiguous option: \`$1' 15259Try \`$0 --help' for more information.";; 15260 --help | --hel | -h ) 15261 $as_echo "$ac_cs_usage"; exit ;; 15262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15263 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15264 ac_cs_silent=: ;; 15265 15266 # This is an error. 15267 -*) as_fn_error $? "unrecognized option: \`$1' 15268Try \`$0 --help' for more information." ;; 15269 15270 *) as_fn_append ac_config_targets " $1" 15271 ac_need_defaults=false ;; 15272 15273 esac 15274 shift 15275done 15276 15277ac_configure_extra_args= 15278 15279if $ac_cs_silent; then 15280 exec 6>/dev/null 15281 ac_configure_extra_args="$ac_configure_extra_args --silent" 15282fi 15283 15284_ACEOF 15285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15286if \$ac_cs_recheck; then 15287 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15288 shift 15289 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15290 CONFIG_SHELL='$SHELL' 15291 export CONFIG_SHELL 15292 exec "\$@" 15293fi 15294 15295_ACEOF 15296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15297exec 5>>config.log 15298{ 15299 echo 15300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15301## Running $as_me. ## 15302_ASBOX 15303 $as_echo "$ac_log" 15304} >&5 15305 15306_ACEOF 15307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15308# 15309# INIT-COMMANDS 15310# 15311AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15312 15313 15314# The HP-UX ksh and POSIX shell print the target directory to stdout 15315# if CDPATH is set. 15316(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15317 15318sed_quote_subst='$sed_quote_subst' 15319double_quote_subst='$double_quote_subst' 15320delay_variable_subst='$delay_variable_subst' 15321enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15322macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15323macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15324enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15325pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15326enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15327SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15328ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15329host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15330host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15331host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15332build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15333build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15334build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15335SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15336Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15337GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15338EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15339FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15340LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15341NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15342LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15343max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15344ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15345exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15346lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15347lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15348lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15349reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15350reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15351OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15352deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15353file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15354AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15355AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15356STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15357RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15358old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15359old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15360old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15361lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15362CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15363CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15364compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15365GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15366lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15367lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15368lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15369lt_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"`' 15370objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15371MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15372lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15373lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15374lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15375lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15376lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15377need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15378DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15379NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15380LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15381OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15382OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15383libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15384shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15385extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15386archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15387enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15388export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15389whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15390compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15391old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15392old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15393archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15394archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15395module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15396module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15397with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15398allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15399no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15400hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15401hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15402hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15403hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15404hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15405hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15406hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15407hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15408inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15409link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15410fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15411always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15412export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15413exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15414include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15415prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15416file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15417variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15418need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15419need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15420version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15421runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15422shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15423shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15424libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15425library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15426soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15427install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15428postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15429postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15430finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15431finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15432hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15433sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15434sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15435hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15436enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15437enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15438enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15439old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15440striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15441 15442LTCC='$LTCC' 15443LTCFLAGS='$LTCFLAGS' 15444compiler='$compiler_DEFAULT' 15445 15446# A function that is used when there is no print builtin or printf. 15447func_fallback_echo () 15448{ 15449 eval 'cat <<_LTECHO_EOF 15450\$1 15451_LTECHO_EOF' 15452} 15453 15454# Quote evaled strings. 15455for var in SHELL \ 15456ECHO \ 15457SED \ 15458GREP \ 15459EGREP \ 15460FGREP \ 15461LD \ 15462NM \ 15463LN_S \ 15464lt_SP2NL \ 15465lt_NL2SP \ 15466reload_flag \ 15467OBJDUMP \ 15468deplibs_check_method \ 15469file_magic_cmd \ 15470AR \ 15471AR_FLAGS \ 15472STRIP \ 15473RANLIB \ 15474CC \ 15475CFLAGS \ 15476compiler \ 15477lt_cv_sys_global_symbol_pipe \ 15478lt_cv_sys_global_symbol_to_cdecl \ 15479lt_cv_sys_global_symbol_to_c_name_address \ 15480lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15481lt_prog_compiler_no_builtin_flag \ 15482lt_prog_compiler_wl \ 15483lt_prog_compiler_pic \ 15484lt_prog_compiler_static \ 15485lt_cv_prog_compiler_c_o \ 15486need_locks \ 15487DSYMUTIL \ 15488NMEDIT \ 15489LIPO \ 15490OTOOL \ 15491OTOOL64 \ 15492shrext_cmds \ 15493export_dynamic_flag_spec \ 15494whole_archive_flag_spec \ 15495compiler_needs_object \ 15496with_gnu_ld \ 15497allow_undefined_flag \ 15498no_undefined_flag \ 15499hardcode_libdir_flag_spec \ 15500hardcode_libdir_flag_spec_ld \ 15501hardcode_libdir_separator \ 15502fix_srcfile_path \ 15503exclude_expsyms \ 15504include_expsyms \ 15505file_list_spec \ 15506variables_saved_for_relink \ 15507libname_spec \ 15508library_names_spec \ 15509soname_spec \ 15510install_override_mode \ 15511finish_eval \ 15512old_striplib \ 15513striplib; do 15514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15515 *[\\\\\\\`\\"\\\$]*) 15516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15517 ;; 15518 *) 15519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15520 ;; 15521 esac 15522done 15523 15524# Double-quote double-evaled strings. 15525for var in reload_cmds \ 15526old_postinstall_cmds \ 15527old_postuninstall_cmds \ 15528old_archive_cmds \ 15529extract_expsyms_cmds \ 15530old_archive_from_new_cmds \ 15531old_archive_from_expsyms_cmds \ 15532archive_cmds \ 15533archive_expsym_cmds \ 15534module_cmds \ 15535module_expsym_cmds \ 15536export_symbols_cmds \ 15537prelink_cmds \ 15538postinstall_cmds \ 15539postuninstall_cmds \ 15540finish_cmds \ 15541sys_lib_search_path_spec \ 15542sys_lib_dlsearch_path_spec; do 15543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15544 *[\\\\\\\`\\"\\\$]*) 15545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15546 ;; 15547 *) 15548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15549 ;; 15550 esac 15551done 15552 15553ac_aux_dir='$ac_aux_dir' 15554xsi_shell='$xsi_shell' 15555lt_shell_append='$lt_shell_append' 15556 15557# See if we are running on zsh, and set the options which allow our 15558# commands through without removal of \ escapes INIT. 15559if test -n "\${ZSH_VERSION+set}" ; then 15560 setopt NO_GLOB_SUBST 15561fi 15562 15563 15564 PACKAGE='$PACKAGE' 15565 VERSION='$VERSION' 15566 TIMESTAMP='$TIMESTAMP' 15567 RM='$RM' 15568 ofile='$ofile' 15569 15570 15571 15572# Capture the value of obsolete ALL_LINGUAS because we need it to compute 15573 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 15574 # from automake. 15575 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15576 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15577 LINGUAS="${LINGUAS-%UNSET%}" 15578 15579# Capture the value of obsolete ALL_LINGUAS because we need it to compute 15580 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 15581 # from automake. 15582 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15583 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15584 LINGUAS="${LINGUAS-%UNSET%}" 15585 15586 15587_ACEOF 15588 15589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15590 15591# Handling of arguments. 15592for ac_config_target in $ac_config_targets 15593do 15594 case $ac_config_target in 15595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15597 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 15598 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15599 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; 15600 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15601 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 15602 15603 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15604 esac 15605done 15606 15607 15608# If the user did not use the arguments to specify the items to instantiate, 15609# then the envvar interface is used. Set only those that are not. 15610# We use the long form for the default assignment because of an extremely 15611# bizarre bug on SunOS 4.1.3. 15612if $ac_need_defaults; then 15613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15616fi 15617 15618# Have a temporary directory for convenience. Make it in the build tree 15619# simply because there is no reason against having it here, and in addition, 15620# creating and moving files from /tmp can sometimes cause problems. 15621# Hook for its removal unless debugging. 15622# Note that there is a small window in which the directory will not be cleaned: 15623# after its creation but before its name has been assigned to `$tmp'. 15624$debug || 15625{ 15626 tmp= ac_tmp= 15627 trap 'exit_status=$? 15628 : "${ac_tmp:=$tmp}" 15629 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15630' 0 15631 trap 'as_fn_exit 1' 1 2 13 15 15632} 15633# Create a (secure) tmp directory for tmp files. 15634 15635{ 15636 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15637 test -d "$tmp" 15638} || 15639{ 15640 tmp=./conf$$-$RANDOM 15641 (umask 077 && mkdir "$tmp") 15642} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15643ac_tmp=$tmp 15644 15645# Set up the scripts for CONFIG_FILES section. 15646# No need to generate them if there are no CONFIG_FILES. 15647# This happens for instance with `./config.status config.h'. 15648if test -n "$CONFIG_FILES"; then 15649 15650 15651ac_cr=`echo X | tr X '\015'` 15652# On cygwin, bash can eat \r inside `` if the user requested igncr. 15653# But we know of no other shell where ac_cr would be empty at this 15654# point, so we can use a bashism as a fallback. 15655if test "x$ac_cr" = x; then 15656 eval ac_cr=\$\'\\r\' 15657fi 15658ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15659if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15660 ac_cs_awk_cr='\\r' 15661else 15662 ac_cs_awk_cr=$ac_cr 15663fi 15664 15665echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15666_ACEOF 15667 15668 15669{ 15670 echo "cat >conf$$subs.awk <<_ACEOF" && 15671 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15672 echo "_ACEOF" 15673} >conf$$subs.sh || 15674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15675ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15676ac_delim='%!_!# ' 15677for ac_last_try in false false false false false :; do 15678 . ./conf$$subs.sh || 15679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15680 15681 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15682 if test $ac_delim_n = $ac_delim_num; then 15683 break 15684 elif $ac_last_try; then 15685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15686 else 15687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15688 fi 15689done 15690rm -f conf$$subs.sh 15691 15692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15693cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15694_ACEOF 15695sed -n ' 15696h 15697s/^/S["/; s/!.*/"]=/ 15698p 15699g 15700s/^[^!]*!// 15701:repl 15702t repl 15703s/'"$ac_delim"'$// 15704t delim 15705:nl 15706h 15707s/\(.\{148\}\)..*/\1/ 15708t more1 15709s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15710p 15711n 15712b repl 15713:more1 15714s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15715p 15716g 15717s/.\{148\}// 15718t nl 15719:delim 15720h 15721s/\(.\{148\}\)..*/\1/ 15722t more2 15723s/["\\]/\\&/g; s/^/"/; s/$/"/ 15724p 15725b 15726:more2 15727s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15728p 15729g 15730s/.\{148\}// 15731t delim 15732' <conf$$subs.awk | sed ' 15733/^[^""]/{ 15734 N 15735 s/\n// 15736} 15737' >>$CONFIG_STATUS || ac_write_fail=1 15738rm -f conf$$subs.awk 15739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15740_ACAWK 15741cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15742 for (key in S) S_is_set[key] = 1 15743 FS = "" 15744 15745} 15746{ 15747 line = $ 0 15748 nfields = split(line, field, "@") 15749 substed = 0 15750 len = length(field[1]) 15751 for (i = 2; i < nfields; i++) { 15752 key = field[i] 15753 keylen = length(key) 15754 if (S_is_set[key]) { 15755 value = S[key] 15756 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15757 len += length(value) + length(field[++i]) 15758 substed = 1 15759 } else 15760 len += 1 + keylen 15761 } 15762 15763 print line 15764} 15765 15766_ACAWK 15767_ACEOF 15768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15769if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15770 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15771else 15772 cat 15773fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15774 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15775_ACEOF 15776 15777# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15778# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15779# trailing colons and then remove the whole line if VPATH becomes empty 15780# (actually we leave an empty line to preserve line numbers). 15781if test "x$srcdir" = x.; then 15782 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15783h 15784s/// 15785s/^/:/ 15786s/[ ]*$/:/ 15787s/:\$(srcdir):/:/g 15788s/:\${srcdir}:/:/g 15789s/:@srcdir@:/:/g 15790s/^:*// 15791s/:*$// 15792x 15793s/\(=[ ]*\).*/\1/ 15794G 15795s/\n// 15796s/^[^=]*=[ ]*$// 15797}' 15798fi 15799 15800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15801fi # test -n "$CONFIG_FILES" 15802 15803# Set up the scripts for CONFIG_HEADERS section. 15804# No need to generate them if there are no CONFIG_HEADERS. 15805# This happens for instance with `./config.status Makefile'. 15806if test -n "$CONFIG_HEADERS"; then 15807cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15808BEGIN { 15809_ACEOF 15810 15811# Transform confdefs.h into an awk script `defines.awk', embedded as 15812# here-document in config.status, that substitutes the proper values into 15813# config.h.in to produce config.h. 15814 15815# Create a delimiter string that does not exist in confdefs.h, to ease 15816# handling of long lines. 15817ac_delim='%!_!# ' 15818for ac_last_try in false false :; do 15819 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15820 if test -z "$ac_tt"; then 15821 break 15822 elif $ac_last_try; then 15823 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15824 else 15825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15826 fi 15827done 15828 15829# For the awk script, D is an array of macro values keyed by name, 15830# likewise P contains macro parameters if any. Preserve backslash 15831# newline sequences. 15832 15833ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15834sed -n ' 15835s/.\{148\}/&'"$ac_delim"'/g 15836t rset 15837:rset 15838s/^[ ]*#[ ]*define[ ][ ]*/ / 15839t def 15840d 15841:def 15842s/\\$// 15843t bsnl 15844s/["\\]/\\&/g 15845s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15846D["\1"]=" \3"/p 15847s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15848d 15849:bsnl 15850s/["\\]/\\&/g 15851s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15852D["\1"]=" \3\\\\\\n"\\/p 15853t cont 15854s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15855t cont 15856d 15857:cont 15858n 15859s/.\{148\}/&'"$ac_delim"'/g 15860t clear 15861:clear 15862s/\\$// 15863t bsnlc 15864s/["\\]/\\&/g; s/^/"/; s/$/"/p 15865d 15866:bsnlc 15867s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15868b cont 15869' <confdefs.h | sed ' 15870s/'"$ac_delim"'/"\\\ 15871"/g' >>$CONFIG_STATUS || ac_write_fail=1 15872 15873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15874 for (key in D) D_is_set[key] = 1 15875 FS = "" 15876} 15877/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15878 line = \$ 0 15879 split(line, arg, " ") 15880 if (arg[1] == "#") { 15881 defundef = arg[2] 15882 mac1 = arg[3] 15883 } else { 15884 defundef = substr(arg[1], 2) 15885 mac1 = arg[2] 15886 } 15887 split(mac1, mac2, "(") #) 15888 macro = mac2[1] 15889 prefix = substr(line, 1, index(line, defundef) - 1) 15890 if (D_is_set[macro]) { 15891 # Preserve the white space surrounding the "#". 15892 print prefix "define", macro P[macro] D[macro] 15893 next 15894 } else { 15895 # Replace #undef with comments. This is necessary, for example, 15896 # in the case of _POSIX_SOURCE, which is predefined and required 15897 # on some systems where configure will not decide to define it. 15898 if (defundef == "undef") { 15899 print "/*", prefix defundef, macro, "*/" 15900 next 15901 } 15902 } 15903} 15904{ print } 15905_ACAWK 15906_ACEOF 15907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15908 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15909fi # test -n "$CONFIG_HEADERS" 15910 15911 15912eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15913shift 15914for ac_tag 15915do 15916 case $ac_tag in 15917 :[FHLC]) ac_mode=$ac_tag; continue;; 15918 esac 15919 case $ac_mode$ac_tag in 15920 :[FHL]*:*);; 15921 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15922 :[FH]-) ac_tag=-:-;; 15923 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15924 esac 15925 ac_save_IFS=$IFS 15926 IFS=: 15927 set x $ac_tag 15928 IFS=$ac_save_IFS 15929 shift 15930 ac_file=$1 15931 shift 15932 15933 case $ac_mode in 15934 :L) ac_source=$1;; 15935 :[FH]) 15936 ac_file_inputs= 15937 for ac_f 15938 do 15939 case $ac_f in 15940 -) ac_f="$ac_tmp/stdin";; 15941 *) # Look for the file first in the build tree, then in the source tree 15942 # (if the path is not absolute). The absolute path cannot be DOS-style, 15943 # because $ac_f cannot contain `:'. 15944 test -f "$ac_f" || 15945 case $ac_f in 15946 [\\/$]*) false;; 15947 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15948 esac || 15949 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15950 esac 15951 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15952 as_fn_append ac_file_inputs " '$ac_f'" 15953 done 15954 15955 # Let's still pretend it is `configure' which instantiates (i.e., don't 15956 # use $as_me), people would be surprised to read: 15957 # /* config.h. Generated by config.status. */ 15958 configure_input='Generated from '` 15959 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15960 `' by configure.' 15961 if test x"$ac_file" != x-; then 15962 configure_input="$ac_file. $configure_input" 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15964$as_echo "$as_me: creating $ac_file" >&6;} 15965 fi 15966 # Neutralize special characters interpreted by sed in replacement strings. 15967 case $configure_input in #( 15968 *\&* | *\|* | *\\* ) 15969 ac_sed_conf_input=`$as_echo "$configure_input" | 15970 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15971 *) ac_sed_conf_input=$configure_input;; 15972 esac 15973 15974 case $ac_tag in 15975 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15977 esac 15978 ;; 15979 esac 15980 15981 ac_dir=`$as_dirname -- "$ac_file" || 15982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15983 X"$ac_file" : 'X\(//\)[^/]' \| \ 15984 X"$ac_file" : 'X\(//\)$' \| \ 15985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15986$as_echo X"$ac_file" | 15987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15988 s//\1/ 15989 q 15990 } 15991 /^X\(\/\/\)[^/].*/{ 15992 s//\1/ 15993 q 15994 } 15995 /^X\(\/\/\)$/{ 15996 s//\1/ 15997 q 15998 } 15999 /^X\(\/\).*/{ 16000 s//\1/ 16001 q 16002 } 16003 s/.*/./; q'` 16004 as_dir="$ac_dir"; as_fn_mkdir_p 16005 ac_builddir=. 16006 16007case "$ac_dir" in 16008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16009*) 16010 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16011 # A ".." for each directory in $ac_dir_suffix. 16012 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16013 case $ac_top_builddir_sub in 16014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16016 esac ;; 16017esac 16018ac_abs_top_builddir=$ac_pwd 16019ac_abs_builddir=$ac_pwd$ac_dir_suffix 16020# for backward compatibility: 16021ac_top_builddir=$ac_top_build_prefix 16022 16023case $srcdir in 16024 .) # We are building in place. 16025 ac_srcdir=. 16026 ac_top_srcdir=$ac_top_builddir_sub 16027 ac_abs_top_srcdir=$ac_pwd ;; 16028 [\\/]* | ?:[\\/]* ) # Absolute name. 16029 ac_srcdir=$srcdir$ac_dir_suffix; 16030 ac_top_srcdir=$srcdir 16031 ac_abs_top_srcdir=$srcdir ;; 16032 *) # Relative name. 16033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16034 ac_top_srcdir=$ac_top_build_prefix$srcdir 16035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16036esac 16037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16038 16039 16040 case $ac_mode in 16041 :F) 16042 # 16043 # CONFIG_FILE 16044 # 16045 16046 case $INSTALL in 16047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16049 esac 16050 ac_MKDIR_P=$MKDIR_P 16051 case $MKDIR_P in 16052 [\\/$]* | ?:[\\/]* ) ;; 16053 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16054 esac 16055_ACEOF 16056 16057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16058# If the template does not know about datarootdir, expand it. 16059# FIXME: This hack should be removed a few years after 2.60. 16060ac_datarootdir_hack=; ac_datarootdir_seen= 16061ac_sed_dataroot=' 16062/datarootdir/ { 16063 p 16064 q 16065} 16066/@datadir@/p 16067/@docdir@/p 16068/@infodir@/p 16069/@localedir@/p 16070/@mandir@/p' 16071case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16072*datarootdir*) ac_datarootdir_seen=yes;; 16073*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16075$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16076_ACEOF 16077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16078 ac_datarootdir_hack=' 16079 s&@datadir@&$datadir&g 16080 s&@docdir@&$docdir&g 16081 s&@infodir@&$infodir&g 16082 s&@localedir@&$localedir&g 16083 s&@mandir@&$mandir&g 16084 s&\\\${datarootdir}&$datarootdir&g' ;; 16085esac 16086_ACEOF 16087 16088# Neutralize VPATH when `$srcdir' = `.'. 16089# Shell code in configure.ac might set extrasub. 16090# FIXME: do we really want to maintain this feature? 16091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16092ac_sed_extra="$ac_vpsub 16093$extrasub 16094_ACEOF 16095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16096:t 16097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16098s|@configure_input@|$ac_sed_conf_input|;t t 16099s&@top_builddir@&$ac_top_builddir_sub&;t t 16100s&@top_build_prefix@&$ac_top_build_prefix&;t t 16101s&@srcdir@&$ac_srcdir&;t t 16102s&@abs_srcdir@&$ac_abs_srcdir&;t t 16103s&@top_srcdir@&$ac_top_srcdir&;t t 16104s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16105s&@builddir@&$ac_builddir&;t t 16106s&@abs_builddir@&$ac_abs_builddir&;t t 16107s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16108s&@INSTALL@&$ac_INSTALL&;t t 16109s&@MKDIR_P@&$ac_MKDIR_P&;t t 16110$ac_datarootdir_hack 16111" 16112eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16113 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16114 16115test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16116 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16118 "$ac_tmp/out"`; test -z "$ac_out"; } && 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16120which seems to be undefined. Please make sure it is defined" >&5 16121$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16122which seems to be undefined. Please make sure it is defined" >&2;} 16123 16124 rm -f "$ac_tmp/stdin" 16125 case $ac_file in 16126 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16127 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16128 esac \ 16129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16130 ;; 16131 :H) 16132 # 16133 # CONFIG_HEADER 16134 # 16135 if test x"$ac_file" != x-; then 16136 { 16137 $as_echo "/* $configure_input */" \ 16138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16139 } >"$ac_tmp/config.h" \ 16140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16141 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16142 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16143$as_echo "$as_me: $ac_file is unchanged" >&6;} 16144 else 16145 rm -f "$ac_file" 16146 mv "$ac_tmp/config.h" "$ac_file" \ 16147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16148 fi 16149 else 16150 $as_echo "/* $configure_input */" \ 16151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16152 || as_fn_error $? "could not create -" "$LINENO" 5 16153 fi 16154# Compute "$ac_file"'s index in $config_headers. 16155_am_arg="$ac_file" 16156_am_stamp_count=1 16157for _am_header in $config_headers :; do 16158 case $_am_header in 16159 $_am_arg | $_am_arg:* ) 16160 break ;; 16161 * ) 16162 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16163 esac 16164done 16165echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16166$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16167 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16168 X"$_am_arg" : 'X\(//\)$' \| \ 16169 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16170$as_echo X"$_am_arg" | 16171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16172 s//\1/ 16173 q 16174 } 16175 /^X\(\/\/\)[^/].*/{ 16176 s//\1/ 16177 q 16178 } 16179 /^X\(\/\/\)$/{ 16180 s//\1/ 16181 q 16182 } 16183 /^X\(\/\).*/{ 16184 s//\1/ 16185 q 16186 } 16187 s/.*/./; q'`/stamp-h$_am_stamp_count 16188 ;; 16189 16190 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16191$as_echo "$as_me: executing $ac_file commands" >&6;} 16192 ;; 16193 esac 16194 16195 16196 case $ac_file$ac_mode in 16197 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16198 # Older Autoconf quotes --file arguments for eval, but not when files 16199 # are listed without --file. Let's play safe and only enable the eval 16200 # if we detect the quoting. 16201 case $CONFIG_FILES in 16202 *\'*) eval set x "$CONFIG_FILES" ;; 16203 *) set x $CONFIG_FILES ;; 16204 esac 16205 shift 16206 for mf 16207 do 16208 # Strip MF so we end up with the name of the file. 16209 mf=`echo "$mf" | sed -e 's/:.*$//'` 16210 # Check whether this is an Automake generated Makefile or not. 16211 # We used to match only the files named 'Makefile.in', but 16212 # some people rename them; so instead we look at the file content. 16213 # Grep'ing the first line is not enough: some people post-process 16214 # each Makefile.in and add a new line on top of each file to say so. 16215 # Grep'ing the whole file is not good either: AIX grep has a line 16216 # limit of 2048, but all sed's we know have understand at least 4000. 16217 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16218 dirpart=`$as_dirname -- "$mf" || 16219$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16220 X"$mf" : 'X\(//\)[^/]' \| \ 16221 X"$mf" : 'X\(//\)$' \| \ 16222 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16223$as_echo X"$mf" | 16224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16225 s//\1/ 16226 q 16227 } 16228 /^X\(\/\/\)[^/].*/{ 16229 s//\1/ 16230 q 16231 } 16232 /^X\(\/\/\)$/{ 16233 s//\1/ 16234 q 16235 } 16236 /^X\(\/\).*/{ 16237 s//\1/ 16238 q 16239 } 16240 s/.*/./; q'` 16241 else 16242 continue 16243 fi 16244 # Extract the definition of DEPDIR, am__include, and am__quote 16245 # from the Makefile without running 'make'. 16246 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16247 test -z "$DEPDIR" && continue 16248 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16249 test -z "$am__include" && continue 16250 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16251 # Find all dependency output files, they are included files with 16252 # $(DEPDIR) in their names. We invoke sed twice because it is the 16253 # simplest approach to changing $(DEPDIR) to its actual value in the 16254 # expansion. 16255 for file in `sed -n " 16256 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16257 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16258 # Make sure the directory exists. 16259 test -f "$dirpart/$file" && continue 16260 fdir=`$as_dirname -- "$file" || 16261$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16262 X"$file" : 'X\(//\)[^/]' \| \ 16263 X"$file" : 'X\(//\)$' \| \ 16264 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16265$as_echo X"$file" | 16266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16267 s//\1/ 16268 q 16269 } 16270 /^X\(\/\/\)[^/].*/{ 16271 s//\1/ 16272 q 16273 } 16274 /^X\(\/\/\)$/{ 16275 s//\1/ 16276 q 16277 } 16278 /^X\(\/\).*/{ 16279 s//\1/ 16280 q 16281 } 16282 s/.*/./; q'` 16283 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16284 # echo "creating $dirpart/$file" 16285 echo '# dummy' > "$dirpart/$file" 16286 done 16287 done 16288} 16289 ;; 16290 "libtool":C) 16291 16292 # See if we are running on zsh, and set the options which allow our 16293 # commands through without removal of \ escapes. 16294 if test -n "${ZSH_VERSION+set}" ; then 16295 setopt NO_GLOB_SUBST 16296 fi 16297 16298 cfgfile="${ofile}T" 16299 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16300 $RM "$cfgfile" 16301 16302 cat <<_LT_EOF >> "$cfgfile" 16303#! $SHELL 16304 16305# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16306# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16307# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16308# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16309# 16310# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16311# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16312# Written by Gordon Matzigkeit, 1996 16313# 16314# This file is part of GNU Libtool. 16315# 16316# GNU Libtool is free software; you can redistribute it and/or 16317# modify it under the terms of the GNU General Public License as 16318# published by the Free Software Foundation; either version 2 of 16319# the License, or (at your option) any later version. 16320# 16321# As a special exception to the GNU General Public License, 16322# if you distribute this file as part of a program or library that 16323# is built using GNU Libtool, you may include this file under the 16324# same distribution terms that you use for the rest of that program. 16325# 16326# GNU Libtool is distributed in the hope that it will be useful, 16327# but WITHOUT ANY WARRANTY; without even the implied warranty of 16328# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16329# GNU General Public License for more details. 16330# 16331# You should have received a copy of the GNU General Public License 16332# along with GNU Libtool; see the file COPYING. If not, a copy 16333# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16334# obtained by writing to the Free Software Foundation, Inc., 16335# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16336 16337 16338# The names of the tagged configurations supported by this script. 16339available_tags="" 16340 16341# ### BEGIN LIBTOOL CONFIG 16342 16343# Whether or not to build shared libraries. 16344build_libtool_libs=$enable_shared 16345 16346# Which release of libtool.m4 was used? 16347macro_version=$macro_version 16348macro_revision=$macro_revision 16349 16350# Whether or not to build static libraries. 16351build_old_libs=$enable_static 16352 16353# What type of objects to build. 16354pic_mode=$pic_mode 16355 16356# Whether or not to optimize for fast installation. 16357fast_install=$enable_fast_install 16358 16359# Shell to use when invoking shell scripts. 16360SHELL=$lt_SHELL 16361 16362# An echo program that protects backslashes. 16363ECHO=$lt_ECHO 16364 16365# The host system. 16366host_alias=$host_alias 16367host=$host 16368host_os=$host_os 16369 16370# The build system. 16371build_alias=$build_alias 16372build=$build 16373build_os=$build_os 16374 16375# A sed program that does not truncate output. 16376SED=$lt_SED 16377 16378# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16379Xsed="\$SED -e 1s/^X//" 16380 16381# A grep program that handles long lines. 16382GREP=$lt_GREP 16383 16384# An ERE matcher. 16385EGREP=$lt_EGREP 16386 16387# A literal string matcher. 16388FGREP=$lt_FGREP 16389 16390# A BSD- or MS-compatible name lister. 16391NM=$lt_NM 16392 16393# Whether we need soft or hard links. 16394LN_S=$lt_LN_S 16395 16396# What is the maximum length of a command? 16397max_cmd_len=$max_cmd_len 16398 16399# Object file suffix (normally "o"). 16400objext=$ac_objext 16401 16402# Executable file suffix (normally ""). 16403exeext=$exeext 16404 16405# whether the shell understands "unset". 16406lt_unset=$lt_unset 16407 16408# turn spaces into newlines. 16409SP2NL=$lt_lt_SP2NL 16410 16411# turn newlines into spaces. 16412NL2SP=$lt_lt_NL2SP 16413 16414# An object symbol dumper. 16415OBJDUMP=$lt_OBJDUMP 16416 16417# Method to check whether dependent libraries are shared objects. 16418deplibs_check_method=$lt_deplibs_check_method 16419 16420# Command to use when deplibs_check_method == "file_magic". 16421file_magic_cmd=$lt_file_magic_cmd 16422 16423# The archiver. 16424AR=$lt_AR 16425AR_FLAGS=$lt_AR_FLAGS 16426 16427# A symbol stripping program. 16428STRIP=$lt_STRIP 16429 16430# Commands used to install an old-style archive. 16431RANLIB=$lt_RANLIB 16432old_postinstall_cmds=$lt_old_postinstall_cmds 16433old_postuninstall_cmds=$lt_old_postuninstall_cmds 16434 16435# Whether to use a lock for old archive extraction. 16436lock_old_archive_extraction=$lock_old_archive_extraction 16437 16438# A C compiler. 16439LTCC=$lt_CC 16440 16441# LTCC compiler flags. 16442LTCFLAGS=$lt_CFLAGS 16443 16444# Take the output of nm and produce a listing of raw symbols and C names. 16445global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16446 16447# Transform the output of nm in a proper C declaration. 16448global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16449 16450# Transform the output of nm in a C name address pair. 16451global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16452 16453# Transform the output of nm in a C name address pair when lib prefix is needed. 16454global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16455 16456# The name of the directory that contains temporary libtool files. 16457objdir=$objdir 16458 16459# Used to examine libraries when file_magic_cmd begins with "file". 16460MAGIC_CMD=$MAGIC_CMD 16461 16462# Must we lock files when doing compilation? 16463need_locks=$lt_need_locks 16464 16465# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16466DSYMUTIL=$lt_DSYMUTIL 16467 16468# Tool to change global to local symbols on Mac OS X. 16469NMEDIT=$lt_NMEDIT 16470 16471# Tool to manipulate fat objects and archives on Mac OS X. 16472LIPO=$lt_LIPO 16473 16474# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16475OTOOL=$lt_OTOOL 16476 16477# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16478OTOOL64=$lt_OTOOL64 16479 16480# Old archive suffix (normally "a"). 16481libext=$libext 16482 16483# Shared library suffix (normally ".so"). 16484shrext_cmds=$lt_shrext_cmds 16485 16486# The commands to extract the exported symbol list from a shared archive. 16487extract_expsyms_cmds=$lt_extract_expsyms_cmds 16488 16489# Variables whose values should be saved in libtool wrapper scripts and 16490# restored at link time. 16491variables_saved_for_relink=$lt_variables_saved_for_relink 16492 16493# Do we need the "lib" prefix for modules? 16494need_lib_prefix=$need_lib_prefix 16495 16496# Do we need a version for libraries? 16497need_version=$need_version 16498 16499# Library versioning type. 16500version_type=$version_type 16501 16502# Shared library runtime path variable. 16503runpath_var=$runpath_var 16504 16505# Shared library path variable. 16506shlibpath_var=$shlibpath_var 16507 16508# Is shlibpath searched before the hard-coded library search path? 16509shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16510 16511# Format of library name prefix. 16512libname_spec=$lt_libname_spec 16513 16514# List of archive names. First name is the real one, the rest are links. 16515# The last name is the one that the linker finds with -lNAME 16516library_names_spec=$lt_library_names_spec 16517 16518# The coded name of the library, if different from the real name. 16519soname_spec=$lt_soname_spec 16520 16521# Permission mode override for installation of shared libraries. 16522install_override_mode=$lt_install_override_mode 16523 16524# Command to use after installation of a shared archive. 16525postinstall_cmds=$lt_postinstall_cmds 16526 16527# Command to use after uninstallation of a shared archive. 16528postuninstall_cmds=$lt_postuninstall_cmds 16529 16530# Commands used to finish a libtool library installation in a directory. 16531finish_cmds=$lt_finish_cmds 16532 16533# As "finish_cmds", except a single script fragment to be evaled but 16534# not shown. 16535finish_eval=$lt_finish_eval 16536 16537# Whether we should hardcode library paths into libraries. 16538hardcode_into_libs=$hardcode_into_libs 16539 16540# Compile-time system search path for libraries. 16541sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16542 16543# Run-time system search path for libraries. 16544sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16545 16546# Whether dlopen is supported. 16547dlopen_support=$enable_dlopen 16548 16549# Whether dlopen of programs is supported. 16550dlopen_self=$enable_dlopen_self 16551 16552# Whether dlopen of statically linked programs is supported. 16553dlopen_self_static=$enable_dlopen_self_static 16554 16555# Commands to strip libraries. 16556old_striplib=$lt_old_striplib 16557striplib=$lt_striplib 16558 16559 16560# The linker used to build libraries. 16561LD=$lt_LD 16562 16563# How to create reloadable object files. 16564reload_flag=$lt_reload_flag 16565reload_cmds=$lt_reload_cmds 16566 16567# Commands used to build an old-style archive. 16568old_archive_cmds=$lt_old_archive_cmds 16569 16570# A language specific compiler. 16571CC=$lt_compiler 16572 16573# Is the compiler the GNU compiler? 16574with_gcc=$GCC 16575 16576# Compiler flag to turn off builtin functions. 16577no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16578 16579# How to pass a linker flag through the compiler. 16580wl=$lt_lt_prog_compiler_wl 16581 16582# Additional compiler flags for building library objects. 16583pic_flag=$lt_lt_prog_compiler_pic 16584 16585# Compiler flag to prevent dynamic linking. 16586link_static_flag=$lt_lt_prog_compiler_static 16587 16588# Does compiler simultaneously support -c and -o options? 16589compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16590 16591# Whether or not to add -lc for building shared libraries. 16592build_libtool_need_lc=$archive_cmds_need_lc 16593 16594# Whether or not to disallow shared libs when runtime libs are static. 16595allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16596 16597# Compiler flag to allow reflexive dlopens. 16598export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16599 16600# Compiler flag to generate shared objects directly from archives. 16601whole_archive_flag_spec=$lt_whole_archive_flag_spec 16602 16603# Whether the compiler copes with passing no objects directly. 16604compiler_needs_object=$lt_compiler_needs_object 16605 16606# Create an old-style archive from a shared archive. 16607old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16608 16609# Create a temporary old-style archive to link instead of a shared archive. 16610old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16611 16612# Commands used to build a shared archive. 16613archive_cmds=$lt_archive_cmds 16614archive_expsym_cmds=$lt_archive_expsym_cmds 16615 16616# Commands used to build a loadable module if different from building 16617# a shared archive. 16618module_cmds=$lt_module_cmds 16619module_expsym_cmds=$lt_module_expsym_cmds 16620 16621# Whether we are building with GNU ld or not. 16622with_gnu_ld=$lt_with_gnu_ld 16623 16624# Flag that allows shared libraries with undefined symbols to be built. 16625allow_undefined_flag=$lt_allow_undefined_flag 16626 16627# Flag that enforces no undefined symbols. 16628no_undefined_flag=$lt_no_undefined_flag 16629 16630# Flag to hardcode \$libdir into a binary during linking. 16631# This must work even if \$libdir does not exist 16632hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16633 16634# If ld is used when linking, flag to hardcode \$libdir into a binary 16635# during linking. This must work even if \$libdir does not exist. 16636hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16637 16638# Whether we need a single "-rpath" flag with a separated argument. 16639hardcode_libdir_separator=$lt_hardcode_libdir_separator 16640 16641# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16642# DIR into the resulting binary. 16643hardcode_direct=$hardcode_direct 16644 16645# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16646# DIR into the resulting binary and the resulting library dependency is 16647# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16648# library is relocated. 16649hardcode_direct_absolute=$hardcode_direct_absolute 16650 16651# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16652# into the resulting binary. 16653hardcode_minus_L=$hardcode_minus_L 16654 16655# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16656# into the resulting binary. 16657hardcode_shlibpath_var=$hardcode_shlibpath_var 16658 16659# Set to "yes" if building a shared library automatically hardcodes DIR 16660# into the library and all subsequent libraries and executables linked 16661# against it. 16662hardcode_automatic=$hardcode_automatic 16663 16664# Set to yes if linker adds runtime paths of dependent libraries 16665# to runtime path list. 16666inherit_rpath=$inherit_rpath 16667 16668# Whether libtool must link a program against all its dependency libraries. 16669link_all_deplibs=$link_all_deplibs 16670 16671# Fix the shell variable \$srcfile for the compiler. 16672fix_srcfile_path=$lt_fix_srcfile_path 16673 16674# Set to "yes" if exported symbols are required. 16675always_export_symbols=$always_export_symbols 16676 16677# The commands to list exported symbols. 16678export_symbols_cmds=$lt_export_symbols_cmds 16679 16680# Symbols that should not be listed in the preloaded symbols. 16681exclude_expsyms=$lt_exclude_expsyms 16682 16683# Symbols that must always be exported. 16684include_expsyms=$lt_include_expsyms 16685 16686# Commands necessary for linking programs (against libraries) with templates. 16687prelink_cmds=$lt_prelink_cmds 16688 16689# Specify filename containing input files. 16690file_list_spec=$lt_file_list_spec 16691 16692# How to hardcode a shared library path into an executable. 16693hardcode_action=$hardcode_action 16694 16695# ### END LIBTOOL CONFIG 16696 16697_LT_EOF 16698 16699 case $host_os in 16700 aix3*) 16701 cat <<\_LT_EOF >> "$cfgfile" 16702# AIX sometimes has problems with the GCC collect2 program. For some 16703# reason, if we set the COLLECT_NAMES environment variable, the problems 16704# vanish in a puff of smoke. 16705if test "X${COLLECT_NAMES+set}" != Xset; then 16706 COLLECT_NAMES= 16707 export COLLECT_NAMES 16708fi 16709_LT_EOF 16710 ;; 16711 esac 16712 16713 16714ltmain="$ac_aux_dir/ltmain.sh" 16715 16716 16717 # We use sed instead of cat because bash on DJGPP gets confused if 16718 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16719 # text mode, it properly converts lines to CR/LF. This bash problem 16720 # is reportedly fixed, but why not run on old versions too? 16721 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16722 || (rm -f "$cfgfile"; exit 1) 16723 16724 case $xsi_shell in 16725 yes) 16726 cat << \_LT_EOF >> "$cfgfile" 16727 16728# func_dirname file append nondir_replacement 16729# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16730# otherwise set result to NONDIR_REPLACEMENT. 16731func_dirname () 16732{ 16733 case ${1} in 16734 */*) func_dirname_result="${1%/*}${2}" ;; 16735 * ) func_dirname_result="${3}" ;; 16736 esac 16737} 16738 16739# func_basename file 16740func_basename () 16741{ 16742 func_basename_result="${1##*/}" 16743} 16744 16745# func_dirname_and_basename file append nondir_replacement 16746# perform func_basename and func_dirname in a single function 16747# call: 16748# dirname: Compute the dirname of FILE. If nonempty, 16749# add APPEND to the result, otherwise set result 16750# to NONDIR_REPLACEMENT. 16751# value returned in "$func_dirname_result" 16752# basename: Compute filename of FILE. 16753# value retuned in "$func_basename_result" 16754# Implementation must be kept synchronized with func_dirname 16755# and func_basename. For efficiency, we do not delegate to 16756# those functions but instead duplicate the functionality here. 16757func_dirname_and_basename () 16758{ 16759 case ${1} in 16760 */*) func_dirname_result="${1%/*}${2}" ;; 16761 * ) func_dirname_result="${3}" ;; 16762 esac 16763 func_basename_result="${1##*/}" 16764} 16765 16766# func_stripname prefix suffix name 16767# strip PREFIX and SUFFIX off of NAME. 16768# PREFIX and SUFFIX must not contain globbing or regex special 16769# characters, hashes, percent signs, but SUFFIX may contain a leading 16770# dot (in which case that matches only a dot). 16771func_stripname () 16772{ 16773 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16774 # positional parameters, so assign one to ordinary parameter first. 16775 func_stripname_result=${3} 16776 func_stripname_result=${func_stripname_result#"${1}"} 16777 func_stripname_result=${func_stripname_result%"${2}"} 16778} 16779 16780# func_opt_split 16781func_opt_split () 16782{ 16783 func_opt_split_opt=${1%%=*} 16784 func_opt_split_arg=${1#*=} 16785} 16786 16787# func_lo2o object 16788func_lo2o () 16789{ 16790 case ${1} in 16791 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16792 *) func_lo2o_result=${1} ;; 16793 esac 16794} 16795 16796# func_xform libobj-or-source 16797func_xform () 16798{ 16799 func_xform_result=${1%.*}.lo 16800} 16801 16802# func_arith arithmetic-term... 16803func_arith () 16804{ 16805 func_arith_result=$(( $* )) 16806} 16807 16808# func_len string 16809# STRING may not start with a hyphen. 16810func_len () 16811{ 16812 func_len_result=${#1} 16813} 16814 16815_LT_EOF 16816 ;; 16817 *) # Bourne compatible functions. 16818 cat << \_LT_EOF >> "$cfgfile" 16819 16820# func_dirname file append nondir_replacement 16821# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16822# otherwise set result to NONDIR_REPLACEMENT. 16823func_dirname () 16824{ 16825 # Extract subdirectory from the argument. 16826 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 16827 if test "X$func_dirname_result" = "X${1}"; then 16828 func_dirname_result="${3}" 16829 else 16830 func_dirname_result="$func_dirname_result${2}" 16831 fi 16832} 16833 16834# func_basename file 16835func_basename () 16836{ 16837 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 16838} 16839 16840 16841# func_stripname prefix suffix name 16842# strip PREFIX and SUFFIX off of NAME. 16843# PREFIX and SUFFIX must not contain globbing or regex special 16844# characters, hashes, percent signs, but SUFFIX may contain a leading 16845# dot (in which case that matches only a dot). 16846# func_strip_suffix prefix name 16847func_stripname () 16848{ 16849 case ${2} in 16850 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 16851 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 16852 esac 16853} 16854 16855# sed scripts: 16856my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16857my_sed_long_arg='1s/^-[^=]*=//' 16858 16859# func_opt_split 16860func_opt_split () 16861{ 16862 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 16863 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 16864} 16865 16866# func_lo2o object 16867func_lo2o () 16868{ 16869 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 16870} 16871 16872# func_xform libobj-or-source 16873func_xform () 16874{ 16875 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 16876} 16877 16878# func_arith arithmetic-term... 16879func_arith () 16880{ 16881 func_arith_result=`expr "$@"` 16882} 16883 16884# func_len string 16885# STRING may not start with a hyphen. 16886func_len () 16887{ 16888 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16889} 16890 16891_LT_EOF 16892esac 16893 16894case $lt_shell_append in 16895 yes) 16896 cat << \_LT_EOF >> "$cfgfile" 16897 16898# func_append var value 16899# Append VALUE to the end of shell variable VAR. 16900func_append () 16901{ 16902 eval "$1+=\$2" 16903} 16904_LT_EOF 16905 ;; 16906 *) 16907 cat << \_LT_EOF >> "$cfgfile" 16908 16909# func_append var value 16910# Append VALUE to the end of shell variable VAR. 16911func_append () 16912{ 16913 eval "$1=\$$1\$2" 16914} 16915 16916_LT_EOF 16917 ;; 16918 esac 16919 16920 16921 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16922 || (rm -f "$cfgfile"; exit 1) 16923 16924 mv -f "$cfgfile" "$ofile" || 16925 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16926 chmod +x "$ofile" 16927 16928 ;; 16929 "default-1":C) 16930 for ac_file in $CONFIG_FILES; do 16931 # Support "outfile[:infile[:infile...]]" 16932 case "$ac_file" in 16933 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16934 esac 16935 # PO directories have a Makefile.in generated from Makefile.in.in. 16936 case "$ac_file" in */Makefile.in) 16937 # Adjust a relative srcdir. 16938 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16939 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 16940 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16941 # In autoconf-2.13 it is called $ac_given_srcdir. 16942 # In autoconf-2.50 it is called $srcdir. 16943 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16944 case "$ac_given_srcdir" in 16945 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16946 /*) top_srcdir="$ac_given_srcdir" ;; 16947 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16948 esac 16949 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16950 rm -f "$ac_dir/POTFILES" 16951 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16952 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16953 POMAKEFILEDEPS="POTFILES.in" 16954 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 16955 # on $ac_dir but don't depend on user-specified configuration 16956 # parameters. 16957 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16958 # The LINGUAS file contains the set of available languages. 16959 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16960 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 16961 fi 16962 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16963 # Hide the ALL_LINGUAS assigment from automake. 16964 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16965 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16966 else 16967 # The set of available languages was given in configure.ac. 16968 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16969 fi 16970 case "$ac_given_srcdir" in 16971 .) srcdirpre= ;; 16972 *) srcdirpre='$(srcdir)/' ;; 16973 esac 16974 POFILES= 16975 GMOFILES= 16976 UPDATEPOFILES= 16977 DUMMYPOFILES= 16978 for lang in $ALL_LINGUAS; do 16979 POFILES="$POFILES $srcdirpre$lang.po" 16980 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16981 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16982 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16983 done 16984 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16985 # environment variable. 16986 INST_LINGUAS= 16987 if test -n "$ALL_LINGUAS"; then 16988 for presentlang in $ALL_LINGUAS; do 16989 useit=no 16990 if test "%UNSET%" != "$LINGUAS"; then 16991 desiredlanguages="$LINGUAS" 16992 else 16993 desiredlanguages="$ALL_LINGUAS" 16994 fi 16995 for desiredlang in $desiredlanguages; do 16996 # Use the presentlang catalog if desiredlang is 16997 # a. equal to presentlang, or 16998 # b. a variant of presentlang (because in this case, 16999 # presentlang can be used as a fallback for messages 17000 # which are not translated in the desiredlang catalog). 17001 case "$desiredlang" in 17002 "$presentlang"*) useit=yes;; 17003 esac 17004 done 17005 if test $useit = yes; then 17006 INST_LINGUAS="$INST_LINGUAS $presentlang" 17007 fi 17008 done 17009 fi 17010 CATALOGS= 17011 if test -n "$INST_LINGUAS"; then 17012 for lang in $INST_LINGUAS; do 17013 CATALOGS="$CATALOGS $lang.gmo" 17014 done 17015 fi 17016 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 17017 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 17018 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 17019 if test -f "$f"; then 17020 case "$f" in 17021 *.orig | *.bak | *~) ;; 17022 *) cat "$f" >> "$ac_dir/Makefile" ;; 17023 esac 17024 fi 17025 done 17026 fi 17027 ;; 17028 esac 17029 done ;; 17030 "default-2":C) 17031 for ac_file in $CONFIG_FILES; do 17032 # Support "outfile[:infile[:infile...]]" 17033 case "$ac_file" in 17034 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17035 esac 17036 # PO directories have a Makefile.in generated from Makefile.in.in. 17037 case "$ac_file" in */Makefile.in) 17038 # Adjust a relative srcdir. 17039 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 17040 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 17041 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 17042 # In autoconf-2.13 it is called $ac_given_srcdir. 17043 # In autoconf-2.50 it is called $srcdir. 17044 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 17045 case "$ac_given_srcdir" in 17046 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 17047 /*) top_srcdir="$ac_given_srcdir" ;; 17048 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 17049 esac 17050 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 17051 rm -f "$ac_dir/POTFILES" 17052 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 17053 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 17054 POMAKEFILEDEPS="POTFILES.in" 17055 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 17056 # on $ac_dir but don't depend on user-specified configuration 17057 # parameters. 17058 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 17059 # The LINGUAS file contains the set of available languages. 17060 if test -n "$OBSOLETE_ALL_LINGUAS"; then 17061 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 17062 fi 17063 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 17064 # Hide the ALL_LINGUAS assigment from automake. 17065 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 17066 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 17067 else 17068 # The set of available languages was given in configure.ac. 17069 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 17070 fi 17071 case "$ac_given_srcdir" in 17072 .) srcdirpre= ;; 17073 *) srcdirpre='$(srcdir)/' ;; 17074 esac 17075 POFILES= 17076 GMOFILES= 17077 UPDATEPOFILES= 17078 DUMMYPOFILES= 17079 for lang in $ALL_LINGUAS; do 17080 POFILES="$POFILES $srcdirpre$lang.po" 17081 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 17082 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 17083 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 17084 done 17085 # CATALOGS depends on both $ac_dir and the user's LINGUAS 17086 # environment variable. 17087 INST_LINGUAS= 17088 if test -n "$ALL_LINGUAS"; then 17089 for presentlang in $ALL_LINGUAS; do 17090 useit=no 17091 if test "%UNSET%" != "$LINGUAS"; then 17092 desiredlanguages="$LINGUAS" 17093 else 17094 desiredlanguages="$ALL_LINGUAS" 17095 fi 17096 for desiredlang in $desiredlanguages; do 17097 # Use the presentlang catalog if desiredlang is 17098 # a. equal to presentlang, or 17099 # b. a variant of presentlang (because in this case, 17100 # presentlang can be used as a fallback for messages 17101 # which are not translated in the desiredlang catalog). 17102 case "$desiredlang" in 17103 "$presentlang"*) useit=yes;; 17104 esac 17105 done 17106 if test $useit = yes; then 17107 INST_LINGUAS="$INST_LINGUAS $presentlang" 17108 fi 17109 done 17110 fi 17111 CATALOGS= 17112 if test -n "$INST_LINGUAS"; then 17113 for lang in $INST_LINGUAS; do 17114 CATALOGS="$CATALOGS $lang.gmo" 17115 done 17116 fi 17117 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 17118 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 17119 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 17120 if test -f "$f"; then 17121 case "$f" in 17122 *.orig | *.bak | *~) ;; 17123 *) cat "$f" >> "$ac_dir/Makefile" ;; 17124 esac 17125 fi 17126 done 17127 fi 17128 ;; 17129 esac 17130 done ;; 17131 17132 esac 17133done # for ac_tag 17134 17135 17136as_fn_exit 0 17137_ACEOF 17138ac_clean_files=$ac_clean_files_save 17139 17140test $ac_write_fail = 0 || 17141 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17142 17143 17144# configure is writing to config.log, and then calls config.status. 17145# config.status does its own redirection, appending to config.log. 17146# Unfortunately, on DOS this fails, as config.log is still kept open 17147# by configure, so config.status won't be able to write to it; its 17148# output is simply discarded. So we exec the FD to /dev/null, 17149# effectively closing config.log, so it can be properly (re)opened and 17150# appended to by config.status. When coming back to configure, we 17151# need to make the FD available again. 17152if test "$no_create" != yes; then 17153 ac_cs_success=: 17154 ac_config_status_args= 17155 test "$silent" = yes && 17156 ac_config_status_args="$ac_config_status_args --quiet" 17157 exec 5>/dev/null 17158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17159 exec 5>>config.log 17160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17161 # would make configure fail if this is the last instruction. 17162 $ac_cs_success || as_fn_exit 1 17163fi 17164if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17166$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17167fi 17168 17169 17170 17171touch config.status.tmp 17172if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 17173 sed '/as_fn_exit 0/i \ 17174sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 17175touch --reference=Makefile Makefile.tmp \ 17176mv Makefile.tmp Makefile \ 17177' config.status > config.status.tmp 17178 touch --reference=config.status config.status.tmp 17179 mv config.status.tmp config.status 17180 chmod +x config.status 17181 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 17182 touch --reference=Makefile Makefile.tmp 17183 mv Makefile.tmp Makefile 17184else 17185 rm -f config.status.tmp 17186fi 17187