1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for chafa 1.8.0. 4# 5# Report bugs to <hpj@hpjansson.org>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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 hpj@hpjansson.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='chafa' 592PACKAGE_TARNAME='chafa' 593PACKAGE_VERSION='1.8.0' 594PACKAGE_STRING='chafa 1.8.0' 595PACKAGE_BUGREPORT='hpj@hpjansson.org' 596PACKAGE_URL='' 597 598ac_unique_file="chafa.pc.in" 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_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639ENABLE_RPATH_FALSE 640ENABLE_RPATH_TRUE 641CHAFA_LDFLAGS 642CHAFA_CFLAGS 643LIBCHAFA_LDFLAGS 644LIBCHAFA_CFLAGS 645HAVE_POPCNT_INTRINSICS_FALSE 646HAVE_POPCNT_INTRINSICS_TRUE 647HAVE_AVX2_INTRINSICS_FALSE 648HAVE_AVX2_INTRINSICS_TRUE 649HAVE_SSE41_INTRINSICS_FALSE 650HAVE_SSE41_INTRINSICS_TRUE 651HAVE_MMX_INTRINSICS_FALSE 652HAVE_MMX_INTRINSICS_TRUE 653ENABLE_MAN_FALSE 654ENABLE_MAN_TRUE 655XMLCATALOG 656XML_CATALOG_FILE 657XSLTPROC 658GTK_DOC_USE_REBASE_FALSE 659GTK_DOC_USE_REBASE_TRUE 660GTK_DOC_USE_LIBTOOL_FALSE 661GTK_DOC_USE_LIBTOOL_TRUE 662GTK_DOC_BUILD_PDF_FALSE 663GTK_DOC_BUILD_PDF_TRUE 664GTK_DOC_BUILD_HTML_FALSE 665GTK_DOC_BUILD_HTML_TRUE 666ENABLE_GTK_DOC_FALSE 667ENABLE_GTK_DOC_TRUE 668HAVE_GTK_DOC_FALSE 669HAVE_GTK_DOC_TRUE 670GTKDOC_DEPS_LIBS 671GTKDOC_DEPS_CFLAGS 672HTML_DIR 673GTKDOC_MKPDF 674GTKDOC_REBASE 675GTKDOC_CHECK_PATH 676GTKDOC_CHECK 677GLIB_PREFIX 678FREETYPE_LIBS 679FREETYPE_CFLAGS 680MAGICKWAND_LIBS 681MAGICKWAND_CFLAGS 682WANT_TOOLS_FALSE 683WANT_TOOLS_TRUE 684GLIB_LIBS 685GLIB_CFLAGS 686PKG_CONFIG_LIBDIR 687PKG_CONFIG_PATH 688PKG_CONFIG 689LT_SYS_LIBRARY_PATH 690OTOOL64 691OTOOL 692LIPO 693NMEDIT 694DSYMUTIL 695MANIFEST_TOOL 696RANLIB 697DLLTOOL 698OBJDUMP 699LN_S 700NM 701ac_ct_DUMPBIN 702DUMPBIN 703LD 704FGREP 705EGREP 706GREP 707SED 708host_os 709host_vendor 710host_cpu 711host 712build_os 713build_vendor 714build_cpu 715build 716LIBTOOL 717ac_ct_AR 718AR 719CPP 720am__fastdepCC_FALSE 721am__fastdepCC_TRUE 722CCDEPMODE 723am__nodep 724AMDEPBACKSLASH 725AMDEP_FALSE 726AMDEP_TRUE 727am__include 728DEPDIR 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736MAINT 737MAINTAINER_MODE_FALSE 738MAINTAINER_MODE_TRUE 739CHAFA_VERSION 740CHAFA_MICRO_VERSION 741CHAFA_MINOR_VERSION 742CHAFA_MAJOR_VERSION 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747am__untar 748am__tar 749AMTAR 750am__leading_dot 751SET_MAKE 752AWK 753mkdir_p 754MKDIR_P 755INSTALL_STRIP_PROGRAM 756STRIP 757install_sh 758MAKEINFO 759AUTOHEADER 760AUTOMAKE 761AUTOCONF 762ACLOCAL 763VERSION 764PACKAGE 765CYGPATH_W 766am__isrc 767INSTALL_DATA 768INSTALL_SCRIPT 769INSTALL_PROGRAM 770target_alias 771host_alias 772build_alias 773LIBS 774ECHO_T 775ECHO_N 776ECHO_C 777DEFS 778mandir 779localedir 780libdir 781psdir 782pdfdir 783dvidir 784htmldir 785infodir 786docdir 787oldincludedir 788includedir 789localstatedir 790sharedstatedir 791sysconfdir 792datadir 793datarootdir 794libexecdir 795sbindir 796bindir 797program_transform_name 798prefix 799exec_prefix 800PACKAGE_URL 801PACKAGE_BUGREPORT 802PACKAGE_STRING 803PACKAGE_VERSION 804PACKAGE_TARNAME 805PACKAGE_NAME 806PATH_SEPARATOR 807SHELL 808am__quote' 809ac_subst_files='' 810ac_user_opts=' 811enable_option_checking 812enable_silent_rules 813enable_maintainer_mode 814enable_dependency_tracking 815enable_shared 816enable_static 817with_pic 818enable_fast_install 819with_aix_soname 820with_gnu_ld 821with_sysroot 822enable_libtool_lock 823with_tools 824with_html_dir 825enable_gtk_doc 826enable_gtk_doc_html 827enable_gtk_doc_pdf 828enable_man 829with_xml_catalog 830enable_Bsymbolic 831enable_rpath 832' 833 ac_precious_vars='build_alias 834host_alias 835target_alias 836CC 837CFLAGS 838LDFLAGS 839LIBS 840CPPFLAGS 841CPP 842LT_SYS_LIBRARY_PATH 843PKG_CONFIG 844PKG_CONFIG_PATH 845PKG_CONFIG_LIBDIR 846GLIB_CFLAGS 847GLIB_LIBS 848MAGICKWAND_CFLAGS 849MAGICKWAND_LIBS 850FREETYPE_CFLAGS 851FREETYPE_LIBS 852GTKDOC_DEPS_CFLAGS 853GTKDOC_DEPS_LIBS' 854 855 856# Initialize some variables set by options. 857ac_init_help= 858ac_init_version=false 859ac_unrecognized_opts= 860ac_unrecognized_sep= 861# The variables have the same names as the options, with 862# dashes changed to underlines. 863cache_file=/dev/null 864exec_prefix=NONE 865no_create= 866no_recursion= 867prefix=NONE 868program_prefix=NONE 869program_suffix=NONE 870program_transform_name=s,x,x, 871silent= 872site= 873srcdir= 874verbose= 875x_includes=NONE 876x_libraries=NONE 877 878# Installation directory options. 879# These are left unexpanded so users can "make install exec_prefix=/foo" 880# and all the variables that are supposed to be based on exec_prefix 881# by default will actually change. 882# Use braces instead of parens because sh, perl, etc. also accept them. 883# (The list follows the same order as the GNU Coding Standards.) 884bindir='${exec_prefix}/bin' 885sbindir='${exec_prefix}/sbin' 886libexecdir='${exec_prefix}/libexec' 887datarootdir='${prefix}/share' 888datadir='${datarootdir}' 889sysconfdir='${prefix}/etc' 890sharedstatedir='${prefix}/com' 891localstatedir='${prefix}/var' 892includedir='${prefix}/include' 893oldincludedir='/usr/include' 894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895infodir='${datarootdir}/info' 896htmldir='${docdir}' 897dvidir='${docdir}' 898pdfdir='${docdir}' 899psdir='${docdir}' 900libdir='${exec_prefix}/lib' 901localedir='${datarootdir}/locale' 902mandir='${datarootdir}/man' 903 904ac_prev= 905ac_dashdash= 906for ac_option 907do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 # Accept the important Cygnus configure options, so we can diagnose typos. 922 923 case $ac_dashdash$ac_option in 924 --) 925 ac_dashdash=yes ;; 926 927 -bindir | --bindir | --bindi | --bind | --bin | --bi) 928 ac_prev=bindir ;; 929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 930 bindir=$ac_optarg ;; 931 932 -build | --build | --buil | --bui | --bu) 933 ac_prev=build_alias ;; 934 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 935 build_alias=$ac_optarg ;; 936 937 -cache-file | --cache-file | --cache-fil | --cache-fi \ 938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 939 ac_prev=cache_file ;; 940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 942 cache_file=$ac_optarg ;; 943 944 --config-cache | -C) 945 cache_file=config.cache ;; 946 947 -datadir | --datadir | --datadi | --datad) 948 ac_prev=datadir ;; 949 -datadir=* | --datadir=* | --datadi=* | --datad=*) 950 datadir=$ac_optarg ;; 951 952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 953 | --dataroo | --dataro | --datar) 954 ac_prev=datarootdir ;; 955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 957 datarootdir=$ac_optarg ;; 958 959 -disable-* | --disable-*) 960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 961 # Reject names that are not valid shell variable names. 962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 963 as_fn_error $? "invalid feature name: $ac_useropt" 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968"enable_$ac_useropt" 969"*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=no ;; 974 975 -docdir | --docdir | --docdi | --doc | --do) 976 ac_prev=docdir ;; 977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 978 docdir=$ac_optarg ;; 979 980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 981 ac_prev=dvidir ;; 982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 983 dvidir=$ac_optarg ;; 984 985 -enable-* | --enable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=\$ac_optarg ;; 1000 1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1003 | --exec | --exe | --ex) 1004 ac_prev=exec_prefix ;; 1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1007 | --exec=* | --exe=* | --ex=*) 1008 exec_prefix=$ac_optarg ;; 1009 1010 -gas | --gas | --ga | --g) 1011 # Obsolete; use --with-gas. 1012 with_gas=yes ;; 1013 1014 -help | --help | --hel | --he | -h) 1015 ac_init_help=long ;; 1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1017 ac_init_help=recursive ;; 1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1019 ac_init_help=short ;; 1020 1021 -host | --host | --hos | --ho) 1022 ac_prev=host_alias ;; 1023 -host=* | --host=* | --hos=* | --ho=*) 1024 host_alias=$ac_optarg ;; 1025 1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1027 ac_prev=htmldir ;; 1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1029 | --ht=*) 1030 htmldir=$ac_optarg ;; 1031 1032 -includedir | --includedir | --includedi | --included | --include \ 1033 | --includ | --inclu | --incl | --inc) 1034 ac_prev=includedir ;; 1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1036 | --includ=* | --inclu=* | --incl=* | --inc=*) 1037 includedir=$ac_optarg ;; 1038 1039 -infodir | --infodir | --infodi | --infod | --info | --inf) 1040 ac_prev=infodir ;; 1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1042 infodir=$ac_optarg ;; 1043 1044 -libdir | --libdir | --libdi | --libd) 1045 ac_prev=libdir ;; 1046 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1047 libdir=$ac_optarg ;; 1048 1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1050 | --libexe | --libex | --libe) 1051 ac_prev=libexecdir ;; 1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1053 | --libexe=* | --libex=* | --libe=*) 1054 libexecdir=$ac_optarg ;; 1055 1056 -localedir | --localedir | --localedi | --localed | --locale) 1057 ac_prev=localedir ;; 1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1059 localedir=$ac_optarg ;; 1060 1061 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1062 | --localstate | --localstat | --localsta | --localst | --locals) 1063 ac_prev=localstatedir ;; 1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1066 localstatedir=$ac_optarg ;; 1067 1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1069 ac_prev=mandir ;; 1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1071 mandir=$ac_optarg ;; 1072 1073 -nfp | --nfp | --nf) 1074 # Obsolete; use --without-fp. 1075 with_fp=no ;; 1076 1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1078 | --no-cr | --no-c | -n) 1079 no_create=yes ;; 1080 1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1083 no_recursion=yes ;; 1084 1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1087 | --oldin | --oldi | --old | --ol | --o) 1088 ac_prev=oldincludedir ;; 1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1092 oldincludedir=$ac_optarg ;; 1093 1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1095 ac_prev=prefix ;; 1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1097 prefix=$ac_optarg ;; 1098 1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1100 | --program-pre | --program-pr | --program-p) 1101 ac_prev=program_prefix ;; 1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1104 program_prefix=$ac_optarg ;; 1105 1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1107 | --program-suf | --program-su | --program-s) 1108 ac_prev=program_suffix ;; 1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1111 program_suffix=$ac_optarg ;; 1112 1113 -program-transform-name | --program-transform-name \ 1114 | --program-transform-nam | --program-transform-na \ 1115 | --program-transform-n | --program-transform- \ 1116 | --program-transform | --program-transfor \ 1117 | --program-transfo | --program-transf \ 1118 | --program-trans | --program-tran \ 1119 | --progr-tra | --program-tr | --program-t) 1120 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1129 1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1131 ac_prev=pdfdir ;; 1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1133 pdfdir=$ac_optarg ;; 1134 1135 -psdir | --psdir | --psdi | --psd | --ps) 1136 ac_prev=psdir ;; 1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1138 psdir=$ac_optarg ;; 1139 1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1141 | -silent | --silent | --silen | --sile | --sil) 1142 silent=yes ;; 1143 1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1145 ac_prev=sbindir ;; 1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1147 | --sbi=* | --sb=*) 1148 sbindir=$ac_optarg ;; 1149 1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1152 | --sharedst | --shareds | --shared | --share | --shar \ 1153 | --sha | --sh) 1154 ac_prev=sharedstatedir ;; 1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1158 | --sha=* | --sh=*) 1159 sharedstatedir=$ac_optarg ;; 1160 1161 -site | --site | --sit) 1162 ac_prev=site ;; 1163 -site=* | --site=* | --sit=*) 1164 site=$ac_optarg ;; 1165 1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1167 ac_prev=srcdir ;; 1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1169 srcdir=$ac_optarg ;; 1170 1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1172 | --syscon | --sysco | --sysc | --sys | --sy) 1173 ac_prev=sysconfdir ;; 1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1176 sysconfdir=$ac_optarg ;; 1177 1178 -target | --target | --targe | --targ | --tar | --ta | --t) 1179 ac_prev=target_alias ;; 1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1181 target_alias=$ac_optarg ;; 1182 1183 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1184 verbose=yes ;; 1185 1186 -version | --version | --versio | --versi | --vers | -V) 1187 ac_init_version=: ;; 1188 1189 -with-* | --with-*) 1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 as_fn_error $? "invalid package name: $ac_useropt" 1194 ac_useropt_orig=$ac_useropt 1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1196 case $ac_user_opts in 1197 *" 1198"with_$ac_useropt" 1199"*) ;; 1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1201 ac_unrecognized_sep=', ';; 1202 esac 1203 eval with_$ac_useropt=\$ac_optarg ;; 1204 1205 -without-* | --without-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: $ac_useropt" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214"with_$ac_useropt" 1215"*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=no ;; 1220 1221 --x) 1222 # Obsolete; use --with-x. 1223 with_x=yes ;; 1224 1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1226 | --x-incl | --x-inc | --x-in | --x-i) 1227 ac_prev=x_includes ;; 1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1230 x_includes=$ac_optarg ;; 1231 1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1234 ac_prev=x_libraries ;; 1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1237 x_libraries=$ac_optarg ;; 1238 1239 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1240Try \`$0 --help' for more information" 1241 ;; 1242 1243 *=*) 1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1245 # Reject names that are not valid shell variable names. 1246 case $ac_envvar in #( 1247 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1249 esac 1250 eval $ac_envvar=\$ac_optarg 1251 export $ac_envvar ;; 1252 1253 *) 1254 # FIXME: should be removed in autoconf 3.0. 1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1259 ;; 1260 1261 esac 1262done 1263 1264if test -n "$ac_prev"; then 1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1266 as_fn_error $? "missing argument to $ac_option" 1267fi 1268 1269if test -n "$ac_unrecognized_opts"; then 1270 case $enable_option_checking in 1271 no) ;; 1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1274 esac 1275fi 1276 1277# Check all directory arguments for consistency. 1278for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1279 datadir sysconfdir sharedstatedir localstatedir includedir \ 1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1281 libdir localedir mandir 1282do 1283 eval ac_val=\$$ac_var 1284 # Remove trailing slashes. 1285 case $ac_val in 1286 */ ) 1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1288 eval $ac_var=\$ac_val;; 1289 esac 1290 # Be sure to have absolute directory names. 1291 case $ac_val in 1292 [\\/$]* | ?:[\\/]* ) continue;; 1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1294 esac 1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1296done 1297 1298# There might be people who depend on the old broken behavior: `$host' 1299# used to hold the argument of --host etc. 1300# FIXME: To remove some day. 1301build=$build_alias 1302host=$host_alias 1303target=$target_alias 1304 1305# FIXME: To remove some day. 1306if test "x$host_alias" != x; then 1307 if test "x$build_alias" = x; then 1308 cross_compiling=maybe 1309 elif test "x$build_alias" != "x$host_alias"; then 1310 cross_compiling=yes 1311 fi 1312fi 1313 1314ac_tool_prefix= 1315test -n "$host_alias" && ac_tool_prefix=$host_alias- 1316 1317test "$silent" = yes && exec 6>/dev/null 1318 1319 1320ac_pwd=`pwd` && test -n "$ac_pwd" && 1321ac_ls_di=`ls -di .` && 1322ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1323 as_fn_error $? "working directory cannot be determined" 1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1325 as_fn_error $? "pwd does not report name of working directory" 1326 1327 1328# Find the source files, if location was not specified. 1329if test -z "$srcdir"; then 1330 ac_srcdir_defaulted=yes 1331 # Try the directory containing this script, then the parent directory. 1332 ac_confdir=`$as_dirname -- "$as_myself" || 1333$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1334 X"$as_myself" : 'X\(//\)[^/]' \| \ 1335 X"$as_myself" : 'X\(//\)$' \| \ 1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1337$as_echo X"$as_myself" | 1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)[^/].*/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\).*/{ 1351 s//\1/ 1352 q 1353 } 1354 s/.*/./; q'` 1355 srcdir=$ac_confdir 1356 if test ! -r "$srcdir/$ac_unique_file"; then 1357 srcdir=.. 1358 fi 1359else 1360 ac_srcdir_defaulted=no 1361fi 1362if test ! -r "$srcdir/$ac_unique_file"; then 1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1365fi 1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1367ac_abs_confdir=`( 1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1369 pwd)` 1370# When building in place, set srcdir=. 1371if test "$ac_abs_confdir" = "$ac_pwd"; then 1372 srcdir=. 1373fi 1374# Remove unnecessary trailing slashes from srcdir. 1375# Double slashes in file names in object file debugging info 1376# mess up M-x gdb in Emacs. 1377case $srcdir in 1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1379esac 1380for ac_var in $ac_precious_vars; do 1381 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_env_${ac_var}_value=\$${ac_var} 1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1385done 1386 1387# 1388# Report the --help message. 1389# 1390if test "$ac_init_help" = "long"; then 1391 # Omit some internal or obsolete options to make the list less imposing. 1392 # This message is too long to be a string in the A/UX 3.1 sh. 1393 cat <<_ACEOF 1394\`configure' configures chafa 1.8.0 to adapt to many kinds of systems. 1395 1396Usage: $0 [OPTION]... [VAR=VALUE]... 1397 1398To assign environment variables (e.g., CC, CFLAGS...), specify them as 1399VAR=VALUE. See below for descriptions of some of the useful variables. 1400 1401Defaults for the options are specified in brackets. 1402 1403Configuration: 1404 -h, --help display this help and exit 1405 --help=short display options specific to this package 1406 --help=recursive display the short help of all the included packages 1407 -V, --version display version information and exit 1408 -q, --quiet, --silent do not print \`checking ...' messages 1409 --cache-file=FILE cache test results in FILE [disabled] 1410 -C, --config-cache alias for \`--cache-file=config.cache' 1411 -n, --no-create do not create output files 1412 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1413 1414Installation directories: 1415 --prefix=PREFIX install architecture-independent files in PREFIX 1416 [$ac_default_prefix] 1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1418 [PREFIX] 1419 1420By default, \`make install' will install all the files in 1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1422an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1423for instance \`--prefix=\$HOME'. 1424 1425For better control, use the options below. 1426 1427Fine tuning of the installation directories: 1428 --bindir=DIR user executables [EPREFIX/bin] 1429 --sbindir=DIR system admin executables [EPREFIX/sbin] 1430 --libexecdir=DIR program executables [EPREFIX/libexec] 1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1434 --libdir=DIR object code libraries [EPREFIX/lib] 1435 --includedir=DIR C header files [PREFIX/include] 1436 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1439 --infodir=DIR info documentation [DATAROOTDIR/info] 1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1441 --mandir=DIR man documentation [DATAROOTDIR/man] 1442 --docdir=DIR documentation root [DATAROOTDIR/doc/chafa] 1443 --htmldir=DIR html documentation [DOCDIR] 1444 --dvidir=DIR dvi documentation [DOCDIR] 1445 --pdfdir=DIR pdf documentation [DOCDIR] 1446 --psdir=DIR ps documentation [DOCDIR] 1447_ACEOF 1448 1449 cat <<\_ACEOF 1450 1451Program names: 1452 --program-prefix=PREFIX prepend PREFIX to installed program names 1453 --program-suffix=SUFFIX append SUFFIX to installed program names 1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1455 1456System types: 1457 --build=BUILD configure for building on BUILD [guessed] 1458 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1459_ACEOF 1460fi 1461 1462if test -n "$ac_init_help"; then 1463 case $ac_init_help in 1464 short | recursive ) echo "Configuration of chafa 1.8.0:";; 1465 esac 1466 cat <<\_ACEOF 1467 1468Optional Features: 1469 --disable-option-checking ignore unrecognized --enable/--with options 1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1472 --enable-silent-rules less verbose build output (undo: "make V=1") 1473 --disable-silent-rules verbose build output (undo: "make V=0") 1474 --enable-maintainer-mode 1475 enable make rules and dependencies not useful (and 1476 sometimes confusing) to the casual installer 1477 --enable-dependency-tracking 1478 do not reject slow dependency extractors 1479 --disable-dependency-tracking 1480 speeds up one-time build 1481 --enable-shared[=PKGS] build shared libraries [default=yes] 1482 --enable-static[=PKGS] build static libraries [default=yes] 1483 --enable-fast-install[=PKGS] 1484 optimize for fast installation [default=yes] 1485 --disable-libtool-lock avoid locking (might break parallel builds) 1486 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1487 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1488 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1489 --enable-man generate man pages [default=auto] 1490 --disable-Bsymbolic avoid linking with -Bsymbolic 1491 --enable-rpath use rpath [default=no] 1492 1493Optional Packages: 1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1496 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1497 both] 1498 --with-aix-soname=aix|svr4|both 1499 shared library versioning (aka "SONAME") variant to 1500 provide on AIX, [default=aix]. 1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1502 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1503 compiler's sysroot if not specified). 1504 --without-tools don't build command-line tools [default=on] 1505 --with-html-dir=PATH path to installed docs 1506 --with-xml-catalog=CATALOG 1507 path to xml catalog to use 1508 1509Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 LIBS libraries to pass to the linker, e.g. -l<library> 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1516 you have headers in a nonstandard directory <include dir> 1517 CPP C preprocessor 1518 LT_SYS_LIBRARY_PATH 1519 User-defined run-time library search path. 1520 PKG_CONFIG path to pkg-config utility 1521 PKG_CONFIG_PATH 1522 directories to add to pkg-config's search path 1523 PKG_CONFIG_LIBDIR 1524 path overriding pkg-config's built-in search path 1525 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1526 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1527 MAGICKWAND_CFLAGS 1528 C compiler flags for MAGICKWAND, overriding pkg-config 1529 MAGICKWAND_LIBS 1530 linker flags for MAGICKWAND, overriding pkg-config 1531 FREETYPE_CFLAGS 1532 C compiler flags for FREETYPE, overriding pkg-config 1533 FREETYPE_LIBS 1534 linker flags for FREETYPE, overriding pkg-config 1535 GTKDOC_DEPS_CFLAGS 1536 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1537 GTKDOC_DEPS_LIBS 1538 linker flags for GTKDOC_DEPS, overriding pkg-config 1539 1540Use these variables to override the choices made by `configure' or to help 1541it to find libraries and programs with nonstandard names/locations. 1542 1543Report bugs to <hpj@hpjansson.org>. 1544_ACEOF 1545ac_status=$? 1546fi 1547 1548if test "$ac_init_help" = "recursive"; then 1549 # If there are subdirs, report their specific --help. 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1551 test -d "$ac_dir" || 1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1553 continue 1554 ac_builddir=. 1555 1556case "$ac_dir" in 1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558*) 1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1560 # A ".." for each directory in $ac_dir_suffix. 1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1562 case $ac_top_builddir_sub in 1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 esac ;; 1566esac 1567ac_abs_top_builddir=$ac_pwd 1568ac_abs_builddir=$ac_pwd$ac_dir_suffix 1569# for backward compatibility: 1570ac_top_builddir=$ac_top_build_prefix 1571 1572case $srcdir in 1573 .) # We are building in place. 1574 ac_srcdir=. 1575 ac_top_srcdir=$ac_top_builddir_sub 1576 ac_abs_top_srcdir=$ac_pwd ;; 1577 [\\/]* | ?:[\\/]* ) # Absolute name. 1578 ac_srcdir=$srcdir$ac_dir_suffix; 1579 ac_top_srcdir=$srcdir 1580 ac_abs_top_srcdir=$srcdir ;; 1581 *) # Relative name. 1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1583 ac_top_srcdir=$ac_top_build_prefix$srcdir 1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585esac 1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587 1588 cd "$ac_dir" || { ac_status=$?; continue; } 1589 # Check for guested configure. 1590 if test -f "$ac_srcdir/configure.gnu"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1593 elif test -f "$ac_srcdir/configure"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure" --help=recursive 1596 else 1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1598 fi || ac_status=$? 1599 cd "$ac_pwd" || { ac_status=$?; break; } 1600 done 1601fi 1602 1603test -n "$ac_init_help" && exit $ac_status 1604if $ac_init_version; then 1605 cat <<\_ACEOF 1606chafa configure 1.8.0 1607generated by GNU Autoconf 2.69 1608 1609Copyright (C) 2012 Free Software Foundation, Inc. 1610This configure script is free software; the Free Software Foundation 1611gives unlimited permission to copy, distribute and modify it. 1612_ACEOF 1613 exit 1614fi 1615 1616## ------------------------ ## 1617## Autoconf initialization. ## 1618## ------------------------ ## 1619 1620# ac_fn_c_try_compile LINENO 1621# -------------------------- 1622# Try to compile conftest.$ac_ext, and return whether this succeeded. 1623ac_fn_c_try_compile () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext 1627 if { { ac_try="$ac_compile" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_compile") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest.$ac_objext; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: failed program was:" >&5 1649sed 's/^/| /' conftest.$ac_ext >&5 1650 1651 ac_retval=1 1652fi 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_compile 1657 1658# ac_fn_c_try_cpp LINENO 1659# ---------------------- 1660# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_cpp () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if { { ac_try="$ac_cpp conftest.$ac_ext" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670$as_echo "$ac_try_echo"; } >&5 1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } > conftest.i && { 1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 }; then : 1683 ac_retval=0 1684else 1685 $as_echo "$as_me: failed program was:" >&5 1686sed 's/^/| /' conftest.$ac_ext >&5 1687 1688 ac_retval=1 1689fi 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 as_fn_set_status $ac_retval 1692 1693} # ac_fn_c_try_cpp 1694 1695# ac_fn_c_try_link LINENO 1696# ----------------------- 1697# Try to link conftest.$ac_ext, and return whether this succeeded. 1698ac_fn_c_try_link () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 rm -f conftest.$ac_objext conftest$ac_exeext 1702 if { { ac_try="$ac_link" 1703case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_link") 2>conftest.err 1710 ac_status=$? 1711 if test -s conftest.err; then 1712 grep -v '^ *+' conftest.err >conftest.er1 1713 cat conftest.er1 >&5 1714 mv -f conftest.er1 conftest.err 1715 fi 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; } && { 1718 test -z "$ac_c_werror_flag" || 1719 test ! -s conftest.err 1720 } && test -s conftest$ac_exeext && { 1721 test "$cross_compiling" = yes || 1722 test -x conftest$ac_exeext 1723 }; then : 1724 ac_retval=0 1725else 1726 $as_echo "$as_me: failed program was:" >&5 1727sed 's/^/| /' conftest.$ac_ext >&5 1728 1729 ac_retval=1 1730fi 1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1733 # interfere with the next link command; also delete a directory that is 1734 # left behind by Apple's compiler. We do this before executing the actions. 1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 as_fn_set_status $ac_retval 1738 1739} # ac_fn_c_try_link 1740 1741# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1742# ------------------------------------------------------- 1743# Tests whether HEADER exists and can be compiled using the include files in 1744# INCLUDES, setting the cache variable VAR accordingly. 1745ac_fn_c_check_header_compile () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1749$as_echo_n "checking for $2... " >&6; } 1750if eval \${$3+:} false; then : 1751 $as_echo_n "(cached) " >&6 1752else 1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754/* end confdefs.h. */ 1755$4 1756#include <$2> 1757_ACEOF 1758if ac_fn_c_try_compile "$LINENO"; then : 1759 eval "$3=yes" 1760else 1761 eval "$3=no" 1762fi 1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1764fi 1765eval ac_res=\$$3 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767$as_echo "$ac_res" >&6; } 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 1770} # ac_fn_c_check_header_compile 1771 1772# ac_fn_c_try_run LINENO 1773# ---------------------- 1774# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1775# that executables *can* be run. 1776ac_fn_c_try_run () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 if { { ac_try="$ac_link" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_link") 2>&5 1787 ac_status=$? 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1790 { { case "(($ac_try" in 1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1792 *) ac_try_echo=$ac_try;; 1793esac 1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1795$as_echo "$ac_try_echo"; } >&5 1796 (eval "$ac_try") 2>&5 1797 ac_status=$? 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; }; }; then : 1800 ac_retval=0 1801else 1802 $as_echo "$as_me: program exited with status $ac_status" >&5 1803 $as_echo "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=$ac_status 1807fi 1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_c_try_run 1813 1814# ac_fn_c_check_func LINENO FUNC VAR 1815# ---------------------------------- 1816# Tests whether FUNC exists, setting the cache variable VAR accordingly 1817ac_fn_c_check_func () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1821$as_echo_n "checking for $2... " >&6; } 1822if eval \${$3+:} false; then : 1823 $as_echo_n "(cached) " >&6 1824else 1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1829#define $2 innocuous_$2 1830 1831/* System header to define __stub macros and hopefully few prototypes, 1832 which can conflict with char $2 (); below. 1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1834 <limits.h> exists even on freestanding compilers. */ 1835 1836#ifdef __STDC__ 1837# include <limits.h> 1838#else 1839# include <assert.h> 1840#endif 1841 1842#undef $2 1843 1844/* Override any GCC internal prototype to avoid an error. 1845 Use char because int might match the return type of a GCC 1846 builtin and then its argument prototype would still apply. */ 1847#ifdef __cplusplus 1848extern "C" 1849#endif 1850char $2 (); 1851/* The GNU C library defines this for functions which it implements 1852 to always fail with ENOSYS. Some functions are actually named 1853 something starting with __ and the normal name is an alias. */ 1854#if defined __stub_$2 || defined __stub___$2 1855choke me 1856#endif 1857 1858int 1859main () 1860{ 1861return $2 (); 1862 ; 1863 return 0; 1864} 1865_ACEOF 1866if ac_fn_c_try_link "$LINENO"; then : 1867 eval "$3=yes" 1868else 1869 eval "$3=no" 1870fi 1871rm -f core conftest.err conftest.$ac_objext \ 1872 conftest$ac_exeext conftest.$ac_ext 1873fi 1874eval ac_res=\$$3 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1876$as_echo "$ac_res" >&6; } 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 1879} # ac_fn_c_check_func 1880 1881# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1882# ------------------------------------------------------- 1883# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1884# the include files in INCLUDES and setting the cache variable VAR 1885# accordingly. 1886ac_fn_c_check_header_mongrel () 1887{ 1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1889 if eval \${$3+:} false; then : 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1891$as_echo_n "checking for $2... " >&6; } 1892if eval \${$3+:} false; then : 1893 $as_echo_n "(cached) " >&6 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898else 1899 # Is the header compilable? 1900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1901$as_echo_n "checking $2 usability... " >&6; } 1902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905#include <$2> 1906_ACEOF 1907if ac_fn_c_try_compile "$LINENO"; then : 1908 ac_header_compiler=yes 1909else 1910 ac_header_compiler=no 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1914$as_echo "$ac_header_compiler" >&6; } 1915 1916# Is the header present? 1917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1918$as_echo_n "checking $2 presence... " >&6; } 1919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1920/* end confdefs.h. */ 1921#include <$2> 1922_ACEOF 1923if ac_fn_c_try_cpp "$LINENO"; then : 1924 ac_header_preproc=yes 1925else 1926 ac_header_preproc=no 1927fi 1928rm -f conftest.err conftest.i conftest.$ac_ext 1929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1930$as_echo "$ac_header_preproc" >&6; } 1931 1932# So? What about this header? 1933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1934 yes:no: ) 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1936$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1938$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1939 ;; 1940 no:yes:* ) 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1942$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1944$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1946$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1948$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1950$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1951( $as_echo "## -------------------------------- ## 1952## Report this to hpj@hpjansson.org ## 1953## -------------------------------- ##" 1954 ) | sed "s/^/$as_me: WARNING: /" >&2 1955 ;; 1956esac 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if eval \${$3+:} false; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 eval "$3=\$ac_header_compiler" 1963fi 1964eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966$as_echo "$ac_res" >&6; } 1967fi 1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1969 1970} # ac_fn_c_check_header_mongrel 1971cat >config.log <<_ACEOF 1972This file contains any messages produced by compilers while 1973running configure, to aid debugging if configure makes a mistake. 1974 1975It was created by chafa $as_me 1.8.0, which was 1976generated by GNU Autoconf 2.69. Invocation command line was 1977 1978 $ $0 $@ 1979 1980_ACEOF 1981exec 5>>config.log 1982{ 1983cat <<_ASUNAME 1984## --------- ## 1985## Platform. ## 1986## --------- ## 1987 1988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1989uname -m = `(uname -m) 2>/dev/null || echo unknown` 1990uname -r = `(uname -r) 2>/dev/null || echo unknown` 1991uname -s = `(uname -s) 2>/dev/null || echo unknown` 1992uname -v = `(uname -v) 2>/dev/null || echo unknown` 1993 1994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1995/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1996 1997/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1998/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2000/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2001/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2002/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2003/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2004 2005_ASUNAME 2006 2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2008for as_dir in $PATH 2009do 2010 IFS=$as_save_IFS 2011 test -z "$as_dir" && as_dir=. 2012 $as_echo "PATH: $as_dir" 2013 done 2014IFS=$as_save_IFS 2015 2016} >&5 2017 2018cat >&5 <<_ACEOF 2019 2020 2021## ----------- ## 2022## Core tests. ## 2023## ----------- ## 2024 2025_ACEOF 2026 2027 2028# Keep a trace of the command line. 2029# Strip out --no-create and --no-recursion so they do not pile up. 2030# Strip out --silent because we don't want to record it for future runs. 2031# Also quote any args containing shell meta-characters. 2032# Make two passes to allow for proper duplicate-argument suppression. 2033ac_configure_args= 2034ac_configure_args0= 2035ac_configure_args1= 2036ac_must_keep_next=false 2037for ac_pass in 1 2 2038do 2039 for ac_arg 2040 do 2041 case $ac_arg in 2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2044 | -silent | --silent | --silen | --sile | --sil) 2045 continue ;; 2046 *\'*) 2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2048 esac 2049 case $ac_pass in 2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2051 2) 2052 as_fn_append ac_configure_args1 " '$ac_arg'" 2053 if test $ac_must_keep_next = true; then 2054 ac_must_keep_next=false # Got value, back to normal. 2055 else 2056 case $ac_arg in 2057 *=* | --config-cache | -C | -disable-* | --disable-* \ 2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2060 | -with-* | --with-* | -without-* | --without-* | --x) 2061 case "$ac_configure_args0 " in 2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2063 esac 2064 ;; 2065 -* ) ac_must_keep_next=true ;; 2066 esac 2067 fi 2068 as_fn_append ac_configure_args " '$ac_arg'" 2069 ;; 2070 esac 2071 done 2072done 2073{ ac_configure_args0=; unset ac_configure_args0;} 2074{ ac_configure_args1=; unset ac_configure_args1;} 2075 2076# When interrupted or exit'd, cleanup temporary files, and complete 2077# config.log. We remove comments because anyway the quotes in there 2078# would cause problems or look ugly. 2079# WARNING: Use '\'' to represent an apostrophe within the trap. 2080# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2081trap 'exit_status=$? 2082 # Save into config.log some information that might help in debugging. 2083 { 2084 echo 2085 2086 $as_echo "## ---------------- ## 2087## Cache variables. ## 2088## ---------------- ##" 2089 echo 2090 # The following way of writing the cache mishandles newlines in values, 2091( 2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2093 eval ac_val=\$$ac_var 2094 case $ac_val in #( 2095 *${as_nl}*) 2096 case $ac_var in #( 2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2099 esac 2100 case $ac_var in #( 2101 _ | IFS | as_nl) ;; #( 2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2103 *) { eval $ac_var=; unset $ac_var;} ;; 2104 esac ;; 2105 esac 2106 done 2107 (set) 2>&1 | 2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2109 *${as_nl}ac_space=\ *) 2110 sed -n \ 2111 "s/'\''/'\''\\\\'\'''\''/g; 2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2113 ;; #( 2114 *) 2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2116 ;; 2117 esac | 2118 sort 2119) 2120 echo 2121 2122 $as_echo "## ----------------- ## 2123## Output variables. ## 2124## ----------------- ##" 2125 echo 2126 for ac_var in $ac_subst_vars 2127 do 2128 eval ac_val=\$$ac_var 2129 case $ac_val in 2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2131 esac 2132 $as_echo "$ac_var='\''$ac_val'\''" 2133 done | sort 2134 echo 2135 2136 if test -n "$ac_subst_files"; then 2137 $as_echo "## ------------------- ## 2138## File substitutions. ## 2139## ------------------- ##" 2140 echo 2141 for ac_var in $ac_subst_files 2142 do 2143 eval ac_val=\$$ac_var 2144 case $ac_val in 2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2146 esac 2147 $as_echo "$ac_var='\''$ac_val'\''" 2148 done | sort 2149 echo 2150 fi 2151 2152 if test -s confdefs.h; then 2153 $as_echo "## ----------- ## 2154## confdefs.h. ## 2155## ----------- ##" 2156 echo 2157 cat confdefs.h 2158 echo 2159 fi 2160 test "$ac_signal" != 0 && 2161 $as_echo "$as_me: caught signal $ac_signal" 2162 $as_echo "$as_me: exit $exit_status" 2163 } >&5 2164 rm -f core *.core core.conftest.* && 2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2166 exit $exit_status 2167' 0 2168for ac_signal in 1 2 13 15; do 2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2170done 2171ac_signal=0 2172 2173# confdefs.h avoids OS command line length limits that DEFS can exceed. 2174rm -f -r conftest* confdefs.h 2175 2176$as_echo "/* confdefs.h */" > confdefs.h 2177 2178# Predefined preprocessor variables. 2179 2180cat >>confdefs.h <<_ACEOF 2181#define PACKAGE_NAME "$PACKAGE_NAME" 2182_ACEOF 2183 2184cat >>confdefs.h <<_ACEOF 2185#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2186_ACEOF 2187 2188cat >>confdefs.h <<_ACEOF 2189#define PACKAGE_VERSION "$PACKAGE_VERSION" 2190_ACEOF 2191 2192cat >>confdefs.h <<_ACEOF 2193#define PACKAGE_STRING "$PACKAGE_STRING" 2194_ACEOF 2195 2196cat >>confdefs.h <<_ACEOF 2197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2198_ACEOF 2199 2200cat >>confdefs.h <<_ACEOF 2201#define PACKAGE_URL "$PACKAGE_URL" 2202_ACEOF 2203 2204 2205# Let the site file select an alternate cache file if it wants to. 2206# Prefer an explicitly selected file to automatically selected ones. 2207ac_site_file1=NONE 2208ac_site_file2=NONE 2209if test -n "$CONFIG_SITE"; then 2210 # We do not want a PATH search for config.site. 2211 case $CONFIG_SITE in #(( 2212 -*) ac_site_file1=./$CONFIG_SITE;; 2213 */*) ac_site_file1=$CONFIG_SITE;; 2214 *) ac_site_file1=./$CONFIG_SITE;; 2215 esac 2216elif test "x$prefix" != xNONE; then 2217 ac_site_file1=$prefix/share/config.site 2218 ac_site_file2=$prefix/etc/config.site 2219else 2220 ac_site_file1=$ac_default_prefix/share/config.site 2221 ac_site_file2=$ac_default_prefix/etc/config.site 2222fi 2223for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2224do 2225 test "x$ac_site_file" = xNONE && continue 2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2228$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2229 sed 's/^/| /' "$ac_site_file" >&5 2230 . "$ac_site_file" \ 2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2233as_fn_error $? "failed to load site script $ac_site_file 2234See \`config.log' for more details" "$LINENO" 5; } 2235 fi 2236done 2237 2238if test -r "$cache_file"; then 2239 # Some versions of bash will fail to source /dev/null (special files 2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2243$as_echo "$as_me: loading cache $cache_file" >&6;} 2244 case $cache_file in 2245 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2246 *) . "./$cache_file";; 2247 esac 2248 fi 2249else 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2251$as_echo "$as_me: creating cache $cache_file" >&6;} 2252 >$cache_file 2253fi 2254 2255# Check that the precious variables saved in the cache have kept the same 2256# value. 2257ac_cache_corrupted=false 2258for ac_var in $ac_precious_vars; do 2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2260 eval ac_new_set=\$ac_env_${ac_var}_set 2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2262 eval ac_new_val=\$ac_env_${ac_var}_value 2263 case $ac_old_set,$ac_new_set in 2264 set,) 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2267 ac_cache_corrupted=: ;; 2268 ,set) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2271 ac_cache_corrupted=: ;; 2272 ,);; 2273 *) 2274 if test "x$ac_old_val" != "x$ac_new_val"; then 2275 # differences in whitespace do not lead to failure. 2276 ac_old_val_w=`echo x $ac_old_val` 2277 ac_new_val_w=`echo x $ac_new_val` 2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2281 ac_cache_corrupted=: 2282 else 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2285 eval $ac_var=\$ac_old_val 2286 fi 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2291 fi;; 2292 esac 2293 # Pass precious variables to config.status. 2294 if test "$ac_new_set" = set; then 2295 case $ac_new_val in 2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2297 *) ac_arg=$ac_var=$ac_new_val ;; 2298 esac 2299 case " $ac_configure_args " in 2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2302 esac 2303 fi 2304done 2305if $ac_cache_corrupted; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2311fi 2312## -------------------- ## 2313## Main body of script. ## 2314## -------------------- ## 2315 2316ac_ext=c 2317ac_cpp='$CPP $CPPFLAGS' 2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2320ac_compiler_gnu=$ac_cv_c_compiler_gnu 2321 2322 2323am__api_version='1.16' 2324 2325ac_aux_dir= 2326for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2327 if test -f "$ac_dir/install-sh"; then 2328 ac_aux_dir=$ac_dir 2329 ac_install_sh="$ac_aux_dir/install-sh -c" 2330 break 2331 elif test -f "$ac_dir/install.sh"; then 2332 ac_aux_dir=$ac_dir 2333 ac_install_sh="$ac_aux_dir/install.sh -c" 2334 break 2335 elif test -f "$ac_dir/shtool"; then 2336 ac_aux_dir=$ac_dir 2337 ac_install_sh="$ac_aux_dir/shtool install -c" 2338 break 2339 fi 2340done 2341if test -z "$ac_aux_dir"; then 2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2343fi 2344 2345# These three variables are undocumented and unsupported, 2346# and are intended to be withdrawn in a future Autoconf release. 2347# They can cause serious problems if a builder's source tree is in a directory 2348# whose full name contains unusual characters. 2349ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2350ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2351ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2352 2353 2354# Find a good install program. We prefer a C program (faster), 2355# so one script is as good as another. But avoid the broken or 2356# incompatible versions: 2357# SysV /etc/install, /usr/sbin/install 2358# SunOS /usr/etc/install 2359# IRIX /sbin/install 2360# AIX /bin/install 2361# AmigaOS /C/install, which installs bootblocks on floppy discs 2362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2363# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2365# OS/2's system install, which has a completely different semantic 2366# ./install, which can be erroneously created by make from ./install.sh. 2367# Reject install programs that cannot install multiple files. 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2369$as_echo_n "checking for a BSD-compatible install... " >&6; } 2370if test -z "$INSTALL"; then 2371if ${ac_cv_path_install+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373else 2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 # Account for people who put trailing slashes in PATH elements. 2380case $as_dir/ in #(( 2381 ./ | .// | /[cC]/* | \ 2382 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2383 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2384 /usr/ucb/* ) ;; 2385 *) 2386 # OSF1 and SCO ODT 3.0 have their own names for install. 2387 # Don't use installbsd from OSF since it installs stuff as root 2388 # by default. 2389 for ac_prog in ginstall scoinst install; do 2390 for ac_exec_ext in '' $ac_executable_extensions; do 2391 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2392 if test $ac_prog = install && 2393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2394 # AIX install. It has an incompatible calling convention. 2395 : 2396 elif test $ac_prog = install && 2397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2398 # program-specific install script used by HP pwplus--don't use. 2399 : 2400 else 2401 rm -rf conftest.one conftest.two conftest.dir 2402 echo one > conftest.one 2403 echo two > conftest.two 2404 mkdir conftest.dir 2405 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2406 test -s conftest.one && test -s conftest.two && 2407 test -s conftest.dir/conftest.one && 2408 test -s conftest.dir/conftest.two 2409 then 2410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2411 break 3 2412 fi 2413 fi 2414 fi 2415 done 2416 done 2417 ;; 2418esac 2419 2420 done 2421IFS=$as_save_IFS 2422 2423rm -rf conftest.one conftest.two conftest.dir 2424 2425fi 2426 if test "${ac_cv_path_install+set}" = set; then 2427 INSTALL=$ac_cv_path_install 2428 else 2429 # As a last resort, use the slow shell script. Don't cache a 2430 # value for INSTALL within a source directory, because that will 2431 # break other packages using the cache if that directory is 2432 # removed, or if the value is a relative name. 2433 INSTALL=$ac_install_sh 2434 fi 2435fi 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2437$as_echo "$INSTALL" >&6; } 2438 2439# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2440# It thinks the first close brace ends the variable substitution. 2441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2442 2443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2444 2445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2446 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2448$as_echo_n "checking whether build environment is sane... " >&6; } 2449# Reject unsafe characters in $srcdir or the absolute working directory 2450# name. Accept space and tab only in the latter. 2451am_lf=' 2452' 2453case `pwd` in 2454 *[\\\"\#\$\&\'\`$am_lf]*) 2455 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2456esac 2457case $srcdir in 2458 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2459 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2460esac 2461 2462# Do 'set' in a subshell so we don't clobber the current shell's 2463# arguments. Must try -L first in case configure is actually a 2464# symlink; some systems play weird games with the mod time of symlinks 2465# (eg FreeBSD returns the mod time of the symlink's containing 2466# directory). 2467if ( 2468 am_has_slept=no 2469 for am_try in 1 2; do 2470 echo "timestamp, slept: $am_has_slept" > conftest.file 2471 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2472 if test "$*" = "X"; then 2473 # -L didn't work. 2474 set X `ls -t "$srcdir/configure" conftest.file` 2475 fi 2476 if test "$*" != "X $srcdir/configure conftest.file" \ 2477 && test "$*" != "X conftest.file $srcdir/configure"; then 2478 2479 # If neither matched, then we have a broken ls. This can happen 2480 # if, for instance, CONFIG_SHELL is bash and it inherits a 2481 # broken ls alias from the environment. This has actually 2482 # happened. Such a system could not be considered "sane". 2483 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2484 alias in your environment" "$LINENO" 5 2485 fi 2486 if test "$2" = conftest.file || test $am_try -eq 2; then 2487 break 2488 fi 2489 # Just in case. 2490 sleep 1 2491 am_has_slept=yes 2492 done 2493 test "$2" = conftest.file 2494 ) 2495then 2496 # Ok. 2497 : 2498else 2499 as_fn_error $? "newly created file is older than distributed files! 2500Check your system clock" "$LINENO" 5 2501fi 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2503$as_echo "yes" >&6; } 2504# If we didn't sleep, we still need to ensure time stamps of config.status and 2505# generated files are strictly newer. 2506am_sleep_pid= 2507if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2508 ( sleep 1 ) & 2509 am_sleep_pid=$! 2510fi 2511 2512rm -f conftest.file 2513 2514test "$program_prefix" != NONE && 2515 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2516# Use a double $ so make ignores it. 2517test "$program_suffix" != NONE && 2518 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2519# Double any \ or $. 2520# By default was `s,x,x', remove it if useless. 2521ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2522program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2523 2524# Expand $ac_aux_dir to an absolute path. 2525am_aux_dir=`cd "$ac_aux_dir" && pwd` 2526 2527if test x"${MISSING+set}" != xset; then 2528 MISSING="\${SHELL} '$am_aux_dir/missing'" 2529fi 2530# Use eval to expand $SHELL 2531if eval "$MISSING --is-lightweight"; then 2532 am_missing_run="$MISSING " 2533else 2534 am_missing_run= 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2536$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2537fi 2538 2539if test x"${install_sh+set}" != xset; then 2540 case $am_aux_dir in 2541 *\ * | *\ *) 2542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2543 *) 2544 install_sh="\${SHELL} $am_aux_dir/install-sh" 2545 esac 2546fi 2547 2548# Installed binaries are usually stripped using 'strip' when the user 2549# run "make install-strip". However 'strip' might not be the right 2550# tool to use in cross-compilation environments, therefore Automake 2551# will honor the 'STRIP' environment variable to overrule this program. 2552if test "$cross_compiling" != no; then 2553 if test -n "$ac_tool_prefix"; then 2554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2555set dummy ${ac_tool_prefix}strip; ac_word=$2 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2557$as_echo_n "checking for $ac_word... " >&6; } 2558if ${ac_cv_prog_STRIP+:} false; then : 2559 $as_echo_n "(cached) " >&6 2560else 2561 if test -n "$STRIP"; then 2562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2571 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2573 break 2 2574 fi 2575done 2576 done 2577IFS=$as_save_IFS 2578 2579fi 2580fi 2581STRIP=$ac_cv_prog_STRIP 2582if test -n "$STRIP"; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2584$as_echo "$STRIP" >&6; } 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588fi 2589 2590 2591fi 2592if test -z "$ac_cv_prog_STRIP"; then 2593 ac_ct_STRIP=$STRIP 2594 # Extract the first word of "strip", so it can be a program name with args. 2595set dummy strip; ac_word=$2 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2597$as_echo_n "checking for $ac_word... " >&6; } 2598if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 if test -n "$ac_ct_STRIP"; then 2602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2603else 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2611 ac_cv_prog_ac_ct_STRIP="strip" 2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615done 2616 done 2617IFS=$as_save_IFS 2618 2619fi 2620fi 2621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2622if test -n "$ac_ct_STRIP"; then 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2624$as_echo "$ac_ct_STRIP" >&6; } 2625else 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2627$as_echo "no" >&6; } 2628fi 2629 2630 if test "x$ac_ct_STRIP" = x; then 2631 STRIP=":" 2632 else 2633 case $cross_compiling:$ac_tool_warned in 2634yes:) 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2637ac_tool_warned=yes ;; 2638esac 2639 STRIP=$ac_ct_STRIP 2640 fi 2641else 2642 STRIP="$ac_cv_prog_STRIP" 2643fi 2644 2645fi 2646INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2647 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2649$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2650if test -z "$MKDIR_P"; then 2651 if ${ac_cv_path_mkdir+:} false; then : 2652 $as_echo_n "(cached) " >&6 2653else 2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2656do 2657 IFS=$as_save_IFS 2658 test -z "$as_dir" && as_dir=. 2659 for ac_prog in mkdir gmkdir; do 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2663 'mkdir (GNU coreutils) '* | \ 2664 'mkdir (coreutils) '* | \ 2665 'mkdir (fileutils) '4.1*) 2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2667 break 3;; 2668 esac 2669 done 2670 done 2671 done 2672IFS=$as_save_IFS 2673 2674fi 2675 2676 test -d ./--version && rmdir ./--version 2677 if test "${ac_cv_path_mkdir+set}" = set; then 2678 MKDIR_P="$ac_cv_path_mkdir -p" 2679 else 2680 # As a last resort, use the slow shell script. Don't cache a 2681 # value for MKDIR_P within a source directory, because that will 2682 # break other packages using the cache if that directory is 2683 # removed, or if the value is a relative name. 2684 MKDIR_P="$ac_install_sh -d" 2685 fi 2686fi 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2688$as_echo "$MKDIR_P" >&6; } 2689 2690for ac_prog in gawk mawk nawk awk 2691do 2692 # Extract the first word of "$ac_prog", so it can be a program name with args. 2693set dummy $ac_prog; ac_word=$2 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2695$as_echo_n "checking for $ac_word... " >&6; } 2696if ${ac_cv_prog_AWK+:} false; then : 2697 $as_echo_n "(cached) " >&6 2698else 2699 if test -n "$AWK"; then 2700 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2701else 2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703for as_dir in $PATH 2704do 2705 IFS=$as_save_IFS 2706 test -z "$as_dir" && as_dir=. 2707 for ac_exec_ext in '' $ac_executable_extensions; do 2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2709 ac_cv_prog_AWK="$ac_prog" 2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2711 break 2 2712 fi 2713done 2714 done 2715IFS=$as_save_IFS 2716 2717fi 2718fi 2719AWK=$ac_cv_prog_AWK 2720if test -n "$AWK"; then 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2722$as_echo "$AWK" >&6; } 2723else 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2725$as_echo "no" >&6; } 2726fi 2727 2728 2729 test -n "$AWK" && break 2730done 2731 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2733$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2734set x ${MAKE-make} 2735ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2736if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2737 $as_echo_n "(cached) " >&6 2738else 2739 cat >conftest.make <<\_ACEOF 2740SHELL = /bin/sh 2741all: 2742 @echo '@@@%%%=$(MAKE)=@@@%%%' 2743_ACEOF 2744# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2745case `${MAKE-make} -f conftest.make 2>/dev/null` in 2746 *@@@%%%=?*=@@@%%%*) 2747 eval ac_cv_prog_make_${ac_make}_set=yes;; 2748 *) 2749 eval ac_cv_prog_make_${ac_make}_set=no;; 2750esac 2751rm -f conftest.make 2752fi 2753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2755$as_echo "yes" >&6; } 2756 SET_MAKE= 2757else 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2759$as_echo "no" >&6; } 2760 SET_MAKE="MAKE=${MAKE-make}" 2761fi 2762 2763rm -rf .tst 2>/dev/null 2764mkdir .tst 2>/dev/null 2765if test -d .tst; then 2766 am__leading_dot=. 2767else 2768 am__leading_dot=_ 2769fi 2770rmdir .tst 2>/dev/null 2771 2772# Check whether --enable-silent-rules was given. 2773if test "${enable_silent_rules+set}" = set; then : 2774 enableval=$enable_silent_rules; 2775fi 2776 2777case $enable_silent_rules in # ((( 2778 yes) AM_DEFAULT_VERBOSITY=0;; 2779 no) AM_DEFAULT_VERBOSITY=1;; 2780 *) AM_DEFAULT_VERBOSITY=1;; 2781esac 2782am_make=${MAKE-make} 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2784$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2785if ${am_cv_make_support_nested_variables+:} false; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if $as_echo 'TRUE=$(BAR$(V)) 2789BAR0=false 2790BAR1=true 2791V=1 2792am__doit: 2793 @$(TRUE) 2794.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2795 am_cv_make_support_nested_variables=yes 2796else 2797 am_cv_make_support_nested_variables=no 2798fi 2799fi 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2801$as_echo "$am_cv_make_support_nested_variables" >&6; } 2802if test $am_cv_make_support_nested_variables = yes; then 2803 AM_V='$(V)' 2804 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2805else 2806 AM_V=$AM_DEFAULT_VERBOSITY 2807 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2808fi 2809AM_BACKSLASH='\' 2810 2811if test "`cd $srcdir && pwd`" != "`pwd`"; then 2812 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2813 # is not polluted with repeated "-I." 2814 am__isrc=' -I$(srcdir)' 2815 # test to see if srcdir already configured 2816 if test -f $srcdir/config.status; then 2817 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2818 fi 2819fi 2820 2821# test whether we have cygpath 2822if test -z "$CYGPATH_W"; then 2823 if (cygpath --version) >/dev/null 2>/dev/null; then 2824 CYGPATH_W='cygpath -w' 2825 else 2826 CYGPATH_W=echo 2827 fi 2828fi 2829 2830 2831# Define the identity of the package. 2832 PACKAGE='chafa' 2833 VERSION='1.8.0' 2834 2835 2836cat >>confdefs.h <<_ACEOF 2837#define PACKAGE "$PACKAGE" 2838_ACEOF 2839 2840 2841cat >>confdefs.h <<_ACEOF 2842#define VERSION "$VERSION" 2843_ACEOF 2844 2845# Some tools Automake needs. 2846 2847ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2848 2849 2850AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2851 2852 2853AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2854 2855 2856AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2857 2858 2859MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2860 2861# For better backward compatibility. To be removed once Automake 1.9.x 2862# dies out for good. For more background, see: 2863# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2864# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2865mkdir_p='$(MKDIR_P)' 2866 2867# We need awk for the "check" target (and possibly the TAP driver). The 2868# system "awk" is bad on some platforms. 2869# Always define AMTAR for backward compatibility. Yes, it's still used 2870# in the wild :-( We should find a proper way to deprecate it ... 2871AMTAR='$${TAR-tar}' 2872 2873 2874# We'll loop over all known methods to create a tar archive until one works. 2875_am_tools='gnutar pax cpio none' 2876 2877am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2878 2879 2880 2881 2882 2883 2884# POSIX will say in a future version that running "rm -f" with no argument 2885# is OK; and we want to be able to make that assumption in our Makefile 2886# recipes. So use an aggressive probe to check that the usage we want is 2887# actually supported "in the wild" to an acceptable degree. 2888# See automake bug#10828. 2889# To make any issue more visible, cause the running configure to be aborted 2890# by default if the 'rm' program in use doesn't match our expectations; the 2891# user can still override this though. 2892if rm -f && rm -fr && rm -rf; then : OK; else 2893 cat >&2 <<'END' 2894Oops! 2895 2896Your 'rm' program seems unable to run without file operands specified 2897on the command line, even when the '-f' option is present. This is contrary 2898to the behaviour of most rm programs out there, and not conforming with 2899the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2900 2901Please tell bug-automake@gnu.org about your system, including the value 2902of your $PATH and any error possibly output before this message. This 2903can help us improve future automake versions. 2904 2905END 2906 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2907 echo 'Configuration will proceed anyway, since you have set the' >&2 2908 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2909 echo >&2 2910 else 2911 cat >&2 <<'END' 2912Aborting the configuration process, to ensure you take notice of the issue. 2913 2914You can download and install GNU coreutils to get an 'rm' implementation 2915that behaves properly: <https://www.gnu.org/software/coreutils/>. 2916 2917If you want to complete the configuration process using your problematic 2918'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2919to "yes", and re-run configure. 2920 2921END 2922 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2923 fi 2924fi 2925 2926 2927 2928 2929 2930ac_config_headers="$ac_config_headers config.h" 2931 2932 2933CHAFA_MAJOR_VERSION=1 2934CHAFA_MINOR_VERSION=8 2935CHAFA_MICRO_VERSION=0 2936CHAFA_VERSION=1.8.0 2937 2938 2939 2940 2941 2942 2943 2944$as_echo "#define CHAFA_MAJOR_VERSION 1" >>confdefs.h 2945 2946 2947$as_echo "#define CHAFA_MINOR_VERSION 8" >>confdefs.h 2948 2949 2950$as_echo "#define CHAFA_MICRO_VERSION 0" >>confdefs.h 2951 2952 2953cat >>confdefs.h <<_ACEOF 2954#define CHAFA_VERSION "$CHAFA_VERSION" 2955_ACEOF 2956 2957 2958 2959BASE_CFLAGS="-Wall -Wextra -Wmissing-prototypes" 2960 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2962$as_echo_n "checking whether build environment is sane... " >&6; } 2963# Reject unsafe characters in $srcdir or the absolute working directory 2964# name. Accept space and tab only in the latter. 2965am_lf=' 2966' 2967case `pwd` in 2968 *[\\\"\#\$\&\'\`$am_lf]*) 2969 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2970esac 2971case $srcdir in 2972 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2973 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2974esac 2975 2976# Do 'set' in a subshell so we don't clobber the current shell's 2977# arguments. Must try -L first in case configure is actually a 2978# symlink; some systems play weird games with the mod time of symlinks 2979# (eg FreeBSD returns the mod time of the symlink's containing 2980# directory). 2981if ( 2982 am_has_slept=no 2983 for am_try in 1 2; do 2984 echo "timestamp, slept: $am_has_slept" > conftest.file 2985 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2986 if test "$*" = "X"; then 2987 # -L didn't work. 2988 set X `ls -t "$srcdir/configure" conftest.file` 2989 fi 2990 if test "$*" != "X $srcdir/configure conftest.file" \ 2991 && test "$*" != "X conftest.file $srcdir/configure"; then 2992 2993 # If neither matched, then we have a broken ls. This can happen 2994 # if, for instance, CONFIG_SHELL is bash and it inherits a 2995 # broken ls alias from the environment. This has actually 2996 # happened. Such a system could not be considered "sane". 2997 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2998 alias in your environment" "$LINENO" 5 2999 fi 3000 if test "$2" = conftest.file || test $am_try -eq 2; then 3001 break 3002 fi 3003 # Just in case. 3004 sleep 1 3005 am_has_slept=yes 3006 done 3007 test "$2" = conftest.file 3008 ) 3009then 3010 # Ok. 3011 : 3012else 3013 as_fn_error $? "newly created file is older than distributed files! 3014Check your system clock" "$LINENO" 5 3015fi 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3017$as_echo "yes" >&6; } 3018# If we didn't sleep, we still need to ensure time stamps of config.status and 3019# generated files are strictly newer. 3020am_sleep_pid= 3021if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3022 ( sleep 1 ) & 3023 am_sleep_pid=$! 3024fi 3025 3026rm -f conftest.file 3027 3028 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3030$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3031 # Check whether --enable-maintainer-mode was given. 3032if test "${enable_maintainer_mode+set}" = set; then : 3033 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3034else 3035 USE_MAINTAINER_MODE=no 3036fi 3037 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3039$as_echo "$USE_MAINTAINER_MODE" >&6; } 3040 if test $USE_MAINTAINER_MODE = yes; then 3041 MAINTAINER_MODE_TRUE= 3042 MAINTAINER_MODE_FALSE='#' 3043else 3044 MAINTAINER_MODE_TRUE='#' 3045 MAINTAINER_MODE_FALSE= 3046fi 3047 3048 MAINT=$MAINTAINER_MODE_TRUE 3049 3050 3051 3052DEPDIR="${am__leading_dot}deps" 3053 3054ac_config_commands="$ac_config_commands depfiles" 3055 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3057$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3058cat > confinc.mk << 'END' 3059am__doit: 3060 @echo this is the am__doit target >confinc.out 3061.PHONY: am__doit 3062END 3063am__include="#" 3064am__quote= 3065# BSD make does it like this. 3066echo '.include "confinc.mk" # ignored' > confmf.BSD 3067# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3068echo 'include confinc.mk # ignored' > confmf.GNU 3069_am_result=no 3070for s in GNU BSD; do 3071 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3072 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3073 ac_status=$? 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3075 (exit $ac_status); } 3076 case $?:`cat confinc.out 2>/dev/null` in #( 3077 '0:this is the am__doit target') : 3078 case $s in #( 3079 BSD) : 3080 am__include='.include' am__quote='"' ;; #( 3081 *) : 3082 am__include='include' am__quote='' ;; 3083esac ;; #( 3084 *) : 3085 ;; 3086esac 3087 if test "$am__include" != "#"; then 3088 _am_result="yes ($s style)" 3089 break 3090 fi 3091done 3092rm -f confinc.* confmf.* 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3094$as_echo "${_am_result}" >&6; } 3095 3096# Check whether --enable-dependency-tracking was given. 3097if test "${enable_dependency_tracking+set}" = set; then : 3098 enableval=$enable_dependency_tracking; 3099fi 3100 3101if test "x$enable_dependency_tracking" != xno; then 3102 am_depcomp="$ac_aux_dir/depcomp" 3103 AMDEPBACKSLASH='\' 3104 am__nodep='_no' 3105fi 3106 if test "x$enable_dependency_tracking" != xno; then 3107 AMDEP_TRUE= 3108 AMDEP_FALSE='#' 3109else 3110 AMDEP_TRUE='#' 3111 AMDEP_FALSE= 3112fi 3113 3114 3115ac_ext=c 3116ac_cpp='$CPP $CPPFLAGS' 3117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3119ac_compiler_gnu=$ac_cv_c_compiler_gnu 3120if test -n "$ac_tool_prefix"; then 3121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3122set dummy ${ac_tool_prefix}gcc; ac_word=$2 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124$as_echo_n "checking for $ac_word... " >&6; } 3125if ${ac_cv_prog_CC+:} false; then : 3126 $as_echo_n "(cached) " >&6 3127else 3128 if test -n "$CC"; then 3129 ac_cv_prog_CC="$CC" # Let the user override the test. 3130else 3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3132for as_dir in $PATH 3133do 3134 IFS=$as_save_IFS 3135 test -z "$as_dir" && as_dir=. 3136 for ac_exec_ext in '' $ac_executable_extensions; do 3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3138 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3140 break 2 3141 fi 3142done 3143 done 3144IFS=$as_save_IFS 3145 3146fi 3147fi 3148CC=$ac_cv_prog_CC 3149if test -n "$CC"; then 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3151$as_echo "$CC" >&6; } 3152else 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154$as_echo "no" >&6; } 3155fi 3156 3157 3158fi 3159if test -z "$ac_cv_prog_CC"; then 3160 ac_ct_CC=$CC 3161 # Extract the first word of "gcc", so it can be a program name with args. 3162set dummy gcc; ac_word=$2 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164$as_echo_n "checking for $ac_word... " >&6; } 3165if ${ac_cv_prog_ac_ct_CC+:} false; then : 3166 $as_echo_n "(cached) " >&6 3167else 3168 if test -n "$ac_ct_CC"; then 3169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3170else 3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3172for as_dir in $PATH 3173do 3174 IFS=$as_save_IFS 3175 test -z "$as_dir" && as_dir=. 3176 for ac_exec_ext in '' $ac_executable_extensions; do 3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3178 ac_cv_prog_ac_ct_CC="gcc" 3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3180 break 2 3181 fi 3182done 3183 done 3184IFS=$as_save_IFS 3185 3186fi 3187fi 3188ac_ct_CC=$ac_cv_prog_ac_ct_CC 3189if test -n "$ac_ct_CC"; then 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3191$as_echo "$ac_ct_CC" >&6; } 3192else 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3194$as_echo "no" >&6; } 3195fi 3196 3197 if test "x$ac_ct_CC" = x; then 3198 CC="" 3199 else 3200 case $cross_compiling:$ac_tool_warned in 3201yes:) 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3204ac_tool_warned=yes ;; 3205esac 3206 CC=$ac_ct_CC 3207 fi 3208else 3209 CC="$ac_cv_prog_CC" 3210fi 3211 3212if test -z "$CC"; then 3213 if test -n "$ac_tool_prefix"; then 3214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3215set dummy ${ac_tool_prefix}cc; ac_word=$2 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217$as_echo_n "checking for $ac_word... " >&6; } 3218if ${ac_cv_prog_CC+:} false; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if test -n "$CC"; then 3222 ac_cv_prog_CC="$CC" # Let the user override the test. 3223else 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3231 ac_cv_prog_CC="${ac_tool_prefix}cc" 3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3233 break 2 3234 fi 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239fi 3240fi 3241CC=$ac_cv_prog_CC 3242if test -n "$CC"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3244$as_echo "$CC" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 3251 fi 3252fi 3253if test -z "$CC"; then 3254 # Extract the first word of "cc", so it can be a program name with args. 3255set dummy cc; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if ${ac_cv_prog_CC+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$CC"; then 3262 ac_cv_prog_CC="$CC" # Let the user override the test. 3263else 3264 ac_prog_rejected=no 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 test -z "$as_dir" && as_dir=. 3270 for ac_exec_ext in '' $ac_executable_extensions; do 3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3273 ac_prog_rejected=yes 3274 continue 3275 fi 3276 ac_cv_prog_CC="cc" 3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3278 break 2 3279 fi 3280done 3281 done 3282IFS=$as_save_IFS 3283 3284if test $ac_prog_rejected = yes; then 3285 # We found a bogon in the path, so make sure we never use it. 3286 set dummy $ac_cv_prog_CC 3287 shift 3288 if test $# != 0; then 3289 # We chose a different compiler from the bogus one. 3290 # However, it has the same basename, so the bogon will be chosen 3291 # first if we set CC to just the basename; use the full file name. 3292 shift 3293 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3294 fi 3295fi 3296fi 3297fi 3298CC=$ac_cv_prog_CC 3299if test -n "$CC"; then 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3301$as_echo "$CC" >&6; } 3302else 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3304$as_echo "no" >&6; } 3305fi 3306 3307 3308fi 3309if test -z "$CC"; then 3310 if test -n "$ac_tool_prefix"; then 3311 for ac_prog in cl.exe 3312 do 3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3314set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3316$as_echo_n "checking for $ac_word... " >&6; } 3317if ${ac_cv_prog_CC+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 if test -n "$CC"; then 3321 ac_cv_prog_CC="$CC" # Let the user override the test. 3322else 3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324for as_dir in $PATH 3325do 3326 IFS=$as_save_IFS 3327 test -z "$as_dir" && as_dir=. 3328 for ac_exec_ext in '' $ac_executable_extensions; do 3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3332 break 2 3333 fi 3334done 3335 done 3336IFS=$as_save_IFS 3337 3338fi 3339fi 3340CC=$ac_cv_prog_CC 3341if test -n "$CC"; then 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3343$as_echo "$CC" >&6; } 3344else 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3346$as_echo "no" >&6; } 3347fi 3348 3349 3350 test -n "$CC" && break 3351 done 3352fi 3353if test -z "$CC"; then 3354 ac_ct_CC=$CC 3355 for ac_prog in cl.exe 3356do 3357 # Extract the first word of "$ac_prog", so it can be a program name with args. 3358set dummy $ac_prog; ac_word=$2 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360$as_echo_n "checking for $ac_word... " >&6; } 3361if ${ac_cv_prog_ac_ct_CC+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363else 3364 if test -n "$ac_ct_CC"; then 3365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3366else 3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3368for as_dir in $PATH 3369do 3370 IFS=$as_save_IFS 3371 test -z "$as_dir" && as_dir=. 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3374 ac_cv_prog_ac_ct_CC="$ac_prog" 3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382fi 3383fi 3384ac_ct_CC=$ac_cv_prog_ac_ct_CC 3385if test -n "$ac_ct_CC"; then 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3387$as_echo "$ac_ct_CC" >&6; } 3388else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390$as_echo "no" >&6; } 3391fi 3392 3393 3394 test -n "$ac_ct_CC" && break 3395done 3396 3397 if test "x$ac_ct_CC" = x; then 3398 CC="" 3399 else 3400 case $cross_compiling:$ac_tool_warned in 3401yes:) 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3404ac_tool_warned=yes ;; 3405esac 3406 CC=$ac_ct_CC 3407 fi 3408fi 3409 3410fi 3411 3412 3413test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3415as_fn_error $? "no acceptable C compiler found in \$PATH 3416See \`config.log' for more details" "$LINENO" 5; } 3417 3418# Provide some information about the compiler. 3419$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3420set X $ac_compile 3421ac_compiler=$2 3422for ac_option in --version -v -V -qversion; do 3423 { { ac_try="$ac_compiler $ac_option >&5" 3424case "(($ac_try" in 3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3426 *) ac_try_echo=$ac_try;; 3427esac 3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3429$as_echo "$ac_try_echo"; } >&5 3430 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3431 ac_status=$? 3432 if test -s conftest.err; then 3433 sed '10a\ 3434... rest of stderr output deleted ... 3435 10q' conftest.err >conftest.er1 3436 cat conftest.er1 >&5 3437 fi 3438 rm -f conftest.er1 conftest.err 3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3440 test $ac_status = 0; } 3441done 3442 3443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3444/* end confdefs.h. */ 3445 3446int 3447main () 3448{ 3449 3450 ; 3451 return 0; 3452} 3453_ACEOF 3454ac_clean_files_save=$ac_clean_files 3455ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3456# Try to create an executable without -o first, disregard a.out. 3457# It will help us diagnose broken compilers, and finding out an intuition 3458# of exeext. 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3460$as_echo_n "checking whether the C compiler works... " >&6; } 3461ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3462 3463# The possible output files: 3464ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3465 3466ac_rmfiles= 3467for ac_file in $ac_files 3468do 3469 case $ac_file in 3470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3471 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3472 esac 3473done 3474rm -f $ac_rmfiles 3475 3476if { { ac_try="$ac_link_default" 3477case "(($ac_try" in 3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3479 *) ac_try_echo=$ac_try;; 3480esac 3481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3482$as_echo "$ac_try_echo"; } >&5 3483 (eval "$ac_link_default") 2>&5 3484 ac_status=$? 3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3486 test $ac_status = 0; }; then : 3487 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3488# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3489# in a Makefile. We should not override ac_cv_exeext if it was cached, 3490# so that the user can short-circuit this test for compilers unknown to 3491# Autoconf. 3492for ac_file in $ac_files '' 3493do 3494 test -f "$ac_file" || continue 3495 case $ac_file in 3496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3497 ;; 3498 [ab].out ) 3499 # We found the default executable, but exeext='' is most 3500 # certainly right. 3501 break;; 3502 *.* ) 3503 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3504 then :; else 3505 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3506 fi 3507 # We set ac_cv_exeext here because the later test for it is not 3508 # safe: cross compilers may not add the suffix if given an `-o' 3509 # argument, so we may need to know it at that point already. 3510 # Even if this section looks crufty: it has the advantage of 3511 # actually working. 3512 break;; 3513 * ) 3514 break;; 3515 esac 3516done 3517test "$ac_cv_exeext" = no && ac_cv_exeext= 3518 3519else 3520 ac_file='' 3521fi 3522if test -z "$ac_file"; then : 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3524$as_echo "no" >&6; } 3525$as_echo "$as_me: failed program was:" >&5 3526sed 's/^/| /' conftest.$ac_ext >&5 3527 3528{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3530as_fn_error 77 "C compiler cannot create executables 3531See \`config.log' for more details" "$LINENO" 5; } 3532else 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3534$as_echo "yes" >&6; } 3535fi 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3537$as_echo_n "checking for C compiler default output file name... " >&6; } 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3539$as_echo "$ac_file" >&6; } 3540ac_exeext=$ac_cv_exeext 3541 3542rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3543ac_clean_files=$ac_clean_files_save 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3545$as_echo_n "checking for suffix of executables... " >&6; } 3546if { { ac_try="$ac_link" 3547case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3552$as_echo "$ac_try_echo"; } >&5 3553 (eval "$ac_link") 2>&5 3554 ac_status=$? 3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3556 test $ac_status = 0; }; then : 3557 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3558# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3559# work properly (i.e., refer to `conftest.exe'), while it won't with 3560# `rm'. 3561for ac_file in conftest.exe conftest conftest.*; do 3562 test -f "$ac_file" || continue 3563 case $ac_file in 3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3565 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3566 break;; 3567 * ) break;; 3568 esac 3569done 3570else 3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3573as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3574See \`config.log' for more details" "$LINENO" 5; } 3575fi 3576rm -f conftest conftest$ac_cv_exeext 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3578$as_echo "$ac_cv_exeext" >&6; } 3579 3580rm -f conftest.$ac_ext 3581EXEEXT=$ac_cv_exeext 3582ac_exeext=$EXEEXT 3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584/* end confdefs.h. */ 3585#include <stdio.h> 3586int 3587main () 3588{ 3589FILE *f = fopen ("conftest.out", "w"); 3590 return ferror (f) || fclose (f) != 0; 3591 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596ac_clean_files="$ac_clean_files conftest.out" 3597# Check that the compiler produces executables we can run. If not, either 3598# the compiler is broken, or we cross compile. 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3600$as_echo_n "checking whether we are cross compiling... " >&6; } 3601if test "$cross_compiling" != yes; then 3602 { { ac_try="$ac_link" 3603case "(($ac_try" in 3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3605 *) ac_try_echo=$ac_try;; 3606esac 3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3608$as_echo "$ac_try_echo"; } >&5 3609 (eval "$ac_link") 2>&5 3610 ac_status=$? 3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3612 test $ac_status = 0; } 3613 if { ac_try='./conftest$ac_cv_exeext' 3614 { { case "(($ac_try" in 3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3616 *) ac_try_echo=$ac_try;; 3617esac 3618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3619$as_echo "$ac_try_echo"; } >&5 3620 (eval "$ac_try") 2>&5 3621 ac_status=$? 3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3623 test $ac_status = 0; }; }; then 3624 cross_compiling=no 3625 else 3626 if test "$cross_compiling" = maybe; then 3627 cross_compiling=yes 3628 else 3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3631as_fn_error $? "cannot run C compiled programs. 3632If you meant to cross compile, use \`--host'. 3633See \`config.log' for more details" "$LINENO" 5; } 3634 fi 3635 fi 3636fi 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3638$as_echo "$cross_compiling" >&6; } 3639 3640rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3641ac_clean_files=$ac_clean_files_save 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3643$as_echo_n "checking for suffix of object files... " >&6; } 3644if ${ac_cv_objext+:} false; then : 3645 $as_echo_n "(cached) " >&6 3646else 3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3648/* end confdefs.h. */ 3649 3650int 3651main () 3652{ 3653 3654 ; 3655 return 0; 3656} 3657_ACEOF 3658rm -f conftest.o conftest.obj 3659if { { ac_try="$ac_compile" 3660case "(($ac_try" in 3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3662 *) ac_try_echo=$ac_try;; 3663esac 3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3665$as_echo "$ac_try_echo"; } >&5 3666 (eval "$ac_compile") 2>&5 3667 ac_status=$? 3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3669 test $ac_status = 0; }; then : 3670 for ac_file in conftest.o conftest.obj conftest.*; do 3671 test -f "$ac_file" || continue; 3672 case $ac_file in 3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3675 break;; 3676 esac 3677done 3678else 3679 $as_echo "$as_me: failed program was:" >&5 3680sed 's/^/| /' conftest.$ac_ext >&5 3681 3682{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3684as_fn_error $? "cannot compute suffix of object files: cannot compile 3685See \`config.log' for more details" "$LINENO" 5; } 3686fi 3687rm -f conftest.$ac_cv_objext conftest.$ac_ext 3688fi 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3690$as_echo "$ac_cv_objext" >&6; } 3691OBJEXT=$ac_cv_objext 3692ac_objext=$OBJEXT 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3694$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3695if ${ac_cv_c_compiler_gnu+:} false; then : 3696 $as_echo_n "(cached) " >&6 3697else 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704#ifndef __GNUC__ 3705 choke me 3706#endif 3707 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712if ac_fn_c_try_compile "$LINENO"; then : 3713 ac_compiler_gnu=yes 3714else 3715 ac_compiler_gnu=no 3716fi 3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718ac_cv_c_compiler_gnu=$ac_compiler_gnu 3719 3720fi 3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3722$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3723if test $ac_compiler_gnu = yes; then 3724 GCC=yes 3725else 3726 GCC= 3727fi 3728ac_test_CFLAGS=${CFLAGS+set} 3729ac_save_CFLAGS=$CFLAGS 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3731$as_echo_n "checking whether $CC accepts -g... " >&6; } 3732if ${ac_cv_prog_cc_g+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 ac_save_c_werror_flag=$ac_c_werror_flag 3736 ac_c_werror_flag=yes 3737 ac_cv_prog_cc_g=no 3738 CFLAGS="-g" 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741 3742int 3743main () 3744{ 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO"; then : 3751 ac_cv_prog_cc_g=yes 3752else 3753 CFLAGS="" 3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3755/* end confdefs.h. */ 3756 3757int 3758main () 3759{ 3760 3761 ; 3762 return 0; 3763} 3764_ACEOF 3765if ac_fn_c_try_compile "$LINENO"; then : 3766 3767else 3768 ac_c_werror_flag=$ac_save_c_werror_flag 3769 CFLAGS="-g" 3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771/* end confdefs.h. */ 3772 3773int 3774main () 3775{ 3776 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781if ac_fn_c_try_compile "$LINENO"; then : 3782 ac_cv_prog_cc_g=yes 3783fi 3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3785fi 3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3787fi 3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3789 ac_c_werror_flag=$ac_save_c_werror_flag 3790fi 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3792$as_echo "$ac_cv_prog_cc_g" >&6; } 3793if test "$ac_test_CFLAGS" = set; then 3794 CFLAGS=$ac_save_CFLAGS 3795elif test $ac_cv_prog_cc_g = yes; then 3796 if test "$GCC" = yes; then 3797 CFLAGS="-g -O2" 3798 else 3799 CFLAGS="-g" 3800 fi 3801else 3802 if test "$GCC" = yes; then 3803 CFLAGS="-O2" 3804 else 3805 CFLAGS= 3806 fi 3807fi 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3809$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3810if ${ac_cv_prog_cc_c89+:} false; then : 3811 $as_echo_n "(cached) " >&6 3812else 3813 ac_cv_prog_cc_c89=no 3814ac_save_CC=$CC 3815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3816/* end confdefs.h. */ 3817#include <stdarg.h> 3818#include <stdio.h> 3819struct stat; 3820/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3821struct buf { int x; }; 3822FILE * (*rcsopen) (struct buf *, struct stat *, int); 3823static char *e (p, i) 3824 char **p; 3825 int i; 3826{ 3827 return p[i]; 3828} 3829static char *f (char * (*g) (char **, int), char **p, ...) 3830{ 3831 char *s; 3832 va_list v; 3833 va_start (v,p); 3834 s = g (p, va_arg (v,int)); 3835 va_end (v); 3836 return s; 3837} 3838 3839/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3840 function prototypes and stuff, but not '\xHH' hex character constants. 3841 These don't provoke an error unfortunately, instead are silently treated 3842 as 'x'. The following induces an error, until -std is added to get 3843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3844 array size at least. It's necessary to write '\x00'==0 to get something 3845 that's true only with -std. */ 3846int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3847 3848/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3849 inside strings and character constants. */ 3850#define FOO(x) 'x' 3851int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3852 3853int test (int i, double x); 3854struct s1 {int (*f) (int a);}; 3855struct s2 {int (*f) (double a);}; 3856int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3857int argc; 3858char **argv; 3859int 3860main () 3861{ 3862return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3863 ; 3864 return 0; 3865} 3866_ACEOF 3867for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3869do 3870 CC="$ac_save_CC $ac_arg" 3871 if ac_fn_c_try_compile "$LINENO"; then : 3872 ac_cv_prog_cc_c89=$ac_arg 3873fi 3874rm -f core conftest.err conftest.$ac_objext 3875 test "x$ac_cv_prog_cc_c89" != "xno" && break 3876done 3877rm -f conftest.$ac_ext 3878CC=$ac_save_CC 3879 3880fi 3881# AC_CACHE_VAL 3882case "x$ac_cv_prog_cc_c89" in 3883 x) 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3885$as_echo "none needed" >&6; } ;; 3886 xno) 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3888$as_echo "unsupported" >&6; } ;; 3889 *) 3890 CC="$CC $ac_cv_prog_cc_c89" 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3892$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3893esac 3894if test "x$ac_cv_prog_cc_c89" != xno; then : 3895 3896fi 3897 3898ac_ext=c 3899ac_cpp='$CPP $CPPFLAGS' 3900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3902ac_compiler_gnu=$ac_cv_c_compiler_gnu 3903 3904ac_ext=c 3905ac_cpp='$CPP $CPPFLAGS' 3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3908ac_compiler_gnu=$ac_cv_c_compiler_gnu 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3910$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3911if ${am_cv_prog_cc_c_o+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3915/* end confdefs.h. */ 3916 3917int 3918main () 3919{ 3920 3921 ; 3922 return 0; 3923} 3924_ACEOF 3925 # Make sure it works both with $CC and with simple cc. 3926 # Following AC_PROG_CC_C_O, we do the test twice because some 3927 # compilers refuse to overwrite an existing .o file with -o, 3928 # though they will create one. 3929 am_cv_prog_cc_c_o=yes 3930 for am_i in 1 2; do 3931 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3932 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3933 ac_status=$? 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); } \ 3936 && test -f conftest2.$ac_objext; then 3937 : OK 3938 else 3939 am_cv_prog_cc_c_o=no 3940 break 3941 fi 3942 done 3943 rm -f core conftest* 3944 unset am_i 3945fi 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3947$as_echo "$am_cv_prog_cc_c_o" >&6; } 3948if test "$am_cv_prog_cc_c_o" != yes; then 3949 # Losing compiler, so override with the script. 3950 # FIXME: It is wrong to rewrite CC. 3951 # But if we don't then we get into trouble of one sort or another. 3952 # A longer-term fix would be to have automake use am__CC in this case, 3953 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3954 CC="$am_aux_dir/compile $CC" 3955fi 3956ac_ext=c 3957ac_cpp='$CPP $CPPFLAGS' 3958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3960ac_compiler_gnu=$ac_cv_c_compiler_gnu 3961 3962 3963depcc="$CC" am_compiler_list= 3964 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3966$as_echo_n "checking dependency style of $depcc... " >&6; } 3967if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3968 $as_echo_n "(cached) " >&6 3969else 3970 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3971 # We make a subdir and do the tests there. Otherwise we can end up 3972 # making bogus files that we don't know about and never remove. For 3973 # instance it was reported that on HP-UX the gcc test will end up 3974 # making a dummy file named 'D' -- because '-MD' means "put the output 3975 # in D". 3976 rm -rf conftest.dir 3977 mkdir conftest.dir 3978 # Copy depcomp to subdir because otherwise we won't find it if we're 3979 # using a relative directory. 3980 cp "$am_depcomp" conftest.dir 3981 cd conftest.dir 3982 # We will build objects and dependencies in a subdirectory because 3983 # it helps to detect inapplicable dependency modes. For instance 3984 # both Tru64's cc and ICC support -MD to output dependencies as a 3985 # side effect of compilation, but ICC will put the dependencies in 3986 # the current directory while Tru64 will put them in the object 3987 # directory. 3988 mkdir sub 3989 3990 am_cv_CC_dependencies_compiler_type=none 3991 if test "$am_compiler_list" = ""; then 3992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3993 fi 3994 am__universal=false 3995 case " $depcc " in #( 3996 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3997 esac 3998 3999 for depmode in $am_compiler_list; do 4000 # Setup a source with many dependencies, because some compilers 4001 # like to wrap large dependency lists on column 80 (with \), and 4002 # we should not choose a depcomp mode which is confused by this. 4003 # 4004 # We need to recreate these files for each test, as the compiler may 4005 # overwrite some of them when testing with obscure command lines. 4006 # This happens at least with the AIX C compiler. 4007 : > sub/conftest.c 4008 for i in 1 2 3 4 5 6; do 4009 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4010 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4011 # Solaris 10 /bin/sh. 4012 echo '/* dummy */' > sub/conftst$i.h 4013 done 4014 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4015 4016 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4017 # mode. It turns out that the SunPro C++ compiler does not properly 4018 # handle '-M -o', and we need to detect this. Also, some Intel 4019 # versions had trouble with output in subdirs. 4020 am__obj=sub/conftest.${OBJEXT-o} 4021 am__minus_obj="-o $am__obj" 4022 case $depmode in 4023 gcc) 4024 # This depmode causes a compiler race in universal mode. 4025 test "$am__universal" = false || continue 4026 ;; 4027 nosideeffect) 4028 # After this tag, mechanisms are not by side-effect, so they'll 4029 # only be used when explicitly requested. 4030 if test "x$enable_dependency_tracking" = xyes; then 4031 continue 4032 else 4033 break 4034 fi 4035 ;; 4036 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4037 # This compiler won't grok '-c -o', but also, the minuso test has 4038 # not run yet. These depmodes are late enough in the game, and 4039 # so weak that their functioning should not be impacted. 4040 am__obj=conftest.${OBJEXT-o} 4041 am__minus_obj= 4042 ;; 4043 none) break ;; 4044 esac 4045 if depmode=$depmode \ 4046 source=sub/conftest.c object=$am__obj \ 4047 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4048 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4049 >/dev/null 2>conftest.err && 4050 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4051 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4052 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4053 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4054 # icc doesn't choke on unknown options, it will just issue warnings 4055 # or remarks (even with -Werror). So we grep stderr for any message 4056 # that says an option was ignored or not supported. 4057 # When given -MP, icc 7.0 and 7.1 complain thusly: 4058 # icc: Command line warning: ignoring option '-M'; no argument required 4059 # The diagnosis changed in icc 8.0: 4060 # icc: Command line remark: option '-MP' not supported 4061 if (grep 'ignoring option' conftest.err || 4062 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4063 am_cv_CC_dependencies_compiler_type=$depmode 4064 break 4065 fi 4066 fi 4067 done 4068 4069 cd .. 4070 rm -rf conftest.dir 4071else 4072 am_cv_CC_dependencies_compiler_type=none 4073fi 4074 4075fi 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4077$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4078CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4079 4080 if 4081 test "x$enable_dependency_tracking" != xno \ 4082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4083 am__fastdepCC_TRUE= 4084 am__fastdepCC_FALSE='#' 4085else 4086 am__fastdepCC_TRUE='#' 4087 am__fastdepCC_FALSE= 4088fi 4089 4090 4091 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4093$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4094if ${ac_cv_c_const+:} false; then : 4095 $as_echo_n "(cached) " >&6 4096else 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099 4100int 4101main () 4102{ 4103 4104#ifndef __cplusplus 4105 /* Ultrix mips cc rejects this sort of thing. */ 4106 typedef int charset[2]; 4107 const charset cs = { 0, 0 }; 4108 /* SunOS 4.1.1 cc rejects this. */ 4109 char const *const *pcpcc; 4110 char **ppc; 4111 /* NEC SVR4.0.2 mips cc rejects this. */ 4112 struct point {int x, y;}; 4113 static struct point const zero = {0,0}; 4114 /* AIX XL C 1.02.0.0 rejects this. 4115 It does not let you subtract one const X* pointer from another in 4116 an arm of an if-expression whose if-part is not a constant 4117 expression */ 4118 const char *g = "string"; 4119 pcpcc = &g + (g ? g-g : 0); 4120 /* HPUX 7.0 cc rejects these. */ 4121 ++pcpcc; 4122 ppc = (char**) pcpcc; 4123 pcpcc = (char const *const *) ppc; 4124 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4125 char tx; 4126 char *t = &tx; 4127 char const *s = 0 ? (char *) 0 : (char const *) 0; 4128 4129 *t++ = 0; 4130 if (s) return 0; 4131 } 4132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4133 int x[] = {25, 17}; 4134 const int *foo = &x[0]; 4135 ++foo; 4136 } 4137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4138 typedef const int *iptr; 4139 iptr p = 0; 4140 ++p; 4141 } 4142 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4144 struct s { int j; const int *ap[3]; } bx; 4145 struct s *b = &bx; b->j = 5; 4146 } 4147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4148 const int foo = 10; 4149 if (!foo) return 0; 4150 } 4151 return !cs[0] && !zero.x; 4152#endif 4153 4154 ; 4155 return 0; 4156} 4157_ACEOF 4158if ac_fn_c_try_compile "$LINENO"; then : 4159 ac_cv_c_const=yes 4160else 4161 ac_cv_c_const=no 4162fi 4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4166$as_echo "$ac_cv_c_const" >&6; } 4167if test $ac_cv_c_const = no; then 4168 4169$as_echo "#define const /**/" >>confdefs.h 4170 4171fi 4172 4173ac_ext=c 4174ac_cpp='$CPP $CPPFLAGS' 4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4177ac_compiler_gnu=$ac_cv_c_compiler_gnu 4178if test -n "$ac_tool_prefix"; then 4179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4180set dummy ${ac_tool_prefix}gcc; ac_word=$2 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4182$as_echo_n "checking for $ac_word... " >&6; } 4183if ${ac_cv_prog_CC+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 if test -n "$CC"; then 4187 ac_cv_prog_CC="$CC" # Let the user override the test. 4188else 4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190for as_dir in $PATH 4191do 4192 IFS=$as_save_IFS 4193 test -z "$as_dir" && as_dir=. 4194 for ac_exec_ext in '' $ac_executable_extensions; do 4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4196 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4198 break 2 4199 fi 4200done 4201 done 4202IFS=$as_save_IFS 4203 4204fi 4205fi 4206CC=$ac_cv_prog_CC 4207if test -n "$CC"; then 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4209$as_echo "$CC" >&6; } 4210else 4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4212$as_echo "no" >&6; } 4213fi 4214 4215 4216fi 4217if test -z "$ac_cv_prog_CC"; then 4218 ac_ct_CC=$CC 4219 # Extract the first word of "gcc", so it can be a program name with args. 4220set dummy gcc; ac_word=$2 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4222$as_echo_n "checking for $ac_word... " >&6; } 4223if ${ac_cv_prog_ac_ct_CC+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 if test -n "$ac_ct_CC"; then 4227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4228else 4229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4230for as_dir in $PATH 4231do 4232 IFS=$as_save_IFS 4233 test -z "$as_dir" && as_dir=. 4234 for ac_exec_ext in '' $ac_executable_extensions; do 4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4236 ac_cv_prog_ac_ct_CC="gcc" 4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4238 break 2 4239 fi 4240done 4241 done 4242IFS=$as_save_IFS 4243 4244fi 4245fi 4246ac_ct_CC=$ac_cv_prog_ac_ct_CC 4247if test -n "$ac_ct_CC"; then 4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4249$as_echo "$ac_ct_CC" >&6; } 4250else 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4252$as_echo "no" >&6; } 4253fi 4254 4255 if test "x$ac_ct_CC" = x; then 4256 CC="" 4257 else 4258 case $cross_compiling:$ac_tool_warned in 4259yes:) 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4262ac_tool_warned=yes ;; 4263esac 4264 CC=$ac_ct_CC 4265 fi 4266else 4267 CC="$ac_cv_prog_CC" 4268fi 4269 4270if test -z "$CC"; then 4271 if test -n "$ac_tool_prefix"; then 4272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4273set dummy ${ac_tool_prefix}cc; ac_word=$2 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4275$as_echo_n "checking for $ac_word... " >&6; } 4276if ${ac_cv_prog_CC+:} false; then : 4277 $as_echo_n "(cached) " >&6 4278else 4279 if test -n "$CC"; then 4280 ac_cv_prog_CC="$CC" # Let the user override the test. 4281else 4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4283for as_dir in $PATH 4284do 4285 IFS=$as_save_IFS 4286 test -z "$as_dir" && as_dir=. 4287 for ac_exec_ext in '' $ac_executable_extensions; do 4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4289 ac_cv_prog_CC="${ac_tool_prefix}cc" 4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4291 break 2 4292 fi 4293done 4294 done 4295IFS=$as_save_IFS 4296 4297fi 4298fi 4299CC=$ac_cv_prog_CC 4300if test -n "$CC"; then 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4302$as_echo "$CC" >&6; } 4303else 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4305$as_echo "no" >&6; } 4306fi 4307 4308 4309 fi 4310fi 4311if test -z "$CC"; then 4312 # Extract the first word of "cc", so it can be a program name with args. 4313set dummy cc; ac_word=$2 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4315$as_echo_n "checking for $ac_word... " >&6; } 4316if ${ac_cv_prog_CC+:} false; then : 4317 $as_echo_n "(cached) " >&6 4318else 4319 if test -n "$CC"; then 4320 ac_cv_prog_CC="$CC" # Let the user override the test. 4321else 4322 ac_prog_rejected=no 4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4324for as_dir in $PATH 4325do 4326 IFS=$as_save_IFS 4327 test -z "$as_dir" && as_dir=. 4328 for ac_exec_ext in '' $ac_executable_extensions; do 4329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4331 ac_prog_rejected=yes 4332 continue 4333 fi 4334 ac_cv_prog_CC="cc" 4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4336 break 2 4337 fi 4338done 4339 done 4340IFS=$as_save_IFS 4341 4342if test $ac_prog_rejected = yes; then 4343 # We found a bogon in the path, so make sure we never use it. 4344 set dummy $ac_cv_prog_CC 4345 shift 4346 if test $# != 0; then 4347 # We chose a different compiler from the bogus one. 4348 # However, it has the same basename, so the bogon will be chosen 4349 # first if we set CC to just the basename; use the full file name. 4350 shift 4351 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4352 fi 4353fi 4354fi 4355fi 4356CC=$ac_cv_prog_CC 4357if test -n "$CC"; then 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4359$as_echo "$CC" >&6; } 4360else 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4362$as_echo "no" >&6; } 4363fi 4364 4365 4366fi 4367if test -z "$CC"; then 4368 if test -n "$ac_tool_prefix"; then 4369 for ac_prog in cl.exe 4370 do 4371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4372set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4374$as_echo_n "checking for $ac_word... " >&6; } 4375if ${ac_cv_prog_CC+:} false; then : 4376 $as_echo_n "(cached) " >&6 4377else 4378 if test -n "$CC"; then 4379 ac_cv_prog_CC="$CC" # Let the user override the test. 4380else 4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4382for as_dir in $PATH 4383do 4384 IFS=$as_save_IFS 4385 test -z "$as_dir" && as_dir=. 4386 for ac_exec_ext in '' $ac_executable_extensions; do 4387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4390 break 2 4391 fi 4392done 4393 done 4394IFS=$as_save_IFS 4395 4396fi 4397fi 4398CC=$ac_cv_prog_CC 4399if test -n "$CC"; then 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4401$as_echo "$CC" >&6; } 4402else 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4404$as_echo "no" >&6; } 4405fi 4406 4407 4408 test -n "$CC" && break 4409 done 4410fi 4411if test -z "$CC"; then 4412 ac_ct_CC=$CC 4413 for ac_prog in cl.exe 4414do 4415 # Extract the first word of "$ac_prog", so it can be a program name with args. 4416set dummy $ac_prog; ac_word=$2 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4418$as_echo_n "checking for $ac_word... " >&6; } 4419if ${ac_cv_prog_ac_ct_CC+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 if test -n "$ac_ct_CC"; then 4423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4424else 4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4432 ac_cv_prog_ac_ct_CC="$ac_prog" 4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4434 break 2 4435 fi 4436done 4437 done 4438IFS=$as_save_IFS 4439 4440fi 4441fi 4442ac_ct_CC=$ac_cv_prog_ac_ct_CC 4443if test -n "$ac_ct_CC"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4445$as_echo "$ac_ct_CC" >&6; } 4446else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448$as_echo "no" >&6; } 4449fi 4450 4451 4452 test -n "$ac_ct_CC" && break 4453done 4454 4455 if test "x$ac_ct_CC" = x; then 4456 CC="" 4457 else 4458 case $cross_compiling:$ac_tool_warned in 4459yes:) 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4462ac_tool_warned=yes ;; 4463esac 4464 CC=$ac_ct_CC 4465 fi 4466fi 4467 4468fi 4469 4470 4471test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4473as_fn_error $? "no acceptable C compiler found in \$PATH 4474See \`config.log' for more details" "$LINENO" 5; } 4475 4476# Provide some information about the compiler. 4477$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4478set X $ac_compile 4479ac_compiler=$2 4480for ac_option in --version -v -V -qversion; do 4481 { { ac_try="$ac_compiler $ac_option >&5" 4482case "(($ac_try" in 4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4484 *) ac_try_echo=$ac_try;; 4485esac 4486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4487$as_echo "$ac_try_echo"; } >&5 4488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4489 ac_status=$? 4490 if test -s conftest.err; then 4491 sed '10a\ 4492... rest of stderr output deleted ... 4493 10q' conftest.err >conftest.er1 4494 cat conftest.er1 >&5 4495 fi 4496 rm -f conftest.er1 conftest.err 4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4498 test $ac_status = 0; } 4499done 4500 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4502$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4503if ${ac_cv_c_compiler_gnu+:} false; then : 4504 $as_echo_n "(cached) " >&6 4505else 4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4507/* end confdefs.h. */ 4508 4509int 4510main () 4511{ 4512#ifndef __GNUC__ 4513 choke me 4514#endif 4515 4516 ; 4517 return 0; 4518} 4519_ACEOF 4520if ac_fn_c_try_compile "$LINENO"; then : 4521 ac_compiler_gnu=yes 4522else 4523 ac_compiler_gnu=no 4524fi 4525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4526ac_cv_c_compiler_gnu=$ac_compiler_gnu 4527 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4530$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4531if test $ac_compiler_gnu = yes; then 4532 GCC=yes 4533else 4534 GCC= 4535fi 4536ac_test_CFLAGS=${CFLAGS+set} 4537ac_save_CFLAGS=$CFLAGS 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4539$as_echo_n "checking whether $CC accepts -g... " >&6; } 4540if ${ac_cv_prog_cc_g+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 ac_save_c_werror_flag=$ac_c_werror_flag 4544 ac_c_werror_flag=yes 4545 ac_cv_prog_cc_g=no 4546 CFLAGS="-g" 4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4548/* end confdefs.h. */ 4549 4550int 4551main () 4552{ 4553 4554 ; 4555 return 0; 4556} 4557_ACEOF 4558if ac_fn_c_try_compile "$LINENO"; then : 4559 ac_cv_prog_cc_g=yes 4560else 4561 CFLAGS="" 4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4563/* end confdefs.h. */ 4564 4565int 4566main () 4567{ 4568 4569 ; 4570 return 0; 4571} 4572_ACEOF 4573if ac_fn_c_try_compile "$LINENO"; then : 4574 4575else 4576 ac_c_werror_flag=$ac_save_c_werror_flag 4577 CFLAGS="-g" 4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4579/* end confdefs.h. */ 4580 4581int 4582main () 4583{ 4584 4585 ; 4586 return 0; 4587} 4588_ACEOF 4589if ac_fn_c_try_compile "$LINENO"; then : 4590 ac_cv_prog_cc_g=yes 4591fi 4592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4593fi 4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4595fi 4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4597 ac_c_werror_flag=$ac_save_c_werror_flag 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4600$as_echo "$ac_cv_prog_cc_g" >&6; } 4601if test "$ac_test_CFLAGS" = set; then 4602 CFLAGS=$ac_save_CFLAGS 4603elif test $ac_cv_prog_cc_g = yes; then 4604 if test "$GCC" = yes; then 4605 CFLAGS="-g -O2" 4606 else 4607 CFLAGS="-g" 4608 fi 4609else 4610 if test "$GCC" = yes; then 4611 CFLAGS="-O2" 4612 else 4613 CFLAGS= 4614 fi 4615fi 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4617$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4618if ${ac_cv_prog_cc_c89+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 ac_cv_prog_cc_c89=no 4622ac_save_CC=$CC 4623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4624/* end confdefs.h. */ 4625#include <stdarg.h> 4626#include <stdio.h> 4627struct stat; 4628/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4629struct buf { int x; }; 4630FILE * (*rcsopen) (struct buf *, struct stat *, int); 4631static char *e (p, i) 4632 char **p; 4633 int i; 4634{ 4635 return p[i]; 4636} 4637static char *f (char * (*g) (char **, int), char **p, ...) 4638{ 4639 char *s; 4640 va_list v; 4641 va_start (v,p); 4642 s = g (p, va_arg (v,int)); 4643 va_end (v); 4644 return s; 4645} 4646 4647/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4648 function prototypes and stuff, but not '\xHH' hex character constants. 4649 These don't provoke an error unfortunately, instead are silently treated 4650 as 'x'. The following induces an error, until -std is added to get 4651 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4652 array size at least. It's necessary to write '\x00'==0 to get something 4653 that's true only with -std. */ 4654int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4655 4656/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4657 inside strings and character constants. */ 4658#define FOO(x) 'x' 4659int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4660 4661int test (int i, double x); 4662struct s1 {int (*f) (int a);}; 4663struct s2 {int (*f) (double a);}; 4664int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4665int argc; 4666char **argv; 4667int 4668main () 4669{ 4670return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4676 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4677do 4678 CC="$ac_save_CC $ac_arg" 4679 if ac_fn_c_try_compile "$LINENO"; then : 4680 ac_cv_prog_cc_c89=$ac_arg 4681fi 4682rm -f core conftest.err conftest.$ac_objext 4683 test "x$ac_cv_prog_cc_c89" != "xno" && break 4684done 4685rm -f conftest.$ac_ext 4686CC=$ac_save_CC 4687 4688fi 4689# AC_CACHE_VAL 4690case "x$ac_cv_prog_cc_c89" in 4691 x) 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4693$as_echo "none needed" >&6; } ;; 4694 xno) 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4696$as_echo "unsupported" >&6; } ;; 4697 *) 4698 CC="$CC $ac_cv_prog_cc_c89" 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4700$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4701esac 4702if test "x$ac_cv_prog_cc_c89" != xno; then : 4703 4704fi 4705 4706ac_ext=c 4707ac_cpp='$CPP $CPPFLAGS' 4708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4710ac_compiler_gnu=$ac_cv_c_compiler_gnu 4711 4712ac_ext=c 4713ac_cpp='$CPP $CPPFLAGS' 4714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4716ac_compiler_gnu=$ac_cv_c_compiler_gnu 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4718$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4719if ${am_cv_prog_cc_c_o+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724 4725int 4726main () 4727{ 4728 4729 ; 4730 return 0; 4731} 4732_ACEOF 4733 # Make sure it works both with $CC and with simple cc. 4734 # Following AC_PROG_CC_C_O, we do the test twice because some 4735 # compilers refuse to overwrite an existing .o file with -o, 4736 # though they will create one. 4737 am_cv_prog_cc_c_o=yes 4738 for am_i in 1 2; do 4739 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4740 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4741 ac_status=$? 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); } \ 4744 && test -f conftest2.$ac_objext; then 4745 : OK 4746 else 4747 am_cv_prog_cc_c_o=no 4748 break 4749 fi 4750 done 4751 rm -f core conftest* 4752 unset am_i 4753fi 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4755$as_echo "$am_cv_prog_cc_c_o" >&6; } 4756if test "$am_cv_prog_cc_c_o" != yes; then 4757 # Losing compiler, so override with the script. 4758 # FIXME: It is wrong to rewrite CC. 4759 # But if we don't then we get into trouble of one sort or another. 4760 # A longer-term fix would be to have automake use am__CC in this case, 4761 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4762 CC="$am_aux_dir/compile $CC" 4763fi 4764ac_ext=c 4765ac_cpp='$CPP $CPPFLAGS' 4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4768ac_compiler_gnu=$ac_cv_c_compiler_gnu 4769 4770 4771depcc="$CC" am_compiler_list= 4772 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4774$as_echo_n "checking dependency style of $depcc... " >&6; } 4775if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4779 # We make a subdir and do the tests there. Otherwise we can end up 4780 # making bogus files that we don't know about and never remove. For 4781 # instance it was reported that on HP-UX the gcc test will end up 4782 # making a dummy file named 'D' -- because '-MD' means "put the output 4783 # in D". 4784 rm -rf conftest.dir 4785 mkdir conftest.dir 4786 # Copy depcomp to subdir because otherwise we won't find it if we're 4787 # using a relative directory. 4788 cp "$am_depcomp" conftest.dir 4789 cd conftest.dir 4790 # We will build objects and dependencies in a subdirectory because 4791 # it helps to detect inapplicable dependency modes. For instance 4792 # both Tru64's cc and ICC support -MD to output dependencies as a 4793 # side effect of compilation, but ICC will put the dependencies in 4794 # the current directory while Tru64 will put them in the object 4795 # directory. 4796 mkdir sub 4797 4798 am_cv_CC_dependencies_compiler_type=none 4799 if test "$am_compiler_list" = ""; then 4800 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4801 fi 4802 am__universal=false 4803 case " $depcc " in #( 4804 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4805 esac 4806 4807 for depmode in $am_compiler_list; do 4808 # Setup a source with many dependencies, because some compilers 4809 # like to wrap large dependency lists on column 80 (with \), and 4810 # we should not choose a depcomp mode which is confused by this. 4811 # 4812 # We need to recreate these files for each test, as the compiler may 4813 # overwrite some of them when testing with obscure command lines. 4814 # This happens at least with the AIX C compiler. 4815 : > sub/conftest.c 4816 for i in 1 2 3 4 5 6; do 4817 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4818 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4819 # Solaris 10 /bin/sh. 4820 echo '/* dummy */' > sub/conftst$i.h 4821 done 4822 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4823 4824 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4825 # mode. It turns out that the SunPro C++ compiler does not properly 4826 # handle '-M -o', and we need to detect this. Also, some Intel 4827 # versions had trouble with output in subdirs. 4828 am__obj=sub/conftest.${OBJEXT-o} 4829 am__minus_obj="-o $am__obj" 4830 case $depmode in 4831 gcc) 4832 # This depmode causes a compiler race in universal mode. 4833 test "$am__universal" = false || continue 4834 ;; 4835 nosideeffect) 4836 # After this tag, mechanisms are not by side-effect, so they'll 4837 # only be used when explicitly requested. 4838 if test "x$enable_dependency_tracking" = xyes; then 4839 continue 4840 else 4841 break 4842 fi 4843 ;; 4844 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4845 # This compiler won't grok '-c -o', but also, the minuso test has 4846 # not run yet. These depmodes are late enough in the game, and 4847 # so weak that their functioning should not be impacted. 4848 am__obj=conftest.${OBJEXT-o} 4849 am__minus_obj= 4850 ;; 4851 none) break ;; 4852 esac 4853 if depmode=$depmode \ 4854 source=sub/conftest.c object=$am__obj \ 4855 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4856 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4857 >/dev/null 2>conftest.err && 4858 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4859 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4860 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4861 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4862 # icc doesn't choke on unknown options, it will just issue warnings 4863 # or remarks (even with -Werror). So we grep stderr for any message 4864 # that says an option was ignored or not supported. 4865 # When given -MP, icc 7.0 and 7.1 complain thusly: 4866 # icc: Command line warning: ignoring option '-M'; no argument required 4867 # The diagnosis changed in icc 8.0: 4868 # icc: Command line remark: option '-MP' not supported 4869 if (grep 'ignoring option' conftest.err || 4870 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4871 am_cv_CC_dependencies_compiler_type=$depmode 4872 break 4873 fi 4874 fi 4875 done 4876 4877 cd .. 4878 rm -rf conftest.dir 4879else 4880 am_cv_CC_dependencies_compiler_type=none 4881fi 4882 4883fi 4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4885$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4886CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4887 4888 if 4889 test "x$enable_dependency_tracking" != xno \ 4890 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4891 am__fastdepCC_TRUE= 4892 am__fastdepCC_FALSE='#' 4893else 4894 am__fastdepCC_TRUE='#' 4895 am__fastdepCC_FALSE= 4896fi 4897 4898 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4900$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4901if ${ac_cv_prog_cc_c99+:} false; then : 4902 $as_echo_n "(cached) " >&6 4903else 4904 ac_cv_prog_cc_c99=no 4905ac_save_CC=$CC 4906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908#include <stdarg.h> 4909#include <stdbool.h> 4910#include <stdlib.h> 4911#include <wchar.h> 4912#include <stdio.h> 4913 4914// Check varargs macros. These examples are taken from C99 6.10.3.5. 4915#define debug(...) fprintf (stderr, __VA_ARGS__) 4916#define showlist(...) puts (#__VA_ARGS__) 4917#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4918static void 4919test_varargs_macros (void) 4920{ 4921 int x = 1234; 4922 int y = 5678; 4923 debug ("Flag"); 4924 debug ("X = %d\n", x); 4925 showlist (The first, second, and third items.); 4926 report (x>y, "x is %d but y is %d", x, y); 4927} 4928 4929// Check long long types. 4930#define BIG64 18446744073709551615ull 4931#define BIG32 4294967295ul 4932#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4933#if !BIG_OK 4934 your preprocessor is broken; 4935#endif 4936#if BIG_OK 4937#else 4938 your preprocessor is broken; 4939#endif 4940static long long int bignum = -9223372036854775807LL; 4941static unsigned long long int ubignum = BIG64; 4942 4943struct incomplete_array 4944{ 4945 int datasize; 4946 double data[]; 4947}; 4948 4949struct named_init { 4950 int number; 4951 const wchar_t *name; 4952 double average; 4953}; 4954 4955typedef const char *ccp; 4956 4957static inline int 4958test_restrict (ccp restrict text) 4959{ 4960 // See if C++-style comments work. 4961 // Iterate through items via the restricted pointer. 4962 // Also check for declarations in for loops. 4963 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4964 continue; 4965 return 0; 4966} 4967 4968// Check varargs and va_copy. 4969static void 4970test_varargs (const char *format, ...) 4971{ 4972 va_list args; 4973 va_start (args, format); 4974 va_list args_copy; 4975 va_copy (args_copy, args); 4976 4977 const char *str; 4978 int number; 4979 float fnumber; 4980 4981 while (*format) 4982 { 4983 switch (*format++) 4984 { 4985 case 's': // string 4986 str = va_arg (args_copy, const char *); 4987 break; 4988 case 'd': // int 4989 number = va_arg (args_copy, int); 4990 break; 4991 case 'f': // float 4992 fnumber = va_arg (args_copy, double); 4993 break; 4994 default: 4995 break; 4996 } 4997 } 4998 va_end (args_copy); 4999 va_end (args); 5000} 5001 5002int 5003main () 5004{ 5005 5006 // Check bool. 5007 _Bool success = false; 5008 5009 // Check restrict. 5010 if (test_restrict ("String literal") == 0) 5011 success = true; 5012 char *restrict newvar = "Another string"; 5013 5014 // Check varargs. 5015 test_varargs ("s, d' f .", "string", 65, 34.234); 5016 test_varargs_macros (); 5017 5018 // Check flexible array members. 5019 struct incomplete_array *ia = 5020 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5021 ia->datasize = 10; 5022 for (int i = 0; i < ia->datasize; ++i) 5023 ia->data[i] = i * 1.234; 5024 5025 // Check named initializers. 5026 struct named_init ni = { 5027 .number = 34, 5028 .name = L"Test wide string", 5029 .average = 543.34343, 5030 }; 5031 5032 ni.number = 58; 5033 5034 int dynamic_array[ni.number]; 5035 dynamic_array[ni.number - 1] = 543; 5036 5037 // work around unused variable warnings 5038 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5039 || dynamic_array[ni.number - 1] != 543); 5040 5041 ; 5042 return 0; 5043} 5044_ACEOF 5045for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5046do 5047 CC="$ac_save_CC $ac_arg" 5048 if ac_fn_c_try_compile "$LINENO"; then : 5049 ac_cv_prog_cc_c99=$ac_arg 5050fi 5051rm -f core conftest.err conftest.$ac_objext 5052 test "x$ac_cv_prog_cc_c99" != "xno" && break 5053done 5054rm -f conftest.$ac_ext 5055CC=$ac_save_CC 5056 5057fi 5058# AC_CACHE_VAL 5059case "x$ac_cv_prog_cc_c99" in 5060 x) 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5062$as_echo "none needed" >&6; } ;; 5063 xno) 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5065$as_echo "unsupported" >&6; } ;; 5066 *) 5067 CC="$CC $ac_cv_prog_cc_c99" 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5069$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5070esac 5071if test "x$ac_cv_prog_cc_c99" != xno; then : 5072 5073fi 5074 5075 5076ac_ext=c 5077ac_cpp='$CPP $CPPFLAGS' 5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5080ac_compiler_gnu=$ac_cv_c_compiler_gnu 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5082$as_echo_n "checking how to run the C preprocessor... " >&6; } 5083# On Suns, sometimes $CPP names a directory. 5084if test -n "$CPP" && test -d "$CPP"; then 5085 CPP= 5086fi 5087if test -z "$CPP"; then 5088 if ${ac_cv_prog_CPP+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 # Double quotes because CPP needs to be expanded 5092 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5093 do 5094 ac_preproc_ok=false 5095for ac_c_preproc_warn_flag in '' yes 5096do 5097 # Use a header file that comes with gcc, so configuring glibc 5098 # with a fresh cross-compiler works. 5099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5100 # <limits.h> exists even on freestanding compilers. 5101 # On the NeXT, cc -E runs the code through the compiler's parser, 5102 # not just through cpp. "Syntax error" is here to catch this case. 5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5104/* end confdefs.h. */ 5105#ifdef __STDC__ 5106# include <limits.h> 5107#else 5108# include <assert.h> 5109#endif 5110 Syntax error 5111_ACEOF 5112if ac_fn_c_try_cpp "$LINENO"; then : 5113 5114else 5115 # Broken: fails on valid input. 5116continue 5117fi 5118rm -f conftest.err conftest.i conftest.$ac_ext 5119 5120 # OK, works on sane cases. Now check whether nonexistent headers 5121 # can be detected and how. 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124#include <ac_nonexistent.h> 5125_ACEOF 5126if ac_fn_c_try_cpp "$LINENO"; then : 5127 # Broken: success on invalid input. 5128continue 5129else 5130 # Passes both tests. 5131ac_preproc_ok=: 5132break 5133fi 5134rm -f conftest.err conftest.i conftest.$ac_ext 5135 5136done 5137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5138rm -f conftest.i conftest.err conftest.$ac_ext 5139if $ac_preproc_ok; then : 5140 break 5141fi 5142 5143 done 5144 ac_cv_prog_CPP=$CPP 5145 5146fi 5147 CPP=$ac_cv_prog_CPP 5148else 5149 ac_cv_prog_CPP=$CPP 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5152$as_echo "$CPP" >&6; } 5153ac_preproc_ok=false 5154for ac_c_preproc_warn_flag in '' yes 5155do 5156 # Use a header file that comes with gcc, so configuring glibc 5157 # with a fresh cross-compiler works. 5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5159 # <limits.h> exists even on freestanding compilers. 5160 # On the NeXT, cc -E runs the code through the compiler's parser, 5161 # not just through cpp. "Syntax error" is here to catch this case. 5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163/* end confdefs.h. */ 5164#ifdef __STDC__ 5165# include <limits.h> 5166#else 5167# include <assert.h> 5168#endif 5169 Syntax error 5170_ACEOF 5171if ac_fn_c_try_cpp "$LINENO"; then : 5172 5173else 5174 # Broken: fails on valid input. 5175continue 5176fi 5177rm -f conftest.err conftest.i conftest.$ac_ext 5178 5179 # OK, works on sane cases. Now check whether nonexistent headers 5180 # can be detected and how. 5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5182/* end confdefs.h. */ 5183#include <ac_nonexistent.h> 5184_ACEOF 5185if ac_fn_c_try_cpp "$LINENO"; then : 5186 # Broken: success on invalid input. 5187continue 5188else 5189 # Passes both tests. 5190ac_preproc_ok=: 5191break 5192fi 5193rm -f conftest.err conftest.i conftest.$ac_ext 5194 5195done 5196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5197rm -f conftest.i conftest.err conftest.$ac_ext 5198if $ac_preproc_ok; then : 5199 5200else 5201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5203as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5204See \`config.log' for more details" "$LINENO" 5; } 5205fi 5206 5207ac_ext=c 5208ac_cpp='$CPP $CPPFLAGS' 5209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5211ac_compiler_gnu=$ac_cv_c_compiler_gnu 5212 5213 5214if test -n "$ac_tool_prefix"; then 5215 for ac_prog in ar lib "link -lib" 5216 do 5217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5218set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5220$as_echo_n "checking for $ac_word... " >&6; } 5221if ${ac_cv_prog_AR+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 if test -n "$AR"; then 5225 ac_cv_prog_AR="$AR" # Let the user override the test. 5226else 5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5228for as_dir in $PATH 5229do 5230 IFS=$as_save_IFS 5231 test -z "$as_dir" && as_dir=. 5232 for ac_exec_ext in '' $ac_executable_extensions; do 5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5234 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5236 break 2 5237 fi 5238done 5239 done 5240IFS=$as_save_IFS 5241 5242fi 5243fi 5244AR=$ac_cv_prog_AR 5245if test -n "$AR"; then 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5247$as_echo "$AR" >&6; } 5248else 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5250$as_echo "no" >&6; } 5251fi 5252 5253 5254 test -n "$AR" && break 5255 done 5256fi 5257if test -z "$AR"; then 5258 ac_ct_AR=$AR 5259 for ac_prog in ar lib "link -lib" 5260do 5261 # Extract the first word of "$ac_prog", so it can be a program name with args. 5262set dummy $ac_prog; ac_word=$2 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5264$as_echo_n "checking for $ac_word... " >&6; } 5265if ${ac_cv_prog_ac_ct_AR+:} false; then : 5266 $as_echo_n "(cached) " >&6 5267else 5268 if test -n "$ac_ct_AR"; then 5269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5270else 5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272for as_dir in $PATH 5273do 5274 IFS=$as_save_IFS 5275 test -z "$as_dir" && as_dir=. 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5278 ac_cv_prog_ac_ct_AR="$ac_prog" 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 break 2 5281 fi 5282done 5283 done 5284IFS=$as_save_IFS 5285 5286fi 5287fi 5288ac_ct_AR=$ac_cv_prog_ac_ct_AR 5289if test -n "$ac_ct_AR"; then 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5291$as_echo "$ac_ct_AR" >&6; } 5292else 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5294$as_echo "no" >&6; } 5295fi 5296 5297 5298 test -n "$ac_ct_AR" && break 5299done 5300 5301 if test "x$ac_ct_AR" = x; then 5302 AR="false" 5303 else 5304 case $cross_compiling:$ac_tool_warned in 5305yes:) 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5308ac_tool_warned=yes ;; 5309esac 5310 AR=$ac_ct_AR 5311 fi 5312fi 5313 5314: ${AR=ar} 5315 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5317$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5318if ${am_cv_ar_interface+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 ac_ext=c 5322ac_cpp='$CPP $CPPFLAGS' 5323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5325ac_compiler_gnu=$ac_cv_c_compiler_gnu 5326 5327 am_cv_ar_interface=ar 5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329/* end confdefs.h. */ 5330int some_variable = 0; 5331_ACEOF 5332if ac_fn_c_try_compile "$LINENO"; then : 5333 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5335 (eval $am_ar_try) 2>&5 5336 ac_status=$? 5337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5338 test $ac_status = 0; } 5339 if test "$ac_status" -eq 0; then 5340 am_cv_ar_interface=ar 5341 else 5342 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5344 (eval $am_ar_try) 2>&5 5345 ac_status=$? 5346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5347 test $ac_status = 0; } 5348 if test "$ac_status" -eq 0; then 5349 am_cv_ar_interface=lib 5350 else 5351 am_cv_ar_interface=unknown 5352 fi 5353 fi 5354 rm -f conftest.lib libconftest.a 5355 5356fi 5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5358 ac_ext=c 5359ac_cpp='$CPP $CPPFLAGS' 5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5362ac_compiler_gnu=$ac_cv_c_compiler_gnu 5363 5364fi 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5366$as_echo "$am_cv_ar_interface" >&6; } 5367 5368case $am_cv_ar_interface in 5369ar) 5370 ;; 5371lib) 5372 # Microsoft lib, so override with the ar-lib wrapper script. 5373 # FIXME: It is wrong to rewrite AR. 5374 # But if we don't then we get into trouble of one sort or another. 5375 # A longer-term fix would be to have automake use am__AR in this case, 5376 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5377 # similar. 5378 AR="$am_aux_dir/ar-lib $AR" 5379 ;; 5380unknown) 5381 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5382 ;; 5383esac 5384 5385case `pwd` in 5386 *\ * | *\ *) 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5388$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5389esac 5390 5391 5392 5393macro_version='2.4.6' 5394macro_revision='2.4.6' 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408ltmain=$ac_aux_dir/ltmain.sh 5409 5410# Make sure we can run config.sub. 5411$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5412 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5413 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5415$as_echo_n "checking build system type... " >&6; } 5416if ${ac_cv_build+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 ac_build_alias=$build_alias 5420test "x$ac_build_alias" = x && 5421 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5422test "x$ac_build_alias" = x && 5423 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5424ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5425 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5426 5427fi 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5429$as_echo "$ac_cv_build" >&6; } 5430case $ac_cv_build in 5431*-*-*) ;; 5432*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5433esac 5434build=$ac_cv_build 5435ac_save_IFS=$IFS; IFS='-' 5436set x $ac_cv_build 5437shift 5438build_cpu=$1 5439build_vendor=$2 5440shift; shift 5441# Remember, the first character of IFS is used to create $*, 5442# except with old shells: 5443build_os=$* 5444IFS=$ac_save_IFS 5445case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5446 5447 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5449$as_echo_n "checking host system type... " >&6; } 5450if ${ac_cv_host+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452else 5453 if test "x$host_alias" = x; then 5454 ac_cv_host=$ac_cv_build 5455else 5456 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5458fi 5459 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5462$as_echo "$ac_cv_host" >&6; } 5463case $ac_cv_host in 5464*-*-*) ;; 5465*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5466esac 5467host=$ac_cv_host 5468ac_save_IFS=$IFS; IFS='-' 5469set x $ac_cv_host 5470shift 5471host_cpu=$1 5472host_vendor=$2 5473shift; shift 5474# Remember, the first character of IFS is used to create $*, 5475# except with old shells: 5476host_os=$* 5477IFS=$ac_save_IFS 5478case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5479 5480 5481# Backslashify metacharacters that are still active within 5482# double-quoted strings. 5483sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5484 5485# Same as above, but do not quote variable references. 5486double_quote_subst='s/\(["`\\]\)/\\\1/g' 5487 5488# Sed substitution to delay expansion of an escaped shell variable in a 5489# double_quote_subst'ed string. 5490delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5491 5492# Sed substitution to delay expansion of an escaped single quote. 5493delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5494 5495# Sed substitution to avoid accidental globbing in evaled expressions 5496no_glob_subst='s/\*/\\\*/g' 5497 5498ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5499ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5500ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5501 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5503$as_echo_n "checking how to print strings... " >&6; } 5504# Test print first, because it will be a builtin if present. 5505if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5506 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5507 ECHO='print -r --' 5508elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5509 ECHO='printf %s\n' 5510else 5511 # Use this function as a fallback that always works. 5512 func_fallback_echo () 5513 { 5514 eval 'cat <<_LTECHO_EOF 5515$1 5516_LTECHO_EOF' 5517 } 5518 ECHO='func_fallback_echo' 5519fi 5520 5521# func_echo_all arg... 5522# Invoke $ECHO with all args, space-separated. 5523func_echo_all () 5524{ 5525 $ECHO "" 5526} 5527 5528case $ECHO in 5529 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5530$as_echo "printf" >&6; } ;; 5531 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5532$as_echo "print -r" >&6; } ;; 5533 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5534$as_echo "cat" >&6; } ;; 5535esac 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5551$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5552if ${ac_cv_path_SED+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554else 5555 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5556 for ac_i in 1 2 3 4 5 6 7; do 5557 ac_script="$ac_script$as_nl$ac_script" 5558 done 5559 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5560 { ac_script=; unset ac_script;} 5561 if test -z "$SED"; then 5562 ac_path_SED_found=false 5563 # Loop through the user's path and test for each of PROGNAME-LIST 5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_prog in sed gsed; do 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5572 as_fn_executable_p "$ac_path_SED" || continue 5573# Check for GNU ac_path_SED and select it if it is found. 5574 # Check for GNU $ac_path_SED 5575case `"$ac_path_SED" --version 2>&1` in 5576*GNU*) 5577 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5578*) 5579 ac_count=0 5580 $as_echo_n 0123456789 >"conftest.in" 5581 while : 5582 do 5583 cat "conftest.in" "conftest.in" >"conftest.tmp" 5584 mv "conftest.tmp" "conftest.in" 5585 cp "conftest.in" "conftest.nl" 5586 $as_echo '' >> "conftest.nl" 5587 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5589 as_fn_arith $ac_count + 1 && ac_count=$as_val 5590 if test $ac_count -gt ${ac_path_SED_max-0}; then 5591 # Best one so far, save it but keep looking for a better one 5592 ac_cv_path_SED="$ac_path_SED" 5593 ac_path_SED_max=$ac_count 5594 fi 5595 # 10*(2^10) chars as input seems more than enough 5596 test $ac_count -gt 10 && break 5597 done 5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5599esac 5600 5601 $ac_path_SED_found && break 3 5602 done 5603 done 5604 done 5605IFS=$as_save_IFS 5606 if test -z "$ac_cv_path_SED"; then 5607 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5608 fi 5609else 5610 ac_cv_path_SED=$SED 5611fi 5612 5613fi 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5615$as_echo "$ac_cv_path_SED" >&6; } 5616 SED="$ac_cv_path_SED" 5617 rm -f conftest.sed 5618 5619test -z "$SED" && SED=sed 5620Xsed="$SED -e 1s/^X//" 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5633$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5634if ${ac_cv_path_GREP+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 if test -z "$GREP"; then 5638 ac_path_GREP_found=false 5639 # Loop through the user's path and test for each of PROGNAME-LIST 5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5641for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5642do 5643 IFS=$as_save_IFS 5644 test -z "$as_dir" && as_dir=. 5645 for ac_prog in grep ggrep; do 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5648 as_fn_executable_p "$ac_path_GREP" || continue 5649# Check for GNU ac_path_GREP and select it if it is found. 5650 # Check for GNU $ac_path_GREP 5651case `"$ac_path_GREP" --version 2>&1` in 5652*GNU*) 5653 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5654*) 5655 ac_count=0 5656 $as_echo_n 0123456789 >"conftest.in" 5657 while : 5658 do 5659 cat "conftest.in" "conftest.in" >"conftest.tmp" 5660 mv "conftest.tmp" "conftest.in" 5661 cp "conftest.in" "conftest.nl" 5662 $as_echo 'GREP' >> "conftest.nl" 5663 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5665 as_fn_arith $ac_count + 1 && ac_count=$as_val 5666 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5667 # Best one so far, save it but keep looking for a better one 5668 ac_cv_path_GREP="$ac_path_GREP" 5669 ac_path_GREP_max=$ac_count 5670 fi 5671 # 10*(2^10) chars as input seems more than enough 5672 test $ac_count -gt 10 && break 5673 done 5674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5675esac 5676 5677 $ac_path_GREP_found && break 3 5678 done 5679 done 5680 done 5681IFS=$as_save_IFS 5682 if test -z "$ac_cv_path_GREP"; then 5683 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5684 fi 5685else 5686 ac_cv_path_GREP=$GREP 5687fi 5688 5689fi 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5691$as_echo "$ac_cv_path_GREP" >&6; } 5692 GREP="$ac_cv_path_GREP" 5693 5694 5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5696$as_echo_n "checking for egrep... " >&6; } 5697if ${ac_cv_path_EGREP+:} false; then : 5698 $as_echo_n "(cached) " >&6 5699else 5700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5701 then ac_cv_path_EGREP="$GREP -E" 5702 else 5703 if test -z "$EGREP"; then 5704 ac_path_EGREP_found=false 5705 # Loop through the user's path and test for each of PROGNAME-LIST 5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5708do 5709 IFS=$as_save_IFS 5710 test -z "$as_dir" && as_dir=. 5711 for ac_prog in egrep; do 5712 for ac_exec_ext in '' $ac_executable_extensions; do 5713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5714 as_fn_executable_p "$ac_path_EGREP" || continue 5715# Check for GNU ac_path_EGREP and select it if it is found. 5716 # Check for GNU $ac_path_EGREP 5717case `"$ac_path_EGREP" --version 2>&1` in 5718*GNU*) 5719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5720*) 5721 ac_count=0 5722 $as_echo_n 0123456789 >"conftest.in" 5723 while : 5724 do 5725 cat "conftest.in" "conftest.in" >"conftest.tmp" 5726 mv "conftest.tmp" "conftest.in" 5727 cp "conftest.in" "conftest.nl" 5728 $as_echo 'EGREP' >> "conftest.nl" 5729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5731 as_fn_arith $ac_count + 1 && ac_count=$as_val 5732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5733 # Best one so far, save it but keep looking for a better one 5734 ac_cv_path_EGREP="$ac_path_EGREP" 5735 ac_path_EGREP_max=$ac_count 5736 fi 5737 # 10*(2^10) chars as input seems more than enough 5738 test $ac_count -gt 10 && break 5739 done 5740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5741esac 5742 5743 $ac_path_EGREP_found && break 3 5744 done 5745 done 5746 done 5747IFS=$as_save_IFS 5748 if test -z "$ac_cv_path_EGREP"; then 5749 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5750 fi 5751else 5752 ac_cv_path_EGREP=$EGREP 5753fi 5754 5755 fi 5756fi 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5758$as_echo "$ac_cv_path_EGREP" >&6; } 5759 EGREP="$ac_cv_path_EGREP" 5760 5761 5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5763$as_echo_n "checking for fgrep... " >&6; } 5764if ${ac_cv_path_FGREP+:} false; then : 5765 $as_echo_n "(cached) " >&6 5766else 5767 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5768 then ac_cv_path_FGREP="$GREP -F" 5769 else 5770 if test -z "$FGREP"; then 5771 ac_path_FGREP_found=false 5772 # Loop through the user's path and test for each of PROGNAME-LIST 5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5775do 5776 IFS=$as_save_IFS 5777 test -z "$as_dir" && as_dir=. 5778 for ac_prog in fgrep; do 5779 for ac_exec_ext in '' $ac_executable_extensions; do 5780 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5781 as_fn_executable_p "$ac_path_FGREP" || continue 5782# Check for GNU ac_path_FGREP and select it if it is found. 5783 # Check for GNU $ac_path_FGREP 5784case `"$ac_path_FGREP" --version 2>&1` in 5785*GNU*) 5786 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5787*) 5788 ac_count=0 5789 $as_echo_n 0123456789 >"conftest.in" 5790 while : 5791 do 5792 cat "conftest.in" "conftest.in" >"conftest.tmp" 5793 mv "conftest.tmp" "conftest.in" 5794 cp "conftest.in" "conftest.nl" 5795 $as_echo 'FGREP' >> "conftest.nl" 5796 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5798 as_fn_arith $ac_count + 1 && ac_count=$as_val 5799 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5800 # Best one so far, save it but keep looking for a better one 5801 ac_cv_path_FGREP="$ac_path_FGREP" 5802 ac_path_FGREP_max=$ac_count 5803 fi 5804 # 10*(2^10) chars as input seems more than enough 5805 test $ac_count -gt 10 && break 5806 done 5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5808esac 5809 5810 $ac_path_FGREP_found && break 3 5811 done 5812 done 5813 done 5814IFS=$as_save_IFS 5815 if test -z "$ac_cv_path_FGREP"; then 5816 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5817 fi 5818else 5819 ac_cv_path_FGREP=$FGREP 5820fi 5821 5822 fi 5823fi 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5825$as_echo "$ac_cv_path_FGREP" >&6; } 5826 FGREP="$ac_cv_path_FGREP" 5827 5828 5829test -z "$GREP" && GREP=grep 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849# Check whether --with-gnu-ld was given. 5850if test "${with_gnu_ld+set}" = set; then : 5851 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5852else 5853 with_gnu_ld=no 5854fi 5855 5856ac_prog=ld 5857if test yes = "$GCC"; then 5858 # Check if gcc -print-prog-name=ld gives a path. 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5860$as_echo_n "checking for ld used by $CC... " >&6; } 5861 case $host in 5862 *-*-mingw*) 5863 # gcc leaves a trailing carriage return, which upsets mingw 5864 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5865 *) 5866 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5867 esac 5868 case $ac_prog in 5869 # Accept absolute paths. 5870 [\\/]* | ?:[\\/]*) 5871 re_direlt='/[^/][^/]*/\.\./' 5872 # Canonicalize the pathname of ld 5873 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5874 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5875 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5876 done 5877 test -z "$LD" && LD=$ac_prog 5878 ;; 5879 "") 5880 # If it fails, then pretend we aren't using GCC. 5881 ac_prog=ld 5882 ;; 5883 *) 5884 # If it is relative, then search for the first ld in PATH. 5885 with_gnu_ld=unknown 5886 ;; 5887 esac 5888elif test yes = "$with_gnu_ld"; then 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5890$as_echo_n "checking for GNU ld... " >&6; } 5891else 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5893$as_echo_n "checking for non-GNU ld... " >&6; } 5894fi 5895if ${lt_cv_path_LD+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 if test -z "$LD"; then 5899 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5900 for ac_dir in $PATH; do 5901 IFS=$lt_save_ifs 5902 test -z "$ac_dir" && ac_dir=. 5903 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5904 lt_cv_path_LD=$ac_dir/$ac_prog 5905 # Check to see if the program is GNU ld. I'd rather use --version, 5906 # but apparently some variants of GNU ld only accept -v. 5907 # Break only if it was the GNU/non-GNU ld that we prefer. 5908 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5909 *GNU* | *'with BFD'*) 5910 test no != "$with_gnu_ld" && break 5911 ;; 5912 *) 5913 test yes != "$with_gnu_ld" && break 5914 ;; 5915 esac 5916 fi 5917 done 5918 IFS=$lt_save_ifs 5919else 5920 lt_cv_path_LD=$LD # Let the user override the test with a path. 5921fi 5922fi 5923 5924LD=$lt_cv_path_LD 5925if test -n "$LD"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5927$as_echo "$LD" >&6; } 5928else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930$as_echo "no" >&6; } 5931fi 5932test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5934$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5935if ${lt_cv_prog_gnu_ld+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5939case `$LD -v 2>&1 </dev/null` in 5940*GNU* | *'with BFD'*) 5941 lt_cv_prog_gnu_ld=yes 5942 ;; 5943*) 5944 lt_cv_prog_gnu_ld=no 5945 ;; 5946esac 5947fi 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5949$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5950with_gnu_ld=$lt_cv_prog_gnu_ld 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5961$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5962if ${lt_cv_path_NM+:} false; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 if test -n "$NM"; then 5966 # Let the user override the test. 5967 lt_cv_path_NM=$NM 5968else 5969 lt_nm_to_check=${ac_tool_prefix}nm 5970 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5971 lt_nm_to_check="$lt_nm_to_check nm" 5972 fi 5973 for lt_tmp_nm in $lt_nm_to_check; do 5974 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5975 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5976 IFS=$lt_save_ifs 5977 test -z "$ac_dir" && ac_dir=. 5978 tmp_nm=$ac_dir/$lt_tmp_nm 5979 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5980 # Check to see if the nm accepts a BSD-compat flag. 5981 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5982 # nm: unknown option "B" ignored 5983 # Tru64's nm complains that /dev/null is an invalid object file 5984 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5985 case $build_os in 5986 mingw*) lt_bad_file=conftest.nm/nofile ;; 5987 *) lt_bad_file=/dev/null ;; 5988 esac 5989 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5990 *$lt_bad_file* | *'Invalid file or object type'*) 5991 lt_cv_path_NM="$tmp_nm -B" 5992 break 2 5993 ;; 5994 *) 5995 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5996 */dev/null*) 5997 lt_cv_path_NM="$tmp_nm -p" 5998 break 2 5999 ;; 6000 *) 6001 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6002 continue # so that we can try to find one that supports BSD flags 6003 ;; 6004 esac 6005 ;; 6006 esac 6007 fi 6008 done 6009 IFS=$lt_save_ifs 6010 done 6011 : ${lt_cv_path_NM=no} 6012fi 6013fi 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6015$as_echo "$lt_cv_path_NM" >&6; } 6016if test no != "$lt_cv_path_NM"; then 6017 NM=$lt_cv_path_NM 6018else 6019 # Didn't find any BSD compatible name lister, look for dumpbin. 6020 if test -n "$DUMPBIN"; then : 6021 # Let the user override the test. 6022 else 6023 if test -n "$ac_tool_prefix"; then 6024 for ac_prog in dumpbin "link -dump" 6025 do 6026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6027set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6029$as_echo_n "checking for $ac_word... " >&6; } 6030if ${ac_cv_prog_DUMPBIN+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 if test -n "$DUMPBIN"; then 6034 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6035else 6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6037for as_dir in $PATH 6038do 6039 IFS=$as_save_IFS 6040 test -z "$as_dir" && as_dir=. 6041 for ac_exec_ext in '' $ac_executable_extensions; do 6042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6043 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6045 break 2 6046 fi 6047done 6048 done 6049IFS=$as_save_IFS 6050 6051fi 6052fi 6053DUMPBIN=$ac_cv_prog_DUMPBIN 6054if test -n "$DUMPBIN"; then 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6056$as_echo "$DUMPBIN" >&6; } 6057else 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6059$as_echo "no" >&6; } 6060fi 6061 6062 6063 test -n "$DUMPBIN" && break 6064 done 6065fi 6066if test -z "$DUMPBIN"; then 6067 ac_ct_DUMPBIN=$DUMPBIN 6068 for ac_prog in dumpbin "link -dump" 6069do 6070 # Extract the first word of "$ac_prog", so it can be a program name with args. 6071set dummy $ac_prog; ac_word=$2 6072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6073$as_echo_n "checking for $ac_word... " >&6; } 6074if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6075 $as_echo_n "(cached) " >&6 6076else 6077 if test -n "$ac_ct_DUMPBIN"; then 6078 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6079else 6080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6081for as_dir in $PATH 6082do 6083 IFS=$as_save_IFS 6084 test -z "$as_dir" && as_dir=. 6085 for ac_exec_ext in '' $ac_executable_extensions; do 6086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6087 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6089 break 2 6090 fi 6091done 6092 done 6093IFS=$as_save_IFS 6094 6095fi 6096fi 6097ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6098if test -n "$ac_ct_DUMPBIN"; then 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6100$as_echo "$ac_ct_DUMPBIN" >&6; } 6101else 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6103$as_echo "no" >&6; } 6104fi 6105 6106 6107 test -n "$ac_ct_DUMPBIN" && break 6108done 6109 6110 if test "x$ac_ct_DUMPBIN" = x; then 6111 DUMPBIN=":" 6112 else 6113 case $cross_compiling:$ac_tool_warned in 6114yes:) 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6117ac_tool_warned=yes ;; 6118esac 6119 DUMPBIN=$ac_ct_DUMPBIN 6120 fi 6121fi 6122 6123 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6124 *COFF*) 6125 DUMPBIN="$DUMPBIN -symbols -headers" 6126 ;; 6127 *) 6128 DUMPBIN=: 6129 ;; 6130 esac 6131 fi 6132 6133 if test : != "$DUMPBIN"; then 6134 NM=$DUMPBIN 6135 fi 6136fi 6137test -z "$NM" && NM=nm 6138 6139 6140 6141 6142 6143 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6145$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6146if ${lt_cv_nm_interface+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 lt_cv_nm_interface="BSD nm" 6150 echo "int some_variable = 0;" > conftest.$ac_ext 6151 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6152 (eval "$ac_compile" 2>conftest.err) 6153 cat conftest.err >&5 6154 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6155 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6156 cat conftest.err >&5 6157 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6158 cat conftest.out >&5 6159 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6160 lt_cv_nm_interface="MS dumpbin" 6161 fi 6162 rm -f conftest* 6163fi 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6165$as_echo "$lt_cv_nm_interface" >&6; } 6166 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6168$as_echo_n "checking whether ln -s works... " >&6; } 6169LN_S=$as_ln_s 6170if test "$LN_S" = "ln -s"; then 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6172$as_echo "yes" >&6; } 6173else 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6175$as_echo "no, using $LN_S" >&6; } 6176fi 6177 6178# find the maximum length of command line arguments 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6180$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6181if ${lt_cv_sys_max_cmd_len+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 i=0 6185 teststring=ABCD 6186 6187 case $build_os in 6188 msdosdjgpp*) 6189 # On DJGPP, this test can blow up pretty badly due to problems in libc 6190 # (any single argument exceeding 2000 bytes causes a buffer overrun 6191 # during glob expansion). Even if it were fixed, the result of this 6192 # check would be larger than it should be. 6193 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6194 ;; 6195 6196 gnu*) 6197 # Under GNU Hurd, this test is not required because there is 6198 # no limit to the length of command line arguments. 6199 # Libtool will interpret -1 as no limit whatsoever 6200 lt_cv_sys_max_cmd_len=-1; 6201 ;; 6202 6203 cygwin* | mingw* | cegcc*) 6204 # On Win9x/ME, this test blows up -- it succeeds, but takes 6205 # about 5 minutes as the teststring grows exponentially. 6206 # Worse, since 9x/ME are not pre-emptively multitasking, 6207 # you end up with a "frozen" computer, even though with patience 6208 # the test eventually succeeds (with a max line length of 256k). 6209 # Instead, let's just punt: use the minimum linelength reported by 6210 # all of the supported platforms: 8192 (on NT/2K/XP). 6211 lt_cv_sys_max_cmd_len=8192; 6212 ;; 6213 6214 mint*) 6215 # On MiNT this can take a long time and run out of memory. 6216 lt_cv_sys_max_cmd_len=8192; 6217 ;; 6218 6219 amigaos*) 6220 # On AmigaOS with pdksh, this test takes hours, literally. 6221 # So we just punt and use a minimum line length of 8192. 6222 lt_cv_sys_max_cmd_len=8192; 6223 ;; 6224 6225 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6226 # This has been around since 386BSD, at least. Likely further. 6227 if test -x /sbin/sysctl; then 6228 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6229 elif test -x /usr/sbin/sysctl; then 6230 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6231 else 6232 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6233 fi 6234 # And add a safety zone 6235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6237 ;; 6238 6239 interix*) 6240 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6241 lt_cv_sys_max_cmd_len=196608 6242 ;; 6243 6244 os2*) 6245 # The test takes a long time on OS/2. 6246 lt_cv_sys_max_cmd_len=8192 6247 ;; 6248 6249 osf*) 6250 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6251 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6252 # nice to cause kernel panics so lets avoid the loop below. 6253 # First set a reasonable default. 6254 lt_cv_sys_max_cmd_len=16384 6255 # 6256 if test -x /sbin/sysconfig; then 6257 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6258 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6259 esac 6260 fi 6261 ;; 6262 sco3.2v5*) 6263 lt_cv_sys_max_cmd_len=102400 6264 ;; 6265 sysv5* | sco5v6* | sysv4.2uw2*) 6266 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6267 if test -n "$kargmax"; then 6268 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6269 else 6270 lt_cv_sys_max_cmd_len=32768 6271 fi 6272 ;; 6273 *) 6274 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6275 if test -n "$lt_cv_sys_max_cmd_len" && \ 6276 test undefined != "$lt_cv_sys_max_cmd_len"; then 6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6279 else 6280 # Make teststring a little bigger before we do anything with it. 6281 # a 1K string should be a reasonable start. 6282 for i in 1 2 3 4 5 6 7 8; do 6283 teststring=$teststring$teststring 6284 done 6285 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6286 # If test is not a shell built-in, we'll probably end up computing a 6287 # maximum length that is only half of the actual maximum length, but 6288 # we can't tell. 6289 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6290 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6291 test 17 != "$i" # 1/2 MB should be enough 6292 do 6293 i=`expr $i + 1` 6294 teststring=$teststring$teststring 6295 done 6296 # Only check the string length outside the loop. 6297 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6298 teststring= 6299 # Add a significant safety factor because C++ compilers can tack on 6300 # massive amounts of additional arguments before passing them to the 6301 # linker. It appears as though 1/2 is a usable value. 6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6303 fi 6304 ;; 6305 esac 6306 6307fi 6308 6309if test -n "$lt_cv_sys_max_cmd_len"; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6311$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6312else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6314$as_echo "none" >&6; } 6315fi 6316max_cmd_len=$lt_cv_sys_max_cmd_len 6317 6318 6319 6320 6321 6322 6323: ${CP="cp -f"} 6324: ${MV="mv -f"} 6325: ${RM="rm -f"} 6326 6327if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6328 lt_unset=unset 6329else 6330 lt_unset=false 6331fi 6332 6333 6334 6335 6336 6337# test EBCDIC or ASCII 6338case `echo X|tr X '\101'` in 6339 A) # ASCII based system 6340 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6341 lt_SP2NL='tr \040 \012' 6342 lt_NL2SP='tr \015\012 \040\040' 6343 ;; 6344 *) # EBCDIC based system 6345 lt_SP2NL='tr \100 \n' 6346 lt_NL2SP='tr \r\n \100\100' 6347 ;; 6348esac 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6359$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6360if ${lt_cv_to_host_file_cmd+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 case $host in 6364 *-*-mingw* ) 6365 case $build in 6366 *-*-mingw* ) # actually msys 6367 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6368 ;; 6369 *-*-cygwin* ) 6370 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6371 ;; 6372 * ) # otherwise, assume *nix 6373 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6374 ;; 6375 esac 6376 ;; 6377 *-*-cygwin* ) 6378 case $build in 6379 *-*-mingw* ) # actually msys 6380 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6381 ;; 6382 *-*-cygwin* ) 6383 lt_cv_to_host_file_cmd=func_convert_file_noop 6384 ;; 6385 * ) # otherwise, assume *nix 6386 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6387 ;; 6388 esac 6389 ;; 6390 * ) # unhandled hosts (and "normal" native builds) 6391 lt_cv_to_host_file_cmd=func_convert_file_noop 6392 ;; 6393esac 6394 6395fi 6396 6397to_host_file_cmd=$lt_cv_to_host_file_cmd 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6399$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6400 6401 6402 6403 6404 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6406$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6407if ${lt_cv_to_tool_file_cmd+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 #assume ordinary cross tools, or native build. 6411lt_cv_to_tool_file_cmd=func_convert_file_noop 6412case $host in 6413 *-*-mingw* ) 6414 case $build in 6415 *-*-mingw* ) # actually msys 6416 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6417 ;; 6418 esac 6419 ;; 6420esac 6421 6422fi 6423 6424to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6426$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6427 6428 6429 6430 6431 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6433$as_echo_n "checking for $LD option to reload object files... " >&6; } 6434if ${lt_cv_ld_reload_flag+:} false; then : 6435 $as_echo_n "(cached) " >&6 6436else 6437 lt_cv_ld_reload_flag='-r' 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6440$as_echo "$lt_cv_ld_reload_flag" >&6; } 6441reload_flag=$lt_cv_ld_reload_flag 6442case $reload_flag in 6443"" | " "*) ;; 6444*) reload_flag=" $reload_flag" ;; 6445esac 6446reload_cmds='$LD$reload_flag -o $output$reload_objs' 6447case $host_os in 6448 cygwin* | mingw* | pw32* | cegcc*) 6449 if test yes != "$GCC"; then 6450 reload_cmds=false 6451 fi 6452 ;; 6453 darwin*) 6454 if test yes = "$GCC"; then 6455 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6456 else 6457 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6458 fi 6459 ;; 6460esac 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470if test -n "$ac_tool_prefix"; then 6471 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6472set dummy ${ac_tool_prefix}objdump; ac_word=$2 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6474$as_echo_n "checking for $ac_word... " >&6; } 6475if ${ac_cv_prog_OBJDUMP+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 if test -n "$OBJDUMP"; then 6479 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6488 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493 done 6494IFS=$as_save_IFS 6495 6496fi 6497fi 6498OBJDUMP=$ac_cv_prog_OBJDUMP 6499if test -n "$OBJDUMP"; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6501$as_echo "$OBJDUMP" >&6; } 6502else 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6504$as_echo "no" >&6; } 6505fi 6506 6507 6508fi 6509if test -z "$ac_cv_prog_OBJDUMP"; then 6510 ac_ct_OBJDUMP=$OBJDUMP 6511 # Extract the first word of "objdump", so it can be a program name with args. 6512set dummy objdump; ac_word=$2 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6514$as_echo_n "checking for $ac_word... " >&6; } 6515if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 if test -n "$ac_ct_OBJDUMP"; then 6519 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6528 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533 done 6534IFS=$as_save_IFS 6535 6536fi 6537fi 6538ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6539if test -n "$ac_ct_OBJDUMP"; then 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6541$as_echo "$ac_ct_OBJDUMP" >&6; } 6542else 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544$as_echo "no" >&6; } 6545fi 6546 6547 if test "x$ac_ct_OBJDUMP" = x; then 6548 OBJDUMP="false" 6549 else 6550 case $cross_compiling:$ac_tool_warned in 6551yes:) 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6554ac_tool_warned=yes ;; 6555esac 6556 OBJDUMP=$ac_ct_OBJDUMP 6557 fi 6558else 6559 OBJDUMP="$ac_cv_prog_OBJDUMP" 6560fi 6561 6562test -z "$OBJDUMP" && OBJDUMP=objdump 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6573$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6574if ${lt_cv_deplibs_check_method+:} false; then : 6575 $as_echo_n "(cached) " >&6 6576else 6577 lt_cv_file_magic_cmd='$MAGIC_CMD' 6578lt_cv_file_magic_test_file= 6579lt_cv_deplibs_check_method='unknown' 6580# Need to set the preceding variable on all platforms that support 6581# interlibrary dependencies. 6582# 'none' -- dependencies not supported. 6583# 'unknown' -- same as none, but documents that we really don't know. 6584# 'pass_all' -- all dependencies passed with no checks. 6585# 'test_compile' -- check by making test program. 6586# 'file_magic [[regex]]' -- check by looking for files in library path 6587# that responds to the $file_magic_cmd with a given extended regex. 6588# If you have 'file' or equivalent on your system and you're not sure 6589# whether 'pass_all' will *always* work, you probably want this one. 6590 6591case $host_os in 6592aix[4-9]*) 6593 lt_cv_deplibs_check_method=pass_all 6594 ;; 6595 6596beos*) 6597 lt_cv_deplibs_check_method=pass_all 6598 ;; 6599 6600bsdi[45]*) 6601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6602 lt_cv_file_magic_cmd='/usr/bin/file -L' 6603 lt_cv_file_magic_test_file=/shlib/libc.so 6604 ;; 6605 6606cygwin*) 6607 # func_win32_libid is a shell function defined in ltmain.sh 6608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6609 lt_cv_file_magic_cmd='func_win32_libid' 6610 ;; 6611 6612mingw* | pw32*) 6613 # Base MSYS/MinGW do not provide the 'file' command needed by 6614 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6615 # unless we find 'file', for example because we are cross-compiling. 6616 if ( file / ) >/dev/null 2>&1; then 6617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6618 lt_cv_file_magic_cmd='func_win32_libid' 6619 else 6620 # Keep this pattern in sync with the one in func_win32_libid. 6621 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6622 lt_cv_file_magic_cmd='$OBJDUMP -f' 6623 fi 6624 ;; 6625 6626cegcc*) 6627 # use the weaker test based on 'objdump'. See mingw*. 6628 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6629 lt_cv_file_magic_cmd='$OBJDUMP -f' 6630 ;; 6631 6632darwin* | rhapsody*) 6633 lt_cv_deplibs_check_method=pass_all 6634 ;; 6635 6636freebsd* | dragonfly*) 6637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6638 case $host_cpu in 6639 i*86 ) 6640 # Not sure whether the presence of OpenBSD here was a mistake. 6641 # Let's accept both of them until this is cleared up. 6642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6643 lt_cv_file_magic_cmd=/usr/bin/file 6644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6645 ;; 6646 esac 6647 else 6648 lt_cv_deplibs_check_method=pass_all 6649 fi 6650 ;; 6651 6652haiku*) 6653 lt_cv_deplibs_check_method=pass_all 6654 ;; 6655 6656hpux10.20* | hpux11*) 6657 lt_cv_file_magic_cmd=/usr/bin/file 6658 case $host_cpu in 6659 ia64*) 6660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6662 ;; 6663 hppa*64*) 6664 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]' 6665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6666 ;; 6667 *) 6668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6669 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6670 ;; 6671 esac 6672 ;; 6673 6674interix[3-9]*) 6675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6677 ;; 6678 6679irix5* | irix6* | nonstopux*) 6680 case $LD in 6681 *-32|*"-32 ") libmagic=32-bit;; 6682 *-n32|*"-n32 ") libmagic=N32;; 6683 *-64|*"-64 ") libmagic=64-bit;; 6684 *) libmagic=never-match;; 6685 esac 6686 lt_cv_deplibs_check_method=pass_all 6687 ;; 6688 6689# This must be glibc/ELF. 6690linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6691 lt_cv_deplibs_check_method=pass_all 6692 ;; 6693 6694netbsd*) 6695 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6697 else 6698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6699 fi 6700 ;; 6701 6702newos6*) 6703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6704 lt_cv_file_magic_cmd=/usr/bin/file 6705 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6706 ;; 6707 6708*nto* | *qnx*) 6709 lt_cv_deplibs_check_method=pass_all 6710 ;; 6711 6712openbsd* | bitrig*) 6713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6715 else 6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6717 fi 6718 ;; 6719 6720osf3* | osf4* | osf5*) 6721 lt_cv_deplibs_check_method=pass_all 6722 ;; 6723 6724rdos*) 6725 lt_cv_deplibs_check_method=pass_all 6726 ;; 6727 6728solaris*) 6729 lt_cv_deplibs_check_method=pass_all 6730 ;; 6731 6732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6733 lt_cv_deplibs_check_method=pass_all 6734 ;; 6735 6736sysv4 | sysv4.3*) 6737 case $host_vendor in 6738 motorola) 6739 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]' 6740 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6741 ;; 6742 ncr) 6743 lt_cv_deplibs_check_method=pass_all 6744 ;; 6745 sequent) 6746 lt_cv_file_magic_cmd='/bin/file' 6747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6748 ;; 6749 sni) 6750 lt_cv_file_magic_cmd='/bin/file' 6751 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6752 lt_cv_file_magic_test_file=/lib/libc.so 6753 ;; 6754 siemens) 6755 lt_cv_deplibs_check_method=pass_all 6756 ;; 6757 pc) 6758 lt_cv_deplibs_check_method=pass_all 6759 ;; 6760 esac 6761 ;; 6762 6763tpf*) 6764 lt_cv_deplibs_check_method=pass_all 6765 ;; 6766os2*) 6767 lt_cv_deplibs_check_method=pass_all 6768 ;; 6769esac 6770 6771fi 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6773$as_echo "$lt_cv_deplibs_check_method" >&6; } 6774 6775file_magic_glob= 6776want_nocaseglob=no 6777if test "$build" = "$host"; then 6778 case $host_os in 6779 mingw* | pw32*) 6780 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6781 want_nocaseglob=yes 6782 else 6783 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6784 fi 6785 ;; 6786 esac 6787fi 6788 6789file_magic_cmd=$lt_cv_file_magic_cmd 6790deplibs_check_method=$lt_cv_deplibs_check_method 6791test -z "$deplibs_check_method" && deplibs_check_method=unknown 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814if test -n "$ac_tool_prefix"; then 6815 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6816set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if ${ac_cv_prog_DLLTOOL+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$DLLTOOL"; then 6823 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6832 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837 done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842DLLTOOL=$ac_cv_prog_DLLTOOL 6843if test -n "$DLLTOOL"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6845$as_echo "$DLLTOOL" >&6; } 6846else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 6852fi 6853if test -z "$ac_cv_prog_DLLTOOL"; then 6854 ac_ct_DLLTOOL=$DLLTOOL 6855 # Extract the first word of "dlltool", so it can be a program name with args. 6856set dummy dlltool; ac_word=$2 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6858$as_echo_n "checking for $ac_word... " >&6; } 6859if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 if test -n "$ac_ct_DLLTOOL"; then 6863 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6864else 6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6866for as_dir in $PATH 6867do 6868 IFS=$as_save_IFS 6869 test -z "$as_dir" && as_dir=. 6870 for ac_exec_ext in '' $ac_executable_extensions; do 6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6872 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6874 break 2 6875 fi 6876done 6877 done 6878IFS=$as_save_IFS 6879 6880fi 6881fi 6882ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6883if test -n "$ac_ct_DLLTOOL"; then 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6885$as_echo "$ac_ct_DLLTOOL" >&6; } 6886else 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6888$as_echo "no" >&6; } 6889fi 6890 6891 if test "x$ac_ct_DLLTOOL" = x; then 6892 DLLTOOL="false" 6893 else 6894 case $cross_compiling:$ac_tool_warned in 6895yes:) 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6898ac_tool_warned=yes ;; 6899esac 6900 DLLTOOL=$ac_ct_DLLTOOL 6901 fi 6902else 6903 DLLTOOL="$ac_cv_prog_DLLTOOL" 6904fi 6905 6906test -z "$DLLTOOL" && DLLTOOL=dlltool 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6918$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6919if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 lt_cv_sharedlib_from_linklib_cmd='unknown' 6923 6924case $host_os in 6925cygwin* | mingw* | pw32* | cegcc*) 6926 # two different shell functions defined in ltmain.sh; 6927 # decide which one to use based on capabilities of $DLLTOOL 6928 case `$DLLTOOL --help 2>&1` in 6929 *--identify-strict*) 6930 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6931 ;; 6932 *) 6933 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6934 ;; 6935 esac 6936 ;; 6937*) 6938 # fallback: assume linklib IS sharedlib 6939 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6940 ;; 6941esac 6942 6943fi 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6945$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6946sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6947test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6948 6949 6950 6951 6952 6953 6954 6955if test -n "$ac_tool_prefix"; then 6956 for ac_prog in ar 6957 do 6958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6959set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6961$as_echo_n "checking for $ac_word... " >&6; } 6962if ${ac_cv_prog_AR+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 if test -n "$AR"; then 6966 ac_cv_prog_AR="$AR" # Let the user override the test. 6967else 6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6969for as_dir in $PATH 6970do 6971 IFS=$as_save_IFS 6972 test -z "$as_dir" && as_dir=. 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6975 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979done 6980 done 6981IFS=$as_save_IFS 6982 6983fi 6984fi 6985AR=$ac_cv_prog_AR 6986if test -n "$AR"; then 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6988$as_echo "$AR" >&6; } 6989else 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6991$as_echo "no" >&6; } 6992fi 6993 6994 6995 test -n "$AR" && break 6996 done 6997fi 6998if test -z "$AR"; then 6999 ac_ct_AR=$AR 7000 for ac_prog in ar 7001do 7002 # Extract the first word of "$ac_prog", so it can be a program name with args. 7003set dummy $ac_prog; ac_word=$2 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005$as_echo_n "checking for $ac_word... " >&6; } 7006if ${ac_cv_prog_ac_ct_AR+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008else 7009 if test -n "$ac_ct_AR"; then 7010 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7011else 7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013for as_dir in $PATH 7014do 7015 IFS=$as_save_IFS 7016 test -z "$as_dir" && as_dir=. 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7019 ac_cv_prog_ac_ct_AR="$ac_prog" 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023done 7024 done 7025IFS=$as_save_IFS 7026 7027fi 7028fi 7029ac_ct_AR=$ac_cv_prog_ac_ct_AR 7030if test -n "$ac_ct_AR"; then 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7032$as_echo "$ac_ct_AR" >&6; } 7033else 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7035$as_echo "no" >&6; } 7036fi 7037 7038 7039 test -n "$ac_ct_AR" && break 7040done 7041 7042 if test "x$ac_ct_AR" = x; then 7043 AR="false" 7044 else 7045 case $cross_compiling:$ac_tool_warned in 7046yes:) 7047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7049ac_tool_warned=yes ;; 7050esac 7051 AR=$ac_ct_AR 7052 fi 7053fi 7054 7055: ${AR=ar} 7056: ${AR_FLAGS=cru} 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7069$as_echo_n "checking for archiver @FILE support... " >&6; } 7070if ${lt_cv_ar_at_file+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 lt_cv_ar_at_file=no 7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7075/* end confdefs.h. */ 7076 7077int 7078main () 7079{ 7080 7081 ; 7082 return 0; 7083} 7084_ACEOF 7085if ac_fn_c_try_compile "$LINENO"; then : 7086 echo conftest.$ac_objext > conftest.lst 7087 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7089 (eval $lt_ar_try) 2>&5 7090 ac_status=$? 7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7092 test $ac_status = 0; } 7093 if test 0 -eq "$ac_status"; then 7094 # Ensure the archiver fails upon bogus file names. 7095 rm -f conftest.$ac_objext libconftest.a 7096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7097 (eval $lt_ar_try) 2>&5 7098 ac_status=$? 7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7100 test $ac_status = 0; } 7101 if test 0 -ne "$ac_status"; then 7102 lt_cv_ar_at_file=@ 7103 fi 7104 fi 7105 rm -f conftest.* libconftest.a 7106 7107fi 7108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7109 7110fi 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7112$as_echo "$lt_cv_ar_at_file" >&6; } 7113 7114if test no = "$lt_cv_ar_at_file"; then 7115 archiver_list_spec= 7116else 7117 archiver_list_spec=$lt_cv_ar_at_file 7118fi 7119 7120 7121 7122 7123 7124 7125 7126if test -n "$ac_tool_prefix"; then 7127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7128set dummy ${ac_tool_prefix}strip; ac_word=$2 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130$as_echo_n "checking for $ac_word... " >&6; } 7131if ${ac_cv_prog_STRIP+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 if test -n "$STRIP"; then 7135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7144 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi 7153fi 7154STRIP=$ac_cv_prog_STRIP 7155if test -n "$STRIP"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7157$as_echo "$STRIP" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160$as_echo "no" >&6; } 7161fi 7162 7163 7164fi 7165if test -z "$ac_cv_prog_STRIP"; then 7166 ac_ct_STRIP=$STRIP 7167 # Extract the first word of "strip", so it can be a program name with args. 7168set dummy strip; ac_word=$2 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7170$as_echo_n "checking for $ac_word... " >&6; } 7171if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 if test -n "$ac_ct_STRIP"; then 7175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7176else 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7184 ac_cv_prog_ac_ct_STRIP="strip" 7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189 done 7190IFS=$as_save_IFS 7191 7192fi 7193fi 7194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7195if test -n "$ac_ct_STRIP"; then 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7197$as_echo "$ac_ct_STRIP" >&6; } 7198else 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7200$as_echo "no" >&6; } 7201fi 7202 7203 if test "x$ac_ct_STRIP" = x; then 7204 STRIP=":" 7205 else 7206 case $cross_compiling:$ac_tool_warned in 7207yes:) 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7210ac_tool_warned=yes ;; 7211esac 7212 STRIP=$ac_ct_STRIP 7213 fi 7214else 7215 STRIP="$ac_cv_prog_STRIP" 7216fi 7217 7218test -z "$STRIP" && STRIP=: 7219 7220 7221 7222 7223 7224 7225if test -n "$ac_tool_prefix"; then 7226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7227set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229$as_echo_n "checking for $ac_word... " >&6; } 7230if ${ac_cv_prog_RANLIB+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 if test -n "$RANLIB"; then 7234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7235else 7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237for as_dir in $PATH 7238do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247done 7248 done 7249IFS=$as_save_IFS 7250 7251fi 7252fi 7253RANLIB=$ac_cv_prog_RANLIB 7254if test -n "$RANLIB"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7256$as_echo "$RANLIB" >&6; } 7257else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259$as_echo "no" >&6; } 7260fi 7261 7262 7263fi 7264if test -z "$ac_cv_prog_RANLIB"; then 7265 ac_ct_RANLIB=$RANLIB 7266 # Extract the first word of "ranlib", so it can be a program name with args. 7267set dummy ranlib; ac_word=$2 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7269$as_echo_n "checking for $ac_word... " >&6; } 7270if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 if test -n "$ac_ct_RANLIB"; then 7274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7275else 7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277for as_dir in $PATH 7278do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7283 ac_cv_prog_ac_ct_RANLIB="ranlib" 7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288 done 7289IFS=$as_save_IFS 7290 7291fi 7292fi 7293ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7294if test -n "$ac_ct_RANLIB"; then 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7296$as_echo "$ac_ct_RANLIB" >&6; } 7297else 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7299$as_echo "no" >&6; } 7300fi 7301 7302 if test "x$ac_ct_RANLIB" = x; then 7303 RANLIB=":" 7304 else 7305 case $cross_compiling:$ac_tool_warned in 7306yes:) 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7309ac_tool_warned=yes ;; 7310esac 7311 RANLIB=$ac_ct_RANLIB 7312 fi 7313else 7314 RANLIB="$ac_cv_prog_RANLIB" 7315fi 7316 7317test -z "$RANLIB" && RANLIB=: 7318 7319 7320 7321 7322 7323 7324# Determine commands to create old-style static archives. 7325old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7326old_postinstall_cmds='chmod 644 $oldlib' 7327old_postuninstall_cmds= 7328 7329if test -n "$RANLIB"; then 7330 case $host_os in 7331 bitrig* | openbsd*) 7332 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7333 ;; 7334 *) 7335 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7336 ;; 7337 esac 7338 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7339fi 7340 7341case $host_os in 7342 darwin*) 7343 lock_old_archive_extraction=yes ;; 7344 *) 7345 lock_old_archive_extraction=no ;; 7346esac 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386# If no C compiler was specified, use CC. 7387LTCC=${LTCC-"$CC"} 7388 7389# If no C compiler flags were specified, use CFLAGS. 7390LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7391 7392# Allow CC to be a program name with arguments. 7393compiler=$CC 7394 7395 7396# Check for command to grab the raw symbol name followed by C symbol from nm. 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7398$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7399if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 7403# These are sane defaults that work on at least a few old systems. 7404# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7405 7406# Character class describing NM global symbol codes. 7407symcode='[BCDEGRST]' 7408 7409# Regexp to match symbols that can be accessed directly from C. 7410sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7411 7412# Define system-specific variables. 7413case $host_os in 7414aix*) 7415 symcode='[BCDT]' 7416 ;; 7417cygwin* | mingw* | pw32* | cegcc*) 7418 symcode='[ABCDGISTW]' 7419 ;; 7420hpux*) 7421 if test ia64 = "$host_cpu"; then 7422 symcode='[ABCDEGRST]' 7423 fi 7424 ;; 7425irix* | nonstopux*) 7426 symcode='[BCDEGRST]' 7427 ;; 7428osf*) 7429 symcode='[BCDEGQRST]' 7430 ;; 7431solaris*) 7432 symcode='[BDRT]' 7433 ;; 7434sco3.2v5*) 7435 symcode='[DT]' 7436 ;; 7437sysv4.2uw2*) 7438 symcode='[DT]' 7439 ;; 7440sysv5* | sco5v6* | unixware* | OpenUNIX*) 7441 symcode='[ABDT]' 7442 ;; 7443sysv4) 7444 symcode='[DFNSTU]' 7445 ;; 7446esac 7447 7448# If we're using GNU nm, then use its standard symbol codes. 7449case `$NM -V 2>&1` in 7450*GNU* | *'with BFD'*) 7451 symcode='[ABCDGIRSTW]' ;; 7452esac 7453 7454if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7455 # Gets list of data symbols to import. 7456 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7457 # Adjust the below global symbol transforms to fixup imported variables. 7458 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7459 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7460 lt_c_name_lib_hook="\ 7461 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7462 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7463else 7464 # Disable hooks by default. 7465 lt_cv_sys_global_symbol_to_import= 7466 lt_cdecl_hook= 7467 lt_c_name_hook= 7468 lt_c_name_lib_hook= 7469fi 7470 7471# Transform an extracted symbol line into a proper C declaration. 7472# Some systems (esp. on ia64) link data and code symbols differently, 7473# so use this general approach. 7474lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7475$lt_cdecl_hook\ 7476" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7477" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7478 7479# Transform an extracted symbol line into symbol name and symbol address 7480lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7481$lt_c_name_hook\ 7482" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7483" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7484 7485# Transform an extracted symbol line into symbol name with lib prefix and 7486# symbol address. 7487lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7488$lt_c_name_lib_hook\ 7489" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7490" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7491" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7492 7493# Handle CRLF in mingw tool chain 7494opt_cr= 7495case $build_os in 7496mingw*) 7497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7498 ;; 7499esac 7500 7501# Try without a prefix underscore, then with it. 7502for ac_symprfx in "" "_"; do 7503 7504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7505 symxfrm="\\1 $ac_symprfx\\2 \\2" 7506 7507 # Write the raw and C identifiers. 7508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7509 # Fake it for dumpbin and say T for any non-static function, 7510 # D for any global variable and I for any imported variable. 7511 # Also find C++ and __fastcall symbols from MSVC++, 7512 # which start with @ or ?. 7513 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7514" {last_section=section; section=\$ 3};"\ 7515" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7516" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7517" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7518" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7519" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7520" \$ 0!~/External *\|/{next};"\ 7521" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7522" {if(hide[section]) next};"\ 7523" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7524" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7525" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7526" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7527" ' prfx=^$ac_symprfx" 7528 else 7529 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7530 fi 7531 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7532 7533 # Check to see that the pipe works correctly. 7534 pipe_works=no 7535 7536 rm -f conftest* 7537 cat > conftest.$ac_ext <<_LT_EOF 7538#ifdef __cplusplus 7539extern "C" { 7540#endif 7541char nm_test_var; 7542void nm_test_func(void); 7543void nm_test_func(void){} 7544#ifdef __cplusplus 7545} 7546#endif 7547int main(){nm_test_var='a';nm_test_func();return(0);} 7548_LT_EOF 7549 7550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7551 (eval $ac_compile) 2>&5 7552 ac_status=$? 7553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7554 test $ac_status = 0; }; then 7555 # Now try to grab the symbols. 7556 nlist=conftest.nm 7557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7558 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7559 ac_status=$? 7560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7561 test $ac_status = 0; } && test -s "$nlist"; then 7562 # Try sorting and uniquifying the output. 7563 if sort "$nlist" | uniq > "$nlist"T; then 7564 mv -f "$nlist"T "$nlist" 7565 else 7566 rm -f "$nlist"T 7567 fi 7568 7569 # Make sure that we snagged all the symbols we need. 7570 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7571 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7572 cat <<_LT_EOF > conftest.$ac_ext 7573/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7574#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7575/* DATA imports from DLLs on WIN32 can't be const, because runtime 7576 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7577# define LT_DLSYM_CONST 7578#elif defined __osf__ 7579/* This system does not cope well with relocations in const data. */ 7580# define LT_DLSYM_CONST 7581#else 7582# define LT_DLSYM_CONST const 7583#endif 7584 7585#ifdef __cplusplus 7586extern "C" { 7587#endif 7588 7589_LT_EOF 7590 # Now generate the symbol file. 7591 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7592 7593 cat <<_LT_EOF >> conftest.$ac_ext 7594 7595/* The mapping between symbol names and symbols. */ 7596LT_DLSYM_CONST struct { 7597 const char *name; 7598 void *address; 7599} 7600lt__PROGRAM__LTX_preloaded_symbols[] = 7601{ 7602 { "@PROGRAM@", (void *) 0 }, 7603_LT_EOF 7604 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7605 cat <<\_LT_EOF >> conftest.$ac_ext 7606 {0, (void *) 0} 7607}; 7608 7609/* This works around a problem in FreeBSD linker */ 7610#ifdef FREEBSD_WORKAROUND 7611static const void *lt_preloaded_setup() { 7612 return lt__PROGRAM__LTX_preloaded_symbols; 7613} 7614#endif 7615 7616#ifdef __cplusplus 7617} 7618#endif 7619_LT_EOF 7620 # Now try linking the two files. 7621 mv conftest.$ac_objext conftstm.$ac_objext 7622 lt_globsym_save_LIBS=$LIBS 7623 lt_globsym_save_CFLAGS=$CFLAGS 7624 LIBS=conftstm.$ac_objext 7625 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7627 (eval $ac_link) 2>&5 7628 ac_status=$? 7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7630 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7631 pipe_works=yes 7632 fi 7633 LIBS=$lt_globsym_save_LIBS 7634 CFLAGS=$lt_globsym_save_CFLAGS 7635 else 7636 echo "cannot find nm_test_func in $nlist" >&5 7637 fi 7638 else 7639 echo "cannot find nm_test_var in $nlist" >&5 7640 fi 7641 else 7642 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7643 fi 7644 else 7645 echo "$progname: failed program was:" >&5 7646 cat conftest.$ac_ext >&5 7647 fi 7648 rm -rf conftest* conftst* 7649 7650 # Do not use the global_symbol_pipe unless it works. 7651 if test yes = "$pipe_works"; then 7652 break 7653 else 7654 lt_cv_sys_global_symbol_pipe= 7655 fi 7656done 7657 7658fi 7659 7660if test -z "$lt_cv_sys_global_symbol_pipe"; then 7661 lt_cv_sys_global_symbol_to_cdecl= 7662fi 7663if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7665$as_echo "failed" >&6; } 7666else 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7668$as_echo "ok" >&6; } 7669fi 7670 7671# Response file support. 7672if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7673 nm_file_list_spec='@' 7674elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7675 nm_file_list_spec='@' 7676fi 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7715$as_echo_n "checking for sysroot... " >&6; } 7716 7717# Check whether --with-sysroot was given. 7718if test "${with_sysroot+set}" = set; then : 7719 withval=$with_sysroot; 7720else 7721 with_sysroot=no 7722fi 7723 7724 7725lt_sysroot= 7726case $with_sysroot in #( 7727 yes) 7728 if test yes = "$GCC"; then 7729 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7730 fi 7731 ;; #( 7732 /*) 7733 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7734 ;; #( 7735 no|'') 7736 ;; #( 7737 *) 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7739$as_echo "$with_sysroot" >&6; } 7740 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7741 ;; 7742esac 7743 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7745$as_echo "${lt_sysroot:-no}" >&6; } 7746 7747 7748 7749 7750 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7752$as_echo_n "checking for a working dd... " >&6; } 7753if ${ac_cv_path_lt_DD+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 printf 0123456789abcdef0123456789abcdef >conftest.i 7757cat conftest.i conftest.i >conftest2.i 7758: ${lt_DD:=$DD} 7759if test -z "$lt_DD"; then 7760 ac_path_lt_DD_found=false 7761 # Loop through the user's path and test for each of PROGNAME-LIST 7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7763for as_dir in $PATH 7764do 7765 IFS=$as_save_IFS 7766 test -z "$as_dir" && as_dir=. 7767 for ac_prog in dd; do 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7770 as_fn_executable_p "$ac_path_lt_DD" || continue 7771if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7772 cmp -s conftest.i conftest.out \ 7773 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7774fi 7775 $ac_path_lt_DD_found && break 3 7776 done 7777 done 7778 done 7779IFS=$as_save_IFS 7780 if test -z "$ac_cv_path_lt_DD"; then 7781 : 7782 fi 7783else 7784 ac_cv_path_lt_DD=$lt_DD 7785fi 7786 7787rm -f conftest.i conftest2.i conftest.out 7788fi 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7790$as_echo "$ac_cv_path_lt_DD" >&6; } 7791 7792 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7794$as_echo_n "checking how to truncate binary pipes... " >&6; } 7795if ${lt_cv_truncate_bin+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 printf 0123456789abcdef0123456789abcdef >conftest.i 7799cat conftest.i conftest.i >conftest2.i 7800lt_cv_truncate_bin= 7801if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7802 cmp -s conftest.i conftest.out \ 7803 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7804fi 7805rm -f conftest.i conftest2.i conftest.out 7806test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7807fi 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7809$as_echo "$lt_cv_truncate_bin" >&6; } 7810 7811 7812 7813 7814 7815 7816 7817# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7818func_cc_basename () 7819{ 7820 for cc_temp in $*""; do 7821 case $cc_temp in 7822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7824 \-*) ;; 7825 *) break;; 7826 esac 7827 done 7828 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7829} 7830 7831# Check whether --enable-libtool-lock was given. 7832if test "${enable_libtool_lock+set}" = set; then : 7833 enableval=$enable_libtool_lock; 7834fi 7835 7836test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7837 7838# Some flags need to be propagated to the compiler or linker for good 7839# libtool support. 7840case $host in 7841ia64-*-hpux*) 7842 # Find out what ABI is being produced by ac_compile, and set mode 7843 # options accordingly. 7844 echo 'int i;' > conftest.$ac_ext 7845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7846 (eval $ac_compile) 2>&5 7847 ac_status=$? 7848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7849 test $ac_status = 0; }; then 7850 case `/usr/bin/file conftest.$ac_objext` in 7851 *ELF-32*) 7852 HPUX_IA64_MODE=32 7853 ;; 7854 *ELF-64*) 7855 HPUX_IA64_MODE=64 7856 ;; 7857 esac 7858 fi 7859 rm -rf conftest* 7860 ;; 7861*-*-irix6*) 7862 # Find out what ABI is being produced by ac_compile, and set linker 7863 # options accordingly. 7864 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7866 (eval $ac_compile) 2>&5 7867 ac_status=$? 7868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7869 test $ac_status = 0; }; then 7870 if test yes = "$lt_cv_prog_gnu_ld"; then 7871 case `/usr/bin/file conftest.$ac_objext` in 7872 *32-bit*) 7873 LD="${LD-ld} -melf32bsmip" 7874 ;; 7875 *N32*) 7876 LD="${LD-ld} -melf32bmipn32" 7877 ;; 7878 *64-bit*) 7879 LD="${LD-ld} -melf64bmip" 7880 ;; 7881 esac 7882 else 7883 case `/usr/bin/file conftest.$ac_objext` in 7884 *32-bit*) 7885 LD="${LD-ld} -32" 7886 ;; 7887 *N32*) 7888 LD="${LD-ld} -n32" 7889 ;; 7890 *64-bit*) 7891 LD="${LD-ld} -64" 7892 ;; 7893 esac 7894 fi 7895 fi 7896 rm -rf conftest* 7897 ;; 7898 7899mips64*-*linux*) 7900 # Find out what ABI is being produced by ac_compile, and set linker 7901 # options accordingly. 7902 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7904 (eval $ac_compile) 2>&5 7905 ac_status=$? 7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7907 test $ac_status = 0; }; then 7908 emul=elf 7909 case `/usr/bin/file conftest.$ac_objext` in 7910 *32-bit*) 7911 emul="${emul}32" 7912 ;; 7913 *64-bit*) 7914 emul="${emul}64" 7915 ;; 7916 esac 7917 case `/usr/bin/file conftest.$ac_objext` in 7918 *MSB*) 7919 emul="${emul}btsmip" 7920 ;; 7921 *LSB*) 7922 emul="${emul}ltsmip" 7923 ;; 7924 esac 7925 case `/usr/bin/file conftest.$ac_objext` in 7926 *N32*) 7927 emul="${emul}n32" 7928 ;; 7929 esac 7930 LD="${LD-ld} -m $emul" 7931 fi 7932 rm -rf conftest* 7933 ;; 7934 7935x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7936s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7937 # Find out what ABI is being produced by ac_compile, and set linker 7938 # options accordingly. Note that the listed cases only cover the 7939 # situations where additional linker options are needed (such as when 7940 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7941 # vice versa); the common cases where no linker options are needed do 7942 # not appear in the list. 7943 echo 'int i;' > conftest.$ac_ext 7944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7945 (eval $ac_compile) 2>&5 7946 ac_status=$? 7947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7948 test $ac_status = 0; }; then 7949 case `/usr/bin/file conftest.o` in 7950 *32-bit*) 7951 case $host in 7952 x86_64-*kfreebsd*-gnu) 7953 LD="${LD-ld} -m elf_i386_fbsd" 7954 ;; 7955 x86_64-*linux*) 7956 case `/usr/bin/file conftest.o` in 7957 *x86-64*) 7958 LD="${LD-ld} -m elf32_x86_64" 7959 ;; 7960 *) 7961 LD="${LD-ld} -m elf_i386" 7962 ;; 7963 esac 7964 ;; 7965 powerpc64le-*linux*) 7966 LD="${LD-ld} -m elf32lppclinux" 7967 ;; 7968 powerpc64-*linux*) 7969 LD="${LD-ld} -m elf32ppclinux" 7970 ;; 7971 s390x-*linux*) 7972 LD="${LD-ld} -m elf_s390" 7973 ;; 7974 sparc64-*linux*) 7975 LD="${LD-ld} -m elf32_sparc" 7976 ;; 7977 esac 7978 ;; 7979 *64-bit*) 7980 case $host in 7981 x86_64-*kfreebsd*-gnu) 7982 LD="${LD-ld} -m elf_x86_64_fbsd" 7983 ;; 7984 x86_64-*linux*) 7985 LD="${LD-ld} -m elf_x86_64" 7986 ;; 7987 powerpcle-*linux*) 7988 LD="${LD-ld} -m elf64lppc" 7989 ;; 7990 powerpc-*linux*) 7991 LD="${LD-ld} -m elf64ppc" 7992 ;; 7993 s390*-*linux*|s390*-*tpf*) 7994 LD="${LD-ld} -m elf64_s390" 7995 ;; 7996 sparc*-*linux*) 7997 LD="${LD-ld} -m elf64_sparc" 7998 ;; 7999 esac 8000 ;; 8001 esac 8002 fi 8003 rm -rf conftest* 8004 ;; 8005 8006*-*-sco3.2v5*) 8007 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8008 SAVE_CFLAGS=$CFLAGS 8009 CFLAGS="$CFLAGS -belf" 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8011$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8012if ${lt_cv_cc_needs_belf+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 ac_ext=c 8016ac_cpp='$CPP $CPPFLAGS' 8017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8019ac_compiler_gnu=$ac_cv_c_compiler_gnu 8020 8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8022/* end confdefs.h. */ 8023 8024int 8025main () 8026{ 8027 8028 ; 8029 return 0; 8030} 8031_ACEOF 8032if ac_fn_c_try_link "$LINENO"; then : 8033 lt_cv_cc_needs_belf=yes 8034else 8035 lt_cv_cc_needs_belf=no 8036fi 8037rm -f core conftest.err conftest.$ac_objext \ 8038 conftest$ac_exeext conftest.$ac_ext 8039 ac_ext=c 8040ac_cpp='$CPP $CPPFLAGS' 8041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8043ac_compiler_gnu=$ac_cv_c_compiler_gnu 8044 8045fi 8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8047$as_echo "$lt_cv_cc_needs_belf" >&6; } 8048 if test yes != "$lt_cv_cc_needs_belf"; then 8049 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8050 CFLAGS=$SAVE_CFLAGS 8051 fi 8052 ;; 8053*-*solaris*) 8054 # Find out what ABI is being produced by ac_compile, and set linker 8055 # options accordingly. 8056 echo 'int i;' > conftest.$ac_ext 8057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8058 (eval $ac_compile) 2>&5 8059 ac_status=$? 8060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8061 test $ac_status = 0; }; then 8062 case `/usr/bin/file conftest.o` in 8063 *64-bit*) 8064 case $lt_cv_prog_gnu_ld in 8065 yes*) 8066 case $host in 8067 i?86-*-solaris*|x86_64-*-solaris*) 8068 LD="${LD-ld} -m elf_x86_64" 8069 ;; 8070 sparc*-*-solaris*) 8071 LD="${LD-ld} -m elf64_sparc" 8072 ;; 8073 esac 8074 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8075 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8076 LD=${LD-ld}_sol2 8077 fi 8078 ;; 8079 *) 8080 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8081 LD="${LD-ld} -64" 8082 fi 8083 ;; 8084 esac 8085 ;; 8086 esac 8087 fi 8088 rm -rf conftest* 8089 ;; 8090esac 8091 8092need_locks=$enable_libtool_lock 8093 8094if test -n "$ac_tool_prefix"; then 8095 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8096set dummy ${ac_tool_prefix}mt; ac_word=$2 8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8098$as_echo_n "checking for $ac_word... " >&6; } 8099if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 if test -n "$MANIFEST_TOOL"; then 8103 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8104else 8105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8106for as_dir in $PATH 8107do 8108 IFS=$as_save_IFS 8109 test -z "$as_dir" && as_dir=. 8110 for ac_exec_ext in '' $ac_executable_extensions; do 8111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8112 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8114 break 2 8115 fi 8116done 8117 done 8118IFS=$as_save_IFS 8119 8120fi 8121fi 8122MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8123if test -n "$MANIFEST_TOOL"; then 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8125$as_echo "$MANIFEST_TOOL" >&6; } 8126else 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8128$as_echo "no" >&6; } 8129fi 8130 8131 8132fi 8133if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8134 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8135 # Extract the first word of "mt", so it can be a program name with args. 8136set dummy mt; ac_word=$2 8137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8138$as_echo_n "checking for $ac_word... " >&6; } 8139if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8140 $as_echo_n "(cached) " >&6 8141else 8142 if test -n "$ac_ct_MANIFEST_TOOL"; then 8143 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8144else 8145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8146for as_dir in $PATH 8147do 8148 IFS=$as_save_IFS 8149 test -z "$as_dir" && as_dir=. 8150 for ac_exec_ext in '' $ac_executable_extensions; do 8151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8152 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8154 break 2 8155 fi 8156done 8157 done 8158IFS=$as_save_IFS 8159 8160fi 8161fi 8162ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8163if test -n "$ac_ct_MANIFEST_TOOL"; then 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8165$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8166else 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8168$as_echo "no" >&6; } 8169fi 8170 8171 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8172 MANIFEST_TOOL=":" 8173 else 8174 case $cross_compiling:$ac_tool_warned in 8175yes:) 8176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8178ac_tool_warned=yes ;; 8179esac 8180 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8181 fi 8182else 8183 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8184fi 8185 8186test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8188$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8189if ${lt_cv_path_mainfest_tool+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191else 8192 lt_cv_path_mainfest_tool=no 8193 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8194 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8195 cat conftest.err >&5 8196 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8197 lt_cv_path_mainfest_tool=yes 8198 fi 8199 rm -f conftest* 8200fi 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8202$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8203if test yes != "$lt_cv_path_mainfest_tool"; then 8204 MANIFEST_TOOL=: 8205fi 8206 8207 8208 8209 8210 8211 8212 case $host_os in 8213 rhapsody* | darwin*) 8214 if test -n "$ac_tool_prefix"; then 8215 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8216set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8218$as_echo_n "checking for $ac_word... " >&6; } 8219if ${ac_cv_prog_DSYMUTIL+:} false; then : 8220 $as_echo_n "(cached) " >&6 8221else 8222 if test -n "$DSYMUTIL"; then 8223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8224else 8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8226for as_dir in $PATH 8227do 8228 IFS=$as_save_IFS 8229 test -z "$as_dir" && as_dir=. 8230 for ac_exec_ext in '' $ac_executable_extensions; do 8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8232 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8234 break 2 8235 fi 8236done 8237 done 8238IFS=$as_save_IFS 8239 8240fi 8241fi 8242DSYMUTIL=$ac_cv_prog_DSYMUTIL 8243if test -n "$DSYMUTIL"; then 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8245$as_echo "$DSYMUTIL" >&6; } 8246else 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8248$as_echo "no" >&6; } 8249fi 8250 8251 8252fi 8253if test -z "$ac_cv_prog_DSYMUTIL"; then 8254 ac_ct_DSYMUTIL=$DSYMUTIL 8255 # Extract the first word of "dsymutil", so it can be a program name with args. 8256set dummy dsymutil; ac_word=$2 8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8258$as_echo_n "checking for $ac_word... " >&6; } 8259if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8260 $as_echo_n "(cached) " >&6 8261else 8262 if test -n "$ac_ct_DSYMUTIL"; then 8263 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8264else 8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8266for as_dir in $PATH 8267do 8268 IFS=$as_save_IFS 8269 test -z "$as_dir" && as_dir=. 8270 for ac_exec_ext in '' $ac_executable_extensions; do 8271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8272 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8274 break 2 8275 fi 8276done 8277 done 8278IFS=$as_save_IFS 8279 8280fi 8281fi 8282ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8283if test -n "$ac_ct_DSYMUTIL"; then 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8285$as_echo "$ac_ct_DSYMUTIL" >&6; } 8286else 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8288$as_echo "no" >&6; } 8289fi 8290 8291 if test "x$ac_ct_DSYMUTIL" = x; then 8292 DSYMUTIL=":" 8293 else 8294 case $cross_compiling:$ac_tool_warned in 8295yes:) 8296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8298ac_tool_warned=yes ;; 8299esac 8300 DSYMUTIL=$ac_ct_DSYMUTIL 8301 fi 8302else 8303 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8304fi 8305 8306 if test -n "$ac_tool_prefix"; then 8307 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8308set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8310$as_echo_n "checking for $ac_word... " >&6; } 8311if ${ac_cv_prog_NMEDIT+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 if test -n "$NMEDIT"; then 8315 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8316else 8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8318for as_dir in $PATH 8319do 8320 IFS=$as_save_IFS 8321 test -z "$as_dir" && as_dir=. 8322 for ac_exec_ext in '' $ac_executable_extensions; do 8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8324 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8326 break 2 8327 fi 8328done 8329 done 8330IFS=$as_save_IFS 8331 8332fi 8333fi 8334NMEDIT=$ac_cv_prog_NMEDIT 8335if test -n "$NMEDIT"; then 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8337$as_echo "$NMEDIT" >&6; } 8338else 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8340$as_echo "no" >&6; } 8341fi 8342 8343 8344fi 8345if test -z "$ac_cv_prog_NMEDIT"; then 8346 ac_ct_NMEDIT=$NMEDIT 8347 # Extract the first word of "nmedit", so it can be a program name with args. 8348set dummy nmedit; ac_word=$2 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8350$as_echo_n "checking for $ac_word... " >&6; } 8351if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353else 8354 if test -n "$ac_ct_NMEDIT"; then 8355 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8356else 8357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8358for as_dir in $PATH 8359do 8360 IFS=$as_save_IFS 8361 test -z "$as_dir" && as_dir=. 8362 for ac_exec_ext in '' $ac_executable_extensions; do 8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8364 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8366 break 2 8367 fi 8368done 8369 done 8370IFS=$as_save_IFS 8371 8372fi 8373fi 8374ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8375if test -n "$ac_ct_NMEDIT"; then 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8377$as_echo "$ac_ct_NMEDIT" >&6; } 8378else 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8380$as_echo "no" >&6; } 8381fi 8382 8383 if test "x$ac_ct_NMEDIT" = x; then 8384 NMEDIT=":" 8385 else 8386 case $cross_compiling:$ac_tool_warned in 8387yes:) 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8390ac_tool_warned=yes ;; 8391esac 8392 NMEDIT=$ac_ct_NMEDIT 8393 fi 8394else 8395 NMEDIT="$ac_cv_prog_NMEDIT" 8396fi 8397 8398 if test -n "$ac_tool_prefix"; then 8399 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8400set dummy ${ac_tool_prefix}lipo; ac_word=$2 8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8402$as_echo_n "checking for $ac_word... " >&6; } 8403if ${ac_cv_prog_LIPO+:} false; then : 8404 $as_echo_n "(cached) " >&6 8405else 8406 if test -n "$LIPO"; then 8407 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8408else 8409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8410for as_dir in $PATH 8411do 8412 IFS=$as_save_IFS 8413 test -z "$as_dir" && as_dir=. 8414 for ac_exec_ext in '' $ac_executable_extensions; do 8415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8416 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8418 break 2 8419 fi 8420done 8421 done 8422IFS=$as_save_IFS 8423 8424fi 8425fi 8426LIPO=$ac_cv_prog_LIPO 8427if test -n "$LIPO"; then 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8429$as_echo "$LIPO" >&6; } 8430else 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8432$as_echo "no" >&6; } 8433fi 8434 8435 8436fi 8437if test -z "$ac_cv_prog_LIPO"; then 8438 ac_ct_LIPO=$LIPO 8439 # Extract the first word of "lipo", so it can be a program name with args. 8440set dummy lipo; ac_word=$2 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8442$as_echo_n "checking for $ac_word... " >&6; } 8443if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8444 $as_echo_n "(cached) " >&6 8445else 8446 if test -n "$ac_ct_LIPO"; then 8447 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8448else 8449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8450for as_dir in $PATH 8451do 8452 IFS=$as_save_IFS 8453 test -z "$as_dir" && as_dir=. 8454 for ac_exec_ext in '' $ac_executable_extensions; do 8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8456 ac_cv_prog_ac_ct_LIPO="lipo" 8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8458 break 2 8459 fi 8460done 8461 done 8462IFS=$as_save_IFS 8463 8464fi 8465fi 8466ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8467if test -n "$ac_ct_LIPO"; then 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8469$as_echo "$ac_ct_LIPO" >&6; } 8470else 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8472$as_echo "no" >&6; } 8473fi 8474 8475 if test "x$ac_ct_LIPO" = x; then 8476 LIPO=":" 8477 else 8478 case $cross_compiling:$ac_tool_warned in 8479yes:) 8480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8482ac_tool_warned=yes ;; 8483esac 8484 LIPO=$ac_ct_LIPO 8485 fi 8486else 8487 LIPO="$ac_cv_prog_LIPO" 8488fi 8489 8490 if test -n "$ac_tool_prefix"; then 8491 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8492set dummy ${ac_tool_prefix}otool; ac_word=$2 8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8494$as_echo_n "checking for $ac_word... " >&6; } 8495if ${ac_cv_prog_OTOOL+:} false; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 if test -n "$OTOOL"; then 8499 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8500else 8501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8502for as_dir in $PATH 8503do 8504 IFS=$as_save_IFS 8505 test -z "$as_dir" && as_dir=. 8506 for ac_exec_ext in '' $ac_executable_extensions; do 8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8508 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8510 break 2 8511 fi 8512done 8513 done 8514IFS=$as_save_IFS 8515 8516fi 8517fi 8518OTOOL=$ac_cv_prog_OTOOL 8519if test -n "$OTOOL"; then 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8521$as_echo "$OTOOL" >&6; } 8522else 8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8524$as_echo "no" >&6; } 8525fi 8526 8527 8528fi 8529if test -z "$ac_cv_prog_OTOOL"; then 8530 ac_ct_OTOOL=$OTOOL 8531 # Extract the first word of "otool", so it can be a program name with args. 8532set dummy otool; ac_word=$2 8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8534$as_echo_n "checking for $ac_word... " >&6; } 8535if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537else 8538 if test -n "$ac_ct_OTOOL"; then 8539 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8540else 8541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8542for as_dir in $PATH 8543do 8544 IFS=$as_save_IFS 8545 test -z "$as_dir" && as_dir=. 8546 for ac_exec_ext in '' $ac_executable_extensions; do 8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8548 ac_cv_prog_ac_ct_OTOOL="otool" 8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8550 break 2 8551 fi 8552done 8553 done 8554IFS=$as_save_IFS 8555 8556fi 8557fi 8558ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8559if test -n "$ac_ct_OTOOL"; then 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8561$as_echo "$ac_ct_OTOOL" >&6; } 8562else 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8564$as_echo "no" >&6; } 8565fi 8566 8567 if test "x$ac_ct_OTOOL" = x; then 8568 OTOOL=":" 8569 else 8570 case $cross_compiling:$ac_tool_warned in 8571yes:) 8572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8574ac_tool_warned=yes ;; 8575esac 8576 OTOOL=$ac_ct_OTOOL 8577 fi 8578else 8579 OTOOL="$ac_cv_prog_OTOOL" 8580fi 8581 8582 if test -n "$ac_tool_prefix"; then 8583 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8584set dummy ${ac_tool_prefix}otool64; ac_word=$2 8585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8586$as_echo_n "checking for $ac_word... " >&6; } 8587if ${ac_cv_prog_OTOOL64+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589else 8590 if test -n "$OTOOL64"; then 8591 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8592else 8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8594for as_dir in $PATH 8595do 8596 IFS=$as_save_IFS 8597 test -z "$as_dir" && as_dir=. 8598 for ac_exec_ext in '' $ac_executable_extensions; do 8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8600 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8602 break 2 8603 fi 8604done 8605 done 8606IFS=$as_save_IFS 8607 8608fi 8609fi 8610OTOOL64=$ac_cv_prog_OTOOL64 8611if test -n "$OTOOL64"; then 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8613$as_echo "$OTOOL64" >&6; } 8614else 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8616$as_echo "no" >&6; } 8617fi 8618 8619 8620fi 8621if test -z "$ac_cv_prog_OTOOL64"; then 8622 ac_ct_OTOOL64=$OTOOL64 8623 # Extract the first word of "otool64", so it can be a program name with args. 8624set dummy otool64; ac_word=$2 8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8626$as_echo_n "checking for $ac_word... " >&6; } 8627if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 if test -n "$ac_ct_OTOOL64"; then 8631 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8632else 8633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8634for as_dir in $PATH 8635do 8636 IFS=$as_save_IFS 8637 test -z "$as_dir" && as_dir=. 8638 for ac_exec_ext in '' $ac_executable_extensions; do 8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8640 ac_cv_prog_ac_ct_OTOOL64="otool64" 8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8642 break 2 8643 fi 8644done 8645 done 8646IFS=$as_save_IFS 8647 8648fi 8649fi 8650ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8651if test -n "$ac_ct_OTOOL64"; then 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8653$as_echo "$ac_ct_OTOOL64" >&6; } 8654else 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8656$as_echo "no" >&6; } 8657fi 8658 8659 if test "x$ac_ct_OTOOL64" = x; then 8660 OTOOL64=":" 8661 else 8662 case $cross_compiling:$ac_tool_warned in 8663yes:) 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8666ac_tool_warned=yes ;; 8667esac 8668 OTOOL64=$ac_ct_OTOOL64 8669 fi 8670else 8671 OTOOL64="$ac_cv_prog_OTOOL64" 8672fi 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8701$as_echo_n "checking for -single_module linker flag... " >&6; } 8702if ${lt_cv_apple_cc_single_mod+:} false; then : 8703 $as_echo_n "(cached) " >&6 8704else 8705 lt_cv_apple_cc_single_mod=no 8706 if test -z "$LT_MULTI_MODULE"; then 8707 # By default we will add the -single_module flag. You can override 8708 # by either setting the environment variable LT_MULTI_MODULE 8709 # non-empty at configure time, or by adding -multi_module to the 8710 # link flags. 8711 rm -rf libconftest.dylib* 8712 echo "int foo(void){return 1;}" > conftest.c 8713 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8714-dynamiclib -Wl,-single_module conftest.c" >&5 8715 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8716 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8717 _lt_result=$? 8718 # If there is a non-empty error log, and "single_module" 8719 # appears in it, assume the flag caused a linker warning 8720 if test -s conftest.err && $GREP single_module conftest.err; then 8721 cat conftest.err >&5 8722 # Otherwise, if the output was created with a 0 exit code from 8723 # the compiler, it worked. 8724 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8725 lt_cv_apple_cc_single_mod=yes 8726 else 8727 cat conftest.err >&5 8728 fi 8729 rm -rf libconftest.dylib* 8730 rm -f conftest.* 8731 fi 8732fi 8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8734$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8735 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8737$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8738if ${lt_cv_ld_exported_symbols_list+:} false; then : 8739 $as_echo_n "(cached) " >&6 8740else 8741 lt_cv_ld_exported_symbols_list=no 8742 save_LDFLAGS=$LDFLAGS 8743 echo "_main" > conftest.sym 8744 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8746/* end confdefs.h. */ 8747 8748int 8749main () 8750{ 8751 8752 ; 8753 return 0; 8754} 8755_ACEOF 8756if ac_fn_c_try_link "$LINENO"; then : 8757 lt_cv_ld_exported_symbols_list=yes 8758else 8759 lt_cv_ld_exported_symbols_list=no 8760fi 8761rm -f core conftest.err conftest.$ac_objext \ 8762 conftest$ac_exeext conftest.$ac_ext 8763 LDFLAGS=$save_LDFLAGS 8764 8765fi 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8767$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8768 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8770$as_echo_n "checking for -force_load linker flag... " >&6; } 8771if ${lt_cv_ld_force_load+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 lt_cv_ld_force_load=no 8775 cat > conftest.c << _LT_EOF 8776int forced_loaded() { return 2;} 8777_LT_EOF 8778 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8779 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8780 echo "$AR cru libconftest.a conftest.o" >&5 8781 $AR cru libconftest.a conftest.o 2>&5 8782 echo "$RANLIB libconftest.a" >&5 8783 $RANLIB libconftest.a 2>&5 8784 cat > conftest.c << _LT_EOF 8785int main() { return 0;} 8786_LT_EOF 8787 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8788 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8789 _lt_result=$? 8790 if test -s conftest.err && $GREP force_load conftest.err; then 8791 cat conftest.err >&5 8792 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8793 lt_cv_ld_force_load=yes 8794 else 8795 cat conftest.err >&5 8796 fi 8797 rm -f conftest.err libconftest.a conftest conftest.c 8798 rm -rf conftest.dSYM 8799 8800fi 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8802$as_echo "$lt_cv_ld_force_load" >&6; } 8803 case $host_os in 8804 rhapsody* | darwin1.[012]) 8805 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8806 darwin1.*) 8807 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8808 darwin*) # darwin 5.x on 8809 # if running on 10.5 or later, the deployment target defaults 8810 # to the OS version, if on x86, and 10.4, the deployment 8811 # target defaults to 10.4. Don't you love it? 8812 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8813 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8814 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8815 10.[012][,.]*) 8816 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8817 10.*) 8818 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8819 esac 8820 ;; 8821 esac 8822 if test yes = "$lt_cv_apple_cc_single_mod"; then 8823 _lt_dar_single_mod='$single_module' 8824 fi 8825 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8826 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8827 else 8828 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8829 fi 8830 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8831 _lt_dsymutil='~$DSYMUTIL $lib || :' 8832 else 8833 _lt_dsymutil= 8834 fi 8835 ;; 8836 esac 8837 8838# func_munge_path_list VARIABLE PATH 8839# ----------------------------------- 8840# VARIABLE is name of variable containing _space_ separated list of 8841# directories to be munged by the contents of PATH, which is string 8842# having a format: 8843# "DIR[:DIR]:" 8844# string "DIR[ DIR]" will be prepended to VARIABLE 8845# ":DIR[:DIR]" 8846# string "DIR[ DIR]" will be appended to VARIABLE 8847# "DIRP[:DIRP]::[DIRA:]DIRA" 8848# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8849# "DIRA[ DIRA]" will be appended to VARIABLE 8850# "DIR[:DIR]" 8851# VARIABLE will be replaced by "DIR[ DIR]" 8852func_munge_path_list () 8853{ 8854 case x$2 in 8855 x) 8856 ;; 8857 *:) 8858 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8859 ;; 8860 x:*) 8861 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8862 ;; 8863 *::*) 8864 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8865 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8866 ;; 8867 *) 8868 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8869 ;; 8870 esac 8871} 8872 8873 8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8875$as_echo_n "checking for ANSI C header files... " >&6; } 8876if ${ac_cv_header_stdc+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880/* end confdefs.h. */ 8881#include <stdlib.h> 8882#include <stdarg.h> 8883#include <string.h> 8884#include <float.h> 8885 8886int 8887main () 8888{ 8889 8890 ; 8891 return 0; 8892} 8893_ACEOF 8894if ac_fn_c_try_compile "$LINENO"; then : 8895 ac_cv_header_stdc=yes 8896else 8897 ac_cv_header_stdc=no 8898fi 8899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8900 8901if test $ac_cv_header_stdc = yes; then 8902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8904/* end confdefs.h. */ 8905#include <string.h> 8906 8907_ACEOF 8908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8909 $EGREP "memchr" >/dev/null 2>&1; then : 8910 8911else 8912 ac_cv_header_stdc=no 8913fi 8914rm -f conftest* 8915 8916fi 8917 8918if test $ac_cv_header_stdc = yes; then 8919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922#include <stdlib.h> 8923 8924_ACEOF 8925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8926 $EGREP "free" >/dev/null 2>&1; then : 8927 8928else 8929 ac_cv_header_stdc=no 8930fi 8931rm -f conftest* 8932 8933fi 8934 8935if test $ac_cv_header_stdc = yes; then 8936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8937 if test "$cross_compiling" = yes; then : 8938 : 8939else 8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942#include <ctype.h> 8943#include <stdlib.h> 8944#if ((' ' & 0x0FF) == 0x020) 8945# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8946# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8947#else 8948# define ISLOWER(c) \ 8949 (('a' <= (c) && (c) <= 'i') \ 8950 || ('j' <= (c) && (c) <= 'r') \ 8951 || ('s' <= (c) && (c) <= 'z')) 8952# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8953#endif 8954 8955#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8956int 8957main () 8958{ 8959 int i; 8960 for (i = 0; i < 256; i++) 8961 if (XOR (islower (i), ISLOWER (i)) 8962 || toupper (i) != TOUPPER (i)) 8963 return 2; 8964 return 0; 8965} 8966_ACEOF 8967if ac_fn_c_try_run "$LINENO"; then : 8968 8969else 8970 ac_cv_header_stdc=no 8971fi 8972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8973 conftest.$ac_objext conftest.beam conftest.$ac_ext 8974fi 8975 8976fi 8977fi 8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8979$as_echo "$ac_cv_header_stdc" >&6; } 8980if test $ac_cv_header_stdc = yes; then 8981 8982$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8983 8984fi 8985 8986# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8987for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8988 inttypes.h stdint.h unistd.h 8989do : 8990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8991ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8992" 8993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8994 cat >>confdefs.h <<_ACEOF 8995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8996_ACEOF 8997 8998fi 8999 9000done 9001 9002 9003for ac_header in dlfcn.h 9004do : 9005 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9006" 9007if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9008 cat >>confdefs.h <<_ACEOF 9009#define HAVE_DLFCN_H 1 9010_ACEOF 9011 9012fi 9013 9014done 9015 9016 9017 9018 9019 9020# Set options 9021 9022 9023 9024 enable_dlopen=no 9025 9026 9027 enable_win32_dll=no 9028 9029 9030 # Check whether --enable-shared was given. 9031if test "${enable_shared+set}" = set; then : 9032 enableval=$enable_shared; p=${PACKAGE-default} 9033 case $enableval in 9034 yes) enable_shared=yes ;; 9035 no) enable_shared=no ;; 9036 *) 9037 enable_shared=no 9038 # Look at the argument we got. We use all the common list separators. 9039 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9040 for pkg in $enableval; do 9041 IFS=$lt_save_ifs 9042 if test "X$pkg" = "X$p"; then 9043 enable_shared=yes 9044 fi 9045 done 9046 IFS=$lt_save_ifs 9047 ;; 9048 esac 9049else 9050 enable_shared=yes 9051fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 # Check whether --enable-static was given. 9062if test "${enable_static+set}" = set; then : 9063 enableval=$enable_static; p=${PACKAGE-default} 9064 case $enableval in 9065 yes) enable_static=yes ;; 9066 no) enable_static=no ;; 9067 *) 9068 enable_static=no 9069 # Look at the argument we got. We use all the common list separators. 9070 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9071 for pkg in $enableval; do 9072 IFS=$lt_save_ifs 9073 if test "X$pkg" = "X$p"; then 9074 enable_static=yes 9075 fi 9076 done 9077 IFS=$lt_save_ifs 9078 ;; 9079 esac 9080else 9081 enable_static=yes 9082fi 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093# Check whether --with-pic was given. 9094if test "${with_pic+set}" = set; then : 9095 withval=$with_pic; lt_p=${PACKAGE-default} 9096 case $withval in 9097 yes|no) pic_mode=$withval ;; 9098 *) 9099 pic_mode=default 9100 # Look at the argument we got. We use all the common list separators. 9101 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9102 for lt_pkg in $withval; do 9103 IFS=$lt_save_ifs 9104 if test "X$lt_pkg" = "X$lt_p"; then 9105 pic_mode=yes 9106 fi 9107 done 9108 IFS=$lt_save_ifs 9109 ;; 9110 esac 9111else 9112 pic_mode=default 9113fi 9114 9115 9116 9117 9118 9119 9120 9121 9122 # Check whether --enable-fast-install was given. 9123if test "${enable_fast_install+set}" = set; then : 9124 enableval=$enable_fast_install; p=${PACKAGE-default} 9125 case $enableval in 9126 yes) enable_fast_install=yes ;; 9127 no) enable_fast_install=no ;; 9128 *) 9129 enable_fast_install=no 9130 # Look at the argument we got. We use all the common list separators. 9131 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9132 for pkg in $enableval; do 9133 IFS=$lt_save_ifs 9134 if test "X$pkg" = "X$p"; then 9135 enable_fast_install=yes 9136 fi 9137 done 9138 IFS=$lt_save_ifs 9139 ;; 9140 esac 9141else 9142 enable_fast_install=yes 9143fi 9144 9145 9146 9147 9148 9149 9150 9151 9152 shared_archive_member_spec= 9153case $host,$enable_shared in 9154power*-*-aix[5-9]*,yes) 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9156$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9157 9158# Check whether --with-aix-soname was given. 9159if test "${with_aix_soname+set}" = set; then : 9160 withval=$with_aix_soname; case $withval in 9161 aix|svr4|both) 9162 ;; 9163 *) 9164 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9165 ;; 9166 esac 9167 lt_cv_with_aix_soname=$with_aix_soname 9168else 9169 if ${lt_cv_with_aix_soname+:} false; then : 9170 $as_echo_n "(cached) " >&6 9171else 9172 lt_cv_with_aix_soname=aix 9173fi 9174 9175 with_aix_soname=$lt_cv_with_aix_soname 9176fi 9177 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9179$as_echo "$with_aix_soname" >&6; } 9180 if test aix != "$with_aix_soname"; then 9181 # For the AIX way of multilib, we name the shared archive member 9182 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9183 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9184 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9185 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9186 if test 64 = "${OBJECT_MODE-32}"; then 9187 shared_archive_member_spec=shr_64 9188 else 9189 shared_archive_member_spec=shr 9190 fi 9191 fi 9192 ;; 9193*) 9194 with_aix_soname=aix 9195 ;; 9196esac 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207# This can be used to rebuild libtool when needed 9208LIBTOOL_DEPS=$ltmain 9209 9210# Always use our own libtool. 9211LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242test -z "$LN_S" && LN_S="ln -s" 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257if test -n "${ZSH_VERSION+set}"; then 9258 setopt NO_GLOB_SUBST 9259fi 9260 9261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9262$as_echo_n "checking for objdir... " >&6; } 9263if ${lt_cv_objdir+:} false; then : 9264 $as_echo_n "(cached) " >&6 9265else 9266 rm -f .libs 2>/dev/null 9267mkdir .libs 2>/dev/null 9268if test -d .libs; then 9269 lt_cv_objdir=.libs 9270else 9271 # MS-DOS does not allow filenames that begin with a dot. 9272 lt_cv_objdir=_libs 9273fi 9274rmdir .libs 2>/dev/null 9275fi 9276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9277$as_echo "$lt_cv_objdir" >&6; } 9278objdir=$lt_cv_objdir 9279 9280 9281 9282 9283 9284cat >>confdefs.h <<_ACEOF 9285#define LT_OBJDIR "$lt_cv_objdir/" 9286_ACEOF 9287 9288 9289 9290 9291case $host_os in 9292aix3*) 9293 # AIX sometimes has problems with the GCC collect2 program. For some 9294 # reason, if we set the COLLECT_NAMES environment variable, the problems 9295 # vanish in a puff of smoke. 9296 if test set != "${COLLECT_NAMES+set}"; then 9297 COLLECT_NAMES= 9298 export COLLECT_NAMES 9299 fi 9300 ;; 9301esac 9302 9303# Global variables: 9304ofile=libtool 9305can_build_shared=yes 9306 9307# All known linkers require a '.a' archive for static linking (except MSVC, 9308# which needs '.lib'). 9309libext=a 9310 9311with_gnu_ld=$lt_cv_prog_gnu_ld 9312 9313old_CC=$CC 9314old_CFLAGS=$CFLAGS 9315 9316# Set sane defaults for various variables 9317test -z "$CC" && CC=cc 9318test -z "$LTCC" && LTCC=$CC 9319test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9320test -z "$LD" && LD=ld 9321test -z "$ac_objext" && ac_objext=o 9322 9323func_cc_basename $compiler 9324cc_basename=$func_cc_basename_result 9325 9326 9327# Only perform the check for file, if the check method requires it 9328test -z "$MAGIC_CMD" && MAGIC_CMD=file 9329case $deplibs_check_method in 9330file_magic*) 9331 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9333$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9334if ${lt_cv_path_MAGIC_CMD+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 case $MAGIC_CMD in 9338[\\/*] | ?:[\\/]*) 9339 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9340 ;; 9341*) 9342 lt_save_MAGIC_CMD=$MAGIC_CMD 9343 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9345 for ac_dir in $ac_dummy; do 9346 IFS=$lt_save_ifs 9347 test -z "$ac_dir" && ac_dir=. 9348 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9349 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9350 if test -n "$file_magic_test_file"; then 9351 case $deplibs_check_method in 9352 "file_magic "*) 9353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9354 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9356 $EGREP "$file_magic_regex" > /dev/null; then 9357 : 9358 else 9359 cat <<_LT_EOF 1>&2 9360 9361*** Warning: the command libtool uses to detect shared libraries, 9362*** $file_magic_cmd, produces output that libtool cannot recognize. 9363*** The result is that libtool may fail to recognize shared libraries 9364*** as such. This will affect the creation of libtool libraries that 9365*** depend on shared libraries, but programs linked with such libtool 9366*** libraries will work regardless of this problem. Nevertheless, you 9367*** may want to report the problem to your system manager and/or to 9368*** bug-libtool@gnu.org 9369 9370_LT_EOF 9371 fi ;; 9372 esac 9373 fi 9374 break 9375 fi 9376 done 9377 IFS=$lt_save_ifs 9378 MAGIC_CMD=$lt_save_MAGIC_CMD 9379 ;; 9380esac 9381fi 9382 9383MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9384if test -n "$MAGIC_CMD"; then 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9386$as_echo "$MAGIC_CMD" >&6; } 9387else 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9389$as_echo "no" >&6; } 9390fi 9391 9392 9393 9394 9395 9396if test -z "$lt_cv_path_MAGIC_CMD"; then 9397 if test -n "$ac_tool_prefix"; then 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9399$as_echo_n "checking for file... " >&6; } 9400if ${lt_cv_path_MAGIC_CMD+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 case $MAGIC_CMD in 9404[\\/*] | ?:[\\/]*) 9405 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9406 ;; 9407*) 9408 lt_save_MAGIC_CMD=$MAGIC_CMD 9409 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9411 for ac_dir in $ac_dummy; do 9412 IFS=$lt_save_ifs 9413 test -z "$ac_dir" && ac_dir=. 9414 if test -f "$ac_dir/file"; then 9415 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9416 if test -n "$file_magic_test_file"; then 9417 case $deplibs_check_method in 9418 "file_magic "*) 9419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9420 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9422 $EGREP "$file_magic_regex" > /dev/null; then 9423 : 9424 else 9425 cat <<_LT_EOF 1>&2 9426 9427*** Warning: the command libtool uses to detect shared libraries, 9428*** $file_magic_cmd, produces output that libtool cannot recognize. 9429*** The result is that libtool may fail to recognize shared libraries 9430*** as such. This will affect the creation of libtool libraries that 9431*** depend on shared libraries, but programs linked with such libtool 9432*** libraries will work regardless of this problem. Nevertheless, you 9433*** may want to report the problem to your system manager and/or to 9434*** bug-libtool@gnu.org 9435 9436_LT_EOF 9437 fi ;; 9438 esac 9439 fi 9440 break 9441 fi 9442 done 9443 IFS=$lt_save_ifs 9444 MAGIC_CMD=$lt_save_MAGIC_CMD 9445 ;; 9446esac 9447fi 9448 9449MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9450if test -n "$MAGIC_CMD"; then 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9452$as_echo "$MAGIC_CMD" >&6; } 9453else 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9455$as_echo "no" >&6; } 9456fi 9457 9458 9459 else 9460 MAGIC_CMD=: 9461 fi 9462fi 9463 9464 fi 9465 ;; 9466esac 9467 9468# Use C for the default configuration in the libtool script 9469 9470lt_save_CC=$CC 9471ac_ext=c 9472ac_cpp='$CPP $CPPFLAGS' 9473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9475ac_compiler_gnu=$ac_cv_c_compiler_gnu 9476 9477 9478# Source file extension for C test sources. 9479ac_ext=c 9480 9481# Object file extension for compiled C test sources. 9482objext=o 9483objext=$objext 9484 9485# Code to be used in simple compile tests 9486lt_simple_compile_test_code="int some_variable = 0;" 9487 9488# Code to be used in simple link tests 9489lt_simple_link_test_code='int main(){return(0);}' 9490 9491 9492 9493 9494 9495 9496 9497# If no C compiler was specified, use CC. 9498LTCC=${LTCC-"$CC"} 9499 9500# If no C compiler flags were specified, use CFLAGS. 9501LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9502 9503# Allow CC to be a program name with arguments. 9504compiler=$CC 9505 9506# Save the default compiler, since it gets overwritten when the other 9507# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9508compiler_DEFAULT=$CC 9509 9510# save warnings/boilerplate of simple test code 9511ac_outfile=conftest.$ac_objext 9512echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9513eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9514_lt_compiler_boilerplate=`cat conftest.err` 9515$RM conftest* 9516 9517ac_outfile=conftest.$ac_objext 9518echo "$lt_simple_link_test_code" >conftest.$ac_ext 9519eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9520_lt_linker_boilerplate=`cat conftest.err` 9521$RM -r conftest* 9522 9523 9524## CAVEAT EMPTOR: 9525## There is no encapsulation within the following macros, do not change 9526## the running order or otherwise move them around unless you know exactly 9527## what you are doing... 9528if test -n "$compiler"; then 9529 9530lt_prog_compiler_no_builtin_flag= 9531 9532if test yes = "$GCC"; then 9533 case $cc_basename in 9534 nvcc*) 9535 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9536 *) 9537 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9538 esac 9539 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9541$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9542if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9543 $as_echo_n "(cached) " >&6 9544else 9545 lt_cv_prog_compiler_rtti_exceptions=no 9546 ac_outfile=conftest.$ac_objext 9547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9548 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9549 # Insert the option either (1) after the last *FLAGS variable, or 9550 # (2) before a word containing "conftest.", or (3) at the end. 9551 # Note that $ac_compile itself does not contain backslashes and begins 9552 # with a dollar sign (not a hyphen), so the echo should work correctly. 9553 # The option is referenced via a variable to avoid confusing sed. 9554 lt_compile=`echo "$ac_compile" | $SED \ 9555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9557 -e 's:$: $lt_compiler_flag:'` 9558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9559 (eval "$lt_compile" 2>conftest.err) 9560 ac_status=$? 9561 cat conftest.err >&5 9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9563 if (exit $ac_status) && test -s "$ac_outfile"; then 9564 # The compiler can only warn and ignore the option if not recognized 9565 # So say no if there are warnings other than the usual output. 9566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9569 lt_cv_prog_compiler_rtti_exceptions=yes 9570 fi 9571 fi 9572 $RM conftest* 9573 9574fi 9575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9576$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9577 9578if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9579 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9580else 9581 : 9582fi 9583 9584fi 9585 9586 9587 9588 9589 9590 9591 lt_prog_compiler_wl= 9592lt_prog_compiler_pic= 9593lt_prog_compiler_static= 9594 9595 9596 if test yes = "$GCC"; then 9597 lt_prog_compiler_wl='-Wl,' 9598 lt_prog_compiler_static='-static' 9599 9600 case $host_os in 9601 aix*) 9602 # All AIX code is PIC. 9603 if test ia64 = "$host_cpu"; then 9604 # AIX 5 now supports IA64 processor 9605 lt_prog_compiler_static='-Bstatic' 9606 fi 9607 lt_prog_compiler_pic='-fPIC' 9608 ;; 9609 9610 amigaos*) 9611 case $host_cpu in 9612 powerpc) 9613 # see comment about AmigaOS4 .so support 9614 lt_prog_compiler_pic='-fPIC' 9615 ;; 9616 m68k) 9617 # FIXME: we need at least 68020 code to build shared libraries, but 9618 # adding the '-m68020' flag to GCC prevents building anything better, 9619 # like '-m68040'. 9620 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9621 ;; 9622 esac 9623 ;; 9624 9625 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9626 # PIC is the default for these OSes. 9627 ;; 9628 9629 mingw* | cygwin* | pw32* | os2* | cegcc*) 9630 # This hack is so that the source file can tell whether it is being 9631 # built for inclusion in a dll (and should export symbols for example). 9632 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9633 # (--disable-auto-import) libraries 9634 lt_prog_compiler_pic='-DDLL_EXPORT' 9635 case $host_os in 9636 os2*) 9637 lt_prog_compiler_static='$wl-static' 9638 ;; 9639 esac 9640 ;; 9641 9642 darwin* | rhapsody*) 9643 # PIC is the default on this platform 9644 # Common symbols not allowed in MH_DYLIB files 9645 lt_prog_compiler_pic='-fno-common' 9646 ;; 9647 9648 haiku*) 9649 # PIC is the default for Haiku. 9650 # The "-static" flag exists, but is broken. 9651 lt_prog_compiler_static= 9652 ;; 9653 9654 hpux*) 9655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9657 # sets the default TLS model and affects inlining. 9658 case $host_cpu in 9659 hppa*64*) 9660 # +Z the default 9661 ;; 9662 *) 9663 lt_prog_compiler_pic='-fPIC' 9664 ;; 9665 esac 9666 ;; 9667 9668 interix[3-9]*) 9669 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9670 # Instead, we relocate shared libraries at runtime. 9671 ;; 9672 9673 msdosdjgpp*) 9674 # Just because we use GCC doesn't mean we suddenly get shared libraries 9675 # on systems that don't support them. 9676 lt_prog_compiler_can_build_shared=no 9677 enable_shared=no 9678 ;; 9679 9680 *nto* | *qnx*) 9681 # QNX uses GNU C++, but need to define -shared option too, otherwise 9682 # it will coredump. 9683 lt_prog_compiler_pic='-fPIC -shared' 9684 ;; 9685 9686 sysv4*MP*) 9687 if test -d /usr/nec; then 9688 lt_prog_compiler_pic=-Kconform_pic 9689 fi 9690 ;; 9691 9692 *) 9693 lt_prog_compiler_pic='-fPIC' 9694 ;; 9695 esac 9696 9697 case $cc_basename in 9698 nvcc*) # Cuda Compiler Driver 2.2 9699 lt_prog_compiler_wl='-Xlinker ' 9700 if test -n "$lt_prog_compiler_pic"; then 9701 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9702 fi 9703 ;; 9704 esac 9705 else 9706 # PORTME Check for flag to pass linker flags through the system compiler. 9707 case $host_os in 9708 aix*) 9709 lt_prog_compiler_wl='-Wl,' 9710 if test ia64 = "$host_cpu"; then 9711 # AIX 5 now supports IA64 processor 9712 lt_prog_compiler_static='-Bstatic' 9713 else 9714 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9715 fi 9716 ;; 9717 9718 darwin* | rhapsody*) 9719 # PIC is the default on this platform 9720 # Common symbols not allowed in MH_DYLIB files 9721 lt_prog_compiler_pic='-fno-common' 9722 case $cc_basename in 9723 nagfor*) 9724 # NAG Fortran compiler 9725 lt_prog_compiler_wl='-Wl,-Wl,,' 9726 lt_prog_compiler_pic='-PIC' 9727 lt_prog_compiler_static='-Bstatic' 9728 ;; 9729 esac 9730 ;; 9731 9732 mingw* | cygwin* | pw32* | os2* | cegcc*) 9733 # This hack is so that the source file can tell whether it is being 9734 # built for inclusion in a dll (and should export symbols for example). 9735 lt_prog_compiler_pic='-DDLL_EXPORT' 9736 case $host_os in 9737 os2*) 9738 lt_prog_compiler_static='$wl-static' 9739 ;; 9740 esac 9741 ;; 9742 9743 hpux9* | hpux10* | hpux11*) 9744 lt_prog_compiler_wl='-Wl,' 9745 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9746 # not for PA HP-UX. 9747 case $host_cpu in 9748 hppa*64*|ia64*) 9749 # +Z the default 9750 ;; 9751 *) 9752 lt_prog_compiler_pic='+Z' 9753 ;; 9754 esac 9755 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9756 lt_prog_compiler_static='$wl-a ${wl}archive' 9757 ;; 9758 9759 irix5* | irix6* | nonstopux*) 9760 lt_prog_compiler_wl='-Wl,' 9761 # PIC (with -KPIC) is the default. 9762 lt_prog_compiler_static='-non_shared' 9763 ;; 9764 9765 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9766 case $cc_basename in 9767 # old Intel for x86_64, which still supported -KPIC. 9768 ecc*) 9769 lt_prog_compiler_wl='-Wl,' 9770 lt_prog_compiler_pic='-KPIC' 9771 lt_prog_compiler_static='-static' 9772 ;; 9773 # icc used to be incompatible with GCC. 9774 # ICC 10 doesn't accept -KPIC any more. 9775 icc* | ifort*) 9776 lt_prog_compiler_wl='-Wl,' 9777 lt_prog_compiler_pic='-fPIC' 9778 lt_prog_compiler_static='-static' 9779 ;; 9780 # Lahey Fortran 8.1. 9781 lf95*) 9782 lt_prog_compiler_wl='-Wl,' 9783 lt_prog_compiler_pic='--shared' 9784 lt_prog_compiler_static='--static' 9785 ;; 9786 nagfor*) 9787 # NAG Fortran compiler 9788 lt_prog_compiler_wl='-Wl,-Wl,,' 9789 lt_prog_compiler_pic='-PIC' 9790 lt_prog_compiler_static='-Bstatic' 9791 ;; 9792 tcc*) 9793 # Fabrice Bellard et al's Tiny C Compiler 9794 lt_prog_compiler_wl='-Wl,' 9795 lt_prog_compiler_pic='-fPIC' 9796 lt_prog_compiler_static='-static' 9797 ;; 9798 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9799 # Portland Group compilers (*not* the Pentium gcc compiler, 9800 # which looks to be a dead project) 9801 lt_prog_compiler_wl='-Wl,' 9802 lt_prog_compiler_pic='-fpic' 9803 lt_prog_compiler_static='-Bstatic' 9804 ;; 9805 ccc*) 9806 lt_prog_compiler_wl='-Wl,' 9807 # All Alpha code is PIC. 9808 lt_prog_compiler_static='-non_shared' 9809 ;; 9810 xl* | bgxl* | bgf* | mpixl*) 9811 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9812 lt_prog_compiler_wl='-Wl,' 9813 lt_prog_compiler_pic='-qpic' 9814 lt_prog_compiler_static='-qstaticlink' 9815 ;; 9816 *) 9817 case `$CC -V 2>&1 | sed 5q` in 9818 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9819 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9820 lt_prog_compiler_pic='-KPIC' 9821 lt_prog_compiler_static='-Bstatic' 9822 lt_prog_compiler_wl='' 9823 ;; 9824 *Sun\ F* | *Sun*Fortran*) 9825 lt_prog_compiler_pic='-KPIC' 9826 lt_prog_compiler_static='-Bstatic' 9827 lt_prog_compiler_wl='-Qoption ld ' 9828 ;; 9829 *Sun\ C*) 9830 # Sun C 5.9 9831 lt_prog_compiler_pic='-KPIC' 9832 lt_prog_compiler_static='-Bstatic' 9833 lt_prog_compiler_wl='-Wl,' 9834 ;; 9835 *Intel*\ [CF]*Compiler*) 9836 lt_prog_compiler_wl='-Wl,' 9837 lt_prog_compiler_pic='-fPIC' 9838 lt_prog_compiler_static='-static' 9839 ;; 9840 *Portland\ Group*) 9841 lt_prog_compiler_wl='-Wl,' 9842 lt_prog_compiler_pic='-fpic' 9843 lt_prog_compiler_static='-Bstatic' 9844 ;; 9845 esac 9846 ;; 9847 esac 9848 ;; 9849 9850 newsos6) 9851 lt_prog_compiler_pic='-KPIC' 9852 lt_prog_compiler_static='-Bstatic' 9853 ;; 9854 9855 *nto* | *qnx*) 9856 # QNX uses GNU C++, but need to define -shared option too, otherwise 9857 # it will coredump. 9858 lt_prog_compiler_pic='-fPIC -shared' 9859 ;; 9860 9861 osf3* | osf4* | osf5*) 9862 lt_prog_compiler_wl='-Wl,' 9863 # All OSF/1 code is PIC. 9864 lt_prog_compiler_static='-non_shared' 9865 ;; 9866 9867 rdos*) 9868 lt_prog_compiler_static='-non_shared' 9869 ;; 9870 9871 solaris*) 9872 lt_prog_compiler_pic='-KPIC' 9873 lt_prog_compiler_static='-Bstatic' 9874 case $cc_basename in 9875 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9876 lt_prog_compiler_wl='-Qoption ld ';; 9877 *) 9878 lt_prog_compiler_wl='-Wl,';; 9879 esac 9880 ;; 9881 9882 sunos4*) 9883 lt_prog_compiler_wl='-Qoption ld ' 9884 lt_prog_compiler_pic='-PIC' 9885 lt_prog_compiler_static='-Bstatic' 9886 ;; 9887 9888 sysv4 | sysv4.2uw2* | sysv4.3*) 9889 lt_prog_compiler_wl='-Wl,' 9890 lt_prog_compiler_pic='-KPIC' 9891 lt_prog_compiler_static='-Bstatic' 9892 ;; 9893 9894 sysv4*MP*) 9895 if test -d /usr/nec; then 9896 lt_prog_compiler_pic='-Kconform_pic' 9897 lt_prog_compiler_static='-Bstatic' 9898 fi 9899 ;; 9900 9901 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9902 lt_prog_compiler_wl='-Wl,' 9903 lt_prog_compiler_pic='-KPIC' 9904 lt_prog_compiler_static='-Bstatic' 9905 ;; 9906 9907 unicos*) 9908 lt_prog_compiler_wl='-Wl,' 9909 lt_prog_compiler_can_build_shared=no 9910 ;; 9911 9912 uts4*) 9913 lt_prog_compiler_pic='-pic' 9914 lt_prog_compiler_static='-Bstatic' 9915 ;; 9916 9917 *) 9918 lt_prog_compiler_can_build_shared=no 9919 ;; 9920 esac 9921 fi 9922 9923case $host_os in 9924 # For platforms that do not support PIC, -DPIC is meaningless: 9925 *djgpp*) 9926 lt_prog_compiler_pic= 9927 ;; 9928 *) 9929 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9930 ;; 9931esac 9932 9933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9934$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9935if ${lt_cv_prog_compiler_pic+:} false; then : 9936 $as_echo_n "(cached) " >&6 9937else 9938 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9939fi 9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9941$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9942lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9943 9944# 9945# Check to make sure the PIC flag actually works. 9946# 9947if test -n "$lt_prog_compiler_pic"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9949$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9950if ${lt_cv_prog_compiler_pic_works+:} false; then : 9951 $as_echo_n "(cached) " >&6 9952else 9953 lt_cv_prog_compiler_pic_works=no 9954 ac_outfile=conftest.$ac_objext 9955 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9956 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9957 # Insert the option either (1) after the last *FLAGS variable, or 9958 # (2) before a word containing "conftest.", or (3) at the end. 9959 # Note that $ac_compile itself does not contain backslashes and begins 9960 # with a dollar sign (not a hyphen), so the echo should work correctly. 9961 # The option is referenced via a variable to avoid confusing sed. 9962 lt_compile=`echo "$ac_compile" | $SED \ 9963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9965 -e 's:$: $lt_compiler_flag:'` 9966 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9967 (eval "$lt_compile" 2>conftest.err) 9968 ac_status=$? 9969 cat conftest.err >&5 9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9971 if (exit $ac_status) && test -s "$ac_outfile"; then 9972 # The compiler can only warn and ignore the option if not recognized 9973 # So say no if there are warnings other than the usual output. 9974 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9977 lt_cv_prog_compiler_pic_works=yes 9978 fi 9979 fi 9980 $RM conftest* 9981 9982fi 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9984$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9985 9986if test yes = "$lt_cv_prog_compiler_pic_works"; then 9987 case $lt_prog_compiler_pic in 9988 "" | " "*) ;; 9989 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9990 esac 9991else 9992 lt_prog_compiler_pic= 9993 lt_prog_compiler_can_build_shared=no 9994fi 9995 9996fi 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008# 10009# Check to make sure the static flag actually works. 10010# 10011wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10013$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10014if ${lt_cv_prog_compiler_static_works+:} false; then : 10015 $as_echo_n "(cached) " >&6 10016else 10017 lt_cv_prog_compiler_static_works=no 10018 save_LDFLAGS=$LDFLAGS 10019 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10020 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10021 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10022 # The linker can only warn and ignore the option if not recognized 10023 # So say no if there are warnings 10024 if test -s conftest.err; then 10025 # Append any errors to the config.log. 10026 cat conftest.err 1>&5 10027 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10029 if diff conftest.exp conftest.er2 >/dev/null; then 10030 lt_cv_prog_compiler_static_works=yes 10031 fi 10032 else 10033 lt_cv_prog_compiler_static_works=yes 10034 fi 10035 fi 10036 $RM -r conftest* 10037 LDFLAGS=$save_LDFLAGS 10038 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10041$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10042 10043if test yes = "$lt_cv_prog_compiler_static_works"; then 10044 : 10045else 10046 lt_prog_compiler_static= 10047fi 10048 10049 10050 10051 10052 10053 10054 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10056$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10057if ${lt_cv_prog_compiler_c_o+:} false; then : 10058 $as_echo_n "(cached) " >&6 10059else 10060 lt_cv_prog_compiler_c_o=no 10061 $RM -r conftest 2>/dev/null 10062 mkdir conftest 10063 cd conftest 10064 mkdir out 10065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10066 10067 lt_compiler_flag="-o out/conftest2.$ac_objext" 10068 # Insert the option either (1) after the last *FLAGS variable, or 10069 # (2) before a word containing "conftest.", or (3) at the end. 10070 # Note that $ac_compile itself does not contain backslashes and begins 10071 # with a dollar sign (not a hyphen), so the echo should work correctly. 10072 lt_compile=`echo "$ac_compile" | $SED \ 10073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10075 -e 's:$: $lt_compiler_flag:'` 10076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10077 (eval "$lt_compile" 2>out/conftest.err) 10078 ac_status=$? 10079 cat out/conftest.err >&5 10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10082 then 10083 # The compiler can only warn and ignore the option if not recognized 10084 # So say no if there are warnings 10085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10088 lt_cv_prog_compiler_c_o=yes 10089 fi 10090 fi 10091 chmod u+w . 2>&5 10092 $RM conftest* 10093 # SGI C++ compiler will create directory out/ii_files/ for 10094 # template instantiation 10095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10096 $RM out/* && rmdir out 10097 cd .. 10098 $RM -r conftest 10099 $RM conftest* 10100 10101fi 10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10103$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10104 10105 10106 10107 10108 10109 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10112if ${lt_cv_prog_compiler_c_o+:} false; then : 10113 $as_echo_n "(cached) " >&6 10114else 10115 lt_cv_prog_compiler_c_o=no 10116 $RM -r conftest 2>/dev/null 10117 mkdir conftest 10118 cd conftest 10119 mkdir out 10120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10121 10122 lt_compiler_flag="-o out/conftest2.$ac_objext" 10123 # Insert the option either (1) after the last *FLAGS variable, or 10124 # (2) before a word containing "conftest.", or (3) at the end. 10125 # Note that $ac_compile itself does not contain backslashes and begins 10126 # with a dollar sign (not a hyphen), so the echo should work correctly. 10127 lt_compile=`echo "$ac_compile" | $SED \ 10128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10130 -e 's:$: $lt_compiler_flag:'` 10131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10132 (eval "$lt_compile" 2>out/conftest.err) 10133 ac_status=$? 10134 cat out/conftest.err >&5 10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10136 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10137 then 10138 # The compiler can only warn and ignore the option if not recognized 10139 # So say no if there are warnings 10140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10143 lt_cv_prog_compiler_c_o=yes 10144 fi 10145 fi 10146 chmod u+w . 2>&5 10147 $RM conftest* 10148 # SGI C++ compiler will create directory out/ii_files/ for 10149 # template instantiation 10150 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10151 $RM out/* && rmdir out 10152 cd .. 10153 $RM -r conftest 10154 $RM conftest* 10155 10156fi 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10158$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10159 10160 10161 10162 10163hard_links=nottested 10164if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10165 # do not overwrite the value of need_locks provided by the user 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10167$as_echo_n "checking if we can lock with hard links... " >&6; } 10168 hard_links=yes 10169 $RM conftest* 10170 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10171 touch conftest.a 10172 ln conftest.a conftest.b 2>&5 || hard_links=no 10173 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10175$as_echo "$hard_links" >&6; } 10176 if test no = "$hard_links"; then 10177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10178$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10179 need_locks=warn 10180 fi 10181else 10182 need_locks=no 10183fi 10184 10185 10186 10187 10188 10189 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10191$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10192 10193 runpath_var= 10194 allow_undefined_flag= 10195 always_export_symbols=no 10196 archive_cmds= 10197 archive_expsym_cmds= 10198 compiler_needs_object=no 10199 enable_shared_with_static_runtimes=no 10200 export_dynamic_flag_spec= 10201 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10202 hardcode_automatic=no 10203 hardcode_direct=no 10204 hardcode_direct_absolute=no 10205 hardcode_libdir_flag_spec= 10206 hardcode_libdir_separator= 10207 hardcode_minus_L=no 10208 hardcode_shlibpath_var=unsupported 10209 inherit_rpath=no 10210 link_all_deplibs=unknown 10211 module_cmds= 10212 module_expsym_cmds= 10213 old_archive_from_new_cmds= 10214 old_archive_from_expsyms_cmds= 10215 thread_safe_flag_spec= 10216 whole_archive_flag_spec= 10217 # include_expsyms should be a list of space-separated symbols to be *always* 10218 # included in the symbol list 10219 include_expsyms= 10220 # exclude_expsyms can be an extended regexp of symbols to exclude 10221 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10222 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10223 # as well as any symbol that contains 'd'. 10224 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10225 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10226 # platforms (ab)use it in PIC code, but their linkers get confused if 10227 # the symbol is explicitly referenced. Since portable code cannot 10228 # rely on this symbol name, it's probably fine to never include it in 10229 # preloaded symbol tables. 10230 # Exclude shared library initialization/finalization symbols. 10231 extract_expsyms_cmds= 10232 10233 case $host_os in 10234 cygwin* | mingw* | pw32* | cegcc*) 10235 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10236 # When not using gcc, we currently assume that we are using 10237 # Microsoft Visual C++. 10238 if test yes != "$GCC"; then 10239 with_gnu_ld=no 10240 fi 10241 ;; 10242 interix*) 10243 # we just hope/assume this is gcc and not c89 (= MSVC++) 10244 with_gnu_ld=yes 10245 ;; 10246 openbsd* | bitrig*) 10247 with_gnu_ld=no 10248 ;; 10249 esac 10250 10251 ld_shlibs=yes 10252 10253 # On some targets, GNU ld is compatible enough with the native linker 10254 # that we're better off using the native interface for both. 10255 lt_use_gnu_ld_interface=no 10256 if test yes = "$with_gnu_ld"; then 10257 case $host_os in 10258 aix*) 10259 # The AIX port of GNU ld has always aspired to compatibility 10260 # with the native linker. However, as the warning in the GNU ld 10261 # block says, versions before 2.19.5* couldn't really create working 10262 # shared libraries, regardless of the interface used. 10263 case `$LD -v 2>&1` in 10264 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10265 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10266 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10267 *) 10268 lt_use_gnu_ld_interface=yes 10269 ;; 10270 esac 10271 ;; 10272 *) 10273 lt_use_gnu_ld_interface=yes 10274 ;; 10275 esac 10276 fi 10277 10278 if test yes = "$lt_use_gnu_ld_interface"; then 10279 # If archive_cmds runs LD, not CC, wlarc should be empty 10280 wlarc='$wl' 10281 10282 # Set some defaults for GNU ld with shared library support. These 10283 # are reset later if shared libraries are not supported. Putting them 10284 # here allows them to be overridden if necessary. 10285 runpath_var=LD_RUN_PATH 10286 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10287 export_dynamic_flag_spec='$wl--export-dynamic' 10288 # ancient GNU ld didn't support --whole-archive et. al. 10289 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10290 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10291 else 10292 whole_archive_flag_spec= 10293 fi 10294 supports_anon_versioning=no 10295 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10296 *GNU\ gold*) supports_anon_versioning=yes ;; 10297 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10300 *\ 2.11.*) ;; # other 2.11 versions 10301 *) supports_anon_versioning=yes ;; 10302 esac 10303 10304 # See if GNU ld supports shared libraries. 10305 case $host_os in 10306 aix[3-9]*) 10307 # On AIX/PPC, the GNU linker is very broken 10308 if test ia64 != "$host_cpu"; then 10309 ld_shlibs=no 10310 cat <<_LT_EOF 1>&2 10311 10312*** Warning: the GNU linker, at least up to release 2.19, is reported 10313*** to be unable to reliably create shared libraries on AIX. 10314*** Therefore, libtool is disabling shared libraries support. If you 10315*** really care for shared libraries, you may want to install binutils 10316*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10317*** You will then need to restart the configuration process. 10318 10319_LT_EOF 10320 fi 10321 ;; 10322 10323 amigaos*) 10324 case $host_cpu in 10325 powerpc) 10326 # see comment about AmigaOS4 .so support 10327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10328 archive_expsym_cmds='' 10329 ;; 10330 m68k) 10331 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)' 10332 hardcode_libdir_flag_spec='-L$libdir' 10333 hardcode_minus_L=yes 10334 ;; 10335 esac 10336 ;; 10337 10338 beos*) 10339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10340 allow_undefined_flag=unsupported 10341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10342 # support --undefined. This deserves some investigation. FIXME 10343 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10344 else 10345 ld_shlibs=no 10346 fi 10347 ;; 10348 10349 cygwin* | mingw* | pw32* | cegcc*) 10350 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10351 # as there is no search path for DLLs. 10352 hardcode_libdir_flag_spec='-L$libdir' 10353 export_dynamic_flag_spec='$wl--export-all-symbols' 10354 allow_undefined_flag=unsupported 10355 always_export_symbols=no 10356 enable_shared_with_static_runtimes=yes 10357 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' 10358 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10359 10360 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10362 # If the export-symbols file already is a .def file, use it as 10363 # is; otherwise, prepend EXPORTS... 10364 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10365 cp $export_symbols $output_objdir/$soname.def; 10366 else 10367 echo EXPORTS > $output_objdir/$soname.def; 10368 cat $export_symbols >> $output_objdir/$soname.def; 10369 fi~ 10370 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10371 else 10372 ld_shlibs=no 10373 fi 10374 ;; 10375 10376 haiku*) 10377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10378 link_all_deplibs=yes 10379 ;; 10380 10381 os2*) 10382 hardcode_libdir_flag_spec='-L$libdir' 10383 hardcode_minus_L=yes 10384 allow_undefined_flag=unsupported 10385 shrext_cmds=.dll 10386 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10387 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10388 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10389 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10390 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10391 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10392 emximp -o $lib $output_objdir/$libname.def' 10393 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10396 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10397 prefix_cmds="$SED"~ 10398 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10399 prefix_cmds="$prefix_cmds -e 1d"; 10400 fi~ 10401 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10402 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10403 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10404 emximp -o $lib $output_objdir/$libname.def' 10405 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10406 enable_shared_with_static_runtimes=yes 10407 ;; 10408 10409 interix[3-9]*) 10410 hardcode_direct=no 10411 hardcode_shlibpath_var=no 10412 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10413 export_dynamic_flag_spec='$wl-E' 10414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10415 # Instead, shared libraries are loaded at an image base (0x10000000 by 10416 # default) and relocated if they conflict, which is a slow very memory 10417 # consuming and fragmenting process. To avoid this, we pick a random, 10418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10419 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10421 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' 10422 ;; 10423 10424 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10425 tmp_diet=no 10426 if test linux-dietlibc = "$host_os"; then 10427 case $cc_basename in 10428 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10429 esac 10430 fi 10431 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10432 && test no = "$tmp_diet" 10433 then 10434 tmp_addflag=' $pic_flag' 10435 tmp_sharedflag='-shared' 10436 case $cc_basename,$host_cpu in 10437 pgcc*) # Portland Group C compiler 10438 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' 10439 tmp_addflag=' $pic_flag' 10440 ;; 10441 pgf77* | pgf90* | pgf95* | pgfortran*) 10442 # Portland Group f77 and f90 compilers 10443 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' 10444 tmp_addflag=' $pic_flag -Mnomain' ;; 10445 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10446 tmp_addflag=' -i_dynamic' ;; 10447 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10448 tmp_addflag=' -i_dynamic -nofor_main' ;; 10449 ifc* | ifort*) # Intel Fortran compiler 10450 tmp_addflag=' -nofor_main' ;; 10451 lf95*) # Lahey Fortran 8.1 10452 whole_archive_flag_spec= 10453 tmp_sharedflag='--shared' ;; 10454 nagfor*) # NAGFOR 5.3 10455 tmp_sharedflag='-Wl,-shared' ;; 10456 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10457 tmp_sharedflag='-qmkshrobj' 10458 tmp_addflag= ;; 10459 nvcc*) # Cuda Compiler Driver 2.2 10460 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' 10461 compiler_needs_object=yes 10462 ;; 10463 esac 10464 case `$CC -V 2>&1 | sed 5q` in 10465 *Sun\ C*) # Sun C 5.9 10466 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' 10467 compiler_needs_object=yes 10468 tmp_sharedflag='-G' ;; 10469 *Sun\ F*) # Sun Fortran 8.3 10470 tmp_sharedflag='-G' ;; 10471 esac 10472 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10473 10474 if test yes = "$supports_anon_versioning"; then 10475 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10477 echo "local: *; };" >> $output_objdir/$libname.ver~ 10478 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10479 fi 10480 10481 case $cc_basename in 10482 tcc*) 10483 export_dynamic_flag_spec='-rdynamic' 10484 ;; 10485 xlf* | bgf* | bgxlf* | mpixlf*) 10486 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10487 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10488 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10489 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10490 if test yes = "$supports_anon_versioning"; then 10491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10493 echo "local: *; };" >> $output_objdir/$libname.ver~ 10494 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10495 fi 10496 ;; 10497 esac 10498 else 10499 ld_shlibs=no 10500 fi 10501 ;; 10502 10503 netbsd*) 10504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10505 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10506 wlarc= 10507 else 10508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10509 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10510 fi 10511 ;; 10512 10513 solaris*) 10514 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10515 ld_shlibs=no 10516 cat <<_LT_EOF 1>&2 10517 10518*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10519*** create shared libraries on Solaris systems. Therefore, libtool 10520*** is disabling shared libraries support. We urge you to upgrade GNU 10521*** binutils to release 2.9.1 or newer. Another option is to modify 10522*** your PATH or compiler configuration so that the native linker is 10523*** used, and then restart. 10524 10525_LT_EOF 10526 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10529 else 10530 ld_shlibs=no 10531 fi 10532 ;; 10533 10534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10535 case `$LD -v 2>&1` in 10536 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10537 ld_shlibs=no 10538 cat <<_LT_EOF 1>&2 10539 10540*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10541*** reliably create shared libraries on SCO systems. Therefore, libtool 10542*** is disabling shared libraries support. We urge you to upgrade GNU 10543*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10544*** your PATH or compiler configuration so that the native linker is 10545*** used, and then restart. 10546 10547_LT_EOF 10548 ;; 10549 *) 10550 # For security reasons, it is highly recommended that you always 10551 # use absolute paths for naming shared libraries, and exclude the 10552 # DT_RUNPATH tag from executables and libraries. But doing so 10553 # requires that you compile everything twice, which is a pain. 10554 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10558 else 10559 ld_shlibs=no 10560 fi 10561 ;; 10562 esac 10563 ;; 10564 10565 sunos4*) 10566 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10567 wlarc= 10568 hardcode_direct=yes 10569 hardcode_shlibpath_var=no 10570 ;; 10571 10572 *) 10573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10574 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10575 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10576 else 10577 ld_shlibs=no 10578 fi 10579 ;; 10580 esac 10581 10582 if test no = "$ld_shlibs"; then 10583 runpath_var= 10584 hardcode_libdir_flag_spec= 10585 export_dynamic_flag_spec= 10586 whole_archive_flag_spec= 10587 fi 10588 else 10589 # PORTME fill in a description of your system's linker (not GNU ld) 10590 case $host_os in 10591 aix3*) 10592 allow_undefined_flag=unsupported 10593 always_export_symbols=yes 10594 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' 10595 # Note: this linker hardcodes the directories in LIBPATH if there 10596 # are no directories specified by -L. 10597 hardcode_minus_L=yes 10598 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10599 # Neither direct hardcoding nor static linking is supported with a 10600 # broken collect2. 10601 hardcode_direct=unsupported 10602 fi 10603 ;; 10604 10605 aix[4-9]*) 10606 if test ia64 = "$host_cpu"; then 10607 # On IA64, the linker does run time linking by default, so we don't 10608 # have to do anything special. 10609 aix_use_runtimelinking=no 10610 exp_sym_flag='-Bexport' 10611 no_entry_flag= 10612 else 10613 # If we're using GNU nm, then we don't want the "-C" option. 10614 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10615 # Without the "-l" option, or with the "-B" option, AIX nm treats 10616 # weak defined symbols like other global defined symbols, whereas 10617 # GNU nm marks them as "W". 10618 # While the 'weak' keyword is ignored in the Export File, we need 10619 # it in the Import File for the 'aix-soname' feature, so we have 10620 # to replace the "-B" option with "-P" for AIX nm. 10621 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10622 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10623 else 10624 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10625 fi 10626 aix_use_runtimelinking=no 10627 10628 # Test if we are trying to use run time linking or normal 10629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10630 # have runtime linking enabled, and use it for executables. 10631 # For shared libraries, we enable/disable runtime linking 10632 # depending on the kind of the shared library created - 10633 # when "with_aix_soname,aix_use_runtimelinking" is: 10634 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10635 # "aix,yes" lib.so shared, rtl:yes, for executables 10636 # lib.a static archive 10637 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10638 # lib.a(lib.so.V) shared, rtl:no, for executables 10639 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10640 # lib.a(lib.so.V) shared, rtl:no 10641 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10642 # lib.a static archive 10643 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10644 for ld_flag in $LDFLAGS; do 10645 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10646 aix_use_runtimelinking=yes 10647 break 10648 fi 10649 done 10650 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10651 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10652 # so we don't have lib.a shared libs to link our executables. 10653 # We have to force runtime linking in this case. 10654 aix_use_runtimelinking=yes 10655 LDFLAGS="$LDFLAGS -Wl,-brtl" 10656 fi 10657 ;; 10658 esac 10659 10660 exp_sym_flag='-bexport' 10661 no_entry_flag='-bnoentry' 10662 fi 10663 10664 # When large executables or shared objects are built, AIX ld can 10665 # have problems creating the table of contents. If linking a library 10666 # or program results in "error TOC overflow" add -mminimal-toc to 10667 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10668 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10669 10670 archive_cmds='' 10671 hardcode_direct=yes 10672 hardcode_direct_absolute=yes 10673 hardcode_libdir_separator=':' 10674 link_all_deplibs=yes 10675 file_list_spec='$wl-f,' 10676 case $with_aix_soname,$aix_use_runtimelinking in 10677 aix,*) ;; # traditional, no import file 10678 svr4,* | *,yes) # use import file 10679 # The Import File defines what to hardcode. 10680 hardcode_direct=no 10681 hardcode_direct_absolute=no 10682 ;; 10683 esac 10684 10685 if test yes = "$GCC"; then 10686 case $host_os in aix4.[012]|aix4.[012].*) 10687 # We only want to do this on AIX 4.2 and lower, the check 10688 # below for broken collect2 doesn't work under 4.3+ 10689 collect2name=`$CC -print-prog-name=collect2` 10690 if test -f "$collect2name" && 10691 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10692 then 10693 # We have reworked collect2 10694 : 10695 else 10696 # We have old collect2 10697 hardcode_direct=unsupported 10698 # It fails to find uninstalled libraries when the uninstalled 10699 # path is not listed in the libpath. Setting hardcode_minus_L 10700 # to unsupported forces relinking 10701 hardcode_minus_L=yes 10702 hardcode_libdir_flag_spec='-L$libdir' 10703 hardcode_libdir_separator= 10704 fi 10705 ;; 10706 esac 10707 shared_flag='-shared' 10708 if test yes = "$aix_use_runtimelinking"; then 10709 shared_flag="$shared_flag "'$wl-G' 10710 fi 10711 # Need to ensure runtime linking is disabled for the traditional 10712 # shared library, or the linker may eventually find shared libraries 10713 # /with/ Import File - we do not want to mix them. 10714 shared_flag_aix='-shared' 10715 shared_flag_svr4='-shared $wl-G' 10716 else 10717 # not using gcc 10718 if test ia64 = "$host_cpu"; then 10719 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10720 # chokes on -Wl,-G. The following line is correct: 10721 shared_flag='-G' 10722 else 10723 if test yes = "$aix_use_runtimelinking"; then 10724 shared_flag='$wl-G' 10725 else 10726 shared_flag='$wl-bM:SRE' 10727 fi 10728 shared_flag_aix='$wl-bM:SRE' 10729 shared_flag_svr4='$wl-G' 10730 fi 10731 fi 10732 10733 export_dynamic_flag_spec='$wl-bexpall' 10734 # It seems that -bexpall does not export symbols beginning with 10735 # underscore (_), so it is better to generate a list of symbols to export. 10736 always_export_symbols=yes 10737 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10738 # Warning - without using the other runtime loading flags (-brtl), 10739 # -berok will link without error, but may produce a broken library. 10740 allow_undefined_flag='-berok' 10741 # Determine the default libpath from the value encoded in an 10742 # empty executable. 10743 if test set = "${lt_cv_aix_libpath+set}"; then 10744 aix_libpath=$lt_cv_aix_libpath 10745else 10746 if ${lt_cv_aix_libpath_+:} false; then : 10747 $as_echo_n "(cached) " >&6 10748else 10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10750/* end confdefs.h. */ 10751 10752int 10753main () 10754{ 10755 10756 ; 10757 return 0; 10758} 10759_ACEOF 10760if ac_fn_c_try_link "$LINENO"; then : 10761 10762 lt_aix_libpath_sed=' 10763 /Import File Strings/,/^$/ { 10764 /^0/ { 10765 s/^0 *\([^ ]*\) *$/\1/ 10766 p 10767 } 10768 }' 10769 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10770 # Check for a 64-bit object if we didn't find anything. 10771 if test -z "$lt_cv_aix_libpath_"; then 10772 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10773 fi 10774fi 10775rm -f core conftest.err conftest.$ac_objext \ 10776 conftest$ac_exeext conftest.$ac_ext 10777 if test -z "$lt_cv_aix_libpath_"; then 10778 lt_cv_aix_libpath_=/usr/lib:/lib 10779 fi 10780 10781fi 10782 10783 aix_libpath=$lt_cv_aix_libpath_ 10784fi 10785 10786 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10787 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10788 else 10789 if test ia64 = "$host_cpu"; then 10790 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10791 allow_undefined_flag="-z nodefs" 10792 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" 10793 else 10794 # Determine the default libpath from the value encoded in an 10795 # empty executable. 10796 if test set = "${lt_cv_aix_libpath+set}"; then 10797 aix_libpath=$lt_cv_aix_libpath 10798else 10799 if ${lt_cv_aix_libpath_+:} false; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10803/* end confdefs.h. */ 10804 10805int 10806main () 10807{ 10808 10809 ; 10810 return 0; 10811} 10812_ACEOF 10813if ac_fn_c_try_link "$LINENO"; then : 10814 10815 lt_aix_libpath_sed=' 10816 /Import File Strings/,/^$/ { 10817 /^0/ { 10818 s/^0 *\([^ ]*\) *$/\1/ 10819 p 10820 } 10821 }' 10822 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10823 # Check for a 64-bit object if we didn't find anything. 10824 if test -z "$lt_cv_aix_libpath_"; then 10825 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10826 fi 10827fi 10828rm -f core conftest.err conftest.$ac_objext \ 10829 conftest$ac_exeext conftest.$ac_ext 10830 if test -z "$lt_cv_aix_libpath_"; then 10831 lt_cv_aix_libpath_=/usr/lib:/lib 10832 fi 10833 10834fi 10835 10836 aix_libpath=$lt_cv_aix_libpath_ 10837fi 10838 10839 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10840 # Warning - without using the other run time loading flags, 10841 # -berok will link without error, but may produce a broken library. 10842 no_undefined_flag=' $wl-bernotok' 10843 allow_undefined_flag=' $wl-berok' 10844 if test yes = "$with_gnu_ld"; then 10845 # We only use this code for GNU lds that support --whole-archive. 10846 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10847 else 10848 # Exported symbols can be pulled into shared objects from archives 10849 whole_archive_flag_spec='$convenience' 10850 fi 10851 archive_cmds_need_lc=yes 10852 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10853 # -brtl affects multiple linker settings, -berok does not and is overridden later 10854 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10855 if test svr4 != "$with_aix_soname"; then 10856 # This is similar to how AIX traditionally builds its shared libraries. 10857 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10858 fi 10859 if test aix != "$with_aix_soname"; then 10860 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10861 else 10862 # used by -dlpreopen to get the symbols 10863 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10864 fi 10865 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10866 fi 10867 fi 10868 ;; 10869 10870 amigaos*) 10871 case $host_cpu in 10872 powerpc) 10873 # see comment about AmigaOS4 .so support 10874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10875 archive_expsym_cmds='' 10876 ;; 10877 m68k) 10878 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)' 10879 hardcode_libdir_flag_spec='-L$libdir' 10880 hardcode_minus_L=yes 10881 ;; 10882 esac 10883 ;; 10884 10885 bsdi[45]*) 10886 export_dynamic_flag_spec=-rdynamic 10887 ;; 10888 10889 cygwin* | mingw* | pw32* | cegcc*) 10890 # When not using gcc, we currently assume that we are using 10891 # Microsoft Visual C++. 10892 # hardcode_libdir_flag_spec is actually meaningless, as there is 10893 # no search path for DLLs. 10894 case $cc_basename in 10895 cl*) 10896 # Native MSVC 10897 hardcode_libdir_flag_spec=' ' 10898 allow_undefined_flag=unsupported 10899 always_export_symbols=yes 10900 file_list_spec='@' 10901 # Tell ltmain to make .lib files, not .a files. 10902 libext=lib 10903 # Tell ltmain to make .dll files, not .so files. 10904 shrext_cmds=.dll 10905 # FIXME: Setting linknames here is a bad hack. 10906 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10907 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10908 cp "$export_symbols" "$output_objdir/$soname.def"; 10909 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10910 else 10911 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10912 fi~ 10913 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10914 linknames=' 10915 # The linker will not automatically build a static lib if we build a DLL. 10916 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10917 enable_shared_with_static_runtimes=yes 10918 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10920 # Don't use ranlib 10921 old_postinstall_cmds='chmod 644 $oldlib' 10922 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10923 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10924 case $lt_outputfile in 10925 *.exe|*.EXE) ;; 10926 *) 10927 lt_outputfile=$lt_outputfile.exe 10928 lt_tool_outputfile=$lt_tool_outputfile.exe 10929 ;; 10930 esac~ 10931 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10932 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10933 $RM "$lt_outputfile.manifest"; 10934 fi' 10935 ;; 10936 *) 10937 # Assume MSVC wrapper 10938 hardcode_libdir_flag_spec=' ' 10939 allow_undefined_flag=unsupported 10940 # Tell ltmain to make .lib files, not .a files. 10941 libext=lib 10942 # Tell ltmain to make .dll files, not .so files. 10943 shrext_cmds=.dll 10944 # FIXME: Setting linknames here is a bad hack. 10945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10946 # The linker will automatically build a .lib file if we build a DLL. 10947 old_archive_from_new_cmds='true' 10948 # FIXME: Should let the user specify the lib program. 10949 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10950 enable_shared_with_static_runtimes=yes 10951 ;; 10952 esac 10953 ;; 10954 10955 darwin* | rhapsody*) 10956 10957 10958 archive_cmds_need_lc=no 10959 hardcode_direct=no 10960 hardcode_automatic=yes 10961 hardcode_shlibpath_var=unsupported 10962 if test yes = "$lt_cv_ld_force_load"; then 10963 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\"`' 10964 10965 else 10966 whole_archive_flag_spec='' 10967 fi 10968 link_all_deplibs=yes 10969 allow_undefined_flag=$_lt_dar_allow_undefined 10970 case $cc_basename in 10971 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10972 *) _lt_dar_can_shared=$GCC ;; 10973 esac 10974 if test yes = "$_lt_dar_can_shared"; then 10975 output_verbose_link_cmd=func_echo_all 10976 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10977 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10978 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" 10979 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" 10980 10981 else 10982 ld_shlibs=no 10983 fi 10984 10985 ;; 10986 10987 dgux*) 10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10989 hardcode_libdir_flag_spec='-L$libdir' 10990 hardcode_shlibpath_var=no 10991 ;; 10992 10993 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10994 # support. Future versions do this automatically, but an explicit c++rt0.o 10995 # does not break anything, and helps significantly (at the cost of a little 10996 # extra space). 10997 freebsd2.2*) 10998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10999 hardcode_libdir_flag_spec='-R$libdir' 11000 hardcode_direct=yes 11001 hardcode_shlibpath_var=no 11002 ;; 11003 11004 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11005 freebsd2.*) 11006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11007 hardcode_direct=yes 11008 hardcode_minus_L=yes 11009 hardcode_shlibpath_var=no 11010 ;; 11011 11012 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11013 freebsd* | dragonfly*) 11014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11015 hardcode_libdir_flag_spec='-R$libdir' 11016 hardcode_direct=yes 11017 hardcode_shlibpath_var=no 11018 ;; 11019 11020 hpux9*) 11021 if test yes = "$GCC"; then 11022 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11023 else 11024 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11025 fi 11026 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11027 hardcode_libdir_separator=: 11028 hardcode_direct=yes 11029 11030 # hardcode_minus_L: Not really in the search PATH, 11031 # but as the default location of the library. 11032 hardcode_minus_L=yes 11033 export_dynamic_flag_spec='$wl-E' 11034 ;; 11035 11036 hpux10*) 11037 if test yes,no = "$GCC,$with_gnu_ld"; then 11038 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11039 else 11040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11041 fi 11042 if test no = "$with_gnu_ld"; then 11043 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11044 hardcode_libdir_separator=: 11045 hardcode_direct=yes 11046 hardcode_direct_absolute=yes 11047 export_dynamic_flag_spec='$wl-E' 11048 # hardcode_minus_L: Not really in the search PATH, 11049 # but as the default location of the library. 11050 hardcode_minus_L=yes 11051 fi 11052 ;; 11053 11054 hpux11*) 11055 if test yes,no = "$GCC,$with_gnu_ld"; then 11056 case $host_cpu in 11057 hppa*64*) 11058 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11059 ;; 11060 ia64*) 11061 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11062 ;; 11063 *) 11064 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11065 ;; 11066 esac 11067 else 11068 case $host_cpu in 11069 hppa*64*) 11070 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11071 ;; 11072 ia64*) 11073 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11074 ;; 11075 *) 11076 11077 # Older versions of the 11.00 compiler do not understand -b yet 11078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11080$as_echo_n "checking if $CC understands -b... " >&6; } 11081if ${lt_cv_prog_compiler__b+:} false; then : 11082 $as_echo_n "(cached) " >&6 11083else 11084 lt_cv_prog_compiler__b=no 11085 save_LDFLAGS=$LDFLAGS 11086 LDFLAGS="$LDFLAGS -b" 11087 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11089 # The linker can only warn and ignore the option if not recognized 11090 # So say no if there are warnings 11091 if test -s conftest.err; then 11092 # Append any errors to the config.log. 11093 cat conftest.err 1>&5 11094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11096 if diff conftest.exp conftest.er2 >/dev/null; then 11097 lt_cv_prog_compiler__b=yes 11098 fi 11099 else 11100 lt_cv_prog_compiler__b=yes 11101 fi 11102 fi 11103 $RM -r conftest* 11104 LDFLAGS=$save_LDFLAGS 11105 11106fi 11107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11108$as_echo "$lt_cv_prog_compiler__b" >&6; } 11109 11110if test yes = "$lt_cv_prog_compiler__b"; then 11111 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11112else 11113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11114fi 11115 11116 ;; 11117 esac 11118 fi 11119 if test no = "$with_gnu_ld"; then 11120 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11121 hardcode_libdir_separator=: 11122 11123 case $host_cpu in 11124 hppa*64*|ia64*) 11125 hardcode_direct=no 11126 hardcode_shlibpath_var=no 11127 ;; 11128 *) 11129 hardcode_direct=yes 11130 hardcode_direct_absolute=yes 11131 export_dynamic_flag_spec='$wl-E' 11132 11133 # hardcode_minus_L: Not really in the search PATH, 11134 # but as the default location of the library. 11135 hardcode_minus_L=yes 11136 ;; 11137 esac 11138 fi 11139 ;; 11140 11141 irix5* | irix6* | nonstopux*) 11142 if test yes = "$GCC"; then 11143 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' 11144 # Try to use the -exported_symbol ld option, if it does not 11145 # work, assume that -exports_file does not work either and 11146 # implicitly export all symbols. 11147 # This should be the same for all languages, so no per-tag cache variable. 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11149$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11150if ${lt_cv_irix_exported_symbol+:} false; then : 11151 $as_echo_n "(cached) " >&6 11152else 11153 save_LDFLAGS=$LDFLAGS 11154 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11156/* end confdefs.h. */ 11157int foo (void) { return 0; } 11158_ACEOF 11159if ac_fn_c_try_link "$LINENO"; then : 11160 lt_cv_irix_exported_symbol=yes 11161else 11162 lt_cv_irix_exported_symbol=no 11163fi 11164rm -f core conftest.err conftest.$ac_objext \ 11165 conftest$ac_exeext conftest.$ac_ext 11166 LDFLAGS=$save_LDFLAGS 11167fi 11168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11169$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11170 if test yes = "$lt_cv_irix_exported_symbol"; then 11171 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' 11172 fi 11173 else 11174 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' 11175 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' 11176 fi 11177 archive_cmds_need_lc='no' 11178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11179 hardcode_libdir_separator=: 11180 inherit_rpath=yes 11181 link_all_deplibs=yes 11182 ;; 11183 11184 linux*) 11185 case $cc_basename in 11186 tcc*) 11187 # Fabrice Bellard et al's Tiny C Compiler 11188 ld_shlibs=yes 11189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11190 ;; 11191 esac 11192 ;; 11193 11194 netbsd*) 11195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11197 else 11198 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11199 fi 11200 hardcode_libdir_flag_spec='-R$libdir' 11201 hardcode_direct=yes 11202 hardcode_shlibpath_var=no 11203 ;; 11204 11205 newsos6) 11206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11207 hardcode_direct=yes 11208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11209 hardcode_libdir_separator=: 11210 hardcode_shlibpath_var=no 11211 ;; 11212 11213 *nto* | *qnx*) 11214 ;; 11215 11216 openbsd* | bitrig*) 11217 if test -f /usr/libexec/ld.so; then 11218 hardcode_direct=yes 11219 hardcode_shlibpath_var=no 11220 hardcode_direct_absolute=yes 11221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11223 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11224 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11225 export_dynamic_flag_spec='$wl-E' 11226 else 11227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11228 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11229 fi 11230 else 11231 ld_shlibs=no 11232 fi 11233 ;; 11234 11235 os2*) 11236 hardcode_libdir_flag_spec='-L$libdir' 11237 hardcode_minus_L=yes 11238 allow_undefined_flag=unsupported 11239 shrext_cmds=.dll 11240 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11241 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11242 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11243 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11244 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11245 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11246 emximp -o $lib $output_objdir/$libname.def' 11247 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11248 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11249 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11250 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11251 prefix_cmds="$SED"~ 11252 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11253 prefix_cmds="$prefix_cmds -e 1d"; 11254 fi~ 11255 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11256 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11257 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11258 emximp -o $lib $output_objdir/$libname.def' 11259 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11260 enable_shared_with_static_runtimes=yes 11261 ;; 11262 11263 osf3*) 11264 if test yes = "$GCC"; then 11265 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11266 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' 11267 else 11268 allow_undefined_flag=' -expect_unresolved \*' 11269 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' 11270 fi 11271 archive_cmds_need_lc='no' 11272 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11273 hardcode_libdir_separator=: 11274 ;; 11275 11276 osf4* | osf5*) # as osf3* with the addition of -msym flag 11277 if test yes = "$GCC"; then 11278 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11279 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' 11280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11281 else 11282 allow_undefined_flag=' -expect_unresolved \*' 11283 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' 11284 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~ 11285 $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' 11286 11287 # Both c and cxx compiler support -rpath directly 11288 hardcode_libdir_flag_spec='-rpath $libdir' 11289 fi 11290 archive_cmds_need_lc='no' 11291 hardcode_libdir_separator=: 11292 ;; 11293 11294 solaris*) 11295 no_undefined_flag=' -z defs' 11296 if test yes = "$GCC"; then 11297 wlarc='$wl' 11298 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11299 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11300 $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' 11301 else 11302 case `$CC -V 2>&1` in 11303 *"Compilers 5.0"*) 11304 wlarc='' 11305 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11307 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11308 ;; 11309 *) 11310 wlarc='$wl' 11311 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11312 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11313 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11314 ;; 11315 esac 11316 fi 11317 hardcode_libdir_flag_spec='-R$libdir' 11318 hardcode_shlibpath_var=no 11319 case $host_os in 11320 solaris2.[0-5] | solaris2.[0-5].*) ;; 11321 *) 11322 # The compiler driver will combine and reorder linker options, 11323 # but understands '-z linker_flag'. GCC discards it without '$wl', 11324 # but is careful enough not to reorder. 11325 # Supported since Solaris 2.6 (maybe 2.5.1?) 11326 if test yes = "$GCC"; then 11327 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11328 else 11329 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11330 fi 11331 ;; 11332 esac 11333 link_all_deplibs=yes 11334 ;; 11335 11336 sunos4*) 11337 if test sequent = "$host_vendor"; then 11338 # Use $CC to link under sequent, because it throws in some extra .o 11339 # files that make .init and .fini sections work. 11340 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11341 else 11342 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11343 fi 11344 hardcode_libdir_flag_spec='-L$libdir' 11345 hardcode_direct=yes 11346 hardcode_minus_L=yes 11347 hardcode_shlibpath_var=no 11348 ;; 11349 11350 sysv4) 11351 case $host_vendor in 11352 sni) 11353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11354 hardcode_direct=yes # is this really true??? 11355 ;; 11356 siemens) 11357 ## LD is ld it makes a PLAMLIB 11358 ## CC just makes a GrossModule. 11359 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11360 reload_cmds='$CC -r -o $output$reload_objs' 11361 hardcode_direct=no 11362 ;; 11363 motorola) 11364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11365 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11366 ;; 11367 esac 11368 runpath_var='LD_RUN_PATH' 11369 hardcode_shlibpath_var=no 11370 ;; 11371 11372 sysv4.3*) 11373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11374 hardcode_shlibpath_var=no 11375 export_dynamic_flag_spec='-Bexport' 11376 ;; 11377 11378 sysv4*MP*) 11379 if test -d /usr/nec; then 11380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11381 hardcode_shlibpath_var=no 11382 runpath_var=LD_RUN_PATH 11383 hardcode_runpath_var=yes 11384 ld_shlibs=yes 11385 fi 11386 ;; 11387 11388 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11389 no_undefined_flag='$wl-z,text' 11390 archive_cmds_need_lc=no 11391 hardcode_shlibpath_var=no 11392 runpath_var='LD_RUN_PATH' 11393 11394 if test yes = "$GCC"; then 11395 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11396 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11397 else 11398 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11399 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11400 fi 11401 ;; 11402 11403 sysv5* | sco3.2v5* | sco5v6*) 11404 # Note: We CANNOT use -z defs as we might desire, because we do not 11405 # link with -lc, and that would cause any symbols used from libc to 11406 # always be unresolved, which means just about no library would 11407 # ever link correctly. If we're not using GNU ld we use -z text 11408 # though, which does catch some bad symbols but isn't as heavy-handed 11409 # as -z defs. 11410 no_undefined_flag='$wl-z,text' 11411 allow_undefined_flag='$wl-z,nodefs' 11412 archive_cmds_need_lc=no 11413 hardcode_shlibpath_var=no 11414 hardcode_libdir_flag_spec='$wl-R,$libdir' 11415 hardcode_libdir_separator=':' 11416 link_all_deplibs=yes 11417 export_dynamic_flag_spec='$wl-Bexport' 11418 runpath_var='LD_RUN_PATH' 11419 11420 if test yes = "$GCC"; then 11421 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11422 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11423 else 11424 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11425 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11426 fi 11427 ;; 11428 11429 uts4*) 11430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11431 hardcode_libdir_flag_spec='-L$libdir' 11432 hardcode_shlibpath_var=no 11433 ;; 11434 11435 *) 11436 ld_shlibs=no 11437 ;; 11438 esac 11439 11440 if test sni = "$host_vendor"; then 11441 case $host in 11442 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11443 export_dynamic_flag_spec='$wl-Blargedynsym' 11444 ;; 11445 esac 11446 fi 11447 fi 11448 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11450$as_echo "$ld_shlibs" >&6; } 11451test no = "$ld_shlibs" && can_build_shared=no 11452 11453with_gnu_ld=$with_gnu_ld 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469# 11470# Do we need to explicitly link libc? 11471# 11472case "x$archive_cmds_need_lc" in 11473x|xyes) 11474 # Assume -lc should be added 11475 archive_cmds_need_lc=yes 11476 11477 if test yes,yes = "$GCC,$enable_shared"; then 11478 case $archive_cmds in 11479 *'~'*) 11480 # FIXME: we may have to deal with multi-command sequences. 11481 ;; 11482 '$CC '*) 11483 # Test whether the compiler implicitly links with -lc since on some 11484 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11485 # to ld, don't add -lc before -lgcc. 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11487$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11488if ${lt_cv_archive_cmds_need_lc+:} false; then : 11489 $as_echo_n "(cached) " >&6 11490else 11491 $RM conftest* 11492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11493 11494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11495 (eval $ac_compile) 2>&5 11496 ac_status=$? 11497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11498 test $ac_status = 0; } 2>conftest.err; then 11499 soname=conftest 11500 lib=conftest 11501 libobjs=conftest.$ac_objext 11502 deplibs= 11503 wl=$lt_prog_compiler_wl 11504 pic_flag=$lt_prog_compiler_pic 11505 compiler_flags=-v 11506 linker_flags=-v 11507 verstring= 11508 output_objdir=. 11509 libname=conftest 11510 lt_save_allow_undefined_flag=$allow_undefined_flag 11511 allow_undefined_flag= 11512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11513 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11514 ac_status=$? 11515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11516 test $ac_status = 0; } 11517 then 11518 lt_cv_archive_cmds_need_lc=no 11519 else 11520 lt_cv_archive_cmds_need_lc=yes 11521 fi 11522 allow_undefined_flag=$lt_save_allow_undefined_flag 11523 else 11524 cat conftest.err 1>&5 11525 fi 11526 $RM conftest* 11527 11528fi 11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11530$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11531 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11532 ;; 11533 esac 11534 fi 11535 ;; 11536esac 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 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 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11690$as_echo_n "checking dynamic linker characteristics... " >&6; } 11691 11692if test yes = "$GCC"; then 11693 case $host_os in 11694 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11695 *) lt_awk_arg='/^libraries:/' ;; 11696 esac 11697 case $host_os in 11698 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11699 *) lt_sed_strip_eq='s|=/|/|g' ;; 11700 esac 11701 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11702 case $lt_search_path_spec in 11703 *\;*) 11704 # if the path contains ";" then we assume it to be the separator 11705 # otherwise default to the standard path separator (i.e. ":") - it is 11706 # assumed that no part of a normal pathname contains ";" but that should 11707 # okay in the real world where ";" in dirpaths is itself problematic. 11708 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11709 ;; 11710 *) 11711 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11712 ;; 11713 esac 11714 # Ok, now we have the path, separated by spaces, we can step through it 11715 # and add multilib dir if necessary... 11716 lt_tmp_lt_search_path_spec= 11717 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11718 # ...but if some path component already ends with the multilib dir we assume 11719 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11720 case "$lt_multi_os_dir; $lt_search_path_spec " in 11721 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11722 lt_multi_os_dir= 11723 ;; 11724 esac 11725 for lt_sys_path in $lt_search_path_spec; do 11726 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11728 elif test -n "$lt_multi_os_dir"; then 11729 test -d "$lt_sys_path" && \ 11730 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11731 fi 11732 done 11733 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11734BEGIN {RS = " "; FS = "/|\n";} { 11735 lt_foo = ""; 11736 lt_count = 0; 11737 for (lt_i = NF; lt_i > 0; lt_i--) { 11738 if ($lt_i != "" && $lt_i != ".") { 11739 if ($lt_i == "..") { 11740 lt_count++; 11741 } else { 11742 if (lt_count == 0) { 11743 lt_foo = "/" $lt_i lt_foo; 11744 } else { 11745 lt_count--; 11746 } 11747 } 11748 } 11749 } 11750 if (lt_foo != "") { lt_freq[lt_foo]++; } 11751 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11752}'` 11753 # AWK program above erroneously prepends '/' to C:/dos/paths 11754 # for these hosts. 11755 case $host_os in 11756 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11757 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11758 esac 11759 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11760else 11761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11762fi 11763library_names_spec= 11764libname_spec='lib$name' 11765soname_spec= 11766shrext_cmds=.so 11767postinstall_cmds= 11768postuninstall_cmds= 11769finish_cmds= 11770finish_eval= 11771shlibpath_var= 11772shlibpath_overrides_runpath=unknown 11773version_type=none 11774dynamic_linker="$host_os ld.so" 11775sys_lib_dlsearch_path_spec="/lib /usr/lib" 11776need_lib_prefix=unknown 11777hardcode_into_libs=no 11778 11779# when you set need_version to no, make sure it does not cause -set_version 11780# flags to be left without arguments 11781need_version=unknown 11782 11783 11784 11785case $host_os in 11786aix3*) 11787 version_type=linux # correct to gnu/linux during the next big refactor 11788 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11789 shlibpath_var=LIBPATH 11790 11791 # AIX 3 has no versioning support, so we append a major version to the name. 11792 soname_spec='$libname$release$shared_ext$major' 11793 ;; 11794 11795aix[4-9]*) 11796 version_type=linux # correct to gnu/linux during the next big refactor 11797 need_lib_prefix=no 11798 need_version=no 11799 hardcode_into_libs=yes 11800 if test ia64 = "$host_cpu"; then 11801 # AIX 5 supports IA64 11802 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11803 shlibpath_var=LD_LIBRARY_PATH 11804 else 11805 # With GCC up to 2.95.x, collect2 would create an import file 11806 # for dependence libraries. The import file would start with 11807 # the line '#! .'. This would cause the generated library to 11808 # depend on '.', always an invalid library. This was fixed in 11809 # development snapshots of GCC prior to 3.0. 11810 case $host_os in 11811 aix4 | aix4.[01] | aix4.[01].*) 11812 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11813 echo ' yes ' 11814 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11815 : 11816 else 11817 can_build_shared=no 11818 fi 11819 ;; 11820 esac 11821 # Using Import Files as archive members, it is possible to support 11822 # filename-based versioning of shared library archives on AIX. While 11823 # this would work for both with and without runtime linking, it will 11824 # prevent static linking of such archives. So we do filename-based 11825 # shared library versioning with .so extension only, which is used 11826 # when both runtime linking and shared linking is enabled. 11827 # Unfortunately, runtime linking may impact performance, so we do 11828 # not want this to be the default eventually. Also, we use the 11829 # versioned .so libs for executables only if there is the -brtl 11830 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11831 # To allow for filename-based versioning support, we need to create 11832 # libNAME.so.V as an archive file, containing: 11833 # *) an Import File, referring to the versioned filename of the 11834 # archive as well as the shared archive member, telling the 11835 # bitwidth (32 or 64) of that shared object, and providing the 11836 # list of exported symbols of that shared object, eventually 11837 # decorated with the 'weak' keyword 11838 # *) the shared object with the F_LOADONLY flag set, to really avoid 11839 # it being seen by the linker. 11840 # At run time we better use the real file rather than another symlink, 11841 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11842 11843 case $with_aix_soname,$aix_use_runtimelinking in 11844 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11845 # soname into executable. Probably we can add versioning support to 11846 # collect2, so additional links can be useful in future. 11847 aix,yes) # traditional libtool 11848 dynamic_linker='AIX unversionable lib.so' 11849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11850 # instead of lib<name>.a to let people know that these are not 11851 # typical AIX shared libraries. 11852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11853 ;; 11854 aix,no) # traditional AIX only 11855 dynamic_linker='AIX lib.a(lib.so.V)' 11856 # We preserve .a as extension for shared libraries through AIX4.2 11857 # and later when we are not doing run time linking. 11858 library_names_spec='$libname$release.a $libname.a' 11859 soname_spec='$libname$release$shared_ext$major' 11860 ;; 11861 svr4,*) # full svr4 only 11862 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11863 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11864 # We do not specify a path in Import Files, so LIBPATH fires. 11865 shlibpath_overrides_runpath=yes 11866 ;; 11867 *,yes) # both, prefer svr4 11868 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11869 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11870 # unpreferred sharedlib libNAME.a needs extra handling 11871 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11872 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11873 # We do not specify a path in Import Files, so LIBPATH fires. 11874 shlibpath_overrides_runpath=yes 11875 ;; 11876 *,no) # both, prefer aix 11877 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11878 library_names_spec='$libname$release.a $libname.a' 11879 soname_spec='$libname$release$shared_ext$major' 11880 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11881 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11882 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11883 ;; 11884 esac 11885 shlibpath_var=LIBPATH 11886 fi 11887 ;; 11888 11889amigaos*) 11890 case $host_cpu in 11891 powerpc) 11892 # Since July 2007 AmigaOS4 officially supports .so libraries. 11893 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11895 ;; 11896 m68k) 11897 library_names_spec='$libname.ixlibrary $libname.a' 11898 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11899 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11900 ;; 11901 esac 11902 ;; 11903 11904beos*) 11905 library_names_spec='$libname$shared_ext' 11906 dynamic_linker="$host_os ld.so" 11907 shlibpath_var=LIBRARY_PATH 11908 ;; 11909 11910bsdi[45]*) 11911 version_type=linux # correct to gnu/linux during the next big refactor 11912 need_version=no 11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11914 soname_spec='$libname$release$shared_ext$major' 11915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11916 shlibpath_var=LD_LIBRARY_PATH 11917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11919 # the default ld.so.conf also contains /usr/contrib/lib and 11920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11921 # libtool to hard-code these into programs 11922 ;; 11923 11924cygwin* | mingw* | pw32* | cegcc*) 11925 version_type=windows 11926 shrext_cmds=.dll 11927 need_version=no 11928 need_lib_prefix=no 11929 11930 case $GCC,$cc_basename in 11931 yes,*) 11932 # gcc 11933 library_names_spec='$libname.dll.a' 11934 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11935 postinstall_cmds='base_file=`basename \$file`~ 11936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11937 dldir=$destdir/`dirname \$dlpath`~ 11938 test -d \$dldir || mkdir -p \$dldir~ 11939 $install_prog $dir/$dlname \$dldir/$dlname~ 11940 chmod a+x \$dldir/$dlname~ 11941 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11942 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11943 fi' 11944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11945 dlpath=$dir/\$dldll~ 11946 $RM \$dlpath' 11947 shlibpath_overrides_runpath=yes 11948 11949 case $host_os in 11950 cygwin*) 11951 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11952 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11953 11954 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11955 ;; 11956 mingw* | cegcc*) 11957 # MinGW DLLs use traditional 'lib' prefix 11958 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11959 ;; 11960 pw32*) 11961 # pw32 DLLs use 'pw' prefix rather than 'lib' 11962 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11963 ;; 11964 esac 11965 dynamic_linker='Win32 ld.exe' 11966 ;; 11967 11968 *,cl*) 11969 # Native MSVC 11970 libname_spec='$name' 11971 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11972 library_names_spec='$libname.dll.lib' 11973 11974 case $build_os in 11975 mingw*) 11976 sys_lib_search_path_spec= 11977 lt_save_ifs=$IFS 11978 IFS=';' 11979 for lt_path in $LIB 11980 do 11981 IFS=$lt_save_ifs 11982 # Let DOS variable expansion print the short 8.3 style file name. 11983 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11984 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11985 done 11986 IFS=$lt_save_ifs 11987 # Convert to MSYS style. 11988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11989 ;; 11990 cygwin*) 11991 # Convert to unix form, then to dos form, then back to unix form 11992 # but this time dos style (no spaces!) so that the unix form looks 11993 # like /cygdrive/c/PROGRA~1:/cygdr... 11994 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11995 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11996 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11997 ;; 11998 *) 11999 sys_lib_search_path_spec=$LIB 12000 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12001 # It is most probably a Windows format PATH. 12002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12003 else 12004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12005 fi 12006 # FIXME: find the short name or the path components, as spaces are 12007 # common. (e.g. "Program Files" -> "PROGRA~1") 12008 ;; 12009 esac 12010 12011 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12012 postinstall_cmds='base_file=`basename \$file`~ 12013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12014 dldir=$destdir/`dirname \$dlpath`~ 12015 test -d \$dldir || mkdir -p \$dldir~ 12016 $install_prog $dir/$dlname \$dldir/$dlname' 12017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12018 dlpath=$dir/\$dldll~ 12019 $RM \$dlpath' 12020 shlibpath_overrides_runpath=yes 12021 dynamic_linker='Win32 link.exe' 12022 ;; 12023 12024 *) 12025 # Assume MSVC wrapper 12026 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12027 dynamic_linker='Win32 ld.exe' 12028 ;; 12029 esac 12030 # FIXME: first we should search . and the directory the executable is in 12031 shlibpath_var=PATH 12032 ;; 12033 12034darwin* | rhapsody*) 12035 dynamic_linker="$host_os dyld" 12036 version_type=darwin 12037 need_lib_prefix=no 12038 need_version=no 12039 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12040 soname_spec='$libname$release$major$shared_ext' 12041 shlibpath_overrides_runpath=yes 12042 shlibpath_var=DYLD_LIBRARY_PATH 12043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12044 12045 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12047 ;; 12048 12049dgux*) 12050 version_type=linux # correct to gnu/linux during the next big refactor 12051 need_lib_prefix=no 12052 need_version=no 12053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12054 soname_spec='$libname$release$shared_ext$major' 12055 shlibpath_var=LD_LIBRARY_PATH 12056 ;; 12057 12058freebsd* | dragonfly*) 12059 # DragonFly does not have aout. When/if they implement a new 12060 # versioning mechanism, adjust this. 12061 if test -x /usr/bin/objformat; then 12062 objformat=`/usr/bin/objformat` 12063 else 12064 case $host_os in 12065 freebsd[23].*) objformat=aout ;; 12066 *) objformat=elf ;; 12067 esac 12068 fi 12069 version_type=freebsd-$objformat 12070 case $version_type in 12071 freebsd-elf*) 12072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12073 soname_spec='$libname$release$shared_ext$major' 12074 need_version=no 12075 need_lib_prefix=no 12076 ;; 12077 freebsd-*) 12078 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12079 need_version=yes 12080 ;; 12081 esac 12082 shlibpath_var=LD_LIBRARY_PATH 12083 case $host_os in 12084 freebsd2.*) 12085 shlibpath_overrides_runpath=yes 12086 ;; 12087 freebsd3.[01]* | freebsdelf3.[01]*) 12088 shlibpath_overrides_runpath=yes 12089 hardcode_into_libs=yes 12090 ;; 12091 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12092 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12093 shlibpath_overrides_runpath=no 12094 hardcode_into_libs=yes 12095 ;; 12096 *) # from 4.6 on, and DragonFly 12097 shlibpath_overrides_runpath=yes 12098 hardcode_into_libs=yes 12099 ;; 12100 esac 12101 ;; 12102 12103haiku*) 12104 version_type=linux # correct to gnu/linux during the next big refactor 12105 need_lib_prefix=no 12106 need_version=no 12107 dynamic_linker="$host_os runtime_loader" 12108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12109 soname_spec='$libname$release$shared_ext$major' 12110 shlibpath_var=LIBRARY_PATH 12111 shlibpath_overrides_runpath=no 12112 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12113 hardcode_into_libs=yes 12114 ;; 12115 12116hpux9* | hpux10* | hpux11*) 12117 # Give a soname corresponding to the major version so that dld.sl refuses to 12118 # link against other versions. 12119 version_type=sunos 12120 need_lib_prefix=no 12121 need_version=no 12122 case $host_cpu in 12123 ia64*) 12124 shrext_cmds='.so' 12125 hardcode_into_libs=yes 12126 dynamic_linker="$host_os dld.so" 12127 shlibpath_var=LD_LIBRARY_PATH 12128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12130 soname_spec='$libname$release$shared_ext$major' 12131 if test 32 = "$HPUX_IA64_MODE"; then 12132 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12133 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12134 else 12135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12136 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12137 fi 12138 ;; 12139 hppa*64*) 12140 shrext_cmds='.sl' 12141 hardcode_into_libs=yes 12142 dynamic_linker="$host_os dld.sl" 12143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12146 soname_spec='$libname$release$shared_ext$major' 12147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12149 ;; 12150 *) 12151 shrext_cmds='.sl' 12152 dynamic_linker="$host_os dld.sl" 12153 shlibpath_var=SHLIB_PATH 12154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12156 soname_spec='$libname$release$shared_ext$major' 12157 ;; 12158 esac 12159 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12160 postinstall_cmds='chmod 555 $lib' 12161 # or fails outright, so override atomically: 12162 install_override_mode=555 12163 ;; 12164 12165interix[3-9]*) 12166 version_type=linux # correct to gnu/linux during the next big refactor 12167 need_lib_prefix=no 12168 need_version=no 12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12170 soname_spec='$libname$release$shared_ext$major' 12171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12172 shlibpath_var=LD_LIBRARY_PATH 12173 shlibpath_overrides_runpath=no 12174 hardcode_into_libs=yes 12175 ;; 12176 12177irix5* | irix6* | nonstopux*) 12178 case $host_os in 12179 nonstopux*) version_type=nonstopux ;; 12180 *) 12181 if test yes = "$lt_cv_prog_gnu_ld"; then 12182 version_type=linux # correct to gnu/linux during the next big refactor 12183 else 12184 version_type=irix 12185 fi ;; 12186 esac 12187 need_lib_prefix=no 12188 need_version=no 12189 soname_spec='$libname$release$shared_ext$major' 12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12191 case $host_os in 12192 irix5* | nonstopux*) 12193 libsuff= shlibsuff= 12194 ;; 12195 *) 12196 case $LD in # libtool.m4 will add one of these switches to LD 12197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12198 libsuff= shlibsuff= libmagic=32-bit;; 12199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12200 libsuff=32 shlibsuff=N32 libmagic=N32;; 12201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12202 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12203 *) libsuff= shlibsuff= libmagic=never-match;; 12204 esac 12205 ;; 12206 esac 12207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12208 shlibpath_overrides_runpath=no 12209 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12210 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12211 hardcode_into_libs=yes 12212 ;; 12213 12214# No shared lib support for Linux oldld, aout, or coff. 12215linux*oldld* | linux*aout* | linux*coff*) 12216 dynamic_linker=no 12217 ;; 12218 12219linux*android*) 12220 version_type=none # Android doesn't support versioned libraries. 12221 need_lib_prefix=no 12222 need_version=no 12223 library_names_spec='$libname$release$shared_ext' 12224 soname_spec='$libname$release$shared_ext' 12225 finish_cmds= 12226 shlibpath_var=LD_LIBRARY_PATH 12227 shlibpath_overrides_runpath=yes 12228 12229 # This implies no fast_install, which is unacceptable. 12230 # Some rework will be needed to allow for fast_install 12231 # before this can be enabled. 12232 hardcode_into_libs=yes 12233 12234 dynamic_linker='Android linker' 12235 # Don't embed -rpath directories since the linker doesn't support them. 12236 hardcode_libdir_flag_spec='-L$libdir' 12237 ;; 12238 12239# This must be glibc/ELF. 12240linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12241 version_type=linux # correct to gnu/linux during the next big refactor 12242 need_lib_prefix=no 12243 need_version=no 12244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12245 soname_spec='$libname$release$shared_ext$major' 12246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12247 shlibpath_var=LD_LIBRARY_PATH 12248 shlibpath_overrides_runpath=no 12249 12250 # Some binutils ld are patched to set DT_RUNPATH 12251 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12252 $as_echo_n "(cached) " >&6 12253else 12254 lt_cv_shlibpath_overrides_runpath=no 12255 save_LDFLAGS=$LDFLAGS 12256 save_libdir=$libdir 12257 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12258 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12260/* end confdefs.h. */ 12261 12262int 12263main () 12264{ 12265 12266 ; 12267 return 0; 12268} 12269_ACEOF 12270if ac_fn_c_try_link "$LINENO"; then : 12271 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12272 lt_cv_shlibpath_overrides_runpath=yes 12273fi 12274fi 12275rm -f core conftest.err conftest.$ac_objext \ 12276 conftest$ac_exeext conftest.$ac_ext 12277 LDFLAGS=$save_LDFLAGS 12278 libdir=$save_libdir 12279 12280fi 12281 12282 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12283 12284 # This implies no fast_install, which is unacceptable. 12285 # Some rework will be needed to allow for fast_install 12286 # before this can be enabled. 12287 hardcode_into_libs=yes 12288 12289 # Ideally, we could use ldconfig to report *all* directores which are 12290 # searched for libraries, however this is still not possible. Aside from not 12291 # being certain /sbin/ldconfig is available, command 12292 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12293 # even though it is searched at run-time. Try to do the best guess by 12294 # appending ld.so.conf contents (and includes) to the search path. 12295 if test -f /etc/ld.so.conf; then 12296 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' ' '` 12297 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12298 fi 12299 12300 # We used to test for /lib/ld.so.1 and disable shared libraries on 12301 # powerpc, because MkLinux only supported shared libraries with the 12302 # GNU dynamic linker. Since this was broken with cross compilers, 12303 # most powerpc-linux boxes support dynamic linking these days and 12304 # people can always --disable-shared, the test was removed, and we 12305 # assume the GNU/Linux dynamic linker is in use. 12306 dynamic_linker='GNU/Linux ld.so' 12307 ;; 12308 12309netbsd*) 12310 version_type=sunos 12311 need_lib_prefix=no 12312 need_version=no 12313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12314 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12316 dynamic_linker='NetBSD (a.out) ld.so' 12317 else 12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12319 soname_spec='$libname$release$shared_ext$major' 12320 dynamic_linker='NetBSD ld.elf_so' 12321 fi 12322 shlibpath_var=LD_LIBRARY_PATH 12323 shlibpath_overrides_runpath=yes 12324 hardcode_into_libs=yes 12325 ;; 12326 12327newsos6) 12328 version_type=linux # correct to gnu/linux during the next big refactor 12329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12330 shlibpath_var=LD_LIBRARY_PATH 12331 shlibpath_overrides_runpath=yes 12332 ;; 12333 12334*nto* | *qnx*) 12335 version_type=qnx 12336 need_lib_prefix=no 12337 need_version=no 12338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12339 soname_spec='$libname$release$shared_ext$major' 12340 shlibpath_var=LD_LIBRARY_PATH 12341 shlibpath_overrides_runpath=no 12342 hardcode_into_libs=yes 12343 dynamic_linker='ldqnx.so' 12344 ;; 12345 12346openbsd* | bitrig*) 12347 version_type=sunos 12348 sys_lib_dlsearch_path_spec=/usr/lib 12349 need_lib_prefix=no 12350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12351 need_version=no 12352 else 12353 need_version=yes 12354 fi 12355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12357 shlibpath_var=LD_LIBRARY_PATH 12358 shlibpath_overrides_runpath=yes 12359 ;; 12360 12361os2*) 12362 libname_spec='$name' 12363 version_type=windows 12364 shrext_cmds=.dll 12365 need_version=no 12366 need_lib_prefix=no 12367 # OS/2 can only load a DLL with a base name of 8 characters or less. 12368 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12369 v=$($ECHO $release$versuffix | tr -d .-); 12370 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12371 $ECHO $n$v`$shared_ext' 12372 library_names_spec='${libname}_dll.$libext' 12373 dynamic_linker='OS/2 ld.exe' 12374 shlibpath_var=BEGINLIBPATH 12375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12377 postinstall_cmds='base_file=`basename \$file`~ 12378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12379 dldir=$destdir/`dirname \$dlpath`~ 12380 test -d \$dldir || mkdir -p \$dldir~ 12381 $install_prog $dir/$dlname \$dldir/$dlname~ 12382 chmod a+x \$dldir/$dlname~ 12383 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12384 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12385 fi' 12386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12387 dlpath=$dir/\$dldll~ 12388 $RM \$dlpath' 12389 ;; 12390 12391osf3* | osf4* | osf5*) 12392 version_type=osf 12393 need_lib_prefix=no 12394 need_version=no 12395 soname_spec='$libname$release$shared_ext$major' 12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12397 shlibpath_var=LD_LIBRARY_PATH 12398 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12400 ;; 12401 12402rdos*) 12403 dynamic_linker=no 12404 ;; 12405 12406solaris*) 12407 version_type=linux # correct to gnu/linux during the next big refactor 12408 need_lib_prefix=no 12409 need_version=no 12410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12411 soname_spec='$libname$release$shared_ext$major' 12412 shlibpath_var=LD_LIBRARY_PATH 12413 shlibpath_overrides_runpath=yes 12414 hardcode_into_libs=yes 12415 # ldd complains unless libraries are executable 12416 postinstall_cmds='chmod +x $lib' 12417 ;; 12418 12419sunos4*) 12420 version_type=sunos 12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12422 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12423 shlibpath_var=LD_LIBRARY_PATH 12424 shlibpath_overrides_runpath=yes 12425 if test yes = "$with_gnu_ld"; then 12426 need_lib_prefix=no 12427 fi 12428 need_version=yes 12429 ;; 12430 12431sysv4 | sysv4.3*) 12432 version_type=linux # correct to gnu/linux during the next big refactor 12433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12434 soname_spec='$libname$release$shared_ext$major' 12435 shlibpath_var=LD_LIBRARY_PATH 12436 case $host_vendor in 12437 sni) 12438 shlibpath_overrides_runpath=no 12439 need_lib_prefix=no 12440 runpath_var=LD_RUN_PATH 12441 ;; 12442 siemens) 12443 need_lib_prefix=no 12444 ;; 12445 motorola) 12446 need_lib_prefix=no 12447 need_version=no 12448 shlibpath_overrides_runpath=no 12449 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12450 ;; 12451 esac 12452 ;; 12453 12454sysv4*MP*) 12455 if test -d /usr/nec; then 12456 version_type=linux # correct to gnu/linux during the next big refactor 12457 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12458 soname_spec='$libname$shared_ext.$major' 12459 shlibpath_var=LD_LIBRARY_PATH 12460 fi 12461 ;; 12462 12463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12464 version_type=sco 12465 need_lib_prefix=no 12466 need_version=no 12467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12468 soname_spec='$libname$release$shared_ext$major' 12469 shlibpath_var=LD_LIBRARY_PATH 12470 shlibpath_overrides_runpath=yes 12471 hardcode_into_libs=yes 12472 if test yes = "$with_gnu_ld"; then 12473 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12474 else 12475 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12476 case $host_os in 12477 sco3.2v5*) 12478 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12479 ;; 12480 esac 12481 fi 12482 sys_lib_dlsearch_path_spec='/usr/lib' 12483 ;; 12484 12485tpf*) 12486 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12487 version_type=linux # correct to gnu/linux during the next big refactor 12488 need_lib_prefix=no 12489 need_version=no 12490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12491 shlibpath_var=LD_LIBRARY_PATH 12492 shlibpath_overrides_runpath=no 12493 hardcode_into_libs=yes 12494 ;; 12495 12496uts4*) 12497 version_type=linux # correct to gnu/linux during the next big refactor 12498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12499 soname_spec='$libname$release$shared_ext$major' 12500 shlibpath_var=LD_LIBRARY_PATH 12501 ;; 12502 12503*) 12504 dynamic_linker=no 12505 ;; 12506esac 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12508$as_echo "$dynamic_linker" >&6; } 12509test no = "$dynamic_linker" && can_build_shared=no 12510 12511variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12512if test yes = "$GCC"; then 12513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12514fi 12515 12516if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12517 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12518fi 12519 12520if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12521 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12522fi 12523 12524# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12525configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12526 12527# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12528func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12529 12530# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12531configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12630$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12631hardcode_action= 12632if test -n "$hardcode_libdir_flag_spec" || 12633 test -n "$runpath_var" || 12634 test yes = "$hardcode_automatic"; then 12635 12636 # We can hardcode non-existent directories. 12637 if test no != "$hardcode_direct" && 12638 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12639 # have to relink, otherwise we might link with an installed library 12640 # when we should be linking with a yet-to-be-installed one 12641 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12642 test no != "$hardcode_minus_L"; then 12643 # Linking always hardcodes the temporary library directory. 12644 hardcode_action=relink 12645 else 12646 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12647 hardcode_action=immediate 12648 fi 12649else 12650 # We cannot hardcode anything, or else we can only hardcode existing 12651 # directories. 12652 hardcode_action=unsupported 12653fi 12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12655$as_echo "$hardcode_action" >&6; } 12656 12657if test relink = "$hardcode_action" || 12658 test yes = "$inherit_rpath"; then 12659 # Fast installation is not supported 12660 enable_fast_install=no 12661elif test yes = "$shlibpath_overrides_runpath" || 12662 test no = "$enable_shared"; then 12663 # Fast installation is not necessary 12664 enable_fast_install=needless 12665fi 12666 12667 12668 12669 12670 12671 12672 if test yes != "$enable_dlopen"; then 12673 enable_dlopen=unknown 12674 enable_dlopen_self=unknown 12675 enable_dlopen_self_static=unknown 12676else 12677 lt_cv_dlopen=no 12678 lt_cv_dlopen_libs= 12679 12680 case $host_os in 12681 beos*) 12682 lt_cv_dlopen=load_add_on 12683 lt_cv_dlopen_libs= 12684 lt_cv_dlopen_self=yes 12685 ;; 12686 12687 mingw* | pw32* | cegcc*) 12688 lt_cv_dlopen=LoadLibrary 12689 lt_cv_dlopen_libs= 12690 ;; 12691 12692 cygwin*) 12693 lt_cv_dlopen=dlopen 12694 lt_cv_dlopen_libs= 12695 ;; 12696 12697 darwin*) 12698 # if libdl is installed we need to link against it 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12700$as_echo_n "checking for dlopen in -ldl... " >&6; } 12701if ${ac_cv_lib_dl_dlopen+:} false; then : 12702 $as_echo_n "(cached) " >&6 12703else 12704 ac_check_lib_save_LIBS=$LIBS 12705LIBS="-ldl $LIBS" 12706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12707/* end confdefs.h. */ 12708 12709/* Override any GCC internal prototype to avoid an error. 12710 Use char because int might match the return type of a GCC 12711 builtin and then its argument prototype would still apply. */ 12712#ifdef __cplusplus 12713extern "C" 12714#endif 12715char dlopen (); 12716int 12717main () 12718{ 12719return dlopen (); 12720 ; 12721 return 0; 12722} 12723_ACEOF 12724if ac_fn_c_try_link "$LINENO"; then : 12725 ac_cv_lib_dl_dlopen=yes 12726else 12727 ac_cv_lib_dl_dlopen=no 12728fi 12729rm -f core conftest.err conftest.$ac_objext \ 12730 conftest$ac_exeext conftest.$ac_ext 12731LIBS=$ac_check_lib_save_LIBS 12732fi 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12734$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12735if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12736 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12737else 12738 12739 lt_cv_dlopen=dyld 12740 lt_cv_dlopen_libs= 12741 lt_cv_dlopen_self=yes 12742 12743fi 12744 12745 ;; 12746 12747 tpf*) 12748 # Don't try to run any link tests for TPF. We know it's impossible 12749 # because TPF is a cross-compiler, and we know how we open DSOs. 12750 lt_cv_dlopen=dlopen 12751 lt_cv_dlopen_libs= 12752 lt_cv_dlopen_self=no 12753 ;; 12754 12755 *) 12756 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12757if test "x$ac_cv_func_shl_load" = xyes; then : 12758 lt_cv_dlopen=shl_load 12759else 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12761$as_echo_n "checking for shl_load in -ldld... " >&6; } 12762if ${ac_cv_lib_dld_shl_load+:} false; then : 12763 $as_echo_n "(cached) " >&6 12764else 12765 ac_check_lib_save_LIBS=$LIBS 12766LIBS="-ldld $LIBS" 12767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12768/* end confdefs.h. */ 12769 12770/* Override any GCC internal prototype to avoid an error. 12771 Use char because int might match the return type of a GCC 12772 builtin and then its argument prototype would still apply. */ 12773#ifdef __cplusplus 12774extern "C" 12775#endif 12776char shl_load (); 12777int 12778main () 12779{ 12780return shl_load (); 12781 ; 12782 return 0; 12783} 12784_ACEOF 12785if ac_fn_c_try_link "$LINENO"; then : 12786 ac_cv_lib_dld_shl_load=yes 12787else 12788 ac_cv_lib_dld_shl_load=no 12789fi 12790rm -f core conftest.err conftest.$ac_objext \ 12791 conftest$ac_exeext conftest.$ac_ext 12792LIBS=$ac_check_lib_save_LIBS 12793fi 12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12795$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12796if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12797 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12798else 12799 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12800if test "x$ac_cv_func_dlopen" = xyes; then : 12801 lt_cv_dlopen=dlopen 12802else 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12804$as_echo_n "checking for dlopen in -ldl... " >&6; } 12805if ${ac_cv_lib_dl_dlopen+:} false; then : 12806 $as_echo_n "(cached) " >&6 12807else 12808 ac_check_lib_save_LIBS=$LIBS 12809LIBS="-ldl $LIBS" 12810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12811/* end confdefs.h. */ 12812 12813/* Override any GCC internal prototype to avoid an error. 12814 Use char because int might match the return type of a GCC 12815 builtin and then its argument prototype would still apply. */ 12816#ifdef __cplusplus 12817extern "C" 12818#endif 12819char dlopen (); 12820int 12821main () 12822{ 12823return dlopen (); 12824 ; 12825 return 0; 12826} 12827_ACEOF 12828if ac_fn_c_try_link "$LINENO"; then : 12829 ac_cv_lib_dl_dlopen=yes 12830else 12831 ac_cv_lib_dl_dlopen=no 12832fi 12833rm -f core conftest.err conftest.$ac_objext \ 12834 conftest$ac_exeext conftest.$ac_ext 12835LIBS=$ac_check_lib_save_LIBS 12836fi 12837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12838$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12839if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12840 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12841else 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12843$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12844if ${ac_cv_lib_svld_dlopen+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846else 12847 ac_check_lib_save_LIBS=$LIBS 12848LIBS="-lsvld $LIBS" 12849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851 12852/* Override any GCC internal prototype to avoid an error. 12853 Use char because int might match the return type of a GCC 12854 builtin and then its argument prototype would still apply. */ 12855#ifdef __cplusplus 12856extern "C" 12857#endif 12858char dlopen (); 12859int 12860main () 12861{ 12862return dlopen (); 12863 ; 12864 return 0; 12865} 12866_ACEOF 12867if ac_fn_c_try_link "$LINENO"; then : 12868 ac_cv_lib_svld_dlopen=yes 12869else 12870 ac_cv_lib_svld_dlopen=no 12871fi 12872rm -f core conftest.err conftest.$ac_objext \ 12873 conftest$ac_exeext conftest.$ac_ext 12874LIBS=$ac_check_lib_save_LIBS 12875fi 12876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12877$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12878if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12879 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12880else 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12882$as_echo_n "checking for dld_link in -ldld... " >&6; } 12883if ${ac_cv_lib_dld_dld_link+:} false; then : 12884 $as_echo_n "(cached) " >&6 12885else 12886 ac_check_lib_save_LIBS=$LIBS 12887LIBS="-ldld $LIBS" 12888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12889/* end confdefs.h. */ 12890 12891/* Override any GCC internal prototype to avoid an error. 12892 Use char because int might match the return type of a GCC 12893 builtin and then its argument prototype would still apply. */ 12894#ifdef __cplusplus 12895extern "C" 12896#endif 12897char dld_link (); 12898int 12899main () 12900{ 12901return dld_link (); 12902 ; 12903 return 0; 12904} 12905_ACEOF 12906if ac_fn_c_try_link "$LINENO"; then : 12907 ac_cv_lib_dld_dld_link=yes 12908else 12909 ac_cv_lib_dld_dld_link=no 12910fi 12911rm -f core conftest.err conftest.$ac_objext \ 12912 conftest$ac_exeext conftest.$ac_ext 12913LIBS=$ac_check_lib_save_LIBS 12914fi 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12916$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12917if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12918 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12919fi 12920 12921 12922fi 12923 12924 12925fi 12926 12927 12928fi 12929 12930 12931fi 12932 12933 12934fi 12935 12936 ;; 12937 esac 12938 12939 if test no = "$lt_cv_dlopen"; then 12940 enable_dlopen=no 12941 else 12942 enable_dlopen=yes 12943 fi 12944 12945 case $lt_cv_dlopen in 12946 dlopen) 12947 save_CPPFLAGS=$CPPFLAGS 12948 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12949 12950 save_LDFLAGS=$LDFLAGS 12951 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12952 12953 save_LIBS=$LIBS 12954 LIBS="$lt_cv_dlopen_libs $LIBS" 12955 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12957$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12958if ${lt_cv_dlopen_self+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960else 12961 if test yes = "$cross_compiling"; then : 12962 lt_cv_dlopen_self=cross 12963else 12964 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12965 lt_status=$lt_dlunknown 12966 cat > conftest.$ac_ext <<_LT_EOF 12967#line $LINENO "configure" 12968#include "confdefs.h" 12969 12970#if HAVE_DLFCN_H 12971#include <dlfcn.h> 12972#endif 12973 12974#include <stdio.h> 12975 12976#ifdef RTLD_GLOBAL 12977# define LT_DLGLOBAL RTLD_GLOBAL 12978#else 12979# ifdef DL_GLOBAL 12980# define LT_DLGLOBAL DL_GLOBAL 12981# else 12982# define LT_DLGLOBAL 0 12983# endif 12984#endif 12985 12986/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12987 find out it does not work in some platform. */ 12988#ifndef LT_DLLAZY_OR_NOW 12989# ifdef RTLD_LAZY 12990# define LT_DLLAZY_OR_NOW RTLD_LAZY 12991# else 12992# ifdef DL_LAZY 12993# define LT_DLLAZY_OR_NOW DL_LAZY 12994# else 12995# ifdef RTLD_NOW 12996# define LT_DLLAZY_OR_NOW RTLD_NOW 12997# else 12998# ifdef DL_NOW 12999# define LT_DLLAZY_OR_NOW DL_NOW 13000# else 13001# define LT_DLLAZY_OR_NOW 0 13002# endif 13003# endif 13004# endif 13005# endif 13006#endif 13007 13008/* When -fvisibility=hidden is used, assume the code has been annotated 13009 correspondingly for the symbols needed. */ 13010#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13011int fnord () __attribute__((visibility("default"))); 13012#endif 13013 13014int fnord () { return 42; } 13015int main () 13016{ 13017 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13018 int status = $lt_dlunknown; 13019 13020 if (self) 13021 { 13022 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13023 else 13024 { 13025 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13026 else puts (dlerror ()); 13027 } 13028 /* dlclose (self); */ 13029 } 13030 else 13031 puts (dlerror ()); 13032 13033 return status; 13034} 13035_LT_EOF 13036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13037 (eval $ac_link) 2>&5 13038 ac_status=$? 13039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13040 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13041 (./conftest; exit; ) >&5 2>/dev/null 13042 lt_status=$? 13043 case x$lt_status in 13044 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13045 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13046 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13047 esac 13048 else : 13049 # compilation failed 13050 lt_cv_dlopen_self=no 13051 fi 13052fi 13053rm -fr conftest* 13054 13055 13056fi 13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13058$as_echo "$lt_cv_dlopen_self" >&6; } 13059 13060 if test yes = "$lt_cv_dlopen_self"; then 13061 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13063$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13064if ${lt_cv_dlopen_self_static+:} false; then : 13065 $as_echo_n "(cached) " >&6 13066else 13067 if test yes = "$cross_compiling"; then : 13068 lt_cv_dlopen_self_static=cross 13069else 13070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13071 lt_status=$lt_dlunknown 13072 cat > conftest.$ac_ext <<_LT_EOF 13073#line $LINENO "configure" 13074#include "confdefs.h" 13075 13076#if HAVE_DLFCN_H 13077#include <dlfcn.h> 13078#endif 13079 13080#include <stdio.h> 13081 13082#ifdef RTLD_GLOBAL 13083# define LT_DLGLOBAL RTLD_GLOBAL 13084#else 13085# ifdef DL_GLOBAL 13086# define LT_DLGLOBAL DL_GLOBAL 13087# else 13088# define LT_DLGLOBAL 0 13089# endif 13090#endif 13091 13092/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13093 find out it does not work in some platform. */ 13094#ifndef LT_DLLAZY_OR_NOW 13095# ifdef RTLD_LAZY 13096# define LT_DLLAZY_OR_NOW RTLD_LAZY 13097# else 13098# ifdef DL_LAZY 13099# define LT_DLLAZY_OR_NOW DL_LAZY 13100# else 13101# ifdef RTLD_NOW 13102# define LT_DLLAZY_OR_NOW RTLD_NOW 13103# else 13104# ifdef DL_NOW 13105# define LT_DLLAZY_OR_NOW DL_NOW 13106# else 13107# define LT_DLLAZY_OR_NOW 0 13108# endif 13109# endif 13110# endif 13111# endif 13112#endif 13113 13114/* When -fvisibility=hidden is used, assume the code has been annotated 13115 correspondingly for the symbols needed. */ 13116#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13117int fnord () __attribute__((visibility("default"))); 13118#endif 13119 13120int fnord () { return 42; } 13121int main () 13122{ 13123 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13124 int status = $lt_dlunknown; 13125 13126 if (self) 13127 { 13128 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13129 else 13130 { 13131 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13132 else puts (dlerror ()); 13133 } 13134 /* dlclose (self); */ 13135 } 13136 else 13137 puts (dlerror ()); 13138 13139 return status; 13140} 13141_LT_EOF 13142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13143 (eval $ac_link) 2>&5 13144 ac_status=$? 13145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13146 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13147 (./conftest; exit; ) >&5 2>/dev/null 13148 lt_status=$? 13149 case x$lt_status in 13150 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13151 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13152 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13153 esac 13154 else : 13155 # compilation failed 13156 lt_cv_dlopen_self_static=no 13157 fi 13158fi 13159rm -fr conftest* 13160 13161 13162fi 13163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13164$as_echo "$lt_cv_dlopen_self_static" >&6; } 13165 fi 13166 13167 CPPFLAGS=$save_CPPFLAGS 13168 LDFLAGS=$save_LDFLAGS 13169 LIBS=$save_LIBS 13170 ;; 13171 esac 13172 13173 case $lt_cv_dlopen_self in 13174 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13175 *) enable_dlopen_self=unknown ;; 13176 esac 13177 13178 case $lt_cv_dlopen_self_static in 13179 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13180 *) enable_dlopen_self_static=unknown ;; 13181 esac 13182fi 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200striplib= 13201old_striplib= 13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13203$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13204if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13205 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13206 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13208$as_echo "yes" >&6; } 13209else 13210# FIXME - insert some real tests, host_os isn't really good enough 13211 case $host_os in 13212 darwin*) 13213 if test -n "$STRIP"; then 13214 striplib="$STRIP -x" 13215 old_striplib="$STRIP -S" 13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13217$as_echo "yes" >&6; } 13218 else 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13220$as_echo "no" >&6; } 13221 fi 13222 ;; 13223 *) 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13225$as_echo "no" >&6; } 13226 ;; 13227 esac 13228fi 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 # Report what library types will actually be built 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13243$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13245$as_echo "$can_build_shared" >&6; } 13246 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13248$as_echo_n "checking whether to build shared libraries... " >&6; } 13249 test no = "$can_build_shared" && enable_shared=no 13250 13251 # On AIX, shared libraries and static libraries use the same namespace, and 13252 # are all built from PIC. 13253 case $host_os in 13254 aix3*) 13255 test yes = "$enable_shared" && enable_static=no 13256 if test -n "$RANLIB"; then 13257 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13258 postinstall_cmds='$RANLIB $lib' 13259 fi 13260 ;; 13261 13262 aix[4-9]*) 13263 if test ia64 != "$host_cpu"; then 13264 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13265 yes,aix,yes) ;; # shared object as lib.so file only 13266 yes,svr4,*) ;; # shared object as lib.so archive member only 13267 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13268 esac 13269 fi 13270 ;; 13271 esac 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13273$as_echo "$enable_shared" >&6; } 13274 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13276$as_echo_n "checking whether to build static libraries... " >&6; } 13277 # Make sure either enable_shared or enable_static is yes. 13278 test yes = "$enable_shared" || enable_static=yes 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13280$as_echo "$enable_static" >&6; } 13281 13282 13283 13284 13285fi 13286ac_ext=c 13287ac_cpp='$CPP $CPPFLAGS' 13288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13290ac_compiler_gnu=$ac_cv_c_compiler_gnu 13291 13292CC=$lt_save_CC 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 ac_config_commands="$ac_config_commands libtool" 13309 13310 13311 13312 13313# Only expand once: 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13329 if test -n "$ac_tool_prefix"; then 13330 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13331set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13333$as_echo_n "checking for $ac_word... " >&6; } 13334if ${ac_cv_path_PKG_CONFIG+:} false; then : 13335 $as_echo_n "(cached) " >&6 13336else 13337 case $PKG_CONFIG in 13338 [\\/]* | ?:[\\/]*) 13339 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13340 ;; 13341 *) 13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13343for as_dir in $PATH 13344do 13345 IFS=$as_save_IFS 13346 test -z "$as_dir" && as_dir=. 13347 for ac_exec_ext in '' $ac_executable_extensions; do 13348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13349 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13351 break 2 13352 fi 13353done 13354 done 13355IFS=$as_save_IFS 13356 13357 ;; 13358esac 13359fi 13360PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13361if test -n "$PKG_CONFIG"; then 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13363$as_echo "$PKG_CONFIG" >&6; } 13364else 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13366$as_echo "no" >&6; } 13367fi 13368 13369 13370fi 13371if test -z "$ac_cv_path_PKG_CONFIG"; then 13372 ac_pt_PKG_CONFIG=$PKG_CONFIG 13373 # Extract the first word of "pkg-config", so it can be a program name with args. 13374set dummy pkg-config; ac_word=$2 13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13376$as_echo_n "checking for $ac_word... " >&6; } 13377if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13378 $as_echo_n "(cached) " >&6 13379else 13380 case $ac_pt_PKG_CONFIG in 13381 [\\/]* | ?:[\\/]*) 13382 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13383 ;; 13384 *) 13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13386for as_dir in $PATH 13387do 13388 IFS=$as_save_IFS 13389 test -z "$as_dir" && as_dir=. 13390 for ac_exec_ext in '' $ac_executable_extensions; do 13391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13392 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13394 break 2 13395 fi 13396done 13397 done 13398IFS=$as_save_IFS 13399 13400 ;; 13401esac 13402fi 13403ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13404if test -n "$ac_pt_PKG_CONFIG"; then 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13406$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13407else 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13409$as_echo "no" >&6; } 13410fi 13411 13412 if test "x$ac_pt_PKG_CONFIG" = x; then 13413 PKG_CONFIG="" 13414 else 13415 case $cross_compiling:$ac_tool_warned in 13416yes:) 13417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13419ac_tool_warned=yes ;; 13420esac 13421 PKG_CONFIG=$ac_pt_PKG_CONFIG 13422 fi 13423else 13424 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13425fi 13426 13427fi 13428if test -n "$PKG_CONFIG"; then 13429 _pkg_min_version=0.9.0 13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13431$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13432 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13434$as_echo "yes" >&6; } 13435 else 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13437$as_echo "no" >&6; } 13438 PKG_CONFIG="" 13439 fi 13440fi 13441 13442pkg_failed=no 13443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 13444$as_echo_n "checking for GLIB... " >&6; } 13445 13446if test -n "$GLIB_CFLAGS"; then 13447 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 13448 elif test -n "$PKG_CONFIG"; then 13449 if test -n "$PKG_CONFIG" && \ 13450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10\""; } >&5 13451 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10") 2>&5 13452 ac_status=$? 13453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13454 test $ac_status = 0; }; then 13455 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10" 2>/dev/null` 13456 test "x$?" != "x0" && pkg_failed=yes 13457else 13458 pkg_failed=yes 13459fi 13460 else 13461 pkg_failed=untried 13462fi 13463if test -n "$GLIB_LIBS"; then 13464 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 13465 elif test -n "$PKG_CONFIG"; then 13466 if test -n "$PKG_CONFIG" && \ 13467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10\""; } >&5 13468 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10") 2>&5 13469 ac_status=$? 13470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13471 test $ac_status = 0; }; then 13472 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10" 2>/dev/null` 13473 test "x$?" != "x0" && pkg_failed=yes 13474else 13475 pkg_failed=yes 13476fi 13477 else 13478 pkg_failed=untried 13479fi 13480 13481 13482 13483if test $pkg_failed = yes; then 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13485$as_echo "no" >&6; } 13486 13487if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13488 _pkg_short_errors_supported=yes 13489else 13490 _pkg_short_errors_supported=no 13491fi 13492 if test $_pkg_short_errors_supported = yes; then 13493 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10" 2>&1` 13494 else 13495 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10" 2>&1` 13496 fi 13497 # Put the nasty error message in config.log where it belongs 13498 echo "$GLIB_PKG_ERRORS" >&5 13499 13500 as_fn_error $? "Package requirements (glib-2.0 >= 2.10) were not met: 13501 13502$GLIB_PKG_ERRORS 13503 13504Consider adjusting the PKG_CONFIG_PATH environment variable if you 13505installed software in a non-standard prefix. 13506 13507Alternatively, you may set the environment variables GLIB_CFLAGS 13508and GLIB_LIBS to avoid the need to call pkg-config. 13509See the pkg-config man page for more details." "$LINENO" 5 13510elif test $pkg_failed = untried; then 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13512$as_echo "no" >&6; } 13513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13515as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13516is in your PATH or set the PKG_CONFIG environment variable to the full 13517path to pkg-config. 13518 13519Alternatively, you may set the environment variables GLIB_CFLAGS 13520and GLIB_LIBS to avoid the need to call pkg-config. 13521See the pkg-config man page for more details. 13522 13523To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13524See \`config.log' for more details" "$LINENO" 5; } 13525else 13526 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 13527 GLIB_LIBS=$pkg_cv_GLIB_LIBS 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13529$as_echo "yes" >&6; } 13530 13531fi 13532 13533 13534# Check whether --with-tools was given. 13535if test "${with_tools+set}" = set; then : 13536 withval=$with_tools; 13537else 13538 with_tools=yes 13539fi 13540 13541 if test "$with_tools" = "yes"; then 13542 WANT_TOOLS_TRUE= 13543 WANT_TOOLS_FALSE='#' 13544else 13545 WANT_TOOLS_TRUE='#' 13546 WANT_TOOLS_FALSE= 13547fi 13548 13549if test "$with_tools" != no; then : 13550 13551 13552pkg_failed=no 13553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAGICKWAND" >&5 13554$as_echo_n "checking for MAGICKWAND... " >&6; } 13555 13556if test -n "$MAGICKWAND_CFLAGS"; then 13557 pkg_cv_MAGICKWAND_CFLAGS="$MAGICKWAND_CFLAGS" 13558 elif test -n "$PKG_CONFIG"; then 13559 if test -n "$PKG_CONFIG" && \ 13560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand >= 6\""; } >&5 13561 ($PKG_CONFIG --exists --print-errors "MagickWand >= 6") 2>&5 13562 ac_status=$? 13563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13564 test $ac_status = 0; }; then 13565 pkg_cv_MAGICKWAND_CFLAGS=`$PKG_CONFIG --cflags "MagickWand >= 6" 2>/dev/null` 13566 test "x$?" != "x0" && pkg_failed=yes 13567else 13568 pkg_failed=yes 13569fi 13570 else 13571 pkg_failed=untried 13572fi 13573if test -n "$MAGICKWAND_LIBS"; then 13574 pkg_cv_MAGICKWAND_LIBS="$MAGICKWAND_LIBS" 13575 elif test -n "$PKG_CONFIG"; then 13576 if test -n "$PKG_CONFIG" && \ 13577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand >= 6\""; } >&5 13578 ($PKG_CONFIG --exists --print-errors "MagickWand >= 6") 2>&5 13579 ac_status=$? 13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13581 test $ac_status = 0; }; then 13582 pkg_cv_MAGICKWAND_LIBS=`$PKG_CONFIG --libs "MagickWand >= 6" 2>/dev/null` 13583 test "x$?" != "x0" && pkg_failed=yes 13584else 13585 pkg_failed=yes 13586fi 13587 else 13588 pkg_failed=untried 13589fi 13590 13591 13592 13593if test $pkg_failed = yes; then 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13595$as_echo "no" >&6; } 13596 13597if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13598 _pkg_short_errors_supported=yes 13599else 13600 _pkg_short_errors_supported=no 13601fi 13602 if test $_pkg_short_errors_supported = yes; then 13603 MAGICKWAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickWand >= 6" 2>&1` 13604 else 13605 MAGICKWAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickWand >= 6" 2>&1` 13606 fi 13607 # Put the nasty error message in config.log where it belongs 13608 echo "$MAGICKWAND_PKG_ERRORS" >&5 13609 13610 as_fn_error $? "You need ImageMagick-devel (or libmagickwand-dev on debian) to build command-line tools, or pass --without-tools to build without." "$LINENO" 5 13611elif test $pkg_failed = untried; then 13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13613$as_echo "no" >&6; } 13614 as_fn_error $? "You need ImageMagick-devel (or libmagickwand-dev on debian) to build command-line tools, or pass --without-tools to build without." "$LINENO" 5 13615else 13616 MAGICKWAND_CFLAGS=$pkg_cv_MAGICKWAND_CFLAGS 13617 MAGICKWAND_LIBS=$pkg_cv_MAGICKWAND_LIBS 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13619$as_echo "yes" >&6; } 13620 13621fi 13622 13623pkg_failed=no 13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 13625$as_echo_n "checking for FREETYPE... " >&6; } 13626 13627if test -n "$FREETYPE_CFLAGS"; then 13628 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 13629 elif test -n "$PKG_CONFIG"; then 13630 if test -n "$PKG_CONFIG" && \ 13631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.0.0\""; } >&5 13632 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.0.0") 2>&5 13633 ac_status=$? 13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13635 test $ac_status = 0; }; then 13636 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0.0" 2>/dev/null` 13637 test "x$?" != "x0" && pkg_failed=yes 13638else 13639 pkg_failed=yes 13640fi 13641 else 13642 pkg_failed=untried 13643fi 13644if test -n "$FREETYPE_LIBS"; then 13645 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 13646 elif test -n "$PKG_CONFIG"; then 13647 if test -n "$PKG_CONFIG" && \ 13648 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.0.0\""; } >&5 13649 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.0.0") 2>&5 13650 ac_status=$? 13651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13652 test $ac_status = 0; }; then 13653 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0.0" 2>/dev/null` 13654 test "x$?" != "x0" && pkg_failed=yes 13655else 13656 pkg_failed=yes 13657fi 13658 else 13659 pkg_failed=untried 13660fi 13661 13662 13663 13664if test $pkg_failed = yes; then 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13666$as_echo "no" >&6; } 13667 13668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13669 _pkg_short_errors_supported=yes 13670else 13671 _pkg_short_errors_supported=no 13672fi 13673 if test $_pkg_short_errors_supported = yes; then 13674 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.0.0" 2>&1` 13675 else 13676 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.0.0" 2>&1` 13677 fi 13678 # Put the nasty error message in config.log where it belongs 13679 echo "$FREETYPE_PKG_ERRORS" >&5 13680 13681 as_fn_error $? "You need freetype2-devel (or libfreetype6-dev on debian) to build command-line tools, or pass --without-tools to build without." "$LINENO" 5 13682elif test $pkg_failed = untried; then 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13684$as_echo "no" >&6; } 13685 as_fn_error $? "You need freetype2-devel (or libfreetype6-dev on debian) to build command-line tools, or pass --without-tools to build without." "$LINENO" 5 13686else 13687 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 13688 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13690$as_echo "yes" >&6; } 13691 13692fi 13693fi 13694 13695# Used by gtk-doc's fixxref. 13696GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`" 13697 13698 13699 13700# gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have 13701# it on its own line. 13702 13703 13704 13705 13706 gtk_doc_requires="gtk-doc >= 1.20" 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 13708$as_echo_n "checking for gtk-doc... " >&6; } 13709 if test -n "$PKG_CONFIG" && \ 13710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 13711 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 13712 ac_status=$? 13713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13714 test $ac_status = 0; }; then 13715 have_gtk_doc=yes 13716else 13717 have_gtk_doc=no 13718fi 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 13720$as_echo "$have_gtk_doc" >&6; } 13721 13722 if test "$have_gtk_doc" = "no"; then 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13724 You will not be able to create source packages with 'make dist' 13725 because $gtk_doc_requires is not found." >&5 13726$as_echo "$as_me: WARNING: 13727 You will not be able to create source packages with 'make dist' 13728 because $gtk_doc_requires is not found." >&2;} 13729 fi 13730 13731 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 13732set dummy gtkdoc-check; ac_word=$2 13733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13734$as_echo_n "checking for $ac_word... " >&6; } 13735if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : 13736 $as_echo_n "(cached) " >&6 13737else 13738 if test -n "$GTKDOC_CHECK"; then 13739 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. 13740else 13741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13742for as_dir in $PATH 13743do 13744 IFS=$as_save_IFS 13745 test -z "$as_dir" && as_dir=. 13746 for ac_exec_ext in '' $ac_executable_extensions; do 13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13748 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" 13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13750 break 2 13751 fi 13752done 13753 done 13754IFS=$as_save_IFS 13755 13756fi 13757fi 13758GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK 13759if test -n "$GTKDOC_CHECK"; then 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 13761$as_echo "$GTKDOC_CHECK" >&6; } 13762else 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13764$as_echo "no" >&6; } 13765fi 13766 13767 13768 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 13769set dummy gtkdoc-check; ac_word=$2 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13771$as_echo_n "checking for $ac_word... " >&6; } 13772if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : 13773 $as_echo_n "(cached) " >&6 13774else 13775 case $GTKDOC_CHECK_PATH in 13776 [\\/]* | ?:[\\/]*) 13777 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. 13778 ;; 13779 *) 13780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13781for as_dir in $PATH 13782do 13783 IFS=$as_save_IFS 13784 test -z "$as_dir" && as_dir=. 13785 for ac_exec_ext in '' $ac_executable_extensions; do 13786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13787 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" 13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13789 break 2 13790 fi 13791done 13792 done 13793IFS=$as_save_IFS 13794 13795 ;; 13796esac 13797fi 13798GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH 13799if test -n "$GTKDOC_CHECK_PATH"; then 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 13801$as_echo "$GTKDOC_CHECK_PATH" >&6; } 13802else 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13804$as_echo "no" >&6; } 13805fi 13806 13807 13808 for ac_prog in gtkdoc-rebase 13809do 13810 # Extract the first word of "$ac_prog", so it can be a program name with args. 13811set dummy $ac_prog; ac_word=$2 13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13813$as_echo_n "checking for $ac_word... " >&6; } 13814if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 13815 $as_echo_n "(cached) " >&6 13816else 13817 case $GTKDOC_REBASE in 13818 [\\/]* | ?:[\\/]*) 13819 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 13820 ;; 13821 *) 13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13823for as_dir in $PATH 13824do 13825 IFS=$as_save_IFS 13826 test -z "$as_dir" && as_dir=. 13827 for ac_exec_ext in '' $ac_executable_extensions; do 13828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13829 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 13830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13831 break 2 13832 fi 13833done 13834 done 13835IFS=$as_save_IFS 13836 13837 ;; 13838esac 13839fi 13840GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 13841if test -n "$GTKDOC_REBASE"; then 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 13843$as_echo "$GTKDOC_REBASE" >&6; } 13844else 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13846$as_echo "no" >&6; } 13847fi 13848 13849 13850 test -n "$GTKDOC_REBASE" && break 13851done 13852test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 13853 13854 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 13855set dummy gtkdoc-mkpdf; ac_word=$2 13856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13857$as_echo_n "checking for $ac_word... " >&6; } 13858if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 13859 $as_echo_n "(cached) " >&6 13860else 13861 case $GTKDOC_MKPDF in 13862 [\\/]* | ?:[\\/]*) 13863 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 13864 ;; 13865 *) 13866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13867for as_dir in $PATH 13868do 13869 IFS=$as_save_IFS 13870 test -z "$as_dir" && as_dir=. 13871 for ac_exec_ext in '' $ac_executable_extensions; do 13872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13873 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 13874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13875 break 2 13876 fi 13877done 13878 done 13879IFS=$as_save_IFS 13880 13881 ;; 13882esac 13883fi 13884GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 13885if test -n "$GTKDOC_MKPDF"; then 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 13887$as_echo "$GTKDOC_MKPDF" >&6; } 13888else 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13890$as_echo "no" >&6; } 13891fi 13892 13893 13894 13895 13896# Check whether --with-html-dir was given. 13897if test "${with_html_dir+set}" = set; then : 13898 withval=$with_html_dir; 13899else 13900 with_html_dir='${datadir}/gtk-doc/html' 13901fi 13902 13903 HTML_DIR="$with_html_dir" 13904 13905 13906 # Check whether --enable-gtk-doc was given. 13907if test "${enable_gtk_doc+set}" = set; then : 13908 enableval=$enable_gtk_doc; 13909else 13910 enable_gtk_doc=no 13911fi 13912 13913 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 13915$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 13917$as_echo "$enable_gtk_doc" >&6; } 13918 13919 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 13920 as_fn_error $? " 13921 You must have $gtk_doc_requires installed to build documentation for 13922 $PACKAGE_NAME. Please install gtk-doc or disable building the 13923 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 13924 fi 13925 13926 if test "x$PACKAGE_NAME" != "xglib"; then 13927 13928pkg_failed=no 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 13930$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 13931 13932if test -n "$GTKDOC_DEPS_CFLAGS"; then 13933 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 13934 elif test -n "$PKG_CONFIG"; then 13935 if test -n "$PKG_CONFIG" && \ 13936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 13937 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 13938 ac_status=$? 13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13940 test $ac_status = 0; }; then 13941 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 13942 test "x$?" != "x0" && pkg_failed=yes 13943else 13944 pkg_failed=yes 13945fi 13946 else 13947 pkg_failed=untried 13948fi 13949if test -n "$GTKDOC_DEPS_LIBS"; then 13950 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 13951 elif test -n "$PKG_CONFIG"; then 13952 if test -n "$PKG_CONFIG" && \ 13953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 13954 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 13955 ac_status=$? 13956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13957 test $ac_status = 0; }; then 13958 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 13959 test "x$?" != "x0" && pkg_failed=yes 13960else 13961 pkg_failed=yes 13962fi 13963 else 13964 pkg_failed=untried 13965fi 13966 13967 13968 13969if test $pkg_failed = yes; then 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13971$as_echo "no" >&6; } 13972 13973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13974 _pkg_short_errors_supported=yes 13975else 13976 _pkg_short_errors_supported=no 13977fi 13978 if test $_pkg_short_errors_supported = yes; then 13979 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 13980 else 13981 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 13982 fi 13983 # Put the nasty error message in config.log where it belongs 13984 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 13985 13986 : 13987elif test $pkg_failed = untried; then 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13989$as_echo "no" >&6; } 13990 : 13991else 13992 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 13993 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13995$as_echo "yes" >&6; } 13996 13997fi 13998 fi 13999 14000 # Check whether --enable-gtk-doc-html was given. 14001if test "${enable_gtk_doc_html+set}" = set; then : 14002 enableval=$enable_gtk_doc_html; 14003else 14004 enable_gtk_doc_html=yes 14005fi 14006 14007 # Check whether --enable-gtk-doc-pdf was given. 14008if test "${enable_gtk_doc_pdf+set}" = set; then : 14009 enableval=$enable_gtk_doc_pdf; 14010else 14011 enable_gtk_doc_pdf=no 14012fi 14013 14014 14015 if test -z "$GTKDOC_MKPDF"; then 14016 enable_gtk_doc_pdf=no 14017 fi 14018 14019 if test -z "$AM_DEFAULT_VERBOSITY"; then 14020 AM_DEFAULT_VERBOSITY=1 14021 fi 14022 14023 14024 if test x$have_gtk_doc = xyes; then 14025 HAVE_GTK_DOC_TRUE= 14026 HAVE_GTK_DOC_FALSE='#' 14027else 14028 HAVE_GTK_DOC_TRUE='#' 14029 HAVE_GTK_DOC_FALSE= 14030fi 14031 14032 if test x$enable_gtk_doc = xyes; then 14033 ENABLE_GTK_DOC_TRUE= 14034 ENABLE_GTK_DOC_FALSE='#' 14035else 14036 ENABLE_GTK_DOC_TRUE='#' 14037 ENABLE_GTK_DOC_FALSE= 14038fi 14039 14040 if test x$enable_gtk_doc_html = xyes; then 14041 GTK_DOC_BUILD_HTML_TRUE= 14042 GTK_DOC_BUILD_HTML_FALSE='#' 14043else 14044 GTK_DOC_BUILD_HTML_TRUE='#' 14045 GTK_DOC_BUILD_HTML_FALSE= 14046fi 14047 14048 if test x$enable_gtk_doc_pdf = xyes; then 14049 GTK_DOC_BUILD_PDF_TRUE= 14050 GTK_DOC_BUILD_PDF_FALSE='#' 14051else 14052 GTK_DOC_BUILD_PDF_TRUE='#' 14053 GTK_DOC_BUILD_PDF_FALSE= 14054fi 14055 14056 if test -n "$LIBTOOL"; then 14057 GTK_DOC_USE_LIBTOOL_TRUE= 14058 GTK_DOC_USE_LIBTOOL_FALSE='#' 14059else 14060 GTK_DOC_USE_LIBTOOL_TRUE='#' 14061 GTK_DOC_USE_LIBTOOL_FALSE= 14062fi 14063 14064 if test -n "$GTKDOC_REBASE"; then 14065 GTK_DOC_USE_REBASE_TRUE= 14066 GTK_DOC_USE_REBASE_FALSE='#' 14067else 14068 GTK_DOC_USE_REBASE_TRUE='#' 14069 GTK_DOC_USE_REBASE_FALSE= 14070fi 14071 14072 14073 14074 14075# Check whether --enable-man was given. 14076if test "${enable_man+set}" = set; then : 14077 enableval=$enable_man; 14078else 14079 enable_man=maybe 14080fi 14081 14082 14083if test "$enable_man" != no; then : 14084 14085 # Extract the first word of "xsltproc", so it can be a program name with args. 14086set dummy xsltproc; ac_word=$2 14087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14088$as_echo_n "checking for $ac_word... " >&6; } 14089if ${ac_cv_path_XSLTPROC+:} false; then : 14090 $as_echo_n "(cached) " >&6 14091else 14092 case $XSLTPROC in 14093 [\\/]* | ?:[\\/]*) 14094 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 14095 ;; 14096 *) 14097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14098for as_dir in $PATH 14099do 14100 IFS=$as_save_IFS 14101 test -z "$as_dir" && as_dir=. 14102 for ac_exec_ext in '' $ac_executable_extensions; do 14103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14104 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 14105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14106 break 2 14107 fi 14108done 14109 done 14110IFS=$as_save_IFS 14111 14112 ;; 14113esac 14114fi 14115XSLTPROC=$ac_cv_path_XSLTPROC 14116if test -n "$XSLTPROC"; then 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 14118$as_echo "$XSLTPROC" >&6; } 14119else 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14121$as_echo "no" >&6; } 14122fi 14123 14124 14125 if test -z "$XSLTPROC"; then : 14126 14127 if test "$enable_man" = yes; then : 14128 14129 as_fn_error $? "xsltproc is required for --enable-man" "$LINENO" 5 14130 14131fi 14132 enable_man=no 14133 14134fi 14135 14136fi 14137 14138 14139 # check for the presence of the XML catalog 14140 14141# Check whether --with-xml-catalog was given. 14142if test "${with_xml_catalog+set}" = set; then : 14143 withval=$with_xml_catalog; 14144else 14145 with_xml_catalog=/etc/xml/catalog 14146fi 14147 14148 jh_found_xmlcatalog=true 14149 XML_CATALOG_FILE="$with_xml_catalog" 14150 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5 14152$as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; } 14153 if test -f "$XML_CATALOG_FILE"; then 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 14155$as_echo "found" >&6; } 14156 else 14157 jh_found_xmlcatalog=false 14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14159$as_echo "not found" >&6; } 14160 fi 14161 14162 # check for the xmlcatalog program 14163 # Extract the first word of "xmlcatalog", so it can be a program name with args. 14164set dummy xmlcatalog; ac_word=$2 14165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14166$as_echo_n "checking for $ac_word... " >&6; } 14167if ${ac_cv_path_XMLCATALOG+:} false; then : 14168 $as_echo_n "(cached) " >&6 14169else 14170 case $XMLCATALOG in 14171 [\\/]* | ?:[\\/]*) 14172 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path. 14173 ;; 14174 *) 14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14176for as_dir in $PATH 14177do 14178 IFS=$as_save_IFS 14179 test -z "$as_dir" && as_dir=. 14180 for ac_exec_ext in '' $ac_executable_extensions; do 14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14182 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext" 14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14184 break 2 14185 fi 14186done 14187 done 14188IFS=$as_save_IFS 14189 14190 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no" 14191 ;; 14192esac 14193fi 14194XMLCATALOG=$ac_cv_path_XMLCATALOG 14195if test -n "$XMLCATALOG"; then 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5 14197$as_echo "$XMLCATALOG" >&6; } 14198else 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14200$as_echo "no" >&6; } 14201fi 14202 14203 14204 if test "x$XMLCATALOG" = xno; then 14205 jh_found_xmlcatalog=false 14206 fi 14207 14208 if $jh_found_xmlcatalog; then 14209 : 14210 else 14211 : 14212 fi 14213 14214if test "$enable_man" != no ; then : 14215 14216 14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5 14218$as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; } 14219 if $jh_found_xmlcatalog && \ 14220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5 14221 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5 14222 ac_status=$? 14223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14224 test $ac_status = 0; }; then 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 14226$as_echo "found" >&6; } 14227 have_docbook_dtd=yes 14228 else 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14230$as_echo "not found" >&6; } 14231 have_docbook_dtd=no 14232 fi 14233 14234 if test "$have_docbook_dtd" != yes; then : 14235 14236 if test "$enable_man" = yes ; then : 14237 14238 as_fn_error $? "DocBook DTD is required for --enable-man" "$LINENO" 5 14239 14240fi 14241 enable_man=no 14242 14243fi 14244 14245fi 14246 14247if test "$enable_man" != no; then : 14248 14249 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5 14251$as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; } 14252 if $jh_found_xmlcatalog && \ 14253 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5 14254 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5 14255 ac_status=$? 14256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14257 test $ac_status = 0; }; then 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 14259$as_echo "found" >&6; } 14260 have_docbook_style=yes 14261 else 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14263$as_echo "not found" >&6; } 14264 have_docbook_style=no 14265 fi 14266 14267 if test "$have_docbook_style" != yes ; then : 14268 14269 if test "$enable_man" = yes ; then : 14270 14271 as_fn_error $? "DocBook XSL Stylesheets are required for --enable-man" "$LINENO" 5 14272 14273fi 14274 enable_man=no 14275 14276fi 14277 14278fi 14279 14280 if test "$enable_man" != no; then 14281 ENABLE_MAN_TRUE= 14282 ENABLE_MAN_FALSE='#' 14283else 14284 ENABLE_MAN_TRUE='#' 14285 ENABLE_MAN_FALSE= 14286fi 14287 14288 14289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate man pages" >&5 14290$as_echo_n "checking whether to generate man pages... " >&6; } 14291if test "$enable_man" != no ; then : 14292 14293 enable_man=yes 14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14295$as_echo "yes" >&6; } 14296 14297else 14298 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14300$as_echo "no" >&6; } 14301 14302fi 14303 14304 14305for ac_func in mmap 14306do : 14307 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 14308if test "x$ac_cv_func_mmap" = xyes; then : 14309 cat >>confdefs.h <<_ACEOF 14310#define HAVE_MMAP 1 14311_ACEOF 14312 14313fi 14314done 14315 14316 14317 14318# Check whether --enable-Bsymbolic was given. 14319if test "${enable_Bsymbolic+set}" = set; then : 14320 enableval=$enable_Bsymbolic; 14321else 14322 SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}" 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic linker flag" >&5 14324$as_echo_n "checking for -Bsymbolic linker flag... " >&6; } 14325 LDFLAGS=-Wl,-Bsymbolic 14326 LIBS= 14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329 14330int 14331main () 14332{ 14333return 0 14334 ; 14335 return 0; 14336} 14337_ACEOF 14338if ac_fn_c_try_link "$LINENO"; then : 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14340$as_echo "yes" >&6; } 14341 enable_Bsymbolic=yes 14342else 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14344$as_echo "no" >&6; } 14345 enable_Bsymbolic=no 14346fi 14347rm -f core conftest.err conftest.$ac_objext \ 14348 conftest$ac_exeext conftest.$ac_ext 14349 LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}" 14350fi 14351 14352 14353if test "x${enable_Bsymbolic}" = "xyes"; then 14354 CHAFA_BDYNAMIC_FLAGS=-Wl,-Bsymbolic 14355fi 14356 14357 14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc __builtin_cpu_init function" >&5 14359$as_echo_n "checking for gcc __builtin_cpu_init function... " >&6; } 14360if ${ax_cv_gcc_check_x86_cpu_init+:} false; then : 14361 $as_echo_n "(cached) " >&6 14362else 14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14364/* end confdefs.h. */ 14365#include <stdlib.h> 14366int 14367main () 14368{ 14369__builtin_cpu_init (); 14370 ; 14371 return 0; 14372} 14373_ACEOF 14374if ac_fn_c_try_link "$LINENO"; then : 14375 ax_cv_gcc_check_x86_cpu_init=yes 14376else 14377 ax_cv_gcc_check_x86_cpu_init=no 14378fi 14379rm -f core conftest.err conftest.$ac_objext \ 14380 conftest$ac_exeext conftest.$ac_ext 14381fi 14382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_check_x86_cpu_init" >&5 14383$as_echo "$ax_cv_gcc_check_x86_cpu_init" >&6; } 14384 14385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc __builtin_cpu_supports function" >&5 14386$as_echo_n "checking for gcc __builtin_cpu_supports function... " >&6; } 14387if ${ax_cv_gcc_check_x86_cpu_supports+:} false; then : 14388 $as_echo_n "(cached) " >&6 14389else 14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14391/* end confdefs.h. */ 14392#include <stdlib.h> 14393int 14394main () 14395{ 14396__builtin_cpu_supports ("mmx"); 14397 ; 14398 return 0; 14399} 14400_ACEOF 14401if ac_fn_c_try_link "$LINENO"; then : 14402 ax_cv_gcc_check_x86_cpu_supports=yes 14403else 14404 ax_cv_gcc_check_x86_cpu_supports=no 14405fi 14406rm -f core conftest.err conftest.$ac_objext \ 14407 conftest$ac_exeext conftest.$ac_ext 14408fi 14409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_check_x86_cpu_supports" >&5 14410$as_echo "$ax_cv_gcc_check_x86_cpu_supports" >&6; } 14411 14412if test "$ax_cv_gcc_check_x86_cpu_init" = "yes" && test "$ax_cv_gcc_check_x86_cpu_supports" = "yes"; then : 14413 14414 14415$as_echo "#define HAVE_GCC_X86_FEATURE_BUILTINS 1" >>confdefs.h 14416 14417 14418fi 14419 14420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working MMX intrinsics" >&5 14421$as_echo_n "checking for working MMX intrinsics... " >&6; } 14422SAVED_CFLAGS="${CFLAGS}" 14423CFLAGS="${CFLAGS} -mmmx" 14424cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14425/* end confdefs.h. */ 14426#include <mmintrin.h> 14427int 14428main () 14429{ 14430_mm_empty (); 14431 ; 14432 return 0; 14433} 14434_ACEOF 14435if ac_fn_c_try_link "$LINENO"; then : 14436 14437$as_echo "#define HAVE_MMX_INTRINSICS 1" >>confdefs.h 14438 14439 ac_cv_mmx_intrinsics=yes 14440else 14441 ac_cv_mmx_intrinsics=no 14442fi 14443rm -f core conftest.err conftest.$ac_objext \ 14444 conftest$ac_exeext conftest.$ac_ext 14445CFLAGS="${SAVED_CFLAGS}" 14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_mmx_intrinsics}" >&5 14447$as_echo "${ac_cv_mmx_intrinsics}" >&6; } 14448 if test "$ac_cv_mmx_intrinsics" = "yes"; then 14449 HAVE_MMX_INTRINSICS_TRUE= 14450 HAVE_MMX_INTRINSICS_FALSE='#' 14451else 14452 HAVE_MMX_INTRINSICS_TRUE='#' 14453 HAVE_MMX_INTRINSICS_FALSE= 14454fi 14455 14456 14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working SSE 4.1 intrinsics" >&5 14458$as_echo_n "checking for working SSE 4.1 intrinsics... " >&6; } 14459SAVED_CFLAGS="${CFLAGS}" 14460CFLAGS="${CFLAGS} -msse4.1" 14461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14462/* end confdefs.h. */ 14463#include <smmintrin.h> 14464int 14465main () 14466{ 14467__m128i t = { 0 }; int r = _mm_test_all_ones (t); 14468 ; 14469 return 0; 14470} 14471_ACEOF 14472if ac_fn_c_try_link "$LINENO"; then : 14473 14474$as_echo "#define HAVE_SSE41_INTRINSICS 1" >>confdefs.h 14475 14476 ac_cv_sse41_intrinsics=yes 14477else 14478 ac_cv_sse41_intrinsics=no 14479fi 14480rm -f core conftest.err conftest.$ac_objext \ 14481 conftest$ac_exeext conftest.$ac_ext 14482CFLAGS="${SAVED_CFLAGS}" 14483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_sse41_intrinsics}" >&5 14484$as_echo "${ac_cv_sse41_intrinsics}" >&6; } 14485 if test "$ac_cv_sse41_intrinsics" = "yes"; then 14486 HAVE_SSE41_INTRINSICS_TRUE= 14487 HAVE_SSE41_INTRINSICS_FALSE='#' 14488else 14489 HAVE_SSE41_INTRINSICS_TRUE='#' 14490 HAVE_SSE41_INTRINSICS_FALSE= 14491fi 14492 14493 14494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AVX2 intrinsics" >&5 14495$as_echo_n "checking for working AVX2 intrinsics... " >&6; } 14496SAVED_CFLAGS="${CFLAGS}" 14497CFLAGS="${CFLAGS} -mavx2" 14498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500#include <immintrin.h> 14501int 14502main () 14503{ 14504__m256i t = { 0 }; __m256i r = _mm256_abs_epi32 (t); 14505 ; 14506 return 0; 14507} 14508_ACEOF 14509if ac_fn_c_try_link "$LINENO"; then : 14510 14511$as_echo "#define HAVE_AVX2_INTRINSICS 1" >>confdefs.h 14512 14513 ac_cv_avx2_intrinsics=yes 14514else 14515 ac_cv_avx2_intrinsics=no 14516fi 14517rm -f core conftest.err conftest.$ac_objext \ 14518 conftest$ac_exeext conftest.$ac_ext 14519CFLAGS="${SAVED_CFLAGS}" 14520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_avx2_intrinsics}" >&5 14521$as_echo "${ac_cv_avx2_intrinsics}" >&6; } 14522 if test "$ac_cv_avx2_intrinsics" = "yes"; then 14523 HAVE_AVX2_INTRINSICS_TRUE= 14524 HAVE_AVX2_INTRINSICS_FALSE='#' 14525else 14526 HAVE_AVX2_INTRINSICS_TRUE='#' 14527 HAVE_AVX2_INTRINSICS_FALSE= 14528fi 14529 14530 14531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working 64bit popcnt intrinsics" >&5 14532$as_echo_n "checking for working 64bit popcnt intrinsics... " >&6; } 14533SAVED_CFLAGS="${CFLAGS}" 14534CFLAGS="${CFLAGS} -mpopcnt" 14535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14536/* end confdefs.h. */ 14537#include <stdint.h> 14538 #include <nmmintrin.h> 14539int 14540main () 14541{ 14542uint64_t t = 0; t = _mm_popcnt_u64 (t); 14543 ; 14544 return 0; 14545} 14546_ACEOF 14547if ac_fn_c_try_link "$LINENO"; then : 14548 14549$as_echo "#define HAVE_POPCNT64_INTRINSICS 1" >>confdefs.h 14550 14551 ac_cv_popcnt64_intrinsics=yes 14552else 14553 ac_cv_popcnt64_intrinsics=no 14554fi 14555rm -f core conftest.err conftest.$ac_objext \ 14556 conftest$ac_exeext conftest.$ac_ext 14557CFLAGS="${SAVED_CFLAGS}" 14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_popcnt64_intrinsics}" >&5 14559$as_echo "${ac_cv_popcnt64_intrinsics}" >&6; } 14560 14561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working 32bit popcnt intrinsics" >&5 14562$as_echo_n "checking for working 32bit popcnt intrinsics... " >&6; } 14563SAVED_CFLAGS="${CFLAGS}" 14564CFLAGS="${CFLAGS} -mpopcnt" 14565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14566/* end confdefs.h. */ 14567#include <stdint.h> 14568 #include <nmmintrin.h> 14569int 14570main () 14571{ 14572uint32_t t = 0; t = _mm_popcnt_u32 (t); 14573 ; 14574 return 0; 14575} 14576_ACEOF 14577if ac_fn_c_try_link "$LINENO"; then : 14578 14579$as_echo "#define HAVE_POPCNT32_INTRINSICS 1" >>confdefs.h 14580 14581 ac_cv_popcnt32_intrinsics=yes 14582else 14583 ac_cv_popcnt32_intrinsics=no 14584fi 14585rm -f core conftest.err conftest.$ac_objext \ 14586 conftest$ac_exeext conftest.$ac_ext 14587CFLAGS="${SAVED_CFLAGS}" 14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_popcnt32_intrinsics}" >&5 14589$as_echo "${ac_cv_popcnt32_intrinsics}" >&6; } 14590 14591 if test "$ac_cv_popcnt64_intrinsics" = "yes" -o "$ac_cv_popcnt32_intrinsics" = "yes"; then 14592 HAVE_POPCNT_INTRINSICS_TRUE= 14593 HAVE_POPCNT_INTRINSICS_FALSE='#' 14594else 14595 HAVE_POPCNT_INTRINSICS_TRUE='#' 14596 HAVE_POPCNT_INTRINSICS_FALSE= 14597fi 14598 14599 14600CHAFA_VISIBILITY_CFLAGS="" 14601case "$host" in 14602 *-*-mingw*) 14603 14604$as_echo "#define _CHAFA_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h 14605 14606 CFLAGS="${CFLAGS} -fvisibility=hidden" 14607 ;; 14608 *) 14609 SAVED_CFLAGS="${CFLAGS}" 14610 CFLAGS="-fvisibility=hidden" 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5 14612$as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; } 14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14614/* end confdefs.h. */ 14615 14616int 14617main () 14618{ 14619return 0 14620 ; 14621 return 0; 14622} 14623_ACEOF 14624if ac_fn_c_try_compile "$LINENO"; then : 14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14626$as_echo "yes" >&6; } 14627 enable_fvisibility_hidden=yes 14628else 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14630$as_echo "no" >&6; } 14631 enable_fvisibility_hidden=no 14632fi 14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14634 CFLAGS="${SAVED_CFLAGS}" 14635 14636 if test "${enable_fvisibility_hidden}" = "yes"; then : 14637 14638 14639$as_echo "#define _CHAFA_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h 14640 14641 CHAFA_VISIBILITY_CFLAGS="-fvisibility=hidden" 14642 14643fi 14644 ;; 14645esac 14646 14647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 14648$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } 14649if ${ax_cv_check_cflags__Werror__ffast_math+:} false; then : 14650 $as_echo_n "(cached) " >&6 14651else 14652 14653 ax_check_save_flags=$CFLAGS 14654 CFLAGS="$CFLAGS -Werror -ffast-math" 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657 14658int 14659main () 14660{ 14661 14662 ; 14663 return 0; 14664} 14665_ACEOF 14666if ac_fn_c_try_compile "$LINENO"; then : 14667 ax_cv_check_cflags__Werror__ffast_math=yes 14668else 14669 ax_cv_check_cflags__Werror__ffast_math=no 14670fi 14671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14672 CFLAGS=$ax_check_save_flags 14673fi 14674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__ffast_math" >&5 14675$as_echo "$ax_cv_check_cflags__Werror__ffast_math" >&6; } 14676if test "x$ax_cv_check_cflags__Werror__ffast_math" = xyes; then : 14677 BASE_CFLAGS="$BASE_CFLAGS -ffast-math" 14678else 14679 : 14680fi 14681 14682 14683 14684 14685SAVED_CPPFLAGS=$CPPFLAGS 14686CPPFLAGS="$CFLAGS $MAGICKWAND_CFLAGS" 14687for ac_header in wand/MagickWand.h 14688do : 14689 ac_fn_c_check_header_mongrel "$LINENO" "wand/MagickWand.h" "ac_cv_header_wand_MagickWand_h" "$ac_includes_default" 14690if test "x$ac_cv_header_wand_MagickWand_h" = xyes; then : 14691 cat >>confdefs.h <<_ACEOF 14692#define HAVE_WAND_MAGICKWAND_H 1 14693_ACEOF 14694 14695fi 14696 14697done 14698 14699for ac_header in MagickWand/MagickWand.h 14700do : 14701 ac_fn_c_check_header_mongrel "$LINENO" "MagickWand/MagickWand.h" "ac_cv_header_MagickWand_MagickWand_h" "$ac_includes_default" 14702if test "x$ac_cv_header_MagickWand_MagickWand_h" = xyes; then : 14703 cat >>confdefs.h <<_ACEOF 14704#define HAVE_MAGICKWAND_MAGICKWAND_H 1 14705_ACEOF 14706 14707fi 14708 14709done 14710 14711CPPFLAGS=$SAVED_CPPFLAGS 14712 14713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-arg MagickResizeImage" >&5 14714$as_echo_n "checking for 4-arg MagickResizeImage... " >&6; } 14715SAVED_CFLAGS=$CFLAGS 14716CFLAGS="$CFLAGS $MAGICKWAND_CFLAGS" 14717SAVED_LDFLAGS=$LDFLAGS 14718LDFLAGS="$MAGICKWAND_LIBS $LDFLAGS" 14719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720/* end confdefs.h. */ 14721 14722#ifdef HAVE_WAND_MAGICKWAND_H 14723# include <wand/MagickWand.h> 14724#else 14725# include <MagickWand/MagickWand.h> 14726#endif 14727 14728int 14729main () 14730{ 14731MagickResizeImage (0, 0, 0, 0); 14732 ; 14733 return 0; 14734} 14735_ACEOF 14736if ac_fn_c_try_link "$LINENO"; then : 14737 14738$as_echo "#define HAVE_MAGICK_RESIZE_IMAGE_4 1" >>confdefs.h 14739 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14741$as_echo "yes" >&6; } 14742else 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14744$as_echo "no" >&6; } 14745fi 14746rm -f core conftest.err conftest.$ac_objext \ 14747 conftest$ac_exeext conftest.$ac_ext 14748CFLAGS=$SAVED_CFLAGS 14749LDFLAGS=$SAVED_LDFLAGS 14750 14751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-arg MagickResizeImage" >&5 14752$as_echo_n "checking for 5-arg MagickResizeImage... " >&6; } 14753SAVED_CFLAGS=$CFLAGS 14754CFLAGS="$CFLAGS $MAGICKWAND_CFLAGS" 14755SAVED_LDFLAGS=$LDFLAGS 14756LDFLAGS="$MAGICKWAND_LIBS $LDFLAGS" 14757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14758/* end confdefs.h. */ 14759 14760#ifdef HAVE_WAND_MAGICKWAND_H 14761# include <wand/MagickWand.h> 14762#else 14763# include <MagickWand/MagickWand.h> 14764#endif 14765 14766int 14767main () 14768{ 14769MagickResizeImage (0, 0, 0, 0, 1.0); 14770 ; 14771 return 0; 14772} 14773_ACEOF 14774if ac_fn_c_try_link "$LINENO"; then : 14775 14776$as_echo "#define HAVE_MAGICK_RESIZE_IMAGE_5 1" >>confdefs.h 14777 14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14779$as_echo "yes" >&6; } 14780else 14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14782$as_echo "no" >&6; } 14783fi 14784rm -f core conftest.err conftest.$ac_objext \ 14785 conftest$ac_exeext conftest.$ac_ext 14786CFLAGS=$SAVED_CFLAGS 14787LDFLAGS=$SAVED_LDFLAGS 14788 14789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MagickAutoOrientImage" >&5 14790$as_echo_n "checking for MagickAutoOrientImage... " >&6; } 14791SAVED_CFLAGS=$CFLAGS 14792CFLAGS="$CFLAGS $MAGICKWAND_CFLAGS" 14793SAVED_LDFLAGS=$LDFLAGS 14794LDFLAGS="$MAGICKWAND_LIBS $LDFLAGS" 14795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14796/* end confdefs.h. */ 14797 14798#ifdef HAVE_WAND_MAGICKWAND_H 14799# include <wand/MagickWand.h> 14800#else 14801# include <MagickWand/MagickWand.h> 14802#endif 14803 14804int 14805main () 14806{ 14807MagickAutoOrientImage (0); 14808 ; 14809 return 0; 14810} 14811_ACEOF 14812if ac_fn_c_try_link "$LINENO"; then : 14813 14814$as_echo "#define HAVE_MAGICK_AUTO_ORIENT_IMAGE 1" >>confdefs.h 14815 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14817$as_echo "yes" >&6; } 14818else 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14820$as_echo "no" >&6; } 14821fi 14822rm -f core conftest.err conftest.$ac_objext \ 14823 conftest$ac_exeext conftest.$ac_ext 14824CFLAGS=$SAVED_CFLAGS 14825LDFLAGS=$SAVED_LDFLAGS 14826 14827 14828LIBCHAFA_CFLAGS="$BASE_CFLAGS $CHAFA_VISIBILITY_CFLAGS" 14829LIBCHAFA_LDFLAGS="$CHAFA_BDYNAMIC_FLAGS" 14830 14831CHAFA_CFLAGS="$BASE_CFLAGS $CHAFA_VISIBILITY_CFLAGS" 14832CHAFA_LDFLAGS="$CHAFA_BDYNAMIC_FLAGS" 14833 14834 14835 14836 14837 14838 14839 14840# Check whether --enable-rpath was given. 14841if test "${enable_rpath+set}" = set; then : 14842 enableval=$enable_rpath; 14843fi 14844 14845 14846 if test "$enable_rpath" == yes; then 14847 ENABLE_RPATH_TRUE= 14848 ENABLE_RPATH_FALSE='#' 14849else 14850 ENABLE_RPATH_TRUE='#' 14851 ENABLE_RPATH_FALSE= 14852fi 14853 14854 14855 14856ac_config_files="$ac_config_files Makefile chafa/Makefile chafa/chafaconfig.h chafa/internal/Makefile chafa/internal/smolscale/Makefile libnsgif/Makefile chafa.pc docs/Makefile docs/version.xml tests/Makefile tools/Makefile tools/chafa/Makefile tools/fontgen/Makefile" 14857 14858cat >confcache <<\_ACEOF 14859# This file is a shell script that caches the results of configure 14860# tests run on this system so they can be shared between configure 14861# scripts and configure runs, see configure's option --config-cache. 14862# It is not useful on other systems. If it contains results you don't 14863# want to keep, you may remove or edit it. 14864# 14865# config.status only pays attention to the cache file if you give it 14866# the --recheck option to rerun configure. 14867# 14868# `ac_cv_env_foo' variables (set or unset) will be overridden when 14869# loading this file, other *unset* `ac_cv_foo' will be assigned the 14870# following values. 14871 14872_ACEOF 14873 14874# The following way of writing the cache mishandles newlines in values, 14875# but we know of no workaround that is simple, portable, and efficient. 14876# So, we kill variables containing newlines. 14877# Ultrix sh set writes to stderr and can't be redirected directly, 14878# and sets the high bit in the cache file unless we assign to the vars. 14879( 14880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14881 eval ac_val=\$$ac_var 14882 case $ac_val in #( 14883 *${as_nl}*) 14884 case $ac_var in #( 14885 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14886$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14887 esac 14888 case $ac_var in #( 14889 _ | IFS | as_nl) ;; #( 14890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14891 *) { eval $ac_var=; unset $ac_var;} ;; 14892 esac ;; 14893 esac 14894 done 14895 14896 (set) 2>&1 | 14897 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14898 *${as_nl}ac_space=\ *) 14899 # `set' does not quote correctly, so add quotes: double-quote 14900 # substitution turns \\\\ into \\, and sed turns \\ into \. 14901 sed -n \ 14902 "s/'/'\\\\''/g; 14903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14904 ;; #( 14905 *) 14906 # `set' quotes correctly as required by POSIX, so do not add quotes. 14907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14908 ;; 14909 esac | 14910 sort 14911) | 14912 sed ' 14913 /^ac_cv_env_/b end 14914 t clear 14915 :clear 14916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14917 t end 14918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14919 :end' >>confcache 14920if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14921 if test -w "$cache_file"; then 14922 if test "x$cache_file" != "x/dev/null"; then 14923 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14924$as_echo "$as_me: updating cache $cache_file" >&6;} 14925 if test ! -f "$cache_file" || test -h "$cache_file"; then 14926 cat confcache >"$cache_file" 14927 else 14928 case $cache_file in #( 14929 */* | ?:*) 14930 mv -f confcache "$cache_file"$$ && 14931 mv -f "$cache_file"$$ "$cache_file" ;; #( 14932 *) 14933 mv -f confcache "$cache_file" ;; 14934 esac 14935 fi 14936 fi 14937 else 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14939$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14940 fi 14941fi 14942rm -f confcache 14943 14944test "x$prefix" = xNONE && prefix=$ac_default_prefix 14945# Let make expand exec_prefix. 14946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14947 14948DEFS=-DHAVE_CONFIG_H 14949 14950ac_libobjs= 14951ac_ltlibobjs= 14952for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14953 # 1. Remove the extension, and $U if already installed. 14954 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14955 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14956 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14957 # will be set to the directory where LIBOBJS objects are built. 14958 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14959 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14960done 14961LIBOBJS=$ac_libobjs 14962 14963LTLIBOBJS=$ac_ltlibobjs 14964 14965 14966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14967$as_echo_n "checking that generated files are newer than configure... " >&6; } 14968 if test -n "$am_sleep_pid"; then 14969 # Hide warnings about reused PIDs. 14970 wait $am_sleep_pid 2>/dev/null 14971 fi 14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14973$as_echo "done" >&6; } 14974 if test -n "$EXEEXT"; then 14975 am__EXEEXT_TRUE= 14976 am__EXEEXT_FALSE='#' 14977else 14978 am__EXEEXT_TRUE='#' 14979 am__EXEEXT_FALSE= 14980fi 14981 14982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14983$as_echo_n "checking that generated files are newer than configure... " >&6; } 14984 if test -n "$am_sleep_pid"; then 14985 # Hide warnings about reused PIDs. 14986 wait $am_sleep_pid 2>/dev/null 14987 fi 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14989$as_echo "done" >&6; } 14990if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14991 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14992Usually this means the macro was only invoked conditionally." "$LINENO" 5 14993fi 14994if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14995 as_fn_error $? "conditional \"AMDEP\" was never defined. 14996Usually this means the macro was only invoked conditionally." "$LINENO" 5 14997fi 14998if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14999 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15000Usually this means the macro was only invoked conditionally." "$LINENO" 5 15001fi 15002if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15003 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15004Usually this means the macro was only invoked conditionally." "$LINENO" 5 15005fi 15006if test -z "${WANT_TOOLS_TRUE}" && test -z "${WANT_TOOLS_FALSE}"; then 15007 as_fn_error $? "conditional \"WANT_TOOLS\" was never defined. 15008Usually this means the macro was only invoked conditionally." "$LINENO" 5 15009fi 15010if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then 15011 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. 15012Usually this means the macro was only invoked conditionally." "$LINENO" 5 15013fi 15014if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 15015 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 15016Usually this means the macro was only invoked conditionally." "$LINENO" 5 15017fi 15018if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 15019 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 15020Usually this means the macro was only invoked conditionally." "$LINENO" 5 15021fi 15022if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 15023 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 15024Usually this means the macro was only invoked conditionally." "$LINENO" 5 15025fi 15026if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 15027 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 15028Usually this means the macro was only invoked conditionally." "$LINENO" 5 15029fi 15030if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 15031 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 15032Usually this means the macro was only invoked conditionally." "$LINENO" 5 15033fi 15034if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then 15035 as_fn_error $? "conditional \"ENABLE_MAN\" was never defined. 15036Usually this means the macro was only invoked conditionally." "$LINENO" 5 15037fi 15038if test -z "${HAVE_MMX_INTRINSICS_TRUE}" && test -z "${HAVE_MMX_INTRINSICS_FALSE}"; then 15039 as_fn_error $? "conditional \"HAVE_MMX_INTRINSICS\" was never defined. 15040Usually this means the macro was only invoked conditionally." "$LINENO" 5 15041fi 15042if test -z "${HAVE_SSE41_INTRINSICS_TRUE}" && test -z "${HAVE_SSE41_INTRINSICS_FALSE}"; then 15043 as_fn_error $? "conditional \"HAVE_SSE41_INTRINSICS\" was never defined. 15044Usually this means the macro was only invoked conditionally." "$LINENO" 5 15045fi 15046if test -z "${HAVE_AVX2_INTRINSICS_TRUE}" && test -z "${HAVE_AVX2_INTRINSICS_FALSE}"; then 15047 as_fn_error $? "conditional \"HAVE_AVX2_INTRINSICS\" was never defined. 15048Usually this means the macro was only invoked conditionally." "$LINENO" 5 15049fi 15050if test -z "${HAVE_POPCNT_INTRINSICS_TRUE}" && test -z "${HAVE_POPCNT_INTRINSICS_FALSE}"; then 15051 as_fn_error $? "conditional \"HAVE_POPCNT_INTRINSICS\" was never defined. 15052Usually this means the macro was only invoked conditionally." "$LINENO" 5 15053fi 15054if test -z "${ENABLE_RPATH_TRUE}" && test -z "${ENABLE_RPATH_FALSE}"; then 15055 as_fn_error $? "conditional \"ENABLE_RPATH\" was never defined. 15056Usually this means the macro was only invoked conditionally." "$LINENO" 5 15057fi 15058 15059: "${CONFIG_STATUS=./config.status}" 15060ac_write_fail=0 15061ac_clean_files_save=$ac_clean_files 15062ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15063{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15064$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15065as_write_fail=0 15066cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15067#! $SHELL 15068# Generated by $as_me. 15069# Run this file to recreate the current configuration. 15070# Compiler output produced by configure, useful for debugging 15071# configure, is in config.log if it exists. 15072 15073debug=false 15074ac_cs_recheck=false 15075ac_cs_silent=false 15076 15077SHELL=\${CONFIG_SHELL-$SHELL} 15078export SHELL 15079_ASEOF 15080cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15081## -------------------- ## 15082## M4sh Initialization. ## 15083## -------------------- ## 15084 15085# Be more Bourne compatible 15086DUALCASE=1; export DUALCASE # for MKS sh 15087if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15088 emulate sh 15089 NULLCMD=: 15090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15091 # is contrary to our usage. Disable this feature. 15092 alias -g '${1+"$@"}'='"$@"' 15093 setopt NO_GLOB_SUBST 15094else 15095 case `(set -o) 2>/dev/null` in #( 15096 *posix*) : 15097 set -o posix ;; #( 15098 *) : 15099 ;; 15100esac 15101fi 15102 15103 15104as_nl=' 15105' 15106export as_nl 15107# Printing a long string crashes Solaris 7 /usr/bin/printf. 15108as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15109as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15110as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15111# Prefer a ksh shell builtin over an external printf program on Solaris, 15112# but without wasting forks for bash or zsh. 15113if test -z "$BASH_VERSION$ZSH_VERSION" \ 15114 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15115 as_echo='print -r --' 15116 as_echo_n='print -rn --' 15117elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15118 as_echo='printf %s\n' 15119 as_echo_n='printf %s' 15120else 15121 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15122 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15123 as_echo_n='/usr/ucb/echo -n' 15124 else 15125 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15126 as_echo_n_body='eval 15127 arg=$1; 15128 case $arg in #( 15129 *"$as_nl"*) 15130 expr "X$arg" : "X\\(.*\\)$as_nl"; 15131 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15132 esac; 15133 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15134 ' 15135 export as_echo_n_body 15136 as_echo_n='sh -c $as_echo_n_body as_echo' 15137 fi 15138 export as_echo_body 15139 as_echo='sh -c $as_echo_body as_echo' 15140fi 15141 15142# The user is always right. 15143if test "${PATH_SEPARATOR+set}" != set; then 15144 PATH_SEPARATOR=: 15145 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15146 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15147 PATH_SEPARATOR=';' 15148 } 15149fi 15150 15151 15152# IFS 15153# We need space, tab and new line, in precisely that order. Quoting is 15154# there to prevent editors from complaining about space-tab. 15155# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15156# splitting by setting IFS to empty value.) 15157IFS=" "" $as_nl" 15158 15159# Find who we are. Look in the path if we contain no directory separator. 15160as_myself= 15161case $0 in #(( 15162 *[\\/]* ) as_myself=$0 ;; 15163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15164for as_dir in $PATH 15165do 15166 IFS=$as_save_IFS 15167 test -z "$as_dir" && as_dir=. 15168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15169 done 15170IFS=$as_save_IFS 15171 15172 ;; 15173esac 15174# We did not find ourselves, most probably we were run as `sh COMMAND' 15175# in which case we are not to be found in the path. 15176if test "x$as_myself" = x; then 15177 as_myself=$0 15178fi 15179if test ! -f "$as_myself"; then 15180 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15181 exit 1 15182fi 15183 15184# Unset variables that we do not need and which cause bugs (e.g. in 15185# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15186# suppresses any "Segmentation fault" message there. '((' could 15187# trigger a bug in pdksh 5.2.14. 15188for as_var in BASH_ENV ENV MAIL MAILPATH 15189do eval test x\${$as_var+set} = xset \ 15190 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15191done 15192PS1='$ ' 15193PS2='> ' 15194PS4='+ ' 15195 15196# NLS nuisances. 15197LC_ALL=C 15198export LC_ALL 15199LANGUAGE=C 15200export LANGUAGE 15201 15202# CDPATH. 15203(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15204 15205 15206# as_fn_error STATUS ERROR [LINENO LOG_FD] 15207# ---------------------------------------- 15208# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15209# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15210# script with STATUS, using 1 if that was 0. 15211as_fn_error () 15212{ 15213 as_status=$1; test $as_status -eq 0 && as_status=1 15214 if test "$4"; then 15215 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15216 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15217 fi 15218 $as_echo "$as_me: error: $2" >&2 15219 as_fn_exit $as_status 15220} # as_fn_error 15221 15222 15223# as_fn_set_status STATUS 15224# ----------------------- 15225# Set $? to STATUS, without forking. 15226as_fn_set_status () 15227{ 15228 return $1 15229} # as_fn_set_status 15230 15231# as_fn_exit STATUS 15232# ----------------- 15233# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15234as_fn_exit () 15235{ 15236 set +e 15237 as_fn_set_status $1 15238 exit $1 15239} # as_fn_exit 15240 15241# as_fn_unset VAR 15242# --------------- 15243# Portably unset VAR. 15244as_fn_unset () 15245{ 15246 { eval $1=; unset $1;} 15247} 15248as_unset=as_fn_unset 15249# as_fn_append VAR VALUE 15250# ---------------------- 15251# Append the text in VALUE to the end of the definition contained in VAR. Take 15252# advantage of any shell optimizations that allow amortized linear growth over 15253# repeated appends, instead of the typical quadratic growth present in naive 15254# implementations. 15255if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15256 eval 'as_fn_append () 15257 { 15258 eval $1+=\$2 15259 }' 15260else 15261 as_fn_append () 15262 { 15263 eval $1=\$$1\$2 15264 } 15265fi # as_fn_append 15266 15267# as_fn_arith ARG... 15268# ------------------ 15269# Perform arithmetic evaluation on the ARGs, and store the result in the 15270# global $as_val. Take advantage of shells that can avoid forks. The arguments 15271# must be portable across $(()) and expr. 15272if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15273 eval 'as_fn_arith () 15274 { 15275 as_val=$(( $* )) 15276 }' 15277else 15278 as_fn_arith () 15279 { 15280 as_val=`expr "$@" || test $? -eq 1` 15281 } 15282fi # as_fn_arith 15283 15284 15285if expr a : '\(a\)' >/dev/null 2>&1 && 15286 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15287 as_expr=expr 15288else 15289 as_expr=false 15290fi 15291 15292if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15293 as_basename=basename 15294else 15295 as_basename=false 15296fi 15297 15298if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15299 as_dirname=dirname 15300else 15301 as_dirname=false 15302fi 15303 15304as_me=`$as_basename -- "$0" || 15305$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15306 X"$0" : 'X\(//\)$' \| \ 15307 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15308$as_echo X/"$0" | 15309 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15310 s//\1/ 15311 q 15312 } 15313 /^X\/\(\/\/\)$/{ 15314 s//\1/ 15315 q 15316 } 15317 /^X\/\(\/\).*/{ 15318 s//\1/ 15319 q 15320 } 15321 s/.*/./; q'` 15322 15323# Avoid depending upon Character Ranges. 15324as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15325as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15326as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15327as_cr_digits='0123456789' 15328as_cr_alnum=$as_cr_Letters$as_cr_digits 15329 15330ECHO_C= ECHO_N= ECHO_T= 15331case `echo -n x` in #((((( 15332-n*) 15333 case `echo 'xy\c'` in 15334 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15335 xy) ECHO_C='\c';; 15336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15337 ECHO_T=' ';; 15338 esac;; 15339*) 15340 ECHO_N='-n';; 15341esac 15342 15343rm -f conf$$ conf$$.exe conf$$.file 15344if test -d conf$$.dir; then 15345 rm -f conf$$.dir/conf$$.file 15346else 15347 rm -f conf$$.dir 15348 mkdir conf$$.dir 2>/dev/null 15349fi 15350if (echo >conf$$.file) 2>/dev/null; then 15351 if ln -s conf$$.file conf$$ 2>/dev/null; then 15352 as_ln_s='ln -s' 15353 # ... but there are two gotchas: 15354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15356 # In both cases, we have to default to `cp -pR'. 15357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15358 as_ln_s='cp -pR' 15359 elif ln conf$$.file conf$$ 2>/dev/null; then 15360 as_ln_s=ln 15361 else 15362 as_ln_s='cp -pR' 15363 fi 15364else 15365 as_ln_s='cp -pR' 15366fi 15367rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15368rmdir conf$$.dir 2>/dev/null 15369 15370 15371# as_fn_mkdir_p 15372# ------------- 15373# Create "$as_dir" as a directory, including parents if necessary. 15374as_fn_mkdir_p () 15375{ 15376 15377 case $as_dir in #( 15378 -*) as_dir=./$as_dir;; 15379 esac 15380 test -d "$as_dir" || eval $as_mkdir_p || { 15381 as_dirs= 15382 while :; do 15383 case $as_dir in #( 15384 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15385 *) as_qdir=$as_dir;; 15386 esac 15387 as_dirs="'$as_qdir' $as_dirs" 15388 as_dir=`$as_dirname -- "$as_dir" || 15389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15390 X"$as_dir" : 'X\(//\)[^/]' \| \ 15391 X"$as_dir" : 'X\(//\)$' \| \ 15392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15393$as_echo X"$as_dir" | 15394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15395 s//\1/ 15396 q 15397 } 15398 /^X\(\/\/\)[^/].*/{ 15399 s//\1/ 15400 q 15401 } 15402 /^X\(\/\/\)$/{ 15403 s//\1/ 15404 q 15405 } 15406 /^X\(\/\).*/{ 15407 s//\1/ 15408 q 15409 } 15410 s/.*/./; q'` 15411 test -d "$as_dir" && break 15412 done 15413 test -z "$as_dirs" || eval "mkdir $as_dirs" 15414 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15415 15416 15417} # as_fn_mkdir_p 15418if mkdir -p . 2>/dev/null; then 15419 as_mkdir_p='mkdir -p "$as_dir"' 15420else 15421 test -d ./-p && rmdir ./-p 15422 as_mkdir_p=false 15423fi 15424 15425 15426# as_fn_executable_p FILE 15427# ----------------------- 15428# Test if FILE is an executable regular file. 15429as_fn_executable_p () 15430{ 15431 test -f "$1" && test -x "$1" 15432} # as_fn_executable_p 15433as_test_x='test -x' 15434as_executable_p=as_fn_executable_p 15435 15436# Sed expression to map a string onto a valid CPP name. 15437as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15438 15439# Sed expression to map a string onto a valid variable name. 15440as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15441 15442 15443exec 6>&1 15444## ----------------------------------- ## 15445## Main body of $CONFIG_STATUS script. ## 15446## ----------------------------------- ## 15447_ASEOF 15448test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15449 15450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15451# Save the log message, to keep $0 and so on meaningful, and to 15452# report actual input values of CONFIG_FILES etc. instead of their 15453# values after options handling. 15454ac_log=" 15455This file was extended by chafa $as_me 1.8.0, which was 15456generated by GNU Autoconf 2.69. Invocation command line was 15457 15458 CONFIG_FILES = $CONFIG_FILES 15459 CONFIG_HEADERS = $CONFIG_HEADERS 15460 CONFIG_LINKS = $CONFIG_LINKS 15461 CONFIG_COMMANDS = $CONFIG_COMMANDS 15462 $ $0 $@ 15463 15464on `(hostname || uname -n) 2>/dev/null | sed 1q` 15465" 15466 15467_ACEOF 15468 15469case $ac_config_files in *" 15470"*) set x $ac_config_files; shift; ac_config_files=$*;; 15471esac 15472 15473case $ac_config_headers in *" 15474"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15475esac 15476 15477 15478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15479# Files that config.status was made for. 15480config_files="$ac_config_files" 15481config_headers="$ac_config_headers" 15482config_commands="$ac_config_commands" 15483 15484_ACEOF 15485 15486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15487ac_cs_usage="\ 15488\`$as_me' instantiates files and other configuration actions 15489from templates according to the current configuration. Unless the files 15490and actions are specified as TAGs, all are instantiated by default. 15491 15492Usage: $0 [OPTION]... [TAG]... 15493 15494 -h, --help print this help, then exit 15495 -V, --version print version number and configuration settings, then exit 15496 --config print configuration, then exit 15497 -q, --quiet, --silent 15498 do not print progress messages 15499 -d, --debug don't remove temporary files 15500 --recheck update $as_me by reconfiguring in the same conditions 15501 --file=FILE[:TEMPLATE] 15502 instantiate the configuration file FILE 15503 --header=FILE[:TEMPLATE] 15504 instantiate the configuration header FILE 15505 15506Configuration files: 15507$config_files 15508 15509Configuration headers: 15510$config_headers 15511 15512Configuration commands: 15513$config_commands 15514 15515Report bugs to <hpj@hpjansson.org>." 15516 15517_ACEOF 15518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15519ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15520ac_cs_version="\\ 15521chafa config.status 1.8.0 15522configured by $0, generated by GNU Autoconf 2.69, 15523 with options \\"\$ac_cs_config\\" 15524 15525Copyright (C) 2012 Free Software Foundation, Inc. 15526This config.status script is free software; the Free Software Foundation 15527gives unlimited permission to copy, distribute and modify it." 15528 15529ac_pwd='$ac_pwd' 15530srcdir='$srcdir' 15531INSTALL='$INSTALL' 15532MKDIR_P='$MKDIR_P' 15533AWK='$AWK' 15534test -n "\$AWK" || AWK=awk 15535_ACEOF 15536 15537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15538# The default lists apply if the user does not specify any file. 15539ac_need_defaults=: 15540while test $# != 0 15541do 15542 case $1 in 15543 --*=?*) 15544 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15546 ac_shift=: 15547 ;; 15548 --*=) 15549 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15550 ac_optarg= 15551 ac_shift=: 15552 ;; 15553 *) 15554 ac_option=$1 15555 ac_optarg=$2 15556 ac_shift=shift 15557 ;; 15558 esac 15559 15560 case $ac_option in 15561 # Handling of the options. 15562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15563 ac_cs_recheck=: ;; 15564 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15565 $as_echo "$ac_cs_version"; exit ;; 15566 --config | --confi | --conf | --con | --co | --c ) 15567 $as_echo "$ac_cs_config"; exit ;; 15568 --debug | --debu | --deb | --de | --d | -d ) 15569 debug=: ;; 15570 --file | --fil | --fi | --f ) 15571 $ac_shift 15572 case $ac_optarg in 15573 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15574 '') as_fn_error $? "missing file argument" ;; 15575 esac 15576 as_fn_append CONFIG_FILES " '$ac_optarg'" 15577 ac_need_defaults=false;; 15578 --header | --heade | --head | --hea ) 15579 $ac_shift 15580 case $ac_optarg in 15581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15582 esac 15583 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15584 ac_need_defaults=false;; 15585 --he | --h) 15586 # Conflict between --help and --header 15587 as_fn_error $? "ambiguous option: \`$1' 15588Try \`$0 --help' for more information.";; 15589 --help | --hel | -h ) 15590 $as_echo "$ac_cs_usage"; exit ;; 15591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15592 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15593 ac_cs_silent=: ;; 15594 15595 # This is an error. 15596 -*) as_fn_error $? "unrecognized option: \`$1' 15597Try \`$0 --help' for more information." ;; 15598 15599 *) as_fn_append ac_config_targets " $1" 15600 ac_need_defaults=false ;; 15601 15602 esac 15603 shift 15604done 15605 15606ac_configure_extra_args= 15607 15608if $ac_cs_silent; then 15609 exec 6>/dev/null 15610 ac_configure_extra_args="$ac_configure_extra_args --silent" 15611fi 15612 15613_ACEOF 15614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15615if \$ac_cs_recheck; then 15616 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15617 shift 15618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15619 CONFIG_SHELL='$SHELL' 15620 export CONFIG_SHELL 15621 exec "\$@" 15622fi 15623 15624_ACEOF 15625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15626exec 5>>config.log 15627{ 15628 echo 15629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15630## Running $as_me. ## 15631_ASBOX 15632 $as_echo "$ac_log" 15633} >&5 15634 15635_ACEOF 15636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15637# 15638# INIT-COMMANDS 15639# 15640AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 15641 15642 15643# The HP-UX ksh and POSIX shell print the target directory to stdout 15644# if CDPATH is set. 15645(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15646 15647sed_quote_subst='$sed_quote_subst' 15648double_quote_subst='$double_quote_subst' 15649delay_variable_subst='$delay_variable_subst' 15650macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15651macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15652enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15653enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15654pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15655enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15656shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 15657SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15658ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15659PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15660host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15661host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15662host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15663build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15664build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15665build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15666SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15667Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15668GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15669EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15670FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15671LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15672NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15673LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15674max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15675ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15676exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15677lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15678lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15679lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15680lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15681lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15682reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15683reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15684OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15685deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15686file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15687file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15688want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15689DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15690sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15691AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15692AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15693archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15694STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15695RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15696old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15697old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15698old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15699lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15700CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15701CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15702compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15703GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15704lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15705lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15706lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 15707lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15708lt_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"`' 15709lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 15710nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15711lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15712lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 15713objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15714MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15715lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15716lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15717lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15718lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15719lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15720need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15721MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15722DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15723NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15724LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15725OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15726OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15727libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15728shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15729extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15730archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15731enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15732export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15733whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15734compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15735old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15736old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15737archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15738archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15739module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15740module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15741with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15742allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15743no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15744hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15745hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15746hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15747hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15748hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15749hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15750hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15751inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15752link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15753always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15754export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15755exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15756include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15757prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15758postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15759file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15760variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15761need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15762need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15763version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15764runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15765shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15766shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15767libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15768library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15769soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15770install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15771postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15772postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15773finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15774finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15775hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15776sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15777configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 15778configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 15779hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15780enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15781enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15782enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15783old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15784striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15785 15786LTCC='$LTCC' 15787LTCFLAGS='$LTCFLAGS' 15788compiler='$compiler_DEFAULT' 15789 15790# A function that is used when there is no print builtin or printf. 15791func_fallback_echo () 15792{ 15793 eval 'cat <<_LTECHO_EOF 15794\$1 15795_LTECHO_EOF' 15796} 15797 15798# Quote evaled strings. 15799for var in SHELL \ 15800ECHO \ 15801PATH_SEPARATOR \ 15802SED \ 15803GREP \ 15804EGREP \ 15805FGREP \ 15806LD \ 15807NM \ 15808LN_S \ 15809lt_SP2NL \ 15810lt_NL2SP \ 15811reload_flag \ 15812OBJDUMP \ 15813deplibs_check_method \ 15814file_magic_cmd \ 15815file_magic_glob \ 15816want_nocaseglob \ 15817DLLTOOL \ 15818sharedlib_from_linklib_cmd \ 15819AR \ 15820AR_FLAGS \ 15821archiver_list_spec \ 15822STRIP \ 15823RANLIB \ 15824CC \ 15825CFLAGS \ 15826compiler \ 15827lt_cv_sys_global_symbol_pipe \ 15828lt_cv_sys_global_symbol_to_cdecl \ 15829lt_cv_sys_global_symbol_to_import \ 15830lt_cv_sys_global_symbol_to_c_name_address \ 15831lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15832lt_cv_nm_interface \ 15833nm_file_list_spec \ 15834lt_cv_truncate_bin \ 15835lt_prog_compiler_no_builtin_flag \ 15836lt_prog_compiler_pic \ 15837lt_prog_compiler_wl \ 15838lt_prog_compiler_static \ 15839lt_cv_prog_compiler_c_o \ 15840need_locks \ 15841MANIFEST_TOOL \ 15842DSYMUTIL \ 15843NMEDIT \ 15844LIPO \ 15845OTOOL \ 15846OTOOL64 \ 15847shrext_cmds \ 15848export_dynamic_flag_spec \ 15849whole_archive_flag_spec \ 15850compiler_needs_object \ 15851with_gnu_ld \ 15852allow_undefined_flag \ 15853no_undefined_flag \ 15854hardcode_libdir_flag_spec \ 15855hardcode_libdir_separator \ 15856exclude_expsyms \ 15857include_expsyms \ 15858file_list_spec \ 15859variables_saved_for_relink \ 15860libname_spec \ 15861library_names_spec \ 15862soname_spec \ 15863install_override_mode \ 15864finish_eval \ 15865old_striplib \ 15866striplib; do 15867 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15868 *[\\\\\\\`\\"\\\$]*) 15869 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15870 ;; 15871 *) 15872 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15873 ;; 15874 esac 15875done 15876 15877# Double-quote double-evaled strings. 15878for var in reload_cmds \ 15879old_postinstall_cmds \ 15880old_postuninstall_cmds \ 15881old_archive_cmds \ 15882extract_expsyms_cmds \ 15883old_archive_from_new_cmds \ 15884old_archive_from_expsyms_cmds \ 15885archive_cmds \ 15886archive_expsym_cmds \ 15887module_cmds \ 15888module_expsym_cmds \ 15889export_symbols_cmds \ 15890prelink_cmds \ 15891postlink_cmds \ 15892postinstall_cmds \ 15893postuninstall_cmds \ 15894finish_cmds \ 15895sys_lib_search_path_spec \ 15896configure_time_dlsearch_path \ 15897configure_time_lt_sys_library_path; do 15898 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15899 *[\\\\\\\`\\"\\\$]*) 15900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 15901 ;; 15902 *) 15903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15904 ;; 15905 esac 15906done 15907 15908ac_aux_dir='$ac_aux_dir' 15909 15910# See if we are running on zsh, and set the options that allow our 15911# commands through without removal of \ escapes INIT. 15912if test -n "\${ZSH_VERSION+set}"; then 15913 setopt NO_GLOB_SUBST 15914fi 15915 15916 15917 PACKAGE='$PACKAGE' 15918 VERSION='$VERSION' 15919 RM='$RM' 15920 ofile='$ofile' 15921 15922 15923 15924 15925_ACEOF 15926 15927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15928 15929# Handling of arguments. 15930for ac_config_target in $ac_config_targets 15931do 15932 case $ac_config_target in 15933 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15934 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15935 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15936 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15937 "chafa/Makefile") CONFIG_FILES="$CONFIG_FILES chafa/Makefile" ;; 15938 "chafa/chafaconfig.h") CONFIG_FILES="$CONFIG_FILES chafa/chafaconfig.h" ;; 15939 "chafa/internal/Makefile") CONFIG_FILES="$CONFIG_FILES chafa/internal/Makefile" ;; 15940 "chafa/internal/smolscale/Makefile") CONFIG_FILES="$CONFIG_FILES chafa/internal/smolscale/Makefile" ;; 15941 "libnsgif/Makefile") CONFIG_FILES="$CONFIG_FILES libnsgif/Makefile" ;; 15942 "chafa.pc") CONFIG_FILES="$CONFIG_FILES chafa.pc" ;; 15943 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 15944 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;; 15945 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 15946 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 15947 "tools/chafa/Makefile") CONFIG_FILES="$CONFIG_FILES tools/chafa/Makefile" ;; 15948 "tools/fontgen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/fontgen/Makefile" ;; 15949 15950 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15951 esac 15952done 15953 15954 15955# If the user did not use the arguments to specify the items to instantiate, 15956# then the envvar interface is used. Set only those that are not. 15957# We use the long form for the default assignment because of an extremely 15958# bizarre bug on SunOS 4.1.3. 15959if $ac_need_defaults; then 15960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15963fi 15964 15965# Have a temporary directory for convenience. Make it in the build tree 15966# simply because there is no reason against having it here, and in addition, 15967# creating and moving files from /tmp can sometimes cause problems. 15968# Hook for its removal unless debugging. 15969# Note that there is a small window in which the directory will not be cleaned: 15970# after its creation but before its name has been assigned to `$tmp'. 15971$debug || 15972{ 15973 tmp= ac_tmp= 15974 trap 'exit_status=$? 15975 : "${ac_tmp:=$tmp}" 15976 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15977' 0 15978 trap 'as_fn_exit 1' 1 2 13 15 15979} 15980# Create a (secure) tmp directory for tmp files. 15981 15982{ 15983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15984 test -d "$tmp" 15985} || 15986{ 15987 tmp=./conf$$-$RANDOM 15988 (umask 077 && mkdir "$tmp") 15989} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15990ac_tmp=$tmp 15991 15992# Set up the scripts for CONFIG_FILES section. 15993# No need to generate them if there are no CONFIG_FILES. 15994# This happens for instance with `./config.status config.h'. 15995if test -n "$CONFIG_FILES"; then 15996 15997 15998ac_cr=`echo X | tr X '\015'` 15999# On cygwin, bash can eat \r inside `` if the user requested igncr. 16000# But we know of no other shell where ac_cr would be empty at this 16001# point, so we can use a bashism as a fallback. 16002if test "x$ac_cr" = x; then 16003 eval ac_cr=\$\'\\r\' 16004fi 16005ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16006if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16007 ac_cs_awk_cr='\\r' 16008else 16009 ac_cs_awk_cr=$ac_cr 16010fi 16011 16012echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16013_ACEOF 16014 16015 16016{ 16017 echo "cat >conf$$subs.awk <<_ACEOF" && 16018 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16019 echo "_ACEOF" 16020} >conf$$subs.sh || 16021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16022ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16023ac_delim='%!_!# ' 16024for ac_last_try in false false false false false :; do 16025 . ./conf$$subs.sh || 16026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16027 16028 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16029 if test $ac_delim_n = $ac_delim_num; then 16030 break 16031 elif $ac_last_try; then 16032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16033 else 16034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16035 fi 16036done 16037rm -f conf$$subs.sh 16038 16039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16040cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16041_ACEOF 16042sed -n ' 16043h 16044s/^/S["/; s/!.*/"]=/ 16045p 16046g 16047s/^[^!]*!// 16048:repl 16049t repl 16050s/'"$ac_delim"'$// 16051t delim 16052:nl 16053h 16054s/\(.\{148\}\)..*/\1/ 16055t more1 16056s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16057p 16058n 16059b repl 16060:more1 16061s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16062p 16063g 16064s/.\{148\}// 16065t nl 16066:delim 16067h 16068s/\(.\{148\}\)..*/\1/ 16069t more2 16070s/["\\]/\\&/g; s/^/"/; s/$/"/ 16071p 16072b 16073:more2 16074s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16075p 16076g 16077s/.\{148\}// 16078t delim 16079' <conf$$subs.awk | sed ' 16080/^[^""]/{ 16081 N 16082 s/\n// 16083} 16084' >>$CONFIG_STATUS || ac_write_fail=1 16085rm -f conf$$subs.awk 16086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16087_ACAWK 16088cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16089 for (key in S) S_is_set[key] = 1 16090 FS = "" 16091 16092} 16093{ 16094 line = $ 0 16095 nfields = split(line, field, "@") 16096 substed = 0 16097 len = length(field[1]) 16098 for (i = 2; i < nfields; i++) { 16099 key = field[i] 16100 keylen = length(key) 16101 if (S_is_set[key]) { 16102 value = S[key] 16103 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16104 len += length(value) + length(field[++i]) 16105 substed = 1 16106 } else 16107 len += 1 + keylen 16108 } 16109 16110 print line 16111} 16112 16113_ACAWK 16114_ACEOF 16115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16116if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16117 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16118else 16119 cat 16120fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16121 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16122_ACEOF 16123 16124# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16125# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16126# trailing colons and then remove the whole line if VPATH becomes empty 16127# (actually we leave an empty line to preserve line numbers). 16128if test "x$srcdir" = x.; then 16129 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16130h 16131s/// 16132s/^/:/ 16133s/[ ]*$/:/ 16134s/:\$(srcdir):/:/g 16135s/:\${srcdir}:/:/g 16136s/:@srcdir@:/:/g 16137s/^:*// 16138s/:*$// 16139x 16140s/\(=[ ]*\).*/\1/ 16141G 16142s/\n// 16143s/^[^=]*=[ ]*$// 16144}' 16145fi 16146 16147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16148fi # test -n "$CONFIG_FILES" 16149 16150# Set up the scripts for CONFIG_HEADERS section. 16151# No need to generate them if there are no CONFIG_HEADERS. 16152# This happens for instance with `./config.status Makefile'. 16153if test -n "$CONFIG_HEADERS"; then 16154cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16155BEGIN { 16156_ACEOF 16157 16158# Transform confdefs.h into an awk script `defines.awk', embedded as 16159# here-document in config.status, that substitutes the proper values into 16160# config.h.in to produce config.h. 16161 16162# Create a delimiter string that does not exist in confdefs.h, to ease 16163# handling of long lines. 16164ac_delim='%!_!# ' 16165for ac_last_try in false false :; do 16166 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16167 if test -z "$ac_tt"; then 16168 break 16169 elif $ac_last_try; then 16170 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16171 else 16172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16173 fi 16174done 16175 16176# For the awk script, D is an array of macro values keyed by name, 16177# likewise P contains macro parameters if any. Preserve backslash 16178# newline sequences. 16179 16180ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16181sed -n ' 16182s/.\{148\}/&'"$ac_delim"'/g 16183t rset 16184:rset 16185s/^[ ]*#[ ]*define[ ][ ]*/ / 16186t def 16187d 16188:def 16189s/\\$// 16190t bsnl 16191s/["\\]/\\&/g 16192s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16193D["\1"]=" \3"/p 16194s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16195d 16196:bsnl 16197s/["\\]/\\&/g 16198s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16199D["\1"]=" \3\\\\\\n"\\/p 16200t cont 16201s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16202t cont 16203d 16204:cont 16205n 16206s/.\{148\}/&'"$ac_delim"'/g 16207t clear 16208:clear 16209s/\\$// 16210t bsnlc 16211s/["\\]/\\&/g; s/^/"/; s/$/"/p 16212d 16213:bsnlc 16214s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16215b cont 16216' <confdefs.h | sed ' 16217s/'"$ac_delim"'/"\\\ 16218"/g' >>$CONFIG_STATUS || ac_write_fail=1 16219 16220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16221 for (key in D) D_is_set[key] = 1 16222 FS = "" 16223} 16224/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16225 line = \$ 0 16226 split(line, arg, " ") 16227 if (arg[1] == "#") { 16228 defundef = arg[2] 16229 mac1 = arg[3] 16230 } else { 16231 defundef = substr(arg[1], 2) 16232 mac1 = arg[2] 16233 } 16234 split(mac1, mac2, "(") #) 16235 macro = mac2[1] 16236 prefix = substr(line, 1, index(line, defundef) - 1) 16237 if (D_is_set[macro]) { 16238 # Preserve the white space surrounding the "#". 16239 print prefix "define", macro P[macro] D[macro] 16240 next 16241 } else { 16242 # Replace #undef with comments. This is necessary, for example, 16243 # in the case of _POSIX_SOURCE, which is predefined and required 16244 # on some systems where configure will not decide to define it. 16245 if (defundef == "undef") { 16246 print "/*", prefix defundef, macro, "*/" 16247 next 16248 } 16249 } 16250} 16251{ print } 16252_ACAWK 16253_ACEOF 16254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16255 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16256fi # test -n "$CONFIG_HEADERS" 16257 16258 16259eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16260shift 16261for ac_tag 16262do 16263 case $ac_tag in 16264 :[FHLC]) ac_mode=$ac_tag; continue;; 16265 esac 16266 case $ac_mode$ac_tag in 16267 :[FHL]*:*);; 16268 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16269 :[FH]-) ac_tag=-:-;; 16270 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16271 esac 16272 ac_save_IFS=$IFS 16273 IFS=: 16274 set x $ac_tag 16275 IFS=$ac_save_IFS 16276 shift 16277 ac_file=$1 16278 shift 16279 16280 case $ac_mode in 16281 :L) ac_source=$1;; 16282 :[FH]) 16283 ac_file_inputs= 16284 for ac_f 16285 do 16286 case $ac_f in 16287 -) ac_f="$ac_tmp/stdin";; 16288 *) # Look for the file first in the build tree, then in the source tree 16289 # (if the path is not absolute). The absolute path cannot be DOS-style, 16290 # because $ac_f cannot contain `:'. 16291 test -f "$ac_f" || 16292 case $ac_f in 16293 [\\/$]*) false;; 16294 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16295 esac || 16296 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16297 esac 16298 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16299 as_fn_append ac_file_inputs " '$ac_f'" 16300 done 16301 16302 # Let's still pretend it is `configure' which instantiates (i.e., don't 16303 # use $as_me), people would be surprised to read: 16304 # /* config.h. Generated by config.status. */ 16305 configure_input='Generated from '` 16306 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16307 `' by configure.' 16308 if test x"$ac_file" != x-; then 16309 configure_input="$ac_file. $configure_input" 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16311$as_echo "$as_me: creating $ac_file" >&6;} 16312 fi 16313 # Neutralize special characters interpreted by sed in replacement strings. 16314 case $configure_input in #( 16315 *\&* | *\|* | *\\* ) 16316 ac_sed_conf_input=`$as_echo "$configure_input" | 16317 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16318 *) ac_sed_conf_input=$configure_input;; 16319 esac 16320 16321 case $ac_tag in 16322 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16324 esac 16325 ;; 16326 esac 16327 16328 ac_dir=`$as_dirname -- "$ac_file" || 16329$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16330 X"$ac_file" : 'X\(//\)[^/]' \| \ 16331 X"$ac_file" : 'X\(//\)$' \| \ 16332 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16333$as_echo X"$ac_file" | 16334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16335 s//\1/ 16336 q 16337 } 16338 /^X\(\/\/\)[^/].*/{ 16339 s//\1/ 16340 q 16341 } 16342 /^X\(\/\/\)$/{ 16343 s//\1/ 16344 q 16345 } 16346 /^X\(\/\).*/{ 16347 s//\1/ 16348 q 16349 } 16350 s/.*/./; q'` 16351 as_dir="$ac_dir"; as_fn_mkdir_p 16352 ac_builddir=. 16353 16354case "$ac_dir" in 16355.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16356*) 16357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16358 # A ".." for each directory in $ac_dir_suffix. 16359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16360 case $ac_top_builddir_sub in 16361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16363 esac ;; 16364esac 16365ac_abs_top_builddir=$ac_pwd 16366ac_abs_builddir=$ac_pwd$ac_dir_suffix 16367# for backward compatibility: 16368ac_top_builddir=$ac_top_build_prefix 16369 16370case $srcdir in 16371 .) # We are building in place. 16372 ac_srcdir=. 16373 ac_top_srcdir=$ac_top_builddir_sub 16374 ac_abs_top_srcdir=$ac_pwd ;; 16375 [\\/]* | ?:[\\/]* ) # Absolute name. 16376 ac_srcdir=$srcdir$ac_dir_suffix; 16377 ac_top_srcdir=$srcdir 16378 ac_abs_top_srcdir=$srcdir ;; 16379 *) # Relative name. 16380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16381 ac_top_srcdir=$ac_top_build_prefix$srcdir 16382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16383esac 16384ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16385 16386 16387 case $ac_mode in 16388 :F) 16389 # 16390 # CONFIG_FILE 16391 # 16392 16393 case $INSTALL in 16394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16395 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16396 esac 16397 ac_MKDIR_P=$MKDIR_P 16398 case $MKDIR_P in 16399 [\\/$]* | ?:[\\/]* ) ;; 16400 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16401 esac 16402_ACEOF 16403 16404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16405# If the template does not know about datarootdir, expand it. 16406# FIXME: This hack should be removed a few years after 2.60. 16407ac_datarootdir_hack=; ac_datarootdir_seen= 16408ac_sed_dataroot=' 16409/datarootdir/ { 16410 p 16411 q 16412} 16413/@datadir@/p 16414/@docdir@/p 16415/@infodir@/p 16416/@localedir@/p 16417/@mandir@/p' 16418case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16419*datarootdir*) ac_datarootdir_seen=yes;; 16420*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16422$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16423_ACEOF 16424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16425 ac_datarootdir_hack=' 16426 s&@datadir@&$datadir&g 16427 s&@docdir@&$docdir&g 16428 s&@infodir@&$infodir&g 16429 s&@localedir@&$localedir&g 16430 s&@mandir@&$mandir&g 16431 s&\\\${datarootdir}&$datarootdir&g' ;; 16432esac 16433_ACEOF 16434 16435# Neutralize VPATH when `$srcdir' = `.'. 16436# Shell code in configure.ac might set extrasub. 16437# FIXME: do we really want to maintain this feature? 16438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16439ac_sed_extra="$ac_vpsub 16440$extrasub 16441_ACEOF 16442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16443:t 16444/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16445s|@configure_input@|$ac_sed_conf_input|;t t 16446s&@top_builddir@&$ac_top_builddir_sub&;t t 16447s&@top_build_prefix@&$ac_top_build_prefix&;t t 16448s&@srcdir@&$ac_srcdir&;t t 16449s&@abs_srcdir@&$ac_abs_srcdir&;t t 16450s&@top_srcdir@&$ac_top_srcdir&;t t 16451s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16452s&@builddir@&$ac_builddir&;t t 16453s&@abs_builddir@&$ac_abs_builddir&;t t 16454s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16455s&@INSTALL@&$ac_INSTALL&;t t 16456s&@MKDIR_P@&$ac_MKDIR_P&;t t 16457$ac_datarootdir_hack 16458" 16459eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16460 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16461 16462test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16463 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16464 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16465 "$ac_tmp/out"`; test -z "$ac_out"; } && 16466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16467which seems to be undefined. Please make sure it is defined" >&5 16468$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16469which seems to be undefined. Please make sure it is defined" >&2;} 16470 16471 rm -f "$ac_tmp/stdin" 16472 case $ac_file in 16473 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16474 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16475 esac \ 16476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16477 ;; 16478 :H) 16479 # 16480 # CONFIG_HEADER 16481 # 16482 if test x"$ac_file" != x-; then 16483 { 16484 $as_echo "/* $configure_input */" \ 16485 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16486 } >"$ac_tmp/config.h" \ 16487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16488 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16489 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16490$as_echo "$as_me: $ac_file is unchanged" >&6;} 16491 else 16492 rm -f "$ac_file" 16493 mv "$ac_tmp/config.h" "$ac_file" \ 16494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16495 fi 16496 else 16497 $as_echo "/* $configure_input */" \ 16498 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16499 || as_fn_error $? "could not create -" "$LINENO" 5 16500 fi 16501# Compute "$ac_file"'s index in $config_headers. 16502_am_arg="$ac_file" 16503_am_stamp_count=1 16504for _am_header in $config_headers :; do 16505 case $_am_header in 16506 $_am_arg | $_am_arg:* ) 16507 break ;; 16508 * ) 16509 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16510 esac 16511done 16512echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16513$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16514 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16515 X"$_am_arg" : 'X\(//\)$' \| \ 16516 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16517$as_echo X"$_am_arg" | 16518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16519 s//\1/ 16520 q 16521 } 16522 /^X\(\/\/\)[^/].*/{ 16523 s//\1/ 16524 q 16525 } 16526 /^X\(\/\/\)$/{ 16527 s//\1/ 16528 q 16529 } 16530 /^X\(\/\).*/{ 16531 s//\1/ 16532 q 16533 } 16534 s/.*/./; q'`/stamp-h$_am_stamp_count 16535 ;; 16536 16537 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16538$as_echo "$as_me: executing $ac_file commands" >&6;} 16539 ;; 16540 esac 16541 16542 16543 case $ac_file$ac_mode in 16544 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16545 # Older Autoconf quotes --file arguments for eval, but not when files 16546 # are listed without --file. Let's play safe and only enable the eval 16547 # if we detect the quoting. 16548 # TODO: see whether this extra hack can be removed once we start 16549 # requiring Autoconf 2.70 or later. 16550 case $CONFIG_FILES in #( 16551 *\'*) : 16552 eval set x "$CONFIG_FILES" ;; #( 16553 *) : 16554 set x $CONFIG_FILES ;; #( 16555 *) : 16556 ;; 16557esac 16558 shift 16559 # Used to flag and report bootstrapping failures. 16560 am_rc=0 16561 for am_mf 16562 do 16563 # Strip MF so we end up with the name of the file. 16564 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 16565 # Check whether this is an Automake generated Makefile which includes 16566 # dependency-tracking related rules and includes. 16567 # Grep'ing the whole file directly is not great: AIX grep has a line 16568 # limit of 2048, but all sed's we know have understand at least 4000. 16569 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 16570 || continue 16571 am_dirpart=`$as_dirname -- "$am_mf" || 16572$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16573 X"$am_mf" : 'X\(//\)[^/]' \| \ 16574 X"$am_mf" : 'X\(//\)$' \| \ 16575 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16576$as_echo X"$am_mf" | 16577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16578 s//\1/ 16579 q 16580 } 16581 /^X\(\/\/\)[^/].*/{ 16582 s//\1/ 16583 q 16584 } 16585 /^X\(\/\/\)$/{ 16586 s//\1/ 16587 q 16588 } 16589 /^X\(\/\).*/{ 16590 s//\1/ 16591 q 16592 } 16593 s/.*/./; q'` 16594 am_filepart=`$as_basename -- "$am_mf" || 16595$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 16596 X"$am_mf" : 'X\(//\)$' \| \ 16597 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 16598$as_echo X/"$am_mf" | 16599 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16600 s//\1/ 16601 q 16602 } 16603 /^X\/\(\/\/\)$/{ 16604 s//\1/ 16605 q 16606 } 16607 /^X\/\(\/\).*/{ 16608 s//\1/ 16609 q 16610 } 16611 s/.*/./; q'` 16612 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 16613 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16614 | $MAKE -f - am--depfiles" >&5 16615 (cd "$am_dirpart" \ 16616 && sed -e '/# am--include-marker/d' "$am_filepart" \ 16617 | $MAKE -f - am--depfiles) >&5 2>&5 16618 ac_status=$? 16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16620 (exit $ac_status); } || am_rc=$? 16621 done 16622 if test $am_rc -ne 0; then 16623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16625as_fn_error $? "Something went wrong bootstrapping makefile fragments 16626 for automatic dependency tracking. If GNU make was not used, consider 16627 re-running the configure script with MAKE=\"gmake\" (or whatever is 16628 necessary). You can also try re-running configure with the 16629 '--disable-dependency-tracking' option to at least be able to build 16630 the package (albeit without support for automatic dependency tracking). 16631See \`config.log' for more details" "$LINENO" 5; } 16632 fi 16633 { am_dirpart=; unset am_dirpart;} 16634 { am_filepart=; unset am_filepart;} 16635 { am_mf=; unset am_mf;} 16636 { am_rc=; unset am_rc;} 16637 rm -f conftest-deps.mk 16638} 16639 ;; 16640 "libtool":C) 16641 16642 # See if we are running on zsh, and set the options that allow our 16643 # commands through without removal of \ escapes. 16644 if test -n "${ZSH_VERSION+set}"; then 16645 setopt NO_GLOB_SUBST 16646 fi 16647 16648 cfgfile=${ofile}T 16649 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16650 $RM "$cfgfile" 16651 16652 cat <<_LT_EOF >> "$cfgfile" 16653#! $SHELL 16654# Generated automatically by $as_me ($PACKAGE) $VERSION 16655# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16656 16657# Provide generalized library-building support services. 16658# Written by Gordon Matzigkeit, 1996 16659 16660# Copyright (C) 2014 Free Software Foundation, Inc. 16661# This is free software; see the source for copying conditions. There is NO 16662# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16663 16664# GNU Libtool is free software; you can redistribute it and/or modify 16665# it under the terms of the GNU General Public License as published by 16666# the Free Software Foundation; either version 2 of of the License, or 16667# (at your option) any later version. 16668# 16669# As a special exception to the GNU General Public License, if you 16670# distribute this file as part of a program or library that is built 16671# using GNU Libtool, you may include this file under the same 16672# distribution terms that you use for the rest of that program. 16673# 16674# GNU Libtool is distributed in the hope that it will be useful, but 16675# WITHOUT ANY WARRANTY; without even the implied warranty of 16676# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16677# GNU General Public License for more details. 16678# 16679# You should have received a copy of the GNU General Public License 16680# along with this program. If not, see <http://www.gnu.org/licenses/>. 16681 16682 16683# The names of the tagged configurations supported by this script. 16684available_tags='' 16685 16686# Configured defaults for sys_lib_dlsearch_path munging. 16687: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 16688 16689# ### BEGIN LIBTOOL CONFIG 16690 16691# Which release of libtool.m4 was used? 16692macro_version=$macro_version 16693macro_revision=$macro_revision 16694 16695# Whether or not to build shared libraries. 16696build_libtool_libs=$enable_shared 16697 16698# Whether or not to build static libraries. 16699build_old_libs=$enable_static 16700 16701# What type of objects to build. 16702pic_mode=$pic_mode 16703 16704# Whether or not to optimize for fast installation. 16705fast_install=$enable_fast_install 16706 16707# Shared archive member basename,for filename based shared library versioning on AIX. 16708shared_archive_member_spec=$shared_archive_member_spec 16709 16710# Shell to use when invoking shell scripts. 16711SHELL=$lt_SHELL 16712 16713# An echo program that protects backslashes. 16714ECHO=$lt_ECHO 16715 16716# The PATH separator for the build system. 16717PATH_SEPARATOR=$lt_PATH_SEPARATOR 16718 16719# The host system. 16720host_alias=$host_alias 16721host=$host 16722host_os=$host_os 16723 16724# The build system. 16725build_alias=$build_alias 16726build=$build 16727build_os=$build_os 16728 16729# A sed program that does not truncate output. 16730SED=$lt_SED 16731 16732# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16733Xsed="\$SED -e 1s/^X//" 16734 16735# A grep program that handles long lines. 16736GREP=$lt_GREP 16737 16738# An ERE matcher. 16739EGREP=$lt_EGREP 16740 16741# A literal string matcher. 16742FGREP=$lt_FGREP 16743 16744# A BSD- or MS-compatible name lister. 16745NM=$lt_NM 16746 16747# Whether we need soft or hard links. 16748LN_S=$lt_LN_S 16749 16750# What is the maximum length of a command? 16751max_cmd_len=$max_cmd_len 16752 16753# Object file suffix (normally "o"). 16754objext=$ac_objext 16755 16756# Executable file suffix (normally ""). 16757exeext=$exeext 16758 16759# whether the shell understands "unset". 16760lt_unset=$lt_unset 16761 16762# turn spaces into newlines. 16763SP2NL=$lt_lt_SP2NL 16764 16765# turn newlines into spaces. 16766NL2SP=$lt_lt_NL2SP 16767 16768# convert \$build file names to \$host format. 16769to_host_file_cmd=$lt_cv_to_host_file_cmd 16770 16771# convert \$build files to toolchain format. 16772to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16773 16774# An object symbol dumper. 16775OBJDUMP=$lt_OBJDUMP 16776 16777# Method to check whether dependent libraries are shared objects. 16778deplibs_check_method=$lt_deplibs_check_method 16779 16780# Command to use when deplibs_check_method = "file_magic". 16781file_magic_cmd=$lt_file_magic_cmd 16782 16783# How to find potential files when deplibs_check_method = "file_magic". 16784file_magic_glob=$lt_file_magic_glob 16785 16786# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16787want_nocaseglob=$lt_want_nocaseglob 16788 16789# DLL creation program. 16790DLLTOOL=$lt_DLLTOOL 16791 16792# Command to associate shared and link libraries. 16793sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16794 16795# The archiver. 16796AR=$lt_AR 16797 16798# Flags to create an archive. 16799AR_FLAGS=$lt_AR_FLAGS 16800 16801# How to feed a file listing to the archiver. 16802archiver_list_spec=$lt_archiver_list_spec 16803 16804# A symbol stripping program. 16805STRIP=$lt_STRIP 16806 16807# Commands used to install an old-style archive. 16808RANLIB=$lt_RANLIB 16809old_postinstall_cmds=$lt_old_postinstall_cmds 16810old_postuninstall_cmds=$lt_old_postuninstall_cmds 16811 16812# Whether to use a lock for old archive extraction. 16813lock_old_archive_extraction=$lock_old_archive_extraction 16814 16815# A C compiler. 16816LTCC=$lt_CC 16817 16818# LTCC compiler flags. 16819LTCFLAGS=$lt_CFLAGS 16820 16821# Take the output of nm and produce a listing of raw symbols and C names. 16822global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16823 16824# Transform the output of nm in a proper C declaration. 16825global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16826 16827# Transform the output of nm into a list of symbols to manually relocate. 16828global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 16829 16830# Transform the output of nm in a C name address pair. 16831global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16832 16833# Transform the output of nm in a C name address pair when lib prefix is needed. 16834global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16835 16836# The name lister interface. 16837nm_interface=$lt_lt_cv_nm_interface 16838 16839# Specify filename containing input files for \$NM. 16840nm_file_list_spec=$lt_nm_file_list_spec 16841 16842# The root where to search for dependent libraries,and where our libraries should be installed. 16843lt_sysroot=$lt_sysroot 16844 16845# Command to truncate a binary pipe. 16846lt_truncate_bin=$lt_lt_cv_truncate_bin 16847 16848# The name of the directory that contains temporary libtool files. 16849objdir=$objdir 16850 16851# Used to examine libraries when file_magic_cmd begins with "file". 16852MAGIC_CMD=$MAGIC_CMD 16853 16854# Must we lock files when doing compilation? 16855need_locks=$lt_need_locks 16856 16857# Manifest tool. 16858MANIFEST_TOOL=$lt_MANIFEST_TOOL 16859 16860# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16861DSYMUTIL=$lt_DSYMUTIL 16862 16863# Tool to change global to local symbols on Mac OS X. 16864NMEDIT=$lt_NMEDIT 16865 16866# Tool to manipulate fat objects and archives on Mac OS X. 16867LIPO=$lt_LIPO 16868 16869# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16870OTOOL=$lt_OTOOL 16871 16872# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16873OTOOL64=$lt_OTOOL64 16874 16875# Old archive suffix (normally "a"). 16876libext=$libext 16877 16878# Shared library suffix (normally ".so"). 16879shrext_cmds=$lt_shrext_cmds 16880 16881# The commands to extract the exported symbol list from a shared archive. 16882extract_expsyms_cmds=$lt_extract_expsyms_cmds 16883 16884# Variables whose values should be saved in libtool wrapper scripts and 16885# restored at link time. 16886variables_saved_for_relink=$lt_variables_saved_for_relink 16887 16888# Do we need the "lib" prefix for modules? 16889need_lib_prefix=$need_lib_prefix 16890 16891# Do we need a version for libraries? 16892need_version=$need_version 16893 16894# Library versioning type. 16895version_type=$version_type 16896 16897# Shared library runtime path variable. 16898runpath_var=$runpath_var 16899 16900# Shared library path variable. 16901shlibpath_var=$shlibpath_var 16902 16903# Is shlibpath searched before the hard-coded library search path? 16904shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16905 16906# Format of library name prefix. 16907libname_spec=$lt_libname_spec 16908 16909# List of archive names. First name is the real one, the rest are links. 16910# The last name is the one that the linker finds with -lNAME 16911library_names_spec=$lt_library_names_spec 16912 16913# The coded name of the library, if different from the real name. 16914soname_spec=$lt_soname_spec 16915 16916# Permission mode override for installation of shared libraries. 16917install_override_mode=$lt_install_override_mode 16918 16919# Command to use after installation of a shared archive. 16920postinstall_cmds=$lt_postinstall_cmds 16921 16922# Command to use after uninstallation of a shared archive. 16923postuninstall_cmds=$lt_postuninstall_cmds 16924 16925# Commands used to finish a libtool library installation in a directory. 16926finish_cmds=$lt_finish_cmds 16927 16928# As "finish_cmds", except a single script fragment to be evaled but 16929# not shown. 16930finish_eval=$lt_finish_eval 16931 16932# Whether we should hardcode library paths into libraries. 16933hardcode_into_libs=$hardcode_into_libs 16934 16935# Compile-time system search path for libraries. 16936sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16937 16938# Detected run-time system search path for libraries. 16939sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 16940 16941# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 16942configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 16943 16944# Whether dlopen is supported. 16945dlopen_support=$enable_dlopen 16946 16947# Whether dlopen of programs is supported. 16948dlopen_self=$enable_dlopen_self 16949 16950# Whether dlopen of statically linked programs is supported. 16951dlopen_self_static=$enable_dlopen_self_static 16952 16953# Commands to strip libraries. 16954old_striplib=$lt_old_striplib 16955striplib=$lt_striplib 16956 16957 16958# The linker used to build libraries. 16959LD=$lt_LD 16960 16961# How to create reloadable object files. 16962reload_flag=$lt_reload_flag 16963reload_cmds=$lt_reload_cmds 16964 16965# Commands used to build an old-style archive. 16966old_archive_cmds=$lt_old_archive_cmds 16967 16968# A language specific compiler. 16969CC=$lt_compiler 16970 16971# Is the compiler the GNU compiler? 16972with_gcc=$GCC 16973 16974# Compiler flag to turn off builtin functions. 16975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16976 16977# Additional compiler flags for building library objects. 16978pic_flag=$lt_lt_prog_compiler_pic 16979 16980# How to pass a linker flag through the compiler. 16981wl=$lt_lt_prog_compiler_wl 16982 16983# Compiler flag to prevent dynamic linking. 16984link_static_flag=$lt_lt_prog_compiler_static 16985 16986# Does compiler simultaneously support -c and -o options? 16987compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16988 16989# Whether or not to add -lc for building shared libraries. 16990build_libtool_need_lc=$archive_cmds_need_lc 16991 16992# Whether or not to disallow shared libs when runtime libs are static. 16993allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16994 16995# Compiler flag to allow reflexive dlopens. 16996export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16997 16998# Compiler flag to generate shared objects directly from archives. 16999whole_archive_flag_spec=$lt_whole_archive_flag_spec 17000 17001# Whether the compiler copes with passing no objects directly. 17002compiler_needs_object=$lt_compiler_needs_object 17003 17004# Create an old-style archive from a shared archive. 17005old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17006 17007# Create a temporary old-style archive to link instead of a shared archive. 17008old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17009 17010# Commands used to build a shared archive. 17011archive_cmds=$lt_archive_cmds 17012archive_expsym_cmds=$lt_archive_expsym_cmds 17013 17014# Commands used to build a loadable module if different from building 17015# a shared archive. 17016module_cmds=$lt_module_cmds 17017module_expsym_cmds=$lt_module_expsym_cmds 17018 17019# Whether we are building with GNU ld or not. 17020with_gnu_ld=$lt_with_gnu_ld 17021 17022# Flag that allows shared libraries with undefined symbols to be built. 17023allow_undefined_flag=$lt_allow_undefined_flag 17024 17025# Flag that enforces no undefined symbols. 17026no_undefined_flag=$lt_no_undefined_flag 17027 17028# Flag to hardcode \$libdir into a binary during linking. 17029# This must work even if \$libdir does not exist 17030hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17031 17032# Whether we need a single "-rpath" flag with a separated argument. 17033hardcode_libdir_separator=$lt_hardcode_libdir_separator 17034 17035# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17036# DIR into the resulting binary. 17037hardcode_direct=$hardcode_direct 17038 17039# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17040# DIR into the resulting binary and the resulting library dependency is 17041# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17042# library is relocated. 17043hardcode_direct_absolute=$hardcode_direct_absolute 17044 17045# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17046# into the resulting binary. 17047hardcode_minus_L=$hardcode_minus_L 17048 17049# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17050# into the resulting binary. 17051hardcode_shlibpath_var=$hardcode_shlibpath_var 17052 17053# Set to "yes" if building a shared library automatically hardcodes DIR 17054# into the library and all subsequent libraries and executables linked 17055# against it. 17056hardcode_automatic=$hardcode_automatic 17057 17058# Set to yes if linker adds runtime paths of dependent libraries 17059# to runtime path list. 17060inherit_rpath=$inherit_rpath 17061 17062# Whether libtool must link a program against all its dependency libraries. 17063link_all_deplibs=$link_all_deplibs 17064 17065# Set to "yes" if exported symbols are required. 17066always_export_symbols=$always_export_symbols 17067 17068# The commands to list exported symbols. 17069export_symbols_cmds=$lt_export_symbols_cmds 17070 17071# Symbols that should not be listed in the preloaded symbols. 17072exclude_expsyms=$lt_exclude_expsyms 17073 17074# Symbols that must always be exported. 17075include_expsyms=$lt_include_expsyms 17076 17077# Commands necessary for linking programs (against libraries) with templates. 17078prelink_cmds=$lt_prelink_cmds 17079 17080# Commands necessary for finishing linking programs. 17081postlink_cmds=$lt_postlink_cmds 17082 17083# Specify filename containing input files. 17084file_list_spec=$lt_file_list_spec 17085 17086# How to hardcode a shared library path into an executable. 17087hardcode_action=$hardcode_action 17088 17089# ### END LIBTOOL CONFIG 17090 17091_LT_EOF 17092 17093 cat <<'_LT_EOF' >> "$cfgfile" 17094 17095# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17096 17097# func_munge_path_list VARIABLE PATH 17098# ----------------------------------- 17099# VARIABLE is name of variable containing _space_ separated list of 17100# directories to be munged by the contents of PATH, which is string 17101# having a format: 17102# "DIR[:DIR]:" 17103# string "DIR[ DIR]" will be prepended to VARIABLE 17104# ":DIR[:DIR]" 17105# string "DIR[ DIR]" will be appended to VARIABLE 17106# "DIRP[:DIRP]::[DIRA:]DIRA" 17107# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17108# "DIRA[ DIRA]" will be appended to VARIABLE 17109# "DIR[:DIR]" 17110# VARIABLE will be replaced by "DIR[ DIR]" 17111func_munge_path_list () 17112{ 17113 case x$2 in 17114 x) 17115 ;; 17116 *:) 17117 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17118 ;; 17119 x:*) 17120 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17121 ;; 17122 *::*) 17123 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17124 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17125 ;; 17126 *) 17127 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17128 ;; 17129 esac 17130} 17131 17132 17133# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17134func_cc_basename () 17135{ 17136 for cc_temp in $*""; do 17137 case $cc_temp in 17138 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17139 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17140 \-*) ;; 17141 *) break;; 17142 esac 17143 done 17144 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17145} 17146 17147 17148# ### END FUNCTIONS SHARED WITH CONFIGURE 17149 17150_LT_EOF 17151 17152 case $host_os in 17153 aix3*) 17154 cat <<\_LT_EOF >> "$cfgfile" 17155# AIX sometimes has problems with the GCC collect2 program. For some 17156# reason, if we set the COLLECT_NAMES environment variable, the problems 17157# vanish in a puff of smoke. 17158if test set != "${COLLECT_NAMES+set}"; then 17159 COLLECT_NAMES= 17160 export COLLECT_NAMES 17161fi 17162_LT_EOF 17163 ;; 17164 esac 17165 17166 17167ltmain=$ac_aux_dir/ltmain.sh 17168 17169 17170 # We use sed instead of cat because bash on DJGPP gets confused if 17171 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17172 # text mode, it properly converts lines to CR/LF. This bash problem 17173 # is reportedly fixed, but why not run on old versions too? 17174 sed '$q' "$ltmain" >> "$cfgfile" \ 17175 || (rm -f "$cfgfile"; exit 1) 17176 17177 mv -f "$cfgfile" "$ofile" || 17178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17179 chmod +x "$ofile" 17180 17181 ;; 17182 17183 esac 17184done # for ac_tag 17185 17186 17187as_fn_exit 0 17188_ACEOF 17189ac_clean_files=$ac_clean_files_save 17190 17191test $ac_write_fail = 0 || 17192 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17193 17194 17195# configure is writing to config.log, and then calls config.status. 17196# config.status does its own redirection, appending to config.log. 17197# Unfortunately, on DOS this fails, as config.log is still kept open 17198# by configure, so config.status won't be able to write to it; its 17199# output is simply discarded. So we exec the FD to /dev/null, 17200# effectively closing config.log, so it can be properly (re)opened and 17201# appended to by config.status. When coming back to configure, we 17202# need to make the FD available again. 17203if test "$no_create" != yes; then 17204 ac_cs_success=: 17205 ac_config_status_args= 17206 test "$silent" = yes && 17207 ac_config_status_args="$ac_config_status_args --quiet" 17208 exec 5>/dev/null 17209 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17210 exec 5>>config.log 17211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17212 # would make configure fail if this is the last instruction. 17213 $ac_cs_success || as_fn_exit 1 17214fi 17215if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17217$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17218fi 17219 17220 17221echo >&6 17222echo >&6 "Build command-line tool ..... $with_tools" 17223echo >&6 "Build man page .............. $enable_man" 17224echo >&6 "Rebuild API documentation ... ${enable_gtk_doc:-no} (--enable-gtk-doc)" 17225echo >&6 "Support MMX ................. $ac_cv_mmx_intrinsics" 17226echo >&6 "Support SSE 4.1 ............. $ac_cv_sse41_intrinsics" 17227echo >&6 "Support AVX2 ................ $ac_cv_avx2_intrinsics" 17228echo >&6 "Support popcount32 .......... $ac_cv_popcnt32_intrinsics" 17229echo >&6 "Support popcount64 .......... $ac_cv_popcnt64_intrinsics" 17230echo >&6 "Install prefix .............. $prefix" 17231echo >&6 17232echo >&6 "You can now type \"gmake\" or \"make\" to build the project." 17233