configure revision c9710b42
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for fontconfig 2.10.93. 4# 5# Report bugs to <https://bugs.freedesktop.org/enger_bug.cgi?product=fontconfig>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enger_bug.cgi?product=fontconfig 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='fontconfig' 593PACKAGE_TARNAME='fontconfig' 594PACKAGE_VERSION='2.10.93' 595PACKAGE_STRING='fontconfig 2.10.93' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enger_bug.cgi?product=fontconfig' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DOCMAN3 641ENABLE_DOCS_FALSE 642ENABLE_DOCS_TRUE 643USEDOCBOOK_FALSE 644USEDOCBOOK_TRUE 645HASDOCBOOK 646HAVE_PTHREAD_FALSE 647HAVE_PTHREAD_TRUE 648PTHREAD_CFLAGS 649PTHREAD_LIBS 650PTHREAD_CC 651ax_pthread_config 652XMLDIR 653xmldir 654CONFIGDIR 655configdir 656BASECONFIGDIR 657baseconfigdir 658TEMPLATEDIR 659templatedir 660FC_FONTDATE 661FC_CACHEDIR 662fc_cachedir 663FC_FONTPATH 664FC_ADD_FONTS 665FC_DEFAULT_FONTS 666LIBXML2_LIBS 667LIBXML2_CFLAGS 668HAVE_XMLPARSE_H 669EXPAT_LIBS 670EXPAT_CFLAGS 671FREETYPE_LIBS 672FREETYPE_CFLAGS 673ICONV_LIBS 674ICONV_CFLAGS 675ENABLE_SHARED_FALSE 676ENABLE_SHARED_TRUE 677CROSS_COMPILING_FALSE 678CROSS_COMPILING_TRUE 679EXEEXT_FOR_BUILD 680CC_FOR_BUILD 681WARN_CFLAGS 682MS_LIB_AVAILABLE_FALSE 683MS_LIB_AVAILABLE_TRUE 684ms_librarian 685OS_WIN32_FALSE 686OS_WIN32_TRUE 687RM 688GPERF 689GIT 690pkgconfigdir 691PKG_CONFIG_LIBDIR 692PKG_CONFIG_PATH 693PKG_CONFIG 694OTOOL64 695OTOOL 696LIPO 697NMEDIT 698DSYMUTIL 699MANIFEST_TOOL 700RANLIB 701ac_ct_AR 702AR 703NM 704ac_ct_DUMPBIN 705DUMPBIN 706LD 707FGREP 708SED 709LIBTOOL 710OBJDUMP 711DLLTOOL 712AS 713host_os 714host_vendor 715host_cpu 716host 717build_os 718build_vendor 719build_cpu 720build 721LN_S 722EGREP 723GREP 724CPP 725am__fastdepCC_FALSE 726am__fastdepCC_TRUE 727CCDEPMODE 728am__nodep 729AMDEPBACKSLASH 730AMDEP_FALSE 731AMDEP_TRUE 732am__quote 733am__include 734DEPDIR 735OBJEXT 736EXEEXT 737ac_ct_CC 738CPPFLAGS 739LDFLAGS 740CFLAGS 741CC 742LIBT_CURRENT_MINUS_AGE 743LIBT_VERSION_INFO 744LIBT_REVISION 745LIBT_CURRENT 746AM_BACKSLASH 747AM_DEFAULT_VERBOSITY 748AM_DEFAULT_V 749AM_V 750am__untar 751am__tar 752AMTAR 753am__leading_dot 754SET_MAKE 755AWK 756mkdir_p 757MKDIR_P 758INSTALL_STRIP_PROGRAM 759STRIP 760install_sh 761MAKEINFO 762AUTOHEADER 763AUTOMAKE 764AUTOCONF 765ACLOCAL 766VERSION 767PACKAGE 768CYGPATH_W 769am__isrc 770INSTALL_DATA 771INSTALL_SCRIPT 772INSTALL_PROGRAM 773target_alias 774host_alias 775build_alias 776LIBS 777ECHO_T 778ECHO_N 779ECHO_C 780DEFS 781mandir 782localedir 783libdir 784psdir 785pdfdir 786dvidir 787htmldir 788infodir 789docdir 790oldincludedir 791includedir 792localstatedir 793sharedstatedir 794sysconfdir 795datadir 796datarootdir 797libexecdir 798sbindir 799bindir 800program_transform_name 801prefix 802exec_prefix 803PACKAGE_URL 804PACKAGE_BUGREPORT 805PACKAGE_STRING 806PACKAGE_VERSION 807PACKAGE_TARNAME 808PACKAGE_NAME 809PATH_SEPARATOR 810SHELL' 811ac_subst_files='' 812ac_user_opts=' 813enable_option_checking 814enable_silent_rules 815enable_dependency_tracking 816enable_largefile 817enable_shared 818enable_static 819with_pic 820enable_fast_install 821with_gnu_ld 822with_sysroot 823enable_libtool_lock 824with_pkgconfigdir 825with_arch 826enable_iconv 827with_libiconv 828with_libiconv_includes 829with_libiconv_lib 830with_expat 831with_expat_includes 832with_expat_lib 833enable_libxml2 834with_default_fonts 835with_add_fonts 836with_cache_dir 837with_templatedir 838with_baseconfigdir 839with_configdir 840with_xmldir 841enable_docs 842' 843 ac_precious_vars='build_alias 844host_alias 845target_alias 846CC 847CFLAGS 848LDFLAGS 849LIBS 850CPPFLAGS 851CPP 852PKG_CONFIG 853PKG_CONFIG_PATH 854PKG_CONFIG_LIBDIR 855CC_FOR_BUILD 856FREETYPE_CFLAGS 857FREETYPE_LIBS 858EXPAT_CFLAGS 859EXPAT_LIBS 860LIBXML2_CFLAGS 861LIBXML2_LIBS' 862 863 864# Initialize some variables set by options. 865ac_init_help= 866ac_init_version=false 867ac_unrecognized_opts= 868ac_unrecognized_sep= 869# The variables have the same names as the options, with 870# dashes changed to underlines. 871cache_file=/dev/null 872exec_prefix=NONE 873no_create= 874no_recursion= 875prefix=NONE 876program_prefix=NONE 877program_suffix=NONE 878program_transform_name=s,x,x, 879silent= 880site= 881srcdir= 882verbose= 883x_includes=NONE 884x_libraries=NONE 885 886# Installation directory options. 887# These are left unexpanded so users can "make install exec_prefix=/foo" 888# and all the variables that are supposed to be based on exec_prefix 889# by default will actually change. 890# Use braces instead of parens because sh, perl, etc. also accept them. 891# (The list follows the same order as the GNU Coding Standards.) 892bindir='${exec_prefix}/bin' 893sbindir='${exec_prefix}/sbin' 894libexecdir='${exec_prefix}/libexec' 895datarootdir='${prefix}/share' 896datadir='${datarootdir}' 897sysconfdir='${prefix}/etc' 898sharedstatedir='${prefix}/com' 899localstatedir='${prefix}/var' 900includedir='${prefix}/include' 901oldincludedir='/usr/include' 902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 903infodir='${datarootdir}/info' 904htmldir='${docdir}' 905dvidir='${docdir}' 906pdfdir='${docdir}' 907psdir='${docdir}' 908libdir='${exec_prefix}/lib' 909localedir='${datarootdir}/locale' 910mandir='${datarootdir}/man' 911 912ac_prev= 913ac_dashdash= 914for ac_option 915do 916 # If the previous option needs an argument, assign it. 917 if test -n "$ac_prev"; then 918 eval $ac_prev=\$ac_option 919 ac_prev= 920 continue 921 fi 922 923 case $ac_option in 924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 925 *=) ac_optarg= ;; 926 *) ac_optarg=yes ;; 927 esac 928 929 # Accept the important Cygnus configure options, so we can diagnose typos. 930 931 case $ac_dashdash$ac_option in 932 --) 933 ac_dashdash=yes ;; 934 935 -bindir | --bindir | --bindi | --bind | --bin | --bi) 936 ac_prev=bindir ;; 937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 938 bindir=$ac_optarg ;; 939 940 -build | --build | --buil | --bui | --bu) 941 ac_prev=build_alias ;; 942 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 943 build_alias=$ac_optarg ;; 944 945 -cache-file | --cache-file | --cache-fil | --cache-fi \ 946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 947 ac_prev=cache_file ;; 948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 950 cache_file=$ac_optarg ;; 951 952 --config-cache | -C) 953 cache_file=config.cache ;; 954 955 -datadir | --datadir | --datadi | --datad) 956 ac_prev=datadir ;; 957 -datadir=* | --datadir=* | --datadi=* | --datad=*) 958 datadir=$ac_optarg ;; 959 960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 961 | --dataroo | --dataro | --datar) 962 ac_prev=datarootdir ;; 963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 965 datarootdir=$ac_optarg ;; 966 967 -disable-* | --disable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=no ;; 982 983 -docdir | --docdir | --docdi | --doc | --do) 984 ac_prev=docdir ;; 985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 986 docdir=$ac_optarg ;; 987 988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 989 ac_prev=dvidir ;; 990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 991 dvidir=$ac_optarg ;; 992 993 -enable-* | --enable-*) 994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 995 # Reject names that are not valid shell variable names. 996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 997 as_fn_error $? "invalid feature name: $ac_useropt" 998 ac_useropt_orig=$ac_useropt 999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1000 case $ac_user_opts in 1001 *" 1002"enable_$ac_useropt" 1003"*) ;; 1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1005 ac_unrecognized_sep=', ';; 1006 esac 1007 eval enable_$ac_useropt=\$ac_optarg ;; 1008 1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1011 | --exec | --exe | --ex) 1012 ac_prev=exec_prefix ;; 1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1015 | --exec=* | --exe=* | --ex=*) 1016 exec_prefix=$ac_optarg ;; 1017 1018 -gas | --gas | --ga | --g) 1019 # Obsolete; use --with-gas. 1020 with_gas=yes ;; 1021 1022 -help | --help | --hel | --he | -h) 1023 ac_init_help=long ;; 1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1025 ac_init_help=recursive ;; 1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1027 ac_init_help=short ;; 1028 1029 -host | --host | --hos | --ho) 1030 ac_prev=host_alias ;; 1031 -host=* | --host=* | --hos=* | --ho=*) 1032 host_alias=$ac_optarg ;; 1033 1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1035 ac_prev=htmldir ;; 1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1037 | --ht=*) 1038 htmldir=$ac_optarg ;; 1039 1040 -includedir | --includedir | --includedi | --included | --include \ 1041 | --includ | --inclu | --incl | --inc) 1042 ac_prev=includedir ;; 1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1044 | --includ=* | --inclu=* | --incl=* | --inc=*) 1045 includedir=$ac_optarg ;; 1046 1047 -infodir | --infodir | --infodi | --infod | --info | --inf) 1048 ac_prev=infodir ;; 1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1050 infodir=$ac_optarg ;; 1051 1052 -libdir | --libdir | --libdi | --libd) 1053 ac_prev=libdir ;; 1054 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1055 libdir=$ac_optarg ;; 1056 1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1058 | --libexe | --libex | --libe) 1059 ac_prev=libexecdir ;; 1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1061 | --libexe=* | --libex=* | --libe=*) 1062 libexecdir=$ac_optarg ;; 1063 1064 -localedir | --localedir | --localedi | --localed | --locale) 1065 ac_prev=localedir ;; 1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1067 localedir=$ac_optarg ;; 1068 1069 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1070 | --localstate | --localstat | --localsta | --localst | --locals) 1071 ac_prev=localstatedir ;; 1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1074 localstatedir=$ac_optarg ;; 1075 1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1077 ac_prev=mandir ;; 1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1079 mandir=$ac_optarg ;; 1080 1081 -nfp | --nfp | --nf) 1082 # Obsolete; use --without-fp. 1083 with_fp=no ;; 1084 1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1086 | --no-cr | --no-c | -n) 1087 no_create=yes ;; 1088 1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1091 no_recursion=yes ;; 1092 1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1095 | --oldin | --oldi | --old | --ol | --o) 1096 ac_prev=oldincludedir ;; 1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1100 oldincludedir=$ac_optarg ;; 1101 1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1103 ac_prev=prefix ;; 1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1105 prefix=$ac_optarg ;; 1106 1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1108 | --program-pre | --program-pr | --program-p) 1109 ac_prev=program_prefix ;; 1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1112 program_prefix=$ac_optarg ;; 1113 1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1115 | --program-suf | --program-su | --program-s) 1116 ac_prev=program_suffix ;; 1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1119 program_suffix=$ac_optarg ;; 1120 1121 -program-transform-name | --program-transform-name \ 1122 | --program-transform-nam | --program-transform-na \ 1123 | --program-transform-n | --program-transform- \ 1124 | --program-transform | --program-transfor \ 1125 | --program-transfo | --program-transf \ 1126 | --program-trans | --program-tran \ 1127 | --progr-tra | --program-tr | --program-t) 1128 ac_prev=program_transform_name ;; 1129 -program-transform-name=* | --program-transform-name=* \ 1130 | --program-transform-nam=* | --program-transform-na=* \ 1131 | --program-transform-n=* | --program-transform-=* \ 1132 | --program-transform=* | --program-transfor=* \ 1133 | --program-transfo=* | --program-transf=* \ 1134 | --program-trans=* | --program-tran=* \ 1135 | --progr-tra=* | --program-tr=* | --program-t=*) 1136 program_transform_name=$ac_optarg ;; 1137 1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1139 ac_prev=pdfdir ;; 1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1141 pdfdir=$ac_optarg ;; 1142 1143 -psdir | --psdir | --psdi | --psd | --ps) 1144 ac_prev=psdir ;; 1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1146 psdir=$ac_optarg ;; 1147 1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1149 | -silent | --silent | --silen | --sile | --sil) 1150 silent=yes ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: $ac_useropt" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: $ac_useropt" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345$as_echo X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures fontconfig 2.10.93 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467_ACEOF 1468fi 1469 1470if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of fontconfig 2.10.93:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-silent-rules less verbose build output (undo: "make V=1") 1481 --disable-silent-rules verbose build output (undo: "make V=0") 1482 --enable-dependency-tracking 1483 do not reject slow dependency extractors 1484 --disable-dependency-tracking 1485 speeds up one-time build 1486 --disable-largefile omit support for large files 1487 --enable-shared[=PKGS] build shared libraries [default=yes] 1488 --enable-static[=PKGS] build static libraries [default=yes] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 --enable-iconv Use iconv to support non-Unicode SFNT name 1493 --enable-libxml2 Use libxml2 instead of Expat 1494 --disable-docs Don't build and install documentation 1495 1496Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1500 both] 1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1502 --with-sysroot=DIR Search for dependent libraries within DIR 1503 (or the compiler's sysroot if not specified). 1504 --with-pkgconfigdir pkg-config installation directory 1505 ['${libdir}/pkgconfig'] 1506 --with-arch=ARCH Force architecture to ARCH 1507 --with-libiconv=DIR Use libiconv in DIR 1508 --with-libiconv-includes=DIR 1509 Use libiconv includes in DIR 1510 --with-libiconv-lib=DIR Use libiconv library in DIR 1511 --with-expat=DIR Use Expat in DIR 1512 --with-expat-includes=DIR 1513 Use Expat includes in DIR 1514 --with-expat-lib=DIR 1515 --with-default-fonts=DIR 1516 Use fonts from DIR when config is busted 1517 --with-add-fonts=DIR1,DIR2,... 1518 Find additional fonts in DIR1,DIR2,... 1519 --with-cache-dir=DIR Use DIR to store cache files 1520 [default=LOCALSTATEDIR/cache/fontconfig] 1521 --with-templatedir=DIR Use DIR to store the configuration template files 1522 [default=DATADIR/fontconfig/conf.avail] 1523 --with-baseconfigdir=DIR 1524 Use DIR to store the base configuration files 1525 [default=SYSCONFDIR/fonts] 1526 --with-configdir=DIR Use DIR to store active configuration files 1527 [default=BASECONFIGDIR/conf.d] 1528 --with-xmldir=DIR Use DIR to store XML schema files 1529 [default=DATADIR/xml/fontconfig] 1530 1531Some influential environment variables: 1532 CC C compiler command 1533 CFLAGS C compiler flags 1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1535 nonstandard directory <lib dir> 1536 LIBS libraries to pass to the linker, e.g. -l<library> 1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1538 you have headers in a nonstandard directory <include dir> 1539 CPP C preprocessor 1540 PKG_CONFIG path to pkg-config utility 1541 PKG_CONFIG_PATH 1542 directories to add to pkg-config's search path 1543 PKG_CONFIG_LIBDIR 1544 path overriding pkg-config's built-in search path 1545 CC_FOR_BUILD 1546 build system C compiler 1547 FREETYPE_CFLAGS 1548 C compiler flags for FREETYPE, overriding pkg-config 1549 FREETYPE_LIBS 1550 linker flags for FREETYPE, overriding pkg-config 1551 EXPAT_CFLAGS 1552 C compiler flags for EXPAT, overriding pkg-config 1553 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config 1554 LIBXML2_CFLAGS 1555 C compiler flags for LIBXML2, overriding pkg-config 1556 LIBXML2_LIBS 1557 linker flags for LIBXML2, overriding pkg-config 1558 1559Use these variables to override the choices made by `configure' or to help 1560it to find libraries and programs with nonstandard names/locations. 1561 1562Report bugs to <https://bugs.freedesktop.org/enger_bug.cgi?product=fontconfig>. 1563_ACEOF 1564ac_status=$? 1565fi 1566 1567if test "$ac_init_help" = "recursive"; then 1568 # If there are subdirs, report their specific --help. 1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1570 test -d "$ac_dir" || 1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1572 continue 1573 ac_builddir=. 1574 1575case "$ac_dir" in 1576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1577*) 1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1579 # A ".." for each directory in $ac_dir_suffix. 1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1581 case $ac_top_builddir_sub in 1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1584 esac ;; 1585esac 1586ac_abs_top_builddir=$ac_pwd 1587ac_abs_builddir=$ac_pwd$ac_dir_suffix 1588# for backward compatibility: 1589ac_top_builddir=$ac_top_build_prefix 1590 1591case $srcdir in 1592 .) # We are building in place. 1593 ac_srcdir=. 1594 ac_top_srcdir=$ac_top_builddir_sub 1595 ac_abs_top_srcdir=$ac_pwd ;; 1596 [\\/]* | ?:[\\/]* ) # Absolute name. 1597 ac_srcdir=$srcdir$ac_dir_suffix; 1598 ac_top_srcdir=$srcdir 1599 ac_abs_top_srcdir=$srcdir ;; 1600 *) # Relative name. 1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1602 ac_top_srcdir=$ac_top_build_prefix$srcdir 1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1604esac 1605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1606 1607 cd "$ac_dir" || { ac_status=$?; continue; } 1608 # Check for guested configure. 1609 if test -f "$ac_srcdir/configure.gnu"; then 1610 echo && 1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1612 elif test -f "$ac_srcdir/configure"; then 1613 echo && 1614 $SHELL "$ac_srcdir/configure" --help=recursive 1615 else 1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1617 fi || ac_status=$? 1618 cd "$ac_pwd" || { ac_status=$?; break; } 1619 done 1620fi 1621 1622test -n "$ac_init_help" && exit $ac_status 1623if $ac_init_version; then 1624 cat <<\_ACEOF 1625fontconfig configure 2.10.93 1626generated by GNU Autoconf 2.69 1627 1628Copyright (C) 2012 Free Software Foundation, Inc. 1629This configure script is free software; the Free Software Foundation 1630gives unlimited permission to copy, distribute and modify it. 1631_ACEOF 1632 exit 1633fi 1634 1635## ------------------------ ## 1636## Autoconf initialization. ## 1637## ------------------------ ## 1638 1639# ac_fn_c_try_compile LINENO 1640# -------------------------- 1641# Try to compile conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_compile () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext 1646 if { { ac_try="$ac_compile" 1647case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_compile") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest.$ac_objext; then : 1665 ac_retval=0 1666else 1667 $as_echo "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_compile 1676 1677# ac_fn_c_try_cpp LINENO 1678# ---------------------- 1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1680ac_fn_c_try_cpp () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_cpp conftest.$ac_ext" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } > conftest.i && { 1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 }; then : 1702 ac_retval=0 1703else 1704 $as_echo "$as_me: failed program was:" >&5 1705sed 's/^/| /' conftest.$ac_ext >&5 1706 1707 ac_retval=1 1708fi 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_cpp 1713 1714# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1715# ------------------------------------------------------- 1716# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1717# the include files in INCLUDES and setting the cache variable VAR 1718# accordingly. 1719ac_fn_c_check_header_mongrel () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if eval \${$3+:} false; then : 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724$as_echo_n "checking for $2... " >&6; } 1725if eval \${$3+:} false; then : 1726 $as_echo_n "(cached) " >&6 1727fi 1728eval ac_res=\$$3 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730$as_echo "$ac_res" >&6; } 1731else 1732 # Is the header compilable? 1733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1734$as_echo_n "checking $2 usability... " >&6; } 1735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737$4 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_compile "$LINENO"; then : 1741 ac_header_compiler=yes 1742else 1743 ac_header_compiler=no 1744fi 1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1747$as_echo "$ac_header_compiler" >&6; } 1748 1749# Is the header present? 1750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1751$as_echo_n "checking $2 presence... " >&6; } 1752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_cpp "$LINENO"; then : 1757 ac_header_preproc=yes 1758else 1759 ac_header_preproc=no 1760fi 1761rm -f conftest.err conftest.i conftest.$ac_ext 1762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1763$as_echo "$ac_header_preproc" >&6; } 1764 1765# So? What about this header? 1766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1767 yes:no: ) 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1769$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1771$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1772 ;; 1773 no:yes:* ) 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1775$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1777$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1779$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1781$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1783$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1784( $as_echo "## ---------------------------------------------------------------------------- ## 1785## Report this to https://bugs.freedesktop.org/enger_bug.cgi?product=fontconfig ## 1786## ---------------------------------------------------------------------------- ##" 1787 ) | sed "s/^/$as_me: WARNING: /" >&2 1788 ;; 1789esac 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791$as_echo_n "checking for $2... " >&6; } 1792if eval \${$3+:} false; then : 1793 $as_echo_n "(cached) " >&6 1794else 1795 eval "$3=\$ac_header_compiler" 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800fi 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_header_mongrel 1804 1805# ac_fn_c_try_run LINENO 1806# ---------------------- 1807# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1808# that executables *can* be run. 1809ac_fn_c_try_run () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if { { ac_try="$ac_link" 1813case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>&5 1820 ac_status=$? 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1823 { { case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826esac 1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828$as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_try") 2>&5 1830 ac_status=$? 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; }; }; then : 1833 ac_retval=0 1834else 1835 $as_echo "$as_me: program exited with status $ac_status" >&5 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=$ac_status 1840fi 1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 as_fn_set_status $ac_retval 1844 1845} # ac_fn_c_try_run 1846 1847# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1848# ------------------------------------------------------- 1849# Tests whether HEADER exists and can be compiled using the include files in 1850# INCLUDES, setting the cache variable VAR accordingly. 1851ac_fn_c_check_header_compile () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1855$as_echo_n "checking for $2... " >&6; } 1856if eval \${$3+:} false; then : 1857 $as_echo_n "(cached) " >&6 1858else 1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1860/* end confdefs.h. */ 1861$4 1862#include <$2> 1863_ACEOF 1864if ac_fn_c_try_compile "$LINENO"; then : 1865 eval "$3=yes" 1866else 1867 eval "$3=no" 1868fi 1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1870fi 1871eval ac_res=\$$3 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873$as_echo "$ac_res" >&6; } 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875 1876} # ac_fn_c_check_header_compile 1877 1878# ac_fn_c_try_link LINENO 1879# ----------------------- 1880# Try to link conftest.$ac_ext, and return whether this succeeded. 1881ac_fn_c_try_link () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 rm -f conftest.$ac_objext conftest$ac_exeext 1885 if { { ac_try="$ac_link" 1886case "(($ac_try" in 1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1888 *) ac_try_echo=$ac_try;; 1889esac 1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1891$as_echo "$ac_try_echo"; } >&5 1892 (eval "$ac_link") 2>conftest.err 1893 ac_status=$? 1894 if test -s conftest.err; then 1895 grep -v '^ *+' conftest.err >conftest.er1 1896 cat conftest.er1 >&5 1897 mv -f conftest.er1 conftest.err 1898 fi 1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1900 test $ac_status = 0; } && { 1901 test -z "$ac_c_werror_flag" || 1902 test ! -s conftest.err 1903 } && test -s conftest$ac_exeext && { 1904 test "$cross_compiling" = yes || 1905 test -x conftest$ac_exeext 1906 }; then : 1907 ac_retval=0 1908else 1909 $as_echo "$as_me: failed program was:" >&5 1910sed 's/^/| /' conftest.$ac_ext >&5 1911 1912 ac_retval=1 1913fi 1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1916 # interfere with the next link command; also delete a directory that is 1917 # left behind by Apple's compiler. We do this before executing the actions. 1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 as_fn_set_status $ac_retval 1921 1922} # ac_fn_c_try_link 1923 1924# ac_fn_c_check_func LINENO FUNC VAR 1925# ---------------------------------- 1926# Tests whether FUNC exists, setting the cache variable VAR accordingly 1927ac_fn_c_check_func () 1928{ 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1931$as_echo_n "checking for $2... " >&6; } 1932if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934else 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1939#define $2 innocuous_$2 1940 1941/* System header to define __stub macros and hopefully few prototypes, 1942 which can conflict with char $2 (); below. 1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1944 <limits.h> exists even on freestanding compilers. */ 1945 1946#ifdef __STDC__ 1947# include <limits.h> 1948#else 1949# include <assert.h> 1950#endif 1951 1952#undef $2 1953 1954/* Override any GCC internal prototype to avoid an error. 1955 Use char because int might match the return type of a GCC 1956 builtin and then its argument prototype would still apply. */ 1957#ifdef __cplusplus 1958extern "C" 1959#endif 1960char $2 (); 1961/* The GNU C library defines this for functions which it implements 1962 to always fail with ENOSYS. Some functions are actually named 1963 something starting with __ and the normal name is an alias. */ 1964#if defined __stub_$2 || defined __stub___$2 1965choke me 1966#endif 1967 1968int 1969main () 1970{ 1971return $2 (); 1972 ; 1973 return 0; 1974} 1975_ACEOF 1976if ac_fn_c_try_link "$LINENO"; then : 1977 eval "$3=yes" 1978else 1979 eval "$3=no" 1980fi 1981rm -f core conftest.err conftest.$ac_objext \ 1982 conftest$ac_exeext conftest.$ac_ext 1983fi 1984eval ac_res=\$$3 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986$as_echo "$ac_res" >&6; } 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 1989} # ac_fn_c_check_func 1990 1991# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1992# ------------------------------------------- 1993# Tests whether TYPE exists after having included INCLUDES, setting cache 1994# variable VAR accordingly. 1995ac_fn_c_check_type () 1996{ 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1999$as_echo_n "checking for $2... " >&6; } 2000if eval \${$3+:} false; then : 2001 $as_echo_n "(cached) " >&6 2002else 2003 eval "$3=no" 2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006$4 2007int 2008main () 2009{ 2010if (sizeof ($2)) 2011 return 0; 2012 ; 2013 return 0; 2014} 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020int 2021main () 2022{ 2023if (sizeof (($2))) 2024 return 0; 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO"; then : 2030 2031else 2032 eval "$3=yes" 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2037fi 2038eval ac_res=\$$3 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2040$as_echo "$ac_res" >&6; } 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2042 2043} # ac_fn_c_check_type 2044 2045# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2046# -------------------------------------------- 2047# Tries to find the compile-time value of EXPR in a program that includes 2048# INCLUDES, setting VAR accordingly. Returns whether the value could be 2049# computed 2050ac_fn_c_compute_int () 2051{ 2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2053 if test "$cross_compiling" = yes; then 2054 # Depending upon the size, compute the lo and hi bounds. 2055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057$4 2058int 2059main () 2060{ 2061static int test_array [1 - 2 * !(($2) >= 0)]; 2062test_array [0] = 0; 2063return test_array [0]; 2064 2065 ; 2066 return 0; 2067} 2068_ACEOF 2069if ac_fn_c_try_compile "$LINENO"; then : 2070 ac_lo=0 ac_mid=0 2071 while :; do 2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2073/* end confdefs.h. */ 2074$4 2075int 2076main () 2077{ 2078static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2079test_array [0] = 0; 2080return test_array [0]; 2081 2082 ; 2083 return 0; 2084} 2085_ACEOF 2086if ac_fn_c_try_compile "$LINENO"; then : 2087 ac_hi=$ac_mid; break 2088else 2089 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2090 if test $ac_lo -le $ac_mid; then 2091 ac_lo= ac_hi= 2092 break 2093 fi 2094 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2095fi 2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2097 done 2098else 2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101$4 2102int 2103main () 2104{ 2105static int test_array [1 - 2 * !(($2) < 0)]; 2106test_array [0] = 0; 2107return test_array [0]; 2108 2109 ; 2110 return 0; 2111} 2112_ACEOF 2113if ac_fn_c_try_compile "$LINENO"; then : 2114 ac_hi=-1 ac_mid=-1 2115 while :; do 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118$4 2119int 2120main () 2121{ 2122static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2123test_array [0] = 0; 2124return test_array [0]; 2125 2126 ; 2127 return 0; 2128} 2129_ACEOF 2130if ac_fn_c_try_compile "$LINENO"; then : 2131 ac_lo=$ac_mid; break 2132else 2133 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2134 if test $ac_mid -le $ac_hi; then 2135 ac_lo= ac_hi= 2136 break 2137 fi 2138 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2139fi 2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2141 done 2142else 2143 ac_lo= ac_hi= 2144fi 2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2146fi 2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2148# Binary search between lo and hi bounds. 2149while test "x$ac_lo" != "x$ac_hi"; do 2150 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2158test_array [0] = 0; 2159return test_array [0]; 2160 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_c_try_compile "$LINENO"; then : 2166 ac_hi=$ac_mid 2167else 2168 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2169fi 2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2171done 2172case $ac_lo in #(( 2173?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2174'') ac_retval=1 ;; 2175esac 2176 else 2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2178/* end confdefs.h. */ 2179$4 2180static long int longval () { return $2; } 2181static unsigned long int ulongval () { return $2; } 2182#include <stdio.h> 2183#include <stdlib.h> 2184int 2185main () 2186{ 2187 2188 FILE *f = fopen ("conftest.val", "w"); 2189 if (! f) 2190 return 1; 2191 if (($2) < 0) 2192 { 2193 long int i = longval (); 2194 if (i != ($2)) 2195 return 1; 2196 fprintf (f, "%ld", i); 2197 } 2198 else 2199 { 2200 unsigned long int i = ulongval (); 2201 if (i != ($2)) 2202 return 1; 2203 fprintf (f, "%lu", i); 2204 } 2205 /* Do not output a trailing newline, as this causes \r\n confusion 2206 on some platforms. */ 2207 return ferror (f) || fclose (f) != 0; 2208 2209 ; 2210 return 0; 2211} 2212_ACEOF 2213if ac_fn_c_try_run "$LINENO"; then : 2214 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2215else 2216 ac_retval=1 2217fi 2218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2219 conftest.$ac_objext conftest.beam conftest.$ac_ext 2220rm -f conftest.val 2221 2222 fi 2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2224 as_fn_set_status $ac_retval 2225 2226} # ac_fn_c_compute_int 2227 2228# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2229# ---------------------------------------------------- 2230# Tries to find if the field MEMBER exists in type AGGR, after including 2231# INCLUDES, setting cache variable VAR accordingly. 2232ac_fn_c_check_member () 2233{ 2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2236$as_echo_n "checking for $2.$3... " >&6; } 2237if eval \${$4+:} false; then : 2238 $as_echo_n "(cached) " >&6 2239else 2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2241/* end confdefs.h. */ 2242$5 2243int 2244main () 2245{ 2246static $2 ac_aggr; 2247if (ac_aggr.$3) 2248return 0; 2249 ; 2250 return 0; 2251} 2252_ACEOF 2253if ac_fn_c_try_compile "$LINENO"; then : 2254 eval "$4=yes" 2255else 2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2257/* end confdefs.h. */ 2258$5 2259int 2260main () 2261{ 2262static $2 ac_aggr; 2263if (sizeof ac_aggr.$3) 2264return 0; 2265 ; 2266 return 0; 2267} 2268_ACEOF 2269if ac_fn_c_try_compile "$LINENO"; then : 2270 eval "$4=yes" 2271else 2272 eval "$4=no" 2273fi 2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2275fi 2276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2277fi 2278eval ac_res=\$$4 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2280$as_echo "$ac_res" >&6; } 2281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2282 2283} # ac_fn_c_check_member 2284cat >config.log <<_ACEOF 2285This file contains any messages produced by compilers while 2286running configure, to aid debugging if configure makes a mistake. 2287 2288It was created by fontconfig $as_me 2.10.93, which was 2289generated by GNU Autoconf 2.69. Invocation command line was 2290 2291 $ $0 $@ 2292 2293_ACEOF 2294exec 5>>config.log 2295{ 2296cat <<_ASUNAME 2297## --------- ## 2298## Platform. ## 2299## --------- ## 2300 2301hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2302uname -m = `(uname -m) 2>/dev/null || echo unknown` 2303uname -r = `(uname -r) 2>/dev/null || echo unknown` 2304uname -s = `(uname -s) 2>/dev/null || echo unknown` 2305uname -v = `(uname -v) 2>/dev/null || echo unknown` 2306 2307/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2308/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2309 2310/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2311/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2312/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2313/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2314/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2315/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2316/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2317 2318_ASUNAME 2319 2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 $as_echo "PATH: $as_dir" 2326 done 2327IFS=$as_save_IFS 2328 2329} >&5 2330 2331cat >&5 <<_ACEOF 2332 2333 2334## ----------- ## 2335## Core tests. ## 2336## ----------- ## 2337 2338_ACEOF 2339 2340 2341# Keep a trace of the command line. 2342# Strip out --no-create and --no-recursion so they do not pile up. 2343# Strip out --silent because we don't want to record it for future runs. 2344# Also quote any args containing shell meta-characters. 2345# Make two passes to allow for proper duplicate-argument suppression. 2346ac_configure_args= 2347ac_configure_args0= 2348ac_configure_args1= 2349ac_must_keep_next=false 2350for ac_pass in 1 2 2351do 2352 for ac_arg 2353 do 2354 case $ac_arg in 2355 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2357 | -silent | --silent | --silen | --sile | --sil) 2358 continue ;; 2359 *\'*) 2360 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2361 esac 2362 case $ac_pass in 2363 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2364 2) 2365 as_fn_append ac_configure_args1 " '$ac_arg'" 2366 if test $ac_must_keep_next = true; then 2367 ac_must_keep_next=false # Got value, back to normal. 2368 else 2369 case $ac_arg in 2370 *=* | --config-cache | -C | -disable-* | --disable-* \ 2371 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2372 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2373 | -with-* | --with-* | -without-* | --without-* | --x) 2374 case "$ac_configure_args0 " in 2375 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2376 esac 2377 ;; 2378 -* ) ac_must_keep_next=true ;; 2379 esac 2380 fi 2381 as_fn_append ac_configure_args " '$ac_arg'" 2382 ;; 2383 esac 2384 done 2385done 2386{ ac_configure_args0=; unset ac_configure_args0;} 2387{ ac_configure_args1=; unset ac_configure_args1;} 2388 2389# When interrupted or exit'd, cleanup temporary files, and complete 2390# config.log. We remove comments because anyway the quotes in there 2391# would cause problems or look ugly. 2392# WARNING: Use '\'' to represent an apostrophe within the trap. 2393# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2394trap 'exit_status=$? 2395 # Save into config.log some information that might help in debugging. 2396 { 2397 echo 2398 2399 $as_echo "## ---------------- ## 2400## Cache variables. ## 2401## ---------------- ##" 2402 echo 2403 # The following way of writing the cache mishandles newlines in values, 2404( 2405 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2406 eval ac_val=\$$ac_var 2407 case $ac_val in #( 2408 *${as_nl}*) 2409 case $ac_var in #( 2410 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2411$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2412 esac 2413 case $ac_var in #( 2414 _ | IFS | as_nl) ;; #( 2415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2416 *) { eval $ac_var=; unset $ac_var;} ;; 2417 esac ;; 2418 esac 2419 done 2420 (set) 2>&1 | 2421 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2422 *${as_nl}ac_space=\ *) 2423 sed -n \ 2424 "s/'\''/'\''\\\\'\'''\''/g; 2425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2426 ;; #( 2427 *) 2428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2429 ;; 2430 esac | 2431 sort 2432) 2433 echo 2434 2435 $as_echo "## ----------------- ## 2436## Output variables. ## 2437## ----------------- ##" 2438 echo 2439 for ac_var in $ac_subst_vars 2440 do 2441 eval ac_val=\$$ac_var 2442 case $ac_val in 2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2444 esac 2445 $as_echo "$ac_var='\''$ac_val'\''" 2446 done | sort 2447 echo 2448 2449 if test -n "$ac_subst_files"; then 2450 $as_echo "## ------------------- ## 2451## File substitutions. ## 2452## ------------------- ##" 2453 echo 2454 for ac_var in $ac_subst_files 2455 do 2456 eval ac_val=\$$ac_var 2457 case $ac_val in 2458 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2459 esac 2460 $as_echo "$ac_var='\''$ac_val'\''" 2461 done | sort 2462 echo 2463 fi 2464 2465 if test -s confdefs.h; then 2466 $as_echo "## ----------- ## 2467## confdefs.h. ## 2468## ----------- ##" 2469 echo 2470 cat confdefs.h 2471 echo 2472 fi 2473 test "$ac_signal" != 0 && 2474 $as_echo "$as_me: caught signal $ac_signal" 2475 $as_echo "$as_me: exit $exit_status" 2476 } >&5 2477 rm -f core *.core core.conftest.* && 2478 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2479 exit $exit_status 2480' 0 2481for ac_signal in 1 2 13 15; do 2482 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2483done 2484ac_signal=0 2485 2486# confdefs.h avoids OS command line length limits that DEFS can exceed. 2487rm -f -r conftest* confdefs.h 2488 2489$as_echo "/* confdefs.h */" > confdefs.h 2490 2491# Predefined preprocessor variables. 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_NAME "$PACKAGE_NAME" 2495_ACEOF 2496 2497cat >>confdefs.h <<_ACEOF 2498#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2499_ACEOF 2500 2501cat >>confdefs.h <<_ACEOF 2502#define PACKAGE_VERSION "$PACKAGE_VERSION" 2503_ACEOF 2504 2505cat >>confdefs.h <<_ACEOF 2506#define PACKAGE_STRING "$PACKAGE_STRING" 2507_ACEOF 2508 2509cat >>confdefs.h <<_ACEOF 2510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2511_ACEOF 2512 2513cat >>confdefs.h <<_ACEOF 2514#define PACKAGE_URL "$PACKAGE_URL" 2515_ACEOF 2516 2517 2518# Let the site file select an alternate cache file if it wants to. 2519# Prefer an explicitly selected file to automatically selected ones. 2520ac_site_file1=NONE 2521ac_site_file2=NONE 2522if test -n "$CONFIG_SITE"; then 2523 # We do not want a PATH search for config.site. 2524 case $CONFIG_SITE in #(( 2525 -*) ac_site_file1=./$CONFIG_SITE;; 2526 */*) ac_site_file1=$CONFIG_SITE;; 2527 *) ac_site_file1=./$CONFIG_SITE;; 2528 esac 2529elif test "x$prefix" != xNONE; then 2530 ac_site_file1=$prefix/share/config.site 2531 ac_site_file2=$prefix/etc/config.site 2532else 2533 ac_site_file1=$ac_default_prefix/share/config.site 2534 ac_site_file2=$ac_default_prefix/etc/config.site 2535fi 2536for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2537do 2538 test "x$ac_site_file" = xNONE && continue 2539 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2541$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2542 sed 's/^/| /' "$ac_site_file" >&5 2543 . "$ac_site_file" \ 2544 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2546as_fn_error $? "failed to load site script $ac_site_file 2547See \`config.log' for more details" "$LINENO" 5; } 2548 fi 2549done 2550 2551if test -r "$cache_file"; then 2552 # Some versions of bash will fail to source /dev/null (special files 2553 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2554 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2556$as_echo "$as_me: loading cache $cache_file" >&6;} 2557 case $cache_file in 2558 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2559 *) . "./$cache_file";; 2560 esac 2561 fi 2562else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2564$as_echo "$as_me: creating cache $cache_file" >&6;} 2565 >$cache_file 2566fi 2567 2568as_fn_append ac_header_list " stdlib.h" 2569as_fn_append ac_header_list " unistd.h" 2570as_fn_append ac_header_list " sys/param.h" 2571# Check that the precious variables saved in the cache have kept the same 2572# value. 2573ac_cache_corrupted=false 2574for ac_var in $ac_precious_vars; do 2575 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2576 eval ac_new_set=\$ac_env_${ac_var}_set 2577 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2578 eval ac_new_val=\$ac_env_${ac_var}_value 2579 case $ac_old_set,$ac_new_set in 2580 set,) 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2582$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2583 ac_cache_corrupted=: ;; 2584 ,set) 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2586$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2587 ac_cache_corrupted=: ;; 2588 ,);; 2589 *) 2590 if test "x$ac_old_val" != "x$ac_new_val"; then 2591 # differences in whitespace do not lead to failure. 2592 ac_old_val_w=`echo x $ac_old_val` 2593 ac_new_val_w=`echo x $ac_new_val` 2594 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2596$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2597 ac_cache_corrupted=: 2598 else 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2600$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2601 eval $ac_var=\$ac_old_val 2602 fi 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2604$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2606$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2607 fi;; 2608 esac 2609 # Pass precious variables to config.status. 2610 if test "$ac_new_set" = set; then 2611 case $ac_new_val in 2612 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2613 *) ac_arg=$ac_var=$ac_new_val ;; 2614 esac 2615 case " $ac_configure_args " in 2616 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2617 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2618 esac 2619 fi 2620done 2621if $ac_cache_corrupted; then 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2625$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2626 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2627fi 2628## -------------------- ## 2629## Main body of script. ## 2630## -------------------- ## 2631 2632ac_ext=c 2633ac_cpp='$CPP $CPPFLAGS' 2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2636ac_compiler_gnu=$ac_cv_c_compiler_gnu 2637 2638 2639am__api_version='1.12' 2640 2641ac_aux_dir= 2642for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2643 if test -f "$ac_dir/install-sh"; then 2644 ac_aux_dir=$ac_dir 2645 ac_install_sh="$ac_aux_dir/install-sh -c" 2646 break 2647 elif test -f "$ac_dir/install.sh"; then 2648 ac_aux_dir=$ac_dir 2649 ac_install_sh="$ac_aux_dir/install.sh -c" 2650 break 2651 elif test -f "$ac_dir/shtool"; then 2652 ac_aux_dir=$ac_dir 2653 ac_install_sh="$ac_aux_dir/shtool install -c" 2654 break 2655 fi 2656done 2657if test -z "$ac_aux_dir"; then 2658 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2659fi 2660 2661# These three variables are undocumented and unsupported, 2662# and are intended to be withdrawn in a future Autoconf release. 2663# They can cause serious problems if a builder's source tree is in a directory 2664# whose full name contains unusual characters. 2665ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2666ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2667ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2668 2669 2670# Find a good install program. We prefer a C program (faster), 2671# so one script is as good as another. But avoid the broken or 2672# incompatible versions: 2673# SysV /etc/install, /usr/sbin/install 2674# SunOS /usr/etc/install 2675# IRIX /sbin/install 2676# AIX /bin/install 2677# AmigaOS /C/install, which installs bootblocks on floppy discs 2678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2679# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2681# OS/2's system install, which has a completely different semantic 2682# ./install, which can be erroneously created by make from ./install.sh. 2683# Reject install programs that cannot install multiple files. 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2685$as_echo_n "checking for a BSD-compatible install... " >&6; } 2686if test -z "$INSTALL"; then 2687if ${ac_cv_path_install+:} false; then : 2688 $as_echo_n "(cached) " >&6 2689else 2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 # Account for people who put trailing slashes in PATH elements. 2696case $as_dir/ in #(( 2697 ./ | .// | /[cC]/* | \ 2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2700 /usr/ucb/* ) ;; 2701 *) 2702 # OSF1 and SCO ODT 3.0 have their own names for install. 2703 # Don't use installbsd from OSF since it installs stuff as root 2704 # by default. 2705 for ac_prog in ginstall scoinst install; do 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2708 if test $ac_prog = install && 2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2710 # AIX install. It has an incompatible calling convention. 2711 : 2712 elif test $ac_prog = install && 2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2714 # program-specific install script used by HP pwplus--don't use. 2715 : 2716 else 2717 rm -rf conftest.one conftest.two conftest.dir 2718 echo one > conftest.one 2719 echo two > conftest.two 2720 mkdir conftest.dir 2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2722 test -s conftest.one && test -s conftest.two && 2723 test -s conftest.dir/conftest.one && 2724 test -s conftest.dir/conftest.two 2725 then 2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2727 break 3 2728 fi 2729 fi 2730 fi 2731 done 2732 done 2733 ;; 2734esac 2735 2736 done 2737IFS=$as_save_IFS 2738 2739rm -rf conftest.one conftest.two conftest.dir 2740 2741fi 2742 if test "${ac_cv_path_install+set}" = set; then 2743 INSTALL=$ac_cv_path_install 2744 else 2745 # As a last resort, use the slow shell script. Don't cache a 2746 # value for INSTALL within a source directory, because that will 2747 # break other packages using the cache if that directory is 2748 # removed, or if the value is a relative name. 2749 INSTALL=$ac_install_sh 2750 fi 2751fi 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2753$as_echo "$INSTALL" >&6; } 2754 2755# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2756# It thinks the first close brace ends the variable substitution. 2757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2758 2759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2760 2761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2762 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2764$as_echo_n "checking whether build environment is sane... " >&6; } 2765# Reject unsafe characters in $srcdir or the absolute working directory 2766# name. Accept space and tab only in the latter. 2767am_lf=' 2768' 2769case `pwd` in 2770 *[\\\"\#\$\&\'\`$am_lf]*) 2771 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2772esac 2773case $srcdir in 2774 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2775 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2776esac 2777 2778# Do 'set' in a subshell so we don't clobber the current shell's 2779# arguments. Must try -L first in case configure is actually a 2780# symlink; some systems play weird games with the mod time of symlinks 2781# (eg FreeBSD returns the mod time of the symlink's containing 2782# directory). 2783if ( 2784 am_has_slept=no 2785 for am_try in 1 2; do 2786 echo "timestamp, slept: $am_has_slept" > conftest.file 2787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2788 if test "$*" = "X"; then 2789 # -L didn't work. 2790 set X `ls -t "$srcdir/configure" conftest.file` 2791 fi 2792 if test "$*" != "X $srcdir/configure conftest.file" \ 2793 && test "$*" != "X conftest.file $srcdir/configure"; then 2794 2795 # If neither matched, then we have a broken ls. This can happen 2796 # if, for instance, CONFIG_SHELL is bash and it inherits a 2797 # broken ls alias from the environment. This has actually 2798 # happened. Such a system could not be considered "sane". 2799 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2800 alias in your environment" "$LINENO" 5 2801 fi 2802 if test "$2" = conftest.file || test $am_try -eq 2; then 2803 break 2804 fi 2805 # Just in case. 2806 sleep 1 2807 am_has_slept=yes 2808 done 2809 test "$2" = conftest.file 2810 ) 2811then 2812 # Ok. 2813 : 2814else 2815 as_fn_error $? "newly created file is older than distributed files! 2816Check your system clock" "$LINENO" 5 2817fi 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2819$as_echo "yes" >&6; } 2820# If we didn't sleep, we still need to ensure time stamps of config.status and 2821# generated files are strictly newer. 2822am_sleep_pid= 2823if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2824 ( sleep 1 ) & 2825 am_sleep_pid=$! 2826fi 2827 2828rm -f conftest.file 2829 2830test "$program_prefix" != NONE && 2831 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2832# Use a double $ so make ignores it. 2833test "$program_suffix" != NONE && 2834 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2835# Double any \ or $. 2836# By default was `s,x,x', remove it if useless. 2837ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2838program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2839 2840# expand $ac_aux_dir to an absolute path 2841am_aux_dir=`cd $ac_aux_dir && pwd` 2842 2843if test x"${MISSING+set}" != xset; then 2844 case $am_aux_dir in 2845 *\ * | *\ *) 2846 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2847 *) 2848 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2849 esac 2850fi 2851# Use eval to expand $SHELL 2852if eval "$MISSING --run true"; then 2853 am_missing_run="$MISSING --run " 2854else 2855 am_missing_run= 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2857$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2858fi 2859 2860if test x"${install_sh}" != xset; then 2861 case $am_aux_dir in 2862 *\ * | *\ *) 2863 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2864 *) 2865 install_sh="\${SHELL} $am_aux_dir/install-sh" 2866 esac 2867fi 2868 2869# Installed binaries are usually stripped using 'strip' when the user 2870# run "make install-strip". However 'strip' might not be the right 2871# tool to use in cross-compilation environments, therefore Automake 2872# will honor the 'STRIP' environment variable to overrule this program. 2873if test "$cross_compiling" != no; then 2874 if test -n "$ac_tool_prefix"; then 2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2876set dummy ${ac_tool_prefix}strip; ac_word=$2 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878$as_echo_n "checking for $ac_word... " >&6; } 2879if ${ac_cv_prog_STRIP+:} false; then : 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test -n "$STRIP"; then 2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2884else 2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902STRIP=$ac_cv_prog_STRIP 2903if test -n "$STRIP"; then 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2905$as_echo "$STRIP" >&6; } 2906else 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908$as_echo "no" >&6; } 2909fi 2910 2911 2912fi 2913if test -z "$ac_cv_prog_STRIP"; then 2914 ac_ct_STRIP=$STRIP 2915 # Extract the first word of "strip", so it can be a program name with args. 2916set dummy strip; ac_word=$2 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918$as_echo_n "checking for $ac_word... " >&6; } 2919if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test -n "$ac_ct_STRIP"; then 2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2924else 2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926for as_dir in $PATH 2927do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2932 ac_cv_prog_ac_ct_STRIP="strip" 2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2934 break 2 2935 fi 2936done 2937 done 2938IFS=$as_save_IFS 2939 2940fi 2941fi 2942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2943if test -n "$ac_ct_STRIP"; then 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2945$as_echo "$ac_ct_STRIP" >&6; } 2946else 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2948$as_echo "no" >&6; } 2949fi 2950 2951 if test "x$ac_ct_STRIP" = x; then 2952 STRIP=":" 2953 else 2954 case $cross_compiling:$ac_tool_warned in 2955yes:) 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2958ac_tool_warned=yes ;; 2959esac 2960 STRIP=$ac_ct_STRIP 2961 fi 2962else 2963 STRIP="$ac_cv_prog_STRIP" 2964fi 2965 2966fi 2967INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2968 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2970$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2971if test -z "$MKDIR_P"; then 2972 if ${ac_cv_path_mkdir+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2977do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 for ac_prog in mkdir gmkdir; do 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2983 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2984 'mkdir (GNU coreutils) '* | \ 2985 'mkdir (coreutils) '* | \ 2986 'mkdir (fileutils) '4.1*) 2987 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2988 break 3;; 2989 esac 2990 done 2991 done 2992 done 2993IFS=$as_save_IFS 2994 2995fi 2996 2997 test -d ./--version && rmdir ./--version 2998 if test "${ac_cv_path_mkdir+set}" = set; then 2999 MKDIR_P="$ac_cv_path_mkdir -p" 3000 else 3001 # As a last resort, use the slow shell script. Don't cache a 3002 # value for MKDIR_P within a source directory, because that will 3003 # break other packages using the cache if that directory is 3004 # removed, or if the value is a relative name. 3005 MKDIR_P="$ac_install_sh -d" 3006 fi 3007fi 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3009$as_echo "$MKDIR_P" >&6; } 3010 3011for ac_prog in gawk mawk nawk awk 3012do 3013 # Extract the first word of "$ac_prog", so it can be a program name with args. 3014set dummy $ac_prog; ac_word=$2 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3016$as_echo_n "checking for $ac_word... " >&6; } 3017if ${ac_cv_prog_AWK+:} false; then : 3018 $as_echo_n "(cached) " >&6 3019else 3020 if test -n "$AWK"; then 3021 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3022else 3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3024for as_dir in $PATH 3025do 3026 IFS=$as_save_IFS 3027 test -z "$as_dir" && as_dir=. 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3030 ac_cv_prog_AWK="$ac_prog" 3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3032 break 2 3033 fi 3034done 3035 done 3036IFS=$as_save_IFS 3037 3038fi 3039fi 3040AWK=$ac_cv_prog_AWK 3041if test -n "$AWK"; then 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3043$as_echo "$AWK" >&6; } 3044else 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3046$as_echo "no" >&6; } 3047fi 3048 3049 3050 test -n "$AWK" && break 3051done 3052 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3054$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3055set x ${MAKE-make} 3056ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3057if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3058 $as_echo_n "(cached) " >&6 3059else 3060 cat >conftest.make <<\_ACEOF 3061SHELL = /bin/sh 3062all: 3063 @echo '@@@%%%=$(MAKE)=@@@%%%' 3064_ACEOF 3065# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3066case `${MAKE-make} -f conftest.make 2>/dev/null` in 3067 *@@@%%%=?*=@@@%%%*) 3068 eval ac_cv_prog_make_${ac_make}_set=yes;; 3069 *) 3070 eval ac_cv_prog_make_${ac_make}_set=no;; 3071esac 3072rm -f conftest.make 3073fi 3074if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3076$as_echo "yes" >&6; } 3077 SET_MAKE= 3078else 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080$as_echo "no" >&6; } 3081 SET_MAKE="MAKE=${MAKE-make}" 3082fi 3083 3084rm -rf .tst 2>/dev/null 3085mkdir .tst 2>/dev/null 3086if test -d .tst; then 3087 am__leading_dot=. 3088else 3089 am__leading_dot=_ 3090fi 3091rmdir .tst 2>/dev/null 3092 3093if test "`cd $srcdir && pwd`" != "`pwd`"; then 3094 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3095 # is not polluted with repeated "-I." 3096 am__isrc=' -I$(srcdir)' 3097 # test to see if srcdir already configured 3098 if test -f $srcdir/config.status; then 3099 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3100 fi 3101fi 3102 3103# test whether we have cygpath 3104if test -z "$CYGPATH_W"; then 3105 if (cygpath --version) >/dev/null 2>/dev/null; then 3106 CYGPATH_W='cygpath -w' 3107 else 3108 CYGPATH_W=echo 3109 fi 3110fi 3111 3112 3113# Define the identity of the package. 3114 PACKAGE='fontconfig' 3115 VERSION='2.10.93' 3116 3117 3118cat >>confdefs.h <<_ACEOF 3119#define PACKAGE "$PACKAGE" 3120_ACEOF 3121 3122 3123cat >>confdefs.h <<_ACEOF 3124#define VERSION "$VERSION" 3125_ACEOF 3126 3127# Some tools Automake needs. 3128 3129ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3130 3131 3132AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3133 3134 3135AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3136 3137 3138AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3139 3140 3141MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3142 3143# For better backward compatibility. To be removed once Automake 1.9.x 3144# dies out for good. For more background, see: 3145# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3146# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3147mkdir_p='$(MKDIR_P)' 3148 3149# We need awk for the "check" target. The system "awk" is bad on 3150# some platforms. 3151# Always define AMTAR for backward compatibility. Yes, it's still used 3152# in the wild :-( We should find a proper way to deprecate it ... 3153AMTAR='$${TAR-tar}' 3154 3155am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3156 3157 3158 3159 3160 3161# Check whether --enable-silent-rules was given. 3162if test "${enable_silent_rules+set}" = set; then : 3163 enableval=$enable_silent_rules; 3164fi 3165 3166case $enable_silent_rules in # ((( 3167 yes) AM_DEFAULT_VERBOSITY=0;; 3168 no) AM_DEFAULT_VERBOSITY=1;; 3169 *) AM_DEFAULT_VERBOSITY=0;; 3170esac 3171am_make=${MAKE-make} 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3173$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3174if ${am_cv_make_support_nested_variables+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if $as_echo 'TRUE=$(BAR$(V)) 3178BAR0=false 3179BAR1=true 3180V=1 3181am__doit: 3182 @$(TRUE) 3183.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3184 am_cv_make_support_nested_variables=yes 3185else 3186 am_cv_make_support_nested_variables=no 3187fi 3188fi 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3190$as_echo "$am_cv_make_support_nested_variables" >&6; } 3191if test $am_cv_make_support_nested_variables = yes; then 3192 AM_V='$(V)' 3193 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3194else 3195 AM_V=$AM_DEFAULT_VERBOSITY 3196 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3197fi 3198AM_BACKSLASH='\' 3199 3200 3201 3202LIBT_CURRENT=8 3203LIBT_REVISION=0 3204 3205 3206LIBT_AGE=7 3207 3208LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE" 3209 3210 3211LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE` 3212 3213 3214 3215ac_config_headers="$ac_config_headers config.h" 3216 3217 3218 3219ac_ext=c 3220ac_cpp='$CPP $CPPFLAGS' 3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3223ac_compiler_gnu=$ac_cv_c_compiler_gnu 3224if test -n "$ac_tool_prefix"; then 3225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3226set dummy ${ac_tool_prefix}gcc; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_CC+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$CC"; then 3233 ac_cv_prog_CC="$CC" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252CC=$ac_cv_prog_CC 3253if test -n "$CC"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3255$as_echo "$CC" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262fi 3263if test -z "$ac_cv_prog_CC"; then 3264 ac_ct_CC=$CC 3265 # Extract the first word of "gcc", so it can be a program name with args. 3266set dummy gcc; ac_word=$2 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3268$as_echo_n "checking for $ac_word... " >&6; } 3269if ${ac_cv_prog_ac_ct_CC+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test -n "$ac_ct_CC"; then 3273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 test -z "$as_dir" && as_dir=. 3280 for ac_exec_ext in '' $ac_executable_extensions; do 3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3282 ac_cv_prog_ac_ct_CC="gcc" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291fi 3292ac_ct_CC=$ac_cv_prog_ac_ct_CC 3293if test -n "$ac_ct_CC"; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3295$as_echo "$ac_ct_CC" >&6; } 3296else 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3298$as_echo "no" >&6; } 3299fi 3300 3301 if test "x$ac_ct_CC" = x; then 3302 CC="" 3303 else 3304 case $cross_compiling:$ac_tool_warned in 3305yes:) 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3308ac_tool_warned=yes ;; 3309esac 3310 CC=$ac_ct_CC 3311 fi 3312else 3313 CC="$ac_cv_prog_CC" 3314fi 3315 3316if test -z "$CC"; then 3317 if test -n "$ac_tool_prefix"; then 3318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3319set dummy ${ac_tool_prefix}cc; ac_word=$2 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321$as_echo_n "checking for $ac_word... " >&6; } 3322if ${ac_cv_prog_CC+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_CC="${ac_tool_prefix}cc" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345CC=$ac_cv_prog_CC 3346if test -n "$CC"; then 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3348$as_echo "$CC" >&6; } 3349else 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352fi 3353 3354 3355 fi 3356fi 3357if test -z "$CC"; then 3358 # Extract the first word of "cc", so it can be a program name with args. 3359set dummy cc; ac_word=$2 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361$as_echo_n "checking for $ac_word... " >&6; } 3362if ${ac_cv_prog_CC+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 if test -n "$CC"; then 3366 ac_cv_prog_CC="$CC" # Let the user override the test. 3367else 3368 ac_prog_rejected=no 3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370for as_dir in $PATH 3371do 3372 IFS=$as_save_IFS 3373 test -z "$as_dir" && as_dir=. 3374 for ac_exec_ext in '' $ac_executable_extensions; do 3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3377 ac_prog_rejected=yes 3378 continue 3379 fi 3380 ac_cv_prog_CC="cc" 3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388if test $ac_prog_rejected = yes; then 3389 # We found a bogon in the path, so make sure we never use it. 3390 set dummy $ac_cv_prog_CC 3391 shift 3392 if test $# != 0; then 3393 # We chose a different compiler from the bogus one. 3394 # However, it has the same basename, so the bogon will be chosen 3395 # first if we set CC to just the basename; use the full file name. 3396 shift 3397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3398 fi 3399fi 3400fi 3401fi 3402CC=$ac_cv_prog_CC 3403if test -n "$CC"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3405$as_echo "$CC" >&6; } 3406else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408$as_echo "no" >&6; } 3409fi 3410 3411 3412fi 3413if test -z "$CC"; then 3414 if test -n "$ac_tool_prefix"; then 3415 for ac_prog in cl.exe 3416 do 3417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3418set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3420$as_echo_n "checking for $ac_word... " >&6; } 3421if ${ac_cv_prog_CC+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426else 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 test -z "$as_dir" && as_dir=. 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3436 break 2 3437 fi 3438done 3439 done 3440IFS=$as_save_IFS 3441 3442fi 3443fi 3444CC=$ac_cv_prog_CC 3445if test -n "$CC"; then 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3447$as_echo "$CC" >&6; } 3448else 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3450$as_echo "no" >&6; } 3451fi 3452 3453 3454 test -n "$CC" && break 3455 done 3456fi 3457if test -z "$CC"; then 3458 ac_ct_CC=$CC 3459 for ac_prog in cl.exe 3460do 3461 # Extract the first word of "$ac_prog", so it can be a program name with args. 3462set dummy $ac_prog; ac_word=$2 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3464$as_echo_n "checking for $ac_word... " >&6; } 3465if ${ac_cv_prog_ac_ct_CC+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 if test -n "$ac_ct_CC"; then 3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3470else 3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3472for as_dir in $PATH 3473do 3474 IFS=$as_save_IFS 3475 test -z "$as_dir" && as_dir=. 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3478 ac_cv_prog_ac_ct_CC="$ac_prog" 3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482done 3483 done 3484IFS=$as_save_IFS 3485 3486fi 3487fi 3488ac_ct_CC=$ac_cv_prog_ac_ct_CC 3489if test -n "$ac_ct_CC"; then 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3491$as_echo "$ac_ct_CC" >&6; } 3492else 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3494$as_echo "no" >&6; } 3495fi 3496 3497 3498 test -n "$ac_ct_CC" && break 3499done 3500 3501 if test "x$ac_ct_CC" = x; then 3502 CC="" 3503 else 3504 case $cross_compiling:$ac_tool_warned in 3505yes:) 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3508ac_tool_warned=yes ;; 3509esac 3510 CC=$ac_ct_CC 3511 fi 3512fi 3513 3514fi 3515 3516 3517test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3519as_fn_error $? "no acceptable C compiler found in \$PATH 3520See \`config.log' for more details" "$LINENO" 5; } 3521 3522# Provide some information about the compiler. 3523$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3524set X $ac_compile 3525ac_compiler=$2 3526for ac_option in --version -v -V -qversion; do 3527 { { ac_try="$ac_compiler $ac_option >&5" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3535 ac_status=$? 3536 if test -s conftest.err; then 3537 sed '10a\ 3538... rest of stderr output deleted ... 3539 10q' conftest.err >conftest.er1 3540 cat conftest.er1 >&5 3541 fi 3542 rm -f conftest.er1 conftest.err 3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3544 test $ac_status = 0; } 3545done 3546 3547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558ac_clean_files_save=$ac_clean_files 3559ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3560# Try to create an executable without -o first, disregard a.out. 3561# It will help us diagnose broken compilers, and finding out an intuition 3562# of exeext. 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3564$as_echo_n "checking whether the C compiler works... " >&6; } 3565ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3566 3567# The possible output files: 3568ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3569 3570ac_rmfiles= 3571for ac_file in $ac_files 3572do 3573 case $ac_file in 3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3575 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3576 esac 3577done 3578rm -f $ac_rmfiles 3579 3580if { { ac_try="$ac_link_default" 3581case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586$as_echo "$ac_try_echo"; } >&5 3587 (eval "$ac_link_default") 2>&5 3588 ac_status=$? 3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; }; then : 3591 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3592# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3593# in a Makefile. We should not override ac_cv_exeext if it was cached, 3594# so that the user can short-circuit this test for compilers unknown to 3595# Autoconf. 3596for ac_file in $ac_files '' 3597do 3598 test -f "$ac_file" || continue 3599 case $ac_file in 3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3601 ;; 3602 [ab].out ) 3603 # We found the default executable, but exeext='' is most 3604 # certainly right. 3605 break;; 3606 *.* ) 3607 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3608 then :; else 3609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3610 fi 3611 # We set ac_cv_exeext here because the later test for it is not 3612 # safe: cross compilers may not add the suffix if given an `-o' 3613 # argument, so we may need to know it at that point already. 3614 # Even if this section looks crufty: it has the advantage of 3615 # actually working. 3616 break;; 3617 * ) 3618 break;; 3619 esac 3620done 3621test "$ac_cv_exeext" = no && ac_cv_exeext= 3622 3623else 3624 ac_file='' 3625fi 3626if test -z "$ac_file"; then : 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628$as_echo "no" >&6; } 3629$as_echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3634as_fn_error 77 "C compiler cannot create executables 3635See \`config.log' for more details" "$LINENO" 5; } 3636else 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3638$as_echo "yes" >&6; } 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3641$as_echo_n "checking for C compiler default output file name... " >&6; } 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3643$as_echo "$ac_file" >&6; } 3644ac_exeext=$ac_cv_exeext 3645 3646rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3647ac_clean_files=$ac_clean_files_save 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3649$as_echo_n "checking for suffix of executables... " >&6; } 3650if { { ac_try="$ac_link" 3651case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656$as_echo "$ac_try_echo"; } >&5 3657 (eval "$ac_link") 2>&5 3658 ac_status=$? 3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3660 test $ac_status = 0; }; then : 3661 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3662# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3663# work properly (i.e., refer to `conftest.exe'), while it won't with 3664# `rm'. 3665for ac_file in conftest.exe conftest conftest.*; do 3666 test -f "$ac_file" || continue 3667 case $ac_file in 3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3670 break;; 3671 * ) break;; 3672 esac 3673done 3674else 3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3677as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3678See \`config.log' for more details" "$LINENO" 5; } 3679fi 3680rm -f conftest conftest$ac_cv_exeext 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3682$as_echo "$ac_cv_exeext" >&6; } 3683 3684rm -f conftest.$ac_ext 3685EXEEXT=$ac_cv_exeext 3686ac_exeext=$EXEEXT 3687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689#include <stdio.h> 3690int 3691main () 3692{ 3693FILE *f = fopen ("conftest.out", "w"); 3694 return ferror (f) || fclose (f) != 0; 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700ac_clean_files="$ac_clean_files conftest.out" 3701# Check that the compiler produces executables we can run. If not, either 3702# the compiler is broken, or we cross compile. 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3704$as_echo_n "checking whether we are cross compiling... " >&6; } 3705if test "$cross_compiling" != yes; then 3706 { { ac_try="$ac_link" 3707case "(($ac_try" in 3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3709 *) ac_try_echo=$ac_try;; 3710esac 3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3712$as_echo "$ac_try_echo"; } >&5 3713 (eval "$ac_link") 2>&5 3714 ac_status=$? 3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3716 test $ac_status = 0; } 3717 if { ac_try='./conftest$ac_cv_exeext' 3718 { { case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723$as_echo "$ac_try_echo"; } >&5 3724 (eval "$ac_try") 2>&5 3725 ac_status=$? 3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; }; }; then 3728 cross_compiling=no 3729 else 3730 if test "$cross_compiling" = maybe; then 3731 cross_compiling=yes 3732 else 3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3735as_fn_error $? "cannot run C compiled programs. 3736If you meant to cross compile, use \`--host'. 3737See \`config.log' for more details" "$LINENO" 5; } 3738 fi 3739 fi 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3742$as_echo "$cross_compiling" >&6; } 3743 3744rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3745ac_clean_files=$ac_clean_files_save 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3747$as_echo_n "checking for suffix of object files... " >&6; } 3748if ${ac_cv_objext+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752/* end confdefs.h. */ 3753 3754int 3755main () 3756{ 3757 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762rm -f conftest.o conftest.obj 3763if { { ac_try="$ac_compile" 3764case "(($ac_try" in 3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3766 *) ac_try_echo=$ac_try;; 3767esac 3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3769$as_echo "$ac_try_echo"; } >&5 3770 (eval "$ac_compile") 2>&5 3771 ac_status=$? 3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3773 test $ac_status = 0; }; then : 3774 for ac_file in conftest.o conftest.obj conftest.*; do 3775 test -f "$ac_file" || continue; 3776 case $ac_file in 3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3779 break;; 3780 esac 3781done 3782else 3783 $as_echo "$as_me: failed program was:" >&5 3784sed 's/^/| /' conftest.$ac_ext >&5 3785 3786{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3788as_fn_error $? "cannot compute suffix of object files: cannot compile 3789See \`config.log' for more details" "$LINENO" 5; } 3790fi 3791rm -f conftest.$ac_cv_objext conftest.$ac_ext 3792fi 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3794$as_echo "$ac_cv_objext" >&6; } 3795OBJEXT=$ac_cv_objext 3796ac_objext=$OBJEXT 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3799if ${ac_cv_c_compiler_gnu+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808#ifndef __GNUC__ 3809 choke me 3810#endif 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_c_try_compile "$LINENO"; then : 3817 ac_compiler_gnu=yes 3818else 3819 ac_compiler_gnu=no 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822ac_cv_c_compiler_gnu=$ac_compiler_gnu 3823 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3826$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3827if test $ac_compiler_gnu = yes; then 3828 GCC=yes 3829else 3830 GCC= 3831fi 3832ac_test_CFLAGS=${CFLAGS+set} 3833ac_save_CFLAGS=$CFLAGS 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3835$as_echo_n "checking whether $CC accepts -g... " >&6; } 3836if ${ac_cv_prog_cc_g+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 ac_save_c_werror_flag=$ac_c_werror_flag 3840 ac_c_werror_flag=yes 3841 ac_cv_prog_cc_g=no 3842 CFLAGS="-g" 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854if ac_fn_c_try_compile "$LINENO"; then : 3855 ac_cv_prog_cc_g=yes 3856else 3857 CFLAGS="" 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860 3861int 3862main () 3863{ 3864 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869if ac_fn_c_try_compile "$LINENO"; then : 3870 3871else 3872 ac_c_werror_flag=$ac_save_c_werror_flag 3873 CFLAGS="-g" 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876 3877int 3878main () 3879{ 3880 3881 ; 3882 return 0; 3883} 3884_ACEOF 3885if ac_fn_c_try_compile "$LINENO"; then : 3886 ac_cv_prog_cc_g=yes 3887fi 3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3891fi 3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3893 ac_c_werror_flag=$ac_save_c_werror_flag 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3896$as_echo "$ac_cv_prog_cc_g" >&6; } 3897if test "$ac_test_CFLAGS" = set; then 3898 CFLAGS=$ac_save_CFLAGS 3899elif test $ac_cv_prog_cc_g = yes; then 3900 if test "$GCC" = yes; then 3901 CFLAGS="-g -O2" 3902 else 3903 CFLAGS="-g" 3904 fi 3905else 3906 if test "$GCC" = yes; then 3907 CFLAGS="-O2" 3908 else 3909 CFLAGS= 3910 fi 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3914if ${ac_cv_prog_cc_c89+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 ac_cv_prog_cc_c89=no 3918ac_save_CC=$CC 3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921#include <stdarg.h> 3922#include <stdio.h> 3923struct stat; 3924/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3925struct buf { int x; }; 3926FILE * (*rcsopen) (struct buf *, struct stat *, int); 3927static char *e (p, i) 3928 char **p; 3929 int i; 3930{ 3931 return p[i]; 3932} 3933static char *f (char * (*g) (char **, int), char **p, ...) 3934{ 3935 char *s; 3936 va_list v; 3937 va_start (v,p); 3938 s = g (p, va_arg (v,int)); 3939 va_end (v); 3940 return s; 3941} 3942 3943/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3944 function prototypes and stuff, but not '\xHH' hex character constants. 3945 These don't provoke an error unfortunately, instead are silently treated 3946 as 'x'. The following induces an error, until -std is added to get 3947 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3948 array size at least. It's necessary to write '\x00'==0 to get something 3949 that's true only with -std. */ 3950int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3951 3952/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3953 inside strings and character constants. */ 3954#define FOO(x) 'x' 3955int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3956 3957int test (int i, double x); 3958struct s1 {int (*f) (int a);}; 3959struct s2 {int (*f) (double a);}; 3960int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3961int argc; 3962char **argv; 3963int 3964main () 3965{ 3966return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3972 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3973do 3974 CC="$ac_save_CC $ac_arg" 3975 if ac_fn_c_try_compile "$LINENO"; then : 3976 ac_cv_prog_cc_c89=$ac_arg 3977fi 3978rm -f core conftest.err conftest.$ac_objext 3979 test "x$ac_cv_prog_cc_c89" != "xno" && break 3980done 3981rm -f conftest.$ac_ext 3982CC=$ac_save_CC 3983 3984fi 3985# AC_CACHE_VAL 3986case "x$ac_cv_prog_cc_c89" in 3987 x) 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3989$as_echo "none needed" >&6; } ;; 3990 xno) 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3992$as_echo "unsupported" >&6; } ;; 3993 *) 3994 CC="$CC $ac_cv_prog_cc_c89" 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3996$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3997esac 3998if test "x$ac_cv_prog_cc_c89" != xno; then : 3999 4000fi 4001 4002ac_ext=c 4003ac_cpp='$CPP $CPPFLAGS' 4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4006ac_compiler_gnu=$ac_cv_c_compiler_gnu 4007DEPDIR="${am__leading_dot}deps" 4008 4009ac_config_commands="$ac_config_commands depfiles" 4010 4011 4012am_make=${MAKE-make} 4013cat > confinc << 'END' 4014am__doit: 4015 @echo this is the am__doit target 4016.PHONY: am__doit 4017END 4018# If we don't find an include directive, just comment out the code. 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4020$as_echo_n "checking for style of include used by $am_make... " >&6; } 4021am__include="#" 4022am__quote= 4023_am_result=none 4024# First try GNU make style include. 4025echo "include confinc" > confmf 4026# Ignore all kinds of additional output from 'make'. 4027case `$am_make -s -f confmf 2> /dev/null` in #( 4028*the\ am__doit\ target*) 4029 am__include=include 4030 am__quote= 4031 _am_result=GNU 4032 ;; 4033esac 4034# Now try BSD make style include. 4035if test "$am__include" = "#"; then 4036 echo '.include "confinc"' > confmf 4037 case `$am_make -s -f confmf 2> /dev/null` in #( 4038 *the\ am__doit\ target*) 4039 am__include=.include 4040 am__quote="\"" 4041 _am_result=BSD 4042 ;; 4043 esac 4044fi 4045 4046 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4048$as_echo "$_am_result" >&6; } 4049rm -f confinc confmf 4050 4051# Check whether --enable-dependency-tracking was given. 4052if test "${enable_dependency_tracking+set}" = set; then : 4053 enableval=$enable_dependency_tracking; 4054fi 4055 4056if test "x$enable_dependency_tracking" != xno; then 4057 am_depcomp="$ac_aux_dir/depcomp" 4058 AMDEPBACKSLASH='\' 4059 am__nodep='_no' 4060fi 4061 if test "x$enable_dependency_tracking" != xno; then 4062 AMDEP_TRUE= 4063 AMDEP_FALSE='#' 4064else 4065 AMDEP_TRUE='#' 4066 AMDEP_FALSE= 4067fi 4068 4069 4070 4071depcc="$CC" am_compiler_list= 4072 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4074$as_echo_n "checking dependency style of $depcc... " >&6; } 4075if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4079 # We make a subdir and do the tests there. Otherwise we can end up 4080 # making bogus files that we don't know about and never remove. For 4081 # instance it was reported that on HP-UX the gcc test will end up 4082 # making a dummy file named 'D' -- because '-MD' means "put the output 4083 # in D". 4084 rm -rf conftest.dir 4085 mkdir conftest.dir 4086 # Copy depcomp to subdir because otherwise we won't find it if we're 4087 # using a relative directory. 4088 cp "$am_depcomp" conftest.dir 4089 cd conftest.dir 4090 # We will build objects and dependencies in a subdirectory because 4091 # it helps to detect inapplicable dependency modes. For instance 4092 # both Tru64's cc and ICC support -MD to output dependencies as a 4093 # side effect of compilation, but ICC will put the dependencies in 4094 # the current directory while Tru64 will put them in the object 4095 # directory. 4096 mkdir sub 4097 4098 am_cv_CC_dependencies_compiler_type=none 4099 if test "$am_compiler_list" = ""; then 4100 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4101 fi 4102 am__universal=false 4103 case " $depcc " in #( 4104 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4105 esac 4106 4107 for depmode in $am_compiler_list; do 4108 # Setup a source with many dependencies, because some compilers 4109 # like to wrap large dependency lists on column 80 (with \), and 4110 # we should not choose a depcomp mode which is confused by this. 4111 # 4112 # We need to recreate these files for each test, as the compiler may 4113 # overwrite some of them when testing with obscure command lines. 4114 # This happens at least with the AIX C compiler. 4115 : > sub/conftest.c 4116 for i in 1 2 3 4 5 6; do 4117 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4118 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4119 # Solaris 10 /bin/sh. 4120 echo '/* dummy */' > sub/conftst$i.h 4121 done 4122 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4123 4124 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4125 # mode. It turns out that the SunPro C++ compiler does not properly 4126 # handle '-M -o', and we need to detect this. Also, some Intel 4127 # versions had trouble with output in subdirs. 4128 am__obj=sub/conftest.${OBJEXT-o} 4129 am__minus_obj="-o $am__obj" 4130 case $depmode in 4131 gcc) 4132 # This depmode causes a compiler race in universal mode. 4133 test "$am__universal" = false || continue 4134 ;; 4135 nosideeffect) 4136 # After this tag, mechanisms are not by side-effect, so they'll 4137 # only be used when explicitly requested. 4138 if test "x$enable_dependency_tracking" = xyes; then 4139 continue 4140 else 4141 break 4142 fi 4143 ;; 4144 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4145 # This compiler won't grok '-c -o', but also, the minuso test has 4146 # not run yet. These depmodes are late enough in the game, and 4147 # so weak that their functioning should not be impacted. 4148 am__obj=conftest.${OBJEXT-o} 4149 am__minus_obj= 4150 ;; 4151 none) break ;; 4152 esac 4153 if depmode=$depmode \ 4154 source=sub/conftest.c object=$am__obj \ 4155 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4156 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4157 >/dev/null 2>conftest.err && 4158 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4159 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4160 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4161 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4162 # icc doesn't choke on unknown options, it will just issue warnings 4163 # or remarks (even with -Werror). So we grep stderr for any message 4164 # that says an option was ignored or not supported. 4165 # When given -MP, icc 7.0 and 7.1 complain thusly: 4166 # icc: Command line warning: ignoring option '-M'; no argument required 4167 # The diagnosis changed in icc 8.0: 4168 # icc: Command line remark: option '-MP' not supported 4169 if (grep 'ignoring option' conftest.err || 4170 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4171 am_cv_CC_dependencies_compiler_type=$depmode 4172 break 4173 fi 4174 fi 4175 done 4176 4177 cd .. 4178 rm -rf conftest.dir 4179else 4180 am_cv_CC_dependencies_compiler_type=none 4181fi 4182 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4185$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4186CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4187 4188 if 4189 test "x$enable_dependency_tracking" != xno \ 4190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4191 am__fastdepCC_TRUE= 4192 am__fastdepCC_FALSE='#' 4193else 4194 am__fastdepCC_TRUE='#' 4195 am__fastdepCC_FALSE= 4196fi 4197 4198 4199 4200ac_ext=c 4201ac_cpp='$CPP $CPPFLAGS' 4202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4204ac_compiler_gnu=$ac_cv_c_compiler_gnu 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4206$as_echo_n "checking how to run the C preprocessor... " >&6; } 4207# On Suns, sometimes $CPP names a directory. 4208if test -n "$CPP" && test -d "$CPP"; then 4209 CPP= 4210fi 4211if test -z "$CPP"; then 4212 if ${ac_cv_prog_CPP+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 # Double quotes because CPP needs to be expanded 4216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4217 do 4218 ac_preproc_ok=false 4219for ac_c_preproc_warn_flag in '' yes 4220do 4221 # Use a header file that comes with gcc, so configuring glibc 4222 # with a fresh cross-compiler works. 4223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4224 # <limits.h> exists even on freestanding compilers. 4225 # On the NeXT, cc -E runs the code through the compiler's parser, 4226 # not just through cpp. "Syntax error" is here to catch this case. 4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4228/* end confdefs.h. */ 4229#ifdef __STDC__ 4230# include <limits.h> 4231#else 4232# include <assert.h> 4233#endif 4234 Syntax error 4235_ACEOF 4236if ac_fn_c_try_cpp "$LINENO"; then : 4237 4238else 4239 # Broken: fails on valid input. 4240continue 4241fi 4242rm -f conftest.err conftest.i conftest.$ac_ext 4243 4244 # OK, works on sane cases. Now check whether nonexistent headers 4245 # can be detected and how. 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248#include <ac_nonexistent.h> 4249_ACEOF 4250if ac_fn_c_try_cpp "$LINENO"; then : 4251 # Broken: success on invalid input. 4252continue 4253else 4254 # Passes both tests. 4255ac_preproc_ok=: 4256break 4257fi 4258rm -f conftest.err conftest.i conftest.$ac_ext 4259 4260done 4261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4262rm -f conftest.i conftest.err conftest.$ac_ext 4263if $ac_preproc_ok; then : 4264 break 4265fi 4266 4267 done 4268 ac_cv_prog_CPP=$CPP 4269 4270fi 4271 CPP=$ac_cv_prog_CPP 4272else 4273 ac_cv_prog_CPP=$CPP 4274fi 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4276$as_echo "$CPP" >&6; } 4277ac_preproc_ok=false 4278for ac_c_preproc_warn_flag in '' yes 4279do 4280 # Use a header file that comes with gcc, so configuring glibc 4281 # with a fresh cross-compiler works. 4282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4283 # <limits.h> exists even on freestanding compilers. 4284 # On the NeXT, cc -E runs the code through the compiler's parser, 4285 # not just through cpp. "Syntax error" is here to catch this case. 4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4287/* end confdefs.h. */ 4288#ifdef __STDC__ 4289# include <limits.h> 4290#else 4291# include <assert.h> 4292#endif 4293 Syntax error 4294_ACEOF 4295if ac_fn_c_try_cpp "$LINENO"; then : 4296 4297else 4298 # Broken: fails on valid input. 4299continue 4300fi 4301rm -f conftest.err conftest.i conftest.$ac_ext 4302 4303 # OK, works on sane cases. Now check whether nonexistent headers 4304 # can be detected and how. 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307#include <ac_nonexistent.h> 4308_ACEOF 4309if ac_fn_c_try_cpp "$LINENO"; then : 4310 # Broken: success on invalid input. 4311continue 4312else 4313 # Passes both tests. 4314ac_preproc_ok=: 4315break 4316fi 4317rm -f conftest.err conftest.i conftest.$ac_ext 4318 4319done 4320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4321rm -f conftest.i conftest.err conftest.$ac_ext 4322if $ac_preproc_ok; then : 4323 4324else 4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4327as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4328See \`config.log' for more details" "$LINENO" 5; } 4329fi 4330 4331ac_ext=c 4332ac_cpp='$CPP $CPPFLAGS' 4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4335ac_compiler_gnu=$ac_cv_c_compiler_gnu 4336 4337 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4339$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4340if ${ac_cv_path_GREP+:} false; then : 4341 $as_echo_n "(cached) " >&6 4342else 4343 if test -z "$GREP"; then 4344 ac_path_GREP_found=false 4345 # Loop through the user's path and test for each of PROGNAME-LIST 4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4347for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4348do 4349 IFS=$as_save_IFS 4350 test -z "$as_dir" && as_dir=. 4351 for ac_prog in grep ggrep; do 4352 for ac_exec_ext in '' $ac_executable_extensions; do 4353 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4354 as_fn_executable_p "$ac_path_GREP" || continue 4355# Check for GNU ac_path_GREP and select it if it is found. 4356 # Check for GNU $ac_path_GREP 4357case `"$ac_path_GREP" --version 2>&1` in 4358*GNU*) 4359 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4360*) 4361 ac_count=0 4362 $as_echo_n 0123456789 >"conftest.in" 4363 while : 4364 do 4365 cat "conftest.in" "conftest.in" >"conftest.tmp" 4366 mv "conftest.tmp" "conftest.in" 4367 cp "conftest.in" "conftest.nl" 4368 $as_echo 'GREP' >> "conftest.nl" 4369 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4371 as_fn_arith $ac_count + 1 && ac_count=$as_val 4372 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4373 # Best one so far, save it but keep looking for a better one 4374 ac_cv_path_GREP="$ac_path_GREP" 4375 ac_path_GREP_max=$ac_count 4376 fi 4377 # 10*(2^10) chars as input seems more than enough 4378 test $ac_count -gt 10 && break 4379 done 4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4381esac 4382 4383 $ac_path_GREP_found && break 3 4384 done 4385 done 4386 done 4387IFS=$as_save_IFS 4388 if test -z "$ac_cv_path_GREP"; then 4389 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4390 fi 4391else 4392 ac_cv_path_GREP=$GREP 4393fi 4394 4395fi 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4397$as_echo "$ac_cv_path_GREP" >&6; } 4398 GREP="$ac_cv_path_GREP" 4399 4400 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4402$as_echo_n "checking for egrep... " >&6; } 4403if ${ac_cv_path_EGREP+:} false; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4407 then ac_cv_path_EGREP="$GREP -E" 4408 else 4409 if test -z "$EGREP"; then 4410 ac_path_EGREP_found=false 4411 # Loop through the user's path and test for each of PROGNAME-LIST 4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_prog in egrep; do 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4420 as_fn_executable_p "$ac_path_EGREP" || continue 4421# Check for GNU ac_path_EGREP and select it if it is found. 4422 # Check for GNU $ac_path_EGREP 4423case `"$ac_path_EGREP" --version 2>&1` in 4424*GNU*) 4425 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4426*) 4427 ac_count=0 4428 $as_echo_n 0123456789 >"conftest.in" 4429 while : 4430 do 4431 cat "conftest.in" "conftest.in" >"conftest.tmp" 4432 mv "conftest.tmp" "conftest.in" 4433 cp "conftest.in" "conftest.nl" 4434 $as_echo 'EGREP' >> "conftest.nl" 4435 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4437 as_fn_arith $ac_count + 1 && ac_count=$as_val 4438 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4439 # Best one so far, save it but keep looking for a better one 4440 ac_cv_path_EGREP="$ac_path_EGREP" 4441 ac_path_EGREP_max=$ac_count 4442 fi 4443 # 10*(2^10) chars as input seems more than enough 4444 test $ac_count -gt 10 && break 4445 done 4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4447esac 4448 4449 $ac_path_EGREP_found && break 3 4450 done 4451 done 4452 done 4453IFS=$as_save_IFS 4454 if test -z "$ac_cv_path_EGREP"; then 4455 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4456 fi 4457else 4458 ac_cv_path_EGREP=$EGREP 4459fi 4460 4461 fi 4462fi 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4464$as_echo "$ac_cv_path_EGREP" >&6; } 4465 EGREP="$ac_cv_path_EGREP" 4466 4467 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4469$as_echo_n "checking for ANSI C header files... " >&6; } 4470if ${ac_cv_header_stdc+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474/* end confdefs.h. */ 4475#include <stdlib.h> 4476#include <stdarg.h> 4477#include <string.h> 4478#include <float.h> 4479 4480int 4481main () 4482{ 4483 4484 ; 4485 return 0; 4486} 4487_ACEOF 4488if ac_fn_c_try_compile "$LINENO"; then : 4489 ac_cv_header_stdc=yes 4490else 4491 ac_cv_header_stdc=no 4492fi 4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4494 4495if test $ac_cv_header_stdc = yes; then 4496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498/* end confdefs.h. */ 4499#include <string.h> 4500 4501_ACEOF 4502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4503 $EGREP "memchr" >/dev/null 2>&1; then : 4504 4505else 4506 ac_cv_header_stdc=no 4507fi 4508rm -f conftest* 4509 4510fi 4511 4512if test $ac_cv_header_stdc = yes; then 4513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4515/* end confdefs.h. */ 4516#include <stdlib.h> 4517 4518_ACEOF 4519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4520 $EGREP "free" >/dev/null 2>&1; then : 4521 4522else 4523 ac_cv_header_stdc=no 4524fi 4525rm -f conftest* 4526 4527fi 4528 4529if test $ac_cv_header_stdc = yes; then 4530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4531 if test "$cross_compiling" = yes; then : 4532 : 4533else 4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535/* end confdefs.h. */ 4536#include <ctype.h> 4537#include <stdlib.h> 4538#if ((' ' & 0x0FF) == 0x020) 4539# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4540# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4541#else 4542# define ISLOWER(c) \ 4543 (('a' <= (c) && (c) <= 'i') \ 4544 || ('j' <= (c) && (c) <= 'r') \ 4545 || ('s' <= (c) && (c) <= 'z')) 4546# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4547#endif 4548 4549#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4550int 4551main () 4552{ 4553 int i; 4554 for (i = 0; i < 256; i++) 4555 if (XOR (islower (i), ISLOWER (i)) 4556 || toupper (i) != TOUPPER (i)) 4557 return 2; 4558 return 0; 4559} 4560_ACEOF 4561if ac_fn_c_try_run "$LINENO"; then : 4562 4563else 4564 ac_cv_header_stdc=no 4565fi 4566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4567 conftest.$ac_objext conftest.beam conftest.$ac_ext 4568fi 4569 4570fi 4571fi 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4573$as_echo "$ac_cv_header_stdc" >&6; } 4574if test $ac_cv_header_stdc = yes; then 4575 4576$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4577 4578fi 4579 4580# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4581for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4582 inttypes.h stdint.h unistd.h 4583do : 4584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4585ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4586" 4587if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4588 cat >>confdefs.h <<_ACEOF 4589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4590_ACEOF 4591 4592fi 4593 4594done 4595 4596 4597 4598 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4599if test "x$ac_cv_header_minix_config_h" = xyes; then : 4600 MINIX=yes 4601else 4602 MINIX= 4603fi 4604 4605 4606 if test "$MINIX" = yes; then 4607 4608$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4609 4610 4611$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4612 4613 4614$as_echo "#define _MINIX 1" >>confdefs.h 4615 4616 fi 4617 4618 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4620$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4621if ${ac_cv_safe_to_define___extensions__+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626 4627# define __EXTENSIONS__ 1 4628 $ac_includes_default 4629int 4630main () 4631{ 4632 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637if ac_fn_c_try_compile "$LINENO"; then : 4638 ac_cv_safe_to_define___extensions__=yes 4639else 4640 ac_cv_safe_to_define___extensions__=no 4641fi 4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4643fi 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4645$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4646 test $ac_cv_safe_to_define___extensions__ = yes && 4647 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4648 4649 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4650 4651 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4652 4653 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4654 4655 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4656 4657 4658# Check whether --enable-largefile was given. 4659if test "${enable_largefile+set}" = set; then : 4660 enableval=$enable_largefile; 4661fi 4662 4663if test "$enable_largefile" != no; then 4664 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4666$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4667if ${ac_cv_sys_largefile_CC+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 ac_cv_sys_largefile_CC=no 4671 if test "$GCC" != yes; then 4672 ac_save_CC=$CC 4673 while :; do 4674 # IRIX 6.2 and later do not support large files by default, 4675 # so use the C compiler's -n32 option if that helps. 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4677/* end confdefs.h. */ 4678#include <sys/types.h> 4679 /* Check that off_t can represent 2**63 - 1 correctly. 4680 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4681 since some C++ compilers masquerading as C compilers 4682 incorrectly reject 9223372036854775807. */ 4683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4685 && LARGE_OFF_T % 2147483647 == 1) 4686 ? 1 : -1]; 4687int 4688main () 4689{ 4690 4691 ; 4692 return 0; 4693} 4694_ACEOF 4695 if ac_fn_c_try_compile "$LINENO"; then : 4696 break 4697fi 4698rm -f core conftest.err conftest.$ac_objext 4699 CC="$CC -n32" 4700 if ac_fn_c_try_compile "$LINENO"; then : 4701 ac_cv_sys_largefile_CC=' -n32'; break 4702fi 4703rm -f core conftest.err conftest.$ac_objext 4704 break 4705 done 4706 CC=$ac_save_CC 4707 rm -f conftest.$ac_ext 4708 fi 4709fi 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4711$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4712 if test "$ac_cv_sys_largefile_CC" != no; then 4713 CC=$CC$ac_cv_sys_largefile_CC 4714 fi 4715 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4717$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4718if ${ac_cv_sys_file_offset_bits+:} false; then : 4719 $as_echo_n "(cached) " >&6 4720else 4721 while :; do 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724#include <sys/types.h> 4725 /* Check that off_t can represent 2**63 - 1 correctly. 4726 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4727 since some C++ compilers masquerading as C compilers 4728 incorrectly reject 9223372036854775807. */ 4729#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4731 && LARGE_OFF_T % 2147483647 == 1) 4732 ? 1 : -1]; 4733int 4734main () 4735{ 4736 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741if ac_fn_c_try_compile "$LINENO"; then : 4742 ac_cv_sys_file_offset_bits=no; break 4743fi 4744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4746/* end confdefs.h. */ 4747#define _FILE_OFFSET_BITS 64 4748#include <sys/types.h> 4749 /* Check that off_t can represent 2**63 - 1 correctly. 4750 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4751 since some C++ compilers masquerading as C compilers 4752 incorrectly reject 9223372036854775807. */ 4753#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4755 && LARGE_OFF_T % 2147483647 == 1) 4756 ? 1 : -1]; 4757int 4758main () 4759{ 4760 4761 ; 4762 return 0; 4763} 4764_ACEOF 4765if ac_fn_c_try_compile "$LINENO"; then : 4766 ac_cv_sys_file_offset_bits=64; break 4767fi 4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4769 ac_cv_sys_file_offset_bits=unknown 4770 break 4771done 4772fi 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4774$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4775case $ac_cv_sys_file_offset_bits in #( 4776 no | unknown) ;; 4777 *) 4778cat >>confdefs.h <<_ACEOF 4779#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4780_ACEOF 4781;; 4782esac 4783rm -rf conftest* 4784 if test $ac_cv_sys_file_offset_bits = unknown; then 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4786$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4787if ${ac_cv_sys_large_files+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 while :; do 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793#include <sys/types.h> 4794 /* Check that off_t can represent 2**63 - 1 correctly. 4795 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4796 since some C++ compilers masquerading as C compilers 4797 incorrectly reject 9223372036854775807. */ 4798#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4800 && LARGE_OFF_T % 2147483647 == 1) 4801 ? 1 : -1]; 4802int 4803main () 4804{ 4805 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810if ac_fn_c_try_compile "$LINENO"; then : 4811 ac_cv_sys_large_files=no; break 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4815/* end confdefs.h. */ 4816#define _LARGE_FILES 1 4817#include <sys/types.h> 4818 /* Check that off_t can represent 2**63 - 1 correctly. 4819 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4820 since some C++ compilers masquerading as C compilers 4821 incorrectly reject 9223372036854775807. */ 4822#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4824 && LARGE_OFF_T % 2147483647 == 1) 4825 ? 1 : -1]; 4826int 4827main () 4828{ 4829 4830 ; 4831 return 0; 4832} 4833_ACEOF 4834if ac_fn_c_try_compile "$LINENO"; then : 4835 ac_cv_sys_large_files=1; break 4836fi 4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4838 ac_cv_sys_large_files=unknown 4839 break 4840done 4841fi 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4843$as_echo "$ac_cv_sys_large_files" >&6; } 4844case $ac_cv_sys_large_files in #( 4845 no | unknown) ;; 4846 *) 4847cat >>confdefs.h <<_ACEOF 4848#define _LARGE_FILES $ac_cv_sys_large_files 4849_ACEOF 4850;; 4851esac 4852rm -rf conftest* 4853 fi 4854 4855 4856fi 4857 4858 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4860$as_echo_n "checking whether ln -s works... " >&6; } 4861LN_S=$as_ln_s 4862if test "$LN_S" = "ln -s"; then 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4864$as_echo "yes" >&6; } 4865else 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4867$as_echo "no, using $LN_S" >&6; } 4868fi 4869 4870# Make sure we can run config.sub. 4871$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4872 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4875$as_echo_n "checking build system type... " >&6; } 4876if ${ac_cv_build+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 ac_build_alias=$build_alias 4880test "x$ac_build_alias" = x && 4881 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4882test "x$ac_build_alias" = x && 4883 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4884ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4885 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4886 4887fi 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4889$as_echo "$ac_cv_build" >&6; } 4890case $ac_cv_build in 4891*-*-*) ;; 4892*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4893esac 4894build=$ac_cv_build 4895ac_save_IFS=$IFS; IFS='-' 4896set x $ac_cv_build 4897shift 4898build_cpu=$1 4899build_vendor=$2 4900shift; shift 4901# Remember, the first character of IFS is used to create $*, 4902# except with old shells: 4903build_os=$* 4904IFS=$ac_save_IFS 4905case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4906 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4909$as_echo_n "checking host system type... " >&6; } 4910if ${ac_cv_host+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 if test "x$host_alias" = x; then 4914 ac_cv_host=$ac_cv_build 4915else 4916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4917 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4918fi 4919 4920fi 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4922$as_echo "$ac_cv_host" >&6; } 4923case $ac_cv_host in 4924*-*-*) ;; 4925*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4926esac 4927host=$ac_cv_host 4928ac_save_IFS=$IFS; IFS='-' 4929set x $ac_cv_host 4930shift 4931host_cpu=$1 4932host_vendor=$2 4933shift; shift 4934# Remember, the first character of IFS is used to create $*, 4935# except with old shells: 4936host_os=$* 4937IFS=$ac_save_IFS 4938case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4939 4940 4941enable_win32_dll=yes 4942 4943case $host in 4944*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4945 if test -n "$ac_tool_prefix"; then 4946 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4947set dummy ${ac_tool_prefix}as; ac_word=$2 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4949$as_echo_n "checking for $ac_word... " >&6; } 4950if ${ac_cv_prog_AS+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 if test -n "$AS"; then 4954 ac_cv_prog_AS="$AS" # Let the user override the test. 4955else 4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4957for as_dir in $PATH 4958do 4959 IFS=$as_save_IFS 4960 test -z "$as_dir" && as_dir=. 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4963 ac_cv_prog_AS="${ac_tool_prefix}as" 4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4965 break 2 4966 fi 4967done 4968 done 4969IFS=$as_save_IFS 4970 4971fi 4972fi 4973AS=$ac_cv_prog_AS 4974if test -n "$AS"; then 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4976$as_echo "$AS" >&6; } 4977else 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4979$as_echo "no" >&6; } 4980fi 4981 4982 4983fi 4984if test -z "$ac_cv_prog_AS"; then 4985 ac_ct_AS=$AS 4986 # Extract the first word of "as", so it can be a program name with args. 4987set dummy as; ac_word=$2 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4989$as_echo_n "checking for $ac_word... " >&6; } 4990if ${ac_cv_prog_ac_ct_AS+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 if test -n "$ac_ct_AS"; then 4994 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4995else 4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997for as_dir in $PATH 4998do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5003 ac_cv_prog_ac_ct_AS="as" 5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007done 5008 done 5009IFS=$as_save_IFS 5010 5011fi 5012fi 5013ac_ct_AS=$ac_cv_prog_ac_ct_AS 5014if test -n "$ac_ct_AS"; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5016$as_echo "$ac_ct_AS" >&6; } 5017else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019$as_echo "no" >&6; } 5020fi 5021 5022 if test "x$ac_ct_AS" = x; then 5023 AS="false" 5024 else 5025 case $cross_compiling:$ac_tool_warned in 5026yes:) 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5029ac_tool_warned=yes ;; 5030esac 5031 AS=$ac_ct_AS 5032 fi 5033else 5034 AS="$ac_cv_prog_AS" 5035fi 5036 5037 if test -n "$ac_tool_prefix"; then 5038 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5039set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5041$as_echo_n "checking for $ac_word... " >&6; } 5042if ${ac_cv_prog_DLLTOOL+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 if test -n "$DLLTOOL"; then 5046 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5047else 5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5049for as_dir in $PATH 5050do 5051 IFS=$as_save_IFS 5052 test -z "$as_dir" && as_dir=. 5053 for ac_exec_ext in '' $ac_executable_extensions; do 5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5055 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5057 break 2 5058 fi 5059done 5060 done 5061IFS=$as_save_IFS 5062 5063fi 5064fi 5065DLLTOOL=$ac_cv_prog_DLLTOOL 5066if test -n "$DLLTOOL"; then 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5068$as_echo "$DLLTOOL" >&6; } 5069else 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5071$as_echo "no" >&6; } 5072fi 5073 5074 5075fi 5076if test -z "$ac_cv_prog_DLLTOOL"; then 5077 ac_ct_DLLTOOL=$DLLTOOL 5078 # Extract the first word of "dlltool", so it can be a program name with args. 5079set dummy dlltool; ac_word=$2 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5081$as_echo_n "checking for $ac_word... " >&6; } 5082if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 if test -n "$ac_ct_DLLTOOL"; then 5086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5087else 5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 test -z "$as_dir" && as_dir=. 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5095 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5097 break 2 5098 fi 5099done 5100 done 5101IFS=$as_save_IFS 5102 5103fi 5104fi 5105ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5106if test -n "$ac_ct_DLLTOOL"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5108$as_echo "$ac_ct_DLLTOOL" >&6; } 5109else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111$as_echo "no" >&6; } 5112fi 5113 5114 if test "x$ac_ct_DLLTOOL" = x; then 5115 DLLTOOL="false" 5116 else 5117 case $cross_compiling:$ac_tool_warned in 5118yes:) 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5121ac_tool_warned=yes ;; 5122esac 5123 DLLTOOL=$ac_ct_DLLTOOL 5124 fi 5125else 5126 DLLTOOL="$ac_cv_prog_DLLTOOL" 5127fi 5128 5129 if test -n "$ac_tool_prefix"; then 5130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5131set dummy ${ac_tool_prefix}objdump; ac_word=$2 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5133$as_echo_n "checking for $ac_word... " >&6; } 5134if ${ac_cv_prog_OBJDUMP+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 if test -n "$OBJDUMP"; then 5138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5139else 5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5141for as_dir in $PATH 5142do 5143 IFS=$as_save_IFS 5144 test -z "$as_dir" && as_dir=. 5145 for ac_exec_ext in '' $ac_executable_extensions; do 5146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5149 break 2 5150 fi 5151done 5152 done 5153IFS=$as_save_IFS 5154 5155fi 5156fi 5157OBJDUMP=$ac_cv_prog_OBJDUMP 5158if test -n "$OBJDUMP"; then 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5160$as_echo "$OBJDUMP" >&6; } 5161else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163$as_echo "no" >&6; } 5164fi 5165 5166 5167fi 5168if test -z "$ac_cv_prog_OBJDUMP"; then 5169 ac_ct_OBJDUMP=$OBJDUMP 5170 # Extract the first word of "objdump", so it can be a program name with args. 5171set dummy objdump; ac_word=$2 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173$as_echo_n "checking for $ac_word... " >&6; } 5174if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5175 $as_echo_n "(cached) " >&6 5176else 5177 if test -n "$ac_ct_OBJDUMP"; then 5178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5179else 5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181for as_dir in $PATH 5182do 5183 IFS=$as_save_IFS 5184 test -z "$as_dir" && as_dir=. 5185 for ac_exec_ext in '' $ac_executable_extensions; do 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5187 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5189 break 2 5190 fi 5191done 5192 done 5193IFS=$as_save_IFS 5194 5195fi 5196fi 5197ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5198if test -n "$ac_ct_OBJDUMP"; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5200$as_echo "$ac_ct_OBJDUMP" >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204fi 5205 5206 if test "x$ac_ct_OBJDUMP" = x; then 5207 OBJDUMP="false" 5208 else 5209 case $cross_compiling:$ac_tool_warned in 5210yes:) 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5213ac_tool_warned=yes ;; 5214esac 5215 OBJDUMP=$ac_ct_OBJDUMP 5216 fi 5217else 5218 OBJDUMP="$ac_cv_prog_OBJDUMP" 5219fi 5220 5221 ;; 5222esac 5223 5224test -z "$AS" && AS=as 5225 5226 5227 5228 5229 5230test -z "$DLLTOOL" && DLLTOOL=dlltool 5231 5232 5233 5234 5235 5236test -z "$OBJDUMP" && OBJDUMP=objdump 5237 5238 5239 5240 5241 5242 5243 5244case `pwd` in 5245 *\ * | *\ *) 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5247$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5248esac 5249 5250 5251 5252macro_version='2.4.2' 5253macro_revision='1.3337' 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267ltmain="$ac_aux_dir/ltmain.sh" 5268 5269# Backslashify metacharacters that are still active within 5270# double-quoted strings. 5271sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5272 5273# Same as above, but do not quote variable references. 5274double_quote_subst='s/\(["`\\]\)/\\\1/g' 5275 5276# Sed substitution to delay expansion of an escaped shell variable in a 5277# double_quote_subst'ed string. 5278delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5279 5280# Sed substitution to delay expansion of an escaped single quote. 5281delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5282 5283# Sed substitution to avoid accidental globbing in evaled expressions 5284no_glob_subst='s/\*/\\\*/g' 5285 5286ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5287ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5288ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5289 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5291$as_echo_n "checking how to print strings... " >&6; } 5292# Test print first, because it will be a builtin if present. 5293if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5294 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5295 ECHO='print -r --' 5296elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5297 ECHO='printf %s\n' 5298else 5299 # Use this function as a fallback that always works. 5300 func_fallback_echo () 5301 { 5302 eval 'cat <<_LTECHO_EOF 5303$1 5304_LTECHO_EOF' 5305 } 5306 ECHO='func_fallback_echo' 5307fi 5308 5309# func_echo_all arg... 5310# Invoke $ECHO with all args, space-separated. 5311func_echo_all () 5312{ 5313 $ECHO "" 5314} 5315 5316case "$ECHO" in 5317 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5318$as_echo "printf" >&6; } ;; 5319 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5320$as_echo "print -r" >&6; } ;; 5321 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5322$as_echo "cat" >&6; } ;; 5323esac 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5339$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5340if ${ac_cv_path_SED+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5344 for ac_i in 1 2 3 4 5 6 7; do 5345 ac_script="$ac_script$as_nl$ac_script" 5346 done 5347 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5348 { ac_script=; unset ac_script;} 5349 if test -z "$SED"; then 5350 ac_path_SED_found=false 5351 # Loop through the user's path and test for each of PROGNAME-LIST 5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353for as_dir in $PATH 5354do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_prog in sed gsed; do 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5360 as_fn_executable_p "$ac_path_SED" || continue 5361# Check for GNU ac_path_SED and select it if it is found. 5362 # Check for GNU $ac_path_SED 5363case `"$ac_path_SED" --version 2>&1` in 5364*GNU*) 5365 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5366*) 5367 ac_count=0 5368 $as_echo_n 0123456789 >"conftest.in" 5369 while : 5370 do 5371 cat "conftest.in" "conftest.in" >"conftest.tmp" 5372 mv "conftest.tmp" "conftest.in" 5373 cp "conftest.in" "conftest.nl" 5374 $as_echo '' >> "conftest.nl" 5375 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5377 as_fn_arith $ac_count + 1 && ac_count=$as_val 5378 if test $ac_count -gt ${ac_path_SED_max-0}; then 5379 # Best one so far, save it but keep looking for a better one 5380 ac_cv_path_SED="$ac_path_SED" 5381 ac_path_SED_max=$ac_count 5382 fi 5383 # 10*(2^10) chars as input seems more than enough 5384 test $ac_count -gt 10 && break 5385 done 5386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5387esac 5388 5389 $ac_path_SED_found && break 3 5390 done 5391 done 5392 done 5393IFS=$as_save_IFS 5394 if test -z "$ac_cv_path_SED"; then 5395 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5396 fi 5397else 5398 ac_cv_path_SED=$SED 5399fi 5400 5401fi 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5403$as_echo "$ac_cv_path_SED" >&6; } 5404 SED="$ac_cv_path_SED" 5405 rm -f conftest.sed 5406 5407test -z "$SED" && SED=sed 5408Xsed="$SED -e 1s/^X//" 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5421$as_echo_n "checking for fgrep... " >&6; } 5422if ${ac_cv_path_FGREP+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5426 then ac_cv_path_FGREP="$GREP -F" 5427 else 5428 if test -z "$FGREP"; then 5429 ac_path_FGREP_found=false 5430 # Loop through the user's path and test for each of PROGNAME-LIST 5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5433do 5434 IFS=$as_save_IFS 5435 test -z "$as_dir" && as_dir=. 5436 for ac_prog in fgrep; do 5437 for ac_exec_ext in '' $ac_executable_extensions; do 5438 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5439 as_fn_executable_p "$ac_path_FGREP" || continue 5440# Check for GNU ac_path_FGREP and select it if it is found. 5441 # Check for GNU $ac_path_FGREP 5442case `"$ac_path_FGREP" --version 2>&1` in 5443*GNU*) 5444 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5445*) 5446 ac_count=0 5447 $as_echo_n 0123456789 >"conftest.in" 5448 while : 5449 do 5450 cat "conftest.in" "conftest.in" >"conftest.tmp" 5451 mv "conftest.tmp" "conftest.in" 5452 cp "conftest.in" "conftest.nl" 5453 $as_echo 'FGREP' >> "conftest.nl" 5454 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5456 as_fn_arith $ac_count + 1 && ac_count=$as_val 5457 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5458 # Best one so far, save it but keep looking for a better one 5459 ac_cv_path_FGREP="$ac_path_FGREP" 5460 ac_path_FGREP_max=$ac_count 5461 fi 5462 # 10*(2^10) chars as input seems more than enough 5463 test $ac_count -gt 10 && break 5464 done 5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5466esac 5467 5468 $ac_path_FGREP_found && break 3 5469 done 5470 done 5471 done 5472IFS=$as_save_IFS 5473 if test -z "$ac_cv_path_FGREP"; then 5474 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5475 fi 5476else 5477 ac_cv_path_FGREP=$FGREP 5478fi 5479 5480 fi 5481fi 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5483$as_echo "$ac_cv_path_FGREP" >&6; } 5484 FGREP="$ac_cv_path_FGREP" 5485 5486 5487test -z "$GREP" && GREP=grep 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507# Check whether --with-gnu-ld was given. 5508if test "${with_gnu_ld+set}" = set; then : 5509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5510else 5511 with_gnu_ld=no 5512fi 5513 5514ac_prog=ld 5515if test "$GCC" = yes; then 5516 # Check if gcc -print-prog-name=ld gives a path. 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5518$as_echo_n "checking for ld used by $CC... " >&6; } 5519 case $host in 5520 *-*-mingw*) 5521 # gcc leaves a trailing carriage return which upsets mingw 5522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5523 *) 5524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5525 esac 5526 case $ac_prog in 5527 # Accept absolute paths. 5528 [\\/]* | ?:[\\/]*) 5529 re_direlt='/[^/][^/]*/\.\./' 5530 # Canonicalize the pathname of ld 5531 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5532 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5533 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5534 done 5535 test -z "$LD" && LD="$ac_prog" 5536 ;; 5537 "") 5538 # If it fails, then pretend we aren't using GCC. 5539 ac_prog=ld 5540 ;; 5541 *) 5542 # If it is relative, then search for the first ld in PATH. 5543 with_gnu_ld=unknown 5544 ;; 5545 esac 5546elif test "$with_gnu_ld" = yes; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5548$as_echo_n "checking for GNU ld... " >&6; } 5549else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5551$as_echo_n "checking for non-GNU ld... " >&6; } 5552fi 5553if ${lt_cv_path_LD+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 if test -z "$LD"; then 5557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5558 for ac_dir in $PATH; do 5559 IFS="$lt_save_ifs" 5560 test -z "$ac_dir" && ac_dir=. 5561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5562 lt_cv_path_LD="$ac_dir/$ac_prog" 5563 # Check to see if the program is GNU ld. I'd rather use --version, 5564 # but apparently some variants of GNU ld only accept -v. 5565 # Break only if it was the GNU/non-GNU ld that we prefer. 5566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5567 *GNU* | *'with BFD'*) 5568 test "$with_gnu_ld" != no && break 5569 ;; 5570 *) 5571 test "$with_gnu_ld" != yes && break 5572 ;; 5573 esac 5574 fi 5575 done 5576 IFS="$lt_save_ifs" 5577else 5578 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5579fi 5580fi 5581 5582LD="$lt_cv_path_LD" 5583if test -n "$LD"; then 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5585$as_echo "$LD" >&6; } 5586else 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5588$as_echo "no" >&6; } 5589fi 5590test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5593if ${lt_cv_prog_gnu_ld+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5597case `$LD -v 2>&1 </dev/null` in 5598*GNU* | *'with BFD'*) 5599 lt_cv_prog_gnu_ld=yes 5600 ;; 5601*) 5602 lt_cv_prog_gnu_ld=no 5603 ;; 5604esac 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5607$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5608with_gnu_ld=$lt_cv_prog_gnu_ld 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5619$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5620if ${lt_cv_path_NM+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$NM"; then 5624 # Let the user override the test. 5625 lt_cv_path_NM="$NM" 5626else 5627 lt_nm_to_check="${ac_tool_prefix}nm" 5628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5629 lt_nm_to_check="$lt_nm_to_check nm" 5630 fi 5631 for lt_tmp_nm in $lt_nm_to_check; do 5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5634 IFS="$lt_save_ifs" 5635 test -z "$ac_dir" && ac_dir=. 5636 tmp_nm="$ac_dir/$lt_tmp_nm" 5637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5638 # Check to see if the nm accepts a BSD-compat flag. 5639 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5640 # nm: unknown option "B" ignored 5641 # Tru64's nm complains that /dev/null is an invalid object file 5642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5643 */dev/null* | *'Invalid file or object type'*) 5644 lt_cv_path_NM="$tmp_nm -B" 5645 break 5646 ;; 5647 *) 5648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5649 */dev/null*) 5650 lt_cv_path_NM="$tmp_nm -p" 5651 break 5652 ;; 5653 *) 5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5655 continue # so that we can try to find one that supports BSD flags 5656 ;; 5657 esac 5658 ;; 5659 esac 5660 fi 5661 done 5662 IFS="$lt_save_ifs" 5663 done 5664 : ${lt_cv_path_NM=no} 5665fi 5666fi 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5668$as_echo "$lt_cv_path_NM" >&6; } 5669if test "$lt_cv_path_NM" != "no"; then 5670 NM="$lt_cv_path_NM" 5671else 5672 # Didn't find any BSD compatible name lister, look for dumpbin. 5673 if test -n "$DUMPBIN"; then : 5674 # Let the user override the test. 5675 else 5676 if test -n "$ac_tool_prefix"; then 5677 for ac_prog in dumpbin "link -dump" 5678 do 5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5680set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5682$as_echo_n "checking for $ac_word... " >&6; } 5683if ${ac_cv_prog_DUMPBIN+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 if test -n "$DUMPBIN"; then 5687 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5688else 5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5690for as_dir in $PATH 5691do 5692 IFS=$as_save_IFS 5693 test -z "$as_dir" && as_dir=. 5694 for ac_exec_ext in '' $ac_executable_extensions; do 5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5696 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5698 break 2 5699 fi 5700done 5701 done 5702IFS=$as_save_IFS 5703 5704fi 5705fi 5706DUMPBIN=$ac_cv_prog_DUMPBIN 5707if test -n "$DUMPBIN"; then 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5709$as_echo "$DUMPBIN" >&6; } 5710else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5712$as_echo "no" >&6; } 5713fi 5714 5715 5716 test -n "$DUMPBIN" && break 5717 done 5718fi 5719if test -z "$DUMPBIN"; then 5720 ac_ct_DUMPBIN=$DUMPBIN 5721 for ac_prog in dumpbin "link -dump" 5722do 5723 # Extract the first word of "$ac_prog", so it can be a program name with args. 5724set dummy $ac_prog; ac_word=$2 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5726$as_echo_n "checking for $ac_word... " >&6; } 5727if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 if test -n "$ac_ct_DUMPBIN"; then 5731 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5732else 5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5734for as_dir in $PATH 5735do 5736 IFS=$as_save_IFS 5737 test -z "$as_dir" && as_dir=. 5738 for ac_exec_ext in '' $ac_executable_extensions; do 5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5740 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5742 break 2 5743 fi 5744done 5745 done 5746IFS=$as_save_IFS 5747 5748fi 5749fi 5750ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5751if test -n "$ac_ct_DUMPBIN"; then 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5753$as_echo "$ac_ct_DUMPBIN" >&6; } 5754else 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5756$as_echo "no" >&6; } 5757fi 5758 5759 5760 test -n "$ac_ct_DUMPBIN" && break 5761done 5762 5763 if test "x$ac_ct_DUMPBIN" = x; then 5764 DUMPBIN=":" 5765 else 5766 case $cross_compiling:$ac_tool_warned in 5767yes:) 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5770ac_tool_warned=yes ;; 5771esac 5772 DUMPBIN=$ac_ct_DUMPBIN 5773 fi 5774fi 5775 5776 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5777 *COFF*) 5778 DUMPBIN="$DUMPBIN -symbols" 5779 ;; 5780 *) 5781 DUMPBIN=: 5782 ;; 5783 esac 5784 fi 5785 5786 if test "$DUMPBIN" != ":"; then 5787 NM="$DUMPBIN" 5788 fi 5789fi 5790test -z "$NM" && NM=nm 5791 5792 5793 5794 5795 5796 5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5798$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5799if ${lt_cv_nm_interface+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 lt_cv_nm_interface="BSD nm" 5803 echo "int some_variable = 0;" > conftest.$ac_ext 5804 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5805 (eval "$ac_compile" 2>conftest.err) 5806 cat conftest.err >&5 5807 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5808 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5809 cat conftest.err >&5 5810 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5811 cat conftest.out >&5 5812 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5813 lt_cv_nm_interface="MS dumpbin" 5814 fi 5815 rm -f conftest* 5816fi 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5818$as_echo "$lt_cv_nm_interface" >&6; } 5819 5820# find the maximum length of command line arguments 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5822$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5823if ${lt_cv_sys_max_cmd_len+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 i=0 5827 teststring="ABCD" 5828 5829 case $build_os in 5830 msdosdjgpp*) 5831 # On DJGPP, this test can blow up pretty badly due to problems in libc 5832 # (any single argument exceeding 2000 bytes causes a buffer overrun 5833 # during glob expansion). Even if it were fixed, the result of this 5834 # check would be larger than it should be. 5835 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5836 ;; 5837 5838 gnu*) 5839 # Under GNU Hurd, this test is not required because there is 5840 # no limit to the length of command line arguments. 5841 # Libtool will interpret -1 as no limit whatsoever 5842 lt_cv_sys_max_cmd_len=-1; 5843 ;; 5844 5845 cygwin* | mingw* | cegcc*) 5846 # On Win9x/ME, this test blows up -- it succeeds, but takes 5847 # about 5 minutes as the teststring grows exponentially. 5848 # Worse, since 9x/ME are not pre-emptively multitasking, 5849 # you end up with a "frozen" computer, even though with patience 5850 # the test eventually succeeds (with a max line length of 256k). 5851 # Instead, let's just punt: use the minimum linelength reported by 5852 # all of the supported platforms: 8192 (on NT/2K/XP). 5853 lt_cv_sys_max_cmd_len=8192; 5854 ;; 5855 5856 mint*) 5857 # On MiNT this can take a long time and run out of memory. 5858 lt_cv_sys_max_cmd_len=8192; 5859 ;; 5860 5861 amigaos*) 5862 # On AmigaOS with pdksh, this test takes hours, literally. 5863 # So we just punt and use a minimum line length of 8192. 5864 lt_cv_sys_max_cmd_len=8192; 5865 ;; 5866 5867 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5868 # This has been around since 386BSD, at least. Likely further. 5869 if test -x /sbin/sysctl; then 5870 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5871 elif test -x /usr/sbin/sysctl; then 5872 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5873 else 5874 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5875 fi 5876 # And add a safety zone 5877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5879 ;; 5880 5881 interix*) 5882 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5883 lt_cv_sys_max_cmd_len=196608 5884 ;; 5885 5886 os2*) 5887 # The test takes a long time on OS/2. 5888 lt_cv_sys_max_cmd_len=8192 5889 ;; 5890 5891 osf*) 5892 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5893 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5894 # nice to cause kernel panics so lets avoid the loop below. 5895 # First set a reasonable default. 5896 lt_cv_sys_max_cmd_len=16384 5897 # 5898 if test -x /sbin/sysconfig; then 5899 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5900 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5901 esac 5902 fi 5903 ;; 5904 sco3.2v5*) 5905 lt_cv_sys_max_cmd_len=102400 5906 ;; 5907 sysv5* | sco5v6* | sysv4.2uw2*) 5908 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5909 if test -n "$kargmax"; then 5910 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5911 else 5912 lt_cv_sys_max_cmd_len=32768 5913 fi 5914 ;; 5915 *) 5916 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5917 if test -n "$lt_cv_sys_max_cmd_len"; then 5918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5920 else 5921 # Make teststring a little bigger before we do anything with it. 5922 # a 1K string should be a reasonable start. 5923 for i in 1 2 3 4 5 6 7 8 ; do 5924 teststring=$teststring$teststring 5925 done 5926 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5927 # If test is not a shell built-in, we'll probably end up computing a 5928 # maximum length that is only half of the actual maximum length, but 5929 # we can't tell. 5930 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5931 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5932 test $i != 17 # 1/2 MB should be enough 5933 do 5934 i=`expr $i + 1` 5935 teststring=$teststring$teststring 5936 done 5937 # Only check the string length outside the loop. 5938 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5939 teststring= 5940 # Add a significant safety factor because C++ compilers can tack on 5941 # massive amounts of additional arguments before passing them to the 5942 # linker. It appears as though 1/2 is a usable value. 5943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5944 fi 5945 ;; 5946 esac 5947 5948fi 5949 5950if test -n $lt_cv_sys_max_cmd_len ; then 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5952$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5953else 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5955$as_echo "none" >&6; } 5956fi 5957max_cmd_len=$lt_cv_sys_max_cmd_len 5958 5959 5960 5961 5962 5963 5964: ${CP="cp -f"} 5965: ${MV="mv -f"} 5966: ${RM="rm -f"} 5967 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5969$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5970# Try some XSI features 5971xsi_shell=no 5972( _lt_dummy="a/b/c" 5973 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5974 = c,a/b,b/c, \ 5975 && eval 'test $(( 1 + 1 )) -eq 2 \ 5976 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5977 && xsi_shell=yes 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5979$as_echo "$xsi_shell" >&6; } 5980 5981 5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5983$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5984lt_shell_append=no 5985( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5986 >/dev/null 2>&1 \ 5987 && lt_shell_append=yes 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5989$as_echo "$lt_shell_append" >&6; } 5990 5991 5992if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5993 lt_unset=unset 5994else 5995 lt_unset=false 5996fi 5997 5998 5999 6000 6001 6002# test EBCDIC or ASCII 6003case `echo X|tr X '\101'` in 6004 A) # ASCII based system 6005 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6006 lt_SP2NL='tr \040 \012' 6007 lt_NL2SP='tr \015\012 \040\040' 6008 ;; 6009 *) # EBCDIC based system 6010 lt_SP2NL='tr \100 \n' 6011 lt_NL2SP='tr \r\n \100\100' 6012 ;; 6013esac 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6024$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6025if ${lt_cv_to_host_file_cmd+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 case $host in 6029 *-*-mingw* ) 6030 case $build in 6031 *-*-mingw* ) # actually msys 6032 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6033 ;; 6034 *-*-cygwin* ) 6035 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6036 ;; 6037 * ) # otherwise, assume *nix 6038 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6039 ;; 6040 esac 6041 ;; 6042 *-*-cygwin* ) 6043 case $build in 6044 *-*-mingw* ) # actually msys 6045 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6046 ;; 6047 *-*-cygwin* ) 6048 lt_cv_to_host_file_cmd=func_convert_file_noop 6049 ;; 6050 * ) # otherwise, assume *nix 6051 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6052 ;; 6053 esac 6054 ;; 6055 * ) # unhandled hosts (and "normal" native builds) 6056 lt_cv_to_host_file_cmd=func_convert_file_noop 6057 ;; 6058esac 6059 6060fi 6061 6062to_host_file_cmd=$lt_cv_to_host_file_cmd 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6064$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6065 6066 6067 6068 6069 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6071$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6072if ${lt_cv_to_tool_file_cmd+:} false; then : 6073 $as_echo_n "(cached) " >&6 6074else 6075 #assume ordinary cross tools, or native build. 6076lt_cv_to_tool_file_cmd=func_convert_file_noop 6077case $host in 6078 *-*-mingw* ) 6079 case $build in 6080 *-*-mingw* ) # actually msys 6081 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6082 ;; 6083 esac 6084 ;; 6085esac 6086 6087fi 6088 6089to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6091$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6092 6093 6094 6095 6096 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6098$as_echo_n "checking for $LD option to reload object files... " >&6; } 6099if ${lt_cv_ld_reload_flag+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 lt_cv_ld_reload_flag='-r' 6103fi 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6105$as_echo "$lt_cv_ld_reload_flag" >&6; } 6106reload_flag=$lt_cv_ld_reload_flag 6107case $reload_flag in 6108"" | " "*) ;; 6109*) reload_flag=" $reload_flag" ;; 6110esac 6111reload_cmds='$LD$reload_flag -o $output$reload_objs' 6112case $host_os in 6113 cygwin* | mingw* | pw32* | cegcc*) 6114 if test "$GCC" != yes; then 6115 reload_cmds=false 6116 fi 6117 ;; 6118 darwin*) 6119 if test "$GCC" = yes; then 6120 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6121 else 6122 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6123 fi 6124 ;; 6125esac 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135if test -n "$ac_tool_prefix"; then 6136 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6137set dummy ${ac_tool_prefix}objdump; ac_word=$2 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6139$as_echo_n "checking for $ac_word... " >&6; } 6140if ${ac_cv_prog_OBJDUMP+:} false; then : 6141 $as_echo_n "(cached) " >&6 6142else 6143 if test -n "$OBJDUMP"; then 6144 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6145else 6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6147for as_dir in $PATH 6148do 6149 IFS=$as_save_IFS 6150 test -z "$as_dir" && as_dir=. 6151 for ac_exec_ext in '' $ac_executable_extensions; do 6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6153 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6155 break 2 6156 fi 6157done 6158 done 6159IFS=$as_save_IFS 6160 6161fi 6162fi 6163OBJDUMP=$ac_cv_prog_OBJDUMP 6164if test -n "$OBJDUMP"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6166$as_echo "$OBJDUMP" >&6; } 6167else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169$as_echo "no" >&6; } 6170fi 6171 6172 6173fi 6174if test -z "$ac_cv_prog_OBJDUMP"; then 6175 ac_ct_OBJDUMP=$OBJDUMP 6176 # Extract the first word of "objdump", so it can be a program name with args. 6177set dummy objdump; ac_word=$2 6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6179$as_echo_n "checking for $ac_word... " >&6; } 6180if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6181 $as_echo_n "(cached) " >&6 6182else 6183 if test -n "$ac_ct_OBJDUMP"; then 6184 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6185else 6186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6187for as_dir in $PATH 6188do 6189 IFS=$as_save_IFS 6190 test -z "$as_dir" && as_dir=. 6191 for ac_exec_ext in '' $ac_executable_extensions; do 6192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6193 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6195 break 2 6196 fi 6197done 6198 done 6199IFS=$as_save_IFS 6200 6201fi 6202fi 6203ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6204if test -n "$ac_ct_OBJDUMP"; then 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6206$as_echo "$ac_ct_OBJDUMP" >&6; } 6207else 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6209$as_echo "no" >&6; } 6210fi 6211 6212 if test "x$ac_ct_OBJDUMP" = x; then 6213 OBJDUMP="false" 6214 else 6215 case $cross_compiling:$ac_tool_warned in 6216yes:) 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6219ac_tool_warned=yes ;; 6220esac 6221 OBJDUMP=$ac_ct_OBJDUMP 6222 fi 6223else 6224 OBJDUMP="$ac_cv_prog_OBJDUMP" 6225fi 6226 6227test -z "$OBJDUMP" && OBJDUMP=objdump 6228 6229 6230 6231 6232 6233 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6235$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6236if ${lt_cv_deplibs_check_method+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238else 6239 lt_cv_file_magic_cmd='$MAGIC_CMD' 6240lt_cv_file_magic_test_file= 6241lt_cv_deplibs_check_method='unknown' 6242# Need to set the preceding variable on all platforms that support 6243# interlibrary dependencies. 6244# 'none' -- dependencies not supported. 6245# `unknown' -- same as none, but documents that we really don't know. 6246# 'pass_all' -- all dependencies passed with no checks. 6247# 'test_compile' -- check by making test program. 6248# 'file_magic [[regex]]' -- check by looking for files in library path 6249# which responds to the $file_magic_cmd with a given extended regex. 6250# If you have `file' or equivalent on your system and you're not sure 6251# whether `pass_all' will *always* work, you probably want this one. 6252 6253case $host_os in 6254aix[4-9]*) 6255 lt_cv_deplibs_check_method=pass_all 6256 ;; 6257 6258beos*) 6259 lt_cv_deplibs_check_method=pass_all 6260 ;; 6261 6262bsdi[45]*) 6263 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6264 lt_cv_file_magic_cmd='/usr/bin/file -L' 6265 lt_cv_file_magic_test_file=/shlib/libc.so 6266 ;; 6267 6268cygwin*) 6269 # func_win32_libid is a shell function defined in ltmain.sh 6270 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6271 lt_cv_file_magic_cmd='func_win32_libid' 6272 ;; 6273 6274mingw* | pw32*) 6275 # Base MSYS/MinGW do not provide the 'file' command needed by 6276 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6277 # unless we find 'file', for example because we are cross-compiling. 6278 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6279 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6281 lt_cv_file_magic_cmd='func_win32_libid' 6282 else 6283 # Keep this pattern in sync with the one in func_win32_libid. 6284 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6285 lt_cv_file_magic_cmd='$OBJDUMP -f' 6286 fi 6287 ;; 6288 6289cegcc*) 6290 # use the weaker test based on 'objdump'. See mingw*. 6291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6292 lt_cv_file_magic_cmd='$OBJDUMP -f' 6293 ;; 6294 6295darwin* | rhapsody*) 6296 lt_cv_deplibs_check_method=pass_all 6297 ;; 6298 6299freebsd* | dragonfly*) 6300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6301 case $host_cpu in 6302 i*86 ) 6303 # Not sure whether the presence of OpenBSD here was a mistake. 6304 # Let's accept both of them until this is cleared up. 6305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6306 lt_cv_file_magic_cmd=/usr/bin/file 6307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6308 ;; 6309 esac 6310 else 6311 lt_cv_deplibs_check_method=pass_all 6312 fi 6313 ;; 6314 6315gnu*) 6316 lt_cv_deplibs_check_method=pass_all 6317 ;; 6318 6319haiku*) 6320 lt_cv_deplibs_check_method=pass_all 6321 ;; 6322 6323hpux10.20* | hpux11*) 6324 lt_cv_file_magic_cmd=/usr/bin/file 6325 case $host_cpu in 6326 ia64*) 6327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6329 ;; 6330 hppa*64*) 6331 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]' 6332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6333 ;; 6334 *) 6335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6336 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6337 ;; 6338 esac 6339 ;; 6340 6341interix[3-9]*) 6342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6344 ;; 6345 6346irix5* | irix6* | nonstopux*) 6347 case $LD in 6348 *-32|*"-32 ") libmagic=32-bit;; 6349 *-n32|*"-n32 ") libmagic=N32;; 6350 *-64|*"-64 ") libmagic=64-bit;; 6351 *) libmagic=never-match;; 6352 esac 6353 lt_cv_deplibs_check_method=pass_all 6354 ;; 6355 6356# This must be glibc/ELF. 6357linux* | k*bsd*-gnu | kopensolaris*-gnu) 6358 lt_cv_deplibs_check_method=pass_all 6359 ;; 6360 6361netbsd*) 6362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6364 else 6365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6366 fi 6367 ;; 6368 6369newos6*) 6370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6371 lt_cv_file_magic_cmd=/usr/bin/file 6372 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6373 ;; 6374 6375*nto* | *qnx*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379openbsd*) 6380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6382 else 6383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6384 fi 6385 ;; 6386 6387osf3* | osf4* | osf5*) 6388 lt_cv_deplibs_check_method=pass_all 6389 ;; 6390 6391rdos*) 6392 lt_cv_deplibs_check_method=pass_all 6393 ;; 6394 6395solaris*) 6396 lt_cv_deplibs_check_method=pass_all 6397 ;; 6398 6399sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6400 lt_cv_deplibs_check_method=pass_all 6401 ;; 6402 6403sysv4 | sysv4.3*) 6404 case $host_vendor in 6405 motorola) 6406 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]' 6407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6408 ;; 6409 ncr) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412 sequent) 6413 lt_cv_file_magic_cmd='/bin/file' 6414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6415 ;; 6416 sni) 6417 lt_cv_file_magic_cmd='/bin/file' 6418 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6419 lt_cv_file_magic_test_file=/lib/libc.so 6420 ;; 6421 siemens) 6422 lt_cv_deplibs_check_method=pass_all 6423 ;; 6424 pc) 6425 lt_cv_deplibs_check_method=pass_all 6426 ;; 6427 esac 6428 ;; 6429 6430tpf*) 6431 lt_cv_deplibs_check_method=pass_all 6432 ;; 6433esac 6434 6435fi 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6437$as_echo "$lt_cv_deplibs_check_method" >&6; } 6438 6439file_magic_glob= 6440want_nocaseglob=no 6441if test "$build" = "$host"; then 6442 case $host_os in 6443 mingw* | pw32*) 6444 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6445 want_nocaseglob=yes 6446 else 6447 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6448 fi 6449 ;; 6450 esac 6451fi 6452 6453file_magic_cmd=$lt_cv_file_magic_cmd 6454deplibs_check_method=$lt_cv_deplibs_check_method 6455test -z "$deplibs_check_method" && deplibs_check_method=unknown 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478if test -n "$ac_tool_prefix"; then 6479 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6480set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6482$as_echo_n "checking for $ac_word... " >&6; } 6483if ${ac_cv_prog_DLLTOOL+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 if test -n "$DLLTOOL"; then 6487 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6488else 6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490for as_dir in $PATH 6491do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6496 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500done 6501 done 6502IFS=$as_save_IFS 6503 6504fi 6505fi 6506DLLTOOL=$ac_cv_prog_DLLTOOL 6507if test -n "$DLLTOOL"; then 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6509$as_echo "$DLLTOOL" >&6; } 6510else 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6512$as_echo "no" >&6; } 6513fi 6514 6515 6516fi 6517if test -z "$ac_cv_prog_DLLTOOL"; then 6518 ac_ct_DLLTOOL=$DLLTOOL 6519 # Extract the first word of "dlltool", so it can be a program name with args. 6520set dummy dlltool; ac_word=$2 6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6522$as_echo_n "checking for $ac_word... " >&6; } 6523if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6524 $as_echo_n "(cached) " >&6 6525else 6526 if test -n "$ac_ct_DLLTOOL"; then 6527 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6528else 6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6530for as_dir in $PATH 6531do 6532 IFS=$as_save_IFS 6533 test -z "$as_dir" && as_dir=. 6534 for ac_exec_ext in '' $ac_executable_extensions; do 6535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6536 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6538 break 2 6539 fi 6540done 6541 done 6542IFS=$as_save_IFS 6543 6544fi 6545fi 6546ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6547if test -n "$ac_ct_DLLTOOL"; then 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6549$as_echo "$ac_ct_DLLTOOL" >&6; } 6550else 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6552$as_echo "no" >&6; } 6553fi 6554 6555 if test "x$ac_ct_DLLTOOL" = x; then 6556 DLLTOOL="false" 6557 else 6558 case $cross_compiling:$ac_tool_warned in 6559yes:) 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6562ac_tool_warned=yes ;; 6563esac 6564 DLLTOOL=$ac_ct_DLLTOOL 6565 fi 6566else 6567 DLLTOOL="$ac_cv_prog_DLLTOOL" 6568fi 6569 6570test -z "$DLLTOOL" && DLLTOOL=dlltool 6571 6572 6573 6574 6575 6576 6577 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6579$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6580if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 lt_cv_sharedlib_from_linklib_cmd='unknown' 6584 6585case $host_os in 6586cygwin* | mingw* | pw32* | cegcc*) 6587 # two different shell functions defined in ltmain.sh 6588 # decide which to use based on capabilities of $DLLTOOL 6589 case `$DLLTOOL --help 2>&1` in 6590 *--identify-strict*) 6591 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6592 ;; 6593 *) 6594 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6595 ;; 6596 esac 6597 ;; 6598*) 6599 # fallback: assume linklib IS sharedlib 6600 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6601 ;; 6602esac 6603 6604fi 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6606$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6607sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6608test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6609 6610 6611 6612 6613 6614 6615 6616if test -n "$ac_tool_prefix"; then 6617 for ac_prog in ar 6618 do 6619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6620set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6622$as_echo_n "checking for $ac_word... " >&6; } 6623if ${ac_cv_prog_AR+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625else 6626 if test -n "$AR"; then 6627 ac_cv_prog_AR="$AR" # Let the user override the test. 6628else 6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6630for as_dir in $PATH 6631do 6632 IFS=$as_save_IFS 6633 test -z "$as_dir" && as_dir=. 6634 for ac_exec_ext in '' $ac_executable_extensions; do 6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6636 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6638 break 2 6639 fi 6640done 6641 done 6642IFS=$as_save_IFS 6643 6644fi 6645fi 6646AR=$ac_cv_prog_AR 6647if test -n "$AR"; then 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6649$as_echo "$AR" >&6; } 6650else 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6652$as_echo "no" >&6; } 6653fi 6654 6655 6656 test -n "$AR" && break 6657 done 6658fi 6659if test -z "$AR"; then 6660 ac_ct_AR=$AR 6661 for ac_prog in ar 6662do 6663 # Extract the first word of "$ac_prog", so it can be a program name with args. 6664set dummy $ac_prog; ac_word=$2 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6666$as_echo_n "checking for $ac_word... " >&6; } 6667if ${ac_cv_prog_ac_ct_AR+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 if test -n "$ac_ct_AR"; then 6671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6672else 6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6674for as_dir in $PATH 6675do 6676 IFS=$as_save_IFS 6677 test -z "$as_dir" && as_dir=. 6678 for ac_exec_ext in '' $ac_executable_extensions; do 6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6680 ac_cv_prog_ac_ct_AR="$ac_prog" 6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6682 break 2 6683 fi 6684done 6685 done 6686IFS=$as_save_IFS 6687 6688fi 6689fi 6690ac_ct_AR=$ac_cv_prog_ac_ct_AR 6691if test -n "$ac_ct_AR"; then 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6693$as_echo "$ac_ct_AR" >&6; } 6694else 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6696$as_echo "no" >&6; } 6697fi 6698 6699 6700 test -n "$ac_ct_AR" && break 6701done 6702 6703 if test "x$ac_ct_AR" = x; then 6704 AR="false" 6705 else 6706 case $cross_compiling:$ac_tool_warned in 6707yes:) 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6710ac_tool_warned=yes ;; 6711esac 6712 AR=$ac_ct_AR 6713 fi 6714fi 6715 6716: ${AR=ar} 6717: ${AR_FLAGS=cru} 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6730$as_echo_n "checking for archiver @FILE support... " >&6; } 6731if ${lt_cv_ar_at_file+:} false; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 lt_cv_ar_at_file=no 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6736/* end confdefs.h. */ 6737 6738int 6739main () 6740{ 6741 6742 ; 6743 return 0; 6744} 6745_ACEOF 6746if ac_fn_c_try_compile "$LINENO"; then : 6747 echo conftest.$ac_objext > conftest.lst 6748 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6750 (eval $lt_ar_try) 2>&5 6751 ac_status=$? 6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6753 test $ac_status = 0; } 6754 if test "$ac_status" -eq 0; then 6755 # Ensure the archiver fails upon bogus file names. 6756 rm -f conftest.$ac_objext libconftest.a 6757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6758 (eval $lt_ar_try) 2>&5 6759 ac_status=$? 6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6761 test $ac_status = 0; } 6762 if test "$ac_status" -ne 0; then 6763 lt_cv_ar_at_file=@ 6764 fi 6765 fi 6766 rm -f conftest.* libconftest.a 6767 6768fi 6769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6770 6771fi 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6773$as_echo "$lt_cv_ar_at_file" >&6; } 6774 6775if test "x$lt_cv_ar_at_file" = xno; then 6776 archiver_list_spec= 6777else 6778 archiver_list_spec=$lt_cv_ar_at_file 6779fi 6780 6781 6782 6783 6784 6785 6786 6787if test -n "$ac_tool_prefix"; then 6788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6789set dummy ${ac_tool_prefix}strip; ac_word=$2 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791$as_echo_n "checking for $ac_word... " >&6; } 6792if ${ac_cv_prog_STRIP+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 if test -n "$STRIP"; then 6796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6797else 6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6805 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810 done 6811IFS=$as_save_IFS 6812 6813fi 6814fi 6815STRIP=$ac_cv_prog_STRIP 6816if test -n "$STRIP"; then 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6818$as_echo "$STRIP" >&6; } 6819else 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6821$as_echo "no" >&6; } 6822fi 6823 6824 6825fi 6826if test -z "$ac_cv_prog_STRIP"; then 6827 ac_ct_STRIP=$STRIP 6828 # Extract the first word of "strip", so it can be a program name with args. 6829set dummy strip; ac_word=$2 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6831$as_echo_n "checking for $ac_word... " >&6; } 6832if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 if test -n "$ac_ct_STRIP"; then 6836 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6837else 6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839for as_dir in $PATH 6840do 6841 IFS=$as_save_IFS 6842 test -z "$as_dir" && as_dir=. 6843 for ac_exec_ext in '' $ac_executable_extensions; do 6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6845 ac_cv_prog_ac_ct_STRIP="strip" 6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6847 break 2 6848 fi 6849done 6850 done 6851IFS=$as_save_IFS 6852 6853fi 6854fi 6855ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6856if test -n "$ac_ct_STRIP"; then 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6858$as_echo "$ac_ct_STRIP" >&6; } 6859else 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6861$as_echo "no" >&6; } 6862fi 6863 6864 if test "x$ac_ct_STRIP" = x; then 6865 STRIP=":" 6866 else 6867 case $cross_compiling:$ac_tool_warned in 6868yes:) 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6871ac_tool_warned=yes ;; 6872esac 6873 STRIP=$ac_ct_STRIP 6874 fi 6875else 6876 STRIP="$ac_cv_prog_STRIP" 6877fi 6878 6879test -z "$STRIP" && STRIP=: 6880 6881 6882 6883 6884 6885 6886if test -n "$ac_tool_prefix"; then 6887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6888set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890$as_echo_n "checking for $ac_word... " >&6; } 6891if ${ac_cv_prog_RANLIB+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 if test -n "$RANLIB"; then 6895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6896else 6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898for as_dir in $PATH 6899do 6900 IFS=$as_save_IFS 6901 test -z "$as_dir" && as_dir=. 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909 done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914RANLIB=$ac_cv_prog_RANLIB 6915if test -n "$RANLIB"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6917$as_echo "$RANLIB" >&6; } 6918else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920$as_echo "no" >&6; } 6921fi 6922 6923 6924fi 6925if test -z "$ac_cv_prog_RANLIB"; then 6926 ac_ct_RANLIB=$RANLIB 6927 # Extract the first word of "ranlib", so it can be a program name with args. 6928set dummy ranlib; ac_word=$2 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6930$as_echo_n "checking for $ac_word... " >&6; } 6931if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6932 $as_echo_n "(cached) " >&6 6933else 6934 if test -n "$ac_ct_RANLIB"; then 6935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6936else 6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6938for as_dir in $PATH 6939do 6940 IFS=$as_save_IFS 6941 test -z "$as_dir" && as_dir=. 6942 for ac_exec_ext in '' $ac_executable_extensions; do 6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6944 ac_cv_prog_ac_ct_RANLIB="ranlib" 6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6946 break 2 6947 fi 6948done 6949 done 6950IFS=$as_save_IFS 6951 6952fi 6953fi 6954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6955if test -n "$ac_ct_RANLIB"; then 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6957$as_echo "$ac_ct_RANLIB" >&6; } 6958else 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6960$as_echo "no" >&6; } 6961fi 6962 6963 if test "x$ac_ct_RANLIB" = x; then 6964 RANLIB=":" 6965 else 6966 case $cross_compiling:$ac_tool_warned in 6967yes:) 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6970ac_tool_warned=yes ;; 6971esac 6972 RANLIB=$ac_ct_RANLIB 6973 fi 6974else 6975 RANLIB="$ac_cv_prog_RANLIB" 6976fi 6977 6978test -z "$RANLIB" && RANLIB=: 6979 6980 6981 6982 6983 6984 6985# Determine commands to create old-style static archives. 6986old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6987old_postinstall_cmds='chmod 644 $oldlib' 6988old_postuninstall_cmds= 6989 6990if test -n "$RANLIB"; then 6991 case $host_os in 6992 openbsd*) 6993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6994 ;; 6995 *) 6996 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6997 ;; 6998 esac 6999 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7000fi 7001 7002case $host_os in 7003 darwin*) 7004 lock_old_archive_extraction=yes ;; 7005 *) 7006 lock_old_archive_extraction=no ;; 7007esac 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047# If no C compiler was specified, use CC. 7048LTCC=${LTCC-"$CC"} 7049 7050# If no C compiler flags were specified, use CFLAGS. 7051LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7052 7053# Allow CC to be a program name with arguments. 7054compiler=$CC 7055 7056 7057# Check for command to grab the raw symbol name followed by C symbol from nm. 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7059$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7060if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 7064# These are sane defaults that work on at least a few old systems. 7065# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7066 7067# Character class describing NM global symbol codes. 7068symcode='[BCDEGRST]' 7069 7070# Regexp to match symbols that can be accessed directly from C. 7071sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7072 7073# Define system-specific variables. 7074case $host_os in 7075aix*) 7076 symcode='[BCDT]' 7077 ;; 7078cygwin* | mingw* | pw32* | cegcc*) 7079 symcode='[ABCDGISTW]' 7080 ;; 7081hpux*) 7082 if test "$host_cpu" = ia64; then 7083 symcode='[ABCDEGRST]' 7084 fi 7085 ;; 7086irix* | nonstopux*) 7087 symcode='[BCDEGRST]' 7088 ;; 7089osf*) 7090 symcode='[BCDEGQRST]' 7091 ;; 7092solaris*) 7093 symcode='[BDRT]' 7094 ;; 7095sco3.2v5*) 7096 symcode='[DT]' 7097 ;; 7098sysv4.2uw2*) 7099 symcode='[DT]' 7100 ;; 7101sysv5* | sco5v6* | unixware* | OpenUNIX*) 7102 symcode='[ABDT]' 7103 ;; 7104sysv4) 7105 symcode='[DFNSTU]' 7106 ;; 7107esac 7108 7109# If we're using GNU nm, then use its standard symbol codes. 7110case `$NM -V 2>&1` in 7111*GNU* | *'with BFD'*) 7112 symcode='[ABCDGIRSTW]' ;; 7113esac 7114 7115# Transform an extracted symbol line into a proper C declaration. 7116# Some systems (esp. on ia64) link data and code symbols differently, 7117# so use this general approach. 7118lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7119 7120# Transform an extracted symbol line into symbol name and symbol address 7121lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7122lt_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'" 7123 7124# Handle CRLF in mingw tool chain 7125opt_cr= 7126case $build_os in 7127mingw*) 7128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7129 ;; 7130esac 7131 7132# Try without a prefix underscore, then with it. 7133for ac_symprfx in "" "_"; do 7134 7135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7136 symxfrm="\\1 $ac_symprfx\\2 \\2" 7137 7138 # Write the raw and C identifiers. 7139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7140 # Fake it for dumpbin and say T for any non-static function 7141 # and D for any global variable. 7142 # Also find C++ and __fastcall symbols from MSVC++, 7143 # which start with @ or ?. 7144 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7145" {last_section=section; section=\$ 3};"\ 7146" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7147" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7148" \$ 0!~/External *\|/{next};"\ 7149" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7150" {if(hide[section]) next};"\ 7151" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7152" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7153" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7154" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7155" ' prfx=^$ac_symprfx" 7156 else 7157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7158 fi 7159 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7160 7161 # Check to see that the pipe works correctly. 7162 pipe_works=no 7163 7164 rm -f conftest* 7165 cat > conftest.$ac_ext <<_LT_EOF 7166#ifdef __cplusplus 7167extern "C" { 7168#endif 7169char nm_test_var; 7170void nm_test_func(void); 7171void nm_test_func(void){} 7172#ifdef __cplusplus 7173} 7174#endif 7175int main(){nm_test_var='a';nm_test_func();return(0);} 7176_LT_EOF 7177 7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7179 (eval $ac_compile) 2>&5 7180 ac_status=$? 7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7182 test $ac_status = 0; }; then 7183 # Now try to grab the symbols. 7184 nlist=conftest.nm 7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7186 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7187 ac_status=$? 7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7189 test $ac_status = 0; } && test -s "$nlist"; then 7190 # Try sorting and uniquifying the output. 7191 if sort "$nlist" | uniq > "$nlist"T; then 7192 mv -f "$nlist"T "$nlist" 7193 else 7194 rm -f "$nlist"T 7195 fi 7196 7197 # Make sure that we snagged all the symbols we need. 7198 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7199 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7200 cat <<_LT_EOF > conftest.$ac_ext 7201/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7202#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7203/* DATA imports from DLLs on WIN32 con't be const, because runtime 7204 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7205# define LT_DLSYM_CONST 7206#elif defined(__osf__) 7207/* This system does not cope well with relocations in const data. */ 7208# define LT_DLSYM_CONST 7209#else 7210# define LT_DLSYM_CONST const 7211#endif 7212 7213#ifdef __cplusplus 7214extern "C" { 7215#endif 7216 7217_LT_EOF 7218 # Now generate the symbol file. 7219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7220 7221 cat <<_LT_EOF >> conftest.$ac_ext 7222 7223/* The mapping between symbol names and symbols. */ 7224LT_DLSYM_CONST struct { 7225 const char *name; 7226 void *address; 7227} 7228lt__PROGRAM__LTX_preloaded_symbols[] = 7229{ 7230 { "@PROGRAM@", (void *) 0 }, 7231_LT_EOF 7232 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7233 cat <<\_LT_EOF >> conftest.$ac_ext 7234 {0, (void *) 0} 7235}; 7236 7237/* This works around a problem in FreeBSD linker */ 7238#ifdef FREEBSD_WORKAROUND 7239static const void *lt_preloaded_setup() { 7240 return lt__PROGRAM__LTX_preloaded_symbols; 7241} 7242#endif 7243 7244#ifdef __cplusplus 7245} 7246#endif 7247_LT_EOF 7248 # Now try linking the two files. 7249 mv conftest.$ac_objext conftstm.$ac_objext 7250 lt_globsym_save_LIBS=$LIBS 7251 lt_globsym_save_CFLAGS=$CFLAGS 7252 LIBS="conftstm.$ac_objext" 7253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7255 (eval $ac_link) 2>&5 7256 ac_status=$? 7257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7258 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7259 pipe_works=yes 7260 fi 7261 LIBS=$lt_globsym_save_LIBS 7262 CFLAGS=$lt_globsym_save_CFLAGS 7263 else 7264 echo "cannot find nm_test_func in $nlist" >&5 7265 fi 7266 else 7267 echo "cannot find nm_test_var in $nlist" >&5 7268 fi 7269 else 7270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7271 fi 7272 else 7273 echo "$progname: failed program was:" >&5 7274 cat conftest.$ac_ext >&5 7275 fi 7276 rm -rf conftest* conftst* 7277 7278 # Do not use the global_symbol_pipe unless it works. 7279 if test "$pipe_works" = yes; then 7280 break 7281 else 7282 lt_cv_sys_global_symbol_pipe= 7283 fi 7284done 7285 7286fi 7287 7288if test -z "$lt_cv_sys_global_symbol_pipe"; then 7289 lt_cv_sys_global_symbol_to_cdecl= 7290fi 7291if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7293$as_echo "failed" >&6; } 7294else 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7296$as_echo "ok" >&6; } 7297fi 7298 7299# Response file support. 7300if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7301 nm_file_list_spec='@' 7302elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7303 nm_file_list_spec='@' 7304fi 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7333$as_echo_n "checking for sysroot... " >&6; } 7334 7335# Check whether --with-sysroot was given. 7336if test "${with_sysroot+set}" = set; then : 7337 withval=$with_sysroot; 7338else 7339 with_sysroot=no 7340fi 7341 7342 7343lt_sysroot= 7344case ${with_sysroot} in #( 7345 yes) 7346 if test "$GCC" = yes; then 7347 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7348 fi 7349 ;; #( 7350 /*) 7351 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7352 ;; #( 7353 no|'') 7354 ;; #( 7355 *) 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7357$as_echo "${with_sysroot}" >&6; } 7358 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7359 ;; 7360esac 7361 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7363$as_echo "${lt_sysroot:-no}" >&6; } 7364 7365 7366 7367 7368 7369# Check whether --enable-libtool-lock was given. 7370if test "${enable_libtool_lock+set}" = set; then : 7371 enableval=$enable_libtool_lock; 7372fi 7373 7374test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7375 7376# Some flags need to be propagated to the compiler or linker for good 7377# libtool support. 7378case $host in 7379ia64-*-hpux*) 7380 # Find out which ABI we are using. 7381 echo 'int i;' > conftest.$ac_ext 7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7383 (eval $ac_compile) 2>&5 7384 ac_status=$? 7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7386 test $ac_status = 0; }; then 7387 case `/usr/bin/file conftest.$ac_objext` in 7388 *ELF-32*) 7389 HPUX_IA64_MODE="32" 7390 ;; 7391 *ELF-64*) 7392 HPUX_IA64_MODE="64" 7393 ;; 7394 esac 7395 fi 7396 rm -rf conftest* 7397 ;; 7398*-*-irix6*) 7399 # Find out which ABI we are using. 7400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7402 (eval $ac_compile) 2>&5 7403 ac_status=$? 7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7405 test $ac_status = 0; }; then 7406 if test "$lt_cv_prog_gnu_ld" = yes; then 7407 case `/usr/bin/file conftest.$ac_objext` in 7408 *32-bit*) 7409 LD="${LD-ld} -melf32bsmip" 7410 ;; 7411 *N32*) 7412 LD="${LD-ld} -melf32bmipn32" 7413 ;; 7414 *64-bit*) 7415 LD="${LD-ld} -melf64bmip" 7416 ;; 7417 esac 7418 else 7419 case `/usr/bin/file conftest.$ac_objext` in 7420 *32-bit*) 7421 LD="${LD-ld} -32" 7422 ;; 7423 *N32*) 7424 LD="${LD-ld} -n32" 7425 ;; 7426 *64-bit*) 7427 LD="${LD-ld} -64" 7428 ;; 7429 esac 7430 fi 7431 fi 7432 rm -rf conftest* 7433 ;; 7434 7435x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7436s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7437 # Find out which ABI we are using. 7438 echo 'int i;' > conftest.$ac_ext 7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7440 (eval $ac_compile) 2>&5 7441 ac_status=$? 7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7443 test $ac_status = 0; }; then 7444 case `/usr/bin/file conftest.o` in 7445 *32-bit*) 7446 case $host in 7447 x86_64-*kfreebsd*-gnu) 7448 LD="${LD-ld} -m elf_i386_fbsd" 7449 ;; 7450 x86_64-*linux*) 7451 LD="${LD-ld} -m elf_i386" 7452 ;; 7453 ppc64-*linux*|powerpc64-*linux*) 7454 LD="${LD-ld} -m elf32ppclinux" 7455 ;; 7456 s390x-*linux*) 7457 LD="${LD-ld} -m elf_s390" 7458 ;; 7459 sparc64-*linux*) 7460 LD="${LD-ld} -m elf32_sparc" 7461 ;; 7462 esac 7463 ;; 7464 *64-bit*) 7465 case $host in 7466 x86_64-*kfreebsd*-gnu) 7467 LD="${LD-ld} -m elf_x86_64_fbsd" 7468 ;; 7469 x86_64-*linux*) 7470 LD="${LD-ld} -m elf_x86_64" 7471 ;; 7472 ppc*-*linux*|powerpc*-*linux*) 7473 LD="${LD-ld} -m elf64ppc" 7474 ;; 7475 s390*-*linux*|s390*-*tpf*) 7476 LD="${LD-ld} -m elf64_s390" 7477 ;; 7478 sparc*-*linux*) 7479 LD="${LD-ld} -m elf64_sparc" 7480 ;; 7481 esac 7482 ;; 7483 esac 7484 fi 7485 rm -rf conftest* 7486 ;; 7487 7488*-*-sco3.2v5*) 7489 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7490 SAVE_CFLAGS="$CFLAGS" 7491 CFLAGS="$CFLAGS -belf" 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7493$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7494if ${lt_cv_cc_needs_belf+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496else 7497 ac_ext=c 7498ac_cpp='$CPP $CPPFLAGS' 7499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7501ac_compiler_gnu=$ac_cv_c_compiler_gnu 7502 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505 7506int 7507main () 7508{ 7509 7510 ; 7511 return 0; 7512} 7513_ACEOF 7514if ac_fn_c_try_link "$LINENO"; then : 7515 lt_cv_cc_needs_belf=yes 7516else 7517 lt_cv_cc_needs_belf=no 7518fi 7519rm -f core conftest.err conftest.$ac_objext \ 7520 conftest$ac_exeext conftest.$ac_ext 7521 ac_ext=c 7522ac_cpp='$CPP $CPPFLAGS' 7523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7525ac_compiler_gnu=$ac_cv_c_compiler_gnu 7526 7527fi 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7529$as_echo "$lt_cv_cc_needs_belf" >&6; } 7530 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7532 CFLAGS="$SAVE_CFLAGS" 7533 fi 7534 ;; 7535*-*solaris*) 7536 # Find out which ABI we are using. 7537 echo 'int i;' > conftest.$ac_ext 7538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7539 (eval $ac_compile) 2>&5 7540 ac_status=$? 7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7542 test $ac_status = 0; }; then 7543 case `/usr/bin/file conftest.o` in 7544 *64-bit*) 7545 case $lt_cv_prog_gnu_ld in 7546 yes*) 7547 case $host in 7548 i?86-*-solaris*) 7549 LD="${LD-ld} -m elf_x86_64" 7550 ;; 7551 sparc*-*-solaris*) 7552 LD="${LD-ld} -m elf64_sparc" 7553 ;; 7554 esac 7555 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7556 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7557 LD="${LD-ld}_sol2" 7558 fi 7559 ;; 7560 *) 7561 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7562 LD="${LD-ld} -64" 7563 fi 7564 ;; 7565 esac 7566 ;; 7567 esac 7568 fi 7569 rm -rf conftest* 7570 ;; 7571esac 7572 7573need_locks="$enable_libtool_lock" 7574 7575if test -n "$ac_tool_prefix"; then 7576 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7577set dummy ${ac_tool_prefix}mt; ac_word=$2 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579$as_echo_n "checking for $ac_word... " >&6; } 7580if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 if test -n "$MANIFEST_TOOL"; then 7584 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7585else 7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7587for as_dir in $PATH 7588do 7589 IFS=$as_save_IFS 7590 test -z "$as_dir" && as_dir=. 7591 for ac_exec_ext in '' $ac_executable_extensions; do 7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7593 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7595 break 2 7596 fi 7597done 7598 done 7599IFS=$as_save_IFS 7600 7601fi 7602fi 7603MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7604if test -n "$MANIFEST_TOOL"; then 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7606$as_echo "$MANIFEST_TOOL" >&6; } 7607else 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7609$as_echo "no" >&6; } 7610fi 7611 7612 7613fi 7614if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7615 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7616 # Extract the first word of "mt", so it can be a program name with args. 7617set dummy mt; ac_word=$2 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7619$as_echo_n "checking for $ac_word... " >&6; } 7620if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 if test -n "$ac_ct_MANIFEST_TOOL"; then 7624 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7625else 7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7627for as_dir in $PATH 7628do 7629 IFS=$as_save_IFS 7630 test -z "$as_dir" && as_dir=. 7631 for ac_exec_ext in '' $ac_executable_extensions; do 7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7633 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7635 break 2 7636 fi 7637done 7638 done 7639IFS=$as_save_IFS 7640 7641fi 7642fi 7643ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7644if test -n "$ac_ct_MANIFEST_TOOL"; then 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7646$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7647else 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7649$as_echo "no" >&6; } 7650fi 7651 7652 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7653 MANIFEST_TOOL=":" 7654 else 7655 case $cross_compiling:$ac_tool_warned in 7656yes:) 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7659ac_tool_warned=yes ;; 7660esac 7661 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7662 fi 7663else 7664 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7665fi 7666 7667test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7669$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7670if ${lt_cv_path_mainfest_tool+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 lt_cv_path_mainfest_tool=no 7674 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7675 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7676 cat conftest.err >&5 7677 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7678 lt_cv_path_mainfest_tool=yes 7679 fi 7680 rm -f conftest* 7681fi 7682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7683$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7684if test "x$lt_cv_path_mainfest_tool" != xyes; then 7685 MANIFEST_TOOL=: 7686fi 7687 7688 7689 7690 7691 7692 7693 case $host_os in 7694 rhapsody* | darwin*) 7695 if test -n "$ac_tool_prefix"; then 7696 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7697set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7699$as_echo_n "checking for $ac_word... " >&6; } 7700if ${ac_cv_prog_DSYMUTIL+:} false; then : 7701 $as_echo_n "(cached) " >&6 7702else 7703 if test -n "$DSYMUTIL"; then 7704 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7705else 7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7707for as_dir in $PATH 7708do 7709 IFS=$as_save_IFS 7710 test -z "$as_dir" && as_dir=. 7711 for ac_exec_ext in '' $ac_executable_extensions; do 7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7713 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7715 break 2 7716 fi 7717done 7718 done 7719IFS=$as_save_IFS 7720 7721fi 7722fi 7723DSYMUTIL=$ac_cv_prog_DSYMUTIL 7724if test -n "$DSYMUTIL"; then 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7726$as_echo "$DSYMUTIL" >&6; } 7727else 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7729$as_echo "no" >&6; } 7730fi 7731 7732 7733fi 7734if test -z "$ac_cv_prog_DSYMUTIL"; then 7735 ac_ct_DSYMUTIL=$DSYMUTIL 7736 # Extract the first word of "dsymutil", so it can be a program name with args. 7737set dummy dsymutil; ac_word=$2 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7739$as_echo_n "checking for $ac_word... " >&6; } 7740if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 if test -n "$ac_ct_DSYMUTIL"; then 7744 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7745else 7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7747for as_dir in $PATH 7748do 7749 IFS=$as_save_IFS 7750 test -z "$as_dir" && as_dir=. 7751 for ac_exec_ext in '' $ac_executable_extensions; do 7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7753 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7755 break 2 7756 fi 7757done 7758 done 7759IFS=$as_save_IFS 7760 7761fi 7762fi 7763ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7764if test -n "$ac_ct_DSYMUTIL"; then 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7766$as_echo "$ac_ct_DSYMUTIL" >&6; } 7767else 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7769$as_echo "no" >&6; } 7770fi 7771 7772 if test "x$ac_ct_DSYMUTIL" = x; then 7773 DSYMUTIL=":" 7774 else 7775 case $cross_compiling:$ac_tool_warned in 7776yes:) 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7779ac_tool_warned=yes ;; 7780esac 7781 DSYMUTIL=$ac_ct_DSYMUTIL 7782 fi 7783else 7784 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7785fi 7786 7787 if test -n "$ac_tool_prefix"; then 7788 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7789set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7791$as_echo_n "checking for $ac_word... " >&6; } 7792if ${ac_cv_prog_NMEDIT+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794else 7795 if test -n "$NMEDIT"; then 7796 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7797else 7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7799for as_dir in $PATH 7800do 7801 IFS=$as_save_IFS 7802 test -z "$as_dir" && as_dir=. 7803 for ac_exec_ext in '' $ac_executable_extensions; do 7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7805 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7807 break 2 7808 fi 7809done 7810 done 7811IFS=$as_save_IFS 7812 7813fi 7814fi 7815NMEDIT=$ac_cv_prog_NMEDIT 7816if test -n "$NMEDIT"; then 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7818$as_echo "$NMEDIT" >&6; } 7819else 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7821$as_echo "no" >&6; } 7822fi 7823 7824 7825fi 7826if test -z "$ac_cv_prog_NMEDIT"; then 7827 ac_ct_NMEDIT=$NMEDIT 7828 # Extract the first word of "nmedit", so it can be a program name with args. 7829set dummy nmedit; ac_word=$2 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7831$as_echo_n "checking for $ac_word... " >&6; } 7832if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7833 $as_echo_n "(cached) " >&6 7834else 7835 if test -n "$ac_ct_NMEDIT"; then 7836 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7837else 7838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7839for as_dir in $PATH 7840do 7841 IFS=$as_save_IFS 7842 test -z "$as_dir" && as_dir=. 7843 for ac_exec_ext in '' $ac_executable_extensions; do 7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7845 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7847 break 2 7848 fi 7849done 7850 done 7851IFS=$as_save_IFS 7852 7853fi 7854fi 7855ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7856if test -n "$ac_ct_NMEDIT"; then 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7858$as_echo "$ac_ct_NMEDIT" >&6; } 7859else 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7861$as_echo "no" >&6; } 7862fi 7863 7864 if test "x$ac_ct_NMEDIT" = x; then 7865 NMEDIT=":" 7866 else 7867 case $cross_compiling:$ac_tool_warned in 7868yes:) 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7871ac_tool_warned=yes ;; 7872esac 7873 NMEDIT=$ac_ct_NMEDIT 7874 fi 7875else 7876 NMEDIT="$ac_cv_prog_NMEDIT" 7877fi 7878 7879 if test -n "$ac_tool_prefix"; then 7880 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7881set dummy ${ac_tool_prefix}lipo; ac_word=$2 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7883$as_echo_n "checking for $ac_word... " >&6; } 7884if ${ac_cv_prog_LIPO+:} false; then : 7885 $as_echo_n "(cached) " >&6 7886else 7887 if test -n "$LIPO"; then 7888 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7889else 7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7891for as_dir in $PATH 7892do 7893 IFS=$as_save_IFS 7894 test -z "$as_dir" && as_dir=. 7895 for ac_exec_ext in '' $ac_executable_extensions; do 7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7897 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7899 break 2 7900 fi 7901done 7902 done 7903IFS=$as_save_IFS 7904 7905fi 7906fi 7907LIPO=$ac_cv_prog_LIPO 7908if test -n "$LIPO"; then 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7910$as_echo "$LIPO" >&6; } 7911else 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7913$as_echo "no" >&6; } 7914fi 7915 7916 7917fi 7918if test -z "$ac_cv_prog_LIPO"; then 7919 ac_ct_LIPO=$LIPO 7920 # Extract the first word of "lipo", so it can be a program name with args. 7921set dummy lipo; ac_word=$2 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7923$as_echo_n "checking for $ac_word... " >&6; } 7924if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7925 $as_echo_n "(cached) " >&6 7926else 7927 if test -n "$ac_ct_LIPO"; then 7928 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7929else 7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7931for as_dir in $PATH 7932do 7933 IFS=$as_save_IFS 7934 test -z "$as_dir" && as_dir=. 7935 for ac_exec_ext in '' $ac_executable_extensions; do 7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7937 ac_cv_prog_ac_ct_LIPO="lipo" 7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7939 break 2 7940 fi 7941done 7942 done 7943IFS=$as_save_IFS 7944 7945fi 7946fi 7947ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7948if test -n "$ac_ct_LIPO"; then 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7950$as_echo "$ac_ct_LIPO" >&6; } 7951else 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7953$as_echo "no" >&6; } 7954fi 7955 7956 if test "x$ac_ct_LIPO" = x; then 7957 LIPO=":" 7958 else 7959 case $cross_compiling:$ac_tool_warned in 7960yes:) 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7963ac_tool_warned=yes ;; 7964esac 7965 LIPO=$ac_ct_LIPO 7966 fi 7967else 7968 LIPO="$ac_cv_prog_LIPO" 7969fi 7970 7971 if test -n "$ac_tool_prefix"; then 7972 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7973set dummy ${ac_tool_prefix}otool; ac_word=$2 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7975$as_echo_n "checking for $ac_word... " >&6; } 7976if ${ac_cv_prog_OTOOL+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 if test -n "$OTOOL"; then 7980 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7981else 7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7983for as_dir in $PATH 7984do 7985 IFS=$as_save_IFS 7986 test -z "$as_dir" && as_dir=. 7987 for ac_exec_ext in '' $ac_executable_extensions; do 7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7989 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7991 break 2 7992 fi 7993done 7994 done 7995IFS=$as_save_IFS 7996 7997fi 7998fi 7999OTOOL=$ac_cv_prog_OTOOL 8000if test -n "$OTOOL"; then 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8002$as_echo "$OTOOL" >&6; } 8003else 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8005$as_echo "no" >&6; } 8006fi 8007 8008 8009fi 8010if test -z "$ac_cv_prog_OTOOL"; then 8011 ac_ct_OTOOL=$OTOOL 8012 # Extract the first word of "otool", so it can be a program name with args. 8013set dummy otool; ac_word=$2 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8015$as_echo_n "checking for $ac_word... " >&6; } 8016if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8017 $as_echo_n "(cached) " >&6 8018else 8019 if test -n "$ac_ct_OTOOL"; then 8020 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8021else 8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8023for as_dir in $PATH 8024do 8025 IFS=$as_save_IFS 8026 test -z "$as_dir" && as_dir=. 8027 for ac_exec_ext in '' $ac_executable_extensions; do 8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8029 ac_cv_prog_ac_ct_OTOOL="otool" 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8031 break 2 8032 fi 8033done 8034 done 8035IFS=$as_save_IFS 8036 8037fi 8038fi 8039ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8040if test -n "$ac_ct_OTOOL"; then 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8042$as_echo "$ac_ct_OTOOL" >&6; } 8043else 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8045$as_echo "no" >&6; } 8046fi 8047 8048 if test "x$ac_ct_OTOOL" = x; then 8049 OTOOL=":" 8050 else 8051 case $cross_compiling:$ac_tool_warned in 8052yes:) 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8055ac_tool_warned=yes ;; 8056esac 8057 OTOOL=$ac_ct_OTOOL 8058 fi 8059else 8060 OTOOL="$ac_cv_prog_OTOOL" 8061fi 8062 8063 if test -n "$ac_tool_prefix"; then 8064 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8065set dummy ${ac_tool_prefix}otool64; ac_word=$2 8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8067$as_echo_n "checking for $ac_word... " >&6; } 8068if ${ac_cv_prog_OTOOL64+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 if test -n "$OTOOL64"; then 8072 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8073else 8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8075for as_dir in $PATH 8076do 8077 IFS=$as_save_IFS 8078 test -z "$as_dir" && as_dir=. 8079 for ac_exec_ext in '' $ac_executable_extensions; do 8080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8081 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8083 break 2 8084 fi 8085done 8086 done 8087IFS=$as_save_IFS 8088 8089fi 8090fi 8091OTOOL64=$ac_cv_prog_OTOOL64 8092if test -n "$OTOOL64"; then 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8094$as_echo "$OTOOL64" >&6; } 8095else 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8097$as_echo "no" >&6; } 8098fi 8099 8100 8101fi 8102if test -z "$ac_cv_prog_OTOOL64"; then 8103 ac_ct_OTOOL64=$OTOOL64 8104 # Extract the first word of "otool64", so it can be a program name with args. 8105set dummy otool64; ac_word=$2 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8107$as_echo_n "checking for $ac_word... " >&6; } 8108if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 if test -n "$ac_ct_OTOOL64"; then 8112 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8113else 8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8115for as_dir in $PATH 8116do 8117 IFS=$as_save_IFS 8118 test -z "$as_dir" && as_dir=. 8119 for ac_exec_ext in '' $ac_executable_extensions; do 8120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8121 ac_cv_prog_ac_ct_OTOOL64="otool64" 8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8123 break 2 8124 fi 8125done 8126 done 8127IFS=$as_save_IFS 8128 8129fi 8130fi 8131ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8132if test -n "$ac_ct_OTOOL64"; then 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8134$as_echo "$ac_ct_OTOOL64" >&6; } 8135else 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8137$as_echo "no" >&6; } 8138fi 8139 8140 if test "x$ac_ct_OTOOL64" = x; then 8141 OTOOL64=":" 8142 else 8143 case $cross_compiling:$ac_tool_warned in 8144yes:) 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8147ac_tool_warned=yes ;; 8148esac 8149 OTOOL64=$ac_ct_OTOOL64 8150 fi 8151else 8152 OTOOL64="$ac_cv_prog_OTOOL64" 8153fi 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8182$as_echo_n "checking for -single_module linker flag... " >&6; } 8183if ${lt_cv_apple_cc_single_mod+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 lt_cv_apple_cc_single_mod=no 8187 if test -z "${LT_MULTI_MODULE}"; then 8188 # By default we will add the -single_module flag. You can override 8189 # by either setting the environment variable LT_MULTI_MODULE 8190 # non-empty at configure time, or by adding -multi_module to the 8191 # link flags. 8192 rm -rf libconftest.dylib* 8193 echo "int foo(void){return 1;}" > conftest.c 8194 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8195-dynamiclib -Wl,-single_module conftest.c" >&5 8196 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8197 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8198 _lt_result=$? 8199 # If there is a non-empty error log, and "single_module" 8200 # appears in it, assume the flag caused a linker warning 8201 if test -s conftest.err && $GREP single_module conftest.err; then 8202 cat conftest.err >&5 8203 # Otherwise, if the output was created with a 0 exit code from 8204 # the compiler, it worked. 8205 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8206 lt_cv_apple_cc_single_mod=yes 8207 else 8208 cat conftest.err >&5 8209 fi 8210 rm -rf libconftest.dylib* 8211 rm -f conftest.* 8212 fi 8213fi 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8215$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8216 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8218$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8219if ${lt_cv_ld_exported_symbols_list+:} false; then : 8220 $as_echo_n "(cached) " >&6 8221else 8222 lt_cv_ld_exported_symbols_list=no 8223 save_LDFLAGS=$LDFLAGS 8224 echo "_main" > conftest.sym 8225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8227/* end confdefs.h. */ 8228 8229int 8230main () 8231{ 8232 8233 ; 8234 return 0; 8235} 8236_ACEOF 8237if ac_fn_c_try_link "$LINENO"; then : 8238 lt_cv_ld_exported_symbols_list=yes 8239else 8240 lt_cv_ld_exported_symbols_list=no 8241fi 8242rm -f core conftest.err conftest.$ac_objext \ 8243 conftest$ac_exeext conftest.$ac_ext 8244 LDFLAGS="$save_LDFLAGS" 8245 8246fi 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8248$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8249 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8251$as_echo_n "checking for -force_load linker flag... " >&6; } 8252if ${lt_cv_ld_force_load+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254else 8255 lt_cv_ld_force_load=no 8256 cat > conftest.c << _LT_EOF 8257int forced_loaded() { return 2;} 8258_LT_EOF 8259 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8260 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8261 echo "$AR cru libconftest.a conftest.o" >&5 8262 $AR cru libconftest.a conftest.o 2>&5 8263 echo "$RANLIB libconftest.a" >&5 8264 $RANLIB libconftest.a 2>&5 8265 cat > conftest.c << _LT_EOF 8266int main() { return 0;} 8267_LT_EOF 8268 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8269 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8270 _lt_result=$? 8271 if test -s conftest.err && $GREP force_load conftest.err; then 8272 cat conftest.err >&5 8273 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8274 lt_cv_ld_force_load=yes 8275 else 8276 cat conftest.err >&5 8277 fi 8278 rm -f conftest.err libconftest.a conftest conftest.c 8279 rm -rf conftest.dSYM 8280 8281fi 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8283$as_echo "$lt_cv_ld_force_load" >&6; } 8284 case $host_os in 8285 rhapsody* | darwin1.[012]) 8286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8287 darwin1.*) 8288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8289 darwin*) # darwin 5.x on 8290 # if running on 10.5 or later, the deployment target defaults 8291 # to the OS version, if on x86, and 10.4, the deployment 8292 # target defaults to 10.4. Don't you love it? 8293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8294 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8296 10.[012]*) 8297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8298 10.*) 8299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8300 esac 8301 ;; 8302 esac 8303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8304 _lt_dar_single_mod='$single_module' 8305 fi 8306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8308 else 8309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8310 fi 8311 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8312 _lt_dsymutil='~$DSYMUTIL $lib || :' 8313 else 8314 _lt_dsymutil= 8315 fi 8316 ;; 8317 esac 8318 8319for ac_header in dlfcn.h 8320do : 8321 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8322" 8323if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8324 cat >>confdefs.h <<_ACEOF 8325#define HAVE_DLFCN_H 1 8326_ACEOF 8327 8328fi 8329 8330done 8331 8332 8333 8334 8335 8336# Set options 8337 8338 8339 8340 enable_dlopen=no 8341 8342 8343 8344 # Check whether --enable-shared was given. 8345if test "${enable_shared+set}" = set; then : 8346 enableval=$enable_shared; p=${PACKAGE-default} 8347 case $enableval in 8348 yes) enable_shared=yes ;; 8349 no) enable_shared=no ;; 8350 *) 8351 enable_shared=no 8352 # Look at the argument we got. We use all the common list separators. 8353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8354 for pkg in $enableval; do 8355 IFS="$lt_save_ifs" 8356 if test "X$pkg" = "X$p"; then 8357 enable_shared=yes 8358 fi 8359 done 8360 IFS="$lt_save_ifs" 8361 ;; 8362 esac 8363else 8364 enable_shared=yes 8365fi 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 # Check whether --enable-static was given. 8376if test "${enable_static+set}" = set; then : 8377 enableval=$enable_static; p=${PACKAGE-default} 8378 case $enableval in 8379 yes) enable_static=yes ;; 8380 no) enable_static=no ;; 8381 *) 8382 enable_static=no 8383 # Look at the argument we got. We use all the common list separators. 8384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8385 for pkg in $enableval; do 8386 IFS="$lt_save_ifs" 8387 if test "X$pkg" = "X$p"; then 8388 enable_static=yes 8389 fi 8390 done 8391 IFS="$lt_save_ifs" 8392 ;; 8393 esac 8394else 8395 enable_static=yes 8396fi 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407# Check whether --with-pic was given. 8408if test "${with_pic+set}" = set; then : 8409 withval=$with_pic; lt_p=${PACKAGE-default} 8410 case $withval in 8411 yes|no) pic_mode=$withval ;; 8412 *) 8413 pic_mode=default 8414 # Look at the argument we got. We use all the common list separators. 8415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8416 for lt_pkg in $withval; do 8417 IFS="$lt_save_ifs" 8418 if test "X$lt_pkg" = "X$lt_p"; then 8419 pic_mode=yes 8420 fi 8421 done 8422 IFS="$lt_save_ifs" 8423 ;; 8424 esac 8425else 8426 pic_mode=default 8427fi 8428 8429 8430test -z "$pic_mode" && pic_mode=default 8431 8432 8433 8434 8435 8436 8437 8438 # Check whether --enable-fast-install was given. 8439if test "${enable_fast_install+set}" = set; then : 8440 enableval=$enable_fast_install; p=${PACKAGE-default} 8441 case $enableval in 8442 yes) enable_fast_install=yes ;; 8443 no) enable_fast_install=no ;; 8444 *) 8445 enable_fast_install=no 8446 # Look at the argument we got. We use all the common list separators. 8447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8448 for pkg in $enableval; do 8449 IFS="$lt_save_ifs" 8450 if test "X$pkg" = "X$p"; then 8451 enable_fast_install=yes 8452 fi 8453 done 8454 IFS="$lt_save_ifs" 8455 ;; 8456 esac 8457else 8458 enable_fast_install=yes 8459fi 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471# This can be used to rebuild libtool when needed 8472LIBTOOL_DEPS="$ltmain" 8473 8474# Always use our own libtool. 8475LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506test -z "$LN_S" && LN_S="ln -s" 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521if test -n "${ZSH_VERSION+set}" ; then 8522 setopt NO_GLOB_SUBST 8523fi 8524 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8526$as_echo_n "checking for objdir... " >&6; } 8527if ${lt_cv_objdir+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 rm -f .libs 2>/dev/null 8531mkdir .libs 2>/dev/null 8532if test -d .libs; then 8533 lt_cv_objdir=.libs 8534else 8535 # MS-DOS does not allow filenames that begin with a dot. 8536 lt_cv_objdir=_libs 8537fi 8538rmdir .libs 2>/dev/null 8539fi 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8541$as_echo "$lt_cv_objdir" >&6; } 8542objdir=$lt_cv_objdir 8543 8544 8545 8546 8547 8548cat >>confdefs.h <<_ACEOF 8549#define LT_OBJDIR "$lt_cv_objdir/" 8550_ACEOF 8551 8552 8553 8554 8555case $host_os in 8556aix3*) 8557 # AIX sometimes has problems with the GCC collect2 program. For some 8558 # reason, if we set the COLLECT_NAMES environment variable, the problems 8559 # vanish in a puff of smoke. 8560 if test "X${COLLECT_NAMES+set}" != Xset; then 8561 COLLECT_NAMES= 8562 export COLLECT_NAMES 8563 fi 8564 ;; 8565esac 8566 8567# Global variables: 8568ofile=libtool 8569can_build_shared=yes 8570 8571# All known linkers require a `.a' archive for static linking (except MSVC, 8572# which needs '.lib'). 8573libext=a 8574 8575with_gnu_ld="$lt_cv_prog_gnu_ld" 8576 8577old_CC="$CC" 8578old_CFLAGS="$CFLAGS" 8579 8580# Set sane defaults for various variables 8581test -z "$CC" && CC=cc 8582test -z "$LTCC" && LTCC=$CC 8583test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8584test -z "$LD" && LD=ld 8585test -z "$ac_objext" && ac_objext=o 8586 8587for cc_temp in $compiler""; do 8588 case $cc_temp in 8589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8591 \-*) ;; 8592 *) break;; 8593 esac 8594done 8595cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8596 8597 8598# Only perform the check for file, if the check method requires it 8599test -z "$MAGIC_CMD" && MAGIC_CMD=file 8600case $deplibs_check_method in 8601file_magic*) 8602 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8604$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8605if ${lt_cv_path_MAGIC_CMD+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 case $MAGIC_CMD in 8609[\\/*] | ?:[\\/]*) 8610 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8611 ;; 8612*) 8613 lt_save_MAGIC_CMD="$MAGIC_CMD" 8614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8615 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8616 for ac_dir in $ac_dummy; do 8617 IFS="$lt_save_ifs" 8618 test -z "$ac_dir" && ac_dir=. 8619 if test -f $ac_dir/${ac_tool_prefix}file; then 8620 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8621 if test -n "$file_magic_test_file"; then 8622 case $deplibs_check_method in 8623 "file_magic "*) 8624 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8625 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8626 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8627 $EGREP "$file_magic_regex" > /dev/null; then 8628 : 8629 else 8630 cat <<_LT_EOF 1>&2 8631 8632*** Warning: the command libtool uses to detect shared libraries, 8633*** $file_magic_cmd, produces output that libtool cannot recognize. 8634*** The result is that libtool may fail to recognize shared libraries 8635*** as such. This will affect the creation of libtool libraries that 8636*** depend on shared libraries, but programs linked with such libtool 8637*** libraries will work regardless of this problem. Nevertheless, you 8638*** may want to report the problem to your system manager and/or to 8639*** bug-libtool@gnu.org 8640 8641_LT_EOF 8642 fi ;; 8643 esac 8644 fi 8645 break 8646 fi 8647 done 8648 IFS="$lt_save_ifs" 8649 MAGIC_CMD="$lt_save_MAGIC_CMD" 8650 ;; 8651esac 8652fi 8653 8654MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8655if test -n "$MAGIC_CMD"; then 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8657$as_echo "$MAGIC_CMD" >&6; } 8658else 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660$as_echo "no" >&6; } 8661fi 8662 8663 8664 8665 8666 8667if test -z "$lt_cv_path_MAGIC_CMD"; then 8668 if test -n "$ac_tool_prefix"; then 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8670$as_echo_n "checking for file... " >&6; } 8671if ${lt_cv_path_MAGIC_CMD+:} false; then : 8672 $as_echo_n "(cached) " >&6 8673else 8674 case $MAGIC_CMD in 8675[\\/*] | ?:[\\/]*) 8676 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8677 ;; 8678*) 8679 lt_save_MAGIC_CMD="$MAGIC_CMD" 8680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8681 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8682 for ac_dir in $ac_dummy; do 8683 IFS="$lt_save_ifs" 8684 test -z "$ac_dir" && ac_dir=. 8685 if test -f $ac_dir/file; then 8686 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8687 if test -n "$file_magic_test_file"; then 8688 case $deplibs_check_method in 8689 "file_magic "*) 8690 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8691 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8692 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8693 $EGREP "$file_magic_regex" > /dev/null; then 8694 : 8695 else 8696 cat <<_LT_EOF 1>&2 8697 8698*** Warning: the command libtool uses to detect shared libraries, 8699*** $file_magic_cmd, produces output that libtool cannot recognize. 8700*** The result is that libtool may fail to recognize shared libraries 8701*** as such. This will affect the creation of libtool libraries that 8702*** depend on shared libraries, but programs linked with such libtool 8703*** libraries will work regardless of this problem. Nevertheless, you 8704*** may want to report the problem to your system manager and/or to 8705*** bug-libtool@gnu.org 8706 8707_LT_EOF 8708 fi ;; 8709 esac 8710 fi 8711 break 8712 fi 8713 done 8714 IFS="$lt_save_ifs" 8715 MAGIC_CMD="$lt_save_MAGIC_CMD" 8716 ;; 8717esac 8718fi 8719 8720MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8721if test -n "$MAGIC_CMD"; then 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8723$as_echo "$MAGIC_CMD" >&6; } 8724else 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8726$as_echo "no" >&6; } 8727fi 8728 8729 8730 else 8731 MAGIC_CMD=: 8732 fi 8733fi 8734 8735 fi 8736 ;; 8737esac 8738 8739# Use C for the default configuration in the libtool script 8740 8741lt_save_CC="$CC" 8742ac_ext=c 8743ac_cpp='$CPP $CPPFLAGS' 8744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8746ac_compiler_gnu=$ac_cv_c_compiler_gnu 8747 8748 8749# Source file extension for C test sources. 8750ac_ext=c 8751 8752# Object file extension for compiled C test sources. 8753objext=o 8754objext=$objext 8755 8756# Code to be used in simple compile tests 8757lt_simple_compile_test_code="int some_variable = 0;" 8758 8759# Code to be used in simple link tests 8760lt_simple_link_test_code='int main(){return(0);}' 8761 8762 8763 8764 8765 8766 8767 8768# If no C compiler was specified, use CC. 8769LTCC=${LTCC-"$CC"} 8770 8771# If no C compiler flags were specified, use CFLAGS. 8772LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8773 8774# Allow CC to be a program name with arguments. 8775compiler=$CC 8776 8777# Save the default compiler, since it gets overwritten when the other 8778# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8779compiler_DEFAULT=$CC 8780 8781# save warnings/boilerplate of simple test code 8782ac_outfile=conftest.$ac_objext 8783echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8784eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8785_lt_compiler_boilerplate=`cat conftest.err` 8786$RM conftest* 8787 8788ac_outfile=conftest.$ac_objext 8789echo "$lt_simple_link_test_code" >conftest.$ac_ext 8790eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8791_lt_linker_boilerplate=`cat conftest.err` 8792$RM -r conftest* 8793 8794 8795## CAVEAT EMPTOR: 8796## There is no encapsulation within the following macros, do not change 8797## the running order or otherwise move them around unless you know exactly 8798## what you are doing... 8799if test -n "$compiler"; then 8800 8801lt_prog_compiler_no_builtin_flag= 8802 8803if test "$GCC" = yes; then 8804 case $cc_basename in 8805 nvcc*) 8806 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8807 *) 8808 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8809 esac 8810 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8812$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8813if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8814 $as_echo_n "(cached) " >&6 8815else 8816 lt_cv_prog_compiler_rtti_exceptions=no 8817 ac_outfile=conftest.$ac_objext 8818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8819 lt_compiler_flag="-fno-rtti -fno-exceptions" 8820 # Insert the option either (1) after the last *FLAGS variable, or 8821 # (2) before a word containing "conftest.", or (3) at the end. 8822 # Note that $ac_compile itself does not contain backslashes and begins 8823 # with a dollar sign (not a hyphen), so the echo should work correctly. 8824 # The option is referenced via a variable to avoid confusing sed. 8825 lt_compile=`echo "$ac_compile" | $SED \ 8826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8828 -e 's:$: $lt_compiler_flag:'` 8829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8830 (eval "$lt_compile" 2>conftest.err) 8831 ac_status=$? 8832 cat conftest.err >&5 8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 if (exit $ac_status) && test -s "$ac_outfile"; then 8835 # The compiler can only warn and ignore the option if not recognized 8836 # So say no if there are warnings other than the usual output. 8837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8840 lt_cv_prog_compiler_rtti_exceptions=yes 8841 fi 8842 fi 8843 $RM conftest* 8844 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8847$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8848 8849if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8850 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8851else 8852 : 8853fi 8854 8855fi 8856 8857 8858 8859 8860 8861 8862 lt_prog_compiler_wl= 8863lt_prog_compiler_pic= 8864lt_prog_compiler_static= 8865 8866 8867 if test "$GCC" = yes; then 8868 lt_prog_compiler_wl='-Wl,' 8869 lt_prog_compiler_static='-static' 8870 8871 case $host_os in 8872 aix*) 8873 # All AIX code is PIC. 8874 if test "$host_cpu" = ia64; then 8875 # AIX 5 now supports IA64 processor 8876 lt_prog_compiler_static='-Bstatic' 8877 fi 8878 ;; 8879 8880 amigaos*) 8881 case $host_cpu in 8882 powerpc) 8883 # see comment about AmigaOS4 .so support 8884 lt_prog_compiler_pic='-fPIC' 8885 ;; 8886 m68k) 8887 # FIXME: we need at least 68020 code to build shared libraries, but 8888 # adding the `-m68020' flag to GCC prevents building anything better, 8889 # like `-m68040'. 8890 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8891 ;; 8892 esac 8893 ;; 8894 8895 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8896 # PIC is the default for these OSes. 8897 ;; 8898 8899 mingw* | cygwin* | pw32* | os2* | cegcc*) 8900 # This hack is so that the source file can tell whether it is being 8901 # built for inclusion in a dll (and should export symbols for example). 8902 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8903 # (--disable-auto-import) libraries 8904 lt_prog_compiler_pic='-DDLL_EXPORT' 8905 ;; 8906 8907 darwin* | rhapsody*) 8908 # PIC is the default on this platform 8909 # Common symbols not allowed in MH_DYLIB files 8910 lt_prog_compiler_pic='-fno-common' 8911 ;; 8912 8913 haiku*) 8914 # PIC is the default for Haiku. 8915 # The "-static" flag exists, but is broken. 8916 lt_prog_compiler_static= 8917 ;; 8918 8919 hpux*) 8920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8922 # sets the default TLS model and affects inlining. 8923 case $host_cpu in 8924 hppa*64*) 8925 # +Z the default 8926 ;; 8927 *) 8928 lt_prog_compiler_pic='-fPIC' 8929 ;; 8930 esac 8931 ;; 8932 8933 interix[3-9]*) 8934 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8935 # Instead, we relocate shared libraries at runtime. 8936 ;; 8937 8938 msdosdjgpp*) 8939 # Just because we use GCC doesn't mean we suddenly get shared libraries 8940 # on systems that don't support them. 8941 lt_prog_compiler_can_build_shared=no 8942 enable_shared=no 8943 ;; 8944 8945 *nto* | *qnx*) 8946 # QNX uses GNU C++, but need to define -shared option too, otherwise 8947 # it will coredump. 8948 lt_prog_compiler_pic='-fPIC -shared' 8949 ;; 8950 8951 sysv4*MP*) 8952 if test -d /usr/nec; then 8953 lt_prog_compiler_pic=-Kconform_pic 8954 fi 8955 ;; 8956 8957 *) 8958 lt_prog_compiler_pic='-fPIC' 8959 ;; 8960 esac 8961 8962 case $cc_basename in 8963 nvcc*) # Cuda Compiler Driver 2.2 8964 lt_prog_compiler_wl='-Xlinker ' 8965 if test -n "$lt_prog_compiler_pic"; then 8966 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8967 fi 8968 ;; 8969 esac 8970 else 8971 # PORTME Check for flag to pass linker flags through the system compiler. 8972 case $host_os in 8973 aix*) 8974 lt_prog_compiler_wl='-Wl,' 8975 if test "$host_cpu" = ia64; then 8976 # AIX 5 now supports IA64 processor 8977 lt_prog_compiler_static='-Bstatic' 8978 else 8979 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8980 fi 8981 ;; 8982 8983 mingw* | cygwin* | pw32* | os2* | cegcc*) 8984 # This hack is so that the source file can tell whether it is being 8985 # built for inclusion in a dll (and should export symbols for example). 8986 lt_prog_compiler_pic='-DDLL_EXPORT' 8987 ;; 8988 8989 hpux9* | hpux10* | hpux11*) 8990 lt_prog_compiler_wl='-Wl,' 8991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8992 # not for PA HP-UX. 8993 case $host_cpu in 8994 hppa*64*|ia64*) 8995 # +Z the default 8996 ;; 8997 *) 8998 lt_prog_compiler_pic='+Z' 8999 ;; 9000 esac 9001 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9002 lt_prog_compiler_static='${wl}-a ${wl}archive' 9003 ;; 9004 9005 irix5* | irix6* | nonstopux*) 9006 lt_prog_compiler_wl='-Wl,' 9007 # PIC (with -KPIC) is the default. 9008 lt_prog_compiler_static='-non_shared' 9009 ;; 9010 9011 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9012 case $cc_basename in 9013 # old Intel for x86_64 which still supported -KPIC. 9014 ecc*) 9015 lt_prog_compiler_wl='-Wl,' 9016 lt_prog_compiler_pic='-KPIC' 9017 lt_prog_compiler_static='-static' 9018 ;; 9019 # icc used to be incompatible with GCC. 9020 # ICC 10 doesn't accept -KPIC any more. 9021 icc* | ifort*) 9022 lt_prog_compiler_wl='-Wl,' 9023 lt_prog_compiler_pic='-fPIC' 9024 lt_prog_compiler_static='-static' 9025 ;; 9026 # Lahey Fortran 8.1. 9027 lf95*) 9028 lt_prog_compiler_wl='-Wl,' 9029 lt_prog_compiler_pic='--shared' 9030 lt_prog_compiler_static='--static' 9031 ;; 9032 nagfor*) 9033 # NAG Fortran compiler 9034 lt_prog_compiler_wl='-Wl,-Wl,,' 9035 lt_prog_compiler_pic='-PIC' 9036 lt_prog_compiler_static='-Bstatic' 9037 ;; 9038 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9039 # Portland Group compilers (*not* the Pentium gcc compiler, 9040 # which looks to be a dead project) 9041 lt_prog_compiler_wl='-Wl,' 9042 lt_prog_compiler_pic='-fpic' 9043 lt_prog_compiler_static='-Bstatic' 9044 ;; 9045 ccc*) 9046 lt_prog_compiler_wl='-Wl,' 9047 # All Alpha code is PIC. 9048 lt_prog_compiler_static='-non_shared' 9049 ;; 9050 xl* | bgxl* | bgf* | mpixl*) 9051 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9052 lt_prog_compiler_wl='-Wl,' 9053 lt_prog_compiler_pic='-qpic' 9054 lt_prog_compiler_static='-qstaticlink' 9055 ;; 9056 *) 9057 case `$CC -V 2>&1 | sed 5q` in 9058 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9059 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9060 lt_prog_compiler_pic='-KPIC' 9061 lt_prog_compiler_static='-Bstatic' 9062 lt_prog_compiler_wl='' 9063 ;; 9064 *Sun\ F* | *Sun*Fortran*) 9065 lt_prog_compiler_pic='-KPIC' 9066 lt_prog_compiler_static='-Bstatic' 9067 lt_prog_compiler_wl='-Qoption ld ' 9068 ;; 9069 *Sun\ C*) 9070 # Sun C 5.9 9071 lt_prog_compiler_pic='-KPIC' 9072 lt_prog_compiler_static='-Bstatic' 9073 lt_prog_compiler_wl='-Wl,' 9074 ;; 9075 *Intel*\ [CF]*Compiler*) 9076 lt_prog_compiler_wl='-Wl,' 9077 lt_prog_compiler_pic='-fPIC' 9078 lt_prog_compiler_static='-static' 9079 ;; 9080 *Portland\ Group*) 9081 lt_prog_compiler_wl='-Wl,' 9082 lt_prog_compiler_pic='-fpic' 9083 lt_prog_compiler_static='-Bstatic' 9084 ;; 9085 esac 9086 ;; 9087 esac 9088 ;; 9089 9090 newsos6) 9091 lt_prog_compiler_pic='-KPIC' 9092 lt_prog_compiler_static='-Bstatic' 9093 ;; 9094 9095 *nto* | *qnx*) 9096 # QNX uses GNU C++, but need to define -shared option too, otherwise 9097 # it will coredump. 9098 lt_prog_compiler_pic='-fPIC -shared' 9099 ;; 9100 9101 osf3* | osf4* | osf5*) 9102 lt_prog_compiler_wl='-Wl,' 9103 # All OSF/1 code is PIC. 9104 lt_prog_compiler_static='-non_shared' 9105 ;; 9106 9107 rdos*) 9108 lt_prog_compiler_static='-non_shared' 9109 ;; 9110 9111 solaris*) 9112 lt_prog_compiler_pic='-KPIC' 9113 lt_prog_compiler_static='-Bstatic' 9114 case $cc_basename in 9115 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9116 lt_prog_compiler_wl='-Qoption ld ';; 9117 *) 9118 lt_prog_compiler_wl='-Wl,';; 9119 esac 9120 ;; 9121 9122 sunos4*) 9123 lt_prog_compiler_wl='-Qoption ld ' 9124 lt_prog_compiler_pic='-PIC' 9125 lt_prog_compiler_static='-Bstatic' 9126 ;; 9127 9128 sysv4 | sysv4.2uw2* | sysv4.3*) 9129 lt_prog_compiler_wl='-Wl,' 9130 lt_prog_compiler_pic='-KPIC' 9131 lt_prog_compiler_static='-Bstatic' 9132 ;; 9133 9134 sysv4*MP*) 9135 if test -d /usr/nec ;then 9136 lt_prog_compiler_pic='-Kconform_pic' 9137 lt_prog_compiler_static='-Bstatic' 9138 fi 9139 ;; 9140 9141 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9142 lt_prog_compiler_wl='-Wl,' 9143 lt_prog_compiler_pic='-KPIC' 9144 lt_prog_compiler_static='-Bstatic' 9145 ;; 9146 9147 unicos*) 9148 lt_prog_compiler_wl='-Wl,' 9149 lt_prog_compiler_can_build_shared=no 9150 ;; 9151 9152 uts4*) 9153 lt_prog_compiler_pic='-pic' 9154 lt_prog_compiler_static='-Bstatic' 9155 ;; 9156 9157 *) 9158 lt_prog_compiler_can_build_shared=no 9159 ;; 9160 esac 9161 fi 9162 9163case $host_os in 9164 # For platforms which do not support PIC, -DPIC is meaningless: 9165 *djgpp*) 9166 lt_prog_compiler_pic= 9167 ;; 9168 *) 9169 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9170 ;; 9171esac 9172 9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9174$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9175if ${lt_cv_prog_compiler_pic+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177else 9178 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9179fi 9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9181$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9182lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9183 9184# 9185# Check to make sure the PIC flag actually works. 9186# 9187if test -n "$lt_prog_compiler_pic"; then 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9189$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9190if ${lt_cv_prog_compiler_pic_works+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 lt_cv_prog_compiler_pic_works=no 9194 ac_outfile=conftest.$ac_objext 9195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9196 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9197 # Insert the option either (1) after the last *FLAGS variable, or 9198 # (2) before a word containing "conftest.", or (3) at the end. 9199 # Note that $ac_compile itself does not contain backslashes and begins 9200 # with a dollar sign (not a hyphen), so the echo should work correctly. 9201 # The option is referenced via a variable to avoid confusing sed. 9202 lt_compile=`echo "$ac_compile" | $SED \ 9203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9205 -e 's:$: $lt_compiler_flag:'` 9206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9207 (eval "$lt_compile" 2>conftest.err) 9208 ac_status=$? 9209 cat conftest.err >&5 9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9211 if (exit $ac_status) && test -s "$ac_outfile"; then 9212 # The compiler can only warn and ignore the option if not recognized 9213 # So say no if there are warnings other than the usual output. 9214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9217 lt_cv_prog_compiler_pic_works=yes 9218 fi 9219 fi 9220 $RM conftest* 9221 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9224$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9225 9226if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9227 case $lt_prog_compiler_pic in 9228 "" | " "*) ;; 9229 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9230 esac 9231else 9232 lt_prog_compiler_pic= 9233 lt_prog_compiler_can_build_shared=no 9234fi 9235 9236fi 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248# 9249# Check to make sure the static flag actually works. 9250# 9251wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9253$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9254if ${lt_cv_prog_compiler_static_works+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256else 9257 lt_cv_prog_compiler_static_works=no 9258 save_LDFLAGS="$LDFLAGS" 9259 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9260 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9261 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9262 # The linker can only warn and ignore the option if not recognized 9263 # So say no if there are warnings 9264 if test -s conftest.err; then 9265 # Append any errors to the config.log. 9266 cat conftest.err 1>&5 9267 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9269 if diff conftest.exp conftest.er2 >/dev/null; then 9270 lt_cv_prog_compiler_static_works=yes 9271 fi 9272 else 9273 lt_cv_prog_compiler_static_works=yes 9274 fi 9275 fi 9276 $RM -r conftest* 9277 LDFLAGS="$save_LDFLAGS" 9278 9279fi 9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9281$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9282 9283if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9284 : 9285else 9286 lt_prog_compiler_static= 9287fi 9288 9289 9290 9291 9292 9293 9294 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9296$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9297if ${lt_cv_prog_compiler_c_o+:} false; then : 9298 $as_echo_n "(cached) " >&6 9299else 9300 lt_cv_prog_compiler_c_o=no 9301 $RM -r conftest 2>/dev/null 9302 mkdir conftest 9303 cd conftest 9304 mkdir out 9305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9306 9307 lt_compiler_flag="-o out/conftest2.$ac_objext" 9308 # Insert the option either (1) after the last *FLAGS variable, or 9309 # (2) before a word containing "conftest.", or (3) at the end. 9310 # Note that $ac_compile itself does not contain backslashes and begins 9311 # with a dollar sign (not a hyphen), so the echo should work correctly. 9312 lt_compile=`echo "$ac_compile" | $SED \ 9313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9315 -e 's:$: $lt_compiler_flag:'` 9316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9317 (eval "$lt_compile" 2>out/conftest.err) 9318 ac_status=$? 9319 cat out/conftest.err >&5 9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9321 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9322 then 9323 # The compiler can only warn and ignore the option if not recognized 9324 # So say no if there are warnings 9325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9326 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9327 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9328 lt_cv_prog_compiler_c_o=yes 9329 fi 9330 fi 9331 chmod u+w . 2>&5 9332 $RM conftest* 9333 # SGI C++ compiler will create directory out/ii_files/ for 9334 # template instantiation 9335 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9336 $RM out/* && rmdir out 9337 cd .. 9338 $RM -r conftest 9339 $RM conftest* 9340 9341fi 9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9343$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9344 9345 9346 9347 9348 9349 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9351$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9352if ${lt_cv_prog_compiler_c_o+:} false; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 lt_cv_prog_compiler_c_o=no 9356 $RM -r conftest 2>/dev/null 9357 mkdir conftest 9358 cd conftest 9359 mkdir out 9360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9361 9362 lt_compiler_flag="-o out/conftest2.$ac_objext" 9363 # Insert the option either (1) after the last *FLAGS variable, or 9364 # (2) before a word containing "conftest.", or (3) at the end. 9365 # Note that $ac_compile itself does not contain backslashes and begins 9366 # with a dollar sign (not a hyphen), so the echo should work correctly. 9367 lt_compile=`echo "$ac_compile" | $SED \ 9368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9370 -e 's:$: $lt_compiler_flag:'` 9371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9372 (eval "$lt_compile" 2>out/conftest.err) 9373 ac_status=$? 9374 cat out/conftest.err >&5 9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9376 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9377 then 9378 # The compiler can only warn and ignore the option if not recognized 9379 # So say no if there are warnings 9380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9383 lt_cv_prog_compiler_c_o=yes 9384 fi 9385 fi 9386 chmod u+w . 2>&5 9387 $RM conftest* 9388 # SGI C++ compiler will create directory out/ii_files/ for 9389 # template instantiation 9390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9391 $RM out/* && rmdir out 9392 cd .. 9393 $RM -r conftest 9394 $RM conftest* 9395 9396fi 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9398$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9399 9400 9401 9402 9403hard_links="nottested" 9404if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9405 # do not overwrite the value of need_locks provided by the user 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9407$as_echo_n "checking if we can lock with hard links... " >&6; } 9408 hard_links=yes 9409 $RM conftest* 9410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9411 touch conftest.a 9412 ln conftest.a conftest.b 2>&5 || hard_links=no 9413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9415$as_echo "$hard_links" >&6; } 9416 if test "$hard_links" = no; then 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9418$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9419 need_locks=warn 9420 fi 9421else 9422 need_locks=no 9423fi 9424 9425 9426 9427 9428 9429 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9432 9433 runpath_var= 9434 allow_undefined_flag= 9435 always_export_symbols=no 9436 archive_cmds= 9437 archive_expsym_cmds= 9438 compiler_needs_object=no 9439 enable_shared_with_static_runtimes=no 9440 export_dynamic_flag_spec= 9441 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9442 hardcode_automatic=no 9443 hardcode_direct=no 9444 hardcode_direct_absolute=no 9445 hardcode_libdir_flag_spec= 9446 hardcode_libdir_separator= 9447 hardcode_minus_L=no 9448 hardcode_shlibpath_var=unsupported 9449 inherit_rpath=no 9450 link_all_deplibs=unknown 9451 module_cmds= 9452 module_expsym_cmds= 9453 old_archive_from_new_cmds= 9454 old_archive_from_expsyms_cmds= 9455 thread_safe_flag_spec= 9456 whole_archive_flag_spec= 9457 # include_expsyms should be a list of space-separated symbols to be *always* 9458 # included in the symbol list 9459 include_expsyms= 9460 # exclude_expsyms can be an extended regexp of symbols to exclude 9461 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9462 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9463 # as well as any symbol that contains `d'. 9464 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9465 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9466 # platforms (ab)use it in PIC code, but their linkers get confused if 9467 # the symbol is explicitly referenced. Since portable code cannot 9468 # rely on this symbol name, it's probably fine to never include it in 9469 # preloaded symbol tables. 9470 # Exclude shared library initialization/finalization symbols. 9471 extract_expsyms_cmds= 9472 9473 case $host_os in 9474 cygwin* | mingw* | pw32* | cegcc*) 9475 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9476 # When not using gcc, we currently assume that we are using 9477 # Microsoft Visual C++. 9478 if test "$GCC" != yes; then 9479 with_gnu_ld=no 9480 fi 9481 ;; 9482 interix*) 9483 # we just hope/assume this is gcc and not c89 (= MSVC++) 9484 with_gnu_ld=yes 9485 ;; 9486 openbsd*) 9487 with_gnu_ld=no 9488 ;; 9489 esac 9490 9491 ld_shlibs=yes 9492 9493 # On some targets, GNU ld is compatible enough with the native linker 9494 # that we're better off using the native interface for both. 9495 lt_use_gnu_ld_interface=no 9496 if test "$with_gnu_ld" = yes; then 9497 case $host_os in 9498 aix*) 9499 # The AIX port of GNU ld has always aspired to compatibility 9500 # with the native linker. However, as the warning in the GNU ld 9501 # block says, versions before 2.19.5* couldn't really create working 9502 # shared libraries, regardless of the interface used. 9503 case `$LD -v 2>&1` in 9504 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9505 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9506 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9507 *) 9508 lt_use_gnu_ld_interface=yes 9509 ;; 9510 esac 9511 ;; 9512 *) 9513 lt_use_gnu_ld_interface=yes 9514 ;; 9515 esac 9516 fi 9517 9518 if test "$lt_use_gnu_ld_interface" = yes; then 9519 # If archive_cmds runs LD, not CC, wlarc should be empty 9520 wlarc='${wl}' 9521 9522 # Set some defaults for GNU ld with shared library support. These 9523 # are reset later if shared libraries are not supported. Putting them 9524 # here allows them to be overridden if necessary. 9525 runpath_var=LD_RUN_PATH 9526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9527 export_dynamic_flag_spec='${wl}--export-dynamic' 9528 # ancient GNU ld didn't support --whole-archive et. al. 9529 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9530 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9531 else 9532 whole_archive_flag_spec= 9533 fi 9534 supports_anon_versioning=no 9535 case `$LD -v 2>&1` in 9536 *GNU\ gold*) supports_anon_versioning=yes ;; 9537 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9540 *\ 2.11.*) ;; # other 2.11 versions 9541 *) supports_anon_versioning=yes ;; 9542 esac 9543 9544 # See if GNU ld supports shared libraries. 9545 case $host_os in 9546 aix[3-9]*) 9547 # On AIX/PPC, the GNU linker is very broken 9548 if test "$host_cpu" != ia64; then 9549 ld_shlibs=no 9550 cat <<_LT_EOF 1>&2 9551 9552*** Warning: the GNU linker, at least up to release 2.19, is reported 9553*** to be unable to reliably create shared libraries on AIX. 9554*** Therefore, libtool is disabling shared libraries support. If you 9555*** really care for shared libraries, you may want to install binutils 9556*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9557*** You will then need to restart the configuration process. 9558 9559_LT_EOF 9560 fi 9561 ;; 9562 9563 amigaos*) 9564 case $host_cpu in 9565 powerpc) 9566 # see comment about AmigaOS4 .so support 9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9568 archive_expsym_cmds='' 9569 ;; 9570 m68k) 9571 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)' 9572 hardcode_libdir_flag_spec='-L$libdir' 9573 hardcode_minus_L=yes 9574 ;; 9575 esac 9576 ;; 9577 9578 beos*) 9579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9580 allow_undefined_flag=unsupported 9581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9582 # support --undefined. This deserves some investigation. FIXME 9583 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9584 else 9585 ld_shlibs=no 9586 fi 9587 ;; 9588 9589 cygwin* | mingw* | pw32* | cegcc*) 9590 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9591 # as there is no search path for DLLs. 9592 hardcode_libdir_flag_spec='-L$libdir' 9593 export_dynamic_flag_spec='${wl}--export-all-symbols' 9594 allow_undefined_flag=unsupported 9595 always_export_symbols=no 9596 enable_shared_with_static_runtimes=yes 9597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9598 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9599 9600 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9602 # If the export-symbols file already is a .def file (1st line 9603 # is EXPORTS), use it as is; otherwise, prepend... 9604 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9605 cp $export_symbols $output_objdir/$soname.def; 9606 else 9607 echo EXPORTS > $output_objdir/$soname.def; 9608 cat $export_symbols >> $output_objdir/$soname.def; 9609 fi~ 9610 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9611 else 9612 ld_shlibs=no 9613 fi 9614 ;; 9615 9616 haiku*) 9617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9618 link_all_deplibs=yes 9619 ;; 9620 9621 interix[3-9]*) 9622 hardcode_direct=no 9623 hardcode_shlibpath_var=no 9624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9625 export_dynamic_flag_spec='${wl}-E' 9626 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9627 # Instead, shared libraries are loaded at an image base (0x10000000 by 9628 # default) and relocated if they conflict, which is a slow very memory 9629 # consuming and fragmenting process. To avoid this, we pick a random, 9630 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9631 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9633 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' 9634 ;; 9635 9636 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9637 tmp_diet=no 9638 if test "$host_os" = linux-dietlibc; then 9639 case $cc_basename in 9640 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9641 esac 9642 fi 9643 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9644 && test "$tmp_diet" = no 9645 then 9646 tmp_addflag=' $pic_flag' 9647 tmp_sharedflag='-shared' 9648 case $cc_basename,$host_cpu in 9649 pgcc*) # Portland Group C compiler 9650 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' 9651 tmp_addflag=' $pic_flag' 9652 ;; 9653 pgf77* | pgf90* | pgf95* | pgfortran*) 9654 # Portland Group f77 and f90 compilers 9655 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' 9656 tmp_addflag=' $pic_flag -Mnomain' ;; 9657 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9658 tmp_addflag=' -i_dynamic' ;; 9659 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9660 tmp_addflag=' -i_dynamic -nofor_main' ;; 9661 ifc* | ifort*) # Intel Fortran compiler 9662 tmp_addflag=' -nofor_main' ;; 9663 lf95*) # Lahey Fortran 8.1 9664 whole_archive_flag_spec= 9665 tmp_sharedflag='--shared' ;; 9666 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9667 tmp_sharedflag='-qmkshrobj' 9668 tmp_addflag= ;; 9669 nvcc*) # Cuda Compiler Driver 2.2 9670 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' 9671 compiler_needs_object=yes 9672 ;; 9673 esac 9674 case `$CC -V 2>&1 | sed 5q` in 9675 *Sun\ C*) # Sun C 5.9 9676 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' 9677 compiler_needs_object=yes 9678 tmp_sharedflag='-G' ;; 9679 *Sun\ F*) # Sun Fortran 8.3 9680 tmp_sharedflag='-G' ;; 9681 esac 9682 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9683 9684 if test "x$supports_anon_versioning" = xyes; then 9685 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9687 echo "local: *; };" >> $output_objdir/$libname.ver~ 9688 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9689 fi 9690 9691 case $cc_basename in 9692 xlf* | bgf* | bgxlf* | mpixlf*) 9693 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9694 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9696 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9697 if test "x$supports_anon_versioning" = xyes; then 9698 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9699 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9700 echo "local: *; };" >> $output_objdir/$libname.ver~ 9701 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9702 fi 9703 ;; 9704 esac 9705 else 9706 ld_shlibs=no 9707 fi 9708 ;; 9709 9710 netbsd*) 9711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9712 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9713 wlarc= 9714 else 9715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9717 fi 9718 ;; 9719 9720 solaris*) 9721 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9722 ld_shlibs=no 9723 cat <<_LT_EOF 1>&2 9724 9725*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9726*** create shared libraries on Solaris systems. Therefore, libtool 9727*** is disabling shared libraries support. We urge you to upgrade GNU 9728*** binutils to release 2.9.1 or newer. Another option is to modify 9729*** your PATH or compiler configuration so that the native linker is 9730*** used, and then restart. 9731 9732_LT_EOF 9733 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9734 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9735 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9736 else 9737 ld_shlibs=no 9738 fi 9739 ;; 9740 9741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9742 case `$LD -v 2>&1` in 9743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9744 ld_shlibs=no 9745 cat <<_LT_EOF 1>&2 9746 9747*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9748*** reliably create shared libraries on SCO systems. Therefore, libtool 9749*** is disabling shared libraries support. We urge you to upgrade GNU 9750*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9751*** your PATH or compiler configuration so that the native linker is 9752*** used, and then restart. 9753 9754_LT_EOF 9755 ;; 9756 *) 9757 # For security reasons, it is highly recommended that you always 9758 # use absolute paths for naming shared libraries, and exclude the 9759 # DT_RUNPATH tag from executables and libraries. But doing so 9760 # requires that you compile everything twice, which is a pain. 9761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9765 else 9766 ld_shlibs=no 9767 fi 9768 ;; 9769 esac 9770 ;; 9771 9772 sunos4*) 9773 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9774 wlarc= 9775 hardcode_direct=yes 9776 hardcode_shlibpath_var=no 9777 ;; 9778 9779 *) 9780 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9782 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9783 else 9784 ld_shlibs=no 9785 fi 9786 ;; 9787 esac 9788 9789 if test "$ld_shlibs" = no; then 9790 runpath_var= 9791 hardcode_libdir_flag_spec= 9792 export_dynamic_flag_spec= 9793 whole_archive_flag_spec= 9794 fi 9795 else 9796 # PORTME fill in a description of your system's linker (not GNU ld) 9797 case $host_os in 9798 aix3*) 9799 allow_undefined_flag=unsupported 9800 always_export_symbols=yes 9801 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' 9802 # Note: this linker hardcodes the directories in LIBPATH if there 9803 # are no directories specified by -L. 9804 hardcode_minus_L=yes 9805 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9806 # Neither direct hardcoding nor static linking is supported with a 9807 # broken collect2. 9808 hardcode_direct=unsupported 9809 fi 9810 ;; 9811 9812 aix[4-9]*) 9813 if test "$host_cpu" = ia64; then 9814 # On IA64, the linker does run time linking by default, so we don't 9815 # have to do anything special. 9816 aix_use_runtimelinking=no 9817 exp_sym_flag='-Bexport' 9818 no_entry_flag="" 9819 else 9820 # If we're using GNU nm, then we don't want the "-C" option. 9821 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9822 # Also, AIX nm treats weak defined symbols like other global 9823 # defined symbols, whereas GNU nm marks them as "W". 9824 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9825 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' 9826 else 9827 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9828 fi 9829 aix_use_runtimelinking=no 9830 9831 # Test if we are trying to use run time linking or normal 9832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9833 # need to do runtime linking. 9834 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9835 for ld_flag in $LDFLAGS; do 9836 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9837 aix_use_runtimelinking=yes 9838 break 9839 fi 9840 done 9841 ;; 9842 esac 9843 9844 exp_sym_flag='-bexport' 9845 no_entry_flag='-bnoentry' 9846 fi 9847 9848 # When large executables or shared objects are built, AIX ld can 9849 # have problems creating the table of contents. If linking a library 9850 # or program results in "error TOC overflow" add -mminimal-toc to 9851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9853 9854 archive_cmds='' 9855 hardcode_direct=yes 9856 hardcode_direct_absolute=yes 9857 hardcode_libdir_separator=':' 9858 link_all_deplibs=yes 9859 file_list_spec='${wl}-f,' 9860 9861 if test "$GCC" = yes; then 9862 case $host_os in aix4.[012]|aix4.[012].*) 9863 # We only want to do this on AIX 4.2 and lower, the check 9864 # below for broken collect2 doesn't work under 4.3+ 9865 collect2name=`${CC} -print-prog-name=collect2` 9866 if test -f "$collect2name" && 9867 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9868 then 9869 # We have reworked collect2 9870 : 9871 else 9872 # We have old collect2 9873 hardcode_direct=unsupported 9874 # It fails to find uninstalled libraries when the uninstalled 9875 # path is not listed in the libpath. Setting hardcode_minus_L 9876 # to unsupported forces relinking 9877 hardcode_minus_L=yes 9878 hardcode_libdir_flag_spec='-L$libdir' 9879 hardcode_libdir_separator= 9880 fi 9881 ;; 9882 esac 9883 shared_flag='-shared' 9884 if test "$aix_use_runtimelinking" = yes; then 9885 shared_flag="$shared_flag "'${wl}-G' 9886 fi 9887 else 9888 # not using gcc 9889 if test "$host_cpu" = ia64; then 9890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9891 # chokes on -Wl,-G. The following line is correct: 9892 shared_flag='-G' 9893 else 9894 if test "$aix_use_runtimelinking" = yes; then 9895 shared_flag='${wl}-G' 9896 else 9897 shared_flag='${wl}-bM:SRE' 9898 fi 9899 fi 9900 fi 9901 9902 export_dynamic_flag_spec='${wl}-bexpall' 9903 # It seems that -bexpall does not export symbols beginning with 9904 # underscore (_), so it is better to generate a list of symbols to export. 9905 always_export_symbols=yes 9906 if test "$aix_use_runtimelinking" = yes; then 9907 # Warning - without using the other runtime loading flags (-brtl), 9908 # -berok will link without error, but may produce a broken library. 9909 allow_undefined_flag='-berok' 9910 # Determine the default libpath from the value encoded in an 9911 # empty executable. 9912 if test "${lt_cv_aix_libpath+set}" = set; then 9913 aix_libpath=$lt_cv_aix_libpath 9914else 9915 if ${lt_cv_aix_libpath_+:} false; then : 9916 $as_echo_n "(cached) " >&6 9917else 9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920 9921int 9922main () 9923{ 9924 9925 ; 9926 return 0; 9927} 9928_ACEOF 9929if ac_fn_c_try_link "$LINENO"; then : 9930 9931 lt_aix_libpath_sed=' 9932 /Import File Strings/,/^$/ { 9933 /^0/ { 9934 s/^0 *\([^ ]*\) *$/\1/ 9935 p 9936 } 9937 }' 9938 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9939 # Check for a 64-bit object if we didn't find anything. 9940 if test -z "$lt_cv_aix_libpath_"; then 9941 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9942 fi 9943fi 9944rm -f core conftest.err conftest.$ac_objext \ 9945 conftest$ac_exeext conftest.$ac_ext 9946 if test -z "$lt_cv_aix_libpath_"; then 9947 lt_cv_aix_libpath_="/usr/lib:/lib" 9948 fi 9949 9950fi 9951 9952 aix_libpath=$lt_cv_aix_libpath_ 9953fi 9954 9955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9956 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" 9957 else 9958 if test "$host_cpu" = ia64; then 9959 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9960 allow_undefined_flag="-z nodefs" 9961 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" 9962 else 9963 # Determine the default libpath from the value encoded in an 9964 # empty executable. 9965 if test "${lt_cv_aix_libpath+set}" = set; then 9966 aix_libpath=$lt_cv_aix_libpath 9967else 9968 if ${lt_cv_aix_libpath_+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970else 9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9972/* end confdefs.h. */ 9973 9974int 9975main () 9976{ 9977 9978 ; 9979 return 0; 9980} 9981_ACEOF 9982if ac_fn_c_try_link "$LINENO"; then : 9983 9984 lt_aix_libpath_sed=' 9985 /Import File Strings/,/^$/ { 9986 /^0/ { 9987 s/^0 *\([^ ]*\) *$/\1/ 9988 p 9989 } 9990 }' 9991 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9992 # Check for a 64-bit object if we didn't find anything. 9993 if test -z "$lt_cv_aix_libpath_"; then 9994 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9995 fi 9996fi 9997rm -f core conftest.err conftest.$ac_objext \ 9998 conftest$ac_exeext conftest.$ac_ext 9999 if test -z "$lt_cv_aix_libpath_"; then 10000 lt_cv_aix_libpath_="/usr/lib:/lib" 10001 fi 10002 10003fi 10004 10005 aix_libpath=$lt_cv_aix_libpath_ 10006fi 10007 10008 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10009 # Warning - without using the other run time loading flags, 10010 # -berok will link without error, but may produce a broken library. 10011 no_undefined_flag=' ${wl}-bernotok' 10012 allow_undefined_flag=' ${wl}-berok' 10013 if test "$with_gnu_ld" = yes; then 10014 # We only use this code for GNU lds that support --whole-archive. 10015 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10016 else 10017 # Exported symbols can be pulled into shared objects from archives 10018 whole_archive_flag_spec='$convenience' 10019 fi 10020 archive_cmds_need_lc=yes 10021 # This is similar to how AIX traditionally builds its shared libraries. 10022 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' 10023 fi 10024 fi 10025 ;; 10026 10027 amigaos*) 10028 case $host_cpu in 10029 powerpc) 10030 # see comment about AmigaOS4 .so support 10031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10032 archive_expsym_cmds='' 10033 ;; 10034 m68k) 10035 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)' 10036 hardcode_libdir_flag_spec='-L$libdir' 10037 hardcode_minus_L=yes 10038 ;; 10039 esac 10040 ;; 10041 10042 bsdi[45]*) 10043 export_dynamic_flag_spec=-rdynamic 10044 ;; 10045 10046 cygwin* | mingw* | pw32* | cegcc*) 10047 # When not using gcc, we currently assume that we are using 10048 # Microsoft Visual C++. 10049 # hardcode_libdir_flag_spec is actually meaningless, as there is 10050 # no search path for DLLs. 10051 case $cc_basename in 10052 cl*) 10053 # Native MSVC 10054 hardcode_libdir_flag_spec=' ' 10055 allow_undefined_flag=unsupported 10056 always_export_symbols=yes 10057 file_list_spec='@' 10058 # Tell ltmain to make .lib files, not .a files. 10059 libext=lib 10060 # Tell ltmain to make .dll files, not .so files. 10061 shrext_cmds=".dll" 10062 # FIXME: Setting linknames here is a bad hack. 10063 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10064 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10065 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10066 else 10067 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10068 fi~ 10069 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10070 linknames=' 10071 # The linker will not automatically build a static lib if we build a DLL. 10072 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10073 enable_shared_with_static_runtimes=yes 10074 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10076 # Don't use ranlib 10077 old_postinstall_cmds='chmod 644 $oldlib' 10078 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10079 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10080 case $lt_outputfile in 10081 *.exe|*.EXE) ;; 10082 *) 10083 lt_outputfile="$lt_outputfile.exe" 10084 lt_tool_outputfile="$lt_tool_outputfile.exe" 10085 ;; 10086 esac~ 10087 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10088 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10089 $RM "$lt_outputfile.manifest"; 10090 fi' 10091 ;; 10092 *) 10093 # Assume MSVC wrapper 10094 hardcode_libdir_flag_spec=' ' 10095 allow_undefined_flag=unsupported 10096 # Tell ltmain to make .lib files, not .a files. 10097 libext=lib 10098 # Tell ltmain to make .dll files, not .so files. 10099 shrext_cmds=".dll" 10100 # FIXME: Setting linknames here is a bad hack. 10101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10102 # The linker will automatically build a .lib file if we build a DLL. 10103 old_archive_from_new_cmds='true' 10104 # FIXME: Should let the user specify the lib program. 10105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10106 enable_shared_with_static_runtimes=yes 10107 ;; 10108 esac 10109 ;; 10110 10111 darwin* | rhapsody*) 10112 10113 10114 archive_cmds_need_lc=no 10115 hardcode_direct=no 10116 hardcode_automatic=yes 10117 hardcode_shlibpath_var=unsupported 10118 if test "$lt_cv_ld_force_load" = "yes"; then 10119 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\"`' 10120 10121 else 10122 whole_archive_flag_spec='' 10123 fi 10124 link_all_deplibs=yes 10125 allow_undefined_flag="$_lt_dar_allow_undefined" 10126 case $cc_basename in 10127 ifort*) _lt_dar_can_shared=yes ;; 10128 *) _lt_dar_can_shared=$GCC ;; 10129 esac 10130 if test "$_lt_dar_can_shared" = "yes"; then 10131 output_verbose_link_cmd=func_echo_all 10132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10134 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}" 10135 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}" 10136 10137 else 10138 ld_shlibs=no 10139 fi 10140 10141 ;; 10142 10143 dgux*) 10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10145 hardcode_libdir_flag_spec='-L$libdir' 10146 hardcode_shlibpath_var=no 10147 ;; 10148 10149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10150 # support. Future versions do this automatically, but an explicit c++rt0.o 10151 # does not break anything, and helps significantly (at the cost of a little 10152 # extra space). 10153 freebsd2.2*) 10154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10155 hardcode_libdir_flag_spec='-R$libdir' 10156 hardcode_direct=yes 10157 hardcode_shlibpath_var=no 10158 ;; 10159 10160 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10161 freebsd2.*) 10162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10163 hardcode_direct=yes 10164 hardcode_minus_L=yes 10165 hardcode_shlibpath_var=no 10166 ;; 10167 10168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10169 freebsd* | dragonfly*) 10170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10171 hardcode_libdir_flag_spec='-R$libdir' 10172 hardcode_direct=yes 10173 hardcode_shlibpath_var=no 10174 ;; 10175 10176 hpux9*) 10177 if test "$GCC" = yes; then 10178 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10179 else 10180 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' 10181 fi 10182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10183 hardcode_libdir_separator=: 10184 hardcode_direct=yes 10185 10186 # hardcode_minus_L: Not really in the search PATH, 10187 # but as the default location of the library. 10188 hardcode_minus_L=yes 10189 export_dynamic_flag_spec='${wl}-E' 10190 ;; 10191 10192 hpux10*) 10193 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10194 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10195 else 10196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10197 fi 10198 if test "$with_gnu_ld" = no; then 10199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10200 hardcode_libdir_separator=: 10201 hardcode_direct=yes 10202 hardcode_direct_absolute=yes 10203 export_dynamic_flag_spec='${wl}-E' 10204 # hardcode_minus_L: Not really in the search PATH, 10205 # but as the default location of the library. 10206 hardcode_minus_L=yes 10207 fi 10208 ;; 10209 10210 hpux11*) 10211 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10212 case $host_cpu in 10213 hppa*64*) 10214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10215 ;; 10216 ia64*) 10217 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10218 ;; 10219 *) 10220 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10221 ;; 10222 esac 10223 else 10224 case $host_cpu in 10225 hppa*64*) 10226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10227 ;; 10228 ia64*) 10229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10230 ;; 10231 *) 10232 10233 # Older versions of the 11.00 compiler do not understand -b yet 10234 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10236$as_echo_n "checking if $CC understands -b... " >&6; } 10237if ${lt_cv_prog_compiler__b+:} false; then : 10238 $as_echo_n "(cached) " >&6 10239else 10240 lt_cv_prog_compiler__b=no 10241 save_LDFLAGS="$LDFLAGS" 10242 LDFLAGS="$LDFLAGS -b" 10243 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10245 # The linker can only warn and ignore the option if not recognized 10246 # So say no if there are warnings 10247 if test -s conftest.err; then 10248 # Append any errors to the config.log. 10249 cat conftest.err 1>&5 10250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10252 if diff conftest.exp conftest.er2 >/dev/null; then 10253 lt_cv_prog_compiler__b=yes 10254 fi 10255 else 10256 lt_cv_prog_compiler__b=yes 10257 fi 10258 fi 10259 $RM -r conftest* 10260 LDFLAGS="$save_LDFLAGS" 10261 10262fi 10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10264$as_echo "$lt_cv_prog_compiler__b" >&6; } 10265 10266if test x"$lt_cv_prog_compiler__b" = xyes; then 10267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10268else 10269 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10270fi 10271 10272 ;; 10273 esac 10274 fi 10275 if test "$with_gnu_ld" = no; then 10276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10277 hardcode_libdir_separator=: 10278 10279 case $host_cpu in 10280 hppa*64*|ia64*) 10281 hardcode_direct=no 10282 hardcode_shlibpath_var=no 10283 ;; 10284 *) 10285 hardcode_direct=yes 10286 hardcode_direct_absolute=yes 10287 export_dynamic_flag_spec='${wl}-E' 10288 10289 # hardcode_minus_L: Not really in the search PATH, 10290 # but as the default location of the library. 10291 hardcode_minus_L=yes 10292 ;; 10293 esac 10294 fi 10295 ;; 10296 10297 irix5* | irix6* | nonstopux*) 10298 if test "$GCC" = yes; then 10299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10300 # Try to use the -exported_symbol ld option, if it does not 10301 # work, assume that -exports_file does not work either and 10302 # implicitly export all symbols. 10303 # This should be the same for all languages, so no per-tag cache variable. 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10305$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10306if ${lt_cv_irix_exported_symbol+:} false; then : 10307 $as_echo_n "(cached) " >&6 10308else 10309 save_LDFLAGS="$LDFLAGS" 10310 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312/* end confdefs.h. */ 10313int foo (void) { return 0; } 10314_ACEOF 10315if ac_fn_c_try_link "$LINENO"; then : 10316 lt_cv_irix_exported_symbol=yes 10317else 10318 lt_cv_irix_exported_symbol=no 10319fi 10320rm -f core conftest.err conftest.$ac_objext \ 10321 conftest$ac_exeext conftest.$ac_ext 10322 LDFLAGS="$save_LDFLAGS" 10323fi 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10325$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10326 if test "$lt_cv_irix_exported_symbol" = yes; then 10327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10328 fi 10329 else 10330 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' 10331 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' 10332 fi 10333 archive_cmds_need_lc='no' 10334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10335 hardcode_libdir_separator=: 10336 inherit_rpath=yes 10337 link_all_deplibs=yes 10338 ;; 10339 10340 netbsd*) 10341 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10343 else 10344 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10345 fi 10346 hardcode_libdir_flag_spec='-R$libdir' 10347 hardcode_direct=yes 10348 hardcode_shlibpath_var=no 10349 ;; 10350 10351 newsos6) 10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10353 hardcode_direct=yes 10354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10355 hardcode_libdir_separator=: 10356 hardcode_shlibpath_var=no 10357 ;; 10358 10359 *nto* | *qnx*) 10360 ;; 10361 10362 openbsd*) 10363 if test -f /usr/libexec/ld.so; then 10364 hardcode_direct=yes 10365 hardcode_shlibpath_var=no 10366 hardcode_direct_absolute=yes 10367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10368 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10369 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10371 export_dynamic_flag_spec='${wl}-E' 10372 else 10373 case $host_os in 10374 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10376 hardcode_libdir_flag_spec='-R$libdir' 10377 ;; 10378 *) 10379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10381 ;; 10382 esac 10383 fi 10384 else 10385 ld_shlibs=no 10386 fi 10387 ;; 10388 10389 os2*) 10390 hardcode_libdir_flag_spec='-L$libdir' 10391 hardcode_minus_L=yes 10392 allow_undefined_flag=unsupported 10393 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' 10394 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10395 ;; 10396 10397 osf3*) 10398 if test "$GCC" = yes; then 10399 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10400 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' 10401 else 10402 allow_undefined_flag=' -expect_unresolved \*' 10403 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' 10404 fi 10405 archive_cmds_need_lc='no' 10406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10407 hardcode_libdir_separator=: 10408 ;; 10409 10410 osf4* | osf5*) # as osf3* with the addition of -msym flag 10411 if test "$GCC" = yes; then 10412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10413 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10415 else 10416 allow_undefined_flag=' -expect_unresolved \*' 10417 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' 10418 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~ 10419 $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' 10420 10421 # Both c and cxx compiler support -rpath directly 10422 hardcode_libdir_flag_spec='-rpath $libdir' 10423 fi 10424 archive_cmds_need_lc='no' 10425 hardcode_libdir_separator=: 10426 ;; 10427 10428 solaris*) 10429 no_undefined_flag=' -z defs' 10430 if test "$GCC" = yes; then 10431 wlarc='${wl}' 10432 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10433 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10434 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10435 else 10436 case `$CC -V 2>&1` in 10437 *"Compilers 5.0"*) 10438 wlarc='' 10439 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10442 ;; 10443 *) 10444 wlarc='${wl}' 10445 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10447 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10448 ;; 10449 esac 10450 fi 10451 hardcode_libdir_flag_spec='-R$libdir' 10452 hardcode_shlibpath_var=no 10453 case $host_os in 10454 solaris2.[0-5] | solaris2.[0-5].*) ;; 10455 *) 10456 # The compiler driver will combine and reorder linker options, 10457 # but understands `-z linker_flag'. GCC discards it without `$wl', 10458 # but is careful enough not to reorder. 10459 # Supported since Solaris 2.6 (maybe 2.5.1?) 10460 if test "$GCC" = yes; then 10461 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10462 else 10463 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10464 fi 10465 ;; 10466 esac 10467 link_all_deplibs=yes 10468 ;; 10469 10470 sunos4*) 10471 if test "x$host_vendor" = xsequent; then 10472 # Use $CC to link under sequent, because it throws in some extra .o 10473 # files that make .init and .fini sections work. 10474 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10475 else 10476 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10477 fi 10478 hardcode_libdir_flag_spec='-L$libdir' 10479 hardcode_direct=yes 10480 hardcode_minus_L=yes 10481 hardcode_shlibpath_var=no 10482 ;; 10483 10484 sysv4) 10485 case $host_vendor in 10486 sni) 10487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10488 hardcode_direct=yes # is this really true??? 10489 ;; 10490 siemens) 10491 ## LD is ld it makes a PLAMLIB 10492 ## CC just makes a GrossModule. 10493 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10494 reload_cmds='$CC -r -o $output$reload_objs' 10495 hardcode_direct=no 10496 ;; 10497 motorola) 10498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10499 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10500 ;; 10501 esac 10502 runpath_var='LD_RUN_PATH' 10503 hardcode_shlibpath_var=no 10504 ;; 10505 10506 sysv4.3*) 10507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10508 hardcode_shlibpath_var=no 10509 export_dynamic_flag_spec='-Bexport' 10510 ;; 10511 10512 sysv4*MP*) 10513 if test -d /usr/nec; then 10514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10515 hardcode_shlibpath_var=no 10516 runpath_var=LD_RUN_PATH 10517 hardcode_runpath_var=yes 10518 ld_shlibs=yes 10519 fi 10520 ;; 10521 10522 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10523 no_undefined_flag='${wl}-z,text' 10524 archive_cmds_need_lc=no 10525 hardcode_shlibpath_var=no 10526 runpath_var='LD_RUN_PATH' 10527 10528 if test "$GCC" = yes; then 10529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10531 else 10532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10534 fi 10535 ;; 10536 10537 sysv5* | sco3.2v5* | sco5v6*) 10538 # Note: We can NOT use -z defs as we might desire, because we do not 10539 # link with -lc, and that would cause any symbols used from libc to 10540 # always be unresolved, which means just about no library would 10541 # ever link correctly. If we're not using GNU ld we use -z text 10542 # though, which does catch some bad symbols but isn't as heavy-handed 10543 # as -z defs. 10544 no_undefined_flag='${wl}-z,text' 10545 allow_undefined_flag='${wl}-z,nodefs' 10546 archive_cmds_need_lc=no 10547 hardcode_shlibpath_var=no 10548 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10549 hardcode_libdir_separator=':' 10550 link_all_deplibs=yes 10551 export_dynamic_flag_spec='${wl}-Bexport' 10552 runpath_var='LD_RUN_PATH' 10553 10554 if test "$GCC" = yes; then 10555 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10556 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10557 else 10558 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10559 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10560 fi 10561 ;; 10562 10563 uts4*) 10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10565 hardcode_libdir_flag_spec='-L$libdir' 10566 hardcode_shlibpath_var=no 10567 ;; 10568 10569 *) 10570 ld_shlibs=no 10571 ;; 10572 esac 10573 10574 if test x$host_vendor = xsni; then 10575 case $host in 10576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10577 export_dynamic_flag_spec='${wl}-Blargedynsym' 10578 ;; 10579 esac 10580 fi 10581 fi 10582 10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10584$as_echo "$ld_shlibs" >&6; } 10585test "$ld_shlibs" = no && can_build_shared=no 10586 10587with_gnu_ld=$with_gnu_ld 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603# 10604# Do we need to explicitly link libc? 10605# 10606case "x$archive_cmds_need_lc" in 10607x|xyes) 10608 # Assume -lc should be added 10609 archive_cmds_need_lc=yes 10610 10611 if test "$enable_shared" = yes && test "$GCC" = yes; then 10612 case $archive_cmds in 10613 *'~'*) 10614 # FIXME: we may have to deal with multi-command sequences. 10615 ;; 10616 '$CC '*) 10617 # Test whether the compiler implicitly links with -lc since on some 10618 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10619 # to ld, don't add -lc before -lgcc. 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10621$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10622if ${lt_cv_archive_cmds_need_lc+:} false; then : 10623 $as_echo_n "(cached) " >&6 10624else 10625 $RM conftest* 10626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10627 10628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10629 (eval $ac_compile) 2>&5 10630 ac_status=$? 10631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10632 test $ac_status = 0; } 2>conftest.err; then 10633 soname=conftest 10634 lib=conftest 10635 libobjs=conftest.$ac_objext 10636 deplibs= 10637 wl=$lt_prog_compiler_wl 10638 pic_flag=$lt_prog_compiler_pic 10639 compiler_flags=-v 10640 linker_flags=-v 10641 verstring= 10642 output_objdir=. 10643 libname=conftest 10644 lt_save_allow_undefined_flag=$allow_undefined_flag 10645 allow_undefined_flag= 10646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10647 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10648 ac_status=$? 10649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10650 test $ac_status = 0; } 10651 then 10652 lt_cv_archive_cmds_need_lc=no 10653 else 10654 lt_cv_archive_cmds_need_lc=yes 10655 fi 10656 allow_undefined_flag=$lt_save_allow_undefined_flag 10657 else 10658 cat conftest.err 1>&5 10659 fi 10660 $RM conftest* 10661 10662fi 10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10664$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10665 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10666 ;; 10667 esac 10668 fi 10669 ;; 10670esac 10671 10672 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 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10824$as_echo_n "checking dynamic linker characteristics... " >&6; } 10825 10826if test "$GCC" = yes; then 10827 case $host_os in 10828 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10829 *) lt_awk_arg="/^libraries:/" ;; 10830 esac 10831 case $host_os in 10832 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10833 *) lt_sed_strip_eq="s,=/,/,g" ;; 10834 esac 10835 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10836 case $lt_search_path_spec in 10837 *\;*) 10838 # if the path contains ";" then we assume it to be the separator 10839 # otherwise default to the standard path separator (i.e. ":") - it is 10840 # assumed that no part of a normal pathname contains ";" but that should 10841 # okay in the real world where ";" in dirpaths is itself problematic. 10842 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10843 ;; 10844 *) 10845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10846 ;; 10847 esac 10848 # Ok, now we have the path, separated by spaces, we can step through it 10849 # and add multilib dir if necessary. 10850 lt_tmp_lt_search_path_spec= 10851 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10852 for lt_sys_path in $lt_search_path_spec; do 10853 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10854 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10855 else 10856 test -d "$lt_sys_path" && \ 10857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10858 fi 10859 done 10860 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10861BEGIN {RS=" "; FS="/|\n";} { 10862 lt_foo=""; 10863 lt_count=0; 10864 for (lt_i = NF; lt_i > 0; lt_i--) { 10865 if ($lt_i != "" && $lt_i != ".") { 10866 if ($lt_i == "..") { 10867 lt_count++; 10868 } else { 10869 if (lt_count == 0) { 10870 lt_foo="/" $lt_i lt_foo; 10871 } else { 10872 lt_count--; 10873 } 10874 } 10875 } 10876 } 10877 if (lt_foo != "") { lt_freq[lt_foo]++; } 10878 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10879}'` 10880 # AWK program above erroneously prepends '/' to C:/dos/paths 10881 # for these hosts. 10882 case $host_os in 10883 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10884 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10885 esac 10886 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10887else 10888 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10889fi 10890library_names_spec= 10891libname_spec='lib$name' 10892soname_spec= 10893shrext_cmds=".so" 10894postinstall_cmds= 10895postuninstall_cmds= 10896finish_cmds= 10897finish_eval= 10898shlibpath_var= 10899shlibpath_overrides_runpath=unknown 10900version_type=none 10901dynamic_linker="$host_os ld.so" 10902sys_lib_dlsearch_path_spec="/lib /usr/lib" 10903need_lib_prefix=unknown 10904hardcode_into_libs=no 10905 10906# when you set need_version to no, make sure it does not cause -set_version 10907# flags to be left without arguments 10908need_version=unknown 10909 10910case $host_os in 10911aix3*) 10912 version_type=linux # correct to gnu/linux during the next big refactor 10913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10914 shlibpath_var=LIBPATH 10915 10916 # AIX 3 has no versioning support, so we append a major version to the name. 10917 soname_spec='${libname}${release}${shared_ext}$major' 10918 ;; 10919 10920aix[4-9]*) 10921 version_type=linux # correct to gnu/linux during the next big refactor 10922 need_lib_prefix=no 10923 need_version=no 10924 hardcode_into_libs=yes 10925 if test "$host_cpu" = ia64; then 10926 # AIX 5 supports IA64 10927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10928 shlibpath_var=LD_LIBRARY_PATH 10929 else 10930 # With GCC up to 2.95.x, collect2 would create an import file 10931 # for dependence libraries. The import file would start with 10932 # the line `#! .'. This would cause the generated library to 10933 # depend on `.', always an invalid library. This was fixed in 10934 # development snapshots of GCC prior to 3.0. 10935 case $host_os in 10936 aix4 | aix4.[01] | aix4.[01].*) 10937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10938 echo ' yes ' 10939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10940 : 10941 else 10942 can_build_shared=no 10943 fi 10944 ;; 10945 esac 10946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10947 # soname into executable. Probably we can add versioning support to 10948 # collect2, so additional links can be useful in future. 10949 if test "$aix_use_runtimelinking" = yes; then 10950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10951 # instead of lib<name>.a to let people know that these are not 10952 # typical AIX shared libraries. 10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10954 else 10955 # We preserve .a as extension for shared libraries through AIX4.2 10956 # and later when we are not doing run time linking. 10957 library_names_spec='${libname}${release}.a $libname.a' 10958 soname_spec='${libname}${release}${shared_ext}$major' 10959 fi 10960 shlibpath_var=LIBPATH 10961 fi 10962 ;; 10963 10964amigaos*) 10965 case $host_cpu in 10966 powerpc) 10967 # Since July 2007 AmigaOS4 officially supports .so libraries. 10968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10970 ;; 10971 m68k) 10972 library_names_spec='$libname.ixlibrary $libname.a' 10973 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10974 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' 10975 ;; 10976 esac 10977 ;; 10978 10979beos*) 10980 library_names_spec='${libname}${shared_ext}' 10981 dynamic_linker="$host_os ld.so" 10982 shlibpath_var=LIBRARY_PATH 10983 ;; 10984 10985bsdi[45]*) 10986 version_type=linux # correct to gnu/linux during the next big refactor 10987 need_version=no 10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10989 soname_spec='${libname}${release}${shared_ext}$major' 10990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10991 shlibpath_var=LD_LIBRARY_PATH 10992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10994 # the default ld.so.conf also contains /usr/contrib/lib and 10995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10996 # libtool to hard-code these into programs 10997 ;; 10998 10999cygwin* | mingw* | pw32* | cegcc*) 11000 version_type=windows 11001 shrext_cmds=".dll" 11002 need_version=no 11003 need_lib_prefix=no 11004 11005 case $GCC,$cc_basename in 11006 yes,*) 11007 # gcc 11008 library_names_spec='$libname.dll.a' 11009 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11010 postinstall_cmds='base_file=`basename \${file}`~ 11011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11012 dldir=$destdir/`dirname \$dlpath`~ 11013 test -d \$dldir || mkdir -p \$dldir~ 11014 $install_prog $dir/$dlname \$dldir/$dlname~ 11015 chmod a+x \$dldir/$dlname~ 11016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11018 fi' 11019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11020 dlpath=$dir/\$dldll~ 11021 $RM \$dlpath' 11022 shlibpath_overrides_runpath=yes 11023 11024 case $host_os in 11025 cygwin*) 11026 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11028 11029 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11030 ;; 11031 mingw* | cegcc*) 11032 # MinGW DLLs use traditional 'lib' prefix 11033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11034 ;; 11035 pw32*) 11036 # pw32 DLLs use 'pw' prefix rather than 'lib' 11037 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11038 ;; 11039 esac 11040 dynamic_linker='Win32 ld.exe' 11041 ;; 11042 11043 *,cl*) 11044 # Native MSVC 11045 libname_spec='$name' 11046 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11047 library_names_spec='${libname}.dll.lib' 11048 11049 case $build_os in 11050 mingw*) 11051 sys_lib_search_path_spec= 11052 lt_save_ifs=$IFS 11053 IFS=';' 11054 for lt_path in $LIB 11055 do 11056 IFS=$lt_save_ifs 11057 # Let DOS variable expansion print the short 8.3 style file name. 11058 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11059 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11060 done 11061 IFS=$lt_save_ifs 11062 # Convert to MSYS style. 11063 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11064 ;; 11065 cygwin*) 11066 # Convert to unix form, then to dos form, then back to unix form 11067 # but this time dos style (no spaces!) so that the unix form looks 11068 # like /cygdrive/c/PROGRA~1:/cygdr... 11069 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11070 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11071 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11072 ;; 11073 *) 11074 sys_lib_search_path_spec="$LIB" 11075 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11076 # It is most probably a Windows format PATH. 11077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11078 else 11079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11080 fi 11081 # FIXME: find the short name or the path components, as spaces are 11082 # common. (e.g. "Program Files" -> "PROGRA~1") 11083 ;; 11084 esac 11085 11086 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11087 postinstall_cmds='base_file=`basename \${file}`~ 11088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11089 dldir=$destdir/`dirname \$dlpath`~ 11090 test -d \$dldir || mkdir -p \$dldir~ 11091 $install_prog $dir/$dlname \$dldir/$dlname' 11092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11093 dlpath=$dir/\$dldll~ 11094 $RM \$dlpath' 11095 shlibpath_overrides_runpath=yes 11096 dynamic_linker='Win32 link.exe' 11097 ;; 11098 11099 *) 11100 # Assume MSVC wrapper 11101 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11102 dynamic_linker='Win32 ld.exe' 11103 ;; 11104 esac 11105 # FIXME: first we should search . and the directory the executable is in 11106 shlibpath_var=PATH 11107 ;; 11108 11109darwin* | rhapsody*) 11110 dynamic_linker="$host_os dyld" 11111 version_type=darwin 11112 need_lib_prefix=no 11113 need_version=no 11114 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11115 soname_spec='${libname}${release}${major}$shared_ext' 11116 shlibpath_overrides_runpath=yes 11117 shlibpath_var=DYLD_LIBRARY_PATH 11118 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11119 11120 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11122 ;; 11123 11124dgux*) 11125 version_type=linux # correct to gnu/linux during the next big refactor 11126 need_lib_prefix=no 11127 need_version=no 11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11129 soname_spec='${libname}${release}${shared_ext}$major' 11130 shlibpath_var=LD_LIBRARY_PATH 11131 ;; 11132 11133freebsd* | dragonfly*) 11134 # DragonFly does not have aout. When/if they implement a new 11135 # versioning mechanism, adjust this. 11136 if test -x /usr/bin/objformat; then 11137 objformat=`/usr/bin/objformat` 11138 else 11139 case $host_os in 11140 freebsd[23].*) objformat=aout ;; 11141 *) objformat=elf ;; 11142 esac 11143 fi 11144 version_type=freebsd-$objformat 11145 case $version_type in 11146 freebsd-elf*) 11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11148 need_version=no 11149 need_lib_prefix=no 11150 ;; 11151 freebsd-*) 11152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11153 need_version=yes 11154 ;; 11155 esac 11156 shlibpath_var=LD_LIBRARY_PATH 11157 case $host_os in 11158 freebsd2.*) 11159 shlibpath_overrides_runpath=yes 11160 ;; 11161 freebsd3.[01]* | freebsdelf3.[01]*) 11162 shlibpath_overrides_runpath=yes 11163 hardcode_into_libs=yes 11164 ;; 11165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11167 shlibpath_overrides_runpath=no 11168 hardcode_into_libs=yes 11169 ;; 11170 *) # from 4.6 on, and DragonFly 11171 shlibpath_overrides_runpath=yes 11172 hardcode_into_libs=yes 11173 ;; 11174 esac 11175 ;; 11176 11177gnu*) 11178 version_type=linux # correct to gnu/linux during the next big refactor 11179 need_lib_prefix=no 11180 need_version=no 11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11182 soname_spec='${libname}${release}${shared_ext}$major' 11183 shlibpath_var=LD_LIBRARY_PATH 11184 shlibpath_overrides_runpath=no 11185 hardcode_into_libs=yes 11186 ;; 11187 11188haiku*) 11189 version_type=linux # correct to gnu/linux during the next big refactor 11190 need_lib_prefix=no 11191 need_version=no 11192 dynamic_linker="$host_os runtime_loader" 11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11194 soname_spec='${libname}${release}${shared_ext}$major' 11195 shlibpath_var=LIBRARY_PATH 11196 shlibpath_overrides_runpath=yes 11197 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11198 hardcode_into_libs=yes 11199 ;; 11200 11201hpux9* | hpux10* | hpux11*) 11202 # Give a soname corresponding to the major version so that dld.sl refuses to 11203 # link against other versions. 11204 version_type=sunos 11205 need_lib_prefix=no 11206 need_version=no 11207 case $host_cpu in 11208 ia64*) 11209 shrext_cmds='.so' 11210 hardcode_into_libs=yes 11211 dynamic_linker="$host_os dld.so" 11212 shlibpath_var=LD_LIBRARY_PATH 11213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11215 soname_spec='${libname}${release}${shared_ext}$major' 11216 if test "X$HPUX_IA64_MODE" = X32; then 11217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11218 else 11219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11220 fi 11221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11222 ;; 11223 hppa*64*) 11224 shrext_cmds='.sl' 11225 hardcode_into_libs=yes 11226 dynamic_linker="$host_os dld.sl" 11227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11230 soname_spec='${libname}${release}${shared_ext}$major' 11231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11233 ;; 11234 *) 11235 shrext_cmds='.sl' 11236 dynamic_linker="$host_os dld.sl" 11237 shlibpath_var=SHLIB_PATH 11238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11240 soname_spec='${libname}${release}${shared_ext}$major' 11241 ;; 11242 esac 11243 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11244 postinstall_cmds='chmod 555 $lib' 11245 # or fails outright, so override atomically: 11246 install_override_mode=555 11247 ;; 11248 11249interix[3-9]*) 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 need_lib_prefix=no 11252 need_version=no 11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11254 soname_spec='${libname}${release}${shared_ext}$major' 11255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11256 shlibpath_var=LD_LIBRARY_PATH 11257 shlibpath_overrides_runpath=no 11258 hardcode_into_libs=yes 11259 ;; 11260 11261irix5* | irix6* | nonstopux*) 11262 case $host_os in 11263 nonstopux*) version_type=nonstopux ;; 11264 *) 11265 if test "$lt_cv_prog_gnu_ld" = yes; then 11266 version_type=linux # correct to gnu/linux during the next big refactor 11267 else 11268 version_type=irix 11269 fi ;; 11270 esac 11271 need_lib_prefix=no 11272 need_version=no 11273 soname_spec='${libname}${release}${shared_ext}$major' 11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11275 case $host_os in 11276 irix5* | nonstopux*) 11277 libsuff= shlibsuff= 11278 ;; 11279 *) 11280 case $LD in # libtool.m4 will add one of these switches to LD 11281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11282 libsuff= shlibsuff= libmagic=32-bit;; 11283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11284 libsuff=32 shlibsuff=N32 libmagic=N32;; 11285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11286 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11287 *) libsuff= shlibsuff= libmagic=never-match;; 11288 esac 11289 ;; 11290 esac 11291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11292 shlibpath_overrides_runpath=no 11293 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11294 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11295 hardcode_into_libs=yes 11296 ;; 11297 11298# No shared lib support for Linux oldld, aout, or coff. 11299linux*oldld* | linux*aout* | linux*coff*) 11300 dynamic_linker=no 11301 ;; 11302 11303# This must be glibc/ELF. 11304linux* | k*bsd*-gnu | kopensolaris*-gnu) 11305 version_type=linux # correct to gnu/linux during the next big refactor 11306 need_lib_prefix=no 11307 need_version=no 11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11309 soname_spec='${libname}${release}${shared_ext}$major' 11310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11311 shlibpath_var=LD_LIBRARY_PATH 11312 shlibpath_overrides_runpath=no 11313 11314 # Some binutils ld are patched to set DT_RUNPATH 11315 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11316 $as_echo_n "(cached) " >&6 11317else 11318 lt_cv_shlibpath_overrides_runpath=no 11319 save_LDFLAGS=$LDFLAGS 11320 save_libdir=$libdir 11321 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11322 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11324/* end confdefs.h. */ 11325 11326int 11327main () 11328{ 11329 11330 ; 11331 return 0; 11332} 11333_ACEOF 11334if ac_fn_c_try_link "$LINENO"; then : 11335 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11336 lt_cv_shlibpath_overrides_runpath=yes 11337fi 11338fi 11339rm -f core conftest.err conftest.$ac_objext \ 11340 conftest$ac_exeext conftest.$ac_ext 11341 LDFLAGS=$save_LDFLAGS 11342 libdir=$save_libdir 11343 11344fi 11345 11346 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11347 11348 # This implies no fast_install, which is unacceptable. 11349 # Some rework will be needed to allow for fast_install 11350 # before this can be enabled. 11351 hardcode_into_libs=yes 11352 11353 # Add ABI-specific directories to the system library path. 11354 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11355 11356 # Append ld.so.conf contents to the search path 11357 if test -f /etc/ld.so.conf; then 11358 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' ' '` 11359 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11360 11361 fi 11362 11363 # We used to test for /lib/ld.so.1 and disable shared libraries on 11364 # powerpc, because MkLinux only supported shared libraries with the 11365 # GNU dynamic linker. Since this was broken with cross compilers, 11366 # most powerpc-linux boxes support dynamic linking these days and 11367 # people can always --disable-shared, the test was removed, and we 11368 # assume the GNU/Linux dynamic linker is in use. 11369 dynamic_linker='GNU/Linux ld.so' 11370 ;; 11371 11372netbsd*) 11373 version_type=sunos 11374 need_lib_prefix=no 11375 need_version=no 11376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11379 dynamic_linker='NetBSD (a.out) ld.so' 11380 else 11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11382 soname_spec='${libname}${release}${shared_ext}$major' 11383 dynamic_linker='NetBSD ld.elf_so' 11384 fi 11385 shlibpath_var=LD_LIBRARY_PATH 11386 shlibpath_overrides_runpath=yes 11387 hardcode_into_libs=yes 11388 ;; 11389 11390newsos6) 11391 version_type=linux # correct to gnu/linux during the next big refactor 11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11393 shlibpath_var=LD_LIBRARY_PATH 11394 shlibpath_overrides_runpath=yes 11395 ;; 11396 11397*nto* | *qnx*) 11398 version_type=qnx 11399 need_lib_prefix=no 11400 need_version=no 11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11402 soname_spec='${libname}${release}${shared_ext}$major' 11403 shlibpath_var=LD_LIBRARY_PATH 11404 shlibpath_overrides_runpath=no 11405 hardcode_into_libs=yes 11406 dynamic_linker='ldqnx.so' 11407 ;; 11408 11409openbsd*) 11410 version_type=sunos 11411 sys_lib_dlsearch_path_spec="/usr/lib" 11412 need_lib_prefix=no 11413 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11414 case $host_os in 11415 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11416 *) need_version=no ;; 11417 esac 11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11420 shlibpath_var=LD_LIBRARY_PATH 11421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11422 case $host_os in 11423 openbsd2.[89] | openbsd2.[89].*) 11424 shlibpath_overrides_runpath=no 11425 ;; 11426 *) 11427 shlibpath_overrides_runpath=yes 11428 ;; 11429 esac 11430 else 11431 shlibpath_overrides_runpath=yes 11432 fi 11433 ;; 11434 11435os2*) 11436 libname_spec='$name' 11437 shrext_cmds=".dll" 11438 need_lib_prefix=no 11439 library_names_spec='$libname${shared_ext} $libname.a' 11440 dynamic_linker='OS/2 ld.exe' 11441 shlibpath_var=LIBPATH 11442 ;; 11443 11444osf3* | osf4* | osf5*) 11445 version_type=osf 11446 need_lib_prefix=no 11447 need_version=no 11448 soname_spec='${libname}${release}${shared_ext}$major' 11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11450 shlibpath_var=LD_LIBRARY_PATH 11451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11452 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11453 ;; 11454 11455rdos*) 11456 dynamic_linker=no 11457 ;; 11458 11459solaris*) 11460 version_type=linux # correct to gnu/linux during the next big refactor 11461 need_lib_prefix=no 11462 need_version=no 11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11464 soname_spec='${libname}${release}${shared_ext}$major' 11465 shlibpath_var=LD_LIBRARY_PATH 11466 shlibpath_overrides_runpath=yes 11467 hardcode_into_libs=yes 11468 # ldd complains unless libraries are executable 11469 postinstall_cmds='chmod +x $lib' 11470 ;; 11471 11472sunos4*) 11473 version_type=sunos 11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11476 shlibpath_var=LD_LIBRARY_PATH 11477 shlibpath_overrides_runpath=yes 11478 if test "$with_gnu_ld" = yes; then 11479 need_lib_prefix=no 11480 fi 11481 need_version=yes 11482 ;; 11483 11484sysv4 | sysv4.3*) 11485 version_type=linux # correct to gnu/linux during the next big refactor 11486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11487 soname_spec='${libname}${release}${shared_ext}$major' 11488 shlibpath_var=LD_LIBRARY_PATH 11489 case $host_vendor in 11490 sni) 11491 shlibpath_overrides_runpath=no 11492 need_lib_prefix=no 11493 runpath_var=LD_RUN_PATH 11494 ;; 11495 siemens) 11496 need_lib_prefix=no 11497 ;; 11498 motorola) 11499 need_lib_prefix=no 11500 need_version=no 11501 shlibpath_overrides_runpath=no 11502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11503 ;; 11504 esac 11505 ;; 11506 11507sysv4*MP*) 11508 if test -d /usr/nec ;then 11509 version_type=linux # correct to gnu/linux during the next big refactor 11510 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11511 soname_spec='$libname${shared_ext}.$major' 11512 shlibpath_var=LD_LIBRARY_PATH 11513 fi 11514 ;; 11515 11516sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11517 version_type=freebsd-elf 11518 need_lib_prefix=no 11519 need_version=no 11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11521 soname_spec='${libname}${release}${shared_ext}$major' 11522 shlibpath_var=LD_LIBRARY_PATH 11523 shlibpath_overrides_runpath=yes 11524 hardcode_into_libs=yes 11525 if test "$with_gnu_ld" = yes; then 11526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11527 else 11528 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11529 case $host_os in 11530 sco3.2v5*) 11531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11532 ;; 11533 esac 11534 fi 11535 sys_lib_dlsearch_path_spec='/usr/lib' 11536 ;; 11537 11538tpf*) 11539 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11540 version_type=linux # correct to gnu/linux during the next big refactor 11541 need_lib_prefix=no 11542 need_version=no 11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11544 shlibpath_var=LD_LIBRARY_PATH 11545 shlibpath_overrides_runpath=no 11546 hardcode_into_libs=yes 11547 ;; 11548 11549uts4*) 11550 version_type=linux # correct to gnu/linux during the next big refactor 11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11552 soname_spec='${libname}${release}${shared_ext}$major' 11553 shlibpath_var=LD_LIBRARY_PATH 11554 ;; 11555 11556*) 11557 dynamic_linker=no 11558 ;; 11559esac 11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11561$as_echo "$dynamic_linker" >&6; } 11562test "$dynamic_linker" = no && can_build_shared=no 11563 11564variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11565if test "$GCC" = yes; then 11566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11567fi 11568 11569if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11570 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11571fi 11572if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11573 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11574fi 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11668$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11669hardcode_action= 11670if test -n "$hardcode_libdir_flag_spec" || 11671 test -n "$runpath_var" || 11672 test "X$hardcode_automatic" = "Xyes" ; then 11673 11674 # We can hardcode non-existent directories. 11675 if test "$hardcode_direct" != no && 11676 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11677 # have to relink, otherwise we might link with an installed library 11678 # when we should be linking with a yet-to-be-installed one 11679 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11680 test "$hardcode_minus_L" != no; then 11681 # Linking always hardcodes the temporary library directory. 11682 hardcode_action=relink 11683 else 11684 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11685 hardcode_action=immediate 11686 fi 11687else 11688 # We cannot hardcode anything, or else we can only hardcode existing 11689 # directories. 11690 hardcode_action=unsupported 11691fi 11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11693$as_echo "$hardcode_action" >&6; } 11694 11695if test "$hardcode_action" = relink || 11696 test "$inherit_rpath" = yes; then 11697 # Fast installation is not supported 11698 enable_fast_install=no 11699elif test "$shlibpath_overrides_runpath" = yes || 11700 test "$enable_shared" = no; then 11701 # Fast installation is not necessary 11702 enable_fast_install=needless 11703fi 11704 11705 11706 11707 11708 11709 11710 if test "x$enable_dlopen" != xyes; then 11711 enable_dlopen=unknown 11712 enable_dlopen_self=unknown 11713 enable_dlopen_self_static=unknown 11714else 11715 lt_cv_dlopen=no 11716 lt_cv_dlopen_libs= 11717 11718 case $host_os in 11719 beos*) 11720 lt_cv_dlopen="load_add_on" 11721 lt_cv_dlopen_libs= 11722 lt_cv_dlopen_self=yes 11723 ;; 11724 11725 mingw* | pw32* | cegcc*) 11726 lt_cv_dlopen="LoadLibrary" 11727 lt_cv_dlopen_libs= 11728 ;; 11729 11730 cygwin*) 11731 lt_cv_dlopen="dlopen" 11732 lt_cv_dlopen_libs= 11733 ;; 11734 11735 darwin*) 11736 # if libdl is installed we need to link against it 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11738$as_echo_n "checking for dlopen in -ldl... " >&6; } 11739if ${ac_cv_lib_dl_dlopen+:} false; then : 11740 $as_echo_n "(cached) " >&6 11741else 11742 ac_check_lib_save_LIBS=$LIBS 11743LIBS="-ldl $LIBS" 11744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11745/* end confdefs.h. */ 11746 11747/* Override any GCC internal prototype to avoid an error. 11748 Use char because int might match the return type of a GCC 11749 builtin and then its argument prototype would still apply. */ 11750#ifdef __cplusplus 11751extern "C" 11752#endif 11753char dlopen (); 11754int 11755main () 11756{ 11757return dlopen (); 11758 ; 11759 return 0; 11760} 11761_ACEOF 11762if ac_fn_c_try_link "$LINENO"; then : 11763 ac_cv_lib_dl_dlopen=yes 11764else 11765 ac_cv_lib_dl_dlopen=no 11766fi 11767rm -f core conftest.err conftest.$ac_objext \ 11768 conftest$ac_exeext conftest.$ac_ext 11769LIBS=$ac_check_lib_save_LIBS 11770fi 11771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11772$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11773if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11775else 11776 11777 lt_cv_dlopen="dyld" 11778 lt_cv_dlopen_libs= 11779 lt_cv_dlopen_self=yes 11780 11781fi 11782 11783 ;; 11784 11785 *) 11786 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11787if test "x$ac_cv_func_shl_load" = xyes; then : 11788 lt_cv_dlopen="shl_load" 11789else 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11791$as_echo_n "checking for shl_load in -ldld... " >&6; } 11792if ${ac_cv_lib_dld_shl_load+:} false; then : 11793 $as_echo_n "(cached) " >&6 11794else 11795 ac_check_lib_save_LIBS=$LIBS 11796LIBS="-ldld $LIBS" 11797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11798/* end confdefs.h. */ 11799 11800/* Override any GCC internal prototype to avoid an error. 11801 Use char because int might match the return type of a GCC 11802 builtin and then its argument prototype would still apply. */ 11803#ifdef __cplusplus 11804extern "C" 11805#endif 11806char shl_load (); 11807int 11808main () 11809{ 11810return shl_load (); 11811 ; 11812 return 0; 11813} 11814_ACEOF 11815if ac_fn_c_try_link "$LINENO"; then : 11816 ac_cv_lib_dld_shl_load=yes 11817else 11818 ac_cv_lib_dld_shl_load=no 11819fi 11820rm -f core conftest.err conftest.$ac_objext \ 11821 conftest$ac_exeext conftest.$ac_ext 11822LIBS=$ac_check_lib_save_LIBS 11823fi 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11825$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11826if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11827 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11828else 11829 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11830if test "x$ac_cv_func_dlopen" = xyes; then : 11831 lt_cv_dlopen="dlopen" 11832else 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11834$as_echo_n "checking for dlopen in -ldl... " >&6; } 11835if ${ac_cv_lib_dl_dlopen+:} false; then : 11836 $as_echo_n "(cached) " >&6 11837else 11838 ac_check_lib_save_LIBS=$LIBS 11839LIBS="-ldl $LIBS" 11840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11841/* end confdefs.h. */ 11842 11843/* Override any GCC internal prototype to avoid an error. 11844 Use char because int might match the return type of a GCC 11845 builtin and then its argument prototype would still apply. */ 11846#ifdef __cplusplus 11847extern "C" 11848#endif 11849char dlopen (); 11850int 11851main () 11852{ 11853return dlopen (); 11854 ; 11855 return 0; 11856} 11857_ACEOF 11858if ac_fn_c_try_link "$LINENO"; then : 11859 ac_cv_lib_dl_dlopen=yes 11860else 11861 ac_cv_lib_dl_dlopen=no 11862fi 11863rm -f core conftest.err conftest.$ac_objext \ 11864 conftest$ac_exeext conftest.$ac_ext 11865LIBS=$ac_check_lib_save_LIBS 11866fi 11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11868$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11869if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11871else 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11873$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11874if ${ac_cv_lib_svld_dlopen+:} false; then : 11875 $as_echo_n "(cached) " >&6 11876else 11877 ac_check_lib_save_LIBS=$LIBS 11878LIBS="-lsvld $LIBS" 11879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11880/* end confdefs.h. */ 11881 11882/* Override any GCC internal prototype to avoid an error. 11883 Use char because int might match the return type of a GCC 11884 builtin and then its argument prototype would still apply. */ 11885#ifdef __cplusplus 11886extern "C" 11887#endif 11888char dlopen (); 11889int 11890main () 11891{ 11892return dlopen (); 11893 ; 11894 return 0; 11895} 11896_ACEOF 11897if ac_fn_c_try_link "$LINENO"; then : 11898 ac_cv_lib_svld_dlopen=yes 11899else 11900 ac_cv_lib_svld_dlopen=no 11901fi 11902rm -f core conftest.err conftest.$ac_objext \ 11903 conftest$ac_exeext conftest.$ac_ext 11904LIBS=$ac_check_lib_save_LIBS 11905fi 11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11907$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11908if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11910else 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11912$as_echo_n "checking for dld_link in -ldld... " >&6; } 11913if ${ac_cv_lib_dld_dld_link+:} false; then : 11914 $as_echo_n "(cached) " >&6 11915else 11916 ac_check_lib_save_LIBS=$LIBS 11917LIBS="-ldld $LIBS" 11918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11919/* end confdefs.h. */ 11920 11921/* Override any GCC internal prototype to avoid an error. 11922 Use char because int might match the return type of a GCC 11923 builtin and then its argument prototype would still apply. */ 11924#ifdef __cplusplus 11925extern "C" 11926#endif 11927char dld_link (); 11928int 11929main () 11930{ 11931return dld_link (); 11932 ; 11933 return 0; 11934} 11935_ACEOF 11936if ac_fn_c_try_link "$LINENO"; then : 11937 ac_cv_lib_dld_dld_link=yes 11938else 11939 ac_cv_lib_dld_dld_link=no 11940fi 11941rm -f core conftest.err conftest.$ac_objext \ 11942 conftest$ac_exeext conftest.$ac_ext 11943LIBS=$ac_check_lib_save_LIBS 11944fi 11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11946$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11947if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11948 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11949fi 11950 11951 11952fi 11953 11954 11955fi 11956 11957 11958fi 11959 11960 11961fi 11962 11963 11964fi 11965 11966 ;; 11967 esac 11968 11969 if test "x$lt_cv_dlopen" != xno; then 11970 enable_dlopen=yes 11971 else 11972 enable_dlopen=no 11973 fi 11974 11975 case $lt_cv_dlopen in 11976 dlopen) 11977 save_CPPFLAGS="$CPPFLAGS" 11978 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11979 11980 save_LDFLAGS="$LDFLAGS" 11981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11982 11983 save_LIBS="$LIBS" 11984 LIBS="$lt_cv_dlopen_libs $LIBS" 11985 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11987$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11988if ${lt_cv_dlopen_self+:} false; then : 11989 $as_echo_n "(cached) " >&6 11990else 11991 if test "$cross_compiling" = yes; then : 11992 lt_cv_dlopen_self=cross 11993else 11994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11995 lt_status=$lt_dlunknown 11996 cat > conftest.$ac_ext <<_LT_EOF 11997#line $LINENO "configure" 11998#include "confdefs.h" 11999 12000#if HAVE_DLFCN_H 12001#include <dlfcn.h> 12002#endif 12003 12004#include <stdio.h> 12005 12006#ifdef RTLD_GLOBAL 12007# define LT_DLGLOBAL RTLD_GLOBAL 12008#else 12009# ifdef DL_GLOBAL 12010# define LT_DLGLOBAL DL_GLOBAL 12011# else 12012# define LT_DLGLOBAL 0 12013# endif 12014#endif 12015 12016/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12017 find out it does not work in some platform. */ 12018#ifndef LT_DLLAZY_OR_NOW 12019# ifdef RTLD_LAZY 12020# define LT_DLLAZY_OR_NOW RTLD_LAZY 12021# else 12022# ifdef DL_LAZY 12023# define LT_DLLAZY_OR_NOW DL_LAZY 12024# else 12025# ifdef RTLD_NOW 12026# define LT_DLLAZY_OR_NOW RTLD_NOW 12027# else 12028# ifdef DL_NOW 12029# define LT_DLLAZY_OR_NOW DL_NOW 12030# else 12031# define LT_DLLAZY_OR_NOW 0 12032# endif 12033# endif 12034# endif 12035# endif 12036#endif 12037 12038/* When -fvisbility=hidden is used, assume the code has been annotated 12039 correspondingly for the symbols needed. */ 12040#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12041int fnord () __attribute__((visibility("default"))); 12042#endif 12043 12044int fnord () { return 42; } 12045int main () 12046{ 12047 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12048 int status = $lt_dlunknown; 12049 12050 if (self) 12051 { 12052 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12053 else 12054 { 12055 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12056 else puts (dlerror ()); 12057 } 12058 /* dlclose (self); */ 12059 } 12060 else 12061 puts (dlerror ()); 12062 12063 return status; 12064} 12065_LT_EOF 12066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12067 (eval $ac_link) 2>&5 12068 ac_status=$? 12069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12070 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12071 (./conftest; exit; ) >&5 2>/dev/null 12072 lt_status=$? 12073 case x$lt_status in 12074 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12075 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12076 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12077 esac 12078 else : 12079 # compilation failed 12080 lt_cv_dlopen_self=no 12081 fi 12082fi 12083rm -fr conftest* 12084 12085 12086fi 12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12088$as_echo "$lt_cv_dlopen_self" >&6; } 12089 12090 if test "x$lt_cv_dlopen_self" = xyes; then 12091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12093$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12094if ${lt_cv_dlopen_self_static+:} false; then : 12095 $as_echo_n "(cached) " >&6 12096else 12097 if test "$cross_compiling" = yes; then : 12098 lt_cv_dlopen_self_static=cross 12099else 12100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12101 lt_status=$lt_dlunknown 12102 cat > conftest.$ac_ext <<_LT_EOF 12103#line $LINENO "configure" 12104#include "confdefs.h" 12105 12106#if HAVE_DLFCN_H 12107#include <dlfcn.h> 12108#endif 12109 12110#include <stdio.h> 12111 12112#ifdef RTLD_GLOBAL 12113# define LT_DLGLOBAL RTLD_GLOBAL 12114#else 12115# ifdef DL_GLOBAL 12116# define LT_DLGLOBAL DL_GLOBAL 12117# else 12118# define LT_DLGLOBAL 0 12119# endif 12120#endif 12121 12122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12123 find out it does not work in some platform. */ 12124#ifndef LT_DLLAZY_OR_NOW 12125# ifdef RTLD_LAZY 12126# define LT_DLLAZY_OR_NOW RTLD_LAZY 12127# else 12128# ifdef DL_LAZY 12129# define LT_DLLAZY_OR_NOW DL_LAZY 12130# else 12131# ifdef RTLD_NOW 12132# define LT_DLLAZY_OR_NOW RTLD_NOW 12133# else 12134# ifdef DL_NOW 12135# define LT_DLLAZY_OR_NOW DL_NOW 12136# else 12137# define LT_DLLAZY_OR_NOW 0 12138# endif 12139# endif 12140# endif 12141# endif 12142#endif 12143 12144/* When -fvisbility=hidden is used, assume the code has been annotated 12145 correspondingly for the symbols needed. */ 12146#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12147int fnord () __attribute__((visibility("default"))); 12148#endif 12149 12150int fnord () { return 42; } 12151int main () 12152{ 12153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12154 int status = $lt_dlunknown; 12155 12156 if (self) 12157 { 12158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12159 else 12160 { 12161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12162 else puts (dlerror ()); 12163 } 12164 /* dlclose (self); */ 12165 } 12166 else 12167 puts (dlerror ()); 12168 12169 return status; 12170} 12171_LT_EOF 12172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12173 (eval $ac_link) 2>&5 12174 ac_status=$? 12175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12176 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12177 (./conftest; exit; ) >&5 2>/dev/null 12178 lt_status=$? 12179 case x$lt_status in 12180 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12181 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12182 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12183 esac 12184 else : 12185 # compilation failed 12186 lt_cv_dlopen_self_static=no 12187 fi 12188fi 12189rm -fr conftest* 12190 12191 12192fi 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12194$as_echo "$lt_cv_dlopen_self_static" >&6; } 12195 fi 12196 12197 CPPFLAGS="$save_CPPFLAGS" 12198 LDFLAGS="$save_LDFLAGS" 12199 LIBS="$save_LIBS" 12200 ;; 12201 esac 12202 12203 case $lt_cv_dlopen_self in 12204 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12205 *) enable_dlopen_self=unknown ;; 12206 esac 12207 12208 case $lt_cv_dlopen_self_static in 12209 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12210 *) enable_dlopen_self_static=unknown ;; 12211 esac 12212fi 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230striplib= 12231old_striplib= 12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12233$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12234if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12235 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12236 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12238$as_echo "yes" >&6; } 12239else 12240# FIXME - insert some real tests, host_os isn't really good enough 12241 case $host_os in 12242 darwin*) 12243 if test -n "$STRIP" ; then 12244 striplib="$STRIP -x" 12245 old_striplib="$STRIP -S" 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12247$as_echo "yes" >&6; } 12248 else 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12250$as_echo "no" >&6; } 12251 fi 12252 ;; 12253 *) 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12255$as_echo "no" >&6; } 12256 ;; 12257 esac 12258fi 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 # Report which library types will actually be built 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12273$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12275$as_echo "$can_build_shared" >&6; } 12276 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12278$as_echo_n "checking whether to build shared libraries... " >&6; } 12279 test "$can_build_shared" = "no" && enable_shared=no 12280 12281 # On AIX, shared libraries and static libraries use the same namespace, and 12282 # are all built from PIC. 12283 case $host_os in 12284 aix3*) 12285 test "$enable_shared" = yes && enable_static=no 12286 if test -n "$RANLIB"; then 12287 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12288 postinstall_cmds='$RANLIB $lib' 12289 fi 12290 ;; 12291 12292 aix[4-9]*) 12293 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12294 test "$enable_shared" = yes && enable_static=no 12295 fi 12296 ;; 12297 esac 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12299$as_echo "$enable_shared" >&6; } 12300 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12302$as_echo_n "checking whether to build static libraries... " >&6; } 12303 # Make sure either enable_shared or enable_static is yes. 12304 test "$enable_shared" = yes || enable_static=yes 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12306$as_echo "$enable_static" >&6; } 12307 12308 12309 12310 12311fi 12312ac_ext=c 12313ac_cpp='$CPP $CPPFLAGS' 12314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12316ac_compiler_gnu=$ac_cv_c_compiler_gnu 12317 12318CC="$lt_save_CC" 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 ac_config_commands="$ac_config_commands libtool" 12335 12336 12337 12338 12339# Only expand once: 12340 12341 12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12343$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12344set x ${MAKE-make} 12345ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12346if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12347 $as_echo_n "(cached) " >&6 12348else 12349 cat >conftest.make <<\_ACEOF 12350SHELL = /bin/sh 12351all: 12352 @echo '@@@%%%=$(MAKE)=@@@%%%' 12353_ACEOF 12354# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12355case `${MAKE-make} -f conftest.make 2>/dev/null` in 12356 *@@@%%%=?*=@@@%%%*) 12357 eval ac_cv_prog_make_${ac_make}_set=yes;; 12358 *) 12359 eval ac_cv_prog_make_${ac_make}_set=no;; 12360esac 12361rm -f conftest.make 12362fi 12363if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12365$as_echo "yes" >&6; } 12366 SET_MAKE= 12367else 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12369$as_echo "no" >&6; } 12370 SET_MAKE="MAKE=${MAKE-make}" 12371fi 12372 12373 12374 12375 12376 12377 12378 12379 12380if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12381 if test -n "$ac_tool_prefix"; then 12382 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12383set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12385$as_echo_n "checking for $ac_word... " >&6; } 12386if ${ac_cv_path_PKG_CONFIG+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 case $PKG_CONFIG in 12390 [\\/]* | ?:[\\/]*) 12391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12392 ;; 12393 *) 12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12395for as_dir in $PATH 12396do 12397 IFS=$as_save_IFS 12398 test -z "$as_dir" && as_dir=. 12399 for ac_exec_ext in '' $ac_executable_extensions; do 12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12401 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12403 break 2 12404 fi 12405done 12406 done 12407IFS=$as_save_IFS 12408 12409 ;; 12410esac 12411fi 12412PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12413if test -n "$PKG_CONFIG"; then 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12415$as_echo "$PKG_CONFIG" >&6; } 12416else 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12418$as_echo "no" >&6; } 12419fi 12420 12421 12422fi 12423if test -z "$ac_cv_path_PKG_CONFIG"; then 12424 ac_pt_PKG_CONFIG=$PKG_CONFIG 12425 # Extract the first word of "pkg-config", so it can be a program name with args. 12426set dummy pkg-config; ac_word=$2 12427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12428$as_echo_n "checking for $ac_word... " >&6; } 12429if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12430 $as_echo_n "(cached) " >&6 12431else 12432 case $ac_pt_PKG_CONFIG in 12433 [\\/]* | ?:[\\/]*) 12434 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12435 ;; 12436 *) 12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12438for as_dir in $PATH 12439do 12440 IFS=$as_save_IFS 12441 test -z "$as_dir" && as_dir=. 12442 for ac_exec_ext in '' $ac_executable_extensions; do 12443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12444 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12446 break 2 12447 fi 12448done 12449 done 12450IFS=$as_save_IFS 12451 12452 ;; 12453esac 12454fi 12455ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12456if test -n "$ac_pt_PKG_CONFIG"; then 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12458$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12459else 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12461$as_echo "no" >&6; } 12462fi 12463 12464 if test "x$ac_pt_PKG_CONFIG" = x; then 12465 PKG_CONFIG="" 12466 else 12467 case $cross_compiling:$ac_tool_warned in 12468yes:) 12469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12471ac_tool_warned=yes ;; 12472esac 12473 PKG_CONFIG=$ac_pt_PKG_CONFIG 12474 fi 12475else 12476 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12477fi 12478 12479fi 12480if test -n "$PKG_CONFIG"; then 12481 _pkg_min_version=0.9.0 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12483$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12484 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12486$as_echo "yes" >&6; } 12487 else 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12489$as_echo "no" >&6; } 12490 PKG_CONFIG="" 12491 fi 12492fi 12493 12494 12495 12496# Check whether --with-pkgconfigdir was given. 12497if test "${with_pkgconfigdir+set}" = set; then : 12498 withval=$with_pkgconfigdir; 12499else 12500 with_pkgconfigdir='${libdir}/pkgconfig' 12501fi 12502 12503pkgconfigdir=$with_pkgconfigdir 12504 12505 12506 12507 12508 12509 12510GIT=${GIT-"${am_missing_run}git"} 12511 12512 12513GPERF=${GPERF-"${am_missing_run}gperf"} 12514 12515 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5 12517$as_echo_n "checking for RM macro... " >&6; } 12518_predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'` 12519if test "x$_predefined_rm" = "x"; then 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5 12521$as_echo "no predefined RM" >&6; } 12522 # Extract the first word of "rm", so it can be a program name with args. 12523set dummy rm; ac_word=$2 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12525$as_echo_n "checking for $ac_word... " >&6; } 12526if ${ac_cv_prog_RM+:} false; then : 12527 $as_echo_n "(cached) " >&6 12528else 12529 if test -n "$RM"; then 12530 ac_cv_prog_RM="$RM" # Let the user override the test. 12531else 12532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12533for as_dir in $PATH 12534do 12535 IFS=$as_save_IFS 12536 test -z "$as_dir" && as_dir=. 12537 for ac_exec_ext in '' $ac_executable_extensions; do 12538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12539 ac_cv_prog_RM="rm -f" 12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12541 break 2 12542 fi 12543done 12544 done 12545IFS=$as_save_IFS 12546 12547fi 12548fi 12549RM=$ac_cv_prog_RM 12550if test -n "$RM"; then 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 12552$as_echo "$RM" >&6; } 12553else 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12555$as_echo "no" >&6; } 12556fi 12557 12558 12559else 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5 12561$as_echo "$_predefined_rm" >&6; } 12562fi 12563 12564 12565case "$host" in 12566 *-*-mingw*) 12567 os_win32=yes 12568 ;; 12569 *) 12570 os_win32=no 12571esac 12572 if test "$os_win32" = "yes"; then 12573 OS_WIN32_TRUE= 12574 OS_WIN32_FALSE='#' 12575else 12576 OS_WIN32_TRUE='#' 12577 OS_WIN32_FALSE= 12578fi 12579 12580 12581if test "$os_win32" = "yes"; then 12582 # Extract the first word of "lib.exe", so it can be a program name with args. 12583set dummy lib.exe; ac_word=$2 12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12585$as_echo_n "checking for $ac_word... " >&6; } 12586if ${ac_cv_prog_ms_librarian+:} false; then : 12587 $as_echo_n "(cached) " >&6 12588else 12589 if test -n "$ms_librarian"; then 12590 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test. 12591else 12592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12593for as_dir in $PATH 12594do 12595 IFS=$as_save_IFS 12596 test -z "$as_dir" && as_dir=. 12597 for ac_exec_ext in '' $ac_executable_extensions; do 12598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12599 ac_cv_prog_ms_librarian="yes" 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12601 break 2 12602 fi 12603done 12604 done 12605IFS=$as_save_IFS 12606 12607 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no" 12608fi 12609fi 12610ms_librarian=$ac_cv_prog_ms_librarian 12611if test -n "$ms_librarian"; then 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5 12613$as_echo "$ms_librarian" >&6; } 12614else 12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12616$as_echo "no" >&6; } 12617fi 12618 12619 12620fi 12621 if test x$ms_librarian = xyes; then 12622 MS_LIB_AVAILABLE_TRUE= 12623 MS_LIB_AVAILABLE_FALSE='#' 12624else 12625 MS_LIB_AVAILABLE_TRUE='#' 12626 MS_LIB_AVAILABLE_FALSE= 12627fi 12628 12629 12630WARN_CFLAGS="" 12631if test "x$GCC" = "xyes"; then 12632 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 12633 -Wmissing-prototypes -Wmissing-declarations \ 12634 -Wnested-externs -fno-strict-aliasing" 12635 12636cat >>confdefs.h <<_ACEOF 12637#define HAVE_WARNING_CPP_DIRECTIVE 1 12638_ACEOF 12639 12640fi 12641 12642 12643 12644 12645# Put a plausible default for CC_FOR_BUILD in Makefile. 12646if test -z "$CC_FOR_BUILD"; then 12647 if test "x$cross_compiling" = "xno"; then 12648 CC_FOR_BUILD='$(CC)' 12649 else 12650 CC_FOR_BUILD=gcc 12651 fi 12652fi 12653 12654# Also set EXEEXT_FOR_BUILD. 12655if test "x$cross_compiling" = "xno"; then 12656 EXEEXT_FOR_BUILD='$(EXEEXT)' 12657else 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 12659$as_echo_n "checking for build system executable suffix... " >&6; } 12660if ${bfd_cv_build_exeext+:} false; then : 12661 $as_echo_n "(cached) " >&6 12662else 12663 rm -f conftest* 12664 echo 'int main () { return 0; }' > conftest.c 12665 bfd_cv_build_exeext= 12666 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 12667 for file in conftest.*; do 12668 case $file in 12669 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 12670 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 12671 esac 12672 done 12673 rm -f conftest* 12674 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 12675fi 12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 12677$as_echo "$bfd_cv_build_exeext" >&6; } 12678 EXEEXT_FOR_BUILD="" 12679 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 12680fi 12681 12682 12683 if test $cross_compiling = yes; then 12684 CROSS_COMPILING_TRUE= 12685 CROSS_COMPILING_FALSE='#' 12686else 12687 CROSS_COMPILING_TRUE='#' 12688 CROSS_COMPILING_FALSE= 12689fi 12690 12691 if test "$enable_shared" = "yes"; then 12692 ENABLE_SHARED_TRUE= 12693 ENABLE_SHARED_FALSE='#' 12694else 12695 ENABLE_SHARED_TRUE='#' 12696 ENABLE_SHARED_FALSE= 12697fi 12698 12699 12700 12701 12702# Check whether --with-arch was given. 12703if test "${with_arch+set}" = set; then : 12704 withval=$with_arch; arch="$withval" 12705else 12706 arch=auto 12707fi 12708 12709 12710if test "x$arch" != xauto; then 12711 12712cat >>confdefs.h <<_ACEOF 12713#define FC_ARCHITECTURE "$arch" 12714_ACEOF 12715 12716fi 12717 12718 12719 12720# Checks for header files. 12721ac_header_dirent=no 12722for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12723 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 12725$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 12726if eval \${$as_ac_Header+:} false; then : 12727 $as_echo_n "(cached) " >&6 12728else 12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730/* end confdefs.h. */ 12731#include <sys/types.h> 12732#include <$ac_hdr> 12733 12734int 12735main () 12736{ 12737if ((DIR *) 0) 12738return 0; 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_compile "$LINENO"; then : 12744 eval "$as_ac_Header=yes" 12745else 12746 eval "$as_ac_Header=no" 12747fi 12748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12749fi 12750eval ac_res=\$$as_ac_Header 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12752$as_echo "$ac_res" >&6; } 12753if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12754 cat >>confdefs.h <<_ACEOF 12755#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12756_ACEOF 12757 12758ac_header_dirent=$ac_hdr; break 12759fi 12760 12761done 12762# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12763if test $ac_header_dirent = dirent.h; then 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12765$as_echo_n "checking for library containing opendir... " >&6; } 12766if ${ac_cv_search_opendir+:} false; then : 12767 $as_echo_n "(cached) " >&6 12768else 12769 ac_func_search_save_LIBS=$LIBS 12770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12771/* end confdefs.h. */ 12772 12773/* Override any GCC internal prototype to avoid an error. 12774 Use char because int might match the return type of a GCC 12775 builtin and then its argument prototype would still apply. */ 12776#ifdef __cplusplus 12777extern "C" 12778#endif 12779char opendir (); 12780int 12781main () 12782{ 12783return opendir (); 12784 ; 12785 return 0; 12786} 12787_ACEOF 12788for ac_lib in '' dir; do 12789 if test -z "$ac_lib"; then 12790 ac_res="none required" 12791 else 12792 ac_res=-l$ac_lib 12793 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12794 fi 12795 if ac_fn_c_try_link "$LINENO"; then : 12796 ac_cv_search_opendir=$ac_res 12797fi 12798rm -f core conftest.err conftest.$ac_objext \ 12799 conftest$ac_exeext 12800 if ${ac_cv_search_opendir+:} false; then : 12801 break 12802fi 12803done 12804if ${ac_cv_search_opendir+:} false; then : 12805 12806else 12807 ac_cv_search_opendir=no 12808fi 12809rm conftest.$ac_ext 12810LIBS=$ac_func_search_save_LIBS 12811fi 12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12813$as_echo "$ac_cv_search_opendir" >&6; } 12814ac_res=$ac_cv_search_opendir 12815if test "$ac_res" != no; then : 12816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12817 12818fi 12819 12820else 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12822$as_echo_n "checking for library containing opendir... " >&6; } 12823if ${ac_cv_search_opendir+:} false; then : 12824 $as_echo_n "(cached) " >&6 12825else 12826 ac_func_search_save_LIBS=$LIBS 12827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12828/* end confdefs.h. */ 12829 12830/* Override any GCC internal prototype to avoid an error. 12831 Use char because int might match the return type of a GCC 12832 builtin and then its argument prototype would still apply. */ 12833#ifdef __cplusplus 12834extern "C" 12835#endif 12836char opendir (); 12837int 12838main () 12839{ 12840return opendir (); 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845for ac_lib in '' x; do 12846 if test -z "$ac_lib"; then 12847 ac_res="none required" 12848 else 12849 ac_res=-l$ac_lib 12850 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12851 fi 12852 if ac_fn_c_try_link "$LINENO"; then : 12853 ac_cv_search_opendir=$ac_res 12854fi 12855rm -f core conftest.err conftest.$ac_objext \ 12856 conftest$ac_exeext 12857 if ${ac_cv_search_opendir+:} false; then : 12858 break 12859fi 12860done 12861if ${ac_cv_search_opendir+:} false; then : 12862 12863else 12864 ac_cv_search_opendir=no 12865fi 12866rm conftest.$ac_ext 12867LIBS=$ac_func_search_save_LIBS 12868fi 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12870$as_echo "$ac_cv_search_opendir" >&6; } 12871ac_res=$ac_cv_search_opendir 12872if test "$ac_res" != no; then : 12873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12874 12875fi 12876 12877fi 12878 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12880$as_echo_n "checking for ANSI C header files... " >&6; } 12881if ${ac_cv_header_stdc+:} false; then : 12882 $as_echo_n "(cached) " >&6 12883else 12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12885/* end confdefs.h. */ 12886#include <stdlib.h> 12887#include <stdarg.h> 12888#include <string.h> 12889#include <float.h> 12890 12891int 12892main () 12893{ 12894 12895 ; 12896 return 0; 12897} 12898_ACEOF 12899if ac_fn_c_try_compile "$LINENO"; then : 12900 ac_cv_header_stdc=yes 12901else 12902 ac_cv_header_stdc=no 12903fi 12904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12905 12906if test $ac_cv_header_stdc = yes; then 12907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12909/* end confdefs.h. */ 12910#include <string.h> 12911 12912_ACEOF 12913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12914 $EGREP "memchr" >/dev/null 2>&1; then : 12915 12916else 12917 ac_cv_header_stdc=no 12918fi 12919rm -f conftest* 12920 12921fi 12922 12923if test $ac_cv_header_stdc = yes; then 12924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12926/* end confdefs.h. */ 12927#include <stdlib.h> 12928 12929_ACEOF 12930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12931 $EGREP "free" >/dev/null 2>&1; then : 12932 12933else 12934 ac_cv_header_stdc=no 12935fi 12936rm -f conftest* 12937 12938fi 12939 12940if test $ac_cv_header_stdc = yes; then 12941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12942 if test "$cross_compiling" = yes; then : 12943 : 12944else 12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12946/* end confdefs.h. */ 12947#include <ctype.h> 12948#include <stdlib.h> 12949#if ((' ' & 0x0FF) == 0x020) 12950# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12951# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12952#else 12953# define ISLOWER(c) \ 12954 (('a' <= (c) && (c) <= 'i') \ 12955 || ('j' <= (c) && (c) <= 'r') \ 12956 || ('s' <= (c) && (c) <= 'z')) 12957# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12958#endif 12959 12960#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12961int 12962main () 12963{ 12964 int i; 12965 for (i = 0; i < 256; i++) 12966 if (XOR (islower (i), ISLOWER (i)) 12967 || toupper (i) != TOUPPER (i)) 12968 return 2; 12969 return 0; 12970} 12971_ACEOF 12972if ac_fn_c_try_run "$LINENO"; then : 12973 12974else 12975 ac_cv_header_stdc=no 12976fi 12977rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12978 conftest.$ac_objext conftest.beam conftest.$ac_ext 12979fi 12980 12981fi 12982fi 12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12984$as_echo "$ac_cv_header_stdc" >&6; } 12985if test $ac_cv_header_stdc = yes; then 12986 12987$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12988 12989fi 12990 12991for ac_header in fcntl.h regex.h stdlib.h string.h unistd.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h 12992do : 12993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12994ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12995if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12996 cat >>confdefs.h <<_ACEOF 12997#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12998_ACEOF 12999 13000fi 13001 13002done 13003 13004# ------ AX CREATE STDINT H ------------------------------------- 13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5 13006$as_echo_n "checking for stdint types... " >&6; } 13007ac_stdint_h=`echo src/fcstdint.h` 13008# try to shortcircuit - if the default include path of the compiler 13009# can find a "stdint.h" header then we assume that all compilers can. 13010if ${ac_cv_header_stdint_t+:} false; then : 13011 $as_echo_n "(cached) " >&6 13012else 13013 13014old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" 13015old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" 13016old_CFLAGS="$CFLAGS" ; CFLAGS="" 13017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019#include <stdint.h> 13020int 13021main () 13022{ 13023int_least32_t v = 0; 13024 ; 13025 return 0; 13026} 13027_ACEOF 13028if ac_fn_c_try_compile "$LINENO"; then : 13029 ac_cv_stdint_result="(assuming C99 compatible system)" 13030 ac_cv_header_stdint_t="stdint.h"; 13031else 13032 ac_cv_header_stdint_t="" 13033fi 13034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13035if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then 13036CFLAGS="-std=c99" 13037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13038/* end confdefs.h. */ 13039#include <stdint.h> 13040int 13041main () 13042{ 13043int_least32_t v = 0; 13044 ; 13045 return 0; 13046} 13047_ACEOF 13048if ac_fn_c_try_compile "$LINENO"; then : 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 13050$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} 13051fi 13052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13053fi 13054CXXFLAGS="$old_CXXFLAGS" 13055CPPFLAGS="$old_CPPFLAGS" 13056CFLAGS="$old_CFLAGS" 13057fi 13058 13059 13060v="... $ac_cv_header_stdint_h" 13061if test "$ac_stdint_h" = "stdint.h" ; then 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5 13063$as_echo "(are you sure you want them in ./stdint.h?)" >&6; } 13064elif test "$ac_stdint_h" = "inttypes.h" ; then 13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5 13066$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; } 13067elif test "_$ac_cv_header_stdint_t" = "_" ; then 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5 13069$as_echo "(putting them into $ac_stdint_h)$v" >&6; } 13070else 13071 ac_cv_header_stdint="$ac_cv_header_stdint_t" 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5 13073$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; } 13074fi 13075 13076if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. 13077 13078 13079inttype_headers=`echo | sed -e 's/,/ /g'` 13080 13081ac_cv_stdint_result="(no helpful system typedefs seen)" 13082 13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 13084$as_echo_n "checking for stdint uintptr_t... " >&6; } 13085if ${ac_cv_header_stdint_x+:} false; then : 13086 $as_echo_n "(cached) " >&6 13087else 13088 13089 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13091$as_echo "(..)" >&6; } 13092 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers 13093 do 13094 unset ac_cv_type_uintptr_t 13095 unset ac_cv_type_uint64_t 13096 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i> 13097" 13098if test "x$ac_cv_type_uintptr_t" = xyes; then : 13099 ac_cv_header_stdint_x=$i 13100else 13101 continue 13102fi 13103 13104 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 13105" 13106if test "x$ac_cv_type_uint64_t" = xyes; then : 13107 and64="/uint64_t" 13108else 13109 and64="" 13110fi 13111 13112 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)" 13113 break 13114 done 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 13116$as_echo_n "checking for stdint uintptr_t... " >&6; } 13117 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5 13120$as_echo "$ac_cv_header_stdint_x" >&6; } 13121 13122 13123if test "_$ac_cv_header_stdint_x" = "_" ; then 13124 13125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 13126$as_echo_n "checking for stdint uint32_t... " >&6; } 13127if ${ac_cv_header_stdint_o+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129else 13130 13131 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13133$as_echo "(..)" >&6; } 13134 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers 13135 do 13136 unset ac_cv_type_uint32_t 13137 unset ac_cv_type_uint64_t 13138 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i> 13139" 13140if test "x$ac_cv_type_uint32_t" = xyes; then : 13141 ac_cv_header_stdint_o=$i 13142else 13143 continue 13144fi 13145 13146 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 13147" 13148if test "x$ac_cv_type_uint64_t" = xyes; then : 13149 and64="/uint64_t" 13150else 13151 and64="" 13152fi 13153 13154 ac_cv_stdint_result="(seen uint32_t$and64 in $i)" 13155 break 13156 break; 13157 done 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 13159$as_echo_n "checking for stdint uint32_t... " >&6; } 13160 13161fi 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5 13163$as_echo "$ac_cv_header_stdint_o" >&6; } 13164 13165fi 13166 13167if test "_$ac_cv_header_stdint_x" = "_" ; then 13168if test "_$ac_cv_header_stdint_o" = "_" ; then 13169 13170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 13171$as_echo_n "checking for stdint u_int32_t... " >&6; } 13172if ${ac_cv_header_stdint_u+:} false; then : 13173 $as_echo_n "(cached) " >&6 13174else 13175 13176 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13178$as_echo "(..)" >&6; } 13179 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do 13180 unset ac_cv_type_u_int32_t 13181 unset ac_cv_type_u_int64_t 13182 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i> 13183" 13184if test "x$ac_cv_type_u_int32_t" = xyes; then : 13185 ac_cv_header_stdint_u=$i 13186else 13187 continue 13188fi 13189 13190 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i> 13191" 13192if test "x$ac_cv_type_u_int64_t" = xyes; then : 13193 and64="/u_int64_t" 13194else 13195 and64="" 13196fi 13197 13198 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)" 13199 break 13200 break; 13201 done 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 13203$as_echo_n "checking for stdint u_int32_t... " >&6; } 13204 13205fi 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5 13207$as_echo "$ac_cv_header_stdint_u" >&6; } 13208 13209fi fi 13210 13211if test "_$ac_cv_header_stdint_x" = "_" ; then 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5 13213$as_echo_n "checking for stdint datatype model... " >&6; } 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 13215$as_echo "(..)" >&6; } 13216 13217 # The cast to long int works around a bug in the HP C Compiler 13218# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13219# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13220# This bug is HP SR number 8606223364. 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 13222$as_echo_n "checking size of char... " >&6; } 13223if ${ac_cv_sizeof_char+:} false; then : 13224 $as_echo_n "(cached) " >&6 13225else 13226 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 13227 13228else 13229 if test "$ac_cv_type_char" = yes; then 13230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13232as_fn_error 77 "cannot compute sizeof (char) 13233See \`config.log' for more details" "$LINENO" 5; } 13234 else 13235 ac_cv_sizeof_char=0 13236 fi 13237fi 13238 13239fi 13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 13241$as_echo "$ac_cv_sizeof_char" >&6; } 13242 13243 13244 13245cat >>confdefs.h <<_ACEOF 13246#define SIZEOF_CHAR $ac_cv_sizeof_char 13247_ACEOF 13248 13249 13250 # The cast to long int works around a bug in the HP C Compiler 13251# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13252# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13253# This bug is HP SR number 8606223364. 13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 13255$as_echo_n "checking size of short... " >&6; } 13256if ${ac_cv_sizeof_short+:} false; then : 13257 $as_echo_n "(cached) " >&6 13258else 13259 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 13260 13261else 13262 if test "$ac_cv_type_short" = yes; then 13263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13265as_fn_error 77 "cannot compute sizeof (short) 13266See \`config.log' for more details" "$LINENO" 5; } 13267 else 13268 ac_cv_sizeof_short=0 13269 fi 13270fi 13271 13272fi 13273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 13274$as_echo "$ac_cv_sizeof_short" >&6; } 13275 13276 13277 13278cat >>confdefs.h <<_ACEOF 13279#define SIZEOF_SHORT $ac_cv_sizeof_short 13280_ACEOF 13281 13282 13283 # The cast to long int works around a bug in the HP C Compiler 13284# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13285# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13286# This bug is HP SR number 8606223364. 13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13288$as_echo_n "checking size of int... " >&6; } 13289if ${ac_cv_sizeof_int+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13293 13294else 13295 if test "$ac_cv_type_int" = yes; then 13296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13298as_fn_error 77 "cannot compute sizeof (int) 13299See \`config.log' for more details" "$LINENO" 5; } 13300 else 13301 ac_cv_sizeof_int=0 13302 fi 13303fi 13304 13305fi 13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13307$as_echo "$ac_cv_sizeof_int" >&6; } 13308 13309 13310 13311cat >>confdefs.h <<_ACEOF 13312#define SIZEOF_INT $ac_cv_sizeof_int 13313_ACEOF 13314 13315 13316 # The cast to long int works around a bug in the HP C Compiler 13317# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13318# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13319# This bug is HP SR number 8606223364. 13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13321$as_echo_n "checking size of long... " >&6; } 13322if ${ac_cv_sizeof_long+:} false; then : 13323 $as_echo_n "(cached) " >&6 13324else 13325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13326 13327else 13328 if test "$ac_cv_type_long" = yes; then 13329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13331as_fn_error 77 "cannot compute sizeof (long) 13332See \`config.log' for more details" "$LINENO" 5; } 13333 else 13334 ac_cv_sizeof_long=0 13335 fi 13336fi 13337 13338fi 13339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13340$as_echo "$ac_cv_sizeof_long" >&6; } 13341 13342 13343 13344cat >>confdefs.h <<_ACEOF 13345#define SIZEOF_LONG $ac_cv_sizeof_long 13346_ACEOF 13347 13348 13349 # The cast to long int works around a bug in the HP C Compiler 13350# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13351# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13352# This bug is HP SR number 8606223364. 13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 13354$as_echo_n "checking size of void*... " >&6; } 13355if ${ac_cv_sizeof_voidp+:} false; then : 13356 $as_echo_n "(cached) " >&6 13357else 13358 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 13359 13360else 13361 if test "$ac_cv_type_voidp" = yes; then 13362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13364as_fn_error 77 "cannot compute sizeof (void*) 13365See \`config.log' for more details" "$LINENO" 5; } 13366 else 13367 ac_cv_sizeof_voidp=0 13368 fi 13369fi 13370 13371fi 13372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 13373$as_echo "$ac_cv_sizeof_voidp" >&6; } 13374 13375 13376 13377cat >>confdefs.h <<_ACEOF 13378#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 13379_ACEOF 13380 13381 13382 ac_cv_char_data_model="" 13383 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" 13384 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" 13385 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" 13386 ac_cv_long_data_model="" 13387 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" 13388 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" 13389 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5 13391$as_echo_n "checking data model... " >&6; } 13392 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in 13393 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;; 13394 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;; 13395 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;; 13396 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; 13397 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;; 13398 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; 13399 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;; 13400 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; 13401 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;; 13402 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; 13403 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; 13404 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; 13405 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; 13406 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; 13407 222/*|333/*|444/*|666/*|888/*) : 13408 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;; 13409 *) ac_cv_data_model="none" ; n="very unusual model" ;; 13410 esac 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 13412$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } 13413 13414fi 13415 13416if test "_$ac_cv_header_stdint_x" != "_" ; then 13417 ac_cv_header_stdint="$ac_cv_header_stdint_x" 13418elif test "_$ac_cv_header_stdint_o" != "_" ; then 13419 ac_cv_header_stdint="$ac_cv_header_stdint_o" 13420elif test "_$ac_cv_header_stdint_u" != "_" ; then 13421 ac_cv_header_stdint="$ac_cv_header_stdint_u" 13422else 13423 ac_cv_header_stdint="stddef.h" 13424fi 13425 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5 13427$as_echo_n "checking for extra inttypes in chosen header... " >&6; } 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5 13429$as_echo "($ac_cv_header_stdint)" >&6; } 13430unset ac_cv_type_int_least32_t 13431unset ac_cv_type_int_fast32_t 13432ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint> 13433" 13434if test "x$ac_cv_type_int_least32_t" = xyes; then : 13435 13436fi 13437 13438ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint> 13439" 13440if test "x$ac_cv_type_int_fast32_t" = xyes; then : 13441 13442fi 13443 13444ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint> 13445" 13446if test "x$ac_cv_type_intmax_t" = xyes; then : 13447 13448fi 13449 13450 13451fi # shortcircut to system "stdint.h" 13452# ------------------ PREPARE VARIABLES ------------------------------ 13453if test "$GCC" = "yes" ; then 13454ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` 13455else 13456ac_cv_stdint_message="using $CC" 13457fi 13458 13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 13460$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } 13461 13462# ----------------- DONE inttypes.h checks START header ------------- 13463ac_config_commands="$ac_config_commands $ac_stdint_h" 13464 13465 13466 13467# Checks for typedefs, structures, and compiler characteristics. 13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13469$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13470if ${ac_cv_c_const+:} false; then : 13471 $as_echo_n "(cached) " >&6 13472else 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475 13476int 13477main () 13478{ 13479 13480#ifndef __cplusplus 13481 /* Ultrix mips cc rejects this sort of thing. */ 13482 typedef int charset[2]; 13483 const charset cs = { 0, 0 }; 13484 /* SunOS 4.1.1 cc rejects this. */ 13485 char const *const *pcpcc; 13486 char **ppc; 13487 /* NEC SVR4.0.2 mips cc rejects this. */ 13488 struct point {int x, y;}; 13489 static struct point const zero = {0,0}; 13490 /* AIX XL C 1.02.0.0 rejects this. 13491 It does not let you subtract one const X* pointer from another in 13492 an arm of an if-expression whose if-part is not a constant 13493 expression */ 13494 const char *g = "string"; 13495 pcpcc = &g + (g ? g-g : 0); 13496 /* HPUX 7.0 cc rejects these. */ 13497 ++pcpcc; 13498 ppc = (char**) pcpcc; 13499 pcpcc = (char const *const *) ppc; 13500 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13501 char tx; 13502 char *t = &tx; 13503 char const *s = 0 ? (char *) 0 : (char const *) 0; 13504 13505 *t++ = 0; 13506 if (s) return 0; 13507 } 13508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13509 int x[] = {25, 17}; 13510 const int *foo = &x[0]; 13511 ++foo; 13512 } 13513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13514 typedef const int *iptr; 13515 iptr p = 0; 13516 ++p; 13517 } 13518 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13520 struct s { int j; const int *ap[3]; } bx; 13521 struct s *b = &bx; b->j = 5; 13522 } 13523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13524 const int foo = 10; 13525 if (!foo) return 0; 13526 } 13527 return !cs[0] && !zero.x; 13528#endif 13529 13530 ; 13531 return 0; 13532} 13533_ACEOF 13534if ac_fn_c_try_compile "$LINENO"; then : 13535 ac_cv_c_const=yes 13536else 13537 ac_cv_c_const=no 13538fi 13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13540fi 13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13542$as_echo "$ac_cv_c_const" >&6; } 13543if test $ac_cv_c_const = no; then 13544 13545$as_echo "#define const /**/" >>confdefs.h 13546 13547fi 13548 13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13550$as_echo_n "checking for inline... " >&6; } 13551if ${ac_cv_c_inline+:} false; then : 13552 $as_echo_n "(cached) " >&6 13553else 13554 ac_cv_c_inline=no 13555for ac_kw in inline __inline__ __inline; do 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558#ifndef __cplusplus 13559typedef int foo_t; 13560static $ac_kw foo_t static_foo () {return 0; } 13561$ac_kw foo_t foo () {return 0; } 13562#endif 13563 13564_ACEOF 13565if ac_fn_c_try_compile "$LINENO"; then : 13566 ac_cv_c_inline=$ac_kw 13567fi 13568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13569 test "$ac_cv_c_inline" != no && break 13570done 13571 13572fi 13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13574$as_echo "$ac_cv_c_inline" >&6; } 13575 13576case $ac_cv_c_inline in 13577 inline | yes) ;; 13578 *) 13579 case $ac_cv_c_inline in 13580 no) ac_val=;; 13581 *) ac_val=$ac_cv_c_inline;; 13582 esac 13583 cat >>confdefs.h <<_ACEOF 13584#ifndef __cplusplus 13585#define inline $ac_val 13586#endif 13587_ACEOF 13588 ;; 13589esac 13590 13591 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 13593$as_echo_n "checking for flexible array members... " >&6; } 13594if ${ac_cv_c_flexmember+:} false; then : 13595 $as_echo_n "(cached) " >&6 13596else 13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13598/* end confdefs.h. */ 13599#include <stdlib.h> 13600 #include <stdio.h> 13601 #include <stddef.h> 13602 struct s { int n; double d[]; }; 13603int 13604main () 13605{ 13606int m = getchar (); 13607 struct s *p = malloc (offsetof (struct s, d) 13608 + m * sizeof (double)); 13609 p->d[0] = 0.0; 13610 return p->d != (double *) NULL; 13611 ; 13612 return 0; 13613} 13614_ACEOF 13615if ac_fn_c_try_compile "$LINENO"; then : 13616 ac_cv_c_flexmember=yes 13617else 13618 ac_cv_c_flexmember=no 13619fi 13620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13621fi 13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 13623$as_echo "$ac_cv_c_flexmember" >&6; } 13624 if test $ac_cv_c_flexmember = yes; then 13625 13626$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 13627 13628 else 13629 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 13630 13631 fi 13632 13633ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13634if test "x$ac_cv_type_pid_t" = xyes; then : 13635 13636else 13637 13638cat >>confdefs.h <<_ACEOF 13639#define pid_t int 13640_ACEOF 13641 13642fi 13643 13644 13645# Checks for library functions. 13646for ac_func in vprintf 13647do : 13648 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 13649if test "x$ac_cv_func_vprintf" = xyes; then : 13650 cat >>confdefs.h <<_ACEOF 13651#define HAVE_VPRINTF 1 13652_ACEOF 13653 13654ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 13655if test "x$ac_cv_func__doprnt" = xyes; then : 13656 13657$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 13658 13659fi 13660 13661fi 13662done 13663 13664 13665 13666 13667 13668 for ac_header in $ac_header_list 13669do : 13670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13671ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13672" 13673if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13674 cat >>confdefs.h <<_ACEOF 13675#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13676_ACEOF 13677 13678fi 13679 13680done 13681 13682 13683 13684 13685 13686 13687 13688 13689for ac_func in getpagesize 13690do : 13691 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13692if test "x$ac_cv_func_getpagesize" = xyes; then : 13693 cat >>confdefs.h <<_ACEOF 13694#define HAVE_GETPAGESIZE 1 13695_ACEOF 13696 13697fi 13698done 13699 13700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13701$as_echo_n "checking for working mmap... " >&6; } 13702if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13703 $as_echo_n "(cached) " >&6 13704else 13705 if test "$cross_compiling" = yes; then : 13706 ac_cv_func_mmap_fixed_mapped=no 13707else 13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710$ac_includes_default 13711/* malloc might have been renamed as rpl_malloc. */ 13712#undef malloc 13713 13714/* Thanks to Mike Haertel and Jim Avera for this test. 13715 Here is a matrix of mmap possibilities: 13716 mmap private not fixed 13717 mmap private fixed at somewhere currently unmapped 13718 mmap private fixed at somewhere already mapped 13719 mmap shared not fixed 13720 mmap shared fixed at somewhere currently unmapped 13721 mmap shared fixed at somewhere already mapped 13722 For private mappings, we should verify that changes cannot be read() 13723 back from the file, nor mmap's back from the file at a different 13724 address. (There have been systems where private was not correctly 13725 implemented like the infamous i386 svr4.0, and systems where the 13726 VM page cache was not coherent with the file system buffer cache 13727 like early versions of FreeBSD and possibly contemporary NetBSD.) 13728 For shared mappings, we should conversely verify that changes get 13729 propagated back to all the places they're supposed to be. 13730 13731 Grep wants private fixed already mapped. 13732 The main things grep needs to know about mmap are: 13733 * does it exist and is it safe to write into the mmap'd area 13734 * how to use it (BSD variants) */ 13735 13736#include <fcntl.h> 13737#include <sys/mman.h> 13738 13739#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13740char *malloc (); 13741#endif 13742 13743/* This mess was copied from the GNU getpagesize.h. */ 13744#ifndef HAVE_GETPAGESIZE 13745# ifdef _SC_PAGESIZE 13746# define getpagesize() sysconf(_SC_PAGESIZE) 13747# else /* no _SC_PAGESIZE */ 13748# ifdef HAVE_SYS_PARAM_H 13749# include <sys/param.h> 13750# ifdef EXEC_PAGESIZE 13751# define getpagesize() EXEC_PAGESIZE 13752# else /* no EXEC_PAGESIZE */ 13753# ifdef NBPG 13754# define getpagesize() NBPG * CLSIZE 13755# ifndef CLSIZE 13756# define CLSIZE 1 13757# endif /* no CLSIZE */ 13758# else /* no NBPG */ 13759# ifdef NBPC 13760# define getpagesize() NBPC 13761# else /* no NBPC */ 13762# ifdef PAGESIZE 13763# define getpagesize() PAGESIZE 13764# endif /* PAGESIZE */ 13765# endif /* no NBPC */ 13766# endif /* no NBPG */ 13767# endif /* no EXEC_PAGESIZE */ 13768# else /* no HAVE_SYS_PARAM_H */ 13769# define getpagesize() 8192 /* punt totally */ 13770# endif /* no HAVE_SYS_PARAM_H */ 13771# endif /* no _SC_PAGESIZE */ 13772 13773#endif /* no HAVE_GETPAGESIZE */ 13774 13775int 13776main () 13777{ 13778 char *data, *data2, *data3; 13779 const char *cdata2; 13780 int i, pagesize; 13781 int fd, fd2; 13782 13783 pagesize = getpagesize (); 13784 13785 /* First, make a file with some known garbage in it. */ 13786 data = (char *) malloc (pagesize); 13787 if (!data) 13788 return 1; 13789 for (i = 0; i < pagesize; ++i) 13790 *(data + i) = rand (); 13791 umask (0); 13792 fd = creat ("conftest.mmap", 0600); 13793 if (fd < 0) 13794 return 2; 13795 if (write (fd, data, pagesize) != pagesize) 13796 return 3; 13797 close (fd); 13798 13799 /* Next, check that the tail of a page is zero-filled. File must have 13800 non-zero length, otherwise we risk SIGBUS for entire page. */ 13801 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13802 if (fd2 < 0) 13803 return 4; 13804 cdata2 = ""; 13805 if (write (fd2, cdata2, 1) != 1) 13806 return 5; 13807 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13808 if (data2 == MAP_FAILED) 13809 return 6; 13810 for (i = 0; i < pagesize; ++i) 13811 if (*(data2 + i)) 13812 return 7; 13813 close (fd2); 13814 if (munmap (data2, pagesize)) 13815 return 8; 13816 13817 /* Next, try to mmap the file at a fixed address which already has 13818 something else allocated at it. If we can, also make sure that 13819 we see the same garbage. */ 13820 fd = open ("conftest.mmap", O_RDWR); 13821 if (fd < 0) 13822 return 9; 13823 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13824 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13825 return 10; 13826 for (i = 0; i < pagesize; ++i) 13827 if (*(data + i) != *(data2 + i)) 13828 return 11; 13829 13830 /* Finally, make sure that changes to the mapped area do not 13831 percolate back to the file as seen by read(). (This is a bug on 13832 some variants of i386 svr4.0.) */ 13833 for (i = 0; i < pagesize; ++i) 13834 *(data2 + i) = *(data2 + i) + 1; 13835 data3 = (char *) malloc (pagesize); 13836 if (!data3) 13837 return 12; 13838 if (read (fd, data3, pagesize) != pagesize) 13839 return 13; 13840 for (i = 0; i < pagesize; ++i) 13841 if (*(data + i) != *(data3 + i)) 13842 return 14; 13843 close (fd); 13844 return 0; 13845} 13846_ACEOF 13847if ac_fn_c_try_run "$LINENO"; then : 13848 ac_cv_func_mmap_fixed_mapped=yes 13849else 13850 ac_cv_func_mmap_fixed_mapped=no 13851fi 13852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13853 conftest.$ac_objext conftest.beam conftest.$ac_ext 13854fi 13855 13856fi 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13858$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13859if test $ac_cv_func_mmap_fixed_mapped = yes; then 13860 13861$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13862 13863fi 13864rm -f conftest.mmap conftest.txt 13865 13866for ac_func in link mkstemp mkostemp _mktemp_s getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r regcomp regerror regexec regfree fstatvfs fstatfs lstat 13867do : 13868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13869ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13870if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13871 cat >>confdefs.h <<_ACEOF 13872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13873_ACEOF 13874 13875fi 13876done 13877 13878 13879fc_saved_CFLAGS="$CFLAGS" 13880CFLAGS="$CFLAGS $WARN_CFLAGS -Werror" 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 13882$as_echo_n "checking for posix_fadvise... " >&6; } 13883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13884/* end confdefs.h. */ 13885 13886 #include <fcntl.h> 13887 int main(void) { 13888 return posix_fadvise(0, 0, 0, 0); 13889 } 13890 13891_ACEOF 13892if ac_fn_c_try_link "$LINENO"; then : 13893 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13895$as_echo "yes" >&6; } 13896 13897$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 13898 13899 13900else 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13902$as_echo "no" >&6; } 13903fi 13904rm -f core conftest.err conftest.$ac_objext \ 13905 conftest$ac_exeext conftest.$ac_ext 13906CFLAGS="$fc_saved_CFLAGS" 13907 13908# 13909if test "x$ac_cv_func_fstatvfs" = "xyes"; then 13910 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h> 13911" 13912if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then : 13913 13914cat >>confdefs.h <<_ACEOF 13915#define HAVE_STRUCT_STATVFS_F_BASETYPE 1 13916_ACEOF 13917 13918 13919fi 13920ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h> 13921" 13922if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then : 13923 13924cat >>confdefs.h <<_ACEOF 13925#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1 13926_ACEOF 13927 13928 13929fi 13930 13931fi 13932if test "x$ac_cv_func_fstatfs" = "xyes"; then 13933 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " 13934#ifdef HAVE_SYS_VFS_H 13935#include <sys/vfs.h> 13936#endif 13937#ifdef HAVE_SYS_STATFS_H 13938#include <sys/statfs.h> 13939#endif 13940#ifdef HAVE_SYS_PARAM_H 13941#include <sys/param.h> 13942#endif 13943#ifdef HAVE_SYS_MOUNT_H 13944#include <sys/mount.h> 13945#endif 13946" 13947if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : 13948 13949cat >>confdefs.h <<_ACEOF 13950#define HAVE_STRUCT_STATFS_F_FLAGS 1 13951_ACEOF 13952 13953 13954fi 13955ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " 13956#ifdef HAVE_SYS_VFS_H 13957#include <sys/vfs.h> 13958#endif 13959#ifdef HAVE_SYS_STATFS_H 13960#include <sys/statfs.h> 13961#endif 13962#ifdef HAVE_SYS_PARAM_H 13963#include <sys/param.h> 13964#endif 13965#ifdef HAVE_SYS_MOUNT_H 13966#include <sys/mount.h> 13967#endif 13968" 13969if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then : 13970 13971cat >>confdefs.h <<_ACEOF 13972#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 13973_ACEOF 13974 13975 13976fi 13977 13978fi 13979ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h> 13980" 13981if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : 13982 13983cat >>confdefs.h <<_ACEOF 13984#define HAVE_STRUCT_DIRENT_D_TYPE 1 13985_ACEOF 13986 13987 13988fi 13989 13990# 13991# regex 13992# 13993if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then 13994 13995$as_echo "#define USE_REGEX /**/" >>confdefs.h 13996 13997fi 13998 13999# 14000# Checks for iconv 14001# 14002# Check whether --enable-iconv was given. 14003if test "${enable_iconv+set}" = set; then : 14004 enableval=$enable_iconv; 14005else 14006 enable_iconv=no 14007fi 14008 14009 14010# Check whether --with-libiconv was given. 14011if test "${with_libiconv+set}" = set; then : 14012 withval=$with_libiconv; if test "x$withval" = "xyes"; then 14013 libiconv_prefix=$prefix 14014 else 14015 libiconv_prefix=$withval 14016 fi 14017else 14018 libiconv_prefix=auto 14019fi 14020 14021 14022# Check whether --with-libiconv-includes was given. 14023if test "${with_libiconv_includes+set}" = set; then : 14024 withval=$with_libiconv_includes; libiconv_includes=$withval 14025else 14026 libiconv_includes=auto 14027fi 14028 14029 14030# Check whether --with-libiconv-lib was given. 14031if test "${with_libiconv_lib+set}" = set; then : 14032 withval=$with_libiconv_lib; libiconv_lib=$withval 14033else 14034 libiconv_lib=auto 14035fi 14036 14037 14038# if no libiconv,libiconv-includes,libiconv-lib are specified, 14039# libc's iconv has a priority. 14040if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then 14041 libiconv_cflags="-I${libiconv_includes}" 14042elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then 14043 libiconv_cflags="-I${libiconv_prefix}/include" 14044else 14045 libiconv_cflags="" 14046fi 14047libiconv_libs="" 14048if test "x$libiconv_cflags" != "x"; then 14049 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then 14050 libiconv_libs="-L${libiconv_lib} -liconv" 14051 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then 14052 libiconv_libs="-L${libiconv_prefix}/lib -liconv" 14053 else 14054 libiconv_libs="-liconv" 14055 fi 14056fi 14057 14058use_iconv=0 14059if test "x$enable_iconv" != "xno"; then 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5 14061$as_echo_n "checking for a usable iconv... " >&6; } 14062 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then 14063 iconvsaved_CFLAGS="$CFLAGS" 14064 iconvsaved_LIBS="$LIBS" 14065 CFLAGS="$CFLAGS $libiconv_cflags" 14066 LIBS="$LIBS $libiconv_libs" 14067 14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14069/* end confdefs.h. */ 14070#include <iconv.h> 14071int 14072main () 14073{ 14074iconv_open ("from", "to"); 14075 ; 14076 return 0; 14077} 14078_ACEOF 14079if ac_fn_c_try_link "$LINENO"; then : 14080 iconv_type="libiconv" 14081 use_iconv=1 14082else 14083 use_iconv=0 14084fi 14085rm -f core conftest.err conftest.$ac_objext \ 14086 conftest$ac_exeext conftest.$ac_ext 14087 14088 CFLAGS="$iconvsaved_CFLAGS" 14089 LIBS="$iconvsaved_LIBS" 14090 ICONV_CFLAGS="$libiconv_cflags" 14091 ICONV_LIBS="$libiconv_libs" 14092 fi 14093 if test "x$use_iconv" = "x0"; then 14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14095/* end confdefs.h. */ 14096#include <iconv.h> 14097int 14098main () 14099{ 14100iconv_open ("from", "to"); 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105if ac_fn_c_try_link "$LINENO"; then : 14106 iconv_type="libc" 14107 use_iconv=1 14108else 14109 iconv_type="not found" 14110 use_iconv=0 14111fi 14112rm -f core conftest.err conftest.$ac_objext \ 14113 conftest$ac_exeext conftest.$ac_ext 14114 fi 14115 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5 14117$as_echo "$iconv_type" >&6; } 14118 14119 14120fi 14121 14122cat >>confdefs.h <<_ACEOF 14123#define USE_ICONV $use_iconv 14124_ACEOF 14125 14126# 14127# Checks for FreeType 14128# 14129 14130pkg_failed=no 14131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 14132$as_echo_n "checking for FREETYPE... " >&6; } 14133 14134if test -n "$FREETYPE_CFLAGS"; then 14135 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 14136 elif test -n "$PKG_CONFIG"; then 14137 if test -n "$PKG_CONFIG" && \ 14138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 14139 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 14140 ac_status=$? 14141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14142 test $ac_status = 0; }; then 14143 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 14144 test "x$?" != "x0" && pkg_failed=yes 14145else 14146 pkg_failed=yes 14147fi 14148 else 14149 pkg_failed=untried 14150fi 14151if test -n "$FREETYPE_LIBS"; then 14152 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 14153 elif test -n "$PKG_CONFIG"; then 14154 if test -n "$PKG_CONFIG" && \ 14155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 14156 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 14157 ac_status=$? 14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14159 test $ac_status = 0; }; then 14160 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 14161 test "x$?" != "x0" && pkg_failed=yes 14162else 14163 pkg_failed=yes 14164fi 14165 else 14166 pkg_failed=untried 14167fi 14168 14169 14170 14171if test $pkg_failed = yes; then 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14173$as_echo "no" >&6; } 14174 14175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14176 _pkg_short_errors_supported=yes 14177else 14178 _pkg_short_errors_supported=no 14179fi 14180 if test $_pkg_short_errors_supported = yes; then 14181 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 14182 else 14183 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 14184 fi 14185 # Put the nasty error message in config.log where it belongs 14186 echo "$FREETYPE_PKG_ERRORS" >&5 14187 14188 as_fn_error $? "Package requirements (freetype2) were not met: 14189 14190$FREETYPE_PKG_ERRORS 14191 14192Consider adjusting the PKG_CONFIG_PATH environment variable if you 14193installed software in a non-standard prefix. 14194 14195Alternatively, you may set the environment variables FREETYPE_CFLAGS 14196and FREETYPE_LIBS to avoid the need to call pkg-config. 14197See the pkg-config man page for more details." "$LINENO" 5 14198elif test $pkg_failed = untried; then 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14200$as_echo "no" >&6; } 14201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14203as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14204is in your PATH or set the PKG_CONFIG environment variable to the full 14205path to pkg-config. 14206 14207Alternatively, you may set the environment variables FREETYPE_CFLAGS 14208and FREETYPE_LIBS to avoid the need to call pkg-config. 14209See the pkg-config man page for more details. 14210 14211To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14212See \`config.log' for more details" "$LINENO" 5; } 14213else 14214 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 14215 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14217$as_echo "yes" >&6; } 14218 14219fi 14220 14221 14222 14223 14224fontconfig_save_libs="$LIBS" 14225fontconfig_save_cflags="$CFLAGS" 14226LIBS="$LIBS $FREETYPE_LIBS" 14227CFLAGS="$CFLAGS $FREETYPE_CFLAGS" 14228for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size 14229do : 14230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14232if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14233 cat >>confdefs.h <<_ACEOF 14234#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14235_ACEOF 14236 14237fi 14238done 14239 14240ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h> 14241#include FT_FREETYPE_H 14242" 14243if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then : 14244 HAVE_FT_BITMAP_SIZE_Y_PPEM=1 14245else 14246 HAVE_FT_BITMAP_SIZE_Y_PPEM=0 14247fi 14248 14249 14250cat >>confdefs.h <<_ACEOF 14251#define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM 14252_ACEOF 14253 14254CFLAGS="$fontconfig_save_cflags" 14255LIBS="$fontconfig_save_libs" 14256 14257# 14258# Check expat configuration 14259# 14260 14261# Check whether --with-expat was given. 14262if test "${with_expat+set}" = set; then : 14263 withval=$with_expat; expat_prefix=$withval 14264else 14265 expat_prefix=auto 14266fi 14267 14268 14269# Check whether --with-expat-includes was given. 14270if test "${with_expat_includes+set}" = set; then : 14271 withval=$with_expat_includes; expat_includes=$withval 14272else 14273 expat_includes=auto 14274fi 14275 14276 14277# Check whether --with-expat-lib was given. 14278if test "${with_expat_lib+set}" = set; then : 14279 withval=$with_expat_lib; expat_lib=$withval 14280else 14281 expat_lib=auto 14282fi 14283 14284 14285if test "$enable_libxml2" != "yes"; then 14286 use_pkgconfig_for_expat=yes 14287 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then 14288 14289pkg_failed=no 14290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5 14291$as_echo_n "checking for EXPAT... " >&6; } 14292 14293if test -n "$EXPAT_CFLAGS"; then 14294 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" 14295 elif test -n "$PKG_CONFIG"; then 14296 if test -n "$PKG_CONFIG" && \ 14297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 14298 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 14299 ac_status=$? 14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14301 test $ac_status = 0; }; then 14302 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` 14303 test "x$?" != "x0" && pkg_failed=yes 14304else 14305 pkg_failed=yes 14306fi 14307 else 14308 pkg_failed=untried 14309fi 14310if test -n "$EXPAT_LIBS"; then 14311 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" 14312 elif test -n "$PKG_CONFIG"; then 14313 if test -n "$PKG_CONFIG" && \ 14314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 14315 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 14316 ac_status=$? 14317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14318 test $ac_status = 0; }; then 14319 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` 14320 test "x$?" != "x0" && pkg_failed=yes 14321else 14322 pkg_failed=yes 14323fi 14324 else 14325 pkg_failed=untried 14326fi 14327 14328 14329 14330if test $pkg_failed = yes; then 14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14332$as_echo "no" >&6; } 14333 14334if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14335 _pkg_short_errors_supported=yes 14336else 14337 _pkg_short_errors_supported=no 14338fi 14339 if test $_pkg_short_errors_supported = yes; then 14340 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` 14341 else 14342 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` 14343 fi 14344 # Put the nasty error message in config.log where it belongs 14345 echo "$EXPAT_PKG_ERRORS" >&5 14346 14347 use_pkgconfig_for_expat=no 14348elif test $pkg_failed = untried; then 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14350$as_echo "no" >&6; } 14351 use_pkgconfig_for_expat=no 14352else 14353 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS 14354 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14356$as_echo "yes" >&6; } 14357 14358fi 14359 else 14360 use_pkgconfig_for_expat=no 14361 fi 14362 if test "x$use_pkgconfig_for_expat" = "xno"; then 14363 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then 14364 EXPAT_CFLAGS="-I${expat_includes}" 14365 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then 14366 EXPAT_CFLAGS="-I${expat_prefix}/include" 14367 else 14368 EXPAT_CFLAGS="" 14369 fi 14370 if test "$expat_lib" != "auto"; then 14371 EXPAT_LIBS="-L${expat_lib} -lexpat" 14372 elif test "$expat_prefix" != "auto"; then 14373 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat" 14374 else 14375 EXPAT_LIBS="-lexpat" 14376 fi 14377 fi 14378 14379 expatsaved_CPPFLAGS="$CPPFLAGS" 14380 expatsaved_LIBS="$LIBS" 14381 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS" 14382 LIBS="$LIBS $EXPAT_LIBS" 14383 14384 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" 14385if test "x$ac_cv_header_expat_h" = xyes; then : 14386 14387fi 14388 14389 14390 if test "$ac_cv_header_expat_h" = "no"; then 14391 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default" 14392if test "x$ac_cv_header_xmlparse_h" = xyes; then : 14393 14394fi 14395 14396 14397 if test "$ac_cv_header_xmlparse_h" = "yes"; then 14398 HAVE_XMLPARSE_H=1 14399 14400 14401cat >>confdefs.h <<_ACEOF 14402#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H 14403_ACEOF 14404 14405 else 14406 as_fn_error $? " 14407*** expat is required. or try to use --enable-libxml2" "$LINENO" 5 14408 fi 14409 fi 14410 for ac_func in XML_SetDoctypeDeclHandler 14411do : 14412 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler" 14413if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then : 14414 cat >>confdefs.h <<_ACEOF 14415#define HAVE_XML_SETDOCTYPEDECLHANDLER 1 14416_ACEOF 14417 14418fi 14419done 14420 14421 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then 14422 as_fn_error $? " 14423*** expat is required. or try to use --enable-libxml2" "$LINENO" 5 14424 fi 14425 CPPFLAGS="$expatsaved_CPPFLAGS" 14426 LIBS="$expatsaved_LIBS" 14427 14428 14429 14430fi 14431 14432# 14433# Check libxml2 configuration 14434# 14435# Check whether --enable-libxml2 was given. 14436if test "${enable_libxml2+set}" = set; then : 14437 enableval=$enable_libxml2; 14438fi 14439 14440 14441if test "$enable_libxml2" = "yes"; then 14442 14443pkg_failed=no 14444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5 14445$as_echo_n "checking for LIBXML2... " >&6; } 14446 14447if test -n "$LIBXML2_CFLAGS"; then 14448 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 14449 elif test -n "$PKG_CONFIG"; then 14450 if test -n "$PKG_CONFIG" && \ 14451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5 14452 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5 14453 ac_status=$? 14454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14455 test $ac_status = 0; }; then 14456 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null` 14457 test "x$?" != "x0" && pkg_failed=yes 14458else 14459 pkg_failed=yes 14460fi 14461 else 14462 pkg_failed=untried 14463fi 14464if test -n "$LIBXML2_LIBS"; then 14465 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 14466 elif test -n "$PKG_CONFIG"; then 14467 if test -n "$PKG_CONFIG" && \ 14468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5 14469 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5 14470 ac_status=$? 14471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14472 test $ac_status = 0; }; then 14473 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null` 14474 test "x$?" != "x0" && pkg_failed=yes 14475else 14476 pkg_failed=yes 14477fi 14478 else 14479 pkg_failed=untried 14480fi 14481 14482 14483 14484if test $pkg_failed = yes; then 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14486$as_echo "no" >&6; } 14487 14488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14489 _pkg_short_errors_supported=yes 14490else 14491 _pkg_short_errors_supported=no 14492fi 14493 if test $_pkg_short_errors_supported = yes; then 14494 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1` 14495 else 14496 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1` 14497 fi 14498 # Put the nasty error message in config.log where it belongs 14499 echo "$LIBXML2_PKG_ERRORS" >&5 14500 14501 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met: 14502 14503$LIBXML2_PKG_ERRORS 14504 14505Consider adjusting the PKG_CONFIG_PATH environment variable if you 14506installed software in a non-standard prefix. 14507 14508Alternatively, you may set the environment variables LIBXML2_CFLAGS 14509and LIBXML2_LIBS to avoid the need to call pkg-config. 14510See the pkg-config man page for more details." "$LINENO" 5 14511elif test $pkg_failed = untried; then 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14513$as_echo "no" >&6; } 14514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14516as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14517is in your PATH or set the PKG_CONFIG environment variable to the full 14518path to pkg-config. 14519 14520Alternatively, you may set the environment variables LIBXML2_CFLAGS 14521and LIBXML2_LIBS to avoid the need to call pkg-config. 14522See the pkg-config man page for more details. 14523 14524To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14525See \`config.log' for more details" "$LINENO" 5; } 14526else 14527 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 14528 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14530$as_echo "yes" >&6; } 14531 14532fi 14533 14534cat >>confdefs.h <<_ACEOF 14535#define ENABLE_LIBXML2 1 14536_ACEOF 14537 14538 14539 14540 14541 14542 fc_saved_CFLAGS="$CFLAGS" 14543 CFLAGS="$CFLAGS $LIBXML2_CFLAGS" 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5 14545$as_echo_n "checking SAX1 support in libxml2... " >&6; } 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548 14549 #include <libxml/xmlversion.h> 14550 #if !defined(LIBXML_SAX1_ENABLED) 14551 # include "error: No SAX1 support in libxml2" 14552 #endif 14553 14554_ACEOF 14555if ac_fn_c_try_compile "$LINENO"; then : 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 14557$as_echo "found" >&6; } 14558else 14559 as_fn_error $? " 14560*** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5 14561fi 14562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14563 CFLAGS="$fc_saved_CFLAGS" 14564fi 14565 14566# 14567# Set default font directory 14568# 14569 14570 14571# Check whether --with-default-fonts was given. 14572if test "${with_default_fonts+set}" = set; then : 14573 withval=$with_default_fonts; default_fonts="$withval" 14574else 14575 default_fonts=yes 14576fi 14577 14578 14579case "$default_fonts" in 14580yes) 14581 if test "$os_win32" = "yes"; then 14582 FC_DEFAULT_FONTS="WINDOWSFONTDIR" 14583 14584cat >>confdefs.h <<_ACEOF 14585#define FC_DEFAULT_FONTS "WINDOWSFONTDIR" 14586_ACEOF 14587 14588 else 14589 FC_DEFAULT_FONTS="/usr/share/fonts" 14590 14591cat >>confdefs.h <<_ACEOF 14592#define FC_DEFAULT_FONTS "/usr/share/fonts" 14593_ACEOF 14594 14595 fi 14596 ;; 14597*) 14598 FC_DEFAULT_FONTS="$default_fonts" 14599 14600cat >>confdefs.h <<_ACEOF 14601#define FC_DEFAULT_FONTS "$default_fonts" 14602_ACEOF 14603 14604 ;; 14605esac 14606 14607 14608 14609# 14610# Add more fonts if available. By default, add only the directories 14611# with outline fonts; those with bitmaps can be added as desired in 14612# local.conf or ~/.fonts.conf 14613# 14614 14615# Check whether --with-add-fonts was given. 14616if test "${with_add_fonts+set}" = set; then : 14617 withval=$with_add_fonts; add_fonts="$withval" 14618else 14619 add_fonts=yes 14620fi 14621 14622 14623case "$add_fonts" in 14624yes) 14625 FC_ADD_FONTS="" 14626 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do 14627 case x"$FC_ADD_FONTS" in 14628 x) 14629 sub="$dir/fonts" 14630 if test -d "$sub"; then 14631 case x$FC_ADD_FONTS in 14632 x) 14633 FC_ADD_FONTS="$sub" 14634 ;; 14635 *) 14636 FC_ADD_FONTS="$FC_ADD_FONTS,$sub" 14637 ;; 14638 esac 14639 fi 14640 ;; 14641 esac 14642 done 14643 14644cat >>confdefs.h <<_ACEOF 14645#define FC_ADD_FONTS "$add_fonts" 14646_ACEOF 14647 14648 ;; 14649no) 14650 FC_ADD_FONTS="" 14651 ;; 14652*) 14653 FC_ADD_FONTS="$add_fonts" 14654 14655cat >>confdefs.h <<_ACEOF 14656#define FC_ADD_FONTS "$add_fonts" 14657_ACEOF 14658 14659 ;; 14660esac 14661 14662 14663 14664FC_FONTPATH="" 14665 14666case "$FC_ADD_FONTS" in 14667"") 14668 ;; 14669*) 14670 FC_FONTPATH=`echo $FC_ADD_FONTS | 14671 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'` 14672 ;; 14673esac 14674 14675 14676 14677# 14678# Set default cache directory path 14679# 14680 14681# Check whether --with-cache-dir was given. 14682if test "${with_cache_dir+set}" = set; then : 14683 withval=$with_cache_dir; fc_cachedir="$withval" 14684else 14685 fc_cachedir=yes 14686fi 14687 14688 14689case $fc_cachedir in 14690no|yes) 14691 if test "$os_win32" = "yes"; then 14692 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE" 14693 else 14694 fc_cachedir='${localstatedir}/cache/${PACKAGE}' 14695 fi 14696 ;; 14697*) 14698 ;; 14699esac 14700 14701FC_CACHEDIR=${fc_cachedir} 14702 14703 14704FC_FONTDATE=`LC_ALL=C date` 14705 14706 14707 14708# 14709# Set configuration paths 14710# 14711 14712 14713# Check whether --with-templatedir was given. 14714if test "${with_templatedir+set}" = set; then : 14715 withval=$with_templatedir; templatedir="$withval" 14716else 14717 templatedir=yes 14718fi 14719 14720 14721# Check whether --with-baseconfigdir was given. 14722if test "${with_baseconfigdir+set}" = set; then : 14723 withval=$with_baseconfigdir; baseconfigdir="$withval" 14724else 14725 baseconfigdir=yes 14726fi 14727 14728 14729# Check whether --with-configdir was given. 14730if test "${with_configdir+set}" = set; then : 14731 withval=$with_configdir; configdir="$withval" 14732else 14733 configdir=yes 14734fi 14735 14736 14737# Check whether --with-xmldir was given. 14738if test "${with_xmldir+set}" = set; then : 14739 withval=$with_xmldir; xmldir="$withval" 14740else 14741 xmldir=yes 14742fi 14743 14744 14745case "$templatedir" in 14746no|yes) 14747 templatedir='${datadir}'/fontconfig/conf.avail 14748 ;; 14749*) 14750 ;; 14751esac 14752case "$baseconfigdir" in 14753no|yes) 14754 baseconfigdir='${sysconfdir}'/fonts 14755 ;; 14756*) 14757 ;; 14758esac 14759case "$configdir" in 14760no|yes) 14761 configdir='${baseconfigdir}'/conf.d 14762 ;; 14763*) 14764 ;; 14765esac 14766case "$xmldir" in 14767no|yes) 14768 xmldir='${datadir}'/xml/fontconfig 14769 ;; 14770*) 14771 ;; 14772esac 14773 14774TEMPLATEDIR=${templatedir} 14775BASECONFIGDIR=${baseconfigdir} 14776CONFIGDIR=${configdir} 14777XMLDIR=${xmldir} 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789# 14790# Thread-safety primitives 14791# 14792 14793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5 14794$as_echo_n "checking for Intel atomic primitives... " >&6; } 14795if ${fc_cv_have_intel_atomic_primitives+:} false; then : 14796 $as_echo_n "(cached) " >&6 14797else 14798 14799 fc_cv_have_intel_atomic_primitives=false 14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14801/* end confdefs.h. */ 14802 14803 void memory_barrier (void) { __sync_synchronize (); } 14804 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); } 14805 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); } 14806 void mutex_unlock (int *m) { __sync_lock_release (m); } 14807 14808int 14809main () 14810{ 14811 14812 ; 14813 return 0; 14814} 14815_ACEOF 14816if ac_fn_c_try_link "$LINENO"; then : 14817 fc_cv_have_intel_atomic_primitives=true 14818 14819fi 14820rm -f core conftest.err conftest.$ac_objext \ 14821 conftest$ac_exeext conftest.$ac_ext 14822 14823fi 14824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5 14825$as_echo "$fc_cv_have_intel_atomic_primitives" >&6; } 14826if $fc_cv_have_intel_atomic_primitives; then 14827 14828$as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h 14829 14830fi 14831 14832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5 14833$as_echo_n "checking for Solaris atomic operations... " >&6; } 14834if ${fc_cv_have_solaris_atomic_ops+:} false; then : 14835 $as_echo_n "(cached) " >&6 14836else 14837 14838 fc_cv_have_solaris_atomic_ops=false 14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14840/* end confdefs.h. */ 14841 14842 #include <atomic.h> 14843 /* This requires Solaris Studio 12.2 or newer: */ 14844 #include <mbarrier.h> 14845 void memory_barrier (void) { __machine_rw_barrier (); } 14846 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); } 14847 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); } 14848 14849int 14850main () 14851{ 14852 14853 ; 14854 return 0; 14855} 14856_ACEOF 14857if ac_fn_c_try_link "$LINENO"; then : 14858 fc_cv_have_solaris_atomic_ops=true 14859 14860fi 14861rm -f core conftest.err conftest.$ac_objext \ 14862 conftest$ac_exeext conftest.$ac_ext 14863 14864fi 14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5 14866$as_echo "$fc_cv_have_solaris_atomic_ops" >&6; } 14867if $fc_cv_have_solaris_atomic_ops; then 14868 14869$as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h 14870 14871fi 14872 14873if test "$os_win32" = no && ! $have_pthread; then 14874 for ac_header in sched.h 14875do : 14876 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 14877if test "x$ac_cv_header_sched_h" = xyes; then : 14878 cat >>confdefs.h <<_ACEOF 14879#define HAVE_SCHED_H 1 14880_ACEOF 14881 14882fi 14883 14884done 14885 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 14887$as_echo_n "checking for library containing sched_yield... " >&6; } 14888if ${ac_cv_search_sched_yield+:} false; then : 14889 $as_echo_n "(cached) " >&6 14890else 14891 ac_func_search_save_LIBS=$LIBS 14892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894 14895/* Override any GCC internal prototype to avoid an error. 14896 Use char because int might match the return type of a GCC 14897 builtin and then its argument prototype would still apply. */ 14898#ifdef __cplusplus 14899extern "C" 14900#endif 14901char sched_yield (); 14902int 14903main () 14904{ 14905return sched_yield (); 14906 ; 14907 return 0; 14908} 14909_ACEOF 14910for ac_lib in '' rt; do 14911 if test -z "$ac_lib"; then 14912 ac_res="none required" 14913 else 14914 ac_res=-l$ac_lib 14915 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14916 fi 14917 if ac_fn_c_try_link "$LINENO"; then : 14918 ac_cv_search_sched_yield=$ac_res 14919fi 14920rm -f core conftest.err conftest.$ac_objext \ 14921 conftest$ac_exeext 14922 if ${ac_cv_search_sched_yield+:} false; then : 14923 break 14924fi 14925done 14926if ${ac_cv_search_sched_yield+:} false; then : 14927 14928else 14929 ac_cv_search_sched_yield=no 14930fi 14931rm conftest.$ac_ext 14932LIBS=$ac_func_search_save_LIBS 14933fi 14934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 14935$as_echo "$ac_cv_search_sched_yield" >&6; } 14936ac_res=$ac_cv_search_sched_yield 14937if test "$ac_res" != no; then : 14938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14939 14940$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h 14941 14942fi 14943 14944fi 14945 14946have_pthread=false 14947if test "$os_win32" = no; then 14948 14949 14950ac_ext=c 14951ac_cpp='$CPP $CPPFLAGS' 14952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14954ac_compiler_gnu=$ac_cv_c_compiler_gnu 14955 14956ax_pthread_ok=no 14957 14958# We used to check for pthread.h first, but this fails if pthread.h 14959# requires special compiler flags (e.g. on True64 or Sequent). 14960# It gets checked for in the link test anyway. 14961 14962# First of all, check if the user has set any of the PTHREAD_LIBS, 14963# etcetera environment variables, and if threads linking works using 14964# them: 14965if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 14966 save_CFLAGS="$CFLAGS" 14967 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14968 save_LIBS="$LIBS" 14969 LIBS="$PTHREAD_LIBS $LIBS" 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 14971$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973/* end confdefs.h. */ 14974 14975/* Override any GCC internal prototype to avoid an error. 14976 Use char because int might match the return type of a GCC 14977 builtin and then its argument prototype would still apply. */ 14978#ifdef __cplusplus 14979extern "C" 14980#endif 14981char pthread_join (); 14982int 14983main () 14984{ 14985return pthread_join (); 14986 ; 14987 return 0; 14988} 14989_ACEOF 14990if ac_fn_c_try_link "$LINENO"; then : 14991 ax_pthread_ok=yes 14992fi 14993rm -f core conftest.err conftest.$ac_objext \ 14994 conftest$ac_exeext conftest.$ac_ext 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14996$as_echo "$ax_pthread_ok" >&6; } 14997 if test x"$ax_pthread_ok" = xno; then 14998 PTHREAD_LIBS="" 14999 PTHREAD_CFLAGS="" 15000 fi 15001 LIBS="$save_LIBS" 15002 CFLAGS="$save_CFLAGS" 15003fi 15004 15005# We must check for the threads library under a number of different 15006# names; the ordering is very important because some systems 15007# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15008# libraries is broken (non-POSIX). 15009 15010# Create a list of thread flags to try. Items starting with a "-" are 15011# C compiler flags, and other items are library names, except for "none" 15012# which indicates that we try without any flags at all, and "pthread-config" 15013# which is a program returning the flags for the Pth emulation library. 15014 15015ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15016 15017# The ordering *is* (sometimes) important. Some notes on the 15018# individual items follow: 15019 15020# pthreads: AIX (must check this before -lpthread) 15021# none: in case threads are in libc; should be tried before -Kthread and 15022# other compiler flags to prevent continual compiler warnings 15023# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15024# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15025# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15026# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15027# -pthreads: Solaris/gcc 15028# -mthreads: Mingw32/gcc, Lynx/gcc 15029# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15030# doesn't hurt to check since this sometimes defines pthreads too; 15031# also defines -D_REENTRANT) 15032# ... -mt is also the pthreads flag for HP/aCC 15033# pthread: Linux, etcetera 15034# --thread-safe: KAI C++ 15035# pthread-config: use pthread-config program (for GNU Pth library) 15036 15037case ${host_os} in 15038 solaris*) 15039 15040 # On Solaris (at least, for some versions), libc contains stubbed 15041 # (non-functional) versions of the pthreads routines, so link-based 15042 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15043 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15044 # a function called by this macro, so we could check for that, but 15045 # who knows whether they'll stub that too in a future libc.) So, 15046 # we'll just look for -pthreads and -lpthread first: 15047 15048 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15049 ;; 15050 15051 darwin*) 15052 ax_pthread_flags="-pthread $ax_pthread_flags" 15053 ;; 15054esac 15055 15056if test x"$ax_pthread_ok" = xno; then 15057for flag in $ax_pthread_flags; do 15058 15059 case $flag in 15060 none) 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15062$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15063 ;; 15064 15065 -*) 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15067$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15068 PTHREAD_CFLAGS="$flag" 15069 ;; 15070 15071 pthread-config) 15072 # Extract the first word of "pthread-config", so it can be a program name with args. 15073set dummy pthread-config; ac_word=$2 15074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15075$as_echo_n "checking for $ac_word... " >&6; } 15076if ${ac_cv_prog_ax_pthread_config+:} false; then : 15077 $as_echo_n "(cached) " >&6 15078else 15079 if test -n "$ax_pthread_config"; then 15080 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15081else 15082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15083for as_dir in $PATH 15084do 15085 IFS=$as_save_IFS 15086 test -z "$as_dir" && as_dir=. 15087 for ac_exec_ext in '' $ac_executable_extensions; do 15088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15089 ac_cv_prog_ax_pthread_config="yes" 15090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15091 break 2 15092 fi 15093done 15094 done 15095IFS=$as_save_IFS 15096 15097 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15098fi 15099fi 15100ax_pthread_config=$ac_cv_prog_ax_pthread_config 15101if test -n "$ax_pthread_config"; then 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15103$as_echo "$ax_pthread_config" >&6; } 15104else 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15106$as_echo "no" >&6; } 15107fi 15108 15109 15110 if test x"$ax_pthread_config" = xno; then continue; fi 15111 PTHREAD_CFLAGS="`pthread-config --cflags`" 15112 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15113 ;; 15114 15115 *) 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15117$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15118 PTHREAD_LIBS="-l$flag" 15119 ;; 15120 esac 15121 15122 save_LIBS="$LIBS" 15123 save_CFLAGS="$CFLAGS" 15124 LIBS="$PTHREAD_LIBS $LIBS" 15125 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15126 15127 # Check for various functions. We must include pthread.h, 15128 # since some functions may be macros. (On the Sequent, we 15129 # need a special flag -Kthread to make this header compile.) 15130 # We check for pthread_join because it is in -lpthread on IRIX 15131 # while pthread_create is in libc. We check for pthread_attr_init 15132 # due to DEC craziness with -lpthreads. We check for 15133 # pthread_cleanup_push because it is one of the few pthread 15134 # functions on Solaris that doesn't have a non-functional libc stub. 15135 # We try pthread_create on general principles. 15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15137/* end confdefs.h. */ 15138#include <pthread.h> 15139 static void routine(void *a) { a = 0; } 15140 static void *start_routine(void *a) { return a; } 15141int 15142main () 15143{ 15144pthread_t th; pthread_attr_t attr; 15145 pthread_create(&th, 0, start_routine, 0); 15146 pthread_join(th, 0); 15147 pthread_attr_init(&attr); 15148 pthread_cleanup_push(routine, 0); 15149 pthread_cleanup_pop(0) /* ; */ 15150 ; 15151 return 0; 15152} 15153_ACEOF 15154if ac_fn_c_try_link "$LINENO"; then : 15155 ax_pthread_ok=yes 15156fi 15157rm -f core conftest.err conftest.$ac_objext \ 15158 conftest$ac_exeext conftest.$ac_ext 15159 15160 LIBS="$save_LIBS" 15161 CFLAGS="$save_CFLAGS" 15162 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15164$as_echo "$ax_pthread_ok" >&6; } 15165 if test "x$ax_pthread_ok" = xyes; then 15166 break; 15167 fi 15168 15169 PTHREAD_LIBS="" 15170 PTHREAD_CFLAGS="" 15171done 15172fi 15173 15174# Various other checks: 15175if test "x$ax_pthread_ok" = xyes; then 15176 save_LIBS="$LIBS" 15177 LIBS="$PTHREAD_LIBS $LIBS" 15178 save_CFLAGS="$CFLAGS" 15179 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15180 15181 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15183$as_echo_n "checking for joinable pthread attribute... " >&6; } 15184 attr_name=unknown 15185 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15187/* end confdefs.h. */ 15188#include <pthread.h> 15189int 15190main () 15191{ 15192int attr = $attr; return attr /* ; */ 15193 ; 15194 return 0; 15195} 15196_ACEOF 15197if ac_fn_c_try_link "$LINENO"; then : 15198 attr_name=$attr; break 15199fi 15200rm -f core conftest.err conftest.$ac_objext \ 15201 conftest$ac_exeext conftest.$ac_ext 15202 done 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15204$as_echo "$attr_name" >&6; } 15205 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15206 15207cat >>confdefs.h <<_ACEOF 15208#define PTHREAD_CREATE_JOINABLE $attr_name 15209_ACEOF 15210 15211 fi 15212 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15214$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15215 flag=no 15216 case ${host_os} in 15217 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15218 osf* | hpux*) flag="-D_REENTRANT";; 15219 solaris*) 15220 if test "$GCC" = "yes"; then 15221 flag="-D_REENTRANT" 15222 else 15223 flag="-mt -D_REENTRANT" 15224 fi 15225 ;; 15226 esac 15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15228$as_echo "${flag}" >&6; } 15229 if test "x$flag" != xno; then 15230 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15231 fi 15232 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15234$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15235if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15236 $as_echo_n "(cached) " >&6 15237else 15238 15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15240/* end confdefs.h. */ 15241 15242 #include <pthread.h> 15243int 15244main () 15245{ 15246int i = PTHREAD_PRIO_INHERIT; 15247 ; 15248 return 0; 15249} 15250_ACEOF 15251if ac_fn_c_try_link "$LINENO"; then : 15252 ax_cv_PTHREAD_PRIO_INHERIT=yes 15253else 15254 ax_cv_PTHREAD_PRIO_INHERIT=no 15255fi 15256rm -f core conftest.err conftest.$ac_objext \ 15257 conftest$ac_exeext conftest.$ac_ext 15258 15259fi 15260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15261$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15262 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 15263 15264$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15265 15266fi 15267 15268 LIBS="$save_LIBS" 15269 CFLAGS="$save_CFLAGS" 15270 15271 # More AIX lossage: must compile with xlc_r or cc_r 15272 if test x"$GCC" != xyes; then 15273 for ac_prog in xlc_r cc_r 15274do 15275 # Extract the first word of "$ac_prog", so it can be a program name with args. 15276set dummy $ac_prog; ac_word=$2 15277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15278$as_echo_n "checking for $ac_word... " >&6; } 15279if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15280 $as_echo_n "(cached) " >&6 15281else 15282 if test -n "$PTHREAD_CC"; then 15283 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15284else 15285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15286for as_dir in $PATH 15287do 15288 IFS=$as_save_IFS 15289 test -z "$as_dir" && as_dir=. 15290 for ac_exec_ext in '' $ac_executable_extensions; do 15291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15292 ac_cv_prog_PTHREAD_CC="$ac_prog" 15293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15294 break 2 15295 fi 15296done 15297 done 15298IFS=$as_save_IFS 15299 15300fi 15301fi 15302PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15303if test -n "$PTHREAD_CC"; then 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15305$as_echo "$PTHREAD_CC" >&6; } 15306else 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15308$as_echo "no" >&6; } 15309fi 15310 15311 15312 test -n "$PTHREAD_CC" && break 15313done 15314test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15315 15316 else 15317 PTHREAD_CC=$CC 15318 fi 15319else 15320 PTHREAD_CC="$CC" 15321fi 15322 15323 15324 15325 15326 15327# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15328if test x"$ax_pthread_ok" = xyes; then 15329 have_pthread=true 15330 : 15331else 15332 ax_pthread_ok=no 15333 15334fi 15335ac_ext=c 15336ac_cpp='$CPP $CPPFLAGS' 15337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15339ac_compiler_gnu=$ac_cv_c_compiler_gnu 15340 15341 15342fi 15343if $have_pthread; then 15344 LIBS="$PTHREAD_LIBS $LIBS" 15345 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15346 CC="$PTHREAD_CC" 15347 15348$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15349 15350fi 15351 if $have_pthread; then 15352 HAVE_PTHREAD_TRUE= 15353 HAVE_PTHREAD_FALSE='#' 15354else 15355 HAVE_PTHREAD_TRUE='#' 15356 HAVE_PTHREAD_FALSE= 15357fi 15358 15359 15360 15361 15362# 15363# Let people not build/install docs if they don't have docbook 15364# 15365 15366# Extract the first word of "docbook2html", so it can be a program name with args. 15367set dummy docbook2html; ac_word=$2 15368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15369$as_echo_n "checking for $ac_word... " >&6; } 15370if ${ac_cv_prog_HASDOCBOOK+:} false; then : 15371 $as_echo_n "(cached) " >&6 15372else 15373 if test -n "$HASDOCBOOK"; then 15374 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test. 15375else 15376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15377for as_dir in $PATH 15378do 15379 IFS=$as_save_IFS 15380 test -z "$as_dir" && as_dir=. 15381 for ac_exec_ext in '' $ac_executable_extensions; do 15382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15383 ac_cv_prog_HASDOCBOOK="yes" 15384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15385 break 2 15386 fi 15387done 15388 done 15389IFS=$as_save_IFS 15390 15391 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no" 15392fi 15393fi 15394HASDOCBOOK=$ac_cv_prog_HASDOCBOOK 15395if test -n "$HASDOCBOOK"; then 15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5 15397$as_echo "$HASDOCBOOK" >&6; } 15398else 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15400$as_echo "no" >&6; } 15401fi 15402 15403 15404 15405 if test "x$HASDOCBOOK" = xyes; then 15406 USEDOCBOOK_TRUE= 15407 USEDOCBOOK_FALSE='#' 15408else 15409 USEDOCBOOK_TRUE='#' 15410 USEDOCBOOK_FALSE= 15411fi 15412 15413 15414default_docs="yes" 15415# 15416# Check if docs exist or can be created 15417# 15418if test x$HASDOCBOOK = xno; then 15419 if test -f $srcdir/doc/fonts-conf.5; then 15420 : 15421 else 15422 default_docs="no" 15423 fi 15424fi 15425 15426# Check whether --enable-docs was given. 15427if test "${enable_docs+set}" = set; then : 15428 enableval=$enable_docs; 15429else 15430 enable_docs=$default_docs 15431fi 15432 15433 15434 if test "x$enable_docs" = xyes; then 15435 ENABLE_DOCS_TRUE= 15436 ENABLE_DOCS_FALSE='#' 15437else 15438 ENABLE_DOCS_TRUE='#' 15439 ENABLE_DOCS_FALSE= 15440fi 15441 15442 15443if test "x$enable_docs" = xyes; then 15444 tmp=funcs.$$ 15445 cat $srcdir/doc/*.fncs | awk ' 15446 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } } 15447 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } } 15448 /^@@/ { done = 0; }' > $tmp 15449 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'` 15450 echo DOCMAN3 $DOCMAN3 15451 rm -f $tmp 15452else 15453 DOCMAN3="" 15454fi 15455 15456 15457 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15459$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15460if ${ac_cv_c_bigendian+:} false; then : 15461 $as_echo_n "(cached) " >&6 15462else 15463 ac_cv_c_bigendian=unknown 15464 # See if we're dealing with a universal compiler. 15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15466/* end confdefs.h. */ 15467#ifndef __APPLE_CC__ 15468 not a universal capable compiler 15469 #endif 15470 typedef int dummy; 15471 15472_ACEOF 15473if ac_fn_c_try_compile "$LINENO"; then : 15474 15475 # Check for potential -arch flags. It is not universal unless 15476 # there are at least two -arch flags with different values. 15477 ac_arch= 15478 ac_prev= 15479 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15480 if test -n "$ac_prev"; then 15481 case $ac_word in 15482 i?86 | x86_64 | ppc | ppc64) 15483 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15484 ac_arch=$ac_word 15485 else 15486 ac_cv_c_bigendian=universal 15487 break 15488 fi 15489 ;; 15490 esac 15491 ac_prev= 15492 elif test "x$ac_word" = "x-arch"; then 15493 ac_prev=arch 15494 fi 15495 done 15496fi 15497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15498 if test $ac_cv_c_bigendian = unknown; then 15499 # See if sys/param.h defines the BYTE_ORDER macro. 15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502#include <sys/types.h> 15503 #include <sys/param.h> 15504 15505int 15506main () 15507{ 15508#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15509 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15510 && LITTLE_ENDIAN) 15511 bogus endian macros 15512 #endif 15513 15514 ; 15515 return 0; 15516} 15517_ACEOF 15518if ac_fn_c_try_compile "$LINENO"; then : 15519 # It does; now see whether it defined to BIG_ENDIAN or not. 15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15521/* end confdefs.h. */ 15522#include <sys/types.h> 15523 #include <sys/param.h> 15524 15525int 15526main () 15527{ 15528#if BYTE_ORDER != BIG_ENDIAN 15529 not big endian 15530 #endif 15531 15532 ; 15533 return 0; 15534} 15535_ACEOF 15536if ac_fn_c_try_compile "$LINENO"; then : 15537 ac_cv_c_bigendian=yes 15538else 15539 ac_cv_c_bigendian=no 15540fi 15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15542fi 15543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15544 fi 15545 if test $ac_cv_c_bigendian = unknown; then 15546 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15548/* end confdefs.h. */ 15549#include <limits.h> 15550 15551int 15552main () 15553{ 15554#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15555 bogus endian macros 15556 #endif 15557 15558 ; 15559 return 0; 15560} 15561_ACEOF 15562if ac_fn_c_try_compile "$LINENO"; then : 15563 # It does; now see whether it defined to _BIG_ENDIAN or not. 15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15565/* end confdefs.h. */ 15566#include <limits.h> 15567 15568int 15569main () 15570{ 15571#ifndef _BIG_ENDIAN 15572 not big endian 15573 #endif 15574 15575 ; 15576 return 0; 15577} 15578_ACEOF 15579if ac_fn_c_try_compile "$LINENO"; then : 15580 ac_cv_c_bigendian=yes 15581else 15582 ac_cv_c_bigendian=no 15583fi 15584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15585fi 15586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15587 fi 15588 if test $ac_cv_c_bigendian = unknown; then 15589 # Compile a test program. 15590 if test "$cross_compiling" = yes; then : 15591 # Try to guess by grepping values from an object file. 15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593/* end confdefs.h. */ 15594short int ascii_mm[] = 15595 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15596 short int ascii_ii[] = 15597 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15598 int use_ascii (int i) { 15599 return ascii_mm[i] + ascii_ii[i]; 15600 } 15601 short int ebcdic_ii[] = 15602 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15603 short int ebcdic_mm[] = 15604 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15605 int use_ebcdic (int i) { 15606 return ebcdic_mm[i] + ebcdic_ii[i]; 15607 } 15608 extern int foo; 15609 15610int 15611main () 15612{ 15613return use_ascii (foo) == use_ebcdic (foo); 15614 ; 15615 return 0; 15616} 15617_ACEOF 15618if ac_fn_c_try_compile "$LINENO"; then : 15619 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15620 ac_cv_c_bigendian=yes 15621 fi 15622 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15623 if test "$ac_cv_c_bigendian" = unknown; then 15624 ac_cv_c_bigendian=no 15625 else 15626 # finding both strings is unlikely to happen, but who knows? 15627 ac_cv_c_bigendian=unknown 15628 fi 15629 fi 15630fi 15631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15632else 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634/* end confdefs.h. */ 15635$ac_includes_default 15636int 15637main () 15638{ 15639 15640 /* Are we little or big endian? From Harbison&Steele. */ 15641 union 15642 { 15643 long int l; 15644 char c[sizeof (long int)]; 15645 } u; 15646 u.l = 1; 15647 return u.c[sizeof (long int) - 1] == 1; 15648 15649 ; 15650 return 0; 15651} 15652_ACEOF 15653if ac_fn_c_try_run "$LINENO"; then : 15654 ac_cv_c_bigendian=no 15655else 15656 ac_cv_c_bigendian=yes 15657fi 15658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15659 conftest.$ac_objext conftest.beam conftest.$ac_ext 15660fi 15661 15662 fi 15663fi 15664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15665$as_echo "$ac_cv_c_bigendian" >&6; } 15666 case $ac_cv_c_bigendian in #( 15667 yes) 15668 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15669;; #( 15670 no) 15671 ;; #( 15672 universal) 15673 15674$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15675 15676 ;; #( 15677 *) 15678 as_fn_error $? "unknown endianness 15679 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15680 esac 15681 15682# The cast to long int works around a bug in the HP C Compiler 15683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15685# This bug is HP SR number 8606223364. 15686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15687$as_echo_n "checking size of void *... " >&6; } 15688if ${ac_cv_sizeof_void_p+:} false; then : 15689 $as_echo_n "(cached) " >&6 15690else 15691 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15692 15693else 15694 if test "$ac_cv_type_void_p" = yes; then 15695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15697as_fn_error 77 "cannot compute sizeof (void *) 15698See \`config.log' for more details" "$LINENO" 5; } 15699 else 15700 ac_cv_sizeof_void_p=0 15701 fi 15702fi 15703 15704fi 15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15706$as_echo "$ac_cv_sizeof_void_p" >&6; } 15707 15708 15709 15710cat >>confdefs.h <<_ACEOF 15711#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15712_ACEOF 15713 15714 15715# The cast to long int works around a bug in the HP C Compiler, 15716# see AC_CHECK_SIZEOF for more information. 15717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5 15718$as_echo_n "checking alignment of double... " >&6; } 15719if ${ac_cv_alignof_double+:} false; then : 15720 $as_echo_n "(cached) " >&6 15721else 15722 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default 15723#ifndef offsetof 15724# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 15725#endif 15726typedef struct { char x; double y; } ac__type_alignof_;"; then : 15727 15728else 15729 if test "$ac_cv_type_double" = yes; then 15730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15732as_fn_error 77 "cannot compute alignment of double 15733See \`config.log' for more details" "$LINENO" 5; } 15734 else 15735 ac_cv_alignof_double=0 15736 fi 15737fi 15738 15739fi 15740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5 15741$as_echo "$ac_cv_alignof_double" >&6; } 15742 15743 15744 15745cat >>confdefs.h <<_ACEOF 15746#define ALIGNOF_DOUBLE $ac_cv_alignof_double 15747_ACEOF 15748 15749 15750 15751 15752 15753ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip" 15754 15755cat >confcache <<\_ACEOF 15756# This file is a shell script that caches the results of configure 15757# tests run on this system so they can be shared between configure 15758# scripts and configure runs, see configure's option --config-cache. 15759# It is not useful on other systems. If it contains results you don't 15760# want to keep, you may remove or edit it. 15761# 15762# config.status only pays attention to the cache file if you give it 15763# the --recheck option to rerun configure. 15764# 15765# `ac_cv_env_foo' variables (set or unset) will be overridden when 15766# loading this file, other *unset* `ac_cv_foo' will be assigned the 15767# following values. 15768 15769_ACEOF 15770 15771# The following way of writing the cache mishandles newlines in values, 15772# but we know of no workaround that is simple, portable, and efficient. 15773# So, we kill variables containing newlines. 15774# Ultrix sh set writes to stderr and can't be redirected directly, 15775# and sets the high bit in the cache file unless we assign to the vars. 15776( 15777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15778 eval ac_val=\$$ac_var 15779 case $ac_val in #( 15780 *${as_nl}*) 15781 case $ac_var in #( 15782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15783$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15784 esac 15785 case $ac_var in #( 15786 _ | IFS | as_nl) ;; #( 15787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15788 *) { eval $ac_var=; unset $ac_var;} ;; 15789 esac ;; 15790 esac 15791 done 15792 15793 (set) 2>&1 | 15794 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15795 *${as_nl}ac_space=\ *) 15796 # `set' does not quote correctly, so add quotes: double-quote 15797 # substitution turns \\\\ into \\, and sed turns \\ into \. 15798 sed -n \ 15799 "s/'/'\\\\''/g; 15800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15801 ;; #( 15802 *) 15803 # `set' quotes correctly as required by POSIX, so do not add quotes. 15804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15805 ;; 15806 esac | 15807 sort 15808) | 15809 sed ' 15810 /^ac_cv_env_/b end 15811 t clear 15812 :clear 15813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15814 t end 15815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15816 :end' >>confcache 15817if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15818 if test -w "$cache_file"; then 15819 if test "x$cache_file" != "x/dev/null"; then 15820 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15821$as_echo "$as_me: updating cache $cache_file" >&6;} 15822 if test ! -f "$cache_file" || test -h "$cache_file"; then 15823 cat confcache >"$cache_file" 15824 else 15825 case $cache_file in #( 15826 */* | ?:*) 15827 mv -f confcache "$cache_file"$$ && 15828 mv -f "$cache_file"$$ "$cache_file" ;; #( 15829 *) 15830 mv -f confcache "$cache_file" ;; 15831 esac 15832 fi 15833 fi 15834 else 15835 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15836$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15837 fi 15838fi 15839rm -f confcache 15840 15841test "x$prefix" = xNONE && prefix=$ac_default_prefix 15842# Let make expand exec_prefix. 15843test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15844 15845DEFS=-DHAVE_CONFIG_H 15846 15847ac_libobjs= 15848ac_ltlibobjs= 15849U= 15850for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15851 # 1. Remove the extension, and $U if already installed. 15852 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15853 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15855 # will be set to the directory where LIBOBJS objects are built. 15856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15857 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15858done 15859LIBOBJS=$ac_libobjs 15860 15861LTLIBOBJS=$ac_ltlibobjs 15862 15863 15864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15865$as_echo_n "checking that generated files are newer than configure... " >&6; } 15866 if test -n "$am_sleep_pid"; then 15867 # Hide warnings about reused PIDs. 15868 wait $am_sleep_pid 2>/dev/null 15869 fi 15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15871$as_echo "done" >&6; } 15872 if test -n "$EXEEXT"; then 15873 am__EXEEXT_TRUE= 15874 am__EXEEXT_FALSE='#' 15875else 15876 am__EXEEXT_TRUE='#' 15877 am__EXEEXT_FALSE= 15878fi 15879 15880if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15881 as_fn_error $? "conditional \"AMDEP\" was never defined. 15882Usually this means the macro was only invoked conditionally." "$LINENO" 5 15883fi 15884if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15885 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15886Usually this means the macro was only invoked conditionally." "$LINENO" 5 15887fi 15888if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then 15889 as_fn_error $? "conditional \"OS_WIN32\" was never defined. 15890Usually this means the macro was only invoked conditionally." "$LINENO" 5 15891fi 15892if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then 15893 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined. 15894Usually this means the macro was only invoked conditionally." "$LINENO" 5 15895fi 15896if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 15897 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 15898Usually this means the macro was only invoked conditionally." "$LINENO" 5 15899fi 15900if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then 15901 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined. 15902Usually this means the macro was only invoked conditionally." "$LINENO" 5 15903fi 15904if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then 15905 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined. 15906Usually this means the macro was only invoked conditionally." "$LINENO" 5 15907fi 15908if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then 15909 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined. 15910Usually this means the macro was only invoked conditionally." "$LINENO" 5 15911fi 15912if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 15913 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 15914Usually this means the macro was only invoked conditionally." "$LINENO" 5 15915fi 15916 15917 15918: "${CONFIG_STATUS=./config.status}" 15919ac_write_fail=0 15920ac_clean_files_save=$ac_clean_files 15921ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15922{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15923$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15924as_write_fail=0 15925cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15926#! $SHELL 15927# Generated by $as_me. 15928# Run this file to recreate the current configuration. 15929# Compiler output produced by configure, useful for debugging 15930# configure, is in config.log if it exists. 15931 15932debug=false 15933ac_cs_recheck=false 15934ac_cs_silent=false 15935 15936SHELL=\${CONFIG_SHELL-$SHELL} 15937export SHELL 15938_ASEOF 15939cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15940## -------------------- ## 15941## M4sh Initialization. ## 15942## -------------------- ## 15943 15944# Be more Bourne compatible 15945DUALCASE=1; export DUALCASE # for MKS sh 15946if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15947 emulate sh 15948 NULLCMD=: 15949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15950 # is contrary to our usage. Disable this feature. 15951 alias -g '${1+"$@"}'='"$@"' 15952 setopt NO_GLOB_SUBST 15953else 15954 case `(set -o) 2>/dev/null` in #( 15955 *posix*) : 15956 set -o posix ;; #( 15957 *) : 15958 ;; 15959esac 15960fi 15961 15962 15963as_nl=' 15964' 15965export as_nl 15966# Printing a long string crashes Solaris 7 /usr/bin/printf. 15967as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15968as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15969as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15970# Prefer a ksh shell builtin over an external printf program on Solaris, 15971# but without wasting forks for bash or zsh. 15972if test -z "$BASH_VERSION$ZSH_VERSION" \ 15973 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15974 as_echo='print -r --' 15975 as_echo_n='print -rn --' 15976elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15977 as_echo='printf %s\n' 15978 as_echo_n='printf %s' 15979else 15980 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15981 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15982 as_echo_n='/usr/ucb/echo -n' 15983 else 15984 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15985 as_echo_n_body='eval 15986 arg=$1; 15987 case $arg in #( 15988 *"$as_nl"*) 15989 expr "X$arg" : "X\\(.*\\)$as_nl"; 15990 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15991 esac; 15992 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15993 ' 15994 export as_echo_n_body 15995 as_echo_n='sh -c $as_echo_n_body as_echo' 15996 fi 15997 export as_echo_body 15998 as_echo='sh -c $as_echo_body as_echo' 15999fi 16000 16001# The user is always right. 16002if test "${PATH_SEPARATOR+set}" != set; then 16003 PATH_SEPARATOR=: 16004 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16005 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16006 PATH_SEPARATOR=';' 16007 } 16008fi 16009 16010 16011# IFS 16012# We need space, tab and new line, in precisely that order. Quoting is 16013# there to prevent editors from complaining about space-tab. 16014# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16015# splitting by setting IFS to empty value.) 16016IFS=" "" $as_nl" 16017 16018# Find who we are. Look in the path if we contain no directory separator. 16019as_myself= 16020case $0 in #(( 16021 *[\\/]* ) as_myself=$0 ;; 16022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16023for as_dir in $PATH 16024do 16025 IFS=$as_save_IFS 16026 test -z "$as_dir" && as_dir=. 16027 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16028 done 16029IFS=$as_save_IFS 16030 16031 ;; 16032esac 16033# We did not find ourselves, most probably we were run as `sh COMMAND' 16034# in which case we are not to be found in the path. 16035if test "x$as_myself" = x; then 16036 as_myself=$0 16037fi 16038if test ! -f "$as_myself"; then 16039 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16040 exit 1 16041fi 16042 16043# Unset variables that we do not need and which cause bugs (e.g. in 16044# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16045# suppresses any "Segmentation fault" message there. '((' could 16046# trigger a bug in pdksh 5.2.14. 16047for as_var in BASH_ENV ENV MAIL MAILPATH 16048do eval test x\${$as_var+set} = xset \ 16049 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16050done 16051PS1='$ ' 16052PS2='> ' 16053PS4='+ ' 16054 16055# NLS nuisances. 16056LC_ALL=C 16057export LC_ALL 16058LANGUAGE=C 16059export LANGUAGE 16060 16061# CDPATH. 16062(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16063 16064 16065# as_fn_error STATUS ERROR [LINENO LOG_FD] 16066# ---------------------------------------- 16067# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16068# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16069# script with STATUS, using 1 if that was 0. 16070as_fn_error () 16071{ 16072 as_status=$1; test $as_status -eq 0 && as_status=1 16073 if test "$4"; then 16074 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16075 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16076 fi 16077 $as_echo "$as_me: error: $2" >&2 16078 as_fn_exit $as_status 16079} # as_fn_error 16080 16081 16082# as_fn_set_status STATUS 16083# ----------------------- 16084# Set $? to STATUS, without forking. 16085as_fn_set_status () 16086{ 16087 return $1 16088} # as_fn_set_status 16089 16090# as_fn_exit STATUS 16091# ----------------- 16092# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16093as_fn_exit () 16094{ 16095 set +e 16096 as_fn_set_status $1 16097 exit $1 16098} # as_fn_exit 16099 16100# as_fn_unset VAR 16101# --------------- 16102# Portably unset VAR. 16103as_fn_unset () 16104{ 16105 { eval $1=; unset $1;} 16106} 16107as_unset=as_fn_unset 16108# as_fn_append VAR VALUE 16109# ---------------------- 16110# Append the text in VALUE to the end of the definition contained in VAR. Take 16111# advantage of any shell optimizations that allow amortized linear growth over 16112# repeated appends, instead of the typical quadratic growth present in naive 16113# implementations. 16114if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16115 eval 'as_fn_append () 16116 { 16117 eval $1+=\$2 16118 }' 16119else 16120 as_fn_append () 16121 { 16122 eval $1=\$$1\$2 16123 } 16124fi # as_fn_append 16125 16126# as_fn_arith ARG... 16127# ------------------ 16128# Perform arithmetic evaluation on the ARGs, and store the result in the 16129# global $as_val. Take advantage of shells that can avoid forks. The arguments 16130# must be portable across $(()) and expr. 16131if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16132 eval 'as_fn_arith () 16133 { 16134 as_val=$(( $* )) 16135 }' 16136else 16137 as_fn_arith () 16138 { 16139 as_val=`expr "$@" || test $? -eq 1` 16140 } 16141fi # as_fn_arith 16142 16143 16144if expr a : '\(a\)' >/dev/null 2>&1 && 16145 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16146 as_expr=expr 16147else 16148 as_expr=false 16149fi 16150 16151if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16152 as_basename=basename 16153else 16154 as_basename=false 16155fi 16156 16157if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16158 as_dirname=dirname 16159else 16160 as_dirname=false 16161fi 16162 16163as_me=`$as_basename -- "$0" || 16164$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16165 X"$0" : 'X\(//\)$' \| \ 16166 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16167$as_echo X/"$0" | 16168 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16169 s//\1/ 16170 q 16171 } 16172 /^X\/\(\/\/\)$/{ 16173 s//\1/ 16174 q 16175 } 16176 /^X\/\(\/\).*/{ 16177 s//\1/ 16178 q 16179 } 16180 s/.*/./; q'` 16181 16182# Avoid depending upon Character Ranges. 16183as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16184as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16185as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16186as_cr_digits='0123456789' 16187as_cr_alnum=$as_cr_Letters$as_cr_digits 16188 16189ECHO_C= ECHO_N= ECHO_T= 16190case `echo -n x` in #((((( 16191-n*) 16192 case `echo 'xy\c'` in 16193 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16194 xy) ECHO_C='\c';; 16195 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16196 ECHO_T=' ';; 16197 esac;; 16198*) 16199 ECHO_N='-n';; 16200esac 16201 16202rm -f conf$$ conf$$.exe conf$$.file 16203if test -d conf$$.dir; then 16204 rm -f conf$$.dir/conf$$.file 16205else 16206 rm -f conf$$.dir 16207 mkdir conf$$.dir 2>/dev/null 16208fi 16209if (echo >conf$$.file) 2>/dev/null; then 16210 if ln -s conf$$.file conf$$ 2>/dev/null; then 16211 as_ln_s='ln -s' 16212 # ... but there are two gotchas: 16213 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16214 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16215 # In both cases, we have to default to `cp -pR'. 16216 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16217 as_ln_s='cp -pR' 16218 elif ln conf$$.file conf$$ 2>/dev/null; then 16219 as_ln_s=ln 16220 else 16221 as_ln_s='cp -pR' 16222 fi 16223else 16224 as_ln_s='cp -pR' 16225fi 16226rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16227rmdir conf$$.dir 2>/dev/null 16228 16229 16230# as_fn_mkdir_p 16231# ------------- 16232# Create "$as_dir" as a directory, including parents if necessary. 16233as_fn_mkdir_p () 16234{ 16235 16236 case $as_dir in #( 16237 -*) as_dir=./$as_dir;; 16238 esac 16239 test -d "$as_dir" || eval $as_mkdir_p || { 16240 as_dirs= 16241 while :; do 16242 case $as_dir in #( 16243 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16244 *) as_qdir=$as_dir;; 16245 esac 16246 as_dirs="'$as_qdir' $as_dirs" 16247 as_dir=`$as_dirname -- "$as_dir" || 16248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16249 X"$as_dir" : 'X\(//\)[^/]' \| \ 16250 X"$as_dir" : 'X\(//\)$' \| \ 16251 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16252$as_echo X"$as_dir" | 16253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16254 s//\1/ 16255 q 16256 } 16257 /^X\(\/\/\)[^/].*/{ 16258 s//\1/ 16259 q 16260 } 16261 /^X\(\/\/\)$/{ 16262 s//\1/ 16263 q 16264 } 16265 /^X\(\/\).*/{ 16266 s//\1/ 16267 q 16268 } 16269 s/.*/./; q'` 16270 test -d "$as_dir" && break 16271 done 16272 test -z "$as_dirs" || eval "mkdir $as_dirs" 16273 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16274 16275 16276} # as_fn_mkdir_p 16277if mkdir -p . 2>/dev/null; then 16278 as_mkdir_p='mkdir -p "$as_dir"' 16279else 16280 test -d ./-p && rmdir ./-p 16281 as_mkdir_p=false 16282fi 16283 16284 16285# as_fn_executable_p FILE 16286# ----------------------- 16287# Test if FILE is an executable regular file. 16288as_fn_executable_p () 16289{ 16290 test -f "$1" && test -x "$1" 16291} # as_fn_executable_p 16292as_test_x='test -x' 16293as_executable_p=as_fn_executable_p 16294 16295# Sed expression to map a string onto a valid CPP name. 16296as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16297 16298# Sed expression to map a string onto a valid variable name. 16299as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16300 16301 16302exec 6>&1 16303## ----------------------------------- ## 16304## Main body of $CONFIG_STATUS script. ## 16305## ----------------------------------- ## 16306_ASEOF 16307test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16308 16309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16310# Save the log message, to keep $0 and so on meaningful, and to 16311# report actual input values of CONFIG_FILES etc. instead of their 16312# values after options handling. 16313ac_log=" 16314This file was extended by fontconfig $as_me 2.10.93, which was 16315generated by GNU Autoconf 2.69. Invocation command line was 16316 16317 CONFIG_FILES = $CONFIG_FILES 16318 CONFIG_HEADERS = $CONFIG_HEADERS 16319 CONFIG_LINKS = $CONFIG_LINKS 16320 CONFIG_COMMANDS = $CONFIG_COMMANDS 16321 $ $0 $@ 16322 16323on `(hostname || uname -n) 2>/dev/null | sed 1q` 16324" 16325 16326_ACEOF 16327 16328case $ac_config_files in *" 16329"*) set x $ac_config_files; shift; ac_config_files=$*;; 16330esac 16331 16332case $ac_config_headers in *" 16333"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16334esac 16335 16336 16337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16338# Files that config.status was made for. 16339config_files="$ac_config_files" 16340config_headers="$ac_config_headers" 16341config_commands="$ac_config_commands" 16342 16343_ACEOF 16344 16345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16346ac_cs_usage="\ 16347\`$as_me' instantiates files and other configuration actions 16348from templates according to the current configuration. Unless the files 16349and actions are specified as TAGs, all are instantiated by default. 16350 16351Usage: $0 [OPTION]... [TAG]... 16352 16353 -h, --help print this help, then exit 16354 -V, --version print version number and configuration settings, then exit 16355 --config print configuration, then exit 16356 -q, --quiet, --silent 16357 do not print progress messages 16358 -d, --debug don't remove temporary files 16359 --recheck update $as_me by reconfiguring in the same conditions 16360 --file=FILE[:TEMPLATE] 16361 instantiate the configuration file FILE 16362 --header=FILE[:TEMPLATE] 16363 instantiate the configuration header FILE 16364 16365Configuration files: 16366$config_files 16367 16368Configuration headers: 16369$config_headers 16370 16371Configuration commands: 16372$config_commands 16373 16374Report bugs to <https://bugs.freedesktop.org/enger_bug.cgi?product=fontconfig>." 16375 16376_ACEOF 16377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16378ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16379ac_cs_version="\\ 16380fontconfig config.status 2.10.93 16381configured by $0, generated by GNU Autoconf 2.69, 16382 with options \\"\$ac_cs_config\\" 16383 16384Copyright (C) 2012 Free Software Foundation, Inc. 16385This config.status script is free software; the Free Software Foundation 16386gives unlimited permission to copy, distribute and modify it." 16387 16388ac_pwd='$ac_pwd' 16389srcdir='$srcdir' 16390INSTALL='$INSTALL' 16391MKDIR_P='$MKDIR_P' 16392AWK='$AWK' 16393test -n "\$AWK" || AWK=awk 16394_ACEOF 16395 16396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16397# The default lists apply if the user does not specify any file. 16398ac_need_defaults=: 16399while test $# != 0 16400do 16401 case $1 in 16402 --*=?*) 16403 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16405 ac_shift=: 16406 ;; 16407 --*=) 16408 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16409 ac_optarg= 16410 ac_shift=: 16411 ;; 16412 *) 16413 ac_option=$1 16414 ac_optarg=$2 16415 ac_shift=shift 16416 ;; 16417 esac 16418 16419 case $ac_option in 16420 # Handling of the options. 16421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16422 ac_cs_recheck=: ;; 16423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16424 $as_echo "$ac_cs_version"; exit ;; 16425 --config | --confi | --conf | --con | --co | --c ) 16426 $as_echo "$ac_cs_config"; exit ;; 16427 --debug | --debu | --deb | --de | --d | -d ) 16428 debug=: ;; 16429 --file | --fil | --fi | --f ) 16430 $ac_shift 16431 case $ac_optarg in 16432 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16433 '') as_fn_error $? "missing file argument" ;; 16434 esac 16435 as_fn_append CONFIG_FILES " '$ac_optarg'" 16436 ac_need_defaults=false;; 16437 --header | --heade | --head | --hea ) 16438 $ac_shift 16439 case $ac_optarg in 16440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16441 esac 16442 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16443 ac_need_defaults=false;; 16444 --he | --h) 16445 # Conflict between --help and --header 16446 as_fn_error $? "ambiguous option: \`$1' 16447Try \`$0 --help' for more information.";; 16448 --help | --hel | -h ) 16449 $as_echo "$ac_cs_usage"; exit ;; 16450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16451 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16452 ac_cs_silent=: ;; 16453 16454 # This is an error. 16455 -*) as_fn_error $? "unrecognized option: \`$1' 16456Try \`$0 --help' for more information." ;; 16457 16458 *) as_fn_append ac_config_targets " $1" 16459 ac_need_defaults=false ;; 16460 16461 esac 16462 shift 16463done 16464 16465ac_configure_extra_args= 16466 16467if $ac_cs_silent; then 16468 exec 6>/dev/null 16469 ac_configure_extra_args="$ac_configure_extra_args --silent" 16470fi 16471 16472_ACEOF 16473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16474if \$ac_cs_recheck; then 16475 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16476 shift 16477 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16478 CONFIG_SHELL='$SHELL' 16479 export CONFIG_SHELL 16480 exec "\$@" 16481fi 16482 16483_ACEOF 16484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16485exec 5>>config.log 16486{ 16487 echo 16488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16489## Running $as_me. ## 16490_ASBOX 16491 $as_echo "$ac_log" 16492} >&5 16493 16494_ACEOF 16495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16496# 16497# INIT-COMMANDS 16498# 16499AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16500 16501 16502# The HP-UX ksh and POSIX shell print the target directory to stdout 16503# if CDPATH is set. 16504(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16505 16506sed_quote_subst='$sed_quote_subst' 16507double_quote_subst='$double_quote_subst' 16508delay_variable_subst='$delay_variable_subst' 16509AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 16510DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16511OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16512macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16513macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16514enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16515enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16516pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16517enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16518SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16519ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16520PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16521host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16522host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16523host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16524build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16525build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16526build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16527SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16528Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16529GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16530EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16531FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16532LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16533NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16534LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16535max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16536ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16537exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16538lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16539lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16540lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16541lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16542lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16543reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16544reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16545deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16546file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16547file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16548want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16549sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16550AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16551AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16552archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16553STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16554RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16555old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16556old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16557old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16558lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16559CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16560CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16561compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16562GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16563lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16564lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16565lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16566lt_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"`' 16567nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16568lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16569objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16570MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16571lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16572lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16573lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16574lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16575lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16576need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16577MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16578DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16579NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16580LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16581OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16582OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16583libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16584shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16585extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16586archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16587enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16588export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16589whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16590compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16591old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16592old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16593archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16594archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16595module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16596module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16597with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16598allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16599no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16600hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16601hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16602hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16603hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16604hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16605hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16606hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16607inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16608link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16609always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16610export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16611exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16612include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16613prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16614postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16615file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16616variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16617need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16618need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16619version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16620runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16621shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16622shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16623libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16624library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16625soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16626install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16627postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16628postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16629finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16630finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16631hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16632sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16633sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16634hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16635enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16636enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16637enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16638old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16639striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16640 16641LTCC='$LTCC' 16642LTCFLAGS='$LTCFLAGS' 16643compiler='$compiler_DEFAULT' 16644 16645# A function that is used when there is no print builtin or printf. 16646func_fallback_echo () 16647{ 16648 eval 'cat <<_LTECHO_EOF 16649\$1 16650_LTECHO_EOF' 16651} 16652 16653# Quote evaled strings. 16654for var in AS \ 16655DLLTOOL \ 16656OBJDUMP \ 16657SHELL \ 16658ECHO \ 16659PATH_SEPARATOR \ 16660SED \ 16661GREP \ 16662EGREP \ 16663FGREP \ 16664LD \ 16665NM \ 16666LN_S \ 16667lt_SP2NL \ 16668lt_NL2SP \ 16669reload_flag \ 16670deplibs_check_method \ 16671file_magic_cmd \ 16672file_magic_glob \ 16673want_nocaseglob \ 16674sharedlib_from_linklib_cmd \ 16675AR \ 16676AR_FLAGS \ 16677archiver_list_spec \ 16678STRIP \ 16679RANLIB \ 16680CC \ 16681CFLAGS \ 16682compiler \ 16683lt_cv_sys_global_symbol_pipe \ 16684lt_cv_sys_global_symbol_to_cdecl \ 16685lt_cv_sys_global_symbol_to_c_name_address \ 16686lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16687nm_file_list_spec \ 16688lt_prog_compiler_no_builtin_flag \ 16689lt_prog_compiler_pic \ 16690lt_prog_compiler_wl \ 16691lt_prog_compiler_static \ 16692lt_cv_prog_compiler_c_o \ 16693need_locks \ 16694MANIFEST_TOOL \ 16695DSYMUTIL \ 16696NMEDIT \ 16697LIPO \ 16698OTOOL \ 16699OTOOL64 \ 16700shrext_cmds \ 16701export_dynamic_flag_spec \ 16702whole_archive_flag_spec \ 16703compiler_needs_object \ 16704with_gnu_ld \ 16705allow_undefined_flag \ 16706no_undefined_flag \ 16707hardcode_libdir_flag_spec \ 16708hardcode_libdir_separator \ 16709exclude_expsyms \ 16710include_expsyms \ 16711file_list_spec \ 16712variables_saved_for_relink \ 16713libname_spec \ 16714library_names_spec \ 16715soname_spec \ 16716install_override_mode \ 16717finish_eval \ 16718old_striplib \ 16719striplib; do 16720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16721 *[\\\\\\\`\\"\\\$]*) 16722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16723 ;; 16724 *) 16725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16726 ;; 16727 esac 16728done 16729 16730# Double-quote double-evaled strings. 16731for var in reload_cmds \ 16732old_postinstall_cmds \ 16733old_postuninstall_cmds \ 16734old_archive_cmds \ 16735extract_expsyms_cmds \ 16736old_archive_from_new_cmds \ 16737old_archive_from_expsyms_cmds \ 16738archive_cmds \ 16739archive_expsym_cmds \ 16740module_cmds \ 16741module_expsym_cmds \ 16742export_symbols_cmds \ 16743prelink_cmds \ 16744postlink_cmds \ 16745postinstall_cmds \ 16746postuninstall_cmds \ 16747finish_cmds \ 16748sys_lib_search_path_spec \ 16749sys_lib_dlsearch_path_spec; do 16750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16751 *[\\\\\\\`\\"\\\$]*) 16752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16753 ;; 16754 *) 16755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16756 ;; 16757 esac 16758done 16759 16760ac_aux_dir='$ac_aux_dir' 16761xsi_shell='$xsi_shell' 16762lt_shell_append='$lt_shell_append' 16763 16764# See if we are running on zsh, and set the options which allow our 16765# commands through without removal of \ escapes INIT. 16766if test -n "\${ZSH_VERSION+set}" ; then 16767 setopt NO_GLOB_SUBST 16768fi 16769 16770 16771 PACKAGE='$PACKAGE' 16772 VERSION='$VERSION' 16773 TIMESTAMP='$TIMESTAMP' 16774 RM='$RM' 16775 ofile='$ofile' 16776 16777 16778 16779# variables for create stdint.h replacement 16780PACKAGE="$PACKAGE" 16781VERSION="$VERSION" 16782ac_stdint_h="$ac_stdint_h" 16783_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` 16784ac_cv_stdint_message="$ac_cv_stdint_message" 16785ac_cv_header_stdint_t="$ac_cv_header_stdint_t" 16786ac_cv_header_stdint_x="$ac_cv_header_stdint_x" 16787ac_cv_header_stdint_o="$ac_cv_header_stdint_o" 16788ac_cv_header_stdint_u="$ac_cv_header_stdint_u" 16789ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 16790ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 16791ac_cv_char_data_model="$ac_cv_char_data_model" 16792ac_cv_long_data_model="$ac_cv_long_data_model" 16793ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 16794ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 16795ac_cv_type_intmax_t="$ac_cv_type_intmax_t" 16796 16797 16798_ACEOF 16799 16800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16801 16802# Handling of arguments. 16803for ac_config_target in $ac_config_targets 16804do 16805 case $ac_config_target in 16806 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16807 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16808 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16809 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;; 16810 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16811 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;; 16812 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;; 16813 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;; 16814 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;; 16815 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16816 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;; 16817 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;; 16818 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;; 16819 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;; 16820 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;; 16821 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;; 16822 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;; 16823 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;; 16824 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;; 16825 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16826 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;; 16827 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 16828 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;; 16829 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;; 16830 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;; 16831 16832 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16833 esac 16834done 16835 16836 16837# If the user did not use the arguments to specify the items to instantiate, 16838# then the envvar interface is used. Set only those that are not. 16839# We use the long form for the default assignment because of an extremely 16840# bizarre bug on SunOS 4.1.3. 16841if $ac_need_defaults; then 16842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16845fi 16846 16847# Have a temporary directory for convenience. Make it in the build tree 16848# simply because there is no reason against having it here, and in addition, 16849# creating and moving files from /tmp can sometimes cause problems. 16850# Hook for its removal unless debugging. 16851# Note that there is a small window in which the directory will not be cleaned: 16852# after its creation but before its name has been assigned to `$tmp'. 16853$debug || 16854{ 16855 tmp= ac_tmp= 16856 trap 'exit_status=$? 16857 : "${ac_tmp:=$tmp}" 16858 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16859' 0 16860 trap 'as_fn_exit 1' 1 2 13 15 16861} 16862# Create a (secure) tmp directory for tmp files. 16863 16864{ 16865 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16866 test -d "$tmp" 16867} || 16868{ 16869 tmp=./conf$$-$RANDOM 16870 (umask 077 && mkdir "$tmp") 16871} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16872ac_tmp=$tmp 16873 16874# Set up the scripts for CONFIG_FILES section. 16875# No need to generate them if there are no CONFIG_FILES. 16876# This happens for instance with `./config.status config.h'. 16877if test -n "$CONFIG_FILES"; then 16878 16879 16880ac_cr=`echo X | tr X '\015'` 16881# On cygwin, bash can eat \r inside `` if the user requested igncr. 16882# But we know of no other shell where ac_cr would be empty at this 16883# point, so we can use a bashism as a fallback. 16884if test "x$ac_cr" = x; then 16885 eval ac_cr=\$\'\\r\' 16886fi 16887ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16888if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16889 ac_cs_awk_cr='\\r' 16890else 16891 ac_cs_awk_cr=$ac_cr 16892fi 16893 16894echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16895_ACEOF 16896 16897 16898{ 16899 echo "cat >conf$$subs.awk <<_ACEOF" && 16900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16901 echo "_ACEOF" 16902} >conf$$subs.sh || 16903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16904ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16905ac_delim='%!_!# ' 16906for ac_last_try in false false false false false :; do 16907 . ./conf$$subs.sh || 16908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16909 16910 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16911 if test $ac_delim_n = $ac_delim_num; then 16912 break 16913 elif $ac_last_try; then 16914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16915 else 16916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16917 fi 16918done 16919rm -f conf$$subs.sh 16920 16921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16922cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16923_ACEOF 16924sed -n ' 16925h 16926s/^/S["/; s/!.*/"]=/ 16927p 16928g 16929s/^[^!]*!// 16930:repl 16931t repl 16932s/'"$ac_delim"'$// 16933t delim 16934:nl 16935h 16936s/\(.\{148\}\)..*/\1/ 16937t more1 16938s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16939p 16940n 16941b repl 16942:more1 16943s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16944p 16945g 16946s/.\{148\}// 16947t nl 16948:delim 16949h 16950s/\(.\{148\}\)..*/\1/ 16951t more2 16952s/["\\]/\\&/g; s/^/"/; s/$/"/ 16953p 16954b 16955:more2 16956s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16957p 16958g 16959s/.\{148\}// 16960t delim 16961' <conf$$subs.awk | sed ' 16962/^[^""]/{ 16963 N 16964 s/\n// 16965} 16966' >>$CONFIG_STATUS || ac_write_fail=1 16967rm -f conf$$subs.awk 16968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16969_ACAWK 16970cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16971 for (key in S) S_is_set[key] = 1 16972 FS = "" 16973 16974} 16975{ 16976 line = $ 0 16977 nfields = split(line, field, "@") 16978 substed = 0 16979 len = length(field[1]) 16980 for (i = 2; i < nfields; i++) { 16981 key = field[i] 16982 keylen = length(key) 16983 if (S_is_set[key]) { 16984 value = S[key] 16985 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16986 len += length(value) + length(field[++i]) 16987 substed = 1 16988 } else 16989 len += 1 + keylen 16990 } 16991 16992 print line 16993} 16994 16995_ACAWK 16996_ACEOF 16997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16998if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16999 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17000else 17001 cat 17002fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17003 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17004_ACEOF 17005 17006# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17007# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17008# trailing colons and then remove the whole line if VPATH becomes empty 17009# (actually we leave an empty line to preserve line numbers). 17010if test "x$srcdir" = x.; then 17011 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17012h 17013s/// 17014s/^/:/ 17015s/[ ]*$/:/ 17016s/:\$(srcdir):/:/g 17017s/:\${srcdir}:/:/g 17018s/:@srcdir@:/:/g 17019s/^:*// 17020s/:*$// 17021x 17022s/\(=[ ]*\).*/\1/ 17023G 17024s/\n// 17025s/^[^=]*=[ ]*$// 17026}' 17027fi 17028 17029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17030fi # test -n "$CONFIG_FILES" 17031 17032# Set up the scripts for CONFIG_HEADERS section. 17033# No need to generate them if there are no CONFIG_HEADERS. 17034# This happens for instance with `./config.status Makefile'. 17035if test -n "$CONFIG_HEADERS"; then 17036cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17037BEGIN { 17038_ACEOF 17039 17040# Transform confdefs.h into an awk script `defines.awk', embedded as 17041# here-document in config.status, that substitutes the proper values into 17042# config.h.in to produce config.h. 17043 17044# Create a delimiter string that does not exist in confdefs.h, to ease 17045# handling of long lines. 17046ac_delim='%!_!# ' 17047for ac_last_try in false false :; do 17048 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17049 if test -z "$ac_tt"; then 17050 break 17051 elif $ac_last_try; then 17052 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17053 else 17054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17055 fi 17056done 17057 17058# For the awk script, D is an array of macro values keyed by name, 17059# likewise P contains macro parameters if any. Preserve backslash 17060# newline sequences. 17061 17062ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17063sed -n ' 17064s/.\{148\}/&'"$ac_delim"'/g 17065t rset 17066:rset 17067s/^[ ]*#[ ]*define[ ][ ]*/ / 17068t def 17069d 17070:def 17071s/\\$// 17072t bsnl 17073s/["\\]/\\&/g 17074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17075D["\1"]=" \3"/p 17076s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17077d 17078:bsnl 17079s/["\\]/\\&/g 17080s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17081D["\1"]=" \3\\\\\\n"\\/p 17082t cont 17083s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17084t cont 17085d 17086:cont 17087n 17088s/.\{148\}/&'"$ac_delim"'/g 17089t clear 17090:clear 17091s/\\$// 17092t bsnlc 17093s/["\\]/\\&/g; s/^/"/; s/$/"/p 17094d 17095:bsnlc 17096s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17097b cont 17098' <confdefs.h | sed ' 17099s/'"$ac_delim"'/"\\\ 17100"/g' >>$CONFIG_STATUS || ac_write_fail=1 17101 17102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17103 for (key in D) D_is_set[key] = 1 17104 FS = "" 17105} 17106/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17107 line = \$ 0 17108 split(line, arg, " ") 17109 if (arg[1] == "#") { 17110 defundef = arg[2] 17111 mac1 = arg[3] 17112 } else { 17113 defundef = substr(arg[1], 2) 17114 mac1 = arg[2] 17115 } 17116 split(mac1, mac2, "(") #) 17117 macro = mac2[1] 17118 prefix = substr(line, 1, index(line, defundef) - 1) 17119 if (D_is_set[macro]) { 17120 # Preserve the white space surrounding the "#". 17121 print prefix "define", macro P[macro] D[macro] 17122 next 17123 } else { 17124 # Replace #undef with comments. This is necessary, for example, 17125 # in the case of _POSIX_SOURCE, which is predefined and required 17126 # on some systems where configure will not decide to define it. 17127 if (defundef == "undef") { 17128 print "/*", prefix defundef, macro, "*/" 17129 next 17130 } 17131 } 17132} 17133{ print } 17134_ACAWK 17135_ACEOF 17136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17137 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17138fi # test -n "$CONFIG_HEADERS" 17139 17140 17141eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17142shift 17143for ac_tag 17144do 17145 case $ac_tag in 17146 :[FHLC]) ac_mode=$ac_tag; continue;; 17147 esac 17148 case $ac_mode$ac_tag in 17149 :[FHL]*:*);; 17150 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17151 :[FH]-) ac_tag=-:-;; 17152 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17153 esac 17154 ac_save_IFS=$IFS 17155 IFS=: 17156 set x $ac_tag 17157 IFS=$ac_save_IFS 17158 shift 17159 ac_file=$1 17160 shift 17161 17162 case $ac_mode in 17163 :L) ac_source=$1;; 17164 :[FH]) 17165 ac_file_inputs= 17166 for ac_f 17167 do 17168 case $ac_f in 17169 -) ac_f="$ac_tmp/stdin";; 17170 *) # Look for the file first in the build tree, then in the source tree 17171 # (if the path is not absolute). The absolute path cannot be DOS-style, 17172 # because $ac_f cannot contain `:'. 17173 test -f "$ac_f" || 17174 case $ac_f in 17175 [\\/$]*) false;; 17176 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17177 esac || 17178 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17179 esac 17180 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17181 as_fn_append ac_file_inputs " '$ac_f'" 17182 done 17183 17184 # Let's still pretend it is `configure' which instantiates (i.e., don't 17185 # use $as_me), people would be surprised to read: 17186 # /* config.h. Generated by config.status. */ 17187 configure_input='Generated from '` 17188 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17189 `' by configure.' 17190 if test x"$ac_file" != x-; then 17191 configure_input="$ac_file. $configure_input" 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17193$as_echo "$as_me: creating $ac_file" >&6;} 17194 fi 17195 # Neutralize special characters interpreted by sed in replacement strings. 17196 case $configure_input in #( 17197 *\&* | *\|* | *\\* ) 17198 ac_sed_conf_input=`$as_echo "$configure_input" | 17199 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17200 *) ac_sed_conf_input=$configure_input;; 17201 esac 17202 17203 case $ac_tag in 17204 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17206 esac 17207 ;; 17208 esac 17209 17210 ac_dir=`$as_dirname -- "$ac_file" || 17211$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17212 X"$ac_file" : 'X\(//\)[^/]' \| \ 17213 X"$ac_file" : 'X\(//\)$' \| \ 17214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17215$as_echo X"$ac_file" | 17216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17217 s//\1/ 17218 q 17219 } 17220 /^X\(\/\/\)[^/].*/{ 17221 s//\1/ 17222 q 17223 } 17224 /^X\(\/\/\)$/{ 17225 s//\1/ 17226 q 17227 } 17228 /^X\(\/\).*/{ 17229 s//\1/ 17230 q 17231 } 17232 s/.*/./; q'` 17233 as_dir="$ac_dir"; as_fn_mkdir_p 17234 ac_builddir=. 17235 17236case "$ac_dir" in 17237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17238*) 17239 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17240 # A ".." for each directory in $ac_dir_suffix. 17241 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17242 case $ac_top_builddir_sub in 17243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17245 esac ;; 17246esac 17247ac_abs_top_builddir=$ac_pwd 17248ac_abs_builddir=$ac_pwd$ac_dir_suffix 17249# for backward compatibility: 17250ac_top_builddir=$ac_top_build_prefix 17251 17252case $srcdir in 17253 .) # We are building in place. 17254 ac_srcdir=. 17255 ac_top_srcdir=$ac_top_builddir_sub 17256 ac_abs_top_srcdir=$ac_pwd ;; 17257 [\\/]* | ?:[\\/]* ) # Absolute name. 17258 ac_srcdir=$srcdir$ac_dir_suffix; 17259 ac_top_srcdir=$srcdir 17260 ac_abs_top_srcdir=$srcdir ;; 17261 *) # Relative name. 17262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17263 ac_top_srcdir=$ac_top_build_prefix$srcdir 17264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17265esac 17266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17267 17268 17269 case $ac_mode in 17270 :F) 17271 # 17272 # CONFIG_FILE 17273 # 17274 17275 case $INSTALL in 17276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17278 esac 17279 ac_MKDIR_P=$MKDIR_P 17280 case $MKDIR_P in 17281 [\\/$]* | ?:[\\/]* ) ;; 17282 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17283 esac 17284_ACEOF 17285 17286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17287# If the template does not know about datarootdir, expand it. 17288# FIXME: This hack should be removed a few years after 2.60. 17289ac_datarootdir_hack=; ac_datarootdir_seen= 17290ac_sed_dataroot=' 17291/datarootdir/ { 17292 p 17293 q 17294} 17295/@datadir@/p 17296/@docdir@/p 17297/@infodir@/p 17298/@localedir@/p 17299/@mandir@/p' 17300case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17301*datarootdir*) ac_datarootdir_seen=yes;; 17302*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17304$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17305_ACEOF 17306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17307 ac_datarootdir_hack=' 17308 s&@datadir@&$datadir&g 17309 s&@docdir@&$docdir&g 17310 s&@infodir@&$infodir&g 17311 s&@localedir@&$localedir&g 17312 s&@mandir@&$mandir&g 17313 s&\\\${datarootdir}&$datarootdir&g' ;; 17314esac 17315_ACEOF 17316 17317# Neutralize VPATH when `$srcdir' = `.'. 17318# Shell code in configure.ac might set extrasub. 17319# FIXME: do we really want to maintain this feature? 17320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17321ac_sed_extra="$ac_vpsub 17322$extrasub 17323_ACEOF 17324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17325:t 17326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17327s|@configure_input@|$ac_sed_conf_input|;t t 17328s&@top_builddir@&$ac_top_builddir_sub&;t t 17329s&@top_build_prefix@&$ac_top_build_prefix&;t t 17330s&@srcdir@&$ac_srcdir&;t t 17331s&@abs_srcdir@&$ac_abs_srcdir&;t t 17332s&@top_srcdir@&$ac_top_srcdir&;t t 17333s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17334s&@builddir@&$ac_builddir&;t t 17335s&@abs_builddir@&$ac_abs_builddir&;t t 17336s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17337s&@INSTALL@&$ac_INSTALL&;t t 17338s&@MKDIR_P@&$ac_MKDIR_P&;t t 17339$ac_datarootdir_hack 17340" 17341eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17342 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17343 17344test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17345 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17347 "$ac_tmp/out"`; test -z "$ac_out"; } && 17348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17349which seems to be undefined. Please make sure it is defined" >&5 17350$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17351which seems to be undefined. Please make sure it is defined" >&2;} 17352 17353 rm -f "$ac_tmp/stdin" 17354 case $ac_file in 17355 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17356 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17357 esac \ 17358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17359 ;; 17360 :H) 17361 # 17362 # CONFIG_HEADER 17363 # 17364 if test x"$ac_file" != x-; then 17365 { 17366 $as_echo "/* $configure_input */" \ 17367 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17368 } >"$ac_tmp/config.h" \ 17369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17370 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17372$as_echo "$as_me: $ac_file is unchanged" >&6;} 17373 else 17374 rm -f "$ac_file" 17375 mv "$ac_tmp/config.h" "$ac_file" \ 17376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17377 fi 17378 else 17379 $as_echo "/* $configure_input */" \ 17380 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17381 || as_fn_error $? "could not create -" "$LINENO" 5 17382 fi 17383# Compute "$ac_file"'s index in $config_headers. 17384_am_arg="$ac_file" 17385_am_stamp_count=1 17386for _am_header in $config_headers :; do 17387 case $_am_header in 17388 $_am_arg | $_am_arg:* ) 17389 break ;; 17390 * ) 17391 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17392 esac 17393done 17394echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17395$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17396 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17397 X"$_am_arg" : 'X\(//\)$' \| \ 17398 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17399$as_echo X"$_am_arg" | 17400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17401 s//\1/ 17402 q 17403 } 17404 /^X\(\/\/\)[^/].*/{ 17405 s//\1/ 17406 q 17407 } 17408 /^X\(\/\/\)$/{ 17409 s//\1/ 17410 q 17411 } 17412 /^X\(\/\).*/{ 17413 s//\1/ 17414 q 17415 } 17416 s/.*/./; q'`/stamp-h$_am_stamp_count 17417 ;; 17418 17419 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17420$as_echo "$as_me: executing $ac_file commands" >&6;} 17421 ;; 17422 esac 17423 17424 17425 case $ac_file$ac_mode in 17426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17427 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17428 # are listed without --file. Let's play safe and only enable the eval 17429 # if we detect the quoting. 17430 case $CONFIG_FILES in 17431 *\'*) eval set x "$CONFIG_FILES" ;; 17432 *) set x $CONFIG_FILES ;; 17433 esac 17434 shift 17435 for mf 17436 do 17437 # Strip MF so we end up with the name of the file. 17438 mf=`echo "$mf" | sed -e 's/:.*$//'` 17439 # Check whether this is an Automake generated Makefile or not. 17440 # We used to match only the files named 'Makefile.in', but 17441 # some people rename them; so instead we look at the file content. 17442 # Grep'ing the first line is not enough: some people post-process 17443 # each Makefile.in and add a new line on top of each file to say so. 17444 # Grep'ing the whole file is not good either: AIX grep has a line 17445 # limit of 2048, but all sed's we know have understand at least 4000. 17446 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17447 dirpart=`$as_dirname -- "$mf" || 17448$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17449 X"$mf" : 'X\(//\)[^/]' \| \ 17450 X"$mf" : 'X\(//\)$' \| \ 17451 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17452$as_echo X"$mf" | 17453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17454 s//\1/ 17455 q 17456 } 17457 /^X\(\/\/\)[^/].*/{ 17458 s//\1/ 17459 q 17460 } 17461 /^X\(\/\/\)$/{ 17462 s//\1/ 17463 q 17464 } 17465 /^X\(\/\).*/{ 17466 s//\1/ 17467 q 17468 } 17469 s/.*/./; q'` 17470 else 17471 continue 17472 fi 17473 # Extract the definition of DEPDIR, am__include, and am__quote 17474 # from the Makefile without running 'make'. 17475 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17476 test -z "$DEPDIR" && continue 17477 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17478 test -z "am__include" && continue 17479 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17480 # Find all dependency output files, they are included files with 17481 # $(DEPDIR) in their names. We invoke sed twice because it is the 17482 # simplest approach to changing $(DEPDIR) to its actual value in the 17483 # expansion. 17484 for file in `sed -n " 17485 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17486 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17487 # Make sure the directory exists. 17488 test -f "$dirpart/$file" && continue 17489 fdir=`$as_dirname -- "$file" || 17490$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17491 X"$file" : 'X\(//\)[^/]' \| \ 17492 X"$file" : 'X\(//\)$' \| \ 17493 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17494$as_echo X"$file" | 17495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17496 s//\1/ 17497 q 17498 } 17499 /^X\(\/\/\)[^/].*/{ 17500 s//\1/ 17501 q 17502 } 17503 /^X\(\/\/\)$/{ 17504 s//\1/ 17505 q 17506 } 17507 /^X\(\/\).*/{ 17508 s//\1/ 17509 q 17510 } 17511 s/.*/./; q'` 17512 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17513 # echo "creating $dirpart/$file" 17514 echo '# dummy' > "$dirpart/$file" 17515 done 17516 done 17517} 17518 ;; 17519 "libtool":C) 17520 17521 # See if we are running on zsh, and set the options which allow our 17522 # commands through without removal of \ escapes. 17523 if test -n "${ZSH_VERSION+set}" ; then 17524 setopt NO_GLOB_SUBST 17525 fi 17526 17527 cfgfile="${ofile}T" 17528 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17529 $RM "$cfgfile" 17530 17531 cat <<_LT_EOF >> "$cfgfile" 17532#! $SHELL 17533 17534# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17535# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17536# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17537# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17538# 17539# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17540# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17541# Foundation, Inc. 17542# Written by Gordon Matzigkeit, 1996 17543# 17544# This file is part of GNU Libtool. 17545# 17546# GNU Libtool is free software; you can redistribute it and/or 17547# modify it under the terms of the GNU General Public License as 17548# published by the Free Software Foundation; either version 2 of 17549# the License, or (at your option) any later version. 17550# 17551# As a special exception to the GNU General Public License, 17552# if you distribute this file as part of a program or library that 17553# is built using GNU Libtool, you may include this file under the 17554# same distribution terms that you use for the rest of that program. 17555# 17556# GNU Libtool is distributed in the hope that it will be useful, 17557# but WITHOUT ANY WARRANTY; without even the implied warranty of 17558# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17559# GNU General Public License for more details. 17560# 17561# You should have received a copy of the GNU General Public License 17562# along with GNU Libtool; see the file COPYING. If not, a copy 17563# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17564# obtained by writing to the Free Software Foundation, Inc., 17565# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17566 17567 17568# The names of the tagged configurations supported by this script. 17569available_tags="" 17570 17571# ### BEGIN LIBTOOL CONFIG 17572 17573# Assembler program. 17574AS=$lt_AS 17575 17576# DLL creation program. 17577DLLTOOL=$lt_DLLTOOL 17578 17579# Object dumper program. 17580OBJDUMP=$lt_OBJDUMP 17581 17582# Which release of libtool.m4 was used? 17583macro_version=$macro_version 17584macro_revision=$macro_revision 17585 17586# Whether or not to build shared libraries. 17587build_libtool_libs=$enable_shared 17588 17589# Whether or not to build static libraries. 17590build_old_libs=$enable_static 17591 17592# What type of objects to build. 17593pic_mode=$pic_mode 17594 17595# Whether or not to optimize for fast installation. 17596fast_install=$enable_fast_install 17597 17598# Shell to use when invoking shell scripts. 17599SHELL=$lt_SHELL 17600 17601# An echo program that protects backslashes. 17602ECHO=$lt_ECHO 17603 17604# The PATH separator for the build system. 17605PATH_SEPARATOR=$lt_PATH_SEPARATOR 17606 17607# The host system. 17608host_alias=$host_alias 17609host=$host 17610host_os=$host_os 17611 17612# The build system. 17613build_alias=$build_alias 17614build=$build 17615build_os=$build_os 17616 17617# A sed program that does not truncate output. 17618SED=$lt_SED 17619 17620# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17621Xsed="\$SED -e 1s/^X//" 17622 17623# A grep program that handles long lines. 17624GREP=$lt_GREP 17625 17626# An ERE matcher. 17627EGREP=$lt_EGREP 17628 17629# A literal string matcher. 17630FGREP=$lt_FGREP 17631 17632# A BSD- or MS-compatible name lister. 17633NM=$lt_NM 17634 17635# Whether we need soft or hard links. 17636LN_S=$lt_LN_S 17637 17638# What is the maximum length of a command? 17639max_cmd_len=$max_cmd_len 17640 17641# Object file suffix (normally "o"). 17642objext=$ac_objext 17643 17644# Executable file suffix (normally ""). 17645exeext=$exeext 17646 17647# whether the shell understands "unset". 17648lt_unset=$lt_unset 17649 17650# turn spaces into newlines. 17651SP2NL=$lt_lt_SP2NL 17652 17653# turn newlines into spaces. 17654NL2SP=$lt_lt_NL2SP 17655 17656# convert \$build file names to \$host format. 17657to_host_file_cmd=$lt_cv_to_host_file_cmd 17658 17659# convert \$build files to toolchain format. 17660to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17661 17662# Method to check whether dependent libraries are shared objects. 17663deplibs_check_method=$lt_deplibs_check_method 17664 17665# Command to use when deplibs_check_method = "file_magic". 17666file_magic_cmd=$lt_file_magic_cmd 17667 17668# How to find potential files when deplibs_check_method = "file_magic". 17669file_magic_glob=$lt_file_magic_glob 17670 17671# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17672want_nocaseglob=$lt_want_nocaseglob 17673 17674# Command to associate shared and link libraries. 17675sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17676 17677# The archiver. 17678AR=$lt_AR 17679 17680# Flags to create an archive. 17681AR_FLAGS=$lt_AR_FLAGS 17682 17683# How to feed a file listing to the archiver. 17684archiver_list_spec=$lt_archiver_list_spec 17685 17686# A symbol stripping program. 17687STRIP=$lt_STRIP 17688 17689# Commands used to install an old-style archive. 17690RANLIB=$lt_RANLIB 17691old_postinstall_cmds=$lt_old_postinstall_cmds 17692old_postuninstall_cmds=$lt_old_postuninstall_cmds 17693 17694# Whether to use a lock for old archive extraction. 17695lock_old_archive_extraction=$lock_old_archive_extraction 17696 17697# A C compiler. 17698LTCC=$lt_CC 17699 17700# LTCC compiler flags. 17701LTCFLAGS=$lt_CFLAGS 17702 17703# Take the output of nm and produce a listing of raw symbols and C names. 17704global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17705 17706# Transform the output of nm in a proper C declaration. 17707global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17708 17709# Transform the output of nm in a C name address pair. 17710global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17711 17712# Transform the output of nm in a C name address pair when lib prefix is needed. 17713global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17714 17715# Specify filename containing input files for \$NM. 17716nm_file_list_spec=$lt_nm_file_list_spec 17717 17718# The root where to search for dependent libraries,and in which our libraries should be installed. 17719lt_sysroot=$lt_sysroot 17720 17721# The name of the directory that contains temporary libtool files. 17722objdir=$objdir 17723 17724# Used to examine libraries when file_magic_cmd begins with "file". 17725MAGIC_CMD=$MAGIC_CMD 17726 17727# Must we lock files when doing compilation? 17728need_locks=$lt_need_locks 17729 17730# Manifest tool. 17731MANIFEST_TOOL=$lt_MANIFEST_TOOL 17732 17733# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17734DSYMUTIL=$lt_DSYMUTIL 17735 17736# Tool to change global to local symbols on Mac OS X. 17737NMEDIT=$lt_NMEDIT 17738 17739# Tool to manipulate fat objects and archives on Mac OS X. 17740LIPO=$lt_LIPO 17741 17742# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17743OTOOL=$lt_OTOOL 17744 17745# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17746OTOOL64=$lt_OTOOL64 17747 17748# Old archive suffix (normally "a"). 17749libext=$libext 17750 17751# Shared library suffix (normally ".so"). 17752shrext_cmds=$lt_shrext_cmds 17753 17754# The commands to extract the exported symbol list from a shared archive. 17755extract_expsyms_cmds=$lt_extract_expsyms_cmds 17756 17757# Variables whose values should be saved in libtool wrapper scripts and 17758# restored at link time. 17759variables_saved_for_relink=$lt_variables_saved_for_relink 17760 17761# Do we need the "lib" prefix for modules? 17762need_lib_prefix=$need_lib_prefix 17763 17764# Do we need a version for libraries? 17765need_version=$need_version 17766 17767# Library versioning type. 17768version_type=$version_type 17769 17770# Shared library runtime path variable. 17771runpath_var=$runpath_var 17772 17773# Shared library path variable. 17774shlibpath_var=$shlibpath_var 17775 17776# Is shlibpath searched before the hard-coded library search path? 17777shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17778 17779# Format of library name prefix. 17780libname_spec=$lt_libname_spec 17781 17782# List of archive names. First name is the real one, the rest are links. 17783# The last name is the one that the linker finds with -lNAME 17784library_names_spec=$lt_library_names_spec 17785 17786# The coded name of the library, if different from the real name. 17787soname_spec=$lt_soname_spec 17788 17789# Permission mode override for installation of shared libraries. 17790install_override_mode=$lt_install_override_mode 17791 17792# Command to use after installation of a shared archive. 17793postinstall_cmds=$lt_postinstall_cmds 17794 17795# Command to use after uninstallation of a shared archive. 17796postuninstall_cmds=$lt_postuninstall_cmds 17797 17798# Commands used to finish a libtool library installation in a directory. 17799finish_cmds=$lt_finish_cmds 17800 17801# As "finish_cmds", except a single script fragment to be evaled but 17802# not shown. 17803finish_eval=$lt_finish_eval 17804 17805# Whether we should hardcode library paths into libraries. 17806hardcode_into_libs=$hardcode_into_libs 17807 17808# Compile-time system search path for libraries. 17809sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17810 17811# Run-time system search path for libraries. 17812sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17813 17814# Whether dlopen is supported. 17815dlopen_support=$enable_dlopen 17816 17817# Whether dlopen of programs is supported. 17818dlopen_self=$enable_dlopen_self 17819 17820# Whether dlopen of statically linked programs is supported. 17821dlopen_self_static=$enable_dlopen_self_static 17822 17823# Commands to strip libraries. 17824old_striplib=$lt_old_striplib 17825striplib=$lt_striplib 17826 17827 17828# The linker used to build libraries. 17829LD=$lt_LD 17830 17831# How to create reloadable object files. 17832reload_flag=$lt_reload_flag 17833reload_cmds=$lt_reload_cmds 17834 17835# Commands used to build an old-style archive. 17836old_archive_cmds=$lt_old_archive_cmds 17837 17838# A language specific compiler. 17839CC=$lt_compiler 17840 17841# Is the compiler the GNU compiler? 17842with_gcc=$GCC 17843 17844# Compiler flag to turn off builtin functions. 17845no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17846 17847# Additional compiler flags for building library objects. 17848pic_flag=$lt_lt_prog_compiler_pic 17849 17850# How to pass a linker flag through the compiler. 17851wl=$lt_lt_prog_compiler_wl 17852 17853# Compiler flag to prevent dynamic linking. 17854link_static_flag=$lt_lt_prog_compiler_static 17855 17856# Does compiler simultaneously support -c and -o options? 17857compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17858 17859# Whether or not to add -lc for building shared libraries. 17860build_libtool_need_lc=$archive_cmds_need_lc 17861 17862# Whether or not to disallow shared libs when runtime libs are static. 17863allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17864 17865# Compiler flag to allow reflexive dlopens. 17866export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17867 17868# Compiler flag to generate shared objects directly from archives. 17869whole_archive_flag_spec=$lt_whole_archive_flag_spec 17870 17871# Whether the compiler copes with passing no objects directly. 17872compiler_needs_object=$lt_compiler_needs_object 17873 17874# Create an old-style archive from a shared archive. 17875old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17876 17877# Create a temporary old-style archive to link instead of a shared archive. 17878old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17879 17880# Commands used to build a shared archive. 17881archive_cmds=$lt_archive_cmds 17882archive_expsym_cmds=$lt_archive_expsym_cmds 17883 17884# Commands used to build a loadable module if different from building 17885# a shared archive. 17886module_cmds=$lt_module_cmds 17887module_expsym_cmds=$lt_module_expsym_cmds 17888 17889# Whether we are building with GNU ld or not. 17890with_gnu_ld=$lt_with_gnu_ld 17891 17892# Flag that allows shared libraries with undefined symbols to be built. 17893allow_undefined_flag=$lt_allow_undefined_flag 17894 17895# Flag that enforces no undefined symbols. 17896no_undefined_flag=$lt_no_undefined_flag 17897 17898# Flag to hardcode \$libdir into a binary during linking. 17899# This must work even if \$libdir does not exist 17900hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17901 17902# Whether we need a single "-rpath" flag with a separated argument. 17903hardcode_libdir_separator=$lt_hardcode_libdir_separator 17904 17905# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17906# DIR into the resulting binary. 17907hardcode_direct=$hardcode_direct 17908 17909# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17910# DIR into the resulting binary and the resulting library dependency is 17911# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17912# library is relocated. 17913hardcode_direct_absolute=$hardcode_direct_absolute 17914 17915# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17916# into the resulting binary. 17917hardcode_minus_L=$hardcode_minus_L 17918 17919# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17920# into the resulting binary. 17921hardcode_shlibpath_var=$hardcode_shlibpath_var 17922 17923# Set to "yes" if building a shared library automatically hardcodes DIR 17924# into the library and all subsequent libraries and executables linked 17925# against it. 17926hardcode_automatic=$hardcode_automatic 17927 17928# Set to yes if linker adds runtime paths of dependent libraries 17929# to runtime path list. 17930inherit_rpath=$inherit_rpath 17931 17932# Whether libtool must link a program against all its dependency libraries. 17933link_all_deplibs=$link_all_deplibs 17934 17935# Set to "yes" if exported symbols are required. 17936always_export_symbols=$always_export_symbols 17937 17938# The commands to list exported symbols. 17939export_symbols_cmds=$lt_export_symbols_cmds 17940 17941# Symbols that should not be listed in the preloaded symbols. 17942exclude_expsyms=$lt_exclude_expsyms 17943 17944# Symbols that must always be exported. 17945include_expsyms=$lt_include_expsyms 17946 17947# Commands necessary for linking programs (against libraries) with templates. 17948prelink_cmds=$lt_prelink_cmds 17949 17950# Commands necessary for finishing linking programs. 17951postlink_cmds=$lt_postlink_cmds 17952 17953# Specify filename containing input files. 17954file_list_spec=$lt_file_list_spec 17955 17956# How to hardcode a shared library path into an executable. 17957hardcode_action=$hardcode_action 17958 17959# ### END LIBTOOL CONFIG 17960 17961_LT_EOF 17962 17963 case $host_os in 17964 aix3*) 17965 cat <<\_LT_EOF >> "$cfgfile" 17966# AIX sometimes has problems with the GCC collect2 program. For some 17967# reason, if we set the COLLECT_NAMES environment variable, the problems 17968# vanish in a puff of smoke. 17969if test "X${COLLECT_NAMES+set}" != Xset; then 17970 COLLECT_NAMES= 17971 export COLLECT_NAMES 17972fi 17973_LT_EOF 17974 ;; 17975 esac 17976 17977 17978ltmain="$ac_aux_dir/ltmain.sh" 17979 17980 17981 # We use sed instead of cat because bash on DJGPP gets confused if 17982 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17983 # text mode, it properly converts lines to CR/LF. This bash problem 17984 # is reportedly fixed, but why not run on old versions too? 17985 sed '$q' "$ltmain" >> "$cfgfile" \ 17986 || (rm -f "$cfgfile"; exit 1) 17987 17988 if test x"$xsi_shell" = xyes; then 17989 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17990func_dirname ()\ 17991{\ 17992\ case ${1} in\ 17993\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17994\ * ) func_dirname_result="${3}" ;;\ 17995\ esac\ 17996} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17997 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17999test 0 -eq $? || _lt_function_replace_fail=: 18000 18001 18002 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18003func_basename ()\ 18004{\ 18005\ func_basename_result="${1##*/}"\ 18006} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18007 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18009test 0 -eq $? || _lt_function_replace_fail=: 18010 18011 18012 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18013func_dirname_and_basename ()\ 18014{\ 18015\ case ${1} in\ 18016\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18017\ * ) func_dirname_result="${3}" ;;\ 18018\ esac\ 18019\ func_basename_result="${1##*/}"\ 18020} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18021 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18023test 0 -eq $? || _lt_function_replace_fail=: 18024 18025 18026 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18027func_stripname ()\ 18028{\ 18029\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18030\ # positional parameters, so assign one to ordinary parameter first.\ 18031\ func_stripname_result=${3}\ 18032\ func_stripname_result=${func_stripname_result#"${1}"}\ 18033\ func_stripname_result=${func_stripname_result%"${2}"}\ 18034} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18035 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18036 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18037test 0 -eq $? || _lt_function_replace_fail=: 18038 18039 18040 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18041func_split_long_opt ()\ 18042{\ 18043\ func_split_long_opt_name=${1%%=*}\ 18044\ func_split_long_opt_arg=${1#*=}\ 18045} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18046 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18048test 0 -eq $? || _lt_function_replace_fail=: 18049 18050 18051 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18052func_split_short_opt ()\ 18053{\ 18054\ func_split_short_opt_arg=${1#??}\ 18055\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18056} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18057 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18059test 0 -eq $? || _lt_function_replace_fail=: 18060 18061 18062 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18063func_lo2o ()\ 18064{\ 18065\ case ${1} in\ 18066\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18067\ *) func_lo2o_result=${1} ;;\ 18068\ esac\ 18069} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18070 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18072test 0 -eq $? || _lt_function_replace_fail=: 18073 18074 18075 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18076func_xform ()\ 18077{\ 18078 func_xform_result=${1%.*}.lo\ 18079} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18080 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18082test 0 -eq $? || _lt_function_replace_fail=: 18083 18084 18085 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18086func_arith ()\ 18087{\ 18088 func_arith_result=$(( $* ))\ 18089} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18090 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18092test 0 -eq $? || _lt_function_replace_fail=: 18093 18094 18095 sed -e '/^func_len ()$/,/^} # func_len /c\ 18096func_len ()\ 18097{\ 18098 func_len_result=${#1}\ 18099} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18100 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18102test 0 -eq $? || _lt_function_replace_fail=: 18103 18104fi 18105 18106if test x"$lt_shell_append" = xyes; then 18107 sed -e '/^func_append ()$/,/^} # func_append /c\ 18108func_append ()\ 18109{\ 18110 eval "${1}+=\\${2}"\ 18111} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18112 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18113 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18114test 0 -eq $? || _lt_function_replace_fail=: 18115 18116 18117 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18118func_append_quoted ()\ 18119{\ 18120\ func_quote_for_eval "${2}"\ 18121\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18122} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18123 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18125test 0 -eq $? || _lt_function_replace_fail=: 18126 18127 18128 # Save a `func_append' function call where possible by direct use of '+=' 18129 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18130 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18132 test 0 -eq $? || _lt_function_replace_fail=: 18133else 18134 # Save a `func_append' function call even when '+=' is not available 18135 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18136 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18138 test 0 -eq $? || _lt_function_replace_fail=: 18139fi 18140 18141if test x"$_lt_function_replace_fail" = x":"; then 18142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18143$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18144fi 18145 18146 18147 mv -f "$cfgfile" "$ofile" || 18148 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18149 chmod +x "$ofile" 18150 18151 ;; 18152 "$ac_stdint_h":C) 18153{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5 18154$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} 18155ac_stdint=$tmp/_stdint.h 18156 18157echo "#ifndef" $_ac_stdint_h >$ac_stdint 18158echo "#define" $_ac_stdint_h "1" >>$ac_stdint 18159echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint 18160echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint 18161echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint 18162if test "_$ac_cv_header_stdint_t" != "_" ; then 18163echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint 18164echo "#include <stdint.h>" >>$ac_stdint 18165echo "#endif" >>$ac_stdint 18166echo "#endif" >>$ac_stdint 18167else 18168 18169cat >>$ac_stdint <<STDINT_EOF 18170 18171/* ................... shortcircuit part ........................... */ 18172 18173#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H 18174#include <stdint.h> 18175#else 18176#include <stddef.h> 18177 18178/* .................... configured part ............................ */ 18179 18180STDINT_EOF 18181 18182echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint 18183if test "_$ac_cv_header_stdint_x" != "_" ; then 18184 ac_header="$ac_cv_header_stdint_x" 18185 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint 18186else 18187 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint 18188fi 18189 18190echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint 18191if test "_$ac_cv_header_stdint_o" != "_" ; then 18192 ac_header="$ac_cv_header_stdint_o" 18193 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint 18194else 18195 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint 18196fi 18197 18198echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint 18199if test "_$ac_cv_header_stdint_u" != "_" ; then 18200 ac_header="$ac_cv_header_stdint_u" 18201 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint 18202else 18203 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint 18204fi 18205 18206echo "" >>$ac_stdint 18207 18208if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then 18209 echo "#include <$ac_header>" >>$ac_stdint 18210 echo "" >>$ac_stdint 18211fi fi 18212 18213echo "/* which 64bit typedef has been found */" >>$ac_stdint 18214if test "$ac_cv_type_uint64_t" = "yes" ; then 18215echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint 18216else 18217echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint 18218fi 18219if test "$ac_cv_type_u_int64_t" = "yes" ; then 18220echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint 18221else 18222echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint 18223fi 18224echo "" >>$ac_stdint 18225 18226echo "/* which type model has been detected */" >>$ac_stdint 18227if test "_$ac_cv_char_data_model" != "_" ; then 18228echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint 18229echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint 18230else 18231echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint 18232echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint 18233fi 18234echo "" >>$ac_stdint 18235 18236echo "/* whether int_least types were detected */" >>$ac_stdint 18237if test "$ac_cv_type_int_least32_t" = "yes"; then 18238echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint 18239else 18240echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint 18241fi 18242echo "/* whether int_fast types were detected */" >>$ac_stdint 18243if test "$ac_cv_type_int_fast32_t" = "yes"; then 18244echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint 18245else 18246echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint 18247fi 18248echo "/* whether intmax_t type was detected */" >>$ac_stdint 18249if test "$ac_cv_type_intmax_t" = "yes"; then 18250echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint 18251else 18252echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint 18253fi 18254echo "" >>$ac_stdint 18255 18256 cat >>$ac_stdint <<STDINT_EOF 18257/* .................... detections part ............................ */ 18258 18259/* whether we need to define bitspecific types from compiler base types */ 18260#ifndef _STDINT_HEADER_INTPTR 18261#ifndef _STDINT_HEADER_UINT32 18262#ifndef _STDINT_HEADER_U_INT32 18263#define _STDINT_NEED_INT_MODEL_T 18264#else 18265#define _STDINT_HAVE_U_INT_TYPES 18266#endif 18267#endif 18268#endif 18269 18270#ifdef _STDINT_HAVE_U_INT_TYPES 18271#undef _STDINT_NEED_INT_MODEL_T 18272#endif 18273 18274#ifdef _STDINT_CHAR_MODEL 18275#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 18276#ifndef _STDINT_BYTE_MODEL 18277#define _STDINT_BYTE_MODEL 12 18278#endif 18279#endif 18280#endif 18281 18282#ifndef _STDINT_HAVE_INT_LEAST32_T 18283#define _STDINT_NEED_INT_LEAST_T 18284#endif 18285 18286#ifndef _STDINT_HAVE_INT_FAST32_T 18287#define _STDINT_NEED_INT_FAST_T 18288#endif 18289 18290#ifndef _STDINT_HEADER_INTPTR 18291#define _STDINT_NEED_INTPTR_T 18292#ifndef _STDINT_HAVE_INTMAX_T 18293#define _STDINT_NEED_INTMAX_T 18294#endif 18295#endif 18296 18297 18298/* .................... definition part ............................ */ 18299 18300/* some system headers have good uint64_t */ 18301#ifndef _HAVE_UINT64_T 18302#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T 18303#define _HAVE_UINT64_T 18304#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T 18305#define _HAVE_UINT64_T 18306typedef u_int64_t uint64_t; 18307#endif 18308#endif 18309 18310#ifndef _HAVE_UINT64_T 18311/* .. here are some common heuristics using compiler runtime specifics */ 18312#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L 18313#define _HAVE_UINT64_T 18314#define _HAVE_LONGLONG_UINT64_T 18315typedef long long int64_t; 18316typedef unsigned long long uint64_t; 18317 18318#elif !defined __STRICT_ANSI__ 18319#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 18320#define _HAVE_UINT64_T 18321typedef __int64 int64_t; 18322typedef unsigned __int64 uint64_t; 18323 18324#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 18325/* note: all ELF-systems seem to have loff-support which needs 64-bit */ 18326#if !defined _NO_LONGLONG 18327#define _HAVE_UINT64_T 18328#define _HAVE_LONGLONG_UINT64_T 18329typedef long long int64_t; 18330typedef unsigned long long uint64_t; 18331#endif 18332 18333#elif defined __alpha || (defined __mips && defined _ABIN32) 18334#if !defined _NO_LONGLONG 18335typedef long int64_t; 18336typedef unsigned long uint64_t; 18337#endif 18338 /* compiler/cpu type to define int64_t */ 18339#endif 18340#endif 18341#endif 18342 18343#if defined _STDINT_HAVE_U_INT_TYPES 18344/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 18345typedef u_int8_t uint8_t; 18346typedef u_int16_t uint16_t; 18347typedef u_int32_t uint32_t; 18348 18349/* glibc compatibility */ 18350#ifndef __int8_t_defined 18351#define __int8_t_defined 18352#endif 18353#endif 18354 18355#ifdef _STDINT_NEED_INT_MODEL_T 18356/* we must guess all the basic types. Apart from byte-adressable system, */ 18357/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ 18358/* (btw, those nibble-addressable systems are way off, or so we assume) */ 18359 18360 18361#if defined _STDINT_BYTE_MODEL 18362#if _STDINT_LONG_MODEL+0 == 242 18363/* 2:4:2 = IP16 = a normal 16-bit system */ 18364typedef unsigned char uint8_t; 18365typedef unsigned short uint16_t; 18366typedef unsigned long uint32_t; 18367#ifndef __int8_t_defined 18368#define __int8_t_defined 18369typedef char int8_t; 18370typedef short int16_t; 18371typedef long int32_t; 18372#endif 18373#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 18374/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ 18375/* 4:4:4 = ILP32 = a normal 32-bit system */ 18376typedef unsigned char uint8_t; 18377typedef unsigned short uint16_t; 18378typedef unsigned int uint32_t; 18379#ifndef __int8_t_defined 18380#define __int8_t_defined 18381typedef char int8_t; 18382typedef short int16_t; 18383typedef int int32_t; 18384#endif 18385#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 18386/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ 18387/* 4:8:8 = LP64 = a normal 64-bit system */ 18388typedef unsigned char uint8_t; 18389typedef unsigned short uint16_t; 18390typedef unsigned int uint32_t; 18391#ifndef __int8_t_defined 18392#define __int8_t_defined 18393typedef char int8_t; 18394typedef short int16_t; 18395typedef int int32_t; 18396#endif 18397/* this system has a "long" of 64bit */ 18398#ifndef _HAVE_UINT64_T 18399#define _HAVE_UINT64_T 18400typedef unsigned long uint64_t; 18401typedef long int64_t; 18402#endif 18403#elif _STDINT_LONG_MODEL+0 == 448 18404/* LLP64 a 64-bit system derived from a 32-bit system */ 18405typedef unsigned char uint8_t; 18406typedef unsigned short uint16_t; 18407typedef unsigned int uint32_t; 18408#ifndef __int8_t_defined 18409#define __int8_t_defined 18410typedef char int8_t; 18411typedef short int16_t; 18412typedef int int32_t; 18413#endif 18414/* assuming the system has a "long long" */ 18415#ifndef _HAVE_UINT64_T 18416#define _HAVE_UINT64_T 18417#define _HAVE_LONGLONG_UINT64_T 18418typedef unsigned long long uint64_t; 18419typedef long long int64_t; 18420#endif 18421#else 18422#define _STDINT_NO_INT32_T 18423#endif 18424#else 18425#define _STDINT_NO_INT8_T 18426#define _STDINT_NO_INT32_T 18427#endif 18428#endif 18429 18430/* 18431 * quote from SunOS-5.8 sys/inttypes.h: 18432 * Use at your own risk. As of February 1996, the committee is squarely 18433 * behind the fixed sized types; the "least" and "fast" types are still being 18434 * discussed. The probability that the "fast" types may be removed before 18435 * the standard is finalized is high enough that they are not currently 18436 * implemented. 18437 */ 18438 18439#if defined _STDINT_NEED_INT_LEAST_T 18440typedef int8_t int_least8_t; 18441typedef int16_t int_least16_t; 18442typedef int32_t int_least32_t; 18443#ifdef _HAVE_UINT64_T 18444typedef int64_t int_least64_t; 18445#endif 18446 18447typedef uint8_t uint_least8_t; 18448typedef uint16_t uint_least16_t; 18449typedef uint32_t uint_least32_t; 18450#ifdef _HAVE_UINT64_T 18451typedef uint64_t uint_least64_t; 18452#endif 18453 /* least types */ 18454#endif 18455 18456#if defined _STDINT_NEED_INT_FAST_T 18457typedef int8_t int_fast8_t; 18458typedef int int_fast16_t; 18459typedef int32_t int_fast32_t; 18460#ifdef _HAVE_UINT64_T 18461typedef int64_t int_fast64_t; 18462#endif 18463 18464typedef uint8_t uint_fast8_t; 18465typedef unsigned uint_fast16_t; 18466typedef uint32_t uint_fast32_t; 18467#ifdef _HAVE_UINT64_T 18468typedef uint64_t uint_fast64_t; 18469#endif 18470 /* fast types */ 18471#endif 18472 18473#ifdef _STDINT_NEED_INTMAX_T 18474#ifdef _HAVE_UINT64_T 18475typedef int64_t intmax_t; 18476typedef uint64_t uintmax_t; 18477#else 18478typedef long intmax_t; 18479typedef unsigned long uintmax_t; 18480#endif 18481#endif 18482 18483#ifdef _STDINT_NEED_INTPTR_T 18484#ifndef __intptr_t_defined 18485#define __intptr_t_defined 18486/* we encourage using "long" to store pointer values, never use "int" ! */ 18487#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 18488typedef unsigned int uintptr_t; 18489typedef int intptr_t; 18490#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 18491typedef unsigned long uintptr_t; 18492typedef long intptr_t; 18493#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T 18494typedef uint64_t uintptr_t; 18495typedef int64_t intptr_t; 18496#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ 18497typedef unsigned long uintptr_t; 18498typedef long intptr_t; 18499#endif 18500#endif 18501#endif 18502 18503/* The ISO C99 standard specifies that in C++ implementations these 18504 should only be defined if explicitly requested. */ 18505#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS 18506#ifndef UINT32_C 18507 18508/* Signed. */ 18509# define INT8_C(c) c 18510# define INT16_C(c) c 18511# define INT32_C(c) c 18512# ifdef _HAVE_LONGLONG_UINT64_T 18513# define INT64_C(c) c ## L 18514# else 18515# define INT64_C(c) c ## LL 18516# endif 18517 18518/* Unsigned. */ 18519# define UINT8_C(c) c ## U 18520# define UINT16_C(c) c ## U 18521# define UINT32_C(c) c ## U 18522# ifdef _HAVE_LONGLONG_UINT64_T 18523# define UINT64_C(c) c ## UL 18524# else 18525# define UINT64_C(c) c ## ULL 18526# endif 18527 18528/* Maximal type. */ 18529# ifdef _HAVE_LONGLONG_UINT64_T 18530# define INTMAX_C(c) c ## L 18531# define UINTMAX_C(c) c ## UL 18532# else 18533# define INTMAX_C(c) c ## LL 18534# define UINTMAX_C(c) c ## ULL 18535# endif 18536 18537 /* literalnumbers */ 18538#endif 18539#endif 18540 18541/* These limits are merily those of a two complement byte-oriented system */ 18542 18543/* Minimum of signed integral types. */ 18544# define INT8_MIN (-128) 18545# define INT16_MIN (-32767-1) 18546# define INT32_MIN (-2147483647-1) 18547# define INT64_MIN (-__INT64_C(9223372036854775807)-1) 18548/* Maximum of signed integral types. */ 18549# define INT8_MAX (127) 18550# define INT16_MAX (32767) 18551# define INT32_MAX (2147483647) 18552# define INT64_MAX (__INT64_C(9223372036854775807)) 18553 18554/* Maximum of unsigned integral types. */ 18555# define UINT8_MAX (255) 18556# define UINT16_MAX (65535) 18557# define UINT32_MAX (4294967295U) 18558# define UINT64_MAX (__UINT64_C(18446744073709551615)) 18559 18560/* Minimum of signed integral types having a minimum size. */ 18561# define INT_LEAST8_MIN INT8_MIN 18562# define INT_LEAST16_MIN INT16_MIN 18563# define INT_LEAST32_MIN INT32_MIN 18564# define INT_LEAST64_MIN INT64_MIN 18565/* Maximum of signed integral types having a minimum size. */ 18566# define INT_LEAST8_MAX INT8_MAX 18567# define INT_LEAST16_MAX INT16_MAX 18568# define INT_LEAST32_MAX INT32_MAX 18569# define INT_LEAST64_MAX INT64_MAX 18570 18571/* Maximum of unsigned integral types having a minimum size. */ 18572# define UINT_LEAST8_MAX UINT8_MAX 18573# define UINT_LEAST16_MAX UINT16_MAX 18574# define UINT_LEAST32_MAX UINT32_MAX 18575# define UINT_LEAST64_MAX UINT64_MAX 18576 18577 /* shortcircuit*/ 18578#endif 18579 /* once */ 18580#endif 18581#endif 18582STDINT_EOF 18583fi 18584 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then 18585 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5 18586$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;} 18587 else 18588 ac_dir=`$as_dirname -- "$ac_stdint_h" || 18589$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18590 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ 18591 X"$ac_stdint_h" : 'X\(//\)$' \| \ 18592 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || 18593$as_echo X"$ac_stdint_h" | 18594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18595 s//\1/ 18596 q 18597 } 18598 /^X\(\/\/\)[^/].*/{ 18599 s//\1/ 18600 q 18601 } 18602 /^X\(\/\/\)$/{ 18603 s//\1/ 18604 q 18605 } 18606 /^X\(\/\).*/{ 18607 s//\1/ 18608 q 18609 } 18610 s/.*/./; q'` 18611 as_dir="$ac_dir"; as_fn_mkdir_p 18612 rm -f $ac_stdint_h 18613 mv $ac_stdint $ac_stdint_h 18614 fi 18615 ;; 18616 18617 esac 18618done # for ac_tag 18619 18620 18621as_fn_exit 0 18622_ACEOF 18623ac_clean_files=$ac_clean_files_save 18624 18625test $ac_write_fail = 0 || 18626 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18627 18628 18629# configure is writing to config.log, and then calls config.status. 18630# config.status does its own redirection, appending to config.log. 18631# Unfortunately, on DOS this fails, as config.log is still kept open 18632# by configure, so config.status won't be able to write to it; its 18633# output is simply discarded. So we exec the FD to /dev/null, 18634# effectively closing config.log, so it can be properly (re)opened and 18635# appended to by config.status. When coming back to configure, we 18636# need to make the FD available again. 18637if test "$no_create" != yes; then 18638 ac_cs_success=: 18639 ac_config_status_args= 18640 test "$silent" = yes && 18641 ac_config_status_args="$ac_config_status_args --quiet" 18642 exec 5>/dev/null 18643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18644 exec 5>>config.log 18645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18646 # would make configure fail if this is the last instruction. 18647 $ac_cs_success || as_fn_exit 1 18648fi 18649if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18651$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18652fi 18653 18654