1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXft 2.3.9. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 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'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libXft/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libXft' 624PACKAGE_TARNAME='libXft' 625PACKAGE_VERSION='2.3.9' 626PACKAGE_STRING='libXft 2.3.9' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXft/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667FONTCONFIG_LIBS 668FONTCONFIG_CFLAGS 669FREETYPE_LIBS 670FREETYPE_CFLAGS 671XRENDER_LIBS 672XRENDER_CFLAGS 673XFT_LT_VERSION 674MAN_SUBSTS 675XORG_MAN_PAGE 676ADMIN_MAN_DIR 677DRIVER_MAN_DIR 678MISC_MAN_DIR 679FILE_MAN_DIR 680LIB_MAN_DIR 681APP_MAN_DIR 682ADMIN_MAN_SUFFIX 683DRIVER_MAN_SUFFIX 684MISC_MAN_SUFFIX 685FILE_MAN_SUFFIX 686LIB_MAN_SUFFIX 687APP_MAN_SUFFIX 688INSTALL_CMD 689PKG_CONFIG_LIBDIR 690PKG_CONFIG_PATH 691PKG_CONFIG 692CHANGELOG_CMD 693STRICT_CFLAGS 694CWARNFLAGS 695BASE_CFLAGS 696LT_SYS_LIBRARY_PATH 697OTOOL64 698OTOOL 699LIPO 700NMEDIT 701DSYMUTIL 702MANIFEST_TOOL 703RANLIB 704ac_ct_AR 705AR 706DLLTOOL 707OBJDUMP 708FILECMD 709LN_S 710NM 711ac_ct_DUMPBIN 712DUMPBIN 713LD 714FGREP 715EGREP 716GREP 717SED 718am__fastdepCC_FALSE 719am__fastdepCC_TRUE 720CCDEPMODE 721am__nodep 722AMDEPBACKSLASH 723AMDEP_FALSE 724AMDEP_TRUE 725am__include 726DEPDIR 727OBJEXT 728EXEEXT 729ac_ct_CC 730CPPFLAGS 731LDFLAGS 732CFLAGS 733CC 734host_os 735host_vendor 736host_cpu 737host 738build_os 739build_vendor 740build_cpu 741build 742LIBTOOL 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747CSCOPE 748ETAGS 749CTAGS 750am__untar 751am__tar 752AMTAR 753am__leading_dot 754SET_MAKE 755AWK 756mkdir_p 757MKDIR_P 758INSTALL_STRIP_PROGRAM 759STRIP 760install_sh 761MAKEINFO 762AUTOHEADER 763AUTOMAKE 764AUTOCONF 765ACLOCAL 766VERSION 767PACKAGE 768CYGPATH_W 769am__isrc 770INSTALL_DATA 771INSTALL_SCRIPT 772INSTALL_PROGRAM 773target_alias 774host_alias 775build_alias 776LIBS 777ECHO_T 778ECHO_N 779ECHO_C 780DEFS 781mandir 782localedir 783libdir 784psdir 785pdfdir 786dvidir 787htmldir 788infodir 789docdir 790oldincludedir 791includedir 792runstatedir 793localstatedir 794sharedstatedir 795sysconfdir 796datadir 797datarootdir 798libexecdir 799sbindir 800bindir 801program_transform_name 802prefix 803exec_prefix 804PACKAGE_URL 805PACKAGE_BUGREPORT 806PACKAGE_STRING 807PACKAGE_VERSION 808PACKAGE_TARNAME 809PACKAGE_NAME 810PATH_SEPARATOR 811SHELL 812am__quote' 813ac_subst_files='' 814ac_user_opts=' 815enable_option_checking 816enable_silent_rules 817enable_shared 818enable_static 819with_pic 820enable_fast_install 821with_aix_soname 822enable_dependency_tracking 823with_gnu_ld 824with_sysroot 825enable_libtool_lock 826enable_selective_werror 827enable_strict_compilation 828' 829 ac_precious_vars='build_alias 830host_alias 831target_alias 832CC 833CFLAGS 834LDFLAGS 835LIBS 836CPPFLAGS 837LT_SYS_LIBRARY_PATH 838PKG_CONFIG 839PKG_CONFIG_PATH 840PKG_CONFIG_LIBDIR 841XRENDER_CFLAGS 842XRENDER_LIBS 843FREETYPE_CFLAGS 844FREETYPE_LIBS 845FONTCONFIG_CFLAGS 846FONTCONFIG_LIBS' 847 848 849# Initialize some variables set by options. 850ac_init_help= 851ac_init_version=false 852ac_unrecognized_opts= 853ac_unrecognized_sep= 854# The variables have the same names as the options, with 855# dashes changed to underlines. 856cache_file=/dev/null 857exec_prefix=NONE 858no_create= 859no_recursion= 860prefix=NONE 861program_prefix=NONE 862program_suffix=NONE 863program_transform_name=s,x,x, 864silent= 865site= 866srcdir= 867verbose= 868x_includes=NONE 869x_libraries=NONE 870 871# Installation directory options. 872# These are left unexpanded so users can "make install exec_prefix=/foo" 873# and all the variables that are supposed to be based on exec_prefix 874# by default will actually change. 875# Use braces instead of parens because sh, perl, etc. also accept them. 876# (The list follows the same order as the GNU Coding Standards.) 877bindir='${exec_prefix}/bin' 878sbindir='${exec_prefix}/sbin' 879libexecdir='${exec_prefix}/libexec' 880datarootdir='${prefix}/share' 881datadir='${datarootdir}' 882sysconfdir='${prefix}/etc' 883sharedstatedir='${prefix}/com' 884localstatedir='${prefix}/var' 885runstatedir='${localstatedir}/run' 886includedir='${prefix}/include' 887oldincludedir='/usr/include' 888docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 889infodir='${datarootdir}/info' 890htmldir='${docdir}' 891dvidir='${docdir}' 892pdfdir='${docdir}' 893psdir='${docdir}' 894libdir='${exec_prefix}/lib' 895localedir='${datarootdir}/locale' 896mandir='${datarootdir}/man' 897 898ac_prev= 899ac_dashdash= 900for ac_option 901do 902 # If the previous option needs an argument, assign it. 903 if test -n "$ac_prev"; then 904 eval $ac_prev=\$ac_option 905 ac_prev= 906 continue 907 fi 908 909 case $ac_option in 910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 911 *=) ac_optarg= ;; 912 *) ac_optarg=yes ;; 913 esac 914 915 case $ac_dashdash$ac_option in 916 --) 917 ac_dashdash=yes ;; 918 919 -bindir | --bindir | --bindi | --bind | --bin | --bi) 920 ac_prev=bindir ;; 921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 922 bindir=$ac_optarg ;; 923 924 -build | --build | --buil | --bui | --bu) 925 ac_prev=build_alias ;; 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 927 build_alias=$ac_optarg ;; 928 929 -cache-file | --cache-file | --cache-fil | --cache-fi \ 930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 931 ac_prev=cache_file ;; 932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 934 cache_file=$ac_optarg ;; 935 936 --config-cache | -C) 937 cache_file=config.cache ;; 938 939 -datadir | --datadir | --datadi | --datad) 940 ac_prev=datadir ;; 941 -datadir=* | --datadir=* | --datadi=* | --datad=*) 942 datadir=$ac_optarg ;; 943 944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 945 | --dataroo | --dataro | --datar) 946 ac_prev=datarootdir ;; 947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 949 datarootdir=$ac_optarg ;; 950 951 -disable-* | --disable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: \`$ac_useropt'" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960"enable_$ac_useropt" 961"*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=no ;; 966 967 -docdir | --docdir | --docdi | --doc | --do) 968 ac_prev=docdir ;; 969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 970 docdir=$ac_optarg ;; 971 972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 973 ac_prev=dvidir ;; 974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 975 dvidir=$ac_optarg ;; 976 977 -enable-* | --enable-*) 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 979 # Reject names that are not valid shell variable names. 980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 981 as_fn_error $? "invalid feature name: \`$ac_useropt'" 982 ac_useropt_orig=$ac_useropt 983 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 984 case $ac_user_opts in 985 *" 986"enable_$ac_useropt" 987"*) ;; 988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 989 ac_unrecognized_sep=', ';; 990 esac 991 eval enable_$ac_useropt=\$ac_optarg ;; 992 993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 995 | --exec | --exe | --ex) 996 ac_prev=exec_prefix ;; 997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 999 | --exec=* | --exe=* | --ex=*) 1000 exec_prefix=$ac_optarg ;; 1001 1002 -gas | --gas | --ga | --g) 1003 # Obsolete; use --with-gas. 1004 with_gas=yes ;; 1005 1006 -help | --help | --hel | --he | -h) 1007 ac_init_help=long ;; 1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1009 ac_init_help=recursive ;; 1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1011 ac_init_help=short ;; 1012 1013 -host | --host | --hos | --ho) 1014 ac_prev=host_alias ;; 1015 -host=* | --host=* | --hos=* | --ho=*) 1016 host_alias=$ac_optarg ;; 1017 1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1019 ac_prev=htmldir ;; 1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1021 | --ht=*) 1022 htmldir=$ac_optarg ;; 1023 1024 -includedir | --includedir | --includedi | --included | --include \ 1025 | --includ | --inclu | --incl | --inc) 1026 ac_prev=includedir ;; 1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1028 | --includ=* | --inclu=* | --incl=* | --inc=*) 1029 includedir=$ac_optarg ;; 1030 1031 -infodir | --infodir | --infodi | --infod | --info | --inf) 1032 ac_prev=infodir ;; 1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1034 infodir=$ac_optarg ;; 1035 1036 -libdir | --libdir | --libdi | --libd) 1037 ac_prev=libdir ;; 1038 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1039 libdir=$ac_optarg ;; 1040 1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1042 | --libexe | --libex | --libe) 1043 ac_prev=libexecdir ;; 1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1045 | --libexe=* | --libex=* | --libe=*) 1046 libexecdir=$ac_optarg ;; 1047 1048 -localedir | --localedir | --localedi | --localed | --locale) 1049 ac_prev=localedir ;; 1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1051 localedir=$ac_optarg ;; 1052 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1054 | --localstate | --localstat | --localsta | --localst | --locals) 1055 ac_prev=localstatedir ;; 1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1058 localstatedir=$ac_optarg ;; 1059 1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1061 ac_prev=mandir ;; 1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1063 mandir=$ac_optarg ;; 1064 1065 -nfp | --nfp | --nf) 1066 # Obsolete; use --without-fp. 1067 with_fp=no ;; 1068 1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1070 | --no-cr | --no-c | -n) 1071 no_create=yes ;; 1072 1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1075 no_recursion=yes ;; 1076 1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1079 | --oldin | --oldi | --old | --ol | --o) 1080 ac_prev=oldincludedir ;; 1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1084 oldincludedir=$ac_optarg ;; 1085 1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1087 ac_prev=prefix ;; 1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1089 prefix=$ac_optarg ;; 1090 1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1092 | --program-pre | --program-pr | --program-p) 1093 ac_prev=program_prefix ;; 1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1096 program_prefix=$ac_optarg ;; 1097 1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1099 | --program-suf | --program-su | --program-s) 1100 ac_prev=program_suffix ;; 1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1103 program_suffix=$ac_optarg ;; 1104 1105 -program-transform-name | --program-transform-name \ 1106 | --program-transform-nam | --program-transform-na \ 1107 | --program-transform-n | --program-transform- \ 1108 | --program-transform | --program-transfor \ 1109 | --program-transfo | --program-transf \ 1110 | --program-trans | --program-tran \ 1111 | --progr-tra | --program-tr | --program-t) 1112 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1121 1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1123 ac_prev=pdfdir ;; 1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1125 pdfdir=$ac_optarg ;; 1126 1127 -psdir | --psdir | --psdi | --psd | --ps) 1128 ac_prev=psdir ;; 1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1130 psdir=$ac_optarg ;; 1131 1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1133 | -silent | --silent | --silen | --sile | --sil) 1134 silent=yes ;; 1135 1136 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1137 | --runstate | --runstat | --runsta | --runst | --runs \ 1138 | --run | --ru | --r) 1139 ac_prev=runstatedir ;; 1140 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1141 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1142 | --run=* | --ru=* | --r=*) 1143 runstatedir=$ac_optarg ;; 1144 1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1146 ac_prev=sbindir ;; 1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1148 | --sbi=* | --sb=*) 1149 sbindir=$ac_optarg ;; 1150 1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1153 | --sharedst | --shareds | --shared | --share | --shar \ 1154 | --sha | --sh) 1155 ac_prev=sharedstatedir ;; 1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1159 | --sha=* | --sh=*) 1160 sharedstatedir=$ac_optarg ;; 1161 1162 -site | --site | --sit) 1163 ac_prev=site ;; 1164 -site=* | --site=* | --sit=*) 1165 site=$ac_optarg ;; 1166 1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1168 ac_prev=srcdir ;; 1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1170 srcdir=$ac_optarg ;; 1171 1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1173 | --syscon | --sysco | --sysc | --sys | --sy) 1174 ac_prev=sysconfdir ;; 1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1177 sysconfdir=$ac_optarg ;; 1178 1179 -target | --target | --targe | --targ | --tar | --ta | --t) 1180 ac_prev=target_alias ;; 1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1182 target_alias=$ac_optarg ;; 1183 1184 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1185 verbose=yes ;; 1186 1187 -version | --version | --versio | --versi | --vers | -V) 1188 ac_init_version=: ;; 1189 1190 -with-* | --with-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid package name: \`$ac_useropt'" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199"with_$ac_useropt" 1200"*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=\$ac_optarg ;; 1205 1206 -without-* | --without-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: \`$ac_useropt'" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215"with_$ac_useropt" 1216"*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=no ;; 1221 1222 --x) 1223 # Obsolete; use --with-x. 1224 with_x=yes ;; 1225 1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1227 | --x-incl | --x-inc | --x-in | --x-i) 1228 ac_prev=x_includes ;; 1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1231 x_includes=$ac_optarg ;; 1232 1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1235 ac_prev=x_libraries ;; 1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1238 x_libraries=$ac_optarg ;; 1239 1240 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1241Try \`$0 --help' for more information" 1242 ;; 1243 1244 *=*) 1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1246 # Reject names that are not valid shell variable names. 1247 case $ac_envvar in #( 1248 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1250 esac 1251 eval $ac_envvar=\$ac_optarg 1252 export $ac_envvar ;; 1253 1254 *) 1255 # FIXME: should be removed in autoconf 3.0. 1256 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1258 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1260 ;; 1261 1262 esac 1263done 1264 1265if test -n "$ac_prev"; then 1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1267 as_fn_error $? "missing argument to $ac_option" 1268fi 1269 1270if test -n "$ac_unrecognized_opts"; then 1271 case $enable_option_checking in 1272 no) ;; 1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1274 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1275 esac 1276fi 1277 1278# Check all directory arguments for consistency. 1279for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1280 datadir sysconfdir sharedstatedir localstatedir includedir \ 1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1282 libdir localedir mandir runstatedir 1283do 1284 eval ac_val=\$$ac_var 1285 # Remove trailing slashes. 1286 case $ac_val in 1287 */ ) 1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1289 eval $ac_var=\$ac_val;; 1290 esac 1291 # Be sure to have absolute directory names. 1292 case $ac_val in 1293 [\\/$]* | ?:[\\/]* ) continue;; 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1295 esac 1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1297done 1298 1299# There might be people who depend on the old broken behavior: `$host' 1300# used to hold the argument of --host etc. 1301# FIXME: To remove some day. 1302build=$build_alias 1303host=$host_alias 1304target=$target_alias 1305 1306# FIXME: To remove some day. 1307if test "x$host_alias" != x; then 1308 if test "x$build_alias" = x; then 1309 cross_compiling=maybe 1310 elif test "x$build_alias" != "x$host_alias"; then 1311 cross_compiling=yes 1312 fi 1313fi 1314 1315ac_tool_prefix= 1316test -n "$host_alias" && ac_tool_prefix=$host_alias- 1317 1318test "$silent" = yes && exec 6>/dev/null 1319 1320 1321ac_pwd=`pwd` && test -n "$ac_pwd" && 1322ac_ls_di=`ls -di .` && 1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1324 as_fn_error $? "working directory cannot be determined" 1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1326 as_fn_error $? "pwd does not report name of working directory" 1327 1328 1329# Find the source files, if location was not specified. 1330if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$as_myself" || 1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$as_myself" : 'X\(//\)[^/]' \| \ 1336 X"$as_myself" : 'X\(//\)$' \| \ 1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1338printf "%s\n" X"$as_myself" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360else 1361 ac_srcdir_defaulted=no 1362fi 1363if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1366fi 1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1368ac_abs_confdir=`( 1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1370 pwd)` 1371# When building in place, set srcdir=. 1372if test "$ac_abs_confdir" = "$ac_pwd"; then 1373 srcdir=. 1374fi 1375# Remove unnecessary trailing slashes from srcdir. 1376# Double slashes in file names in object file debugging info 1377# mess up M-x gdb in Emacs. 1378case $srcdir in 1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1380esac 1381for ac_var in $ac_precious_vars; do 1382 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_env_${ac_var}_value=\$${ac_var} 1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1386done 1387 1388# 1389# Report the --help message. 1390# 1391if test "$ac_init_help" = "long"; then 1392 # Omit some internal or obsolete options to make the list less imposing. 1393 # This message is too long to be a string in the A/UX 3.1 sh. 1394 cat <<_ACEOF 1395\`configure' configures libXft 2.3.9 to adapt to many kinds of systems. 1396 1397Usage: $0 [OPTION]... [VAR=VALUE]... 1398 1399To assign environment variables (e.g., CC, CFLAGS...), specify them as 1400VAR=VALUE. See below for descriptions of some of the useful variables. 1401 1402Defaults for the options are specified in brackets. 1403 1404Configuration: 1405 -h, --help display this help and exit 1406 --help=short display options specific to this package 1407 --help=recursive display the short help of all the included packages 1408 -V, --version display version information and exit 1409 -q, --quiet, --silent do not print \`checking ...' messages 1410 --cache-file=FILE cache test results in FILE [disabled] 1411 -C, --config-cache alias for \`--cache-file=config.cache' 1412 -n, --no-create do not create output files 1413 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1414 1415Installation directories: 1416 --prefix=PREFIX install architecture-independent files in PREFIX 1417 [$ac_default_prefix] 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1419 [PREFIX] 1420 1421By default, \`make install' will install all the files in 1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1423an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1424for instance \`--prefix=\$HOME'. 1425 1426For better control, use the options below. 1427 1428Fine tuning of the installation directories: 1429 --bindir=DIR user executables [EPREFIX/bin] 1430 --sbindir=DIR system admin executables [EPREFIX/sbin] 1431 --libexecdir=DIR program executables [EPREFIX/libexec] 1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1435 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1436 --libdir=DIR object code libraries [EPREFIX/lib] 1437 --includedir=DIR C header files [PREFIX/include] 1438 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1441 --infodir=DIR info documentation [DATAROOTDIR/info] 1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1443 --mandir=DIR man documentation [DATAROOTDIR/man] 1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft] 1445 --htmldir=DIR html documentation [DOCDIR] 1446 --dvidir=DIR dvi documentation [DOCDIR] 1447 --pdfdir=DIR pdf documentation [DOCDIR] 1448 --psdir=DIR ps documentation [DOCDIR] 1449_ACEOF 1450 1451 cat <<\_ACEOF 1452 1453Program names: 1454 --program-prefix=PREFIX prepend PREFIX to installed program names 1455 --program-suffix=SUFFIX append SUFFIX to installed program names 1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1457 1458System types: 1459 --build=BUILD configure for building on BUILD [guessed] 1460 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1461_ACEOF 1462fi 1463 1464if test -n "$ac_init_help"; then 1465 case $ac_init_help in 1466 short | recursive ) echo "Configuration of libXft 2.3.9:";; 1467 esac 1468 cat <<\_ACEOF 1469 1470Optional Features: 1471 --disable-option-checking ignore unrecognized --enable/--with options 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --enable-silent-rules less verbose build output (undo: "make V=1") 1475 --disable-silent-rules verbose build output (undo: "make V=0") 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-static[=PKGS] build static libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --disable-libtool-lock avoid locking (might break parallel builds) 1485 --disable-selective-werror 1486 Turn off selective compiler errors. (default: 1487 enabled) 1488 --enable-strict-compilation 1489 Enable all warnings from compiler and make them 1490 errors (default: disabled) 1491 1492Optional Packages: 1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1495 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1496 both] 1497 --with-aix-soname=aix|svr4|both 1498 shared library versioning (aka "SONAME") variant to 1499 provide on AIX, [default=aix]. 1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1501 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1502 compiler's sysroot if not specified). 1503 1504Some influential environment variables: 1505 CC C compiler command 1506 CFLAGS C compiler flags 1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1508 nonstandard directory <lib dir> 1509 LIBS libraries to pass to the linker, e.g. -l<library> 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1511 you have headers in a nonstandard directory <include dir> 1512 LT_SYS_LIBRARY_PATH 1513 User-defined run-time library search path. 1514 PKG_CONFIG path to pkg-config utility 1515 PKG_CONFIG_PATH 1516 directories to add to pkg-config's search path 1517 PKG_CONFIG_LIBDIR 1518 path overriding pkg-config's built-in search path 1519 XRENDER_CFLAGS 1520 C compiler flags for XRENDER, overriding pkg-config 1521 XRENDER_LIBS 1522 linker flags for XRENDER, overriding pkg-config 1523 FREETYPE_CFLAGS 1524 C compiler flags for FREETYPE, overriding pkg-config 1525 FREETYPE_LIBS 1526 linker flags for FREETYPE, overriding pkg-config 1527 FONTCONFIG_CFLAGS 1528 C compiler flags for FONTCONFIG, overriding pkg-config 1529 FONTCONFIG_LIBS 1530 linker flags for FONTCONFIG, overriding pkg-config 1531 1532Use these variables to override the choices made by `configure' or to help 1533it to find libraries and programs with nonstandard names/locations. 1534 1535Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>. 1536_ACEOF 1537ac_status=$? 1538fi 1539 1540if test "$ac_init_help" = "recursive"; then 1541 # If there are subdirs, report their specific --help. 1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1543 test -d "$ac_dir" || 1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1545 continue 1546 ac_builddir=. 1547 1548case "$ac_dir" in 1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550*) 1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1552 # A ".." for each directory in $ac_dir_suffix. 1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1554 case $ac_top_builddir_sub in 1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1557 esac ;; 1558esac 1559ac_abs_top_builddir=$ac_pwd 1560ac_abs_builddir=$ac_pwd$ac_dir_suffix 1561# for backward compatibility: 1562ac_top_builddir=$ac_top_build_prefix 1563 1564case $srcdir in 1565 .) # We are building in place. 1566 ac_srcdir=. 1567 ac_top_srcdir=$ac_top_builddir_sub 1568 ac_abs_top_srcdir=$ac_pwd ;; 1569 [\\/]* | ?:[\\/]* ) # Absolute name. 1570 ac_srcdir=$srcdir$ac_dir_suffix; 1571 ac_top_srcdir=$srcdir 1572 ac_abs_top_srcdir=$srcdir ;; 1573 *) # Relative name. 1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1575 ac_top_srcdir=$ac_top_build_prefix$srcdir 1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1577esac 1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1579 1580 cd "$ac_dir" || { ac_status=$?; continue; } 1581 # Check for configure.gnu first; this name is used for a wrapper for 1582 # Metaconfig's "Configure" on case-insensitive file systems. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594fi 1595 1596test -n "$ac_init_help" && exit $ac_status 1597if $ac_init_version; then 1598 cat <<\_ACEOF 1599libXft configure 2.3.9 1600generated by GNU Autoconf 2.71 1601 1602Copyright (C) 2021 Free Software Foundation, Inc. 1603This configure script is free software; the Free Software Foundation 1604gives unlimited permission to copy, distribute and modify it. 1605_ACEOF 1606 exit 1607fi 1608 1609## ------------------------ ## 1610## Autoconf initialization. ## 1611## ------------------------ ## 1612 1613# ac_fn_c_try_compile LINENO 1614# -------------------------- 1615# Try to compile conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_compile () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext conftest.beam 1620 if { { ac_try="$ac_compile" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626printf "%s\n" "$ac_try_echo"; } >&5 1627 (eval "$ac_compile") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest.$ac_objext 1639then : 1640 ac_retval=0 1641else $as_nop 1642 printf "%s\n" "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_compile 1651 1652# ac_fn_c_try_link LINENO 1653# ----------------------- 1654# Try to link conftest.$ac_ext, and return whether this succeeded. 1655ac_fn_c_try_link () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1659 if { { ac_try="$ac_link" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665printf "%s\n" "$ac_try_echo"; } >&5 1666 (eval "$ac_link") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } && { 1675 test -z "$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 } && test -s conftest$ac_exeext && { 1678 test "$cross_compiling" = yes || 1679 test -x conftest$ac_exeext 1680 } 1681then : 1682 ac_retval=0 1683else $as_nop 1684 printf "%s\n" "$as_me: failed program was:" >&5 1685sed 's/^/| /' conftest.$ac_ext >&5 1686 1687 ac_retval=1 1688fi 1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1691 # interfere with the next link command; also delete a directory that is 1692 # left behind by Apple's compiler. We do this before executing the actions. 1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695 as_fn_set_status $ac_retval 1696 1697} # ac_fn_c_try_link 1698 1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1700# ------------------------------------------------------- 1701# Tests whether HEADER exists and can be compiled using the include files in 1702# INCLUDES, setting the cache variable VAR accordingly. 1703ac_fn_c_check_header_compile () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1707printf %s "checking for $2... " >&6; } 1708if eval test \${$3+y} 1709then : 1710 printf %s "(cached) " >&6 1711else $as_nop 1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1713/* end confdefs.h. */ 1714$4 1715#include <$2> 1716_ACEOF 1717if ac_fn_c_try_compile "$LINENO" 1718then : 1719 eval "$3=yes" 1720else $as_nop 1721 eval "$3=no" 1722fi 1723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1724fi 1725eval ac_res=\$$3 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1727printf "%s\n" "$ac_res" >&6; } 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730} # ac_fn_c_check_header_compile 1731 1732# ac_fn_c_check_func LINENO FUNC VAR 1733# ---------------------------------- 1734# Tests whether FUNC exists, setting the cache variable VAR accordingly 1735ac_fn_c_check_func () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739printf %s "checking for $2... " >&6; } 1740if eval test \${$3+y} 1741then : 1742 printf %s "(cached) " >&6 1743else $as_nop 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1748#define $2 innocuous_$2 1749 1750/* System header to define __stub macros and hopefully few prototypes, 1751 which can conflict with char $2 (); below. */ 1752 1753#include <limits.h> 1754#undef $2 1755 1756/* Override any GCC internal prototype to avoid an error. 1757 Use char because int might match the return type of a GCC 1758 builtin and then its argument prototype would still apply. */ 1759#ifdef __cplusplus 1760extern "C" 1761#endif 1762char $2 (); 1763/* The GNU C library defines this for functions which it implements 1764 to always fail with ENOSYS. Some functions are actually named 1765 something starting with __ and the normal name is an alias. */ 1766#if defined __stub_$2 || defined __stub___$2 1767choke me 1768#endif 1769 1770int 1771main (void) 1772{ 1773return $2 (); 1774 ; 1775 return 0; 1776} 1777_ACEOF 1778if ac_fn_c_try_link "$LINENO" 1779then : 1780 eval "$3=yes" 1781else $as_nop 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1785 conftest$ac_exeext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789printf "%s\n" "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792} # ac_fn_c_check_func 1793 1794# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1795# ------------------------------------------------------------------ 1796# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1797# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1798ac_fn_check_decl () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 as_decl_name=`echo $2|sed 's/ *(.*//'` 1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1803printf %s "checking whether $as_decl_name is declared... " >&6; } 1804if eval test \${$3+y} 1805then : 1806 printf %s "(cached) " >&6 1807else $as_nop 1808 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1809 eval ac_save_FLAGS=\$$6 1810 as_fn_append $6 " $5" 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813$4 1814int 1815main (void) 1816{ 1817#ifndef $as_decl_name 1818#ifdef __cplusplus 1819 (void) $as_decl_use; 1820#else 1821 (void) $as_decl_name; 1822#endif 1823#endif 1824 1825 ; 1826 return 0; 1827} 1828_ACEOF 1829if ac_fn_c_try_compile "$LINENO" 1830then : 1831 eval "$3=yes" 1832else $as_nop 1833 eval "$3=no" 1834fi 1835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1836 eval $6=\$ac_save_FLAGS 1837 1838fi 1839eval ac_res=\$$3 1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841printf "%s\n" "$ac_res" >&6; } 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 1844} # ac_fn_check_decl 1845ac_configure_args_raw= 1846for ac_arg 1847do 1848 case $ac_arg in 1849 *\'*) 1850 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1851 esac 1852 as_fn_append ac_configure_args_raw " '$ac_arg'" 1853done 1854 1855case $ac_configure_args_raw in 1856 *$as_nl*) 1857 ac_safe_unquote= ;; 1858 *) 1859 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1860 ac_unsafe_a="$ac_unsafe_z#~" 1861 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1862 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1863esac 1864 1865cat >config.log <<_ACEOF 1866This file contains any messages produced by compilers while 1867running configure, to aid debugging if configure makes a mistake. 1868 1869It was created by libXft $as_me 2.3.9, which was 1870generated by GNU Autoconf 2.71. Invocation command line was 1871 1872 $ $0$ac_configure_args_raw 1873 1874_ACEOF 1875exec 5>>config.log 1876{ 1877cat <<_ASUNAME 1878## --------- ## 1879## Platform. ## 1880## --------- ## 1881 1882hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1883uname -m = `(uname -m) 2>/dev/null || echo unknown` 1884uname -r = `(uname -r) 2>/dev/null || echo unknown` 1885uname -s = `(uname -s) 2>/dev/null || echo unknown` 1886uname -v = `(uname -v) 2>/dev/null || echo unknown` 1887 1888/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1889/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1890 1891/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1892/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1893/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1894/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1895/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1896/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1897/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1898 1899_ASUNAME 1900 1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1902for as_dir in $PATH 1903do 1904 IFS=$as_save_IFS 1905 case $as_dir in #((( 1906 '') as_dir=./ ;; 1907 */) ;; 1908 *) as_dir=$as_dir/ ;; 1909 esac 1910 printf "%s\n" "PATH: $as_dir" 1911 done 1912IFS=$as_save_IFS 1913 1914} >&5 1915 1916cat >&5 <<_ACEOF 1917 1918 1919## ----------- ## 1920## Core tests. ## 1921## ----------- ## 1922 1923_ACEOF 1924 1925 1926# Keep a trace of the command line. 1927# Strip out --no-create and --no-recursion so they do not pile up. 1928# Strip out --silent because we don't want to record it for future runs. 1929# Also quote any args containing shell meta-characters. 1930# Make two passes to allow for proper duplicate-argument suppression. 1931ac_configure_args= 1932ac_configure_args0= 1933ac_configure_args1= 1934ac_must_keep_next=false 1935for ac_pass in 1 2 1936do 1937 for ac_arg 1938 do 1939 case $ac_arg in 1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1942 | -silent | --silent | --silen | --sile | --sil) 1943 continue ;; 1944 *\'*) 1945 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1946 esac 1947 case $ac_pass in 1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1949 2) 1950 as_fn_append ac_configure_args1 " '$ac_arg'" 1951 if test $ac_must_keep_next = true; then 1952 ac_must_keep_next=false # Got value, back to normal. 1953 else 1954 case $ac_arg in 1955 *=* | --config-cache | -C | -disable-* | --disable-* \ 1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1958 | -with-* | --with-* | -without-* | --without-* | --x) 1959 case "$ac_configure_args0 " in 1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1961 esac 1962 ;; 1963 -* ) ac_must_keep_next=true ;; 1964 esac 1965 fi 1966 as_fn_append ac_configure_args " '$ac_arg'" 1967 ;; 1968 esac 1969 done 1970done 1971{ ac_configure_args0=; unset ac_configure_args0;} 1972{ ac_configure_args1=; unset ac_configure_args1;} 1973 1974# When interrupted or exit'd, cleanup temporary files, and complete 1975# config.log. We remove comments because anyway the quotes in there 1976# would cause problems or look ugly. 1977# WARNING: Use '\'' to represent an apostrophe within the trap. 1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1979trap 'exit_status=$? 1980 # Sanitize IFS. 1981 IFS=" "" $as_nl" 1982 # Save into config.log some information that might help in debugging. 1983 { 1984 echo 1985 1986 printf "%s\n" "## ---------------- ## 1987## Cache variables. ## 1988## ---------------- ##" 1989 echo 1990 # The following way of writing the cache mishandles newlines in values, 1991( 1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1993 eval ac_val=\$$ac_var 1994 case $ac_val in #( 1995 *${as_nl}*) 1996 case $ac_var in #( 1997 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1998printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1999 esac 2000 case $ac_var in #( 2001 _ | IFS | as_nl) ;; #( 2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2003 *) { eval $ac_var=; unset $ac_var;} ;; 2004 esac ;; 2005 esac 2006 done 2007 (set) 2>&1 | 2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2009 *${as_nl}ac_space=\ *) 2010 sed -n \ 2011 "s/'\''/'\''\\\\'\'''\''/g; 2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2013 ;; #( 2014 *) 2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2016 ;; 2017 esac | 2018 sort 2019) 2020 echo 2021 2022 printf "%s\n" "## ----------------- ## 2023## Output variables. ## 2024## ----------------- ##" 2025 echo 2026 for ac_var in $ac_subst_vars 2027 do 2028 eval ac_val=\$$ac_var 2029 case $ac_val in 2030 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2031 esac 2032 printf "%s\n" "$ac_var='\''$ac_val'\''" 2033 done | sort 2034 echo 2035 2036 if test -n "$ac_subst_files"; then 2037 printf "%s\n" "## ------------------- ## 2038## File substitutions. ## 2039## ------------------- ##" 2040 echo 2041 for ac_var in $ac_subst_files 2042 do 2043 eval ac_val=\$$ac_var 2044 case $ac_val in 2045 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2046 esac 2047 printf "%s\n" "$ac_var='\''$ac_val'\''" 2048 done | sort 2049 echo 2050 fi 2051 2052 if test -s confdefs.h; then 2053 printf "%s\n" "## ----------- ## 2054## confdefs.h. ## 2055## ----------- ##" 2056 echo 2057 cat confdefs.h 2058 echo 2059 fi 2060 test "$ac_signal" != 0 && 2061 printf "%s\n" "$as_me: caught signal $ac_signal" 2062 printf "%s\n" "$as_me: exit $exit_status" 2063 } >&5 2064 rm -f core *.core core.conftest.* && 2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2066 exit $exit_status 2067' 0 2068for ac_signal in 1 2 13 15; do 2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2070done 2071ac_signal=0 2072 2073# confdefs.h avoids OS command line length limits that DEFS can exceed. 2074rm -f -r conftest* confdefs.h 2075 2076printf "%s\n" "/* confdefs.h */" > confdefs.h 2077 2078# Predefined preprocessor variables. 2079 2080printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2081 2082printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2083 2084printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2085 2086printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2087 2088printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2089 2090printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2091 2092 2093# Let the site file select an alternate cache file if it wants to. 2094# Prefer an explicitly selected file to automatically selected ones. 2095if test -n "$CONFIG_SITE"; then 2096 ac_site_files="$CONFIG_SITE" 2097elif test "x$prefix" != xNONE; then 2098 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2099else 2100 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2101fi 2102 2103for ac_site_file in $ac_site_files 2104do 2105 case $ac_site_file in #( 2106 */*) : 2107 ;; #( 2108 *) : 2109 ac_site_file=./$ac_site_file ;; 2110esac 2111 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2113printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2114 sed 's/^/| /' "$ac_site_file" >&5 2115 . "$ac_site_file" \ 2116 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2117printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2118as_fn_error $? "failed to load site script $ac_site_file 2119See \`config.log' for more details" "$LINENO" 5; } 2120 fi 2121done 2122 2123if test -r "$cache_file"; then 2124 # Some versions of bash will fail to source /dev/null (special files 2125 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2126 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2128printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2129 case $cache_file in 2130 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2131 *) . "./$cache_file";; 2132 esac 2133 fi 2134else 2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2136printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2137 >$cache_file 2138fi 2139 2140# Test code for whether the C compiler supports C89 (global declarations) 2141ac_c_conftest_c89_globals=' 2142/* Does the compiler advertise C89 conformance? 2143 Do not test the value of __STDC__, because some compilers set it to 0 2144 while being otherwise adequately conformant. */ 2145#if !defined __STDC__ 2146# error "Compiler does not advertise C89 conformance" 2147#endif 2148 2149#include <stddef.h> 2150#include <stdarg.h> 2151struct stat; 2152/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2153struct buf { int x; }; 2154struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2155static char *e (p, i) 2156 char **p; 2157 int i; 2158{ 2159 return p[i]; 2160} 2161static char *f (char * (*g) (char **, int), char **p, ...) 2162{ 2163 char *s; 2164 va_list v; 2165 va_start (v,p); 2166 s = g (p, va_arg (v,int)); 2167 va_end (v); 2168 return s; 2169} 2170 2171/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2172 function prototypes and stuff, but not \xHH hex character constants. 2173 These do not provoke an error unfortunately, instead are silently treated 2174 as an "x". The following induces an error, until -std is added to get 2175 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2176 array size at least. It is necessary to write \x00 == 0 to get something 2177 that is true only with -std. */ 2178int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2179 2180/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2181 inside strings and character constants. */ 2182#define FOO(x) '\''x'\'' 2183int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2184 2185int test (int i, double x); 2186struct s1 {int (*f) (int a);}; 2187struct s2 {int (*f) (double a);}; 2188int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2189 int, int);' 2190 2191# Test code for whether the C compiler supports C89 (body of main). 2192ac_c_conftest_c89_main=' 2193ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2194' 2195 2196# Test code for whether the C compiler supports C99 (global declarations) 2197ac_c_conftest_c99_globals=' 2198// Does the compiler advertise C99 conformance? 2199#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2200# error "Compiler does not advertise C99 conformance" 2201#endif 2202 2203#include <stdbool.h> 2204extern int puts (const char *); 2205extern int printf (const char *, ...); 2206extern int dprintf (int, const char *, ...); 2207extern void *malloc (size_t); 2208 2209// Check varargs macros. These examples are taken from C99 6.10.3.5. 2210// dprintf is used instead of fprintf to avoid needing to declare 2211// FILE and stderr. 2212#define debug(...) dprintf (2, __VA_ARGS__) 2213#define showlist(...) puts (#__VA_ARGS__) 2214#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2215static void 2216test_varargs_macros (void) 2217{ 2218 int x = 1234; 2219 int y = 5678; 2220 debug ("Flag"); 2221 debug ("X = %d\n", x); 2222 showlist (The first, second, and third items.); 2223 report (x>y, "x is %d but y is %d", x, y); 2224} 2225 2226// Check long long types. 2227#define BIG64 18446744073709551615ull 2228#define BIG32 4294967295ul 2229#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2230#if !BIG_OK 2231 #error "your preprocessor is broken" 2232#endif 2233#if BIG_OK 2234#else 2235 #error "your preprocessor is broken" 2236#endif 2237static long long int bignum = -9223372036854775807LL; 2238static unsigned long long int ubignum = BIG64; 2239 2240struct incomplete_array 2241{ 2242 int datasize; 2243 double data[]; 2244}; 2245 2246struct named_init { 2247 int number; 2248 const wchar_t *name; 2249 double average; 2250}; 2251 2252typedef const char *ccp; 2253 2254static inline int 2255test_restrict (ccp restrict text) 2256{ 2257 // See if C++-style comments work. 2258 // Iterate through items via the restricted pointer. 2259 // Also check for declarations in for loops. 2260 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2261 continue; 2262 return 0; 2263} 2264 2265// Check varargs and va_copy. 2266static bool 2267test_varargs (const char *format, ...) 2268{ 2269 va_list args; 2270 va_start (args, format); 2271 va_list args_copy; 2272 va_copy (args_copy, args); 2273 2274 const char *str = ""; 2275 int number = 0; 2276 float fnumber = 0; 2277 2278 while (*format) 2279 { 2280 switch (*format++) 2281 { 2282 case '\''s'\'': // string 2283 str = va_arg (args_copy, const char *); 2284 break; 2285 case '\''d'\'': // int 2286 number = va_arg (args_copy, int); 2287 break; 2288 case '\''f'\'': // float 2289 fnumber = va_arg (args_copy, double); 2290 break; 2291 default: 2292 break; 2293 } 2294 } 2295 va_end (args_copy); 2296 va_end (args); 2297 2298 return *str && number && fnumber; 2299} 2300' 2301 2302# Test code for whether the C compiler supports C99 (body of main). 2303ac_c_conftest_c99_main=' 2304 // Check bool. 2305 _Bool success = false; 2306 success |= (argc != 0); 2307 2308 // Check restrict. 2309 if (test_restrict ("String literal") == 0) 2310 success = true; 2311 char *restrict newvar = "Another string"; 2312 2313 // Check varargs. 2314 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2315 test_varargs_macros (); 2316 2317 // Check flexible array members. 2318 struct incomplete_array *ia = 2319 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2320 ia->datasize = 10; 2321 for (int i = 0; i < ia->datasize; ++i) 2322 ia->data[i] = i * 1.234; 2323 2324 // Check named initializers. 2325 struct named_init ni = { 2326 .number = 34, 2327 .name = L"Test wide string", 2328 .average = 543.34343, 2329 }; 2330 2331 ni.number = 58; 2332 2333 int dynamic_array[ni.number]; 2334 dynamic_array[0] = argv[0][0]; 2335 dynamic_array[ni.number - 1] = 543; 2336 2337 // work around unused variable warnings 2338 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2339 || dynamic_array[ni.number - 1] != 543); 2340' 2341 2342# Test code for whether the C compiler supports C11 (global declarations) 2343ac_c_conftest_c11_globals=' 2344// Does the compiler advertise C11 conformance? 2345#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2346# error "Compiler does not advertise C11 conformance" 2347#endif 2348 2349// Check _Alignas. 2350char _Alignas (double) aligned_as_double; 2351char _Alignas (0) no_special_alignment; 2352extern char aligned_as_int; 2353char _Alignas (0) _Alignas (int) aligned_as_int; 2354 2355// Check _Alignof. 2356enum 2357{ 2358 int_alignment = _Alignof (int), 2359 int_array_alignment = _Alignof (int[100]), 2360 char_alignment = _Alignof (char) 2361}; 2362_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2363 2364// Check _Noreturn. 2365int _Noreturn does_not_return (void) { for (;;) continue; } 2366 2367// Check _Static_assert. 2368struct test_static_assert 2369{ 2370 int x; 2371 _Static_assert (sizeof (int) <= sizeof (long int), 2372 "_Static_assert does not work in struct"); 2373 long int y; 2374}; 2375 2376// Check UTF-8 literals. 2377#define u8 syntax error! 2378char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2379 2380// Check duplicate typedefs. 2381typedef long *long_ptr; 2382typedef long int *long_ptr; 2383typedef long_ptr long_ptr; 2384 2385// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2386struct anonymous 2387{ 2388 union { 2389 struct { int i; int j; }; 2390 struct { int k; long int l; } w; 2391 }; 2392 int m; 2393} v1; 2394' 2395 2396# Test code for whether the C compiler supports C11 (body of main). 2397ac_c_conftest_c11_main=' 2398 _Static_assert ((offsetof (struct anonymous, i) 2399 == offsetof (struct anonymous, w.k)), 2400 "Anonymous union alignment botch"); 2401 v1.i = 2; 2402 v1.w.k = 5; 2403 ok |= v1.i != 5; 2404' 2405 2406# Test code for whether the C compiler supports C11 (complete). 2407ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2408${ac_c_conftest_c99_globals} 2409${ac_c_conftest_c11_globals} 2410 2411int 2412main (int argc, char **argv) 2413{ 2414 int ok = 0; 2415 ${ac_c_conftest_c89_main} 2416 ${ac_c_conftest_c99_main} 2417 ${ac_c_conftest_c11_main} 2418 return ok; 2419} 2420" 2421 2422# Test code for whether the C compiler supports C99 (complete). 2423ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2424${ac_c_conftest_c99_globals} 2425 2426int 2427main (int argc, char **argv) 2428{ 2429 int ok = 0; 2430 ${ac_c_conftest_c89_main} 2431 ${ac_c_conftest_c99_main} 2432 return ok; 2433} 2434" 2435 2436# Test code for whether the C compiler supports C89 (complete). 2437ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2438 2439int 2440main (int argc, char **argv) 2441{ 2442 int ok = 0; 2443 ${ac_c_conftest_c89_main} 2444 return ok; 2445} 2446" 2447 2448as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2449as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2450as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2451as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2452as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2453as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2454as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2455as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2456as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2457 2458# Auxiliary files required by this configure script. 2459ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2460 2461# Locations in which to look for auxiliary files. 2462ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2463 2464# Search for a directory containing all of the required auxiliary files, 2465# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2466# If we don't find one directory that contains all the files we need, 2467# we report the set of missing files from the *first* directory in 2468# $ac_aux_dir_candidates and give up. 2469ac_missing_aux_files="" 2470ac_first_candidate=: 2471printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473as_found=false 2474for as_dir in $ac_aux_dir_candidates 2475do 2476 IFS=$as_save_IFS 2477 case $as_dir in #((( 2478 '') as_dir=./ ;; 2479 */) ;; 2480 *) as_dir=$as_dir/ ;; 2481 esac 2482 as_found=: 2483 2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2485 ac_aux_dir_found=yes 2486 ac_install_sh= 2487 for ac_aux in $ac_aux_files 2488 do 2489 # As a special case, if "install-sh" is required, that requirement 2490 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2491 # and $ac_install_sh is set appropriately for whichever one is found. 2492 if test x"$ac_aux" = x"install-sh" 2493 then 2494 if test -f "${as_dir}install-sh"; then 2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2496 ac_install_sh="${as_dir}install-sh -c" 2497 elif test -f "${as_dir}install.sh"; then 2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2499 ac_install_sh="${as_dir}install.sh -c" 2500 elif test -f "${as_dir}shtool"; then 2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2502 ac_install_sh="${as_dir}shtool install -c" 2503 else 2504 ac_aux_dir_found=no 2505 if $ac_first_candidate; then 2506 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2507 else 2508 break 2509 fi 2510 fi 2511 else 2512 if test -f "${as_dir}${ac_aux}"; then 2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2514 else 2515 ac_aux_dir_found=no 2516 if $ac_first_candidate; then 2517 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2518 else 2519 break 2520 fi 2521 fi 2522 fi 2523 done 2524 if test "$ac_aux_dir_found" = yes; then 2525 ac_aux_dir="$as_dir" 2526 break 2527 fi 2528 ac_first_candidate=false 2529 2530 as_found=false 2531done 2532IFS=$as_save_IFS 2533if $as_found 2534then : 2535 2536else $as_nop 2537 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2538fi 2539 2540 2541# These three variables are undocumented and unsupported, 2542# and are intended to be withdrawn in a future Autoconf release. 2543# They can cause serious problems if a builder's source tree is in a directory 2544# whose full name contains unusual characters. 2545if test -f "${ac_aux_dir}config.guess"; then 2546 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2547fi 2548if test -f "${ac_aux_dir}config.sub"; then 2549 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2550fi 2551if test -f "$ac_aux_dir/configure"; then 2552 ac_configure="$SHELL ${ac_aux_dir}configure" 2553fi 2554 2555# Check that the precious variables saved in the cache have kept the same 2556# value. 2557ac_cache_corrupted=false 2558for ac_var in $ac_precious_vars; do 2559 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2560 eval ac_new_set=\$ac_env_${ac_var}_set 2561 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2562 eval ac_new_val=\$ac_env_${ac_var}_value 2563 case $ac_old_set,$ac_new_set in 2564 set,) 2565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2566printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2567 ac_cache_corrupted=: ;; 2568 ,set) 2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2570printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2571 ac_cache_corrupted=: ;; 2572 ,);; 2573 *) 2574 if test "x$ac_old_val" != "x$ac_new_val"; then 2575 # differences in whitespace do not lead to failure. 2576 ac_old_val_w=`echo x $ac_old_val` 2577 ac_new_val_w=`echo x $ac_new_val` 2578 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2580printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2581 ac_cache_corrupted=: 2582 else 2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2584printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2585 eval $ac_var=\$ac_old_val 2586 fi 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2588printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2590printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2591 fi;; 2592 esac 2593 # Pass precious variables to config.status. 2594 if test "$ac_new_set" = set; then 2595 case $ac_new_val in 2596 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2597 *) ac_arg=$ac_var=$ac_new_val ;; 2598 esac 2599 case " $ac_configure_args " in 2600 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2601 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2602 esac 2603 fi 2604done 2605if $ac_cache_corrupted; then 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2607printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2609printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2610 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2611 and start over" "$LINENO" 5 2612fi 2613## -------------------- ## 2614## Main body of script. ## 2615## -------------------- ## 2616 2617ac_ext=c 2618ac_cpp='$CPP $CPPFLAGS' 2619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2621ac_compiler_gnu=$ac_cv_c_compiler_gnu 2622 2623 2624 2625ac_config_headers="$ac_config_headers config.h" 2626 2627 2628 2629# Initialize Automake 2630am__api_version='1.16' 2631 2632 2633 2634 # Find a good install program. We prefer a C program (faster), 2635# so one script is as good as another. But avoid the broken or 2636# incompatible versions: 2637# SysV /etc/install, /usr/sbin/install 2638# SunOS /usr/etc/install 2639# IRIX /sbin/install 2640# AIX /bin/install 2641# AmigaOS /C/install, which installs bootblocks on floppy discs 2642# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2643# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2644# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2645# OS/2's system install, which has a completely different semantic 2646# ./install, which can be erroneously created by make from ./install.sh. 2647# Reject install programs that cannot install multiple files. 2648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2649printf %s "checking for a BSD-compatible install... " >&6; } 2650if test -z "$INSTALL"; then 2651if test ${ac_cv_path_install+y} 2652then : 2653 printf %s "(cached) " >&6 2654else $as_nop 2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656for as_dir in $PATH 2657do 2658 IFS=$as_save_IFS 2659 case $as_dir in #((( 2660 '') as_dir=./ ;; 2661 */) ;; 2662 *) as_dir=$as_dir/ ;; 2663 esac 2664 # Account for fact that we put trailing slashes in our PATH walk. 2665case $as_dir in #(( 2666 ./ | /[cC]/* | \ 2667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2669 /usr/ucb/* ) ;; 2670 *) 2671 # OSF1 and SCO ODT 3.0 have their own names for install. 2672 # Don't use installbsd from OSF since it installs stuff as root 2673 # by default. 2674 for ac_prog in ginstall scoinst install; do 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2677 if test $ac_prog = install && 2678 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2679 # AIX install. It has an incompatible calling convention. 2680 : 2681 elif test $ac_prog = install && 2682 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2683 # program-specific install script used by HP pwplus--don't use. 2684 : 2685 else 2686 rm -rf conftest.one conftest.two conftest.dir 2687 echo one > conftest.one 2688 echo two > conftest.two 2689 mkdir conftest.dir 2690 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2691 test -s conftest.one && test -s conftest.two && 2692 test -s conftest.dir/conftest.one && 2693 test -s conftest.dir/conftest.two 2694 then 2695 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2696 break 3 2697 fi 2698 fi 2699 fi 2700 done 2701 done 2702 ;; 2703esac 2704 2705 done 2706IFS=$as_save_IFS 2707 2708rm -rf conftest.one conftest.two conftest.dir 2709 2710fi 2711 if test ${ac_cv_path_install+y}; then 2712 INSTALL=$ac_cv_path_install 2713 else 2714 # As a last resort, use the slow shell script. Don't cache a 2715 # value for INSTALL within a source directory, because that will 2716 # break other packages using the cache if that directory is 2717 # removed, or if the value is a relative name. 2718 INSTALL=$ac_install_sh 2719 fi 2720fi 2721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2722printf "%s\n" "$INSTALL" >&6; } 2723 2724# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2725# It thinks the first close brace ends the variable substitution. 2726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2727 2728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2729 2730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2731 2732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2733printf %s "checking whether build environment is sane... " >&6; } 2734# Reject unsafe characters in $srcdir or the absolute working directory 2735# name. Accept space and tab only in the latter. 2736am_lf=' 2737' 2738case `pwd` in 2739 *[\\\"\#\$\&\'\`$am_lf]*) 2740 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2741esac 2742case $srcdir in 2743 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2744 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2745esac 2746 2747# Do 'set' in a subshell so we don't clobber the current shell's 2748# arguments. Must try -L first in case configure is actually a 2749# symlink; some systems play weird games with the mod time of symlinks 2750# (eg FreeBSD returns the mod time of the symlink's containing 2751# directory). 2752if ( 2753 am_has_slept=no 2754 for am_try in 1 2; do 2755 echo "timestamp, slept: $am_has_slept" > conftest.file 2756 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2757 if test "$*" = "X"; then 2758 # -L didn't work. 2759 set X `ls -t "$srcdir/configure" conftest.file` 2760 fi 2761 if test "$*" != "X $srcdir/configure conftest.file" \ 2762 && test "$*" != "X conftest.file $srcdir/configure"; then 2763 2764 # If neither matched, then we have a broken ls. This can happen 2765 # if, for instance, CONFIG_SHELL is bash and it inherits a 2766 # broken ls alias from the environment. This has actually 2767 # happened. Such a system could not be considered "sane". 2768 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2769 alias in your environment" "$LINENO" 5 2770 fi 2771 if test "$2" = conftest.file || test $am_try -eq 2; then 2772 break 2773 fi 2774 # Just in case. 2775 sleep 1 2776 am_has_slept=yes 2777 done 2778 test "$2" = conftest.file 2779 ) 2780then 2781 # Ok. 2782 : 2783else 2784 as_fn_error $? "newly created file is older than distributed files! 2785Check your system clock" "$LINENO" 5 2786fi 2787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2788printf "%s\n" "yes" >&6; } 2789# If we didn't sleep, we still need to ensure time stamps of config.status and 2790# generated files are strictly newer. 2791am_sleep_pid= 2792if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2793 ( sleep 1 ) & 2794 am_sleep_pid=$! 2795fi 2796 2797rm -f conftest.file 2798 2799test "$program_prefix" != NONE && 2800 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2801# Use a double $ so make ignores it. 2802test "$program_suffix" != NONE && 2803 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2804# Double any \ or $. 2805# By default was `s,x,x', remove it if useless. 2806ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2807program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2808 2809 2810# Expand $ac_aux_dir to an absolute path. 2811am_aux_dir=`cd "$ac_aux_dir" && pwd` 2812 2813 2814 if test x"${MISSING+set}" != xset; then 2815 MISSING="\${SHELL} '$am_aux_dir/missing'" 2816fi 2817# Use eval to expand $SHELL 2818if eval "$MISSING --is-lightweight"; then 2819 am_missing_run="$MISSING " 2820else 2821 am_missing_run= 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2823printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2824fi 2825 2826if test x"${install_sh+set}" != xset; then 2827 case $am_aux_dir in 2828 *\ * | *\ *) 2829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2830 *) 2831 install_sh="\${SHELL} $am_aux_dir/install-sh" 2832 esac 2833fi 2834 2835# Installed binaries are usually stripped using 'strip' when the user 2836# run "make install-strip". However 'strip' might not be the right 2837# tool to use in cross-compilation environments, therefore Automake 2838# will honor the 'STRIP' environment variable to overrule this program. 2839if test "$cross_compiling" != no; then 2840 if test -n "$ac_tool_prefix"; then 2841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2842set dummy ${ac_tool_prefix}strip; ac_word=$2 2843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2844printf %s "checking for $ac_word... " >&6; } 2845if test ${ac_cv_prog_STRIP+y} 2846then : 2847 printf %s "(cached) " >&6 2848else $as_nop 2849 if test -n "$STRIP"; then 2850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 case $as_dir in #((( 2857 '') as_dir=./ ;; 2858 */) ;; 2859 *) as_dir=$as_dir/ ;; 2860 esac 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2863 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873STRIP=$ac_cv_prog_STRIP 2874if test -n "$STRIP"; then 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2876printf "%s\n" "$STRIP" >&6; } 2877else 2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879printf "%s\n" "no" >&6; } 2880fi 2881 2882 2883fi 2884if test -z "$ac_cv_prog_STRIP"; then 2885 ac_ct_STRIP=$STRIP 2886 # Extract the first word of "strip", so it can be a program name with args. 2887set dummy strip; ac_word=$2 2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889printf %s "checking for $ac_word... " >&6; } 2890if test ${ac_cv_prog_ac_ct_STRIP+y} 2891then : 2892 printf %s "(cached) " >&6 2893else $as_nop 2894 if test -n "$ac_ct_STRIP"; then 2895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2896else 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH 2899do 2900 IFS=$as_save_IFS 2901 case $as_dir in #((( 2902 '') as_dir=./ ;; 2903 */) ;; 2904 *) as_dir=$as_dir/ ;; 2905 esac 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_ac_ct_STRIP="strip" 2909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913 done 2914IFS=$as_save_IFS 2915 2916fi 2917fi 2918ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2919if test -n "$ac_ct_STRIP"; then 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2921printf "%s\n" "$ac_ct_STRIP" >&6; } 2922else 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924printf "%s\n" "no" >&6; } 2925fi 2926 2927 if test "x$ac_ct_STRIP" = x; then 2928 STRIP=":" 2929 else 2930 case $cross_compiling:$ac_tool_warned in 2931yes:) 2932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2933printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2934ac_tool_warned=yes ;; 2935esac 2936 STRIP=$ac_ct_STRIP 2937 fi 2938else 2939 STRIP="$ac_cv_prog_STRIP" 2940fi 2941 2942fi 2943INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2944 2945 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2947printf %s "checking for a race-free mkdir -p... " >&6; } 2948if test -z "$MKDIR_P"; then 2949 if test ${ac_cv_path_mkdir+y} 2950then : 2951 printf %s "(cached) " >&6 2952else $as_nop 2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2955do 2956 IFS=$as_save_IFS 2957 case $as_dir in #((( 2958 '') as_dir=./ ;; 2959 */) ;; 2960 *) as_dir=$as_dir/ ;; 2961 esac 2962 for ac_prog in mkdir gmkdir; do 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2965 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2966 'mkdir ('*'coreutils) '* | \ 2967 'BusyBox '* | \ 2968 'mkdir (fileutils) '4.1*) 2969 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2970 break 3;; 2971 esac 2972 done 2973 done 2974 done 2975IFS=$as_save_IFS 2976 2977fi 2978 2979 test -d ./--version && rmdir ./--version 2980 if test ${ac_cv_path_mkdir+y}; then 2981 MKDIR_P="$ac_cv_path_mkdir -p" 2982 else 2983 # As a last resort, use the slow shell script. Don't cache a 2984 # value for MKDIR_P within a source directory, because that will 2985 # break other packages using the cache if that directory is 2986 # removed, or if the value is a relative name. 2987 MKDIR_P="$ac_install_sh -d" 2988 fi 2989fi 2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2991printf "%s\n" "$MKDIR_P" >&6; } 2992 2993for ac_prog in gawk mawk nawk awk 2994do 2995 # Extract the first word of "$ac_prog", so it can be a program name with args. 2996set dummy $ac_prog; ac_word=$2 2997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998printf %s "checking for $ac_word... " >&6; } 2999if test ${ac_cv_prog_AWK+y} 3000then : 3001 printf %s "(cached) " >&6 3002else $as_nop 3003 if test -n "$AWK"; then 3004 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3005else 3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007for as_dir in $PATH 3008do 3009 IFS=$as_save_IFS 3010 case $as_dir in #((( 3011 '') as_dir=./ ;; 3012 */) ;; 3013 *) as_dir=$as_dir/ ;; 3014 esac 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3017 ac_cv_prog_AWK="$ac_prog" 3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3019 break 2 3020 fi 3021done 3022 done 3023IFS=$as_save_IFS 3024 3025fi 3026fi 3027AWK=$ac_cv_prog_AWK 3028if test -n "$AWK"; then 3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3030printf "%s\n" "$AWK" >&6; } 3031else 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033printf "%s\n" "no" >&6; } 3034fi 3035 3036 3037 test -n "$AWK" && break 3038done 3039 3040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3041printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3042set x ${MAKE-make} 3043ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3044if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3045then : 3046 printf %s "(cached) " >&6 3047else $as_nop 3048 cat >conftest.make <<\_ACEOF 3049SHELL = /bin/sh 3050all: 3051 @echo '@@@%%%=$(MAKE)=@@@%%%' 3052_ACEOF 3053# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3054case `${MAKE-make} -f conftest.make 2>/dev/null` in 3055 *@@@%%%=?*=@@@%%%*) 3056 eval ac_cv_prog_make_${ac_make}_set=yes;; 3057 *) 3058 eval ac_cv_prog_make_${ac_make}_set=no;; 3059esac 3060rm -f conftest.make 3061fi 3062if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3064printf "%s\n" "yes" >&6; } 3065 SET_MAKE= 3066else 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068printf "%s\n" "no" >&6; } 3069 SET_MAKE="MAKE=${MAKE-make}" 3070fi 3071 3072rm -rf .tst 2>/dev/null 3073mkdir .tst 2>/dev/null 3074if test -d .tst; then 3075 am__leading_dot=. 3076else 3077 am__leading_dot=_ 3078fi 3079rmdir .tst 2>/dev/null 3080 3081# Check whether --enable-silent-rules was given. 3082if test ${enable_silent_rules+y} 3083then : 3084 enableval=$enable_silent_rules; 3085fi 3086 3087case $enable_silent_rules in # ((( 3088 yes) AM_DEFAULT_VERBOSITY=0;; 3089 no) AM_DEFAULT_VERBOSITY=1;; 3090 *) AM_DEFAULT_VERBOSITY=1;; 3091esac 3092am_make=${MAKE-make} 3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3094printf %s "checking whether $am_make supports nested variables... " >&6; } 3095if test ${am_cv_make_support_nested_variables+y} 3096then : 3097 printf %s "(cached) " >&6 3098else $as_nop 3099 if printf "%s\n" 'TRUE=$(BAR$(V)) 3100BAR0=false 3101BAR1=true 3102V=1 3103am__doit: 3104 @$(TRUE) 3105.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3106 am_cv_make_support_nested_variables=yes 3107else 3108 am_cv_make_support_nested_variables=no 3109fi 3110fi 3111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3112printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3113if test $am_cv_make_support_nested_variables = yes; then 3114 AM_V='$(V)' 3115 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3116else 3117 AM_V=$AM_DEFAULT_VERBOSITY 3118 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3119fi 3120AM_BACKSLASH='\' 3121 3122if test "`cd $srcdir && pwd`" != "`pwd`"; then 3123 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3124 # is not polluted with repeated "-I." 3125 am__isrc=' -I$(srcdir)' 3126 # test to see if srcdir already configured 3127 if test -f $srcdir/config.status; then 3128 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3129 fi 3130fi 3131 3132# test whether we have cygpath 3133if test -z "$CYGPATH_W"; then 3134 if (cygpath --version) >/dev/null 2>/dev/null; then 3135 CYGPATH_W='cygpath -w' 3136 else 3137 CYGPATH_W=echo 3138 fi 3139fi 3140 3141 3142# Define the identity of the package. 3143 PACKAGE='libXft' 3144 VERSION='2.3.9' 3145 3146 3147printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3148 3149 3150printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3151 3152# Some tools Automake needs. 3153 3154ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3155 3156 3157AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3158 3159 3160AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3161 3162 3163AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3164 3165 3166MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3167 3168# For better backward compatibility. To be removed once Automake 1.9.x 3169# dies out for good. For more background, see: 3170# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3171# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3172mkdir_p='$(MKDIR_P)' 3173 3174# We need awk for the "check" target (and possibly the TAP driver). The 3175# system "awk" is bad on some platforms. 3176# Always define AMTAR for backward compatibility. Yes, it's still used 3177# in the wild :-( We should find a proper way to deprecate it ... 3178AMTAR='$${TAR-tar}' 3179 3180 3181# We'll loop over all known methods to create a tar archive until one works. 3182_am_tools='gnutar pax cpio none' 3183 3184am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3185 3186 3187 3188 3189 3190# Variables for tags utilities; see am/tags.am 3191if test -z "$CTAGS"; then 3192 CTAGS=ctags 3193fi 3194 3195if test -z "$ETAGS"; then 3196 ETAGS=etags 3197fi 3198 3199if test -z "$CSCOPE"; then 3200 CSCOPE=cscope 3201fi 3202 3203 3204 3205# POSIX will say in a future version that running "rm -f" with no argument 3206# is OK; and we want to be able to make that assumption in our Makefile 3207# recipes. So use an aggressive probe to check that the usage we want is 3208# actually supported "in the wild" to an acceptable degree. 3209# See automake bug#10828. 3210# To make any issue more visible, cause the running configure to be aborted 3211# by default if the 'rm' program in use doesn't match our expectations; the 3212# user can still override this though. 3213if rm -f && rm -fr && rm -rf; then : OK; else 3214 cat >&2 <<'END' 3215Oops! 3216 3217Your 'rm' program seems unable to run without file operands specified 3218on the command line, even when the '-f' option is present. This is contrary 3219to the behaviour of most rm programs out there, and not conforming with 3220the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3221 3222Please tell bug-automake@gnu.org about your system, including the value 3223of your $PATH and any error possibly output before this message. This 3224can help us improve future automake versions. 3225 3226END 3227 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3228 echo 'Configuration will proceed anyway, since you have set the' >&2 3229 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3230 echo >&2 3231 else 3232 cat >&2 <<'END' 3233Aborting the configuration process, to ensure you take notice of the issue. 3234 3235You can download and install GNU coreutils to get an 'rm' implementation 3236that behaves properly: <https://www.gnu.org/software/coreutils/>. 3237 3238If you want to complete the configuration process using your problematic 3239'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3240to "yes", and re-run configure. 3241 3242END 3243 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3244 fi 3245fi 3246 3247 3248# Initialize libtool 3249case `pwd` in 3250 *\ * | *\ *) 3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3252printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3253esac 3254 3255 3256 3257macro_version='2.4.7' 3258macro_revision='2.4.7' 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273ltmain=$ac_aux_dir/ltmain.sh 3274 3275 3276 3277 # Make sure we can run config.sub. 3278$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3279 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3280 3281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3282printf %s "checking build system type... " >&6; } 3283if test ${ac_cv_build+y} 3284then : 3285 printf %s "(cached) " >&6 3286else $as_nop 3287 ac_build_alias=$build_alias 3288test "x$ac_build_alias" = x && 3289 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3290test "x$ac_build_alias" = x && 3291 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3292ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3293 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3294 3295fi 3296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3297printf "%s\n" "$ac_cv_build" >&6; } 3298case $ac_cv_build in 3299*-*-*) ;; 3300*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3301esac 3302build=$ac_cv_build 3303ac_save_IFS=$IFS; IFS='-' 3304set x $ac_cv_build 3305shift 3306build_cpu=$1 3307build_vendor=$2 3308shift; shift 3309# Remember, the first character of IFS is used to create $*, 3310# except with old shells: 3311build_os=$* 3312IFS=$ac_save_IFS 3313case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3314 3315 3316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3317printf %s "checking host system type... " >&6; } 3318if test ${ac_cv_host+y} 3319then : 3320 printf %s "(cached) " >&6 3321else $as_nop 3322 if test "x$host_alias" = x; then 3323 ac_cv_host=$ac_cv_build 3324else 3325 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3326 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3327fi 3328 3329fi 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3331printf "%s\n" "$ac_cv_host" >&6; } 3332case $ac_cv_host in 3333*-*-*) ;; 3334*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3335esac 3336host=$ac_cv_host 3337ac_save_IFS=$IFS; IFS='-' 3338set x $ac_cv_host 3339shift 3340host_cpu=$1 3341host_vendor=$2 3342shift; shift 3343# Remember, the first character of IFS is used to create $*, 3344# except with old shells: 3345host_os=$* 3346IFS=$ac_save_IFS 3347case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3348 3349 3350# Backslashify metacharacters that are still active within 3351# double-quoted strings. 3352sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3353 3354# Same as above, but do not quote variable references. 3355double_quote_subst='s/\(["`\\]\)/\\\1/g' 3356 3357# Sed substitution to delay expansion of an escaped shell variable in a 3358# double_quote_subst'ed string. 3359delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3360 3361# Sed substitution to delay expansion of an escaped single quote. 3362delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3363 3364# Sed substitution to avoid accidental globbing in evaled expressions 3365no_glob_subst='s/\*/\\\*/g' 3366 3367ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3368ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3369ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3370 3371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3372printf %s "checking how to print strings... " >&6; } 3373# Test print first, because it will be a builtin if present. 3374if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3375 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3376 ECHO='print -r --' 3377elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3378 ECHO='printf %s\n' 3379else 3380 # Use this function as a fallback that always works. 3381 func_fallback_echo () 3382 { 3383 eval 'cat <<_LTECHO_EOF 3384$1 3385_LTECHO_EOF' 3386 } 3387 ECHO='func_fallback_echo' 3388fi 3389 3390# func_echo_all arg... 3391# Invoke $ECHO with all args, space-separated. 3392func_echo_all () 3393{ 3394 $ECHO "" 3395} 3396 3397case $ECHO in 3398 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3399printf "%s\n" "printf" >&6; } ;; 3400 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3401printf "%s\n" "print -r" >&6; } ;; 3402 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3403printf "%s\n" "cat" >&6; } ;; 3404esac 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428DEPDIR="${am__leading_dot}deps" 3429 3430ac_config_commands="$ac_config_commands depfiles" 3431 3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3433printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3434cat > confinc.mk << 'END' 3435am__doit: 3436 @echo this is the am__doit target >confinc.out 3437.PHONY: am__doit 3438END 3439am__include="#" 3440am__quote= 3441# BSD make does it like this. 3442echo '.include "confinc.mk" # ignored' > confmf.BSD 3443# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3444echo 'include confinc.mk # ignored' > confmf.GNU 3445_am_result=no 3446for s in GNU BSD; do 3447 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3448 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); } 3452 case $?:`cat confinc.out 2>/dev/null` in #( 3453 '0:this is the am__doit target') : 3454 case $s in #( 3455 BSD) : 3456 am__include='.include' am__quote='"' ;; #( 3457 *) : 3458 am__include='include' am__quote='' ;; 3459esac ;; #( 3460 *) : 3461 ;; 3462esac 3463 if test "$am__include" != "#"; then 3464 _am_result="yes ($s style)" 3465 break 3466 fi 3467done 3468rm -f confinc.* confmf.* 3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3470printf "%s\n" "${_am_result}" >&6; } 3471 3472# Check whether --enable-dependency-tracking was given. 3473if test ${enable_dependency_tracking+y} 3474then : 3475 enableval=$enable_dependency_tracking; 3476fi 3477 3478if test "x$enable_dependency_tracking" != xno; then 3479 am_depcomp="$ac_aux_dir/depcomp" 3480 AMDEPBACKSLASH='\' 3481 am__nodep='_no' 3482fi 3483 if test "x$enable_dependency_tracking" != xno; then 3484 AMDEP_TRUE= 3485 AMDEP_FALSE='#' 3486else 3487 AMDEP_TRUE='#' 3488 AMDEP_FALSE= 3489fi 3490 3491 3492ac_ext=c 3493ac_cpp='$CPP $CPPFLAGS' 3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3496ac_compiler_gnu=$ac_cv_c_compiler_gnu 3497if test -n "$ac_tool_prefix"; then 3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3499set dummy ${ac_tool_prefix}gcc; ac_word=$2 3500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501printf %s "checking for $ac_word... " >&6; } 3502if test ${ac_cv_prog_CC+y} 3503then : 3504 printf %s "(cached) " >&6 3505else $as_nop 3506 if test -n "$CC"; then 3507 ac_cv_prog_CC="$CC" # Let the user override the test. 3508else 3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510for as_dir in $PATH 3511do 3512 IFS=$as_save_IFS 3513 case $as_dir in #((( 3514 '') as_dir=./ ;; 3515 */) ;; 3516 *) as_dir=$as_dir/ ;; 3517 esac 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524done 3525 done 3526IFS=$as_save_IFS 3527 3528fi 3529fi 3530CC=$ac_cv_prog_CC 3531if test -n "$CC"; then 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3533printf "%s\n" "$CC" >&6; } 3534else 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536printf "%s\n" "no" >&6; } 3537fi 3538 3539 3540fi 3541if test -z "$ac_cv_prog_CC"; then 3542 ac_ct_CC=$CC 3543 # Extract the first word of "gcc", so it can be a program name with args. 3544set dummy gcc; ac_word=$2 3545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3546printf %s "checking for $ac_word... " >&6; } 3547if test ${ac_cv_prog_ac_ct_CC+y} 3548then : 3549 printf %s "(cached) " >&6 3550else $as_nop 3551 if test -n "$ac_ct_CC"; then 3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3553else 3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555for as_dir in $PATH 3556do 3557 IFS=$as_save_IFS 3558 case $as_dir in #((( 3559 '') as_dir=./ ;; 3560 */) ;; 3561 *) as_dir=$as_dir/ ;; 3562 esac 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_ac_ct_CC="gcc" 3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574fi 3575ac_ct_CC=$ac_cv_prog_ac_ct_CC 3576if test -n "$ac_ct_CC"; then 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3578printf "%s\n" "$ac_ct_CC" >&6; } 3579else 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581printf "%s\n" "no" >&6; } 3582fi 3583 3584 if test "x$ac_ct_CC" = x; then 3585 CC="" 3586 else 3587 case $cross_compiling:$ac_tool_warned in 3588yes:) 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3590printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3591ac_tool_warned=yes ;; 3592esac 3593 CC=$ac_ct_CC 3594 fi 3595else 3596 CC="$ac_cv_prog_CC" 3597fi 3598 3599if test -z "$CC"; then 3600 if test -n "$ac_tool_prefix"; then 3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3602set dummy ${ac_tool_prefix}cc; ac_word=$2 3603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3604printf %s "checking for $ac_word... " >&6; } 3605if test ${ac_cv_prog_CC+y} 3606then : 3607 printf %s "(cached) " >&6 3608else $as_nop 3609 if test -n "$CC"; then 3610 ac_cv_prog_CC="$CC" # Let the user override the test. 3611else 3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613for as_dir in $PATH 3614do 3615 IFS=$as_save_IFS 3616 case $as_dir in #((( 3617 '') as_dir=./ ;; 3618 */) ;; 3619 *) as_dir=$as_dir/ ;; 3620 esac 3621 for ac_exec_ext in '' $ac_executable_extensions; do 3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3623 ac_cv_prog_CC="${ac_tool_prefix}cc" 3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3625 break 2 3626 fi 3627done 3628 done 3629IFS=$as_save_IFS 3630 3631fi 3632fi 3633CC=$ac_cv_prog_CC 3634if test -n "$CC"; then 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3636printf "%s\n" "$CC" >&6; } 3637else 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639printf "%s\n" "no" >&6; } 3640fi 3641 3642 3643 fi 3644fi 3645if test -z "$CC"; then 3646 # Extract the first word of "cc", so it can be a program name with args. 3647set dummy cc; ac_word=$2 3648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3649printf %s "checking for $ac_word... " >&6; } 3650if test ${ac_cv_prog_CC+y} 3651then : 3652 printf %s "(cached) " >&6 3653else $as_nop 3654 if test -n "$CC"; then 3655 ac_cv_prog_CC="$CC" # Let the user override the test. 3656else 3657 ac_prog_rejected=no 3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659for as_dir in $PATH 3660do 3661 IFS=$as_save_IFS 3662 case $as_dir in #((( 3663 '') as_dir=./ ;; 3664 */) ;; 3665 *) as_dir=$as_dir/ ;; 3666 esac 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3669 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3670 ac_prog_rejected=yes 3671 continue 3672 fi 3673 ac_cv_prog_CC="cc" 3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3675 break 2 3676 fi 3677done 3678 done 3679IFS=$as_save_IFS 3680 3681if test $ac_prog_rejected = yes; then 3682 # We found a bogon in the path, so make sure we never use it. 3683 set dummy $ac_cv_prog_CC 3684 shift 3685 if test $# != 0; then 3686 # We chose a different compiler from the bogus one. 3687 # However, it has the same basename, so the bogon will be chosen 3688 # first if we set CC to just the basename; use the full file name. 3689 shift 3690 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3691 fi 3692fi 3693fi 3694fi 3695CC=$ac_cv_prog_CC 3696if test -n "$CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3698printf "%s\n" "$CC" >&6; } 3699else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701printf "%s\n" "no" >&6; } 3702fi 3703 3704 3705fi 3706if test -z "$CC"; then 3707 if test -n "$ac_tool_prefix"; then 3708 for ac_prog in cl.exe 3709 do 3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3711set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713printf %s "checking for $ac_word... " >&6; } 3714if test ${ac_cv_prog_CC+y} 3715then : 3716 printf %s "(cached) " >&6 3717else $as_nop 3718 if test -n "$CC"; then 3719 ac_cv_prog_CC="$CC" # Let the user override the test. 3720else 3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722for as_dir in $PATH 3723do 3724 IFS=$as_save_IFS 3725 case $as_dir in #((( 3726 '') as_dir=./ ;; 3727 */) ;; 3728 *) as_dir=$as_dir/ ;; 3729 esac 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736done 3737 done 3738IFS=$as_save_IFS 3739 3740fi 3741fi 3742CC=$ac_cv_prog_CC 3743if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745printf "%s\n" "$CC" >&6; } 3746else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748printf "%s\n" "no" >&6; } 3749fi 3750 3751 3752 test -n "$CC" && break 3753 done 3754fi 3755if test -z "$CC"; then 3756 ac_ct_CC=$CC 3757 for ac_prog in cl.exe 3758do 3759 # Extract the first word of "$ac_prog", so it can be a program name with args. 3760set dummy $ac_prog; ac_word=$2 3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3762printf %s "checking for $ac_word... " >&6; } 3763if test ${ac_cv_prog_ac_ct_CC+y} 3764then : 3765 printf %s "(cached) " >&6 3766else $as_nop 3767 if test -n "$ac_ct_CC"; then 3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3769else 3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771for as_dir in $PATH 3772do 3773 IFS=$as_save_IFS 3774 case $as_dir in #((( 3775 '') as_dir=./ ;; 3776 */) ;; 3777 *) as_dir=$as_dir/ ;; 3778 esac 3779 for ac_exec_ext in '' $ac_executable_extensions; do 3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3781 ac_cv_prog_ac_ct_CC="$ac_prog" 3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3783 break 2 3784 fi 3785done 3786 done 3787IFS=$as_save_IFS 3788 3789fi 3790fi 3791ac_ct_CC=$ac_cv_prog_ac_ct_CC 3792if test -n "$ac_ct_CC"; then 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3794printf "%s\n" "$ac_ct_CC" >&6; } 3795else 3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797printf "%s\n" "no" >&6; } 3798fi 3799 3800 3801 test -n "$ac_ct_CC" && break 3802done 3803 3804 if test "x$ac_ct_CC" = x; then 3805 CC="" 3806 else 3807 case $cross_compiling:$ac_tool_warned in 3808yes:) 3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3810printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3811ac_tool_warned=yes ;; 3812esac 3813 CC=$ac_ct_CC 3814 fi 3815fi 3816 3817fi 3818if test -z "$CC"; then 3819 if test -n "$ac_tool_prefix"; then 3820 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3821set dummy ${ac_tool_prefix}clang; ac_word=$2 3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823printf %s "checking for $ac_word... " >&6; } 3824if test ${ac_cv_prog_CC+y} 3825then : 3826 printf %s "(cached) " >&6 3827else $as_nop 3828 if test -n "$CC"; then 3829 ac_cv_prog_CC="$CC" # Let the user override the test. 3830else 3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3832for as_dir in $PATH 3833do 3834 IFS=$as_save_IFS 3835 case $as_dir in #((( 3836 '') as_dir=./ ;; 3837 */) ;; 3838 *) as_dir=$as_dir/ ;; 3839 esac 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3842 ac_cv_prog_CC="${ac_tool_prefix}clang" 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846done 3847 done 3848IFS=$as_save_IFS 3849 3850fi 3851fi 3852CC=$ac_cv_prog_CC 3853if test -n "$CC"; then 3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3855printf "%s\n" "$CC" >&6; } 3856else 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858printf "%s\n" "no" >&6; } 3859fi 3860 3861 3862fi 3863if test -z "$ac_cv_prog_CC"; then 3864 ac_ct_CC=$CC 3865 # Extract the first word of "clang", so it can be a program name with args. 3866set dummy clang; ac_word=$2 3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868printf %s "checking for $ac_word... " >&6; } 3869if test ${ac_cv_prog_ac_ct_CC+y} 3870then : 3871 printf %s "(cached) " >&6 3872else $as_nop 3873 if test -n "$ac_ct_CC"; then 3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3875else 3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3877for as_dir in $PATH 3878do 3879 IFS=$as_save_IFS 3880 case $as_dir in #((( 3881 '') as_dir=./ ;; 3882 */) ;; 3883 *) as_dir=$as_dir/ ;; 3884 esac 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3887 ac_cv_prog_ac_ct_CC="clang" 3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3889 break 2 3890 fi 3891done 3892 done 3893IFS=$as_save_IFS 3894 3895fi 3896fi 3897ac_ct_CC=$ac_cv_prog_ac_ct_CC 3898if test -n "$ac_ct_CC"; then 3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3900printf "%s\n" "$ac_ct_CC" >&6; } 3901else 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903printf "%s\n" "no" >&6; } 3904fi 3905 3906 if test "x$ac_ct_CC" = x; then 3907 CC="" 3908 else 3909 case $cross_compiling:$ac_tool_warned in 3910yes:) 3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3913ac_tool_warned=yes ;; 3914esac 3915 CC=$ac_ct_CC 3916 fi 3917else 3918 CC="$ac_cv_prog_CC" 3919fi 3920 3921fi 3922 3923 3924test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3925printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3926as_fn_error $? "no acceptable C compiler found in \$PATH 3927See \`config.log' for more details" "$LINENO" 5; } 3928 3929# Provide some information about the compiler. 3930printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3931set X $ac_compile 3932ac_compiler=$2 3933for ac_option in --version -v -V -qversion -version; do 3934 { { ac_try="$ac_compiler $ac_option >&5" 3935case "(($ac_try" in 3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3937 *) ac_try_echo=$ac_try;; 3938esac 3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3940printf "%s\n" "$ac_try_echo"; } >&5 3941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3942 ac_status=$? 3943 if test -s conftest.err; then 3944 sed '10a\ 3945... rest of stderr output deleted ... 3946 10q' conftest.err >conftest.er1 3947 cat conftest.er1 >&5 3948 fi 3949 rm -f conftest.er1 conftest.err 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; } 3952done 3953 3954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955/* end confdefs.h. */ 3956 3957int 3958main (void) 3959{ 3960 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965ac_clean_files_save=$ac_clean_files 3966ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3967# Try to create an executable without -o first, disregard a.out. 3968# It will help us diagnose broken compilers, and finding out an intuition 3969# of exeext. 3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3971printf %s "checking whether the C compiler works... " >&6; } 3972ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3973 3974# The possible output files: 3975ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3976 3977ac_rmfiles= 3978for ac_file in $ac_files 3979do 3980 case $ac_file in 3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3982 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3983 esac 3984done 3985rm -f $ac_rmfiles 3986 3987if { { ac_try="$ac_link_default" 3988case "(($ac_try" in 3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990 *) ac_try_echo=$ac_try;; 3991esac 3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993printf "%s\n" "$ac_try_echo"; } >&5 3994 (eval "$ac_link_default") 2>&5 3995 ac_status=$? 3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997 test $ac_status = 0; } 3998then : 3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4000# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4001# in a Makefile. We should not override ac_cv_exeext if it was cached, 4002# so that the user can short-circuit this test for compilers unknown to 4003# Autoconf. 4004for ac_file in $ac_files '' 4005do 4006 test -f "$ac_file" || continue 4007 case $ac_file in 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4009 ;; 4010 [ab].out ) 4011 # We found the default executable, but exeext='' is most 4012 # certainly right. 4013 break;; 4014 *.* ) 4015 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4016 then :; else 4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4018 fi 4019 # We set ac_cv_exeext here because the later test for it is not 4020 # safe: cross compilers may not add the suffix if given an `-o' 4021 # argument, so we may need to know it at that point already. 4022 # Even if this section looks crufty: it has the advantage of 4023 # actually working. 4024 break;; 4025 * ) 4026 break;; 4027 esac 4028done 4029test "$ac_cv_exeext" = no && ac_cv_exeext= 4030 4031else $as_nop 4032 ac_file='' 4033fi 4034if test -z "$ac_file" 4035then : 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4037printf "%s\n" "no" >&6; } 4038printf "%s\n" "$as_me: failed program was:" >&5 4039sed 's/^/| /' conftest.$ac_ext >&5 4040 4041{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4043as_fn_error 77 "C compiler cannot create executables 4044See \`config.log' for more details" "$LINENO" 5; } 4045else $as_nop 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4047printf "%s\n" "yes" >&6; } 4048fi 4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4050printf %s "checking for C compiler default output file name... " >&6; } 4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4052printf "%s\n" "$ac_file" >&6; } 4053ac_exeext=$ac_cv_exeext 4054 4055rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4056ac_clean_files=$ac_clean_files_save 4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4058printf %s "checking for suffix of executables... " >&6; } 4059if { { ac_try="$ac_link" 4060case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063esac 4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4065printf "%s\n" "$ac_try_echo"; } >&5 4066 (eval "$ac_link") 2>&5 4067 ac_status=$? 4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4069 test $ac_status = 0; } 4070then : 4071 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4073# work properly (i.e., refer to `conftest.exe'), while it won't with 4074# `rm'. 4075for ac_file in conftest.exe conftest conftest.*; do 4076 test -f "$ac_file" || continue 4077 case $ac_file in 4078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4080 break;; 4081 * ) break;; 4082 esac 4083done 4084else $as_nop 4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4086printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4087as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4088See \`config.log' for more details" "$LINENO" 5; } 4089fi 4090rm -f conftest conftest$ac_cv_exeext 4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4092printf "%s\n" "$ac_cv_exeext" >&6; } 4093 4094rm -f conftest.$ac_ext 4095EXEEXT=$ac_cv_exeext 4096ac_exeext=$EXEEXT 4097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099#include <stdio.h> 4100int 4101main (void) 4102{ 4103FILE *f = fopen ("conftest.out", "w"); 4104 return ferror (f) || fclose (f) != 0; 4105 4106 ; 4107 return 0; 4108} 4109_ACEOF 4110ac_clean_files="$ac_clean_files conftest.out" 4111# Check that the compiler produces executables we can run. If not, either 4112# the compiler is broken, or we cross compile. 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4114printf %s "checking whether we are cross compiling... " >&6; } 4115if test "$cross_compiling" != yes; then 4116 { { ac_try="$ac_link" 4117case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120esac 4121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122printf "%s\n" "$ac_try_echo"; } >&5 4123 (eval "$ac_link") 2>&5 4124 ac_status=$? 4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4126 test $ac_status = 0; } 4127 if { ac_try='./conftest$ac_cv_exeext' 4128 { { case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131esac 4132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133printf "%s\n" "$ac_try_echo"; } >&5 4134 (eval "$ac_try") 2>&5 4135 ac_status=$? 4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; }; }; then 4138 cross_compiling=no 4139 else 4140 if test "$cross_compiling" = maybe; then 4141 cross_compiling=yes 4142 else 4143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4144printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4145as_fn_error 77 "cannot run C compiled programs. 4146If you meant to cross compile, use \`--host'. 4147See \`config.log' for more details" "$LINENO" 5; } 4148 fi 4149 fi 4150fi 4151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4152printf "%s\n" "$cross_compiling" >&6; } 4153 4154rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4155ac_clean_files=$ac_clean_files_save 4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4157printf %s "checking for suffix of object files... " >&6; } 4158if test ${ac_cv_objext+y} 4159then : 4160 printf %s "(cached) " >&6 4161else $as_nop 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164 4165int 4166main (void) 4167{ 4168 4169 ; 4170 return 0; 4171} 4172_ACEOF 4173rm -f conftest.o conftest.obj 4174if { { ac_try="$ac_compile" 4175case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178esac 4179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4180printf "%s\n" "$ac_try_echo"; } >&5 4181 (eval "$ac_compile") 2>&5 4182 ac_status=$? 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; } 4185then : 4186 for ac_file in conftest.o conftest.obj conftest.*; do 4187 test -f "$ac_file" || continue; 4188 case $ac_file in 4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4191 break;; 4192 esac 4193done 4194else $as_nop 4195 printf "%s\n" "$as_me: failed program was:" >&5 4196sed 's/^/| /' conftest.$ac_ext >&5 4197 4198{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4199printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4200as_fn_error $? "cannot compute suffix of object files: cannot compile 4201See \`config.log' for more details" "$LINENO" 5; } 4202fi 4203rm -f conftest.$ac_cv_objext conftest.$ac_ext 4204fi 4205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4206printf "%s\n" "$ac_cv_objext" >&6; } 4207OBJEXT=$ac_cv_objext 4208ac_objext=$OBJEXT 4209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4210printf %s "checking whether the compiler supports GNU C... " >&6; } 4211if test ${ac_cv_c_compiler_gnu+y} 4212then : 4213 printf %s "(cached) " >&6 4214else $as_nop 4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4216/* end confdefs.h. */ 4217 4218int 4219main (void) 4220{ 4221#ifndef __GNUC__ 4222 choke me 4223#endif 4224 4225 ; 4226 return 0; 4227} 4228_ACEOF 4229if ac_fn_c_try_compile "$LINENO" 4230then : 4231 ac_compiler_gnu=yes 4232else $as_nop 4233 ac_compiler_gnu=no 4234fi 4235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4236ac_cv_c_compiler_gnu=$ac_compiler_gnu 4237 4238fi 4239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4240printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4241ac_compiler_gnu=$ac_cv_c_compiler_gnu 4242 4243if test $ac_compiler_gnu = yes; then 4244 GCC=yes 4245else 4246 GCC= 4247fi 4248ac_test_CFLAGS=${CFLAGS+y} 4249ac_save_CFLAGS=$CFLAGS 4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4251printf %s "checking whether $CC accepts -g... " >&6; } 4252if test ${ac_cv_prog_cc_g+y} 4253then : 4254 printf %s "(cached) " >&6 4255else $as_nop 4256 ac_save_c_werror_flag=$ac_c_werror_flag 4257 ac_c_werror_flag=yes 4258 ac_cv_prog_cc_g=no 4259 CFLAGS="-g" 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262 4263int 4264main (void) 4265{ 4266 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271if ac_fn_c_try_compile "$LINENO" 4272then : 4273 ac_cv_prog_cc_g=yes 4274else $as_nop 4275 CFLAGS="" 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278 4279int 4280main (void) 4281{ 4282 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287if ac_fn_c_try_compile "$LINENO" 4288then : 4289 4290else $as_nop 4291 ac_c_werror_flag=$ac_save_c_werror_flag 4292 CFLAGS="-g" 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294/* end confdefs.h. */ 4295 4296int 4297main (void) 4298{ 4299 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304if ac_fn_c_try_compile "$LINENO" 4305then : 4306 ac_cv_prog_cc_g=yes 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4309fi 4310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4311fi 4312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4313 ac_c_werror_flag=$ac_save_c_werror_flag 4314fi 4315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4316printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4317if test $ac_test_CFLAGS; then 4318 CFLAGS=$ac_save_CFLAGS 4319elif test $ac_cv_prog_cc_g = yes; then 4320 if test "$GCC" = yes; then 4321 CFLAGS="-g -O2" 4322 else 4323 CFLAGS="-g" 4324 fi 4325else 4326 if test "$GCC" = yes; then 4327 CFLAGS="-O2" 4328 else 4329 CFLAGS= 4330 fi 4331fi 4332ac_prog_cc_stdc=no 4333if test x$ac_prog_cc_stdc = xno 4334then : 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4336printf %s "checking for $CC option to enable C11 features... " >&6; } 4337if test ${ac_cv_prog_cc_c11+y} 4338then : 4339 printf %s "(cached) " >&6 4340else $as_nop 4341 ac_cv_prog_cc_c11=no 4342ac_save_CC=$CC 4343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345$ac_c_conftest_c11_program 4346_ACEOF 4347for ac_arg in '' -std=gnu11 4348do 4349 CC="$ac_save_CC $ac_arg" 4350 if ac_fn_c_try_compile "$LINENO" 4351then : 4352 ac_cv_prog_cc_c11=$ac_arg 4353fi 4354rm -f core conftest.err conftest.$ac_objext conftest.beam 4355 test "x$ac_cv_prog_cc_c11" != "xno" && break 4356done 4357rm -f conftest.$ac_ext 4358CC=$ac_save_CC 4359fi 4360 4361if test "x$ac_cv_prog_cc_c11" = xno 4362then : 4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4364printf "%s\n" "unsupported" >&6; } 4365else $as_nop 4366 if test "x$ac_cv_prog_cc_c11" = x 4367then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4369printf "%s\n" "none needed" >&6; } 4370else $as_nop 4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4372printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4373 CC="$CC $ac_cv_prog_cc_c11" 4374fi 4375 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4376 ac_prog_cc_stdc=c11 4377fi 4378fi 4379if test x$ac_prog_cc_stdc = xno 4380then : 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4382printf %s "checking for $CC option to enable C99 features... " >&6; } 4383if test ${ac_cv_prog_cc_c99+y} 4384then : 4385 printf %s "(cached) " >&6 4386else $as_nop 4387 ac_cv_prog_cc_c99=no 4388ac_save_CC=$CC 4389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391$ac_c_conftest_c99_program 4392_ACEOF 4393for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4394do 4395 CC="$ac_save_CC $ac_arg" 4396 if ac_fn_c_try_compile "$LINENO" 4397then : 4398 ac_cv_prog_cc_c99=$ac_arg 4399fi 4400rm -f core conftest.err conftest.$ac_objext conftest.beam 4401 test "x$ac_cv_prog_cc_c99" != "xno" && break 4402done 4403rm -f conftest.$ac_ext 4404CC=$ac_save_CC 4405fi 4406 4407if test "x$ac_cv_prog_cc_c99" = xno 4408then : 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4410printf "%s\n" "unsupported" >&6; } 4411else $as_nop 4412 if test "x$ac_cv_prog_cc_c99" = x 4413then : 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4415printf "%s\n" "none needed" >&6; } 4416else $as_nop 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4418printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4419 CC="$CC $ac_cv_prog_cc_c99" 4420fi 4421 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4422 ac_prog_cc_stdc=c99 4423fi 4424fi 4425if test x$ac_prog_cc_stdc = xno 4426then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4428printf %s "checking for $CC option to enable C89 features... " >&6; } 4429if test ${ac_cv_prog_cc_c89+y} 4430then : 4431 printf %s "(cached) " >&6 4432else $as_nop 4433 ac_cv_prog_cc_c89=no 4434ac_save_CC=$CC 4435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437$ac_c_conftest_c89_program 4438_ACEOF 4439for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4440do 4441 CC="$ac_save_CC $ac_arg" 4442 if ac_fn_c_try_compile "$LINENO" 4443then : 4444 ac_cv_prog_cc_c89=$ac_arg 4445fi 4446rm -f core conftest.err conftest.$ac_objext conftest.beam 4447 test "x$ac_cv_prog_cc_c89" != "xno" && break 4448done 4449rm -f conftest.$ac_ext 4450CC=$ac_save_CC 4451fi 4452 4453if test "x$ac_cv_prog_cc_c89" = xno 4454then : 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4456printf "%s\n" "unsupported" >&6; } 4457else $as_nop 4458 if test "x$ac_cv_prog_cc_c89" = x 4459then : 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4461printf "%s\n" "none needed" >&6; } 4462else $as_nop 4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4464printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4465 CC="$CC $ac_cv_prog_cc_c89" 4466fi 4467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4468 ac_prog_cc_stdc=c89 4469fi 4470fi 4471 4472ac_ext=c 4473ac_cpp='$CPP $CPPFLAGS' 4474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4476ac_compiler_gnu=$ac_cv_c_compiler_gnu 4477 4478 4479 ac_ext=c 4480ac_cpp='$CPP $CPPFLAGS' 4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4483ac_compiler_gnu=$ac_cv_c_compiler_gnu 4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4485printf %s "checking whether $CC understands -c and -o together... " >&6; } 4486if test ${am_cv_prog_cc_c_o+y} 4487then : 4488 printf %s "(cached) " >&6 4489else $as_nop 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492 4493int 4494main (void) 4495{ 4496 4497 ; 4498 return 0; 4499} 4500_ACEOF 4501 # Make sure it works both with $CC and with simple cc. 4502 # Following AC_PROG_CC_C_O, we do the test twice because some 4503 # compilers refuse to overwrite an existing .o file with -o, 4504 # though they will create one. 4505 am_cv_prog_cc_c_o=yes 4506 for am_i in 1 2; do 4507 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4508 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4509 ac_status=$? 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); } \ 4512 && test -f conftest2.$ac_objext; then 4513 : OK 4514 else 4515 am_cv_prog_cc_c_o=no 4516 break 4517 fi 4518 done 4519 rm -f core conftest* 4520 unset am_i 4521fi 4522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4523printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4524if test "$am_cv_prog_cc_c_o" != yes; then 4525 # Losing compiler, so override with the script. 4526 # FIXME: It is wrong to rewrite CC. 4527 # But if we don't then we get into trouble of one sort or another. 4528 # A longer-term fix would be to have automake use am__CC in this case, 4529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4530 CC="$am_aux_dir/compile $CC" 4531fi 4532ac_ext=c 4533ac_cpp='$CPP $CPPFLAGS' 4534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4536ac_compiler_gnu=$ac_cv_c_compiler_gnu 4537 4538 4539depcc="$CC" am_compiler_list= 4540 4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4542printf %s "checking dependency style of $depcc... " >&6; } 4543if test ${am_cv_CC_dependencies_compiler_type+y} 4544then : 4545 printf %s "(cached) " >&6 4546else $as_nop 4547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4548 # We make a subdir and do the tests there. Otherwise we can end up 4549 # making bogus files that we don't know about and never remove. For 4550 # instance it was reported that on HP-UX the gcc test will end up 4551 # making a dummy file named 'D' -- because '-MD' means "put the output 4552 # in D". 4553 rm -rf conftest.dir 4554 mkdir conftest.dir 4555 # Copy depcomp to subdir because otherwise we won't find it if we're 4556 # using a relative directory. 4557 cp "$am_depcomp" conftest.dir 4558 cd conftest.dir 4559 # We will build objects and dependencies in a subdirectory because 4560 # it helps to detect inapplicable dependency modes. For instance 4561 # both Tru64's cc and ICC support -MD to output dependencies as a 4562 # side effect of compilation, but ICC will put the dependencies in 4563 # the current directory while Tru64 will put them in the object 4564 # directory. 4565 mkdir sub 4566 4567 am_cv_CC_dependencies_compiler_type=none 4568 if test "$am_compiler_list" = ""; then 4569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4570 fi 4571 am__universal=false 4572 case " $depcc " in #( 4573 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4574 esac 4575 4576 for depmode in $am_compiler_list; do 4577 # Setup a source with many dependencies, because some compilers 4578 # like to wrap large dependency lists on column 80 (with \), and 4579 # we should not choose a depcomp mode which is confused by this. 4580 # 4581 # We need to recreate these files for each test, as the compiler may 4582 # overwrite some of them when testing with obscure command lines. 4583 # This happens at least with the AIX C compiler. 4584 : > sub/conftest.c 4585 for i in 1 2 3 4 5 6; do 4586 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4587 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4588 # Solaris 10 /bin/sh. 4589 echo '/* dummy */' > sub/conftst$i.h 4590 done 4591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4592 4593 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4594 # mode. It turns out that the SunPro C++ compiler does not properly 4595 # handle '-M -o', and we need to detect this. Also, some Intel 4596 # versions had trouble with output in subdirs. 4597 am__obj=sub/conftest.${OBJEXT-o} 4598 am__minus_obj="-o $am__obj" 4599 case $depmode in 4600 gcc) 4601 # This depmode causes a compiler race in universal mode. 4602 test "$am__universal" = false || continue 4603 ;; 4604 nosideeffect) 4605 # After this tag, mechanisms are not by side-effect, so they'll 4606 # only be used when explicitly requested. 4607 if test "x$enable_dependency_tracking" = xyes; then 4608 continue 4609 else 4610 break 4611 fi 4612 ;; 4613 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4614 # This compiler won't grok '-c -o', but also, the minuso test has 4615 # not run yet. These depmodes are late enough in the game, and 4616 # so weak that their functioning should not be impacted. 4617 am__obj=conftest.${OBJEXT-o} 4618 am__minus_obj= 4619 ;; 4620 none) break ;; 4621 esac 4622 if depmode=$depmode \ 4623 source=sub/conftest.c object=$am__obj \ 4624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4626 >/dev/null 2>conftest.err && 4627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4631 # icc doesn't choke on unknown options, it will just issue warnings 4632 # or remarks (even with -Werror). So we grep stderr for any message 4633 # that says an option was ignored or not supported. 4634 # When given -MP, icc 7.0 and 7.1 complain thusly: 4635 # icc: Command line warning: ignoring option '-M'; no argument required 4636 # The diagnosis changed in icc 8.0: 4637 # icc: Command line remark: option '-MP' not supported 4638 if (grep 'ignoring option' conftest.err || 4639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4640 am_cv_CC_dependencies_compiler_type=$depmode 4641 break 4642 fi 4643 fi 4644 done 4645 4646 cd .. 4647 rm -rf conftest.dir 4648else 4649 am_cv_CC_dependencies_compiler_type=none 4650fi 4651 4652fi 4653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4654printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4655CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4656 4657 if 4658 test "x$enable_dependency_tracking" != xno \ 4659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4660 am__fastdepCC_TRUE= 4661 am__fastdepCC_FALSE='#' 4662else 4663 am__fastdepCC_TRUE='#' 4664 am__fastdepCC_FALSE= 4665fi 4666 4667 4668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4669printf %s "checking for a sed that does not truncate output... " >&6; } 4670if test ${ac_cv_path_SED+y} 4671then : 4672 printf %s "(cached) " >&6 4673else $as_nop 4674 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4675 for ac_i in 1 2 3 4 5 6 7; do 4676 ac_script="$ac_script$as_nl$ac_script" 4677 done 4678 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4679 { ac_script=; unset ac_script;} 4680 if test -z "$SED"; then 4681 ac_path_SED_found=false 4682 # Loop through the user's path and test for each of PROGNAME-LIST 4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4684for as_dir in $PATH 4685do 4686 IFS=$as_save_IFS 4687 case $as_dir in #((( 4688 '') as_dir=./ ;; 4689 */) ;; 4690 *) as_dir=$as_dir/ ;; 4691 esac 4692 for ac_prog in sed gsed 4693 do 4694 for ac_exec_ext in '' $ac_executable_extensions; do 4695 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4696 as_fn_executable_p "$ac_path_SED" || continue 4697# Check for GNU ac_path_SED and select it if it is found. 4698 # Check for GNU $ac_path_SED 4699case `"$ac_path_SED" --version 2>&1` in 4700*GNU*) 4701 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4702*) 4703 ac_count=0 4704 printf %s 0123456789 >"conftest.in" 4705 while : 4706 do 4707 cat "conftest.in" "conftest.in" >"conftest.tmp" 4708 mv "conftest.tmp" "conftest.in" 4709 cp "conftest.in" "conftest.nl" 4710 printf "%s\n" '' >> "conftest.nl" 4711 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4713 as_fn_arith $ac_count + 1 && ac_count=$as_val 4714 if test $ac_count -gt ${ac_path_SED_max-0}; then 4715 # Best one so far, save it but keep looking for a better one 4716 ac_cv_path_SED="$ac_path_SED" 4717 ac_path_SED_max=$ac_count 4718 fi 4719 # 10*(2^10) chars as input seems more than enough 4720 test $ac_count -gt 10 && break 4721 done 4722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4723esac 4724 4725 $ac_path_SED_found && break 3 4726 done 4727 done 4728 done 4729IFS=$as_save_IFS 4730 if test -z "$ac_cv_path_SED"; then 4731 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4732 fi 4733else 4734 ac_cv_path_SED=$SED 4735fi 4736 4737fi 4738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4739printf "%s\n" "$ac_cv_path_SED" >&6; } 4740 SED="$ac_cv_path_SED" 4741 rm -f conftest.sed 4742 4743test -z "$SED" && SED=sed 4744Xsed="$SED -e 1s/^X//" 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4757printf %s "checking for grep that handles long lines and -e... " >&6; } 4758if test ${ac_cv_path_GREP+y} 4759then : 4760 printf %s "(cached) " >&6 4761else $as_nop 4762 if test -z "$GREP"; then 4763 ac_path_GREP_found=false 4764 # Loop through the user's path and test for each of PROGNAME-LIST 4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4767do 4768 IFS=$as_save_IFS 4769 case $as_dir in #((( 4770 '') as_dir=./ ;; 4771 */) ;; 4772 *) as_dir=$as_dir/ ;; 4773 esac 4774 for ac_prog in grep ggrep 4775 do 4776 for ac_exec_ext in '' $ac_executable_extensions; do 4777 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4778 as_fn_executable_p "$ac_path_GREP" || continue 4779# Check for GNU ac_path_GREP and select it if it is found. 4780 # Check for GNU $ac_path_GREP 4781case `"$ac_path_GREP" --version 2>&1` in 4782*GNU*) 4783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4784*) 4785 ac_count=0 4786 printf %s 0123456789 >"conftest.in" 4787 while : 4788 do 4789 cat "conftest.in" "conftest.in" >"conftest.tmp" 4790 mv "conftest.tmp" "conftest.in" 4791 cp "conftest.in" "conftest.nl" 4792 printf "%s\n" 'GREP' >> "conftest.nl" 4793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4795 as_fn_arith $ac_count + 1 && ac_count=$as_val 4796 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4797 # Best one so far, save it but keep looking for a better one 4798 ac_cv_path_GREP="$ac_path_GREP" 4799 ac_path_GREP_max=$ac_count 4800 fi 4801 # 10*(2^10) chars as input seems more than enough 4802 test $ac_count -gt 10 && break 4803 done 4804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4805esac 4806 4807 $ac_path_GREP_found && break 3 4808 done 4809 done 4810 done 4811IFS=$as_save_IFS 4812 if test -z "$ac_cv_path_GREP"; then 4813 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4814 fi 4815else 4816 ac_cv_path_GREP=$GREP 4817fi 4818 4819fi 4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4821printf "%s\n" "$ac_cv_path_GREP" >&6; } 4822 GREP="$ac_cv_path_GREP" 4823 4824 4825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4826printf %s "checking for egrep... " >&6; } 4827if test ${ac_cv_path_EGREP+y} 4828then : 4829 printf %s "(cached) " >&6 4830else $as_nop 4831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4832 then ac_cv_path_EGREP="$GREP -E" 4833 else 4834 if test -z "$EGREP"; then 4835 ac_path_EGREP_found=false 4836 # Loop through the user's path and test for each of PROGNAME-LIST 4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4839do 4840 IFS=$as_save_IFS 4841 case $as_dir in #((( 4842 '') as_dir=./ ;; 4843 */) ;; 4844 *) as_dir=$as_dir/ ;; 4845 esac 4846 for ac_prog in egrep 4847 do 4848 for ac_exec_ext in '' $ac_executable_extensions; do 4849 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4850 as_fn_executable_p "$ac_path_EGREP" || continue 4851# Check for GNU ac_path_EGREP and select it if it is found. 4852 # Check for GNU $ac_path_EGREP 4853case `"$ac_path_EGREP" --version 2>&1` in 4854*GNU*) 4855 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4856*) 4857 ac_count=0 4858 printf %s 0123456789 >"conftest.in" 4859 while : 4860 do 4861 cat "conftest.in" "conftest.in" >"conftest.tmp" 4862 mv "conftest.tmp" "conftest.in" 4863 cp "conftest.in" "conftest.nl" 4864 printf "%s\n" 'EGREP' >> "conftest.nl" 4865 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4867 as_fn_arith $ac_count + 1 && ac_count=$as_val 4868 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4869 # Best one so far, save it but keep looking for a better one 4870 ac_cv_path_EGREP="$ac_path_EGREP" 4871 ac_path_EGREP_max=$ac_count 4872 fi 4873 # 10*(2^10) chars as input seems more than enough 4874 test $ac_count -gt 10 && break 4875 done 4876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4877esac 4878 4879 $ac_path_EGREP_found && break 3 4880 done 4881 done 4882 done 4883IFS=$as_save_IFS 4884 if test -z "$ac_cv_path_EGREP"; then 4885 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4886 fi 4887else 4888 ac_cv_path_EGREP=$EGREP 4889fi 4890 4891 fi 4892fi 4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4894printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4895 EGREP="$ac_cv_path_EGREP" 4896 4897 4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4899printf %s "checking for fgrep... " >&6; } 4900if test ${ac_cv_path_FGREP+y} 4901then : 4902 printf %s "(cached) " >&6 4903else $as_nop 4904 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4905 then ac_cv_path_FGREP="$GREP -F" 4906 else 4907 if test -z "$FGREP"; then 4908 ac_path_FGREP_found=false 4909 # Loop through the user's path and test for each of PROGNAME-LIST 4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4911for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4912do 4913 IFS=$as_save_IFS 4914 case $as_dir in #((( 4915 '') as_dir=./ ;; 4916 */) ;; 4917 *) as_dir=$as_dir/ ;; 4918 esac 4919 for ac_prog in fgrep 4920 do 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4923 as_fn_executable_p "$ac_path_FGREP" || continue 4924# Check for GNU ac_path_FGREP and select it if it is found. 4925 # Check for GNU $ac_path_FGREP 4926case `"$ac_path_FGREP" --version 2>&1` in 4927*GNU*) 4928 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4929*) 4930 ac_count=0 4931 printf %s 0123456789 >"conftest.in" 4932 while : 4933 do 4934 cat "conftest.in" "conftest.in" >"conftest.tmp" 4935 mv "conftest.tmp" "conftest.in" 4936 cp "conftest.in" "conftest.nl" 4937 printf "%s\n" 'FGREP' >> "conftest.nl" 4938 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4940 as_fn_arith $ac_count + 1 && ac_count=$as_val 4941 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4942 # Best one so far, save it but keep looking for a better one 4943 ac_cv_path_FGREP="$ac_path_FGREP" 4944 ac_path_FGREP_max=$ac_count 4945 fi 4946 # 10*(2^10) chars as input seems more than enough 4947 test $ac_count -gt 10 && break 4948 done 4949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4950esac 4951 4952 $ac_path_FGREP_found && break 3 4953 done 4954 done 4955 done 4956IFS=$as_save_IFS 4957 if test -z "$ac_cv_path_FGREP"; then 4958 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4959 fi 4960else 4961 ac_cv_path_FGREP=$FGREP 4962fi 4963 4964 fi 4965fi 4966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4967printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4968 FGREP="$ac_cv_path_FGREP" 4969 4970 4971test -z "$GREP" && GREP=grep 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991# Check whether --with-gnu-ld was given. 4992if test ${with_gnu_ld+y} 4993then : 4994 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4995else $as_nop 4996 with_gnu_ld=no 4997fi 4998 4999ac_prog=ld 5000if test yes = "$GCC"; then 5001 # Check if gcc -print-prog-name=ld gives a path. 5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5003printf %s "checking for ld used by $CC... " >&6; } 5004 case $host in 5005 *-*-mingw*) 5006 # gcc leaves a trailing carriage return, which upsets mingw 5007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5008 *) 5009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5010 esac 5011 case $ac_prog in 5012 # Accept absolute paths. 5013 [\\/]* | ?:[\\/]*) 5014 re_direlt='/[^/][^/]*/\.\./' 5015 # Canonicalize the pathname of ld 5016 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5017 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5018 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5019 done 5020 test -z "$LD" && LD=$ac_prog 5021 ;; 5022 "") 5023 # If it fails, then pretend we aren't using GCC. 5024 ac_prog=ld 5025 ;; 5026 *) 5027 # If it is relative, then search for the first ld in PATH. 5028 with_gnu_ld=unknown 5029 ;; 5030 esac 5031elif test yes = "$with_gnu_ld"; then 5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5033printf %s "checking for GNU ld... " >&6; } 5034else 5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5036printf %s "checking for non-GNU ld... " >&6; } 5037fi 5038if test ${lt_cv_path_LD+y} 5039then : 5040 printf %s "(cached) " >&6 5041else $as_nop 5042 if test -z "$LD"; then 5043 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5044 for ac_dir in $PATH; do 5045 IFS=$lt_save_ifs 5046 test -z "$ac_dir" && ac_dir=. 5047 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5048 lt_cv_path_LD=$ac_dir/$ac_prog 5049 # Check to see if the program is GNU ld. I'd rather use --version, 5050 # but apparently some variants of GNU ld only accept -v. 5051 # Break only if it was the GNU/non-GNU ld that we prefer. 5052 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5053 *GNU* | *'with BFD'*) 5054 test no != "$with_gnu_ld" && break 5055 ;; 5056 *) 5057 test yes != "$with_gnu_ld" && break 5058 ;; 5059 esac 5060 fi 5061 done 5062 IFS=$lt_save_ifs 5063else 5064 lt_cv_path_LD=$LD # Let the user override the test with a path. 5065fi 5066fi 5067 5068LD=$lt_cv_path_LD 5069if test -n "$LD"; then 5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5071printf "%s\n" "$LD" >&6; } 5072else 5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5074printf "%s\n" "no" >&6; } 5075fi 5076test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5078printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5079if test ${lt_cv_prog_gnu_ld+y} 5080then : 5081 printf %s "(cached) " >&6 5082else $as_nop 5083 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5084case `$LD -v 2>&1 </dev/null` in 5085*GNU* | *'with BFD'*) 5086 lt_cv_prog_gnu_ld=yes 5087 ;; 5088*) 5089 lt_cv_prog_gnu_ld=no 5090 ;; 5091esac 5092fi 5093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5094printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5095with_gnu_ld=$lt_cv_prog_gnu_ld 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5106printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5107if test ${lt_cv_path_NM+y} 5108then : 5109 printf %s "(cached) " >&6 5110else $as_nop 5111 if test -n "$NM"; then 5112 # Let the user override the test. 5113 lt_cv_path_NM=$NM 5114else 5115 lt_nm_to_check=${ac_tool_prefix}nm 5116 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5117 lt_nm_to_check="$lt_nm_to_check nm" 5118 fi 5119 for lt_tmp_nm in $lt_nm_to_check; do 5120 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5121 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5122 IFS=$lt_save_ifs 5123 test -z "$ac_dir" && ac_dir=. 5124 tmp_nm=$ac_dir/$lt_tmp_nm 5125 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5126 # Check to see if the nm accepts a BSD-compat flag. 5127 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5128 # nm: unknown option "B" ignored 5129 # Tru64's nm complains that /dev/null is an invalid object file 5130 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5131 case $build_os in 5132 mingw*) lt_bad_file=conftest.nm/nofile ;; 5133 *) lt_bad_file=/dev/null ;; 5134 esac 5135 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5136 *$lt_bad_file* | *'Invalid file or object type'*) 5137 lt_cv_path_NM="$tmp_nm -B" 5138 break 2 5139 ;; 5140 *) 5141 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5142 */dev/null*) 5143 lt_cv_path_NM="$tmp_nm -p" 5144 break 2 5145 ;; 5146 *) 5147 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5148 continue # so that we can try to find one that supports BSD flags 5149 ;; 5150 esac 5151 ;; 5152 esac 5153 fi 5154 done 5155 IFS=$lt_save_ifs 5156 done 5157 : ${lt_cv_path_NM=no} 5158fi 5159fi 5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5161printf "%s\n" "$lt_cv_path_NM" >&6; } 5162if test no != "$lt_cv_path_NM"; then 5163 NM=$lt_cv_path_NM 5164else 5165 # Didn't find any BSD compatible name lister, look for dumpbin. 5166 if test -n "$DUMPBIN"; then : 5167 # Let the user override the test. 5168 else 5169 if test -n "$ac_tool_prefix"; then 5170 for ac_prog in dumpbin "link -dump" 5171 do 5172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5173set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5175printf %s "checking for $ac_word... " >&6; } 5176if test ${ac_cv_prog_DUMPBIN+y} 5177then : 5178 printf %s "(cached) " >&6 5179else $as_nop 5180 if test -n "$DUMPBIN"; then 5181 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5182else 5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5184for as_dir in $PATH 5185do 5186 IFS=$as_save_IFS 5187 case $as_dir in #((( 5188 '') as_dir=./ ;; 5189 */) ;; 5190 *) as_dir=$as_dir/ ;; 5191 esac 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5194 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5196 break 2 5197 fi 5198done 5199 done 5200IFS=$as_save_IFS 5201 5202fi 5203fi 5204DUMPBIN=$ac_cv_prog_DUMPBIN 5205if test -n "$DUMPBIN"; then 5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5207printf "%s\n" "$DUMPBIN" >&6; } 5208else 5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5210printf "%s\n" "no" >&6; } 5211fi 5212 5213 5214 test -n "$DUMPBIN" && break 5215 done 5216fi 5217if test -z "$DUMPBIN"; then 5218 ac_ct_DUMPBIN=$DUMPBIN 5219 for ac_prog in dumpbin "link -dump" 5220do 5221 # Extract the first word of "$ac_prog", so it can be a program name with args. 5222set dummy $ac_prog; ac_word=$2 5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5224printf %s "checking for $ac_word... " >&6; } 5225if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5226then : 5227 printf %s "(cached) " >&6 5228else $as_nop 5229 if test -n "$ac_ct_DUMPBIN"; then 5230 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5231else 5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233for as_dir in $PATH 5234do 5235 IFS=$as_save_IFS 5236 case $as_dir in #((( 5237 '') as_dir=./ ;; 5238 */) ;; 5239 *) as_dir=$as_dir/ ;; 5240 esac 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248 done 5249IFS=$as_save_IFS 5250 5251fi 5252fi 5253ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5254if test -n "$ac_ct_DUMPBIN"; then 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5256printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5257else 5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259printf "%s\n" "no" >&6; } 5260fi 5261 5262 5263 test -n "$ac_ct_DUMPBIN" && break 5264done 5265 5266 if test "x$ac_ct_DUMPBIN" = x; then 5267 DUMPBIN=":" 5268 else 5269 case $cross_compiling:$ac_tool_warned in 5270yes:) 5271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5272printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5273ac_tool_warned=yes ;; 5274esac 5275 DUMPBIN=$ac_ct_DUMPBIN 5276 fi 5277fi 5278 5279 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5280 *COFF*) 5281 DUMPBIN="$DUMPBIN -symbols -headers" 5282 ;; 5283 *) 5284 DUMPBIN=: 5285 ;; 5286 esac 5287 fi 5288 5289 if test : != "$DUMPBIN"; then 5290 NM=$DUMPBIN 5291 fi 5292fi 5293test -z "$NM" && NM=nm 5294 5295 5296 5297 5298 5299 5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5301printf %s "checking the name lister ($NM) interface... " >&6; } 5302if test ${lt_cv_nm_interface+y} 5303then : 5304 printf %s "(cached) " >&6 5305else $as_nop 5306 lt_cv_nm_interface="BSD nm" 5307 echo "int some_variable = 0;" > conftest.$ac_ext 5308 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5309 (eval "$ac_compile" 2>conftest.err) 5310 cat conftest.err >&5 5311 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5312 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5313 cat conftest.err >&5 5314 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5315 cat conftest.out >&5 5316 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5317 lt_cv_nm_interface="MS dumpbin" 5318 fi 5319 rm -f conftest* 5320fi 5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5322printf "%s\n" "$lt_cv_nm_interface" >&6; } 5323 5324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5325printf %s "checking whether ln -s works... " >&6; } 5326LN_S=$as_ln_s 5327if test "$LN_S" = "ln -s"; then 5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5329printf "%s\n" "yes" >&6; } 5330else 5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5332printf "%s\n" "no, using $LN_S" >&6; } 5333fi 5334 5335# find the maximum length of command line arguments 5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5337printf %s "checking the maximum length of command line arguments... " >&6; } 5338if test ${lt_cv_sys_max_cmd_len+y} 5339then : 5340 printf %s "(cached) " >&6 5341else $as_nop 5342 i=0 5343 teststring=ABCD 5344 5345 case $build_os in 5346 msdosdjgpp*) 5347 # On DJGPP, this test can blow up pretty badly due to problems in libc 5348 # (any single argument exceeding 2000 bytes causes a buffer overrun 5349 # during glob expansion). Even if it were fixed, the result of this 5350 # check would be larger than it should be. 5351 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5352 ;; 5353 5354 gnu*) 5355 # Under GNU Hurd, this test is not required because there is 5356 # no limit to the length of command line arguments. 5357 # Libtool will interpret -1 as no limit whatsoever 5358 lt_cv_sys_max_cmd_len=-1; 5359 ;; 5360 5361 cygwin* | mingw* | cegcc*) 5362 # On Win9x/ME, this test blows up -- it succeeds, but takes 5363 # about 5 minutes as the teststring grows exponentially. 5364 # Worse, since 9x/ME are not pre-emptively multitasking, 5365 # you end up with a "frozen" computer, even though with patience 5366 # the test eventually succeeds (with a max line length of 256k). 5367 # Instead, let's just punt: use the minimum linelength reported by 5368 # all of the supported platforms: 8192 (on NT/2K/XP). 5369 lt_cv_sys_max_cmd_len=8192; 5370 ;; 5371 5372 mint*) 5373 # On MiNT this can take a long time and run out of memory. 5374 lt_cv_sys_max_cmd_len=8192; 5375 ;; 5376 5377 amigaos*) 5378 # On AmigaOS with pdksh, this test takes hours, literally. 5379 # So we just punt and use a minimum line length of 8192. 5380 lt_cv_sys_max_cmd_len=8192; 5381 ;; 5382 5383 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5384 # This has been around since 386BSD, at least. Likely further. 5385 if test -x /sbin/sysctl; then 5386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5387 elif test -x /usr/sbin/sysctl; then 5388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5389 else 5390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5391 fi 5392 # And add a safety zone 5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5395 ;; 5396 5397 interix*) 5398 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5399 lt_cv_sys_max_cmd_len=196608 5400 ;; 5401 5402 os2*) 5403 # The test takes a long time on OS/2. 5404 lt_cv_sys_max_cmd_len=8192 5405 ;; 5406 5407 osf*) 5408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5410 # nice to cause kernel panics so lets avoid the loop below. 5411 # First set a reasonable default. 5412 lt_cv_sys_max_cmd_len=16384 5413 # 5414 if test -x /sbin/sysconfig; then 5415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5416 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5417 esac 5418 fi 5419 ;; 5420 sco3.2v5*) 5421 lt_cv_sys_max_cmd_len=102400 5422 ;; 5423 sysv5* | sco5v6* | sysv4.2uw2*) 5424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5425 if test -n "$kargmax"; then 5426 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5427 else 5428 lt_cv_sys_max_cmd_len=32768 5429 fi 5430 ;; 5431 *) 5432 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5433 if test -n "$lt_cv_sys_max_cmd_len" && \ 5434 test undefined != "$lt_cv_sys_max_cmd_len"; then 5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5437 else 5438 # Make teststring a little bigger before we do anything with it. 5439 # a 1K string should be a reasonable start. 5440 for i in 1 2 3 4 5 6 7 8; do 5441 teststring=$teststring$teststring 5442 done 5443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5444 # If test is not a shell built-in, we'll probably end up computing a 5445 # maximum length that is only half of the actual maximum length, but 5446 # we can't tell. 5447 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5448 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5449 test 17 != "$i" # 1/2 MB should be enough 5450 do 5451 i=`expr $i + 1` 5452 teststring=$teststring$teststring 5453 done 5454 # Only check the string length outside the loop. 5455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5456 teststring= 5457 # Add a significant safety factor because C++ compilers can tack on 5458 # massive amounts of additional arguments before passing them to the 5459 # linker. It appears as though 1/2 is a usable value. 5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5461 fi 5462 ;; 5463 esac 5464 5465fi 5466 5467if test -n "$lt_cv_sys_max_cmd_len"; then 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5469printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5470else 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5472printf "%s\n" "none" >&6; } 5473fi 5474max_cmd_len=$lt_cv_sys_max_cmd_len 5475 5476 5477 5478 5479 5480 5481: ${CP="cp -f"} 5482: ${MV="mv -f"} 5483: ${RM="rm -f"} 5484 5485if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5486 lt_unset=unset 5487else 5488 lt_unset=false 5489fi 5490 5491 5492 5493 5494 5495# test EBCDIC or ASCII 5496case `echo X|tr X '\101'` in 5497 A) # ASCII based system 5498 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5499 lt_SP2NL='tr \040 \012' 5500 lt_NL2SP='tr \015\012 \040\040' 5501 ;; 5502 *) # EBCDIC based system 5503 lt_SP2NL='tr \100 \n' 5504 lt_NL2SP='tr \r\n \100\100' 5505 ;; 5506esac 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5517printf %s "checking how to convert $build file names to $host format... " >&6; } 5518if test ${lt_cv_to_host_file_cmd+y} 5519then : 5520 printf %s "(cached) " >&6 5521else $as_nop 5522 case $host in 5523 *-*-mingw* ) 5524 case $build in 5525 *-*-mingw* ) # actually msys 5526 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5527 ;; 5528 *-*-cygwin* ) 5529 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5530 ;; 5531 * ) # otherwise, assume *nix 5532 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5533 ;; 5534 esac 5535 ;; 5536 *-*-cygwin* ) 5537 case $build in 5538 *-*-mingw* ) # actually msys 5539 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5540 ;; 5541 *-*-cygwin* ) 5542 lt_cv_to_host_file_cmd=func_convert_file_noop 5543 ;; 5544 * ) # otherwise, assume *nix 5545 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5546 ;; 5547 esac 5548 ;; 5549 * ) # unhandled hosts (and "normal" native builds) 5550 lt_cv_to_host_file_cmd=func_convert_file_noop 5551 ;; 5552esac 5553 5554fi 5555 5556to_host_file_cmd=$lt_cv_to_host_file_cmd 5557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5558printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5559 5560 5561 5562 5563 5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5565printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5566if test ${lt_cv_to_tool_file_cmd+y} 5567then : 5568 printf %s "(cached) " >&6 5569else $as_nop 5570 #assume ordinary cross tools, or native build. 5571lt_cv_to_tool_file_cmd=func_convert_file_noop 5572case $host in 5573 *-*-mingw* ) 5574 case $build in 5575 *-*-mingw* ) # actually msys 5576 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5577 ;; 5578 esac 5579 ;; 5580esac 5581 5582fi 5583 5584to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5586printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5587 5588 5589 5590 5591 5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5593printf %s "checking for $LD option to reload object files... " >&6; } 5594if test ${lt_cv_ld_reload_flag+y} 5595then : 5596 printf %s "(cached) " >&6 5597else $as_nop 5598 lt_cv_ld_reload_flag='-r' 5599fi 5600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5601printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5602reload_flag=$lt_cv_ld_reload_flag 5603case $reload_flag in 5604"" | " "*) ;; 5605*) reload_flag=" $reload_flag" ;; 5606esac 5607reload_cmds='$LD$reload_flag -o $output$reload_objs' 5608case $host_os in 5609 cygwin* | mingw* | pw32* | cegcc*) 5610 if test yes != "$GCC"; then 5611 reload_cmds=false 5612 fi 5613 ;; 5614 darwin*) 5615 if test yes = "$GCC"; then 5616 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5617 else 5618 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5619 fi 5620 ;; 5621esac 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631if test -n "$ac_tool_prefix"; then 5632 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5633set dummy ${ac_tool_prefix}file; ac_word=$2 5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635printf %s "checking for $ac_word... " >&6; } 5636if test ${ac_cv_prog_FILECMD+y} 5637then : 5638 printf %s "(cached) " >&6 5639else $as_nop 5640 if test -n "$FILECMD"; then 5641 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5642else 5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5644for as_dir in $PATH 5645do 5646 IFS=$as_save_IFS 5647 case $as_dir in #((( 5648 '') as_dir=./ ;; 5649 */) ;; 5650 *) as_dir=$as_dir/ ;; 5651 esac 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5654 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662fi 5663fi 5664FILECMD=$ac_cv_prog_FILECMD 5665if test -n "$FILECMD"; then 5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5667printf "%s\n" "$FILECMD" >&6; } 5668else 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670printf "%s\n" "no" >&6; } 5671fi 5672 5673 5674fi 5675if test -z "$ac_cv_prog_FILECMD"; then 5676 ac_ct_FILECMD=$FILECMD 5677 # Extract the first word of "file", so it can be a program name with args. 5678set dummy file; ac_word=$2 5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680printf %s "checking for $ac_word... " >&6; } 5681if test ${ac_cv_prog_ac_ct_FILECMD+y} 5682then : 5683 printf %s "(cached) " >&6 5684else $as_nop 5685 if test -n "$ac_ct_FILECMD"; then 5686 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5687else 5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689for as_dir in $PATH 5690do 5691 IFS=$as_save_IFS 5692 case $as_dir in #((( 5693 '') as_dir=./ ;; 5694 */) ;; 5695 *) as_dir=$as_dir/ ;; 5696 esac 5697 for ac_exec_ext in '' $ac_executable_extensions; do 5698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5699 ac_cv_prog_ac_ct_FILECMD="file" 5700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5701 break 2 5702 fi 5703done 5704 done 5705IFS=$as_save_IFS 5706 5707fi 5708fi 5709ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5710if test -n "$ac_ct_FILECMD"; then 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5712printf "%s\n" "$ac_ct_FILECMD" >&6; } 5713else 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5715printf "%s\n" "no" >&6; } 5716fi 5717 5718 if test "x$ac_ct_FILECMD" = x; then 5719 FILECMD=":" 5720 else 5721 case $cross_compiling:$ac_tool_warned in 5722yes:) 5723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5724printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5725ac_tool_warned=yes ;; 5726esac 5727 FILECMD=$ac_ct_FILECMD 5728 fi 5729else 5730 FILECMD="$ac_cv_prog_FILECMD" 5731fi 5732 5733 5734 5735 5736 5737 5738 5739if test -n "$ac_tool_prefix"; then 5740 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5741set dummy ${ac_tool_prefix}objdump; ac_word=$2 5742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743printf %s "checking for $ac_word... " >&6; } 5744if test ${ac_cv_prog_OBJDUMP+y} 5745then : 5746 printf %s "(cached) " >&6 5747else $as_nop 5748 if test -n "$OBJDUMP"; then 5749 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5750else 5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752for as_dir in $PATH 5753do 5754 IFS=$as_save_IFS 5755 case $as_dir in #((( 5756 '') as_dir=./ ;; 5757 */) ;; 5758 *) as_dir=$as_dir/ ;; 5759 esac 5760 for ac_exec_ext in '' $ac_executable_extensions; do 5761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5762 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5764 break 2 5765 fi 5766done 5767 done 5768IFS=$as_save_IFS 5769 5770fi 5771fi 5772OBJDUMP=$ac_cv_prog_OBJDUMP 5773if test -n "$OBJDUMP"; then 5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5775printf "%s\n" "$OBJDUMP" >&6; } 5776else 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778printf "%s\n" "no" >&6; } 5779fi 5780 5781 5782fi 5783if test -z "$ac_cv_prog_OBJDUMP"; then 5784 ac_ct_OBJDUMP=$OBJDUMP 5785 # Extract the first word of "objdump", so it can be a program name with args. 5786set dummy objdump; ac_word=$2 5787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5788printf %s "checking for $ac_word... " >&6; } 5789if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5790then : 5791 printf %s "(cached) " >&6 5792else $as_nop 5793 if test -n "$ac_ct_OBJDUMP"; then 5794 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5795else 5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5797for as_dir in $PATH 5798do 5799 IFS=$as_save_IFS 5800 case $as_dir in #((( 5801 '') as_dir=./ ;; 5802 */) ;; 5803 *) as_dir=$as_dir/ ;; 5804 esac 5805 for ac_exec_ext in '' $ac_executable_extensions; do 5806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5807 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5809 break 2 5810 fi 5811done 5812 done 5813IFS=$as_save_IFS 5814 5815fi 5816fi 5817ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5818if test -n "$ac_ct_OBJDUMP"; then 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5820printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5821else 5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5823printf "%s\n" "no" >&6; } 5824fi 5825 5826 if test "x$ac_ct_OBJDUMP" = x; then 5827 OBJDUMP="false" 5828 else 5829 case $cross_compiling:$ac_tool_warned in 5830yes:) 5831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5832printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5833ac_tool_warned=yes ;; 5834esac 5835 OBJDUMP=$ac_ct_OBJDUMP 5836 fi 5837else 5838 OBJDUMP="$ac_cv_prog_OBJDUMP" 5839fi 5840 5841test -z "$OBJDUMP" && OBJDUMP=objdump 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5852printf %s "checking how to recognize dependent libraries... " >&6; } 5853if test ${lt_cv_deplibs_check_method+y} 5854then : 5855 printf %s "(cached) " >&6 5856else $as_nop 5857 lt_cv_file_magic_cmd='$MAGIC_CMD' 5858lt_cv_file_magic_test_file= 5859lt_cv_deplibs_check_method='unknown' 5860# Need to set the preceding variable on all platforms that support 5861# interlibrary dependencies. 5862# 'none' -- dependencies not supported. 5863# 'unknown' -- same as none, but documents that we really don't know. 5864# 'pass_all' -- all dependencies passed with no checks. 5865# 'test_compile' -- check by making test program. 5866# 'file_magic [[regex]]' -- check by looking for files in library path 5867# that responds to the $file_magic_cmd with a given extended regex. 5868# If you have 'file' or equivalent on your system and you're not sure 5869# whether 'pass_all' will *always* work, you probably want this one. 5870 5871case $host_os in 5872aix[4-9]*) 5873 lt_cv_deplibs_check_method=pass_all 5874 ;; 5875 5876beos*) 5877 lt_cv_deplibs_check_method=pass_all 5878 ;; 5879 5880bsdi[45]*) 5881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5882 lt_cv_file_magic_cmd='$FILECMD -L' 5883 lt_cv_file_magic_test_file=/shlib/libc.so 5884 ;; 5885 5886cygwin*) 5887 # func_win32_libid is a shell function defined in ltmain.sh 5888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5889 lt_cv_file_magic_cmd='func_win32_libid' 5890 ;; 5891 5892mingw* | pw32*) 5893 # Base MSYS/MinGW do not provide the 'file' command needed by 5894 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5895 # unless we find 'file', for example because we are cross-compiling. 5896 if ( file / ) >/dev/null 2>&1; then 5897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5898 lt_cv_file_magic_cmd='func_win32_libid' 5899 else 5900 # Keep this pattern in sync with the one in func_win32_libid. 5901 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5902 lt_cv_file_magic_cmd='$OBJDUMP -f' 5903 fi 5904 ;; 5905 5906cegcc*) 5907 # use the weaker test based on 'objdump'. See mingw*. 5908 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5909 lt_cv_file_magic_cmd='$OBJDUMP -f' 5910 ;; 5911 5912darwin* | rhapsody*) 5913 lt_cv_deplibs_check_method=pass_all 5914 ;; 5915 5916freebsd* | dragonfly* | midnightbsd*) 5917 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5918 case $host_cpu in 5919 i*86 ) 5920 # Not sure whether the presence of OpenBSD here was a mistake. 5921 # Let's accept both of them until this is cleared up. 5922 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5923 lt_cv_file_magic_cmd=$FILECMD 5924 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5925 ;; 5926 esac 5927 else 5928 lt_cv_deplibs_check_method=pass_all 5929 fi 5930 ;; 5931 5932haiku*) 5933 lt_cv_deplibs_check_method=pass_all 5934 ;; 5935 5936hpux10.20* | hpux11*) 5937 lt_cv_file_magic_cmd=$FILECMD 5938 case $host_cpu in 5939 ia64*) 5940 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5941 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5942 ;; 5943 hppa*64*) 5944 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]' 5945 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5946 ;; 5947 *) 5948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5949 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5950 ;; 5951 esac 5952 ;; 5953 5954interix[3-9]*) 5955 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5957 ;; 5958 5959irix5* | irix6* | nonstopux*) 5960 case $LD in 5961 *-32|*"-32 ") libmagic=32-bit;; 5962 *-n32|*"-n32 ") libmagic=N32;; 5963 *-64|*"-64 ") libmagic=64-bit;; 5964 *) libmagic=never-match;; 5965 esac 5966 lt_cv_deplibs_check_method=pass_all 5967 ;; 5968 5969# This must be glibc/ELF. 5970linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5971 lt_cv_deplibs_check_method=pass_all 5972 ;; 5973 5974netbsd* | netbsdelf*-gnu) 5975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5977 else 5978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5979 fi 5980 ;; 5981 5982newos6*) 5983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5984 lt_cv_file_magic_cmd=$FILECMD 5985 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5986 ;; 5987 5988*nto* | *qnx*) 5989 lt_cv_deplibs_check_method=pass_all 5990 ;; 5991 5992openbsd* | bitrig*) 5993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5995 else 5996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5997 fi 5998 ;; 5999 6000osf3* | osf4* | osf5*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003 6004rdos*) 6005 lt_cv_deplibs_check_method=pass_all 6006 ;; 6007 6008solaris*) 6009 lt_cv_deplibs_check_method=pass_all 6010 ;; 6011 6012sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6013 lt_cv_deplibs_check_method=pass_all 6014 ;; 6015 6016sysv4 | sysv4.3*) 6017 case $host_vendor in 6018 motorola) 6019 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]' 6020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6021 ;; 6022 ncr) 6023 lt_cv_deplibs_check_method=pass_all 6024 ;; 6025 sequent) 6026 lt_cv_file_magic_cmd='/bin/file' 6027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6028 ;; 6029 sni) 6030 lt_cv_file_magic_cmd='/bin/file' 6031 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6032 lt_cv_file_magic_test_file=/lib/libc.so 6033 ;; 6034 siemens) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 pc) 6038 lt_cv_deplibs_check_method=pass_all 6039 ;; 6040 esac 6041 ;; 6042 6043tpf*) 6044 lt_cv_deplibs_check_method=pass_all 6045 ;; 6046os2*) 6047 lt_cv_deplibs_check_method=pass_all 6048 ;; 6049esac 6050 6051fi 6052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6053printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6054 6055file_magic_glob= 6056want_nocaseglob=no 6057if test "$build" = "$host"; then 6058 case $host_os in 6059 mingw* | pw32*) 6060 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6061 want_nocaseglob=yes 6062 else 6063 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6064 fi 6065 ;; 6066 esac 6067fi 6068 6069file_magic_cmd=$lt_cv_file_magic_cmd 6070deplibs_check_method=$lt_cv_deplibs_check_method 6071test -z "$deplibs_check_method" && deplibs_check_method=unknown 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094if test -n "$ac_tool_prefix"; then 6095 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6096set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6098printf %s "checking for $ac_word... " >&6; } 6099if test ${ac_cv_prog_DLLTOOL+y} 6100then : 6101 printf %s "(cached) " >&6 6102else $as_nop 6103 if test -n "$DLLTOOL"; then 6104 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 case $as_dir in #((( 6111 '') as_dir=./ ;; 6112 */) ;; 6113 *) as_dir=$as_dir/ ;; 6114 esac 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6117 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121done 6122 done 6123IFS=$as_save_IFS 6124 6125fi 6126fi 6127DLLTOOL=$ac_cv_prog_DLLTOOL 6128if test -n "$DLLTOOL"; then 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6130printf "%s\n" "$DLLTOOL" >&6; } 6131else 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6133printf "%s\n" "no" >&6; } 6134fi 6135 6136 6137fi 6138if test -z "$ac_cv_prog_DLLTOOL"; then 6139 ac_ct_DLLTOOL=$DLLTOOL 6140 # Extract the first word of "dlltool", so it can be a program name with args. 6141set dummy dlltool; ac_word=$2 6142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6143printf %s "checking for $ac_word... " >&6; } 6144if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6145then : 6146 printf %s "(cached) " >&6 6147else $as_nop 6148 if test -n "$ac_ct_DLLTOOL"; then 6149 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6150else 6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152for as_dir in $PATH 6153do 6154 IFS=$as_save_IFS 6155 case $as_dir in #((( 6156 '') as_dir=./ ;; 6157 */) ;; 6158 *) as_dir=$as_dir/ ;; 6159 esac 6160 for ac_exec_ext in '' $ac_executable_extensions; do 6161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6162 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6164 break 2 6165 fi 6166done 6167 done 6168IFS=$as_save_IFS 6169 6170fi 6171fi 6172ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6173if test -n "$ac_ct_DLLTOOL"; then 6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6175printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6176else 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6178printf "%s\n" "no" >&6; } 6179fi 6180 6181 if test "x$ac_ct_DLLTOOL" = x; then 6182 DLLTOOL="false" 6183 else 6184 case $cross_compiling:$ac_tool_warned in 6185yes:) 6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6187printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6188ac_tool_warned=yes ;; 6189esac 6190 DLLTOOL=$ac_ct_DLLTOOL 6191 fi 6192else 6193 DLLTOOL="$ac_cv_prog_DLLTOOL" 6194fi 6195 6196test -z "$DLLTOOL" && DLLTOOL=dlltool 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6208printf %s "checking how to associate runtime and link libraries... " >&6; } 6209if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6210then : 6211 printf %s "(cached) " >&6 6212else $as_nop 6213 lt_cv_sharedlib_from_linklib_cmd='unknown' 6214 6215case $host_os in 6216cygwin* | mingw* | pw32* | cegcc*) 6217 # two different shell functions defined in ltmain.sh; 6218 # decide which one to use based on capabilities of $DLLTOOL 6219 case `$DLLTOOL --help 2>&1` in 6220 *--identify-strict*) 6221 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6222 ;; 6223 *) 6224 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6225 ;; 6226 esac 6227 ;; 6228*) 6229 # fallback: assume linklib IS sharedlib 6230 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6231 ;; 6232esac 6233 6234fi 6235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6236printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6237sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6238test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6239 6240 6241 6242 6243 6244 6245 6246 6247if test -n "$ac_tool_prefix"; then 6248 for ac_prog in ar 6249 do 6250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6251set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6253printf %s "checking for $ac_word... " >&6; } 6254if test ${ac_cv_prog_AR+y} 6255then : 6256 printf %s "(cached) " >&6 6257else $as_nop 6258 if test -n "$AR"; then 6259 ac_cv_prog_AR="$AR" # Let the user override the test. 6260else 6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6262for as_dir in $PATH 6263do 6264 IFS=$as_save_IFS 6265 case $as_dir in #((( 6266 '') as_dir=./ ;; 6267 */) ;; 6268 *) as_dir=$as_dir/ ;; 6269 esac 6270 for ac_exec_ext in '' $ac_executable_extensions; do 6271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6272 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6274 break 2 6275 fi 6276done 6277 done 6278IFS=$as_save_IFS 6279 6280fi 6281fi 6282AR=$ac_cv_prog_AR 6283if test -n "$AR"; then 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6285printf "%s\n" "$AR" >&6; } 6286else 6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6288printf "%s\n" "no" >&6; } 6289fi 6290 6291 6292 test -n "$AR" && break 6293 done 6294fi 6295if test -z "$AR"; then 6296 ac_ct_AR=$AR 6297 for ac_prog in ar 6298do 6299 # Extract the first word of "$ac_prog", so it can be a program name with args. 6300set dummy $ac_prog; ac_word=$2 6301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6302printf %s "checking for $ac_word... " >&6; } 6303if test ${ac_cv_prog_ac_ct_AR+y} 6304then : 6305 printf %s "(cached) " >&6 6306else $as_nop 6307 if test -n "$ac_ct_AR"; then 6308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6309else 6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6311for as_dir in $PATH 6312do 6313 IFS=$as_save_IFS 6314 case $as_dir in #((( 6315 '') as_dir=./ ;; 6316 */) ;; 6317 *) as_dir=$as_dir/ ;; 6318 esac 6319 for ac_exec_ext in '' $ac_executable_extensions; do 6320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6321 ac_cv_prog_ac_ct_AR="$ac_prog" 6322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6323 break 2 6324 fi 6325done 6326 done 6327IFS=$as_save_IFS 6328 6329fi 6330fi 6331ac_ct_AR=$ac_cv_prog_ac_ct_AR 6332if test -n "$ac_ct_AR"; then 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6334printf "%s\n" "$ac_ct_AR" >&6; } 6335else 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6337printf "%s\n" "no" >&6; } 6338fi 6339 6340 6341 test -n "$ac_ct_AR" && break 6342done 6343 6344 if test "x$ac_ct_AR" = x; then 6345 AR="false" 6346 else 6347 case $cross_compiling:$ac_tool_warned in 6348yes:) 6349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6350printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6351ac_tool_warned=yes ;; 6352esac 6353 AR=$ac_ct_AR 6354 fi 6355fi 6356 6357: ${AR=ar} 6358 6359 6360 6361 6362 6363 6364# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6365# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6366# higher priority because thats what people were doing historically (setting 6367# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6368# variable obsoleted/removed. 6369 6370test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6371lt_ar_flags=$AR_FLAGS 6372 6373 6374 6375 6376 6377 6378# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6379# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6380 6381 6382 6383 6384 6385 6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6387printf %s "checking for archiver @FILE support... " >&6; } 6388if test ${lt_cv_ar_at_file+y} 6389then : 6390 printf %s "(cached) " >&6 6391else $as_nop 6392 lt_cv_ar_at_file=no 6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394/* end confdefs.h. */ 6395 6396int 6397main (void) 6398{ 6399 6400 ; 6401 return 0; 6402} 6403_ACEOF 6404if ac_fn_c_try_compile "$LINENO" 6405then : 6406 echo conftest.$ac_objext > conftest.lst 6407 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6409 (eval $lt_ar_try) 2>&5 6410 ac_status=$? 6411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6412 test $ac_status = 0; } 6413 if test 0 -eq "$ac_status"; then 6414 # Ensure the archiver fails upon bogus file names. 6415 rm -f conftest.$ac_objext libconftest.a 6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6417 (eval $lt_ar_try) 2>&5 6418 ac_status=$? 6419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; } 6421 if test 0 -ne "$ac_status"; then 6422 lt_cv_ar_at_file=@ 6423 fi 6424 fi 6425 rm -f conftest.* libconftest.a 6426 6427fi 6428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6429 6430fi 6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6432printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6433 6434if test no = "$lt_cv_ar_at_file"; then 6435 archiver_list_spec= 6436else 6437 archiver_list_spec=$lt_cv_ar_at_file 6438fi 6439 6440 6441 6442 6443 6444 6445 6446if test -n "$ac_tool_prefix"; then 6447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6448set dummy ${ac_tool_prefix}strip; ac_word=$2 6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450printf %s "checking for $ac_word... " >&6; } 6451if test ${ac_cv_prog_STRIP+y} 6452then : 6453 printf %s "(cached) " >&6 6454else $as_nop 6455 if test -n "$STRIP"; then 6456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6457else 6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459for as_dir in $PATH 6460do 6461 IFS=$as_save_IFS 6462 case $as_dir in #((( 6463 '') as_dir=./ ;; 6464 */) ;; 6465 *) as_dir=$as_dir/ ;; 6466 esac 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6469 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473done 6474 done 6475IFS=$as_save_IFS 6476 6477fi 6478fi 6479STRIP=$ac_cv_prog_STRIP 6480if test -n "$STRIP"; then 6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6482printf "%s\n" "$STRIP" >&6; } 6483else 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485printf "%s\n" "no" >&6; } 6486fi 6487 6488 6489fi 6490if test -z "$ac_cv_prog_STRIP"; then 6491 ac_ct_STRIP=$STRIP 6492 # Extract the first word of "strip", so it can be a program name with args. 6493set dummy strip; ac_word=$2 6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6495printf %s "checking for $ac_word... " >&6; } 6496if test ${ac_cv_prog_ac_ct_STRIP+y} 6497then : 6498 printf %s "(cached) " >&6 6499else $as_nop 6500 if test -n "$ac_ct_STRIP"; then 6501 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6502else 6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6504for as_dir in $PATH 6505do 6506 IFS=$as_save_IFS 6507 case $as_dir in #((( 6508 '') as_dir=./ ;; 6509 */) ;; 6510 *) as_dir=$as_dir/ ;; 6511 esac 6512 for ac_exec_ext in '' $ac_executable_extensions; do 6513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6514 ac_cv_prog_ac_ct_STRIP="strip" 6515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6516 break 2 6517 fi 6518done 6519 done 6520IFS=$as_save_IFS 6521 6522fi 6523fi 6524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6525if test -n "$ac_ct_STRIP"; then 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6527printf "%s\n" "$ac_ct_STRIP" >&6; } 6528else 6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6530printf "%s\n" "no" >&6; } 6531fi 6532 6533 if test "x$ac_ct_STRIP" = x; then 6534 STRIP=":" 6535 else 6536 case $cross_compiling:$ac_tool_warned in 6537yes:) 6538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6539printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6540ac_tool_warned=yes ;; 6541esac 6542 STRIP=$ac_ct_STRIP 6543 fi 6544else 6545 STRIP="$ac_cv_prog_STRIP" 6546fi 6547 6548test -z "$STRIP" && STRIP=: 6549 6550 6551 6552 6553 6554 6555if test -n "$ac_tool_prefix"; then 6556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6557set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6559printf %s "checking for $ac_word... " >&6; } 6560if test ${ac_cv_prog_RANLIB+y} 6561then : 6562 printf %s "(cached) " >&6 6563else $as_nop 6564 if test -n "$RANLIB"; then 6565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6566else 6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6568for as_dir in $PATH 6569do 6570 IFS=$as_save_IFS 6571 case $as_dir in #((( 6572 '') as_dir=./ ;; 6573 */) ;; 6574 *) as_dir=$as_dir/ ;; 6575 esac 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588RANLIB=$ac_cv_prog_RANLIB 6589if test -n "$RANLIB"; then 6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6591printf "%s\n" "$RANLIB" >&6; } 6592else 6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594printf "%s\n" "no" >&6; } 6595fi 6596 6597 6598fi 6599if test -z "$ac_cv_prog_RANLIB"; then 6600 ac_ct_RANLIB=$RANLIB 6601 # Extract the first word of "ranlib", so it can be a program name with args. 6602set dummy ranlib; ac_word=$2 6603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604printf %s "checking for $ac_word... " >&6; } 6605if test ${ac_cv_prog_ac_ct_RANLIB+y} 6606then : 6607 printf %s "(cached) " >&6 6608else $as_nop 6609 if test -n "$ac_ct_RANLIB"; then 6610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6611else 6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 case $as_dir in #((( 6617 '') as_dir=./ ;; 6618 */) ;; 6619 *) as_dir=$as_dir/ ;; 6620 esac 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6623 ac_cv_prog_ac_ct_RANLIB="ranlib" 6624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627done 6628 done 6629IFS=$as_save_IFS 6630 6631fi 6632fi 6633ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6634if test -n "$ac_ct_RANLIB"; then 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6636printf "%s\n" "$ac_ct_RANLIB" >&6; } 6637else 6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6639printf "%s\n" "no" >&6; } 6640fi 6641 6642 if test "x$ac_ct_RANLIB" = x; then 6643 RANLIB=":" 6644 else 6645 case $cross_compiling:$ac_tool_warned in 6646yes:) 6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6648printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6649ac_tool_warned=yes ;; 6650esac 6651 RANLIB=$ac_ct_RANLIB 6652 fi 6653else 6654 RANLIB="$ac_cv_prog_RANLIB" 6655fi 6656 6657test -z "$RANLIB" && RANLIB=: 6658 6659 6660 6661 6662 6663 6664# Determine commands to create old-style static archives. 6665old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6666old_postinstall_cmds='chmod 644 $oldlib' 6667old_postuninstall_cmds= 6668 6669if test -n "$RANLIB"; then 6670 case $host_os in 6671 bitrig* | openbsd*) 6672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6673 ;; 6674 *) 6675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6676 ;; 6677 esac 6678 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6679fi 6680 6681case $host_os in 6682 darwin*) 6683 lock_old_archive_extraction=yes ;; 6684 *) 6685 lock_old_archive_extraction=no ;; 6686esac 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726# If no C compiler was specified, use CC. 6727LTCC=${LTCC-"$CC"} 6728 6729# If no C compiler flags were specified, use CFLAGS. 6730LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6731 6732# Allow CC to be a program name with arguments. 6733compiler=$CC 6734 6735 6736# Check for command to grab the raw symbol name followed by C symbol from nm. 6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6738printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6739if test ${lt_cv_sys_global_symbol_pipe+y} 6740then : 6741 printf %s "(cached) " >&6 6742else $as_nop 6743 6744# These are sane defaults that work on at least a few old systems. 6745# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6746 6747# Character class describing NM global symbol codes. 6748symcode='[BCDEGRST]' 6749 6750# Regexp to match symbols that can be accessed directly from C. 6751sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6752 6753# Define system-specific variables. 6754case $host_os in 6755aix*) 6756 symcode='[BCDT]' 6757 ;; 6758cygwin* | mingw* | pw32* | cegcc*) 6759 symcode='[ABCDGISTW]' 6760 ;; 6761hpux*) 6762 if test ia64 = "$host_cpu"; then 6763 symcode='[ABCDEGRST]' 6764 fi 6765 ;; 6766irix* | nonstopux*) 6767 symcode='[BCDEGRST]' 6768 ;; 6769osf*) 6770 symcode='[BCDEGQRST]' 6771 ;; 6772solaris*) 6773 symcode='[BDRT]' 6774 ;; 6775sco3.2v5*) 6776 symcode='[DT]' 6777 ;; 6778sysv4.2uw2*) 6779 symcode='[DT]' 6780 ;; 6781sysv5* | sco5v6* | unixware* | OpenUNIX*) 6782 symcode='[ABDT]' 6783 ;; 6784sysv4) 6785 symcode='[DFNSTU]' 6786 ;; 6787esac 6788 6789# If we're using GNU nm, then use its standard symbol codes. 6790case `$NM -V 2>&1` in 6791*GNU* | *'with BFD'*) 6792 symcode='[ABCDGIRSTW]' ;; 6793esac 6794 6795if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6796 # Gets list of data symbols to import. 6797 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6798 # Adjust the below global symbol transforms to fixup imported variables. 6799 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6800 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6801 lt_c_name_lib_hook="\ 6802 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6803 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6804else 6805 # Disable hooks by default. 6806 lt_cv_sys_global_symbol_to_import= 6807 lt_cdecl_hook= 6808 lt_c_name_hook= 6809 lt_c_name_lib_hook= 6810fi 6811 6812# Transform an extracted symbol line into a proper C declaration. 6813# Some systems (esp. on ia64) link data and code symbols differently, 6814# so use this general approach. 6815lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6816$lt_cdecl_hook\ 6817" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6818" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6819 6820# Transform an extracted symbol line into symbol name and symbol address 6821lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6822$lt_c_name_hook\ 6823" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6824" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6825 6826# Transform an extracted symbol line into symbol name with lib prefix and 6827# symbol address. 6828lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6829$lt_c_name_lib_hook\ 6830" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6831" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6832" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6833 6834# Handle CRLF in mingw tool chain 6835opt_cr= 6836case $build_os in 6837mingw*) 6838 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6839 ;; 6840esac 6841 6842# Try without a prefix underscore, then with it. 6843for ac_symprfx in "" "_"; do 6844 6845 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6846 symxfrm="\\1 $ac_symprfx\\2 \\2" 6847 6848 # Write the raw and C identifiers. 6849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6850 # Fake it for dumpbin and say T for any non-static function, 6851 # D for any global variable and I for any imported variable. 6852 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6853 # which start with @ or ?. 6854 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6855" {last_section=section; section=\$ 3};"\ 6856" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6857" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6858" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6859" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6860" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6861" \$ 0!~/External *\|/{next};"\ 6862" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6863" {if(hide[section]) next};"\ 6864" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6865" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6866" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6867" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6868" ' prfx=^$ac_symprfx" 6869 else 6870 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6871 fi 6872 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6873 6874 # Check to see that the pipe works correctly. 6875 pipe_works=no 6876 6877 rm -f conftest* 6878 cat > conftest.$ac_ext <<_LT_EOF 6879#ifdef __cplusplus 6880extern "C" { 6881#endif 6882char nm_test_var; 6883void nm_test_func(void); 6884void nm_test_func(void){} 6885#ifdef __cplusplus 6886} 6887#endif 6888int main(){nm_test_var='a';nm_test_func();return(0);} 6889_LT_EOF 6890 6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6892 (eval $ac_compile) 2>&5 6893 ac_status=$? 6894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6895 test $ac_status = 0; }; then 6896 # Now try to grab the symbols. 6897 nlist=conftest.nm 6898 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6899 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6900 # Try sorting and uniquifying the output. 6901 if sort "$nlist" | uniq > "$nlist"T; then 6902 mv -f "$nlist"T "$nlist" 6903 else 6904 rm -f "$nlist"T 6905 fi 6906 6907 # Make sure that we snagged all the symbols we need. 6908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6910 cat <<_LT_EOF > conftest.$ac_ext 6911/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6912#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6913/* DATA imports from DLLs on WIN32 can't be const, because runtime 6914 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6915# define LT_DLSYM_CONST 6916#elif defined __osf__ 6917/* This system does not cope well with relocations in const data. */ 6918# define LT_DLSYM_CONST 6919#else 6920# define LT_DLSYM_CONST const 6921#endif 6922 6923#ifdef __cplusplus 6924extern "C" { 6925#endif 6926 6927_LT_EOF 6928 # Now generate the symbol file. 6929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6930 6931 cat <<_LT_EOF >> conftest.$ac_ext 6932 6933/* The mapping between symbol names and symbols. */ 6934LT_DLSYM_CONST struct { 6935 const char *name; 6936 void *address; 6937} 6938lt__PROGRAM__LTX_preloaded_symbols[] = 6939{ 6940 { "@PROGRAM@", (void *) 0 }, 6941_LT_EOF 6942 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6943 cat <<\_LT_EOF >> conftest.$ac_ext 6944 {0, (void *) 0} 6945}; 6946 6947/* This works around a problem in FreeBSD linker */ 6948#ifdef FREEBSD_WORKAROUND 6949static const void *lt_preloaded_setup() { 6950 return lt__PROGRAM__LTX_preloaded_symbols; 6951} 6952#endif 6953 6954#ifdef __cplusplus 6955} 6956#endif 6957_LT_EOF 6958 # Now try linking the two files. 6959 mv conftest.$ac_objext conftstm.$ac_objext 6960 lt_globsym_save_LIBS=$LIBS 6961 lt_globsym_save_CFLAGS=$CFLAGS 6962 LIBS=conftstm.$ac_objext 6963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6965 (eval $ac_link) 2>&5 6966 ac_status=$? 6967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6968 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6969 pipe_works=yes 6970 fi 6971 LIBS=$lt_globsym_save_LIBS 6972 CFLAGS=$lt_globsym_save_CFLAGS 6973 else 6974 echo "cannot find nm_test_func in $nlist" >&5 6975 fi 6976 else 6977 echo "cannot find nm_test_var in $nlist" >&5 6978 fi 6979 else 6980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6981 fi 6982 else 6983 echo "$progname: failed program was:" >&5 6984 cat conftest.$ac_ext >&5 6985 fi 6986 rm -rf conftest* conftst* 6987 6988 # Do not use the global_symbol_pipe unless it works. 6989 if test yes = "$pipe_works"; then 6990 break 6991 else 6992 lt_cv_sys_global_symbol_pipe= 6993 fi 6994done 6995 6996fi 6997 6998if test -z "$lt_cv_sys_global_symbol_pipe"; then 6999 lt_cv_sys_global_symbol_to_cdecl= 7000fi 7001if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7003printf "%s\n" "failed" >&6; } 7004else 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7006printf "%s\n" "ok" >&6; } 7007fi 7008 7009# Response file support. 7010if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7011 nm_file_list_spec='@' 7012elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7013 nm_file_list_spec='@' 7014fi 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7053printf %s "checking for sysroot... " >&6; } 7054 7055# Check whether --with-sysroot was given. 7056if test ${with_sysroot+y} 7057then : 7058 withval=$with_sysroot; 7059else $as_nop 7060 with_sysroot=no 7061fi 7062 7063 7064lt_sysroot= 7065case $with_sysroot in #( 7066 yes) 7067 if test yes = "$GCC"; then 7068 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7069 fi 7070 ;; #( 7071 /*) 7072 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7073 ;; #( 7074 no|'') 7075 ;; #( 7076 *) 7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7078printf "%s\n" "$with_sysroot" >&6; } 7079 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7080 ;; 7081esac 7082 7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7084printf "%s\n" "${lt_sysroot:-no}" >&6; } 7085 7086 7087 7088 7089 7090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7091printf %s "checking for a working dd... " >&6; } 7092if test ${ac_cv_path_lt_DD+y} 7093then : 7094 printf %s "(cached) " >&6 7095else $as_nop 7096 printf 0123456789abcdef0123456789abcdef >conftest.i 7097cat conftest.i conftest.i >conftest2.i 7098: ${lt_DD:=$DD} 7099if test -z "$lt_DD"; then 7100 ac_path_lt_DD_found=false 7101 # Loop through the user's path and test for each of PROGNAME-LIST 7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103for as_dir in $PATH 7104do 7105 IFS=$as_save_IFS 7106 case $as_dir in #((( 7107 '') as_dir=./ ;; 7108 */) ;; 7109 *) as_dir=$as_dir/ ;; 7110 esac 7111 for ac_prog in dd 7112 do 7113 for ac_exec_ext in '' $ac_executable_extensions; do 7114 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7115 as_fn_executable_p "$ac_path_lt_DD" || continue 7116if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7117 cmp -s conftest.i conftest.out \ 7118 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7119fi 7120 $ac_path_lt_DD_found && break 3 7121 done 7122 done 7123 done 7124IFS=$as_save_IFS 7125 if test -z "$ac_cv_path_lt_DD"; then 7126 : 7127 fi 7128else 7129 ac_cv_path_lt_DD=$lt_DD 7130fi 7131 7132rm -f conftest.i conftest2.i conftest.out 7133fi 7134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7135printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7136 7137 7138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7139printf %s "checking how to truncate binary pipes... " >&6; } 7140if test ${lt_cv_truncate_bin+y} 7141then : 7142 printf %s "(cached) " >&6 7143else $as_nop 7144 printf 0123456789abcdef0123456789abcdef >conftest.i 7145cat conftest.i conftest.i >conftest2.i 7146lt_cv_truncate_bin= 7147if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7148 cmp -s conftest.i conftest.out \ 7149 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7150fi 7151rm -f conftest.i conftest2.i conftest.out 7152test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7153fi 7154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7155printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7156 7157 7158 7159 7160 7161 7162 7163# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7164func_cc_basename () 7165{ 7166 for cc_temp in $*""; do 7167 case $cc_temp in 7168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7170 \-*) ;; 7171 *) break;; 7172 esac 7173 done 7174 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7175} 7176 7177# Check whether --enable-libtool-lock was given. 7178if test ${enable_libtool_lock+y} 7179then : 7180 enableval=$enable_libtool_lock; 7181fi 7182 7183test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7184 7185# Some flags need to be propagated to the compiler or linker for good 7186# libtool support. 7187case $host in 7188ia64-*-hpux*) 7189 # Find out what ABI is being produced by ac_compile, and set mode 7190 # options accordingly. 7191 echo 'int i;' > conftest.$ac_ext 7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7193 (eval $ac_compile) 2>&5 7194 ac_status=$? 7195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7196 test $ac_status = 0; }; then 7197 case `$FILECMD conftest.$ac_objext` in 7198 *ELF-32*) 7199 HPUX_IA64_MODE=32 7200 ;; 7201 *ELF-64*) 7202 HPUX_IA64_MODE=64 7203 ;; 7204 esac 7205 fi 7206 rm -rf conftest* 7207 ;; 7208*-*-irix6*) 7209 # Find out what ABI is being produced by ac_compile, and set linker 7210 # options accordingly. 7211 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7213 (eval $ac_compile) 2>&5 7214 ac_status=$? 7215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7216 test $ac_status = 0; }; then 7217 if test yes = "$lt_cv_prog_gnu_ld"; then 7218 case `$FILECMD conftest.$ac_objext` in 7219 *32-bit*) 7220 LD="${LD-ld} -melf32bsmip" 7221 ;; 7222 *N32*) 7223 LD="${LD-ld} -melf32bmipn32" 7224 ;; 7225 *64-bit*) 7226 LD="${LD-ld} -melf64bmip" 7227 ;; 7228 esac 7229 else 7230 case `$FILECMD conftest.$ac_objext` in 7231 *32-bit*) 7232 LD="${LD-ld} -32" 7233 ;; 7234 *N32*) 7235 LD="${LD-ld} -n32" 7236 ;; 7237 *64-bit*) 7238 LD="${LD-ld} -64" 7239 ;; 7240 esac 7241 fi 7242 fi 7243 rm -rf conftest* 7244 ;; 7245 7246mips64*-*linux*) 7247 # Find out what ABI is being produced by ac_compile, and set linker 7248 # options accordingly. 7249 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7251 (eval $ac_compile) 2>&5 7252 ac_status=$? 7253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7254 test $ac_status = 0; }; then 7255 emul=elf 7256 case `$FILECMD conftest.$ac_objext` in 7257 *32-bit*) 7258 emul="${emul}32" 7259 ;; 7260 *64-bit*) 7261 emul="${emul}64" 7262 ;; 7263 esac 7264 case `$FILECMD conftest.$ac_objext` in 7265 *MSB*) 7266 emul="${emul}btsmip" 7267 ;; 7268 *LSB*) 7269 emul="${emul}ltsmip" 7270 ;; 7271 esac 7272 case `$FILECMD conftest.$ac_objext` in 7273 *N32*) 7274 emul="${emul}n32" 7275 ;; 7276 esac 7277 LD="${LD-ld} -m $emul" 7278 fi 7279 rm -rf conftest* 7280 ;; 7281 7282x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7283s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7284 # Find out what ABI is being produced by ac_compile, and set linker 7285 # options accordingly. Note that the listed cases only cover the 7286 # situations where additional linker options are needed (such as when 7287 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7288 # vice versa); the common cases where no linker options are needed do 7289 # not appear in the list. 7290 echo 'int i;' > conftest.$ac_ext 7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7292 (eval $ac_compile) 2>&5 7293 ac_status=$? 7294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7295 test $ac_status = 0; }; then 7296 case `$FILECMD conftest.o` in 7297 *32-bit*) 7298 case $host in 7299 x86_64-*kfreebsd*-gnu) 7300 LD="${LD-ld} -m elf_i386_fbsd" 7301 ;; 7302 x86_64-*linux*) 7303 case `$FILECMD conftest.o` in 7304 *x86-64*) 7305 LD="${LD-ld} -m elf32_x86_64" 7306 ;; 7307 *) 7308 LD="${LD-ld} -m elf_i386" 7309 ;; 7310 esac 7311 ;; 7312 powerpc64le-*linux*) 7313 LD="${LD-ld} -m elf32lppclinux" 7314 ;; 7315 powerpc64-*linux*) 7316 LD="${LD-ld} -m elf32ppclinux" 7317 ;; 7318 s390x-*linux*) 7319 LD="${LD-ld} -m elf_s390" 7320 ;; 7321 sparc64-*linux*) 7322 LD="${LD-ld} -m elf32_sparc" 7323 ;; 7324 esac 7325 ;; 7326 *64-bit*) 7327 case $host in 7328 x86_64-*kfreebsd*-gnu) 7329 LD="${LD-ld} -m elf_x86_64_fbsd" 7330 ;; 7331 x86_64-*linux*) 7332 LD="${LD-ld} -m elf_x86_64" 7333 ;; 7334 powerpcle-*linux*) 7335 LD="${LD-ld} -m elf64lppc" 7336 ;; 7337 powerpc-*linux*) 7338 LD="${LD-ld} -m elf64ppc" 7339 ;; 7340 s390*-*linux*|s390*-*tpf*) 7341 LD="${LD-ld} -m elf64_s390" 7342 ;; 7343 sparc*-*linux*) 7344 LD="${LD-ld} -m elf64_sparc" 7345 ;; 7346 esac 7347 ;; 7348 esac 7349 fi 7350 rm -rf conftest* 7351 ;; 7352 7353*-*-sco3.2v5*) 7354 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7355 SAVE_CFLAGS=$CFLAGS 7356 CFLAGS="$CFLAGS -belf" 7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7358printf %s "checking whether the C compiler needs -belf... " >&6; } 7359if test ${lt_cv_cc_needs_belf+y} 7360then : 7361 printf %s "(cached) " >&6 7362else $as_nop 7363 ac_ext=c 7364ac_cpp='$CPP $CPPFLAGS' 7365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7367ac_compiler_gnu=$ac_cv_c_compiler_gnu 7368 7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7370/* end confdefs.h. */ 7371 7372int 7373main (void) 7374{ 7375 7376 ; 7377 return 0; 7378} 7379_ACEOF 7380if ac_fn_c_try_link "$LINENO" 7381then : 7382 lt_cv_cc_needs_belf=yes 7383else $as_nop 7384 lt_cv_cc_needs_belf=no 7385fi 7386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7387 conftest$ac_exeext conftest.$ac_ext 7388 ac_ext=c 7389ac_cpp='$CPP $CPPFLAGS' 7390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7392ac_compiler_gnu=$ac_cv_c_compiler_gnu 7393 7394fi 7395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7396printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7397 if test yes != "$lt_cv_cc_needs_belf"; then 7398 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7399 CFLAGS=$SAVE_CFLAGS 7400 fi 7401 ;; 7402*-*solaris*) 7403 # Find out what ABI is being produced by ac_compile, and set linker 7404 # options accordingly. 7405 echo 'int i;' > conftest.$ac_ext 7406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7407 (eval $ac_compile) 2>&5 7408 ac_status=$? 7409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7410 test $ac_status = 0; }; then 7411 case `$FILECMD conftest.o` in 7412 *64-bit*) 7413 case $lt_cv_prog_gnu_ld in 7414 yes*) 7415 case $host in 7416 i?86-*-solaris*|x86_64-*-solaris*) 7417 LD="${LD-ld} -m elf_x86_64" 7418 ;; 7419 sparc*-*-solaris*) 7420 LD="${LD-ld} -m elf64_sparc" 7421 ;; 7422 esac 7423 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7424 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7425 LD=${LD-ld}_sol2 7426 fi 7427 ;; 7428 *) 7429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7430 LD="${LD-ld} -64" 7431 fi 7432 ;; 7433 esac 7434 ;; 7435 esac 7436 fi 7437 rm -rf conftest* 7438 ;; 7439esac 7440 7441need_locks=$enable_libtool_lock 7442 7443if test -n "$ac_tool_prefix"; then 7444 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7445set dummy ${ac_tool_prefix}mt; ac_word=$2 7446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7447printf %s "checking for $ac_word... " >&6; } 7448if test ${ac_cv_prog_MANIFEST_TOOL+y} 7449then : 7450 printf %s "(cached) " >&6 7451else $as_nop 7452 if test -n "$MANIFEST_TOOL"; then 7453 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7454else 7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7456for as_dir in $PATH 7457do 7458 IFS=$as_save_IFS 7459 case $as_dir in #((( 7460 '') as_dir=./ ;; 7461 */) ;; 7462 *) as_dir=$as_dir/ ;; 7463 esac 7464 for ac_exec_ext in '' $ac_executable_extensions; do 7465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7466 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7468 break 2 7469 fi 7470done 7471 done 7472IFS=$as_save_IFS 7473 7474fi 7475fi 7476MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7477if test -n "$MANIFEST_TOOL"; then 7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7479printf "%s\n" "$MANIFEST_TOOL" >&6; } 7480else 7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7482printf "%s\n" "no" >&6; } 7483fi 7484 7485 7486fi 7487if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7488 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7489 # Extract the first word of "mt", so it can be a program name with args. 7490set dummy mt; ac_word=$2 7491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7492printf %s "checking for $ac_word... " >&6; } 7493if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7494then : 7495 printf %s "(cached) " >&6 7496else $as_nop 7497 if test -n "$ac_ct_MANIFEST_TOOL"; then 7498 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7499else 7500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7501for as_dir in $PATH 7502do 7503 IFS=$as_save_IFS 7504 case $as_dir in #((( 7505 '') as_dir=./ ;; 7506 */) ;; 7507 *) as_dir=$as_dir/ ;; 7508 esac 7509 for ac_exec_ext in '' $ac_executable_extensions; do 7510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7511 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7513 break 2 7514 fi 7515done 7516 done 7517IFS=$as_save_IFS 7518 7519fi 7520fi 7521ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7522if test -n "$ac_ct_MANIFEST_TOOL"; then 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7524printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7525else 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7527printf "%s\n" "no" >&6; } 7528fi 7529 7530 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7531 MANIFEST_TOOL=":" 7532 else 7533 case $cross_compiling:$ac_tool_warned in 7534yes:) 7535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7536printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7537ac_tool_warned=yes ;; 7538esac 7539 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7540 fi 7541else 7542 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7543fi 7544 7545test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7547printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7548if test ${lt_cv_path_mainfest_tool+y} 7549then : 7550 printf %s "(cached) " >&6 7551else $as_nop 7552 lt_cv_path_mainfest_tool=no 7553 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7554 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7555 cat conftest.err >&5 7556 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7557 lt_cv_path_mainfest_tool=yes 7558 fi 7559 rm -f conftest* 7560fi 7561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7562printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7563if test yes != "$lt_cv_path_mainfest_tool"; then 7564 MANIFEST_TOOL=: 7565fi 7566 7567 7568 7569 7570 7571 7572 case $host_os in 7573 rhapsody* | darwin*) 7574 if test -n "$ac_tool_prefix"; then 7575 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7576set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7578printf %s "checking for $ac_word... " >&6; } 7579if test ${ac_cv_prog_DSYMUTIL+y} 7580then : 7581 printf %s "(cached) " >&6 7582else $as_nop 7583 if test -n "$DSYMUTIL"; then 7584 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7585else 7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7587for as_dir in $PATH 7588do 7589 IFS=$as_save_IFS 7590 case $as_dir in #((( 7591 '') as_dir=./ ;; 7592 */) ;; 7593 *) as_dir=$as_dir/ ;; 7594 esac 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7597 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601done 7602 done 7603IFS=$as_save_IFS 7604 7605fi 7606fi 7607DSYMUTIL=$ac_cv_prog_DSYMUTIL 7608if test -n "$DSYMUTIL"; then 7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7610printf "%s\n" "$DSYMUTIL" >&6; } 7611else 7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613printf "%s\n" "no" >&6; } 7614fi 7615 7616 7617fi 7618if test -z "$ac_cv_prog_DSYMUTIL"; then 7619 ac_ct_DSYMUTIL=$DSYMUTIL 7620 # Extract the first word of "dsymutil", so it can be a program name with args. 7621set dummy dsymutil; ac_word=$2 7622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7623printf %s "checking for $ac_word... " >&6; } 7624if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7625then : 7626 printf %s "(cached) " >&6 7627else $as_nop 7628 if test -n "$ac_ct_DSYMUTIL"; then 7629 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7630else 7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7632for as_dir in $PATH 7633do 7634 IFS=$as_save_IFS 7635 case $as_dir in #((( 7636 '') as_dir=./ ;; 7637 */) ;; 7638 *) as_dir=$as_dir/ ;; 7639 esac 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646done 7647 done 7648IFS=$as_save_IFS 7649 7650fi 7651fi 7652ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7653if test -n "$ac_ct_DSYMUTIL"; then 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7655printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7656else 7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7658printf "%s\n" "no" >&6; } 7659fi 7660 7661 if test "x$ac_ct_DSYMUTIL" = x; then 7662 DSYMUTIL=":" 7663 else 7664 case $cross_compiling:$ac_tool_warned in 7665yes:) 7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7667printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7668ac_tool_warned=yes ;; 7669esac 7670 DSYMUTIL=$ac_ct_DSYMUTIL 7671 fi 7672else 7673 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7674fi 7675 7676 if test -n "$ac_tool_prefix"; then 7677 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7678set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7680printf %s "checking for $ac_word... " >&6; } 7681if test ${ac_cv_prog_NMEDIT+y} 7682then : 7683 printf %s "(cached) " >&6 7684else $as_nop 7685 if test -n "$NMEDIT"; then 7686 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7687else 7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7689for as_dir in $PATH 7690do 7691 IFS=$as_save_IFS 7692 case $as_dir in #((( 7693 '') as_dir=./ ;; 7694 */) ;; 7695 *) as_dir=$as_dir/ ;; 7696 esac 7697 for ac_exec_ext in '' $ac_executable_extensions; do 7698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7699 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7701 break 2 7702 fi 7703done 7704 done 7705IFS=$as_save_IFS 7706 7707fi 7708fi 7709NMEDIT=$ac_cv_prog_NMEDIT 7710if test -n "$NMEDIT"; then 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7712printf "%s\n" "$NMEDIT" >&6; } 7713else 7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7715printf "%s\n" "no" >&6; } 7716fi 7717 7718 7719fi 7720if test -z "$ac_cv_prog_NMEDIT"; then 7721 ac_ct_NMEDIT=$NMEDIT 7722 # Extract the first word of "nmedit", so it can be a program name with args. 7723set dummy nmedit; ac_word=$2 7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7725printf %s "checking for $ac_word... " >&6; } 7726if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7727then : 7728 printf %s "(cached) " >&6 7729else $as_nop 7730 if test -n "$ac_ct_NMEDIT"; then 7731 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7732else 7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7734for as_dir in $PATH 7735do 7736 IFS=$as_save_IFS 7737 case $as_dir in #((( 7738 '') as_dir=./ ;; 7739 */) ;; 7740 *) as_dir=$as_dir/ ;; 7741 esac 7742 for ac_exec_ext in '' $ac_executable_extensions; do 7743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7744 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7746 break 2 7747 fi 7748done 7749 done 7750IFS=$as_save_IFS 7751 7752fi 7753fi 7754ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7755if test -n "$ac_ct_NMEDIT"; then 7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7757printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7758else 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7760printf "%s\n" "no" >&6; } 7761fi 7762 7763 if test "x$ac_ct_NMEDIT" = x; then 7764 NMEDIT=":" 7765 else 7766 case $cross_compiling:$ac_tool_warned in 7767yes:) 7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7769printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7770ac_tool_warned=yes ;; 7771esac 7772 NMEDIT=$ac_ct_NMEDIT 7773 fi 7774else 7775 NMEDIT="$ac_cv_prog_NMEDIT" 7776fi 7777 7778 if test -n "$ac_tool_prefix"; then 7779 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7780set dummy ${ac_tool_prefix}lipo; ac_word=$2 7781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7782printf %s "checking for $ac_word... " >&6; } 7783if test ${ac_cv_prog_LIPO+y} 7784then : 7785 printf %s "(cached) " >&6 7786else $as_nop 7787 if test -n "$LIPO"; then 7788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7789else 7790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7791for as_dir in $PATH 7792do 7793 IFS=$as_save_IFS 7794 case $as_dir in #((( 7795 '') as_dir=./ ;; 7796 */) ;; 7797 *) as_dir=$as_dir/ ;; 7798 esac 7799 for ac_exec_ext in '' $ac_executable_extensions; do 7800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7801 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7803 break 2 7804 fi 7805done 7806 done 7807IFS=$as_save_IFS 7808 7809fi 7810fi 7811LIPO=$ac_cv_prog_LIPO 7812if test -n "$LIPO"; then 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7814printf "%s\n" "$LIPO" >&6; } 7815else 7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7817printf "%s\n" "no" >&6; } 7818fi 7819 7820 7821fi 7822if test -z "$ac_cv_prog_LIPO"; then 7823 ac_ct_LIPO=$LIPO 7824 # Extract the first word of "lipo", so it can be a program name with args. 7825set dummy lipo; ac_word=$2 7826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7827printf %s "checking for $ac_word... " >&6; } 7828if test ${ac_cv_prog_ac_ct_LIPO+y} 7829then : 7830 printf %s "(cached) " >&6 7831else $as_nop 7832 if test -n "$ac_ct_LIPO"; then 7833 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 case $as_dir in #((( 7840 '') as_dir=./ ;; 7841 */) ;; 7842 *) as_dir=$as_dir/ ;; 7843 esac 7844 for ac_exec_ext in '' $ac_executable_extensions; do 7845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7846 ac_cv_prog_ac_ct_LIPO="lipo" 7847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7848 break 2 7849 fi 7850done 7851 done 7852IFS=$as_save_IFS 7853 7854fi 7855fi 7856ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7857if test -n "$ac_ct_LIPO"; then 7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7859printf "%s\n" "$ac_ct_LIPO" >&6; } 7860else 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7862printf "%s\n" "no" >&6; } 7863fi 7864 7865 if test "x$ac_ct_LIPO" = x; then 7866 LIPO=":" 7867 else 7868 case $cross_compiling:$ac_tool_warned in 7869yes:) 7870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7871printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7872ac_tool_warned=yes ;; 7873esac 7874 LIPO=$ac_ct_LIPO 7875 fi 7876else 7877 LIPO="$ac_cv_prog_LIPO" 7878fi 7879 7880 if test -n "$ac_tool_prefix"; then 7881 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7882set dummy ${ac_tool_prefix}otool; ac_word=$2 7883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7884printf %s "checking for $ac_word... " >&6; } 7885if test ${ac_cv_prog_OTOOL+y} 7886then : 7887 printf %s "(cached) " >&6 7888else $as_nop 7889 if test -n "$OTOOL"; then 7890 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7891else 7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7893for as_dir in $PATH 7894do 7895 IFS=$as_save_IFS 7896 case $as_dir in #((( 7897 '') as_dir=./ ;; 7898 */) ;; 7899 *) as_dir=$as_dir/ ;; 7900 esac 7901 for ac_exec_ext in '' $ac_executable_extensions; do 7902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7903 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7905 break 2 7906 fi 7907done 7908 done 7909IFS=$as_save_IFS 7910 7911fi 7912fi 7913OTOOL=$ac_cv_prog_OTOOL 7914if test -n "$OTOOL"; then 7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7916printf "%s\n" "$OTOOL" >&6; } 7917else 7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7919printf "%s\n" "no" >&6; } 7920fi 7921 7922 7923fi 7924if test -z "$ac_cv_prog_OTOOL"; then 7925 ac_ct_OTOOL=$OTOOL 7926 # Extract the first word of "otool", so it can be a program name with args. 7927set dummy otool; ac_word=$2 7928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7929printf %s "checking for $ac_word... " >&6; } 7930if test ${ac_cv_prog_ac_ct_OTOOL+y} 7931then : 7932 printf %s "(cached) " >&6 7933else $as_nop 7934 if test -n "$ac_ct_OTOOL"; then 7935 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7936else 7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7938for as_dir in $PATH 7939do 7940 IFS=$as_save_IFS 7941 case $as_dir in #((( 7942 '') as_dir=./ ;; 7943 */) ;; 7944 *) as_dir=$as_dir/ ;; 7945 esac 7946 for ac_exec_ext in '' $ac_executable_extensions; do 7947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7948 ac_cv_prog_ac_ct_OTOOL="otool" 7949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7950 break 2 7951 fi 7952done 7953 done 7954IFS=$as_save_IFS 7955 7956fi 7957fi 7958ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7959if test -n "$ac_ct_OTOOL"; then 7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7961printf "%s\n" "$ac_ct_OTOOL" >&6; } 7962else 7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7964printf "%s\n" "no" >&6; } 7965fi 7966 7967 if test "x$ac_ct_OTOOL" = x; then 7968 OTOOL=":" 7969 else 7970 case $cross_compiling:$ac_tool_warned in 7971yes:) 7972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7973printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7974ac_tool_warned=yes ;; 7975esac 7976 OTOOL=$ac_ct_OTOOL 7977 fi 7978else 7979 OTOOL="$ac_cv_prog_OTOOL" 7980fi 7981 7982 if test -n "$ac_tool_prefix"; then 7983 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7984set dummy ${ac_tool_prefix}otool64; ac_word=$2 7985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7986printf %s "checking for $ac_word... " >&6; } 7987if test ${ac_cv_prog_OTOOL64+y} 7988then : 7989 printf %s "(cached) " >&6 7990else $as_nop 7991 if test -n "$OTOOL64"; then 7992 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7993else 7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7995for as_dir in $PATH 7996do 7997 IFS=$as_save_IFS 7998 case $as_dir in #((( 7999 '') as_dir=./ ;; 8000 */) ;; 8001 *) as_dir=$as_dir/ ;; 8002 esac 8003 for ac_exec_ext in '' $ac_executable_extensions; do 8004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8005 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8007 break 2 8008 fi 8009done 8010 done 8011IFS=$as_save_IFS 8012 8013fi 8014fi 8015OTOOL64=$ac_cv_prog_OTOOL64 8016if test -n "$OTOOL64"; then 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8018printf "%s\n" "$OTOOL64" >&6; } 8019else 8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8021printf "%s\n" "no" >&6; } 8022fi 8023 8024 8025fi 8026if test -z "$ac_cv_prog_OTOOL64"; then 8027 ac_ct_OTOOL64=$OTOOL64 8028 # Extract the first word of "otool64", so it can be a program name with args. 8029set dummy otool64; ac_word=$2 8030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8031printf %s "checking for $ac_word... " >&6; } 8032if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8033then : 8034 printf %s "(cached) " >&6 8035else $as_nop 8036 if test -n "$ac_ct_OTOOL64"; then 8037 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8038else 8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040for as_dir in $PATH 8041do 8042 IFS=$as_save_IFS 8043 case $as_dir in #((( 8044 '') as_dir=./ ;; 8045 */) ;; 8046 *) as_dir=$as_dir/ ;; 8047 esac 8048 for ac_exec_ext in '' $ac_executable_extensions; do 8049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8050 ac_cv_prog_ac_ct_OTOOL64="otool64" 8051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8052 break 2 8053 fi 8054done 8055 done 8056IFS=$as_save_IFS 8057 8058fi 8059fi 8060ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8061if test -n "$ac_ct_OTOOL64"; then 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8063printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8064else 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8066printf "%s\n" "no" >&6; } 8067fi 8068 8069 if test "x$ac_ct_OTOOL64" = x; then 8070 OTOOL64=":" 8071 else 8072 case $cross_compiling:$ac_tool_warned in 8073yes:) 8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8075printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8076ac_tool_warned=yes ;; 8077esac 8078 OTOOL64=$ac_ct_OTOOL64 8079 fi 8080else 8081 OTOOL64="$ac_cv_prog_OTOOL64" 8082fi 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8111printf %s "checking for -single_module linker flag... " >&6; } 8112if test ${lt_cv_apple_cc_single_mod+y} 8113then : 8114 printf %s "(cached) " >&6 8115else $as_nop 8116 lt_cv_apple_cc_single_mod=no 8117 if test -z "$LT_MULTI_MODULE"; then 8118 # By default we will add the -single_module flag. You can override 8119 # by either setting the environment variable LT_MULTI_MODULE 8120 # non-empty at configure time, or by adding -multi_module to the 8121 # link flags. 8122 rm -rf libconftest.dylib* 8123 echo "int foo(void){return 1;}" > conftest.c 8124 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8125-dynamiclib -Wl,-single_module conftest.c" >&5 8126 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8127 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8128 _lt_result=$? 8129 # If there is a non-empty error log, and "single_module" 8130 # appears in it, assume the flag caused a linker warning 8131 if test -s conftest.err && $GREP single_module conftest.err; then 8132 cat conftest.err >&5 8133 # Otherwise, if the output was created with a 0 exit code from 8134 # the compiler, it worked. 8135 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8136 lt_cv_apple_cc_single_mod=yes 8137 else 8138 cat conftest.err >&5 8139 fi 8140 rm -rf libconftest.dylib* 8141 rm -f conftest.* 8142 fi 8143fi 8144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8145printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8146 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8148printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8149if test ${lt_cv_ld_exported_symbols_list+y} 8150then : 8151 printf %s "(cached) " >&6 8152else $as_nop 8153 lt_cv_ld_exported_symbols_list=no 8154 save_LDFLAGS=$LDFLAGS 8155 echo "_main" > conftest.sym 8156 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8158/* end confdefs.h. */ 8159 8160int 8161main (void) 8162{ 8163 8164 ; 8165 return 0; 8166} 8167_ACEOF 8168if ac_fn_c_try_link "$LINENO" 8169then : 8170 lt_cv_ld_exported_symbols_list=yes 8171else $as_nop 8172 lt_cv_ld_exported_symbols_list=no 8173fi 8174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8175 conftest$ac_exeext conftest.$ac_ext 8176 LDFLAGS=$save_LDFLAGS 8177 8178fi 8179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8180printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8181 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8183printf %s "checking for -force_load linker flag... " >&6; } 8184if test ${lt_cv_ld_force_load+y} 8185then : 8186 printf %s "(cached) " >&6 8187else $as_nop 8188 lt_cv_ld_force_load=no 8189 cat > conftest.c << _LT_EOF 8190int forced_loaded() { return 2;} 8191_LT_EOF 8192 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8193 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8194 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8195 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8196 echo "$RANLIB libconftest.a" >&5 8197 $RANLIB libconftest.a 2>&5 8198 cat > conftest.c << _LT_EOF 8199int main() { return 0;} 8200_LT_EOF 8201 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8202 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8203 _lt_result=$? 8204 if test -s conftest.err && $GREP force_load conftest.err; then 8205 cat conftest.err >&5 8206 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8207 lt_cv_ld_force_load=yes 8208 else 8209 cat conftest.err >&5 8210 fi 8211 rm -f conftest.err libconftest.a conftest conftest.c 8212 rm -rf conftest.dSYM 8213 8214fi 8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8216printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8217 case $host_os in 8218 rhapsody* | darwin1.[012]) 8219 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8220 darwin1.*) 8221 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8222 darwin*) 8223 case $MACOSX_DEPLOYMENT_TARGET,$host in 8224 10.[012],*|,*powerpc*-darwin[5-8]*) 8225 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8226 *) 8227 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8228 esac 8229 ;; 8230 esac 8231 if test yes = "$lt_cv_apple_cc_single_mod"; then 8232 _lt_dar_single_mod='$single_module' 8233 fi 8234 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8235 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8236 else 8237 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8238 fi 8239 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8240 _lt_dsymutil='~$DSYMUTIL $lib || :' 8241 else 8242 _lt_dsymutil= 8243 fi 8244 ;; 8245 esac 8246 8247# func_munge_path_list VARIABLE PATH 8248# ----------------------------------- 8249# VARIABLE is name of variable containing _space_ separated list of 8250# directories to be munged by the contents of PATH, which is string 8251# having a format: 8252# "DIR[:DIR]:" 8253# string "DIR[ DIR]" will be prepended to VARIABLE 8254# ":DIR[:DIR]" 8255# string "DIR[ DIR]" will be appended to VARIABLE 8256# "DIRP[:DIRP]::[DIRA:]DIRA" 8257# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8258# "DIRA[ DIRA]" will be appended to VARIABLE 8259# "DIR[:DIR]" 8260# VARIABLE will be replaced by "DIR[ DIR]" 8261func_munge_path_list () 8262{ 8263 case x$2 in 8264 x) 8265 ;; 8266 *:) 8267 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8268 ;; 8269 x:*) 8270 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8271 ;; 8272 *::*) 8273 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8274 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8275 ;; 8276 *) 8277 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8278 ;; 8279 esac 8280} 8281 8282ac_header= ac_cache= 8283for ac_item in $ac_header_c_list 8284do 8285 if test $ac_cache; then 8286 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8287 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8288 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8289 fi 8290 ac_header= ac_cache= 8291 elif test $ac_header; then 8292 ac_cache=$ac_item 8293 else 8294 ac_header=$ac_item 8295 fi 8296done 8297 8298 8299 8300 8301 8302 8303 8304 8305if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8306then : 8307 8308printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8309 8310fi 8311ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8312" 8313if test "x$ac_cv_header_dlfcn_h" = xyes 8314then : 8315 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8316 8317fi 8318 8319 8320 8321 8322 8323# Set options 8324 8325 8326 8327 enable_dlopen=no 8328 8329 8330 enable_win32_dll=no 8331 8332 8333 # Check whether --enable-shared was given. 8334if test ${enable_shared+y} 8335then : 8336 enableval=$enable_shared; p=${PACKAGE-default} 8337 case $enableval in 8338 yes) enable_shared=yes ;; 8339 no) enable_shared=no ;; 8340 *) 8341 enable_shared=no 8342 # Look at the argument we got. We use all the common list separators. 8343 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8344 for pkg in $enableval; do 8345 IFS=$lt_save_ifs 8346 if test "X$pkg" = "X$p"; then 8347 enable_shared=yes 8348 fi 8349 done 8350 IFS=$lt_save_ifs 8351 ;; 8352 esac 8353else $as_nop 8354 enable_shared=yes 8355fi 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 # Check whether --enable-static was given. 8366if test ${enable_static+y} 8367then : 8368 enableval=$enable_static; p=${PACKAGE-default} 8369 case $enableval in 8370 yes) enable_static=yes ;; 8371 no) enable_static=no ;; 8372 *) 8373 enable_static=no 8374 # Look at the argument we got. We use all the common list separators. 8375 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8376 for pkg in $enableval; do 8377 IFS=$lt_save_ifs 8378 if test "X$pkg" = "X$p"; then 8379 enable_static=yes 8380 fi 8381 done 8382 IFS=$lt_save_ifs 8383 ;; 8384 esac 8385else $as_nop 8386 enable_static=yes 8387fi 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398# Check whether --with-pic was given. 8399if test ${with_pic+y} 8400then : 8401 withval=$with_pic; lt_p=${PACKAGE-default} 8402 case $withval in 8403 yes|no) pic_mode=$withval ;; 8404 *) 8405 pic_mode=default 8406 # Look at the argument we got. We use all the common list separators. 8407 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8408 for lt_pkg in $withval; do 8409 IFS=$lt_save_ifs 8410 if test "X$lt_pkg" = "X$lt_p"; then 8411 pic_mode=yes 8412 fi 8413 done 8414 IFS=$lt_save_ifs 8415 ;; 8416 esac 8417else $as_nop 8418 pic_mode=default 8419fi 8420 8421 8422 8423 8424 8425 8426 8427 8428 # Check whether --enable-fast-install was given. 8429if test ${enable_fast_install+y} 8430then : 8431 enableval=$enable_fast_install; p=${PACKAGE-default} 8432 case $enableval in 8433 yes) enable_fast_install=yes ;; 8434 no) enable_fast_install=no ;; 8435 *) 8436 enable_fast_install=no 8437 # Look at the argument we got. We use all the common list separators. 8438 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8439 for pkg in $enableval; do 8440 IFS=$lt_save_ifs 8441 if test "X$pkg" = "X$p"; then 8442 enable_fast_install=yes 8443 fi 8444 done 8445 IFS=$lt_save_ifs 8446 ;; 8447 esac 8448else $as_nop 8449 enable_fast_install=yes 8450fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 shared_archive_member_spec= 8460case $host,$enable_shared in 8461power*-*-aix[5-9]*,yes) 8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8463printf %s "checking which variant of shared library versioning to provide... " >&6; } 8464 8465# Check whether --with-aix-soname was given. 8466if test ${with_aix_soname+y} 8467then : 8468 withval=$with_aix_soname; case $withval in 8469 aix|svr4|both) 8470 ;; 8471 *) 8472 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8473 ;; 8474 esac 8475 lt_cv_with_aix_soname=$with_aix_soname 8476else $as_nop 8477 if test ${lt_cv_with_aix_soname+y} 8478then : 8479 printf %s "(cached) " >&6 8480else $as_nop 8481 lt_cv_with_aix_soname=aix 8482fi 8483 8484 with_aix_soname=$lt_cv_with_aix_soname 8485fi 8486 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8488printf "%s\n" "$with_aix_soname" >&6; } 8489 if test aix != "$with_aix_soname"; then 8490 # For the AIX way of multilib, we name the shared archive member 8491 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8492 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8493 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8494 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8495 if test 64 = "${OBJECT_MODE-32}"; then 8496 shared_archive_member_spec=shr_64 8497 else 8498 shared_archive_member_spec=shr 8499 fi 8500 fi 8501 ;; 8502*) 8503 with_aix_soname=aix 8504 ;; 8505esac 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516# This can be used to rebuild libtool when needed 8517LIBTOOL_DEPS=$ltmain 8518 8519# Always use our own libtool. 8520LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551test -z "$LN_S" && LN_S="ln -s" 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566if test -n "${ZSH_VERSION+set}"; then 8567 setopt NO_GLOB_SUBST 8568fi 8569 8570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8571printf %s "checking for objdir... " >&6; } 8572if test ${lt_cv_objdir+y} 8573then : 8574 printf %s "(cached) " >&6 8575else $as_nop 8576 rm -f .libs 2>/dev/null 8577mkdir .libs 2>/dev/null 8578if test -d .libs; then 8579 lt_cv_objdir=.libs 8580else 8581 # MS-DOS does not allow filenames that begin with a dot. 8582 lt_cv_objdir=_libs 8583fi 8584rmdir .libs 2>/dev/null 8585fi 8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8587printf "%s\n" "$lt_cv_objdir" >&6; } 8588objdir=$lt_cv_objdir 8589 8590 8591 8592 8593 8594printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8595 8596 8597 8598 8599case $host_os in 8600aix3*) 8601 # AIX sometimes has problems with the GCC collect2 program. For some 8602 # reason, if we set the COLLECT_NAMES environment variable, the problems 8603 # vanish in a puff of smoke. 8604 if test set != "${COLLECT_NAMES+set}"; then 8605 COLLECT_NAMES= 8606 export COLLECT_NAMES 8607 fi 8608 ;; 8609esac 8610 8611# Global variables: 8612ofile=libtool 8613can_build_shared=yes 8614 8615# All known linkers require a '.a' archive for static linking (except MSVC and 8616# ICC, which need '.lib'). 8617libext=a 8618 8619with_gnu_ld=$lt_cv_prog_gnu_ld 8620 8621old_CC=$CC 8622old_CFLAGS=$CFLAGS 8623 8624# Set sane defaults for various variables 8625test -z "$CC" && CC=cc 8626test -z "$LTCC" && LTCC=$CC 8627test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8628test -z "$LD" && LD=ld 8629test -z "$ac_objext" && ac_objext=o 8630 8631func_cc_basename $compiler 8632cc_basename=$func_cc_basename_result 8633 8634 8635# Only perform the check for file, if the check method requires it 8636test -z "$MAGIC_CMD" && MAGIC_CMD=file 8637case $deplibs_check_method in 8638file_magic*) 8639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8641printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8642if test ${lt_cv_path_MAGIC_CMD+y} 8643then : 8644 printf %s "(cached) " >&6 8645else $as_nop 8646 case $MAGIC_CMD in 8647[\\/*] | ?:[\\/]*) 8648 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8649 ;; 8650*) 8651 lt_save_MAGIC_CMD=$MAGIC_CMD 8652 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8654 for ac_dir in $ac_dummy; do 8655 IFS=$lt_save_ifs 8656 test -z "$ac_dir" && ac_dir=. 8657 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8658 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8659 if test -n "$file_magic_test_file"; then 8660 case $deplibs_check_method in 8661 "file_magic "*) 8662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8663 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8665 $EGREP "$file_magic_regex" > /dev/null; then 8666 : 8667 else 8668 cat <<_LT_EOF 1>&2 8669 8670*** Warning: the command libtool uses to detect shared libraries, 8671*** $file_magic_cmd, produces output that libtool cannot recognize. 8672*** The result is that libtool may fail to recognize shared libraries 8673*** as such. This will affect the creation of libtool libraries that 8674*** depend on shared libraries, but programs linked with such libtool 8675*** libraries will work regardless of this problem. Nevertheless, you 8676*** may want to report the problem to your system manager and/or to 8677*** bug-libtool@gnu.org 8678 8679_LT_EOF 8680 fi ;; 8681 esac 8682 fi 8683 break 8684 fi 8685 done 8686 IFS=$lt_save_ifs 8687 MAGIC_CMD=$lt_save_MAGIC_CMD 8688 ;; 8689esac 8690fi 8691 8692MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8693if test -n "$MAGIC_CMD"; then 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8695printf "%s\n" "$MAGIC_CMD" >&6; } 8696else 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8698printf "%s\n" "no" >&6; } 8699fi 8700 8701 8702 8703 8704 8705if test -z "$lt_cv_path_MAGIC_CMD"; then 8706 if test -n "$ac_tool_prefix"; then 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8708printf %s "checking for file... " >&6; } 8709if test ${lt_cv_path_MAGIC_CMD+y} 8710then : 8711 printf %s "(cached) " >&6 8712else $as_nop 8713 case $MAGIC_CMD in 8714[\\/*] | ?:[\\/]*) 8715 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8716 ;; 8717*) 8718 lt_save_MAGIC_CMD=$MAGIC_CMD 8719 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8721 for ac_dir in $ac_dummy; do 8722 IFS=$lt_save_ifs 8723 test -z "$ac_dir" && ac_dir=. 8724 if test -f "$ac_dir/file"; then 8725 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8726 if test -n "$file_magic_test_file"; then 8727 case $deplibs_check_method in 8728 "file_magic "*) 8729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8730 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8732 $EGREP "$file_magic_regex" > /dev/null; then 8733 : 8734 else 8735 cat <<_LT_EOF 1>&2 8736 8737*** Warning: the command libtool uses to detect shared libraries, 8738*** $file_magic_cmd, produces output that libtool cannot recognize. 8739*** The result is that libtool may fail to recognize shared libraries 8740*** as such. This will affect the creation of libtool libraries that 8741*** depend on shared libraries, but programs linked with such libtool 8742*** libraries will work regardless of this problem. Nevertheless, you 8743*** may want to report the problem to your system manager and/or to 8744*** bug-libtool@gnu.org 8745 8746_LT_EOF 8747 fi ;; 8748 esac 8749 fi 8750 break 8751 fi 8752 done 8753 IFS=$lt_save_ifs 8754 MAGIC_CMD=$lt_save_MAGIC_CMD 8755 ;; 8756esac 8757fi 8758 8759MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8760if test -n "$MAGIC_CMD"; then 8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8762printf "%s\n" "$MAGIC_CMD" >&6; } 8763else 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8765printf "%s\n" "no" >&6; } 8766fi 8767 8768 8769 else 8770 MAGIC_CMD=: 8771 fi 8772fi 8773 8774 fi 8775 ;; 8776esac 8777 8778# Use C for the default configuration in the libtool script 8779 8780lt_save_CC=$CC 8781ac_ext=c 8782ac_cpp='$CPP $CPPFLAGS' 8783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8785ac_compiler_gnu=$ac_cv_c_compiler_gnu 8786 8787 8788# Source file extension for C test sources. 8789ac_ext=c 8790 8791# Object file extension for compiled C test sources. 8792objext=o 8793objext=$objext 8794 8795# Code to be used in simple compile tests 8796lt_simple_compile_test_code="int some_variable = 0;" 8797 8798# Code to be used in simple link tests 8799lt_simple_link_test_code='int main(){return(0);}' 8800 8801 8802 8803 8804 8805 8806 8807# If no C compiler was specified, use CC. 8808LTCC=${LTCC-"$CC"} 8809 8810# If no C compiler flags were specified, use CFLAGS. 8811LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8812 8813# Allow CC to be a program name with arguments. 8814compiler=$CC 8815 8816# Save the default compiler, since it gets overwritten when the other 8817# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8818compiler_DEFAULT=$CC 8819 8820# save warnings/boilerplate of simple test code 8821ac_outfile=conftest.$ac_objext 8822echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8823eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8824_lt_compiler_boilerplate=`cat conftest.err` 8825$RM conftest* 8826 8827ac_outfile=conftest.$ac_objext 8828echo "$lt_simple_link_test_code" >conftest.$ac_ext 8829eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8830_lt_linker_boilerplate=`cat conftest.err` 8831$RM -r conftest* 8832 8833 8834## CAVEAT EMPTOR: 8835## There is no encapsulation within the following macros, do not change 8836## the running order or otherwise move them around unless you know exactly 8837## what you are doing... 8838if test -n "$compiler"; then 8839 8840lt_prog_compiler_no_builtin_flag= 8841 8842if test yes = "$GCC"; then 8843 case $cc_basename in 8844 nvcc*) 8845 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8846 *) 8847 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8848 esac 8849 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8851printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8852if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8853then : 8854 printf %s "(cached) " >&6 8855else $as_nop 8856 lt_cv_prog_compiler_rtti_exceptions=no 8857 ac_outfile=conftest.$ac_objext 8858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8859 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8860 # Insert the option either (1) after the last *FLAGS variable, or 8861 # (2) before a word containing "conftest.", or (3) at the end. 8862 # Note that $ac_compile itself does not contain backslashes and begins 8863 # with a dollar sign (not a hyphen), so the echo should work correctly. 8864 # The option is referenced via a variable to avoid confusing sed. 8865 lt_compile=`echo "$ac_compile" | $SED \ 8866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8868 -e 's:$: $lt_compiler_flag:'` 8869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8870 (eval "$lt_compile" 2>conftest.err) 8871 ac_status=$? 8872 cat conftest.err >&5 8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8874 if (exit $ac_status) && test -s "$ac_outfile"; then 8875 # The compiler can only warn and ignore the option if not recognized 8876 # So say no if there are warnings other than the usual output. 8877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8880 lt_cv_prog_compiler_rtti_exceptions=yes 8881 fi 8882 fi 8883 $RM conftest* 8884 8885fi 8886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8887printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8888 8889if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8890 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8891else 8892 : 8893fi 8894 8895fi 8896 8897 8898 8899 8900 8901 8902 lt_prog_compiler_wl= 8903lt_prog_compiler_pic= 8904lt_prog_compiler_static= 8905 8906 8907 if test yes = "$GCC"; then 8908 lt_prog_compiler_wl='-Wl,' 8909 lt_prog_compiler_static='-static' 8910 8911 case $host_os in 8912 aix*) 8913 # All AIX code is PIC. 8914 if test ia64 = "$host_cpu"; then 8915 # AIX 5 now supports IA64 processor 8916 lt_prog_compiler_static='-Bstatic' 8917 fi 8918 lt_prog_compiler_pic='-fPIC' 8919 ;; 8920 8921 amigaos*) 8922 case $host_cpu in 8923 powerpc) 8924 # see comment about AmigaOS4 .so support 8925 lt_prog_compiler_pic='-fPIC' 8926 ;; 8927 m68k) 8928 # FIXME: we need at least 68020 code to build shared libraries, but 8929 # adding the '-m68020' flag to GCC prevents building anything better, 8930 # like '-m68040'. 8931 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8932 ;; 8933 esac 8934 ;; 8935 8936 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8937 # PIC is the default for these OSes. 8938 ;; 8939 8940 mingw* | cygwin* | pw32* | os2* | cegcc*) 8941 # This hack is so that the source file can tell whether it is being 8942 # built for inclusion in a dll (and should export symbols for example). 8943 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8944 # (--disable-auto-import) libraries 8945 lt_prog_compiler_pic='-DDLL_EXPORT' 8946 case $host_os in 8947 os2*) 8948 lt_prog_compiler_static='$wl-static' 8949 ;; 8950 esac 8951 ;; 8952 8953 darwin* | rhapsody*) 8954 # PIC is the default on this platform 8955 # Common symbols not allowed in MH_DYLIB files 8956 lt_prog_compiler_pic='-fno-common' 8957 ;; 8958 8959 haiku*) 8960 # PIC is the default for Haiku. 8961 # The "-static" flag exists, but is broken. 8962 lt_prog_compiler_static= 8963 ;; 8964 8965 hpux*) 8966 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8967 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8968 # sets the default TLS model and affects inlining. 8969 case $host_cpu in 8970 hppa*64*) 8971 # +Z the default 8972 ;; 8973 *) 8974 lt_prog_compiler_pic='-fPIC' 8975 ;; 8976 esac 8977 ;; 8978 8979 interix[3-9]*) 8980 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8981 # Instead, we relocate shared libraries at runtime. 8982 ;; 8983 8984 msdosdjgpp*) 8985 # Just because we use GCC doesn't mean we suddenly get shared libraries 8986 # on systems that don't support them. 8987 lt_prog_compiler_can_build_shared=no 8988 enable_shared=no 8989 ;; 8990 8991 *nto* | *qnx*) 8992 # QNX uses GNU C++, but need to define -shared option too, otherwise 8993 # it will coredump. 8994 lt_prog_compiler_pic='-fPIC -shared' 8995 ;; 8996 8997 sysv4*MP*) 8998 if test -d /usr/nec; then 8999 lt_prog_compiler_pic=-Kconform_pic 9000 fi 9001 ;; 9002 9003 *) 9004 lt_prog_compiler_pic='-fPIC' 9005 ;; 9006 esac 9007 9008 case $cc_basename in 9009 nvcc*) # Cuda Compiler Driver 2.2 9010 lt_prog_compiler_wl='-Xlinker ' 9011 if test -n "$lt_prog_compiler_pic"; then 9012 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9013 fi 9014 ;; 9015 esac 9016 else 9017 # PORTME Check for flag to pass linker flags through the system compiler. 9018 case $host_os in 9019 aix*) 9020 lt_prog_compiler_wl='-Wl,' 9021 if test ia64 = "$host_cpu"; then 9022 # AIX 5 now supports IA64 processor 9023 lt_prog_compiler_static='-Bstatic' 9024 else 9025 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9026 fi 9027 ;; 9028 9029 darwin* | rhapsody*) 9030 # PIC is the default on this platform 9031 # Common symbols not allowed in MH_DYLIB files 9032 lt_prog_compiler_pic='-fno-common' 9033 case $cc_basename in 9034 nagfor*) 9035 # NAG Fortran compiler 9036 lt_prog_compiler_wl='-Wl,-Wl,,' 9037 lt_prog_compiler_pic='-PIC' 9038 lt_prog_compiler_static='-Bstatic' 9039 ;; 9040 esac 9041 ;; 9042 9043 mingw* | cygwin* | pw32* | os2* | cegcc*) 9044 # This hack is so that the source file can tell whether it is being 9045 # built for inclusion in a dll (and should export symbols for example). 9046 lt_prog_compiler_pic='-DDLL_EXPORT' 9047 case $host_os in 9048 os2*) 9049 lt_prog_compiler_static='$wl-static' 9050 ;; 9051 esac 9052 ;; 9053 9054 hpux9* | hpux10* | hpux11*) 9055 lt_prog_compiler_wl='-Wl,' 9056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9057 # not for PA HP-UX. 9058 case $host_cpu in 9059 hppa*64*|ia64*) 9060 # +Z the default 9061 ;; 9062 *) 9063 lt_prog_compiler_pic='+Z' 9064 ;; 9065 esac 9066 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9067 lt_prog_compiler_static='$wl-a ${wl}archive' 9068 ;; 9069 9070 irix5* | irix6* | nonstopux*) 9071 lt_prog_compiler_wl='-Wl,' 9072 # PIC (with -KPIC) is the default. 9073 lt_prog_compiler_static='-non_shared' 9074 ;; 9075 9076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9077 case $cc_basename in 9078 # old Intel for x86_64, which still supported -KPIC. 9079 ecc*) 9080 lt_prog_compiler_wl='-Wl,' 9081 lt_prog_compiler_pic='-KPIC' 9082 lt_prog_compiler_static='-static' 9083 ;; 9084 # flang / f18. f95 an alias for gfortran or flang on Debian 9085 flang* | f18* | f95*) 9086 lt_prog_compiler_wl='-Wl,' 9087 lt_prog_compiler_pic='-fPIC' 9088 lt_prog_compiler_static='-static' 9089 ;; 9090 # icc used to be incompatible with GCC. 9091 # ICC 10 doesn't accept -KPIC any more. 9092 icc* | ifort*) 9093 lt_prog_compiler_wl='-Wl,' 9094 lt_prog_compiler_pic='-fPIC' 9095 lt_prog_compiler_static='-static' 9096 ;; 9097 # Lahey Fortran 8.1. 9098 lf95*) 9099 lt_prog_compiler_wl='-Wl,' 9100 lt_prog_compiler_pic='--shared' 9101 lt_prog_compiler_static='--static' 9102 ;; 9103 nagfor*) 9104 # NAG Fortran compiler 9105 lt_prog_compiler_wl='-Wl,-Wl,,' 9106 lt_prog_compiler_pic='-PIC' 9107 lt_prog_compiler_static='-Bstatic' 9108 ;; 9109 tcc*) 9110 # Fabrice Bellard et al's Tiny C Compiler 9111 lt_prog_compiler_wl='-Wl,' 9112 lt_prog_compiler_pic='-fPIC' 9113 lt_prog_compiler_static='-static' 9114 ;; 9115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9116 # Portland Group compilers (*not* the Pentium gcc compiler, 9117 # which looks to be a dead project) 9118 lt_prog_compiler_wl='-Wl,' 9119 lt_prog_compiler_pic='-fpic' 9120 lt_prog_compiler_static='-Bstatic' 9121 ;; 9122 ccc*) 9123 lt_prog_compiler_wl='-Wl,' 9124 # All Alpha code is PIC. 9125 lt_prog_compiler_static='-non_shared' 9126 ;; 9127 xl* | bgxl* | bgf* | mpixl*) 9128 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9129 lt_prog_compiler_wl='-Wl,' 9130 lt_prog_compiler_pic='-qpic' 9131 lt_prog_compiler_static='-qstaticlink' 9132 ;; 9133 *) 9134 case `$CC -V 2>&1 | $SED 5q` in 9135 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9136 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9137 lt_prog_compiler_pic='-KPIC' 9138 lt_prog_compiler_static='-Bstatic' 9139 lt_prog_compiler_wl='' 9140 ;; 9141 *Sun\ F* | *Sun*Fortran*) 9142 lt_prog_compiler_pic='-KPIC' 9143 lt_prog_compiler_static='-Bstatic' 9144 lt_prog_compiler_wl='-Qoption ld ' 9145 ;; 9146 *Sun\ C*) 9147 # Sun C 5.9 9148 lt_prog_compiler_pic='-KPIC' 9149 lt_prog_compiler_static='-Bstatic' 9150 lt_prog_compiler_wl='-Wl,' 9151 ;; 9152 *Intel*\ [CF]*Compiler*) 9153 lt_prog_compiler_wl='-Wl,' 9154 lt_prog_compiler_pic='-fPIC' 9155 lt_prog_compiler_static='-static' 9156 ;; 9157 *Portland\ Group*) 9158 lt_prog_compiler_wl='-Wl,' 9159 lt_prog_compiler_pic='-fpic' 9160 lt_prog_compiler_static='-Bstatic' 9161 ;; 9162 esac 9163 ;; 9164 esac 9165 ;; 9166 9167 newsos6) 9168 lt_prog_compiler_pic='-KPIC' 9169 lt_prog_compiler_static='-Bstatic' 9170 ;; 9171 9172 *nto* | *qnx*) 9173 # QNX uses GNU C++, but need to define -shared option too, otherwise 9174 # it will coredump. 9175 lt_prog_compiler_pic='-fPIC -shared' 9176 ;; 9177 9178 osf3* | osf4* | osf5*) 9179 lt_prog_compiler_wl='-Wl,' 9180 # All OSF/1 code is PIC. 9181 lt_prog_compiler_static='-non_shared' 9182 ;; 9183 9184 rdos*) 9185 lt_prog_compiler_static='-non_shared' 9186 ;; 9187 9188 solaris*) 9189 lt_prog_compiler_pic='-KPIC' 9190 lt_prog_compiler_static='-Bstatic' 9191 case $cc_basename in 9192 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9193 lt_prog_compiler_wl='-Qoption ld ';; 9194 *) 9195 lt_prog_compiler_wl='-Wl,';; 9196 esac 9197 ;; 9198 9199 sunos4*) 9200 lt_prog_compiler_wl='-Qoption ld ' 9201 lt_prog_compiler_pic='-PIC' 9202 lt_prog_compiler_static='-Bstatic' 9203 ;; 9204 9205 sysv4 | sysv4.2uw2* | sysv4.3*) 9206 lt_prog_compiler_wl='-Wl,' 9207 lt_prog_compiler_pic='-KPIC' 9208 lt_prog_compiler_static='-Bstatic' 9209 ;; 9210 9211 sysv4*MP*) 9212 if test -d /usr/nec; then 9213 lt_prog_compiler_pic='-Kconform_pic' 9214 lt_prog_compiler_static='-Bstatic' 9215 fi 9216 ;; 9217 9218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9219 lt_prog_compiler_wl='-Wl,' 9220 lt_prog_compiler_pic='-KPIC' 9221 lt_prog_compiler_static='-Bstatic' 9222 ;; 9223 9224 unicos*) 9225 lt_prog_compiler_wl='-Wl,' 9226 lt_prog_compiler_can_build_shared=no 9227 ;; 9228 9229 uts4*) 9230 lt_prog_compiler_pic='-pic' 9231 lt_prog_compiler_static='-Bstatic' 9232 ;; 9233 9234 *) 9235 lt_prog_compiler_can_build_shared=no 9236 ;; 9237 esac 9238 fi 9239 9240case $host_os in 9241 # For platforms that do not support PIC, -DPIC is meaningless: 9242 *djgpp*) 9243 lt_prog_compiler_pic= 9244 ;; 9245 *) 9246 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9247 ;; 9248esac 9249 9250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9251printf %s "checking for $compiler option to produce PIC... " >&6; } 9252if test ${lt_cv_prog_compiler_pic+y} 9253then : 9254 printf %s "(cached) " >&6 9255else $as_nop 9256 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9257fi 9258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9259printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9260lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9261 9262# 9263# Check to make sure the PIC flag actually works. 9264# 9265if test -n "$lt_prog_compiler_pic"; then 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9267printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9268if test ${lt_cv_prog_compiler_pic_works+y} 9269then : 9270 printf %s "(cached) " >&6 9271else $as_nop 9272 lt_cv_prog_compiler_pic_works=no 9273 ac_outfile=conftest.$ac_objext 9274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9275 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9276 # Insert the option either (1) after the last *FLAGS variable, or 9277 # (2) before a word containing "conftest.", or (3) at the end. 9278 # Note that $ac_compile itself does not contain backslashes and begins 9279 # with a dollar sign (not a hyphen), so the echo should work correctly. 9280 # The option is referenced via a variable to avoid confusing sed. 9281 lt_compile=`echo "$ac_compile" | $SED \ 9282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9284 -e 's:$: $lt_compiler_flag:'` 9285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9286 (eval "$lt_compile" 2>conftest.err) 9287 ac_status=$? 9288 cat conftest.err >&5 9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9290 if (exit $ac_status) && test -s "$ac_outfile"; then 9291 # The compiler can only warn and ignore the option if not recognized 9292 # So say no if there are warnings other than the usual output. 9293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9296 lt_cv_prog_compiler_pic_works=yes 9297 fi 9298 fi 9299 $RM conftest* 9300 9301fi 9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9303printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9304 9305if test yes = "$lt_cv_prog_compiler_pic_works"; then 9306 case $lt_prog_compiler_pic in 9307 "" | " "*) ;; 9308 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9309 esac 9310else 9311 lt_prog_compiler_pic= 9312 lt_prog_compiler_can_build_shared=no 9313fi 9314 9315fi 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327# 9328# Check to make sure the static flag actually works. 9329# 9330wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9332printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9333if test ${lt_cv_prog_compiler_static_works+y} 9334then : 9335 printf %s "(cached) " >&6 9336else $as_nop 9337 lt_cv_prog_compiler_static_works=no 9338 save_LDFLAGS=$LDFLAGS 9339 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9340 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9342 # The linker can only warn and ignore the option if not recognized 9343 # So say no if there are warnings 9344 if test -s conftest.err; then 9345 # Append any errors to the config.log. 9346 cat conftest.err 1>&5 9347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9349 if diff conftest.exp conftest.er2 >/dev/null; then 9350 lt_cv_prog_compiler_static_works=yes 9351 fi 9352 else 9353 lt_cv_prog_compiler_static_works=yes 9354 fi 9355 fi 9356 $RM -r conftest* 9357 LDFLAGS=$save_LDFLAGS 9358 9359fi 9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9361printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9362 9363if test yes = "$lt_cv_prog_compiler_static_works"; then 9364 : 9365else 9366 lt_prog_compiler_static= 9367fi 9368 9369 9370 9371 9372 9373 9374 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9376printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9377if test ${lt_cv_prog_compiler_c_o+y} 9378then : 9379 printf %s "(cached) " >&6 9380else $as_nop 9381 lt_cv_prog_compiler_c_o=no 9382 $RM -r conftest 2>/dev/null 9383 mkdir conftest 9384 cd conftest 9385 mkdir out 9386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9387 9388 lt_compiler_flag="-o out/conftest2.$ac_objext" 9389 # Insert the option either (1) after the last *FLAGS variable, or 9390 # (2) before a word containing "conftest.", or (3) at the end. 9391 # Note that $ac_compile itself does not contain backslashes and begins 9392 # with a dollar sign (not a hyphen), so the echo should work correctly. 9393 lt_compile=`echo "$ac_compile" | $SED \ 9394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9396 -e 's:$: $lt_compiler_flag:'` 9397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9398 (eval "$lt_compile" 2>out/conftest.err) 9399 ac_status=$? 9400 cat out/conftest.err >&5 9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9402 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9403 then 9404 # The compiler can only warn and ignore the option if not recognized 9405 # So say no if there are warnings 9406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9409 lt_cv_prog_compiler_c_o=yes 9410 fi 9411 fi 9412 chmod u+w . 2>&5 9413 $RM conftest* 9414 # SGI C++ compiler will create directory out/ii_files/ for 9415 # template instantiation 9416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9417 $RM out/* && rmdir out 9418 cd .. 9419 $RM -r conftest 9420 $RM conftest* 9421 9422fi 9423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9424printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9425 9426 9427 9428 9429 9430 9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9432printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9433if test ${lt_cv_prog_compiler_c_o+y} 9434then : 9435 printf %s "(cached) " >&6 9436else $as_nop 9437 lt_cv_prog_compiler_c_o=no 9438 $RM -r conftest 2>/dev/null 9439 mkdir conftest 9440 cd conftest 9441 mkdir out 9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9443 9444 lt_compiler_flag="-o out/conftest2.$ac_objext" 9445 # Insert the option either (1) after the last *FLAGS variable, or 9446 # (2) before a word containing "conftest.", or (3) at the end. 9447 # Note that $ac_compile itself does not contain backslashes and begins 9448 # with a dollar sign (not a hyphen), so the echo should work correctly. 9449 lt_compile=`echo "$ac_compile" | $SED \ 9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9452 -e 's:$: $lt_compiler_flag:'` 9453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9454 (eval "$lt_compile" 2>out/conftest.err) 9455 ac_status=$? 9456 cat out/conftest.err >&5 9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9458 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9459 then 9460 # The compiler can only warn and ignore the option if not recognized 9461 # So say no if there are warnings 9462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9465 lt_cv_prog_compiler_c_o=yes 9466 fi 9467 fi 9468 chmod u+w . 2>&5 9469 $RM conftest* 9470 # SGI C++ compiler will create directory out/ii_files/ for 9471 # template instantiation 9472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9473 $RM out/* && rmdir out 9474 cd .. 9475 $RM -r conftest 9476 $RM conftest* 9477 9478fi 9479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9480printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9481 9482 9483 9484 9485hard_links=nottested 9486if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9487 # do not overwrite the value of need_locks provided by the user 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9489printf %s "checking if we can lock with hard links... " >&6; } 9490 hard_links=yes 9491 $RM conftest* 9492 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9493 touch conftest.a 9494 ln conftest.a conftest.b 2>&5 || hard_links=no 9495 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9497printf "%s\n" "$hard_links" >&6; } 9498 if test no = "$hard_links"; then 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9500printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9501 need_locks=warn 9502 fi 9503else 9504 need_locks=no 9505fi 9506 9507 9508 9509 9510 9511 9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9513printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9514 9515 runpath_var= 9516 allow_undefined_flag= 9517 always_export_symbols=no 9518 archive_cmds= 9519 archive_expsym_cmds= 9520 compiler_needs_object=no 9521 enable_shared_with_static_runtimes=no 9522 export_dynamic_flag_spec= 9523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9524 hardcode_automatic=no 9525 hardcode_direct=no 9526 hardcode_direct_absolute=no 9527 hardcode_libdir_flag_spec= 9528 hardcode_libdir_separator= 9529 hardcode_minus_L=no 9530 hardcode_shlibpath_var=unsupported 9531 inherit_rpath=no 9532 link_all_deplibs=unknown 9533 module_cmds= 9534 module_expsym_cmds= 9535 old_archive_from_new_cmds= 9536 old_archive_from_expsyms_cmds= 9537 thread_safe_flag_spec= 9538 whole_archive_flag_spec= 9539 # include_expsyms should be a list of space-separated symbols to be *always* 9540 # included in the symbol list 9541 include_expsyms= 9542 # exclude_expsyms can be an extended regexp of symbols to exclude 9543 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9544 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9545 # as well as any symbol that contains 'd'. 9546 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9548 # platforms (ab)use it in PIC code, but their linkers get confused if 9549 # the symbol is explicitly referenced. Since portable code cannot 9550 # rely on this symbol name, it's probably fine to never include it in 9551 # preloaded symbol tables. 9552 # Exclude shared library initialization/finalization symbols. 9553 extract_expsyms_cmds= 9554 9555 case $host_os in 9556 cygwin* | mingw* | pw32* | cegcc*) 9557 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9558 # When not using gcc, we currently assume that we are using 9559 # Microsoft Visual C++ or Intel C++ Compiler. 9560 if test yes != "$GCC"; then 9561 with_gnu_ld=no 9562 fi 9563 ;; 9564 interix*) 9565 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9566 with_gnu_ld=yes 9567 ;; 9568 openbsd* | bitrig*) 9569 with_gnu_ld=no 9570 ;; 9571 linux* | k*bsd*-gnu | gnu*) 9572 link_all_deplibs=no 9573 ;; 9574 esac 9575 9576 ld_shlibs=yes 9577 9578 # On some targets, GNU ld is compatible enough with the native linker 9579 # that we're better off using the native interface for both. 9580 lt_use_gnu_ld_interface=no 9581 if test yes = "$with_gnu_ld"; then 9582 case $host_os in 9583 aix*) 9584 # The AIX port of GNU ld has always aspired to compatibility 9585 # with the native linker. However, as the warning in the GNU ld 9586 # block says, versions before 2.19.5* couldn't really create working 9587 # shared libraries, regardless of the interface used. 9588 case `$LD -v 2>&1` in 9589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9591 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9592 *) 9593 lt_use_gnu_ld_interface=yes 9594 ;; 9595 esac 9596 ;; 9597 *) 9598 lt_use_gnu_ld_interface=yes 9599 ;; 9600 esac 9601 fi 9602 9603 if test yes = "$lt_use_gnu_ld_interface"; then 9604 # If archive_cmds runs LD, not CC, wlarc should be empty 9605 wlarc='$wl' 9606 9607 # Set some defaults for GNU ld with shared library support. These 9608 # are reset later if shared libraries are not supported. Putting them 9609 # here allows them to be overridden if necessary. 9610 runpath_var=LD_RUN_PATH 9611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9612 export_dynamic_flag_spec='$wl--export-dynamic' 9613 # ancient GNU ld didn't support --whole-archive et. al. 9614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9615 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9616 else 9617 whole_archive_flag_spec= 9618 fi 9619 supports_anon_versioning=no 9620 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9621 *GNU\ gold*) supports_anon_versioning=yes ;; 9622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9625 *\ 2.11.*) ;; # other 2.11 versions 9626 *) supports_anon_versioning=yes ;; 9627 esac 9628 9629 # See if GNU ld supports shared libraries. 9630 case $host_os in 9631 aix[3-9]*) 9632 # On AIX/PPC, the GNU linker is very broken 9633 if test ia64 != "$host_cpu"; then 9634 ld_shlibs=no 9635 cat <<_LT_EOF 1>&2 9636 9637*** Warning: the GNU linker, at least up to release 2.19, is reported 9638*** to be unable to reliably create shared libraries on AIX. 9639*** Therefore, libtool is disabling shared libraries support. If you 9640*** really care for shared libraries, you may want to install binutils 9641*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9642*** You will then need to restart the configuration process. 9643 9644_LT_EOF 9645 fi 9646 ;; 9647 9648 amigaos*) 9649 case $host_cpu in 9650 powerpc) 9651 # see comment about AmigaOS4 .so support 9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9653 archive_expsym_cmds='' 9654 ;; 9655 m68k) 9656 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)' 9657 hardcode_libdir_flag_spec='-L$libdir' 9658 hardcode_minus_L=yes 9659 ;; 9660 esac 9661 ;; 9662 9663 beos*) 9664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9665 allow_undefined_flag=unsupported 9666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9667 # support --undefined. This deserves some investigation. FIXME 9668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9669 else 9670 ld_shlibs=no 9671 fi 9672 ;; 9673 9674 cygwin* | mingw* | pw32* | cegcc*) 9675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9676 # as there is no search path for DLLs. 9677 hardcode_libdir_flag_spec='-L$libdir' 9678 export_dynamic_flag_spec='$wl--export-all-symbols' 9679 allow_undefined_flag=unsupported 9680 always_export_symbols=no 9681 enable_shared_with_static_runtimes=yes 9682 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' 9683 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9684 9685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9687 # If the export-symbols file already is a .def file, use it as 9688 # is; otherwise, prepend EXPORTS... 9689 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9690 cp $export_symbols $output_objdir/$soname.def; 9691 else 9692 echo EXPORTS > $output_objdir/$soname.def; 9693 cat $export_symbols >> $output_objdir/$soname.def; 9694 fi~ 9695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9696 else 9697 ld_shlibs=no 9698 fi 9699 ;; 9700 9701 haiku*) 9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9703 link_all_deplibs=yes 9704 ;; 9705 9706 os2*) 9707 hardcode_libdir_flag_spec='-L$libdir' 9708 hardcode_minus_L=yes 9709 allow_undefined_flag=unsupported 9710 shrext_cmds=.dll 9711 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9712 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9713 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9714 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9715 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9717 emximp -o $lib $output_objdir/$libname.def' 9718 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9721 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9722 prefix_cmds="$SED"~ 9723 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9724 prefix_cmds="$prefix_cmds -e 1d"; 9725 fi~ 9726 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9727 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9729 emximp -o $lib $output_objdir/$libname.def' 9730 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9731 enable_shared_with_static_runtimes=yes 9732 file_list_spec='@' 9733 ;; 9734 9735 interix[3-9]*) 9736 hardcode_direct=no 9737 hardcode_shlibpath_var=no 9738 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9739 export_dynamic_flag_spec='$wl-E' 9740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9741 # Instead, shared libraries are loaded at an image base (0x10000000 by 9742 # default) and relocated if they conflict, which is a slow very memory 9743 # consuming and fragmenting process. To avoid this, we pick a random, 9744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9745 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9747 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' 9748 ;; 9749 9750 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9751 tmp_diet=no 9752 if test linux-dietlibc = "$host_os"; then 9753 case $cc_basename in 9754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9755 esac 9756 fi 9757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9758 && test no = "$tmp_diet" 9759 then 9760 tmp_addflag=' $pic_flag' 9761 tmp_sharedflag='-shared' 9762 case $cc_basename,$host_cpu in 9763 pgcc*) # Portland Group C compiler 9764 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' 9765 tmp_addflag=' $pic_flag' 9766 ;; 9767 pgf77* | pgf90* | pgf95* | pgfortran*) 9768 # Portland Group f77 and f90 compilers 9769 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' 9770 tmp_addflag=' $pic_flag -Mnomain' ;; 9771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9772 tmp_addflag=' -i_dynamic' ;; 9773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9774 tmp_addflag=' -i_dynamic -nofor_main' ;; 9775 ifc* | ifort*) # Intel Fortran compiler 9776 tmp_addflag=' -nofor_main' ;; 9777 lf95*) # Lahey Fortran 8.1 9778 whole_archive_flag_spec= 9779 tmp_sharedflag='--shared' ;; 9780 nagfor*) # NAGFOR 5.3 9781 tmp_sharedflag='-Wl,-shared' ;; 9782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9783 tmp_sharedflag='-qmkshrobj' 9784 tmp_addflag= ;; 9785 nvcc*) # Cuda Compiler Driver 2.2 9786 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' 9787 compiler_needs_object=yes 9788 ;; 9789 esac 9790 case `$CC -V 2>&1 | $SED 5q` in 9791 *Sun\ C*) # Sun C 5.9 9792 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' 9793 compiler_needs_object=yes 9794 tmp_sharedflag='-G' ;; 9795 *Sun\ F*) # Sun Fortran 8.3 9796 tmp_sharedflag='-G' ;; 9797 esac 9798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9799 9800 if test yes = "$supports_anon_versioning"; then 9801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9802 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9803 echo "local: *; };" >> $output_objdir/$libname.ver~ 9804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9805 fi 9806 9807 case $cc_basename in 9808 tcc*) 9809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9810 export_dynamic_flag_spec='-rdynamic' 9811 ;; 9812 xlf* | bgf* | bgxlf* | mpixlf*) 9813 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9814 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9815 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9816 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9817 if test yes = "$supports_anon_versioning"; then 9818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9819 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9820 echo "local: *; };" >> $output_objdir/$libname.ver~ 9821 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9822 fi 9823 ;; 9824 esac 9825 else 9826 ld_shlibs=no 9827 fi 9828 ;; 9829 9830 netbsd* | netbsdelf*-gnu) 9831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9832 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9833 wlarc= 9834 else 9835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9836 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9837 fi 9838 ;; 9839 9840 solaris*) 9841 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9842 ld_shlibs=no 9843 cat <<_LT_EOF 1>&2 9844 9845*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9846*** create shared libraries on Solaris systems. Therefore, libtool 9847*** is disabling shared libraries support. We urge you to upgrade GNU 9848*** binutils to release 2.9.1 or newer. Another option is to modify 9849*** your PATH or compiler configuration so that the native linker is 9850*** used, and then restart. 9851 9852_LT_EOF 9853 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9855 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9856 else 9857 ld_shlibs=no 9858 fi 9859 ;; 9860 9861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9862 case `$LD -v 2>&1` in 9863 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9864 ld_shlibs=no 9865 cat <<_LT_EOF 1>&2 9866 9867*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9868*** reliably create shared libraries on SCO systems. Therefore, libtool 9869*** is disabling shared libraries support. We urge you to upgrade GNU 9870*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9871*** your PATH or compiler configuration so that the native linker is 9872*** used, and then restart. 9873 9874_LT_EOF 9875 ;; 9876 *) 9877 # For security reasons, it is highly recommended that you always 9878 # use absolute paths for naming shared libraries, and exclude the 9879 # DT_RUNPATH tag from executables and libraries. But doing so 9880 # requires that you compile everything twice, which is a pain. 9881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9882 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9885 else 9886 ld_shlibs=no 9887 fi 9888 ;; 9889 esac 9890 ;; 9891 9892 sunos4*) 9893 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9894 wlarc= 9895 hardcode_direct=yes 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 *) 9900 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9901 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9902 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9903 else 9904 ld_shlibs=no 9905 fi 9906 ;; 9907 esac 9908 9909 if test no = "$ld_shlibs"; then 9910 runpath_var= 9911 hardcode_libdir_flag_spec= 9912 export_dynamic_flag_spec= 9913 whole_archive_flag_spec= 9914 fi 9915 else 9916 # PORTME fill in a description of your system's linker (not GNU ld) 9917 case $host_os in 9918 aix3*) 9919 allow_undefined_flag=unsupported 9920 always_export_symbols=yes 9921 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' 9922 # Note: this linker hardcodes the directories in LIBPATH if there 9923 # are no directories specified by -L. 9924 hardcode_minus_L=yes 9925 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9926 # Neither direct hardcoding nor static linking is supported with a 9927 # broken collect2. 9928 hardcode_direct=unsupported 9929 fi 9930 ;; 9931 9932 aix[4-9]*) 9933 if test ia64 = "$host_cpu"; then 9934 # On IA64, the linker does run time linking by default, so we don't 9935 # have to do anything special. 9936 aix_use_runtimelinking=no 9937 exp_sym_flag='-Bexport' 9938 no_entry_flag= 9939 else 9940 # If we're using GNU nm, then we don't want the "-C" option. 9941 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9942 # Without the "-l" option, or with the "-B" option, AIX nm treats 9943 # weak defined symbols like other global defined symbols, whereas 9944 # GNU nm marks them as "W". 9945 # While the 'weak' keyword is ignored in the Export File, we need 9946 # it in the Import File for the 'aix-soname' feature, so we have 9947 # to replace the "-B" option with "-P" for AIX nm. 9948 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9949 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' 9950 else 9951 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 == "L") || (\$ 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' 9952 fi 9953 aix_use_runtimelinking=no 9954 9955 # Test if we are trying to use run time linking or normal 9956 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9957 # have runtime linking enabled, and use it for executables. 9958 # For shared libraries, we enable/disable runtime linking 9959 # depending on the kind of the shared library created - 9960 # when "with_aix_soname,aix_use_runtimelinking" is: 9961 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9962 # "aix,yes" lib.so shared, rtl:yes, for executables 9963 # lib.a static archive 9964 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9965 # lib.a(lib.so.V) shared, rtl:no, for executables 9966 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9967 # lib.a(lib.so.V) shared, rtl:no 9968 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9969 # lib.a static archive 9970 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9971 for ld_flag in $LDFLAGS; do 9972 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9973 aix_use_runtimelinking=yes 9974 break 9975 fi 9976 done 9977 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9978 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9979 # so we don't have lib.a shared libs to link our executables. 9980 # We have to force runtime linking in this case. 9981 aix_use_runtimelinking=yes 9982 LDFLAGS="$LDFLAGS -Wl,-brtl" 9983 fi 9984 ;; 9985 esac 9986 9987 exp_sym_flag='-bexport' 9988 no_entry_flag='-bnoentry' 9989 fi 9990 9991 # When large executables or shared objects are built, AIX ld can 9992 # have problems creating the table of contents. If linking a library 9993 # or program results in "error TOC overflow" add -mminimal-toc to 9994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9996 9997 archive_cmds='' 9998 hardcode_direct=yes 9999 hardcode_direct_absolute=yes 10000 hardcode_libdir_separator=':' 10001 link_all_deplibs=yes 10002 file_list_spec='$wl-f,' 10003 case $with_aix_soname,$aix_use_runtimelinking in 10004 aix,*) ;; # traditional, no import file 10005 svr4,* | *,yes) # use import file 10006 # The Import File defines what to hardcode. 10007 hardcode_direct=no 10008 hardcode_direct_absolute=no 10009 ;; 10010 esac 10011 10012 if test yes = "$GCC"; then 10013 case $host_os in aix4.[012]|aix4.[012].*) 10014 # We only want to do this on AIX 4.2 and lower, the check 10015 # below for broken collect2 doesn't work under 4.3+ 10016 collect2name=`$CC -print-prog-name=collect2` 10017 if test -f "$collect2name" && 10018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10019 then 10020 # We have reworked collect2 10021 : 10022 else 10023 # We have old collect2 10024 hardcode_direct=unsupported 10025 # It fails to find uninstalled libraries when the uninstalled 10026 # path is not listed in the libpath. Setting hardcode_minus_L 10027 # to unsupported forces relinking 10028 hardcode_minus_L=yes 10029 hardcode_libdir_flag_spec='-L$libdir' 10030 hardcode_libdir_separator= 10031 fi 10032 ;; 10033 esac 10034 shared_flag='-shared' 10035 if test yes = "$aix_use_runtimelinking"; then 10036 shared_flag="$shared_flag "'$wl-G' 10037 fi 10038 # Need to ensure runtime linking is disabled for the traditional 10039 # shared library, or the linker may eventually find shared libraries 10040 # /with/ Import File - we do not want to mix them. 10041 shared_flag_aix='-shared' 10042 shared_flag_svr4='-shared $wl-G' 10043 else 10044 # not using gcc 10045 if test ia64 = "$host_cpu"; then 10046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10047 # chokes on -Wl,-G. The following line is correct: 10048 shared_flag='-G' 10049 else 10050 if test yes = "$aix_use_runtimelinking"; then 10051 shared_flag='$wl-G' 10052 else 10053 shared_flag='$wl-bM:SRE' 10054 fi 10055 shared_flag_aix='$wl-bM:SRE' 10056 shared_flag_svr4='$wl-G' 10057 fi 10058 fi 10059 10060 export_dynamic_flag_spec='$wl-bexpall' 10061 # It seems that -bexpall does not export symbols beginning with 10062 # underscore (_), so it is better to generate a list of symbols to export. 10063 always_export_symbols=yes 10064 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10065 # Warning - without using the other runtime loading flags (-brtl), 10066 # -berok will link without error, but may produce a broken library. 10067 allow_undefined_flag='-berok' 10068 # Determine the default libpath from the value encoded in an 10069 # empty executable. 10070 if test set = "${lt_cv_aix_libpath+set}"; then 10071 aix_libpath=$lt_cv_aix_libpath 10072else 10073 if test ${lt_cv_aix_libpath_+y} 10074then : 10075 printf %s "(cached) " >&6 10076else $as_nop 10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10078/* end confdefs.h. */ 10079 10080int 10081main (void) 10082{ 10083 10084 ; 10085 return 0; 10086} 10087_ACEOF 10088if ac_fn_c_try_link "$LINENO" 10089then : 10090 10091 lt_aix_libpath_sed=' 10092 /Import File Strings/,/^$/ { 10093 /^0/ { 10094 s/^0 *\([^ ]*\) *$/\1/ 10095 p 10096 } 10097 }' 10098 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10099 # Check for a 64-bit object if we didn't find anything. 10100 if test -z "$lt_cv_aix_libpath_"; then 10101 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10102 fi 10103fi 10104rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10105 conftest$ac_exeext conftest.$ac_ext 10106 if test -z "$lt_cv_aix_libpath_"; then 10107 lt_cv_aix_libpath_=/usr/lib:/lib 10108 fi 10109 10110fi 10111 10112 aix_libpath=$lt_cv_aix_libpath_ 10113fi 10114 10115 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10116 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 10117 else 10118 if test ia64 = "$host_cpu"; then 10119 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10120 allow_undefined_flag="-z nodefs" 10121 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" 10122 else 10123 # Determine the default libpath from the value encoded in an 10124 # empty executable. 10125 if test set = "${lt_cv_aix_libpath+set}"; then 10126 aix_libpath=$lt_cv_aix_libpath 10127else 10128 if test ${lt_cv_aix_libpath_+y} 10129then : 10130 printf %s "(cached) " >&6 10131else $as_nop 10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10133/* end confdefs.h. */ 10134 10135int 10136main (void) 10137{ 10138 10139 ; 10140 return 0; 10141} 10142_ACEOF 10143if ac_fn_c_try_link "$LINENO" 10144then : 10145 10146 lt_aix_libpath_sed=' 10147 /Import File Strings/,/^$/ { 10148 /^0/ { 10149 s/^0 *\([^ ]*\) *$/\1/ 10150 p 10151 } 10152 }' 10153 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10154 # Check for a 64-bit object if we didn't find anything. 10155 if test -z "$lt_cv_aix_libpath_"; then 10156 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10157 fi 10158fi 10159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10160 conftest$ac_exeext conftest.$ac_ext 10161 if test -z "$lt_cv_aix_libpath_"; then 10162 lt_cv_aix_libpath_=/usr/lib:/lib 10163 fi 10164 10165fi 10166 10167 aix_libpath=$lt_cv_aix_libpath_ 10168fi 10169 10170 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10171 # Warning - without using the other run time loading flags, 10172 # -berok will link without error, but may produce a broken library. 10173 no_undefined_flag=' $wl-bernotok' 10174 allow_undefined_flag=' $wl-berok' 10175 if test yes = "$with_gnu_ld"; then 10176 # We only use this code for GNU lds that support --whole-archive. 10177 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10178 else 10179 # Exported symbols can be pulled into shared objects from archives 10180 whole_archive_flag_spec='$convenience' 10181 fi 10182 archive_cmds_need_lc=yes 10183 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10184 # -brtl affects multiple linker settings, -berok does not and is overridden later 10185 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10186 if test svr4 != "$with_aix_soname"; then 10187 # This is similar to how AIX traditionally builds its shared libraries. 10188 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' 10189 fi 10190 if test aix != "$with_aix_soname"; then 10191 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' 10192 else 10193 # used by -dlpreopen to get the symbols 10194 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10195 fi 10196 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10197 fi 10198 fi 10199 ;; 10200 10201 amigaos*) 10202 case $host_cpu in 10203 powerpc) 10204 # see comment about AmigaOS4 .so support 10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10206 archive_expsym_cmds='' 10207 ;; 10208 m68k) 10209 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)' 10210 hardcode_libdir_flag_spec='-L$libdir' 10211 hardcode_minus_L=yes 10212 ;; 10213 esac 10214 ;; 10215 10216 bsdi[45]*) 10217 export_dynamic_flag_spec=-rdynamic 10218 ;; 10219 10220 cygwin* | mingw* | pw32* | cegcc*) 10221 # When not using gcc, we currently assume that we are using 10222 # Microsoft Visual C++ or Intel C++ Compiler. 10223 # hardcode_libdir_flag_spec is actually meaningless, as there is 10224 # no search path for DLLs. 10225 case $cc_basename in 10226 cl* | icl*) 10227 # Native MSVC or ICC 10228 hardcode_libdir_flag_spec=' ' 10229 allow_undefined_flag=unsupported 10230 always_export_symbols=yes 10231 file_list_spec='@' 10232 # Tell ltmain to make .lib files, not .a files. 10233 libext=lib 10234 # Tell ltmain to make .dll files, not .so files. 10235 shrext_cmds=.dll 10236 # FIXME: Setting linknames here is a bad hack. 10237 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10238 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10239 cp "$export_symbols" "$output_objdir/$soname.def"; 10240 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10241 else 10242 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10243 fi~ 10244 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10245 linknames=' 10246 # The linker will not automatically build a static lib if we build a DLL. 10247 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10248 enable_shared_with_static_runtimes=yes 10249 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10251 # Don't use ranlib 10252 old_postinstall_cmds='chmod 644 $oldlib' 10253 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10254 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10255 case $lt_outputfile in 10256 *.exe|*.EXE) ;; 10257 *) 10258 lt_outputfile=$lt_outputfile.exe 10259 lt_tool_outputfile=$lt_tool_outputfile.exe 10260 ;; 10261 esac~ 10262 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10263 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10264 $RM "$lt_outputfile.manifest"; 10265 fi' 10266 ;; 10267 *) 10268 # Assume MSVC and ICC wrapper 10269 hardcode_libdir_flag_spec=' ' 10270 allow_undefined_flag=unsupported 10271 # Tell ltmain to make .lib files, not .a files. 10272 libext=lib 10273 # Tell ltmain to make .dll files, not .so files. 10274 shrext_cmds=.dll 10275 # FIXME: Setting linknames here is a bad hack. 10276 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10277 # The linker will automatically build a .lib file if we build a DLL. 10278 old_archive_from_new_cmds='true' 10279 # FIXME: Should let the user specify the lib program. 10280 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10281 enable_shared_with_static_runtimes=yes 10282 ;; 10283 esac 10284 ;; 10285 10286 darwin* | rhapsody*) 10287 10288 10289 archive_cmds_need_lc=no 10290 hardcode_direct=no 10291 hardcode_automatic=yes 10292 hardcode_shlibpath_var=unsupported 10293 if test yes = "$lt_cv_ld_force_load"; then 10294 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\"`' 10295 10296 else 10297 whole_archive_flag_spec='' 10298 fi 10299 link_all_deplibs=yes 10300 allow_undefined_flag=$_lt_dar_allow_undefined 10301 case $cc_basename in 10302 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10303 *) _lt_dar_can_shared=$GCC ;; 10304 esac 10305 if test yes = "$_lt_dar_can_shared"; then 10306 output_verbose_link_cmd=func_echo_all 10307 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10308 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10309 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" 10310 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" 10311 10312 else 10313 ld_shlibs=no 10314 fi 10315 10316 ;; 10317 10318 dgux*) 10319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10320 hardcode_libdir_flag_spec='-L$libdir' 10321 hardcode_shlibpath_var=no 10322 ;; 10323 10324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10325 # support. Future versions do this automatically, but an explicit c++rt0.o 10326 # does not break anything, and helps significantly (at the cost of a little 10327 # extra space). 10328 freebsd2.2*) 10329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10330 hardcode_libdir_flag_spec='-R$libdir' 10331 hardcode_direct=yes 10332 hardcode_shlibpath_var=no 10333 ;; 10334 10335 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10336 freebsd2.*) 10337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10338 hardcode_direct=yes 10339 hardcode_minus_L=yes 10340 hardcode_shlibpath_var=no 10341 ;; 10342 10343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10344 freebsd* | dragonfly* | midnightbsd*) 10345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10346 hardcode_libdir_flag_spec='-R$libdir' 10347 hardcode_direct=yes 10348 hardcode_shlibpath_var=no 10349 ;; 10350 10351 hpux9*) 10352 if test yes = "$GCC"; then 10353 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' 10354 else 10355 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' 10356 fi 10357 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10358 hardcode_libdir_separator=: 10359 hardcode_direct=yes 10360 10361 # hardcode_minus_L: Not really in the search PATH, 10362 # but as the default location of the library. 10363 hardcode_minus_L=yes 10364 export_dynamic_flag_spec='$wl-E' 10365 ;; 10366 10367 hpux10*) 10368 if test yes,no = "$GCC,$with_gnu_ld"; then 10369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10370 else 10371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10372 fi 10373 if test no = "$with_gnu_ld"; then 10374 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10375 hardcode_libdir_separator=: 10376 hardcode_direct=yes 10377 hardcode_direct_absolute=yes 10378 export_dynamic_flag_spec='$wl-E' 10379 # hardcode_minus_L: Not really in the search PATH, 10380 # but as the default location of the library. 10381 hardcode_minus_L=yes 10382 fi 10383 ;; 10384 10385 hpux11*) 10386 if test yes,no = "$GCC,$with_gnu_ld"; then 10387 case $host_cpu in 10388 hppa*64*) 10389 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10390 ;; 10391 ia64*) 10392 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10393 ;; 10394 *) 10395 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10396 ;; 10397 esac 10398 else 10399 case $host_cpu in 10400 hppa*64*) 10401 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10402 ;; 10403 ia64*) 10404 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10405 ;; 10406 *) 10407 10408 # Older versions of the 11.00 compiler do not understand -b yet 10409 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10411printf %s "checking if $CC understands -b... " >&6; } 10412if test ${lt_cv_prog_compiler__b+y} 10413then : 10414 printf %s "(cached) " >&6 10415else $as_nop 10416 lt_cv_prog_compiler__b=no 10417 save_LDFLAGS=$LDFLAGS 10418 LDFLAGS="$LDFLAGS -b" 10419 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10421 # The linker can only warn and ignore the option if not recognized 10422 # So say no if there are warnings 10423 if test -s conftest.err; then 10424 # Append any errors to the config.log. 10425 cat conftest.err 1>&5 10426 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10428 if diff conftest.exp conftest.er2 >/dev/null; then 10429 lt_cv_prog_compiler__b=yes 10430 fi 10431 else 10432 lt_cv_prog_compiler__b=yes 10433 fi 10434 fi 10435 $RM -r conftest* 10436 LDFLAGS=$save_LDFLAGS 10437 10438fi 10439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10440printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10441 10442if test yes = "$lt_cv_prog_compiler__b"; then 10443 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10444else 10445 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10446fi 10447 10448 ;; 10449 esac 10450 fi 10451 if test no = "$with_gnu_ld"; then 10452 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10453 hardcode_libdir_separator=: 10454 10455 case $host_cpu in 10456 hppa*64*|ia64*) 10457 hardcode_direct=no 10458 hardcode_shlibpath_var=no 10459 ;; 10460 *) 10461 hardcode_direct=yes 10462 hardcode_direct_absolute=yes 10463 export_dynamic_flag_spec='$wl-E' 10464 10465 # hardcode_minus_L: Not really in the search PATH, 10466 # but as the default location of the library. 10467 hardcode_minus_L=yes 10468 ;; 10469 esac 10470 fi 10471 ;; 10472 10473 irix5* | irix6* | nonstopux*) 10474 if test yes = "$GCC"; then 10475 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' 10476 # Try to use the -exported_symbol ld option, if it does not 10477 # work, assume that -exports_file does not work either and 10478 # implicitly export all symbols. 10479 # This should be the same for all languages, so no per-tag cache variable. 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10481printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10482if test ${lt_cv_irix_exported_symbol+y} 10483then : 10484 printf %s "(cached) " >&6 10485else $as_nop 10486 save_LDFLAGS=$LDFLAGS 10487 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10489/* end confdefs.h. */ 10490int foo (void) { return 0; } 10491_ACEOF 10492if ac_fn_c_try_link "$LINENO" 10493then : 10494 lt_cv_irix_exported_symbol=yes 10495else $as_nop 10496 lt_cv_irix_exported_symbol=no 10497fi 10498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10499 conftest$ac_exeext conftest.$ac_ext 10500 LDFLAGS=$save_LDFLAGS 10501fi 10502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10503printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10504 if test yes = "$lt_cv_irix_exported_symbol"; then 10505 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' 10506 fi 10507 link_all_deplibs=no 10508 else 10509 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' 10510 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' 10511 fi 10512 archive_cmds_need_lc='no' 10513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10514 hardcode_libdir_separator=: 10515 inherit_rpath=yes 10516 link_all_deplibs=yes 10517 ;; 10518 10519 linux*) 10520 case $cc_basename in 10521 tcc*) 10522 # Fabrice Bellard et al's Tiny C Compiler 10523 ld_shlibs=yes 10524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10526 ;; 10527 esac 10528 ;; 10529 10530 netbsd* | netbsdelf*-gnu) 10531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10533 else 10534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10535 fi 10536 hardcode_libdir_flag_spec='-R$libdir' 10537 hardcode_direct=yes 10538 hardcode_shlibpath_var=no 10539 ;; 10540 10541 newsos6) 10542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10543 hardcode_direct=yes 10544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10545 hardcode_libdir_separator=: 10546 hardcode_shlibpath_var=no 10547 ;; 10548 10549 *nto* | *qnx*) 10550 ;; 10551 10552 openbsd* | bitrig*) 10553 if test -f /usr/libexec/ld.so; then 10554 hardcode_direct=yes 10555 hardcode_shlibpath_var=no 10556 hardcode_direct_absolute=yes 10557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10560 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10561 export_dynamic_flag_spec='$wl-E' 10562 else 10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10564 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10565 fi 10566 else 10567 ld_shlibs=no 10568 fi 10569 ;; 10570 10571 os2*) 10572 hardcode_libdir_flag_spec='-L$libdir' 10573 hardcode_minus_L=yes 10574 allow_undefined_flag=unsupported 10575 shrext_cmds=.dll 10576 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10577 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10578 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10579 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10580 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10581 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10582 emximp -o $lib $output_objdir/$libname.def' 10583 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10584 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10585 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10586 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10587 prefix_cmds="$SED"~ 10588 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10589 prefix_cmds="$prefix_cmds -e 1d"; 10590 fi~ 10591 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10592 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10594 emximp -o $lib $output_objdir/$libname.def' 10595 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10596 enable_shared_with_static_runtimes=yes 10597 file_list_spec='@' 10598 ;; 10599 10600 osf3*) 10601 if test yes = "$GCC"; then 10602 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10603 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' 10604 else 10605 allow_undefined_flag=' -expect_unresolved \*' 10606 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' 10607 fi 10608 archive_cmds_need_lc='no' 10609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10610 hardcode_libdir_separator=: 10611 ;; 10612 10613 osf4* | osf5*) # as osf3* with the addition of -msym flag 10614 if test yes = "$GCC"; then 10615 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10616 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' 10617 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10618 else 10619 allow_undefined_flag=' -expect_unresolved \*' 10620 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' 10621 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~ 10622 $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' 10623 10624 # Both c and cxx compiler support -rpath directly 10625 hardcode_libdir_flag_spec='-rpath $libdir' 10626 fi 10627 archive_cmds_need_lc='no' 10628 hardcode_libdir_separator=: 10629 ;; 10630 10631 solaris*) 10632 no_undefined_flag=' -z defs' 10633 if test yes = "$GCC"; then 10634 wlarc='$wl' 10635 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10637 $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' 10638 else 10639 case `$CC -V 2>&1` in 10640 *"Compilers 5.0"*) 10641 wlarc='' 10642 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10644 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10645 ;; 10646 *) 10647 wlarc='$wl' 10648 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10650 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10651 ;; 10652 esac 10653 fi 10654 hardcode_libdir_flag_spec='-R$libdir' 10655 hardcode_shlibpath_var=no 10656 case $host_os in 10657 solaris2.[0-5] | solaris2.[0-5].*) ;; 10658 *) 10659 # The compiler driver will combine and reorder linker options, 10660 # but understands '-z linker_flag'. GCC discards it without '$wl', 10661 # but is careful enough not to reorder. 10662 # Supported since Solaris 2.6 (maybe 2.5.1?) 10663 if test yes = "$GCC"; then 10664 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10665 else 10666 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10667 fi 10668 ;; 10669 esac 10670 link_all_deplibs=yes 10671 ;; 10672 10673 sunos4*) 10674 if test sequent = "$host_vendor"; then 10675 # Use $CC to link under sequent, because it throws in some extra .o 10676 # files that make .init and .fini sections work. 10677 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10678 else 10679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10680 fi 10681 hardcode_libdir_flag_spec='-L$libdir' 10682 hardcode_direct=yes 10683 hardcode_minus_L=yes 10684 hardcode_shlibpath_var=no 10685 ;; 10686 10687 sysv4) 10688 case $host_vendor in 10689 sni) 10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10691 hardcode_direct=yes # is this really true??? 10692 ;; 10693 siemens) 10694 ## LD is ld it makes a PLAMLIB 10695 ## CC just makes a GrossModule. 10696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10697 reload_cmds='$CC -r -o $output$reload_objs' 10698 hardcode_direct=no 10699 ;; 10700 motorola) 10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10703 ;; 10704 esac 10705 runpath_var='LD_RUN_PATH' 10706 hardcode_shlibpath_var=no 10707 ;; 10708 10709 sysv4.3*) 10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10711 hardcode_shlibpath_var=no 10712 export_dynamic_flag_spec='-Bexport' 10713 ;; 10714 10715 sysv4*MP*) 10716 if test -d /usr/nec; then 10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10718 hardcode_shlibpath_var=no 10719 runpath_var=LD_RUN_PATH 10720 hardcode_runpath_var=yes 10721 ld_shlibs=yes 10722 fi 10723 ;; 10724 10725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10726 no_undefined_flag='$wl-z,text' 10727 archive_cmds_need_lc=no 10728 hardcode_shlibpath_var=no 10729 runpath_var='LD_RUN_PATH' 10730 10731 if test yes = "$GCC"; then 10732 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10733 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 else 10735 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10736 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10737 fi 10738 ;; 10739 10740 sysv5* | sco3.2v5* | sco5v6*) 10741 # Note: We CANNOT use -z defs as we might desire, because we do not 10742 # link with -lc, and that would cause any symbols used from libc to 10743 # always be unresolved, which means just about no library would 10744 # ever link correctly. If we're not using GNU ld we use -z text 10745 # though, which does catch some bad symbols but isn't as heavy-handed 10746 # as -z defs. 10747 no_undefined_flag='$wl-z,text' 10748 allow_undefined_flag='$wl-z,nodefs' 10749 archive_cmds_need_lc=no 10750 hardcode_shlibpath_var=no 10751 hardcode_libdir_flag_spec='$wl-R,$libdir' 10752 hardcode_libdir_separator=':' 10753 link_all_deplibs=yes 10754 export_dynamic_flag_spec='$wl-Bexport' 10755 runpath_var='LD_RUN_PATH' 10756 10757 if test yes = "$GCC"; then 10758 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10759 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10760 else 10761 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10762 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10763 fi 10764 ;; 10765 10766 uts4*) 10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10768 hardcode_libdir_flag_spec='-L$libdir' 10769 hardcode_shlibpath_var=no 10770 ;; 10771 10772 *) 10773 ld_shlibs=no 10774 ;; 10775 esac 10776 10777 if test sni = "$host_vendor"; then 10778 case $host in 10779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10780 export_dynamic_flag_spec='$wl-Blargedynsym' 10781 ;; 10782 esac 10783 fi 10784 fi 10785 10786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10787printf "%s\n" "$ld_shlibs" >&6; } 10788test no = "$ld_shlibs" && can_build_shared=no 10789 10790with_gnu_ld=$with_gnu_ld 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806# 10807# Do we need to explicitly link libc? 10808# 10809case "x$archive_cmds_need_lc" in 10810x|xyes) 10811 # Assume -lc should be added 10812 archive_cmds_need_lc=yes 10813 10814 if test yes,yes = "$GCC,$enable_shared"; then 10815 case $archive_cmds in 10816 *'~'*) 10817 # FIXME: we may have to deal with multi-command sequences. 10818 ;; 10819 '$CC '*) 10820 # Test whether the compiler implicitly links with -lc since on some 10821 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10822 # to ld, don't add -lc before -lgcc. 10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10824printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10825if test ${lt_cv_archive_cmds_need_lc+y} 10826then : 10827 printf %s "(cached) " >&6 10828else $as_nop 10829 $RM conftest* 10830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10831 10832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10833 (eval $ac_compile) 2>&5 10834 ac_status=$? 10835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10836 test $ac_status = 0; } 2>conftest.err; then 10837 soname=conftest 10838 lib=conftest 10839 libobjs=conftest.$ac_objext 10840 deplibs= 10841 wl=$lt_prog_compiler_wl 10842 pic_flag=$lt_prog_compiler_pic 10843 compiler_flags=-v 10844 linker_flags=-v 10845 verstring= 10846 output_objdir=. 10847 libname=conftest 10848 lt_save_allow_undefined_flag=$allow_undefined_flag 10849 allow_undefined_flag= 10850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10852 ac_status=$? 10853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10854 test $ac_status = 0; } 10855 then 10856 lt_cv_archive_cmds_need_lc=no 10857 else 10858 lt_cv_archive_cmds_need_lc=yes 10859 fi 10860 allow_undefined_flag=$lt_save_allow_undefined_flag 10861 else 10862 cat conftest.err 1>&5 10863 fi 10864 $RM conftest* 10865 10866fi 10867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10868printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10870 ;; 10871 esac 10872 fi 10873 ;; 10874esac 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11028printf %s "checking dynamic linker characteristics... " >&6; } 11029 11030if test yes = "$GCC"; then 11031 case $host_os in 11032 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11033 *) lt_awk_arg='/^libraries:/' ;; 11034 esac 11035 case $host_os in 11036 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11037 *) lt_sed_strip_eq='s|=/|/|g' ;; 11038 esac 11039 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11040 case $lt_search_path_spec in 11041 *\;*) 11042 # if the path contains ";" then we assume it to be the separator 11043 # otherwise default to the standard path separator (i.e. ":") - it is 11044 # assumed that no part of a normal pathname contains ";" but that should 11045 # okay in the real world where ";" in dirpaths is itself problematic. 11046 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11047 ;; 11048 *) 11049 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11050 ;; 11051 esac 11052 # Ok, now we have the path, separated by spaces, we can step through it 11053 # and add multilib dir if necessary... 11054 lt_tmp_lt_search_path_spec= 11055 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11056 # ...but if some path component already ends with the multilib dir we assume 11057 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11058 case "$lt_multi_os_dir; $lt_search_path_spec " in 11059 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11060 lt_multi_os_dir= 11061 ;; 11062 esac 11063 for lt_sys_path in $lt_search_path_spec; do 11064 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11066 elif test -n "$lt_multi_os_dir"; then 11067 test -d "$lt_sys_path" && \ 11068 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11069 fi 11070 done 11071 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11072BEGIN {RS = " "; FS = "/|\n";} { 11073 lt_foo = ""; 11074 lt_count = 0; 11075 for (lt_i = NF; lt_i > 0; lt_i--) { 11076 if ($lt_i != "" && $lt_i != ".") { 11077 if ($lt_i == "..") { 11078 lt_count++; 11079 } else { 11080 if (lt_count == 0) { 11081 lt_foo = "/" $lt_i lt_foo; 11082 } else { 11083 lt_count--; 11084 } 11085 } 11086 } 11087 } 11088 if (lt_foo != "") { lt_freq[lt_foo]++; } 11089 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11090}'` 11091 # AWK program above erroneously prepends '/' to C:/dos/paths 11092 # for these hosts. 11093 case $host_os in 11094 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11095 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11096 esac 11097 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11098else 11099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11100fi 11101library_names_spec= 11102libname_spec='lib$name' 11103soname_spec= 11104shrext_cmds=.so 11105postinstall_cmds= 11106postuninstall_cmds= 11107finish_cmds= 11108finish_eval= 11109shlibpath_var= 11110shlibpath_overrides_runpath=unknown 11111version_type=none 11112dynamic_linker="$host_os ld.so" 11113sys_lib_dlsearch_path_spec="/lib /usr/lib" 11114need_lib_prefix=unknown 11115hardcode_into_libs=no 11116 11117# when you set need_version to no, make sure it does not cause -set_version 11118# flags to be left without arguments 11119need_version=unknown 11120 11121 11122 11123case $host_os in 11124aix3*) 11125 version_type=linux # correct to gnu/linux during the next big refactor 11126 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11127 shlibpath_var=LIBPATH 11128 11129 # AIX 3 has no versioning support, so we append a major version to the name. 11130 soname_spec='$libname$release$shared_ext$major' 11131 ;; 11132 11133aix[4-9]*) 11134 version_type=linux # correct to gnu/linux during the next big refactor 11135 need_lib_prefix=no 11136 need_version=no 11137 hardcode_into_libs=yes 11138 if test ia64 = "$host_cpu"; then 11139 # AIX 5 supports IA64 11140 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11141 shlibpath_var=LD_LIBRARY_PATH 11142 else 11143 # With GCC up to 2.95.x, collect2 would create an import file 11144 # for dependence libraries. The import file would start with 11145 # the line '#! .'. This would cause the generated library to 11146 # depend on '.', always an invalid library. This was fixed in 11147 # development snapshots of GCC prior to 3.0. 11148 case $host_os in 11149 aix4 | aix4.[01] | aix4.[01].*) 11150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11151 echo ' yes ' 11152 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11153 : 11154 else 11155 can_build_shared=no 11156 fi 11157 ;; 11158 esac 11159 # Using Import Files as archive members, it is possible to support 11160 # filename-based versioning of shared library archives on AIX. While 11161 # this would work for both with and without runtime linking, it will 11162 # prevent static linking of such archives. So we do filename-based 11163 # shared library versioning with .so extension only, which is used 11164 # when both runtime linking and shared linking is enabled. 11165 # Unfortunately, runtime linking may impact performance, so we do 11166 # not want this to be the default eventually. Also, we use the 11167 # versioned .so libs for executables only if there is the -brtl 11168 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11169 # To allow for filename-based versioning support, we need to create 11170 # libNAME.so.V as an archive file, containing: 11171 # *) an Import File, referring to the versioned filename of the 11172 # archive as well as the shared archive member, telling the 11173 # bitwidth (32 or 64) of that shared object, and providing the 11174 # list of exported symbols of that shared object, eventually 11175 # decorated with the 'weak' keyword 11176 # *) the shared object with the F_LOADONLY flag set, to really avoid 11177 # it being seen by the linker. 11178 # At run time we better use the real file rather than another symlink, 11179 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11180 11181 case $with_aix_soname,$aix_use_runtimelinking in 11182 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11183 # soname into executable. Probably we can add versioning support to 11184 # collect2, so additional links can be useful in future. 11185 aix,yes) # traditional libtool 11186 dynamic_linker='AIX unversionable lib.so' 11187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11188 # instead of lib<name>.a to let people know that these are not 11189 # typical AIX shared libraries. 11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11191 ;; 11192 aix,no) # traditional AIX only 11193 dynamic_linker='AIX lib.a(lib.so.V)' 11194 # We preserve .a as extension for shared libraries through AIX4.2 11195 # and later when we are not doing run time linking. 11196 library_names_spec='$libname$release.a $libname.a' 11197 soname_spec='$libname$release$shared_ext$major' 11198 ;; 11199 svr4,*) # full svr4 only 11200 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11201 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11202 # We do not specify a path in Import Files, so LIBPATH fires. 11203 shlibpath_overrides_runpath=yes 11204 ;; 11205 *,yes) # both, prefer svr4 11206 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11207 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11208 # unpreferred sharedlib libNAME.a needs extra handling 11209 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"' 11210 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"' 11211 # We do not specify a path in Import Files, so LIBPATH fires. 11212 shlibpath_overrides_runpath=yes 11213 ;; 11214 *,no) # both, prefer aix 11215 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11216 library_names_spec='$libname$release.a $libname.a' 11217 soname_spec='$libname$release$shared_ext$major' 11218 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11219 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)' 11220 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"' 11221 ;; 11222 esac 11223 shlibpath_var=LIBPATH 11224 fi 11225 ;; 11226 11227amigaos*) 11228 case $host_cpu in 11229 powerpc) 11230 # Since July 2007 AmigaOS4 officially supports .so libraries. 11231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11233 ;; 11234 m68k) 11235 library_names_spec='$libname.ixlibrary $libname.a' 11236 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11237 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' 11238 ;; 11239 esac 11240 ;; 11241 11242beos*) 11243 library_names_spec='$libname$shared_ext' 11244 dynamic_linker="$host_os ld.so" 11245 shlibpath_var=LIBRARY_PATH 11246 ;; 11247 11248bsdi[45]*) 11249 version_type=linux # correct to gnu/linux during the next big refactor 11250 need_version=no 11251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11252 soname_spec='$libname$release$shared_ext$major' 11253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11254 shlibpath_var=LD_LIBRARY_PATH 11255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11257 # the default ld.so.conf also contains /usr/contrib/lib and 11258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11259 # libtool to hard-code these into programs 11260 ;; 11261 11262cygwin* | mingw* | pw32* | cegcc*) 11263 version_type=windows 11264 shrext_cmds=.dll 11265 need_version=no 11266 need_lib_prefix=no 11267 11268 case $GCC,$cc_basename in 11269 yes,*) 11270 # gcc 11271 library_names_spec='$libname.dll.a' 11272 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11273 postinstall_cmds='base_file=`basename \$file`~ 11274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11275 dldir=$destdir/`dirname \$dlpath`~ 11276 test -d \$dldir || mkdir -p \$dldir~ 11277 $install_prog $dir/$dlname \$dldir/$dlname~ 11278 chmod a+x \$dldir/$dlname~ 11279 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11280 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11281 fi' 11282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11283 dlpath=$dir/\$dldll~ 11284 $RM \$dlpath' 11285 shlibpath_overrides_runpath=yes 11286 11287 case $host_os in 11288 cygwin*) 11289 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11290 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11291 11292 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11293 ;; 11294 mingw* | cegcc*) 11295 # MinGW DLLs use traditional 'lib' prefix 11296 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11297 ;; 11298 pw32*) 11299 # pw32 DLLs use 'pw' prefix rather than 'lib' 11300 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11301 ;; 11302 esac 11303 dynamic_linker='Win32 ld.exe' 11304 ;; 11305 11306 *,cl* | *,icl*) 11307 # Native MSVC or ICC 11308 libname_spec='$name' 11309 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11310 library_names_spec='$libname.dll.lib' 11311 11312 case $build_os in 11313 mingw*) 11314 sys_lib_search_path_spec= 11315 lt_save_ifs=$IFS 11316 IFS=';' 11317 for lt_path in $LIB 11318 do 11319 IFS=$lt_save_ifs 11320 # Let DOS variable expansion print the short 8.3 style file name. 11321 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11322 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11323 done 11324 IFS=$lt_save_ifs 11325 # Convert to MSYS style. 11326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11327 ;; 11328 cygwin*) 11329 # Convert to unix form, then to dos form, then back to unix form 11330 # but this time dos style (no spaces!) so that the unix form looks 11331 # like /cygdrive/c/PROGRA~1:/cygdr... 11332 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11333 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11334 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11335 ;; 11336 *) 11337 sys_lib_search_path_spec=$LIB 11338 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11339 # It is most probably a Windows format PATH. 11340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11341 else 11342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11343 fi 11344 # FIXME: find the short name or the path components, as spaces are 11345 # common. (e.g. "Program Files" -> "PROGRA~1") 11346 ;; 11347 esac 11348 11349 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11350 postinstall_cmds='base_file=`basename \$file`~ 11351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11352 dldir=$destdir/`dirname \$dlpath`~ 11353 test -d \$dldir || mkdir -p \$dldir~ 11354 $install_prog $dir/$dlname \$dldir/$dlname' 11355 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11356 dlpath=$dir/\$dldll~ 11357 $RM \$dlpath' 11358 shlibpath_overrides_runpath=yes 11359 dynamic_linker='Win32 link.exe' 11360 ;; 11361 11362 *) 11363 # Assume MSVC and ICC wrapper 11364 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11365 dynamic_linker='Win32 ld.exe' 11366 ;; 11367 esac 11368 # FIXME: first we should search . and the directory the executable is in 11369 shlibpath_var=PATH 11370 ;; 11371 11372darwin* | rhapsody*) 11373 dynamic_linker="$host_os dyld" 11374 version_type=darwin 11375 need_lib_prefix=no 11376 need_version=no 11377 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11378 soname_spec='$libname$release$major$shared_ext' 11379 shlibpath_overrides_runpath=yes 11380 shlibpath_var=DYLD_LIBRARY_PATH 11381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11382 11383 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11385 ;; 11386 11387dgux*) 11388 version_type=linux # correct to gnu/linux during the next big refactor 11389 need_lib_prefix=no 11390 need_version=no 11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11392 soname_spec='$libname$release$shared_ext$major' 11393 shlibpath_var=LD_LIBRARY_PATH 11394 ;; 11395 11396freebsd* | dragonfly* | midnightbsd*) 11397 # DragonFly does not have aout. When/if they implement a new 11398 # versioning mechanism, adjust this. 11399 if test -x /usr/bin/objformat; then 11400 objformat=`/usr/bin/objformat` 11401 else 11402 case $host_os in 11403 freebsd[23].*) objformat=aout ;; 11404 *) objformat=elf ;; 11405 esac 11406 fi 11407 version_type=freebsd-$objformat 11408 case $version_type in 11409 freebsd-elf*) 11410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11411 soname_spec='$libname$release$shared_ext$major' 11412 need_version=no 11413 need_lib_prefix=no 11414 ;; 11415 freebsd-*) 11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11417 need_version=yes 11418 ;; 11419 esac 11420 shlibpath_var=LD_LIBRARY_PATH 11421 case $host_os in 11422 freebsd2.*) 11423 shlibpath_overrides_runpath=yes 11424 ;; 11425 freebsd3.[01]* | freebsdelf3.[01]*) 11426 shlibpath_overrides_runpath=yes 11427 hardcode_into_libs=yes 11428 ;; 11429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11431 shlibpath_overrides_runpath=no 11432 hardcode_into_libs=yes 11433 ;; 11434 *) # from 4.6 on, and DragonFly 11435 shlibpath_overrides_runpath=yes 11436 hardcode_into_libs=yes 11437 ;; 11438 esac 11439 ;; 11440 11441haiku*) 11442 version_type=linux # correct to gnu/linux during the next big refactor 11443 need_lib_prefix=no 11444 need_version=no 11445 dynamic_linker="$host_os runtime_loader" 11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11447 soname_spec='$libname$release$shared_ext$major' 11448 shlibpath_var=LIBRARY_PATH 11449 shlibpath_overrides_runpath=no 11450 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11451 hardcode_into_libs=yes 11452 ;; 11453 11454hpux9* | hpux10* | hpux11*) 11455 # Give a soname corresponding to the major version so that dld.sl refuses to 11456 # link against other versions. 11457 version_type=sunos 11458 need_lib_prefix=no 11459 need_version=no 11460 case $host_cpu in 11461 ia64*) 11462 shrext_cmds='.so' 11463 hardcode_into_libs=yes 11464 dynamic_linker="$host_os dld.so" 11465 shlibpath_var=LD_LIBRARY_PATH 11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11468 soname_spec='$libname$release$shared_ext$major' 11469 if test 32 = "$HPUX_IA64_MODE"; then 11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11471 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11472 else 11473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11474 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11475 fi 11476 ;; 11477 hppa*64*) 11478 shrext_cmds='.sl' 11479 hardcode_into_libs=yes 11480 dynamic_linker="$host_os dld.sl" 11481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11484 soname_spec='$libname$release$shared_ext$major' 11485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11487 ;; 11488 *) 11489 shrext_cmds='.sl' 11490 dynamic_linker="$host_os dld.sl" 11491 shlibpath_var=SHLIB_PATH 11492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11494 soname_spec='$libname$release$shared_ext$major' 11495 ;; 11496 esac 11497 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11498 postinstall_cmds='chmod 555 $lib' 11499 # or fails outright, so override atomically: 11500 install_override_mode=555 11501 ;; 11502 11503interix[3-9]*) 11504 version_type=linux # correct to gnu/linux during the next big refactor 11505 need_lib_prefix=no 11506 need_version=no 11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11508 soname_spec='$libname$release$shared_ext$major' 11509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11510 shlibpath_var=LD_LIBRARY_PATH 11511 shlibpath_overrides_runpath=no 11512 hardcode_into_libs=yes 11513 ;; 11514 11515irix5* | irix6* | nonstopux*) 11516 case $host_os in 11517 nonstopux*) version_type=nonstopux ;; 11518 *) 11519 if test yes = "$lt_cv_prog_gnu_ld"; then 11520 version_type=linux # correct to gnu/linux during the next big refactor 11521 else 11522 version_type=irix 11523 fi ;; 11524 esac 11525 need_lib_prefix=no 11526 need_version=no 11527 soname_spec='$libname$release$shared_ext$major' 11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11529 case $host_os in 11530 irix5* | nonstopux*) 11531 libsuff= shlibsuff= 11532 ;; 11533 *) 11534 case $LD in # libtool.m4 will add one of these switches to LD 11535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11536 libsuff= shlibsuff= libmagic=32-bit;; 11537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11538 libsuff=32 shlibsuff=N32 libmagic=N32;; 11539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11540 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11541 *) libsuff= shlibsuff= libmagic=never-match;; 11542 esac 11543 ;; 11544 esac 11545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11546 shlibpath_overrides_runpath=no 11547 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11548 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11549 hardcode_into_libs=yes 11550 ;; 11551 11552# No shared lib support for Linux oldld, aout, or coff. 11553linux*oldld* | linux*aout* | linux*coff*) 11554 dynamic_linker=no 11555 ;; 11556 11557linux*android*) 11558 version_type=none # Android doesn't support versioned libraries. 11559 need_lib_prefix=no 11560 need_version=no 11561 library_names_spec='$libname$release$shared_ext' 11562 soname_spec='$libname$release$shared_ext' 11563 finish_cmds= 11564 shlibpath_var=LD_LIBRARY_PATH 11565 shlibpath_overrides_runpath=yes 11566 11567 # This implies no fast_install, which is unacceptable. 11568 # Some rework will be needed to allow for fast_install 11569 # before this can be enabled. 11570 hardcode_into_libs=yes 11571 11572 dynamic_linker='Android linker' 11573 # Don't embed -rpath directories since the linker doesn't support them. 11574 hardcode_libdir_flag_spec='-L$libdir' 11575 ;; 11576 11577# This must be glibc/ELF. 11578linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11579 version_type=linux # correct to gnu/linux during the next big refactor 11580 need_lib_prefix=no 11581 need_version=no 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11583 soname_spec='$libname$release$shared_ext$major' 11584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11585 shlibpath_var=LD_LIBRARY_PATH 11586 shlibpath_overrides_runpath=no 11587 11588 # Some binutils ld are patched to set DT_RUNPATH 11589 if test ${lt_cv_shlibpath_overrides_runpath+y} 11590then : 11591 printf %s "(cached) " >&6 11592else $as_nop 11593 lt_cv_shlibpath_overrides_runpath=no 11594 save_LDFLAGS=$LDFLAGS 11595 save_libdir=$libdir 11596 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11597 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11599/* end confdefs.h. */ 11600 11601int 11602main (void) 11603{ 11604 11605 ; 11606 return 0; 11607} 11608_ACEOF 11609if ac_fn_c_try_link "$LINENO" 11610then : 11611 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11612then : 11613 lt_cv_shlibpath_overrides_runpath=yes 11614fi 11615fi 11616rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11617 conftest$ac_exeext conftest.$ac_ext 11618 LDFLAGS=$save_LDFLAGS 11619 libdir=$save_libdir 11620 11621fi 11622 11623 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11624 11625 # This implies no fast_install, which is unacceptable. 11626 # Some rework will be needed to allow for fast_install 11627 # before this can be enabled. 11628 hardcode_into_libs=yes 11629 11630 # Ideally, we could use ldconfig to report *all* directores which are 11631 # searched for libraries, however this is still not possible. Aside from not 11632 # being certain /sbin/ldconfig is available, command 11633 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11634 # even though it is searched at run-time. Try to do the best guess by 11635 # appending ld.so.conf contents (and includes) to the search path. 11636 if test -f /etc/ld.so.conf; then 11637 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' ' '` 11638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11639 fi 11640 11641 # We used to test for /lib/ld.so.1 and disable shared libraries on 11642 # powerpc, because MkLinux only supported shared libraries with the 11643 # GNU dynamic linker. Since this was broken with cross compilers, 11644 # most powerpc-linux boxes support dynamic linking these days and 11645 # people can always --disable-shared, the test was removed, and we 11646 # assume the GNU/Linux dynamic linker is in use. 11647 dynamic_linker='GNU/Linux ld.so' 11648 ;; 11649 11650netbsdelf*-gnu) 11651 version_type=linux 11652 need_lib_prefix=no 11653 need_version=no 11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11655 soname_spec='${libname}${release}${shared_ext}$major' 11656 shlibpath_var=LD_LIBRARY_PATH 11657 shlibpath_overrides_runpath=no 11658 hardcode_into_libs=yes 11659 dynamic_linker='NetBSD ld.elf_so' 11660 ;; 11661 11662netbsd*) 11663 version_type=sunos 11664 need_lib_prefix=no 11665 need_version=no 11666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11669 dynamic_linker='NetBSD (a.out) ld.so' 11670 else 11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11672 soname_spec='$libname$release$shared_ext$major' 11673 dynamic_linker='NetBSD ld.elf_so' 11674 fi 11675 shlibpath_var=LD_LIBRARY_PATH 11676 shlibpath_overrides_runpath=yes 11677 hardcode_into_libs=yes 11678 ;; 11679 11680newsos6) 11681 version_type=linux # correct to gnu/linux during the next big refactor 11682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11683 shlibpath_var=LD_LIBRARY_PATH 11684 shlibpath_overrides_runpath=yes 11685 ;; 11686 11687*nto* | *qnx*) 11688 version_type=qnx 11689 need_lib_prefix=no 11690 need_version=no 11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11692 soname_spec='$libname$release$shared_ext$major' 11693 shlibpath_var=LD_LIBRARY_PATH 11694 shlibpath_overrides_runpath=no 11695 hardcode_into_libs=yes 11696 dynamic_linker='ldqnx.so' 11697 ;; 11698 11699openbsd* | bitrig*) 11700 version_type=sunos 11701 sys_lib_dlsearch_path_spec=/usr/lib 11702 need_lib_prefix=no 11703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11704 need_version=no 11705 else 11706 need_version=yes 11707 fi 11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11710 shlibpath_var=LD_LIBRARY_PATH 11711 shlibpath_overrides_runpath=yes 11712 ;; 11713 11714os2*) 11715 libname_spec='$name' 11716 version_type=windows 11717 shrext_cmds=.dll 11718 need_version=no 11719 need_lib_prefix=no 11720 # OS/2 can only load a DLL with a base name of 8 characters or less. 11721 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11722 v=$($ECHO $release$versuffix | tr -d .-); 11723 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11724 $ECHO $n$v`$shared_ext' 11725 library_names_spec='${libname}_dll.$libext' 11726 dynamic_linker='OS/2 ld.exe' 11727 shlibpath_var=BEGINLIBPATH 11728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11730 postinstall_cmds='base_file=`basename \$file`~ 11731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11732 dldir=$destdir/`dirname \$dlpath`~ 11733 test -d \$dldir || mkdir -p \$dldir~ 11734 $install_prog $dir/$dlname \$dldir/$dlname~ 11735 chmod a+x \$dldir/$dlname~ 11736 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11737 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11738 fi' 11739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11740 dlpath=$dir/\$dldll~ 11741 $RM \$dlpath' 11742 ;; 11743 11744osf3* | osf4* | osf5*) 11745 version_type=osf 11746 need_lib_prefix=no 11747 need_version=no 11748 soname_spec='$libname$release$shared_ext$major' 11749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11750 shlibpath_var=LD_LIBRARY_PATH 11751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11753 ;; 11754 11755rdos*) 11756 dynamic_linker=no 11757 ;; 11758 11759solaris*) 11760 version_type=linux # correct to gnu/linux during the next big refactor 11761 need_lib_prefix=no 11762 need_version=no 11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11764 soname_spec='$libname$release$shared_ext$major' 11765 shlibpath_var=LD_LIBRARY_PATH 11766 shlibpath_overrides_runpath=yes 11767 hardcode_into_libs=yes 11768 # ldd complains unless libraries are executable 11769 postinstall_cmds='chmod +x $lib' 11770 ;; 11771 11772sunos4*) 11773 version_type=sunos 11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11776 shlibpath_var=LD_LIBRARY_PATH 11777 shlibpath_overrides_runpath=yes 11778 if test yes = "$with_gnu_ld"; then 11779 need_lib_prefix=no 11780 fi 11781 need_version=yes 11782 ;; 11783 11784sysv4 | sysv4.3*) 11785 version_type=linux # correct to gnu/linux during the next big refactor 11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11787 soname_spec='$libname$release$shared_ext$major' 11788 shlibpath_var=LD_LIBRARY_PATH 11789 case $host_vendor in 11790 sni) 11791 shlibpath_overrides_runpath=no 11792 need_lib_prefix=no 11793 runpath_var=LD_RUN_PATH 11794 ;; 11795 siemens) 11796 need_lib_prefix=no 11797 ;; 11798 motorola) 11799 need_lib_prefix=no 11800 need_version=no 11801 shlibpath_overrides_runpath=no 11802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11803 ;; 11804 esac 11805 ;; 11806 11807sysv4*MP*) 11808 if test -d /usr/nec; then 11809 version_type=linux # correct to gnu/linux during the next big refactor 11810 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11811 soname_spec='$libname$shared_ext.$major' 11812 shlibpath_var=LD_LIBRARY_PATH 11813 fi 11814 ;; 11815 11816sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11817 version_type=sco 11818 need_lib_prefix=no 11819 need_version=no 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11821 soname_spec='$libname$release$shared_ext$major' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 shlibpath_overrides_runpath=yes 11824 hardcode_into_libs=yes 11825 if test yes = "$with_gnu_ld"; then 11826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11827 else 11828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11829 case $host_os in 11830 sco3.2v5*) 11831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11832 ;; 11833 esac 11834 fi 11835 sys_lib_dlsearch_path_spec='/usr/lib' 11836 ;; 11837 11838tpf*) 11839 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11840 version_type=linux # correct to gnu/linux during the next big refactor 11841 need_lib_prefix=no 11842 need_version=no 11843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11844 shlibpath_var=LD_LIBRARY_PATH 11845 shlibpath_overrides_runpath=no 11846 hardcode_into_libs=yes 11847 ;; 11848 11849uts4*) 11850 version_type=linux # correct to gnu/linux during the next big refactor 11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11852 soname_spec='$libname$release$shared_ext$major' 11853 shlibpath_var=LD_LIBRARY_PATH 11854 ;; 11855 11856*) 11857 dynamic_linker=no 11858 ;; 11859esac 11860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11861printf "%s\n" "$dynamic_linker" >&6; } 11862test no = "$dynamic_linker" && can_build_shared=no 11863 11864variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11865if test yes = "$GCC"; then 11866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11867fi 11868 11869if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11870 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11871fi 11872 11873if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11874 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11875fi 11876 11877# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11878configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11879 11880# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11881func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11882 11883# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11884configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11983printf %s "checking how to hardcode library paths into programs... " >&6; } 11984hardcode_action= 11985if test -n "$hardcode_libdir_flag_spec" || 11986 test -n "$runpath_var" || 11987 test yes = "$hardcode_automatic"; then 11988 11989 # We can hardcode non-existent directories. 11990 if test no != "$hardcode_direct" && 11991 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11992 # have to relink, otherwise we might link with an installed library 11993 # when we should be linking with a yet-to-be-installed one 11994 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11995 test no != "$hardcode_minus_L"; then 11996 # Linking always hardcodes the temporary library directory. 11997 hardcode_action=relink 11998 else 11999 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12000 hardcode_action=immediate 12001 fi 12002else 12003 # We cannot hardcode anything, or else we can only hardcode existing 12004 # directories. 12005 hardcode_action=unsupported 12006fi 12007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12008printf "%s\n" "$hardcode_action" >&6; } 12009 12010if test relink = "$hardcode_action" || 12011 test yes = "$inherit_rpath"; then 12012 # Fast installation is not supported 12013 enable_fast_install=no 12014elif test yes = "$shlibpath_overrides_runpath" || 12015 test no = "$enable_shared"; then 12016 # Fast installation is not necessary 12017 enable_fast_install=needless 12018fi 12019 12020 12021 12022 12023 12024 12025 if test yes != "$enable_dlopen"; then 12026 enable_dlopen=unknown 12027 enable_dlopen_self=unknown 12028 enable_dlopen_self_static=unknown 12029else 12030 lt_cv_dlopen=no 12031 lt_cv_dlopen_libs= 12032 12033 case $host_os in 12034 beos*) 12035 lt_cv_dlopen=load_add_on 12036 lt_cv_dlopen_libs= 12037 lt_cv_dlopen_self=yes 12038 ;; 12039 12040 mingw* | pw32* | cegcc*) 12041 lt_cv_dlopen=LoadLibrary 12042 lt_cv_dlopen_libs= 12043 ;; 12044 12045 cygwin*) 12046 lt_cv_dlopen=dlopen 12047 lt_cv_dlopen_libs= 12048 ;; 12049 12050 darwin*) 12051 # if libdl is installed we need to link against it 12052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12053printf %s "checking for dlopen in -ldl... " >&6; } 12054if test ${ac_cv_lib_dl_dlopen+y} 12055then : 12056 printf %s "(cached) " >&6 12057else $as_nop 12058 ac_check_lib_save_LIBS=$LIBS 12059LIBS="-ldl $LIBS" 12060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12061/* end confdefs.h. */ 12062 12063/* Override any GCC internal prototype to avoid an error. 12064 Use char because int might match the return type of a GCC 12065 builtin and then its argument prototype would still apply. */ 12066char dlopen (); 12067int 12068main (void) 12069{ 12070return dlopen (); 12071 ; 12072 return 0; 12073} 12074_ACEOF 12075if ac_fn_c_try_link "$LINENO" 12076then : 12077 ac_cv_lib_dl_dlopen=yes 12078else $as_nop 12079 ac_cv_lib_dl_dlopen=no 12080fi 12081rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12082 conftest$ac_exeext conftest.$ac_ext 12083LIBS=$ac_check_lib_save_LIBS 12084fi 12085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12086printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12087if test "x$ac_cv_lib_dl_dlopen" = xyes 12088then : 12089 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12090else $as_nop 12091 12092 lt_cv_dlopen=dyld 12093 lt_cv_dlopen_libs= 12094 lt_cv_dlopen_self=yes 12095 12096fi 12097 12098 ;; 12099 12100 tpf*) 12101 # Don't try to run any link tests for TPF. We know it's impossible 12102 # because TPF is a cross-compiler, and we know how we open DSOs. 12103 lt_cv_dlopen=dlopen 12104 lt_cv_dlopen_libs= 12105 lt_cv_dlopen_self=no 12106 ;; 12107 12108 *) 12109 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12110if test "x$ac_cv_func_shl_load" = xyes 12111then : 12112 lt_cv_dlopen=shl_load 12113else $as_nop 12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12115printf %s "checking for shl_load in -ldld... " >&6; } 12116if test ${ac_cv_lib_dld_shl_load+y} 12117then : 12118 printf %s "(cached) " >&6 12119else $as_nop 12120 ac_check_lib_save_LIBS=$LIBS 12121LIBS="-ldld $LIBS" 12122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12123/* end confdefs.h. */ 12124 12125/* Override any GCC internal prototype to avoid an error. 12126 Use char because int might match the return type of a GCC 12127 builtin and then its argument prototype would still apply. */ 12128char shl_load (); 12129int 12130main (void) 12131{ 12132return shl_load (); 12133 ; 12134 return 0; 12135} 12136_ACEOF 12137if ac_fn_c_try_link "$LINENO" 12138then : 12139 ac_cv_lib_dld_shl_load=yes 12140else $as_nop 12141 ac_cv_lib_dld_shl_load=no 12142fi 12143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12144 conftest$ac_exeext conftest.$ac_ext 12145LIBS=$ac_check_lib_save_LIBS 12146fi 12147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12148printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12149if test "x$ac_cv_lib_dld_shl_load" = xyes 12150then : 12151 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12152else $as_nop 12153 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12154if test "x$ac_cv_func_dlopen" = xyes 12155then : 12156 lt_cv_dlopen=dlopen 12157else $as_nop 12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12159printf %s "checking for dlopen in -ldl... " >&6; } 12160if test ${ac_cv_lib_dl_dlopen+y} 12161then : 12162 printf %s "(cached) " >&6 12163else $as_nop 12164 ac_check_lib_save_LIBS=$LIBS 12165LIBS="-ldl $LIBS" 12166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12167/* end confdefs.h. */ 12168 12169/* Override any GCC internal prototype to avoid an error. 12170 Use char because int might match the return type of a GCC 12171 builtin and then its argument prototype would still apply. */ 12172char dlopen (); 12173int 12174main (void) 12175{ 12176return dlopen (); 12177 ; 12178 return 0; 12179} 12180_ACEOF 12181if ac_fn_c_try_link "$LINENO" 12182then : 12183 ac_cv_lib_dl_dlopen=yes 12184else $as_nop 12185 ac_cv_lib_dl_dlopen=no 12186fi 12187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12188 conftest$ac_exeext conftest.$ac_ext 12189LIBS=$ac_check_lib_save_LIBS 12190fi 12191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12192printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12193if test "x$ac_cv_lib_dl_dlopen" = xyes 12194then : 12195 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12196else $as_nop 12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12198printf %s "checking for dlopen in -lsvld... " >&6; } 12199if test ${ac_cv_lib_svld_dlopen+y} 12200then : 12201 printf %s "(cached) " >&6 12202else $as_nop 12203 ac_check_lib_save_LIBS=$LIBS 12204LIBS="-lsvld $LIBS" 12205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12206/* end confdefs.h. */ 12207 12208/* Override any GCC internal prototype to avoid an error. 12209 Use char because int might match the return type of a GCC 12210 builtin and then its argument prototype would still apply. */ 12211char dlopen (); 12212int 12213main (void) 12214{ 12215return dlopen (); 12216 ; 12217 return 0; 12218} 12219_ACEOF 12220if ac_fn_c_try_link "$LINENO" 12221then : 12222 ac_cv_lib_svld_dlopen=yes 12223else $as_nop 12224 ac_cv_lib_svld_dlopen=no 12225fi 12226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12227 conftest$ac_exeext conftest.$ac_ext 12228LIBS=$ac_check_lib_save_LIBS 12229fi 12230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12231printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12232if test "x$ac_cv_lib_svld_dlopen" = xyes 12233then : 12234 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12235else $as_nop 12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12237printf %s "checking for dld_link in -ldld... " >&6; } 12238if test ${ac_cv_lib_dld_dld_link+y} 12239then : 12240 printf %s "(cached) " >&6 12241else $as_nop 12242 ac_check_lib_save_LIBS=$LIBS 12243LIBS="-ldld $LIBS" 12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246 12247/* Override any GCC internal prototype to avoid an error. 12248 Use char because int might match the return type of a GCC 12249 builtin and then its argument prototype would still apply. */ 12250char dld_link (); 12251int 12252main (void) 12253{ 12254return dld_link (); 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259if ac_fn_c_try_link "$LINENO" 12260then : 12261 ac_cv_lib_dld_dld_link=yes 12262else $as_nop 12263 ac_cv_lib_dld_dld_link=no 12264fi 12265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12266 conftest$ac_exeext conftest.$ac_ext 12267LIBS=$ac_check_lib_save_LIBS 12268fi 12269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12270printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12271if test "x$ac_cv_lib_dld_dld_link" = xyes 12272then : 12273 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12274fi 12275 12276 12277fi 12278 12279 12280fi 12281 12282 12283fi 12284 12285 12286fi 12287 12288 12289fi 12290 12291 ;; 12292 esac 12293 12294 if test no = "$lt_cv_dlopen"; then 12295 enable_dlopen=no 12296 else 12297 enable_dlopen=yes 12298 fi 12299 12300 case $lt_cv_dlopen in 12301 dlopen) 12302 save_CPPFLAGS=$CPPFLAGS 12303 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12304 12305 save_LDFLAGS=$LDFLAGS 12306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12307 12308 save_LIBS=$LIBS 12309 LIBS="$lt_cv_dlopen_libs $LIBS" 12310 12311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12312printf %s "checking whether a program can dlopen itself... " >&6; } 12313if test ${lt_cv_dlopen_self+y} 12314then : 12315 printf %s "(cached) " >&6 12316else $as_nop 12317 if test yes = "$cross_compiling"; then : 12318 lt_cv_dlopen_self=cross 12319else 12320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12321 lt_status=$lt_dlunknown 12322 cat > conftest.$ac_ext <<_LT_EOF 12323#line $LINENO "configure" 12324#include "confdefs.h" 12325 12326#if HAVE_DLFCN_H 12327#include <dlfcn.h> 12328#endif 12329 12330#include <stdio.h> 12331 12332#ifdef RTLD_GLOBAL 12333# define LT_DLGLOBAL RTLD_GLOBAL 12334#else 12335# ifdef DL_GLOBAL 12336# define LT_DLGLOBAL DL_GLOBAL 12337# else 12338# define LT_DLGLOBAL 0 12339# endif 12340#endif 12341 12342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12343 find out it does not work in some platform. */ 12344#ifndef LT_DLLAZY_OR_NOW 12345# ifdef RTLD_LAZY 12346# define LT_DLLAZY_OR_NOW RTLD_LAZY 12347# else 12348# ifdef DL_LAZY 12349# define LT_DLLAZY_OR_NOW DL_LAZY 12350# else 12351# ifdef RTLD_NOW 12352# define LT_DLLAZY_OR_NOW RTLD_NOW 12353# else 12354# ifdef DL_NOW 12355# define LT_DLLAZY_OR_NOW DL_NOW 12356# else 12357# define LT_DLLAZY_OR_NOW 0 12358# endif 12359# endif 12360# endif 12361# endif 12362#endif 12363 12364/* When -fvisibility=hidden is used, assume the code has been annotated 12365 correspondingly for the symbols needed. */ 12366#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12367int fnord () __attribute__((visibility("default"))); 12368#endif 12369 12370int fnord () { return 42; } 12371int main () 12372{ 12373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12374 int status = $lt_dlunknown; 12375 12376 if (self) 12377 { 12378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12379 else 12380 { 12381 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12382 else puts (dlerror ()); 12383 } 12384 /* dlclose (self); */ 12385 } 12386 else 12387 puts (dlerror ()); 12388 12389 return status; 12390} 12391_LT_EOF 12392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12393 (eval $ac_link) 2>&5 12394 ac_status=$? 12395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12396 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12397 (./conftest; exit; ) >&5 2>/dev/null 12398 lt_status=$? 12399 case x$lt_status in 12400 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12401 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12402 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12403 esac 12404 else : 12405 # compilation failed 12406 lt_cv_dlopen_self=no 12407 fi 12408fi 12409rm -fr conftest* 12410 12411 12412fi 12413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12414printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12415 12416 if test yes = "$lt_cv_dlopen_self"; then 12417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12419printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12420if test ${lt_cv_dlopen_self_static+y} 12421then : 12422 printf %s "(cached) " >&6 12423else $as_nop 12424 if test yes = "$cross_compiling"; then : 12425 lt_cv_dlopen_self_static=cross 12426else 12427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12428 lt_status=$lt_dlunknown 12429 cat > conftest.$ac_ext <<_LT_EOF 12430#line $LINENO "configure" 12431#include "confdefs.h" 12432 12433#if HAVE_DLFCN_H 12434#include <dlfcn.h> 12435#endif 12436 12437#include <stdio.h> 12438 12439#ifdef RTLD_GLOBAL 12440# define LT_DLGLOBAL RTLD_GLOBAL 12441#else 12442# ifdef DL_GLOBAL 12443# define LT_DLGLOBAL DL_GLOBAL 12444# else 12445# define LT_DLGLOBAL 0 12446# endif 12447#endif 12448 12449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12450 find out it does not work in some platform. */ 12451#ifndef LT_DLLAZY_OR_NOW 12452# ifdef RTLD_LAZY 12453# define LT_DLLAZY_OR_NOW RTLD_LAZY 12454# else 12455# ifdef DL_LAZY 12456# define LT_DLLAZY_OR_NOW DL_LAZY 12457# else 12458# ifdef RTLD_NOW 12459# define LT_DLLAZY_OR_NOW RTLD_NOW 12460# else 12461# ifdef DL_NOW 12462# define LT_DLLAZY_OR_NOW DL_NOW 12463# else 12464# define LT_DLLAZY_OR_NOW 0 12465# endif 12466# endif 12467# endif 12468# endif 12469#endif 12470 12471/* When -fvisibility=hidden is used, assume the code has been annotated 12472 correspondingly for the symbols needed. */ 12473#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12474int fnord () __attribute__((visibility("default"))); 12475#endif 12476 12477int fnord () { return 42; } 12478int main () 12479{ 12480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12481 int status = $lt_dlunknown; 12482 12483 if (self) 12484 { 12485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12486 else 12487 { 12488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12489 else puts (dlerror ()); 12490 } 12491 /* dlclose (self); */ 12492 } 12493 else 12494 puts (dlerror ()); 12495 12496 return status; 12497} 12498_LT_EOF 12499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12500 (eval $ac_link) 2>&5 12501 ac_status=$? 12502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12503 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12504 (./conftest; exit; ) >&5 2>/dev/null 12505 lt_status=$? 12506 case x$lt_status in 12507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12510 esac 12511 else : 12512 # compilation failed 12513 lt_cv_dlopen_self_static=no 12514 fi 12515fi 12516rm -fr conftest* 12517 12518 12519fi 12520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12521printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12522 fi 12523 12524 CPPFLAGS=$save_CPPFLAGS 12525 LDFLAGS=$save_LDFLAGS 12526 LIBS=$save_LIBS 12527 ;; 12528 esac 12529 12530 case $lt_cv_dlopen_self in 12531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12532 *) enable_dlopen_self=unknown ;; 12533 esac 12534 12535 case $lt_cv_dlopen_self_static in 12536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12537 *) enable_dlopen_self_static=unknown ;; 12538 esac 12539fi 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557striplib= 12558old_striplib= 12559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12560printf %s "checking whether stripping libraries is possible... " >&6; } 12561if test -z "$STRIP"; then 12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12563printf "%s\n" "no" >&6; } 12564else 12565 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12566 old_striplib="$STRIP --strip-debug" 12567 striplib="$STRIP --strip-unneeded" 12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12569printf "%s\n" "yes" >&6; } 12570 else 12571 case $host_os in 12572 darwin*) 12573 # FIXME - insert some real tests, host_os isn't really good enough 12574 striplib="$STRIP -x" 12575 old_striplib="$STRIP -S" 12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12577printf "%s\n" "yes" >&6; } 12578 ;; 12579 freebsd*) 12580 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12581 old_striplib="$STRIP --strip-debug" 12582 striplib="$STRIP --strip-unneeded" 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12584printf "%s\n" "yes" >&6; } 12585 else 12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12587printf "%s\n" "no" >&6; } 12588 fi 12589 ;; 12590 *) 12591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12592printf "%s\n" "no" >&6; } 12593 ;; 12594 esac 12595 fi 12596fi 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 # Report what library types will actually be built 12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12611printf %s "checking if libtool supports shared libraries... " >&6; } 12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12613printf "%s\n" "$can_build_shared" >&6; } 12614 12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12616printf %s "checking whether to build shared libraries... " >&6; } 12617 test no = "$can_build_shared" && enable_shared=no 12618 12619 # On AIX, shared libraries and static libraries use the same namespace, and 12620 # are all built from PIC. 12621 case $host_os in 12622 aix3*) 12623 test yes = "$enable_shared" && enable_static=no 12624 if test -n "$RANLIB"; then 12625 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12626 postinstall_cmds='$RANLIB $lib' 12627 fi 12628 ;; 12629 12630 aix[4-9]*) 12631 if test ia64 != "$host_cpu"; then 12632 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12633 yes,aix,yes) ;; # shared object as lib.so file only 12634 yes,svr4,*) ;; # shared object as lib.so archive member only 12635 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12636 esac 12637 fi 12638 ;; 12639 esac 12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12641printf "%s\n" "$enable_shared" >&6; } 12642 12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12644printf %s "checking whether to build static libraries... " >&6; } 12645 # Make sure either enable_shared or enable_static is yes. 12646 test yes = "$enable_shared" || enable_static=yes 12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12648printf "%s\n" "$enable_static" >&6; } 12649 12650 12651 12652 12653fi 12654ac_ext=c 12655ac_cpp='$CPP $CPPFLAGS' 12656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12658ac_compiler_gnu=$ac_cv_c_compiler_gnu 12659 12660CC=$lt_save_CC 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 ac_config_commands="$ac_config_commands libtool" 12677 12678 12679 12680 12681# Only expand once: 12682 12683 12684 12685# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12699printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12700if test ${ac_cv_c_undeclared_builtin_options+y} 12701then : 12702 printf %s "(cached) " >&6 12703else $as_nop 12704 ac_save_CFLAGS=$CFLAGS 12705 ac_cv_c_undeclared_builtin_options='cannot detect' 12706 for ac_arg in '' -fno-builtin; do 12707 CFLAGS="$ac_save_CFLAGS $ac_arg" 12708 # This test program should *not* compile successfully. 12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12710/* end confdefs.h. */ 12711 12712int 12713main (void) 12714{ 12715(void) strchr; 12716 ; 12717 return 0; 12718} 12719_ACEOF 12720if ac_fn_c_try_compile "$LINENO" 12721then : 12722 12723else $as_nop 12724 # This test program should compile successfully. 12725 # No library function is consistently available on 12726 # freestanding implementations, so test against a dummy 12727 # declaration. Include always-available headers on the 12728 # off chance that they somehow elicit warnings. 12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730/* end confdefs.h. */ 12731#include <float.h> 12732#include <limits.h> 12733#include <stdarg.h> 12734#include <stddef.h> 12735extern void ac_decl (int, char *); 12736 12737int 12738main (void) 12739{ 12740(void) ac_decl (0, (char *) 0); 12741 (void) ac_decl; 12742 12743 ; 12744 return 0; 12745} 12746_ACEOF 12747if ac_fn_c_try_compile "$LINENO" 12748then : 12749 if test x"$ac_arg" = x 12750then : 12751 ac_cv_c_undeclared_builtin_options='none needed' 12752else $as_nop 12753 ac_cv_c_undeclared_builtin_options=$ac_arg 12754fi 12755 break 12756fi 12757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12758fi 12759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12760 done 12761 CFLAGS=$ac_save_CFLAGS 12762 12763fi 12764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12765printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12766 case $ac_cv_c_undeclared_builtin_options in #( 12767 'cannot detect') : 12768 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12769printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12770as_fn_error $? "cannot make $CC report undeclared builtins 12771See \`config.log' for more details" "$LINENO" 5; } ;; #( 12772 'none needed') : 12773 ac_c_undeclared_builtin_options='' ;; #( 12774 *) : 12775 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12776esac 12777 12778 12779 12780 12781 12782ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12783if test "x$ac_cv_have_decl___clang__" = xyes 12784then : 12785 CLANGCC="yes" 12786else $as_nop 12787 CLANGCC="no" 12788fi 12789ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12790if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12791then : 12792 INTELCC="yes" 12793else $as_nop 12794 INTELCC="no" 12795fi 12796ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12797if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12798then : 12799 SUNCC="yes" 12800else $as_nop 12801 SUNCC="no" 12802fi 12803 12804 12805 12806 12807 12808 12809 12810 12811if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12812 if test -n "$ac_tool_prefix"; then 12813 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12814set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12816printf %s "checking for $ac_word... " >&6; } 12817if test ${ac_cv_path_PKG_CONFIG+y} 12818then : 12819 printf %s "(cached) " >&6 12820else $as_nop 12821 case $PKG_CONFIG in 12822 [\\/]* | ?:[\\/]*) 12823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12824 ;; 12825 *) 12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12827for as_dir in $PATH 12828do 12829 IFS=$as_save_IFS 12830 case $as_dir in #((( 12831 '') as_dir=./ ;; 12832 */) ;; 12833 *) as_dir=$as_dir/ ;; 12834 esac 12835 for ac_exec_ext in '' $ac_executable_extensions; do 12836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12837 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12839 break 2 12840 fi 12841done 12842 done 12843IFS=$as_save_IFS 12844 12845 ;; 12846esac 12847fi 12848PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12849if test -n "$PKG_CONFIG"; then 12850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12851printf "%s\n" "$PKG_CONFIG" >&6; } 12852else 12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12854printf "%s\n" "no" >&6; } 12855fi 12856 12857 12858fi 12859if test -z "$ac_cv_path_PKG_CONFIG"; then 12860 ac_pt_PKG_CONFIG=$PKG_CONFIG 12861 # Extract the first word of "pkg-config", so it can be a program name with args. 12862set dummy pkg-config; ac_word=$2 12863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12864printf %s "checking for $ac_word... " >&6; } 12865if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12866then : 12867 printf %s "(cached) " >&6 12868else $as_nop 12869 case $ac_pt_PKG_CONFIG in 12870 [\\/]* | ?:[\\/]*) 12871 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12872 ;; 12873 *) 12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12875for as_dir in $PATH 12876do 12877 IFS=$as_save_IFS 12878 case $as_dir in #((( 12879 '') as_dir=./ ;; 12880 */) ;; 12881 *) as_dir=$as_dir/ ;; 12882 esac 12883 for ac_exec_ext in '' $ac_executable_extensions; do 12884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12885 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12887 break 2 12888 fi 12889done 12890 done 12891IFS=$as_save_IFS 12892 12893 ;; 12894esac 12895fi 12896ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12897if test -n "$ac_pt_PKG_CONFIG"; then 12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12899printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12900else 12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12902printf "%s\n" "no" >&6; } 12903fi 12904 12905 if test "x$ac_pt_PKG_CONFIG" = x; then 12906 PKG_CONFIG="" 12907 else 12908 case $cross_compiling:$ac_tool_warned in 12909yes:) 12910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12911printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12912ac_tool_warned=yes ;; 12913esac 12914 PKG_CONFIG=$ac_pt_PKG_CONFIG 12915 fi 12916else 12917 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12918fi 12919 12920fi 12921if test -n "$PKG_CONFIG"; then 12922 _pkg_min_version=0.9.0 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12924printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12925 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12927printf "%s\n" "yes" >&6; } 12928 else 12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12930printf "%s\n" "no" >&6; } 12931 PKG_CONFIG="" 12932 fi 12933fi 12934 12935 12936 12937 12938 12939# Check whether --enable-selective-werror was given. 12940if test ${enable_selective_werror+y} 12941then : 12942 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12943else $as_nop 12944 SELECTIVE_WERROR=yes 12945fi 12946 12947 12948 12949 12950 12951# -v is too short to test reliably with XORG_TESTSET_CFLAG 12952if test "x$SUNCC" = "xyes"; then 12953 BASE_CFLAGS="-v" 12954else 12955 BASE_CFLAGS="" 12956fi 12957 12958# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972xorg_testset_save_CFLAGS="$CFLAGS" 12973 12974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12978if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12979then : 12980 printf %s "(cached) " >&6 12981else $as_nop 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983/* end confdefs.h. */ 12984int i; 12985_ACEOF 12986if ac_fn_c_try_compile "$LINENO" 12987then : 12988 xorg_cv_cc_flag_unknown_warning_option=yes 12989else $as_nop 12990 xorg_cv_cc_flag_unknown_warning_option=no 12991fi 12992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12993fi 12994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12997 CFLAGS="$xorg_testset_save_CFLAGS" 12998fi 12999 13000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13003 fi 13004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13007if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13008then : 13009 printf %s "(cached) " >&6 13010else $as_nop 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013int i; 13014_ACEOF 13015if ac_fn_c_try_compile "$LINENO" 13016then : 13017 xorg_cv_cc_flag_unused_command_line_argument=yes 13018else $as_nop 13019 xorg_cv_cc_flag_unused_command_line_argument=no 13020fi 13021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13022fi 13023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13026 CFLAGS="$xorg_testset_save_CFLAGS" 13027fi 13028 13029found="no" 13030 13031 if test $found = "no" ; then 13032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13034 fi 13035 13036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13038 fi 13039 13040 CFLAGS="$CFLAGS -Wall" 13041 13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13043printf %s "checking if $CC supports -Wall... " >&6; } 13044 cacheid=xorg_cv_cc_flag__Wall 13045 if eval test \${$cacheid+y} 13046then : 13047 printf %s "(cached) " >&6 13048else $as_nop 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13050/* end confdefs.h. */ 13051int i; 13052int 13053main (void) 13054{ 13055 13056 ; 13057 return 0; 13058} 13059_ACEOF 13060if ac_fn_c_try_link "$LINENO" 13061then : 13062 eval $cacheid=yes 13063else $as_nop 13064 eval $cacheid=no 13065fi 13066rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13067 conftest$ac_exeext conftest.$ac_ext 13068fi 13069 13070 13071 CFLAGS="$xorg_testset_save_CFLAGS" 13072 13073 eval supported=\$$cacheid 13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13075printf "%s\n" "$supported" >&6; } 13076 if test "$supported" = "yes" ; then 13077 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13078 found="yes" 13079 fi 13080 fi 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096xorg_testset_save_CFLAGS="$CFLAGS" 13097 13098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13102if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13103then : 13104 printf %s "(cached) " >&6 13105else $as_nop 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13107/* end confdefs.h. */ 13108int i; 13109_ACEOF 13110if ac_fn_c_try_compile "$LINENO" 13111then : 13112 xorg_cv_cc_flag_unknown_warning_option=yes 13113else $as_nop 13114 xorg_cv_cc_flag_unknown_warning_option=no 13115fi 13116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13117fi 13118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13121 CFLAGS="$xorg_testset_save_CFLAGS" 13122fi 13123 13124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13127 fi 13128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13131if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13132then : 13133 printf %s "(cached) " >&6 13134else $as_nop 13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13136/* end confdefs.h. */ 13137int i; 13138_ACEOF 13139if ac_fn_c_try_compile "$LINENO" 13140then : 13141 xorg_cv_cc_flag_unused_command_line_argument=yes 13142else $as_nop 13143 xorg_cv_cc_flag_unused_command_line_argument=no 13144fi 13145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13146fi 13147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13150 CFLAGS="$xorg_testset_save_CFLAGS" 13151fi 13152 13153found="no" 13154 13155 if test $found = "no" ; then 13156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13158 fi 13159 13160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13162 fi 13163 13164 CFLAGS="$CFLAGS -Wpointer-arith" 13165 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13167printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13168 cacheid=xorg_cv_cc_flag__Wpointer_arith 13169 if eval test \${$cacheid+y} 13170then : 13171 printf %s "(cached) " >&6 13172else $as_nop 13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13174/* end confdefs.h. */ 13175int i; 13176int 13177main (void) 13178{ 13179 13180 ; 13181 return 0; 13182} 13183_ACEOF 13184if ac_fn_c_try_link "$LINENO" 13185then : 13186 eval $cacheid=yes 13187else $as_nop 13188 eval $cacheid=no 13189fi 13190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13191 conftest$ac_exeext conftest.$ac_ext 13192fi 13193 13194 13195 CFLAGS="$xorg_testset_save_CFLAGS" 13196 13197 eval supported=\$$cacheid 13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13199printf "%s\n" "$supported" >&6; } 13200 if test "$supported" = "yes" ; then 13201 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13202 found="yes" 13203 fi 13204 fi 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220xorg_testset_save_CFLAGS="$CFLAGS" 13221 13222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13227then : 13228 printf %s "(cached) " >&6 13229else $as_nop 13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231/* end confdefs.h. */ 13232int i; 13233_ACEOF 13234if ac_fn_c_try_compile "$LINENO" 13235then : 13236 xorg_cv_cc_flag_unknown_warning_option=yes 13237else $as_nop 13238 xorg_cv_cc_flag_unknown_warning_option=no 13239fi 13240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13241fi 13242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246fi 13247 13248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13251 fi 13252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13255if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13256then : 13257 printf %s "(cached) " >&6 13258else $as_nop 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260/* end confdefs.h. */ 13261int i; 13262_ACEOF 13263if ac_fn_c_try_compile "$LINENO" 13264then : 13265 xorg_cv_cc_flag_unused_command_line_argument=yes 13266else $as_nop 13267 xorg_cv_cc_flag_unused_command_line_argument=no 13268fi 13269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13270fi 13271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13274 CFLAGS="$xorg_testset_save_CFLAGS" 13275fi 13276 13277found="no" 13278 13279 if test $found = "no" ; then 13280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13282 fi 13283 13284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13286 fi 13287 13288 CFLAGS="$CFLAGS -Wmissing-declarations" 13289 13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13291printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13292 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13293 if eval test \${$cacheid+y} 13294then : 13295 printf %s "(cached) " >&6 13296else $as_nop 13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13298/* end confdefs.h. */ 13299int i; 13300int 13301main (void) 13302{ 13303 13304 ; 13305 return 0; 13306} 13307_ACEOF 13308if ac_fn_c_try_link "$LINENO" 13309then : 13310 eval $cacheid=yes 13311else $as_nop 13312 eval $cacheid=no 13313fi 13314rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13315 conftest$ac_exeext conftest.$ac_ext 13316fi 13317 13318 13319 CFLAGS="$xorg_testset_save_CFLAGS" 13320 13321 eval supported=\$$cacheid 13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13323printf "%s\n" "$supported" >&6; } 13324 if test "$supported" = "yes" ; then 13325 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13326 found="yes" 13327 fi 13328 fi 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344xorg_testset_save_CFLAGS="$CFLAGS" 13345 13346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13350if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13351then : 13352 printf %s "(cached) " >&6 13353else $as_nop 13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13355/* end confdefs.h. */ 13356int i; 13357_ACEOF 13358if ac_fn_c_try_compile "$LINENO" 13359then : 13360 xorg_cv_cc_flag_unknown_warning_option=yes 13361else $as_nop 13362 xorg_cv_cc_flag_unknown_warning_option=no 13363fi 13364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13365fi 13366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13369 CFLAGS="$xorg_testset_save_CFLAGS" 13370fi 13371 13372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13375 fi 13376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13379if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13380then : 13381 printf %s "(cached) " >&6 13382else $as_nop 13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13384/* end confdefs.h. */ 13385int i; 13386_ACEOF 13387if ac_fn_c_try_compile "$LINENO" 13388then : 13389 xorg_cv_cc_flag_unused_command_line_argument=yes 13390else $as_nop 13391 xorg_cv_cc_flag_unused_command_line_argument=no 13392fi 13393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13394fi 13395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13398 CFLAGS="$xorg_testset_save_CFLAGS" 13399fi 13400 13401found="no" 13402 13403 if test $found = "no" ; then 13404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13406 fi 13407 13408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13410 fi 13411 13412 CFLAGS="$CFLAGS -Wformat=2" 13413 13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13415printf %s "checking if $CC supports -Wformat=2... " >&6; } 13416 cacheid=xorg_cv_cc_flag__Wformat_2 13417 if eval test \${$cacheid+y} 13418then : 13419 printf %s "(cached) " >&6 13420else $as_nop 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422/* end confdefs.h. */ 13423int i; 13424int 13425main (void) 13426{ 13427 13428 ; 13429 return 0; 13430} 13431_ACEOF 13432if ac_fn_c_try_link "$LINENO" 13433then : 13434 eval $cacheid=yes 13435else $as_nop 13436 eval $cacheid=no 13437fi 13438rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13439 conftest$ac_exeext conftest.$ac_ext 13440fi 13441 13442 13443 CFLAGS="$xorg_testset_save_CFLAGS" 13444 13445 eval supported=\$$cacheid 13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13447printf "%s\n" "$supported" >&6; } 13448 if test "$supported" = "yes" ; then 13449 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13450 found="yes" 13451 fi 13452 fi 13453 13454 if test $found = "no" ; then 13455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13457 fi 13458 13459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13461 fi 13462 13463 CFLAGS="$CFLAGS -Wformat" 13464 13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13466printf %s "checking if $CC supports -Wformat... " >&6; } 13467 cacheid=xorg_cv_cc_flag__Wformat 13468 if eval test \${$cacheid+y} 13469then : 13470 printf %s "(cached) " >&6 13471else $as_nop 13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13473/* end confdefs.h. */ 13474int i; 13475int 13476main (void) 13477{ 13478 13479 ; 13480 return 0; 13481} 13482_ACEOF 13483if ac_fn_c_try_link "$LINENO" 13484then : 13485 eval $cacheid=yes 13486else $as_nop 13487 eval $cacheid=no 13488fi 13489rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13490 conftest$ac_exeext conftest.$ac_ext 13491fi 13492 13493 13494 CFLAGS="$xorg_testset_save_CFLAGS" 13495 13496 eval supported=\$$cacheid 13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13498printf "%s\n" "$supported" >&6; } 13499 if test "$supported" = "yes" ; then 13500 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13501 found="yes" 13502 fi 13503 fi 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521xorg_testset_save_CFLAGS="$CFLAGS" 13522 13523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13527if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13528then : 13529 printf %s "(cached) " >&6 13530else $as_nop 13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13532/* end confdefs.h. */ 13533int i; 13534_ACEOF 13535if ac_fn_c_try_compile "$LINENO" 13536then : 13537 xorg_cv_cc_flag_unknown_warning_option=yes 13538else $as_nop 13539 xorg_cv_cc_flag_unknown_warning_option=no 13540fi 13541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13542fi 13543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13546 CFLAGS="$xorg_testset_save_CFLAGS" 13547fi 13548 13549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13552 fi 13553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13556if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13557then : 13558 printf %s "(cached) " >&6 13559else $as_nop 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561/* end confdefs.h. */ 13562int i; 13563_ACEOF 13564if ac_fn_c_try_compile "$LINENO" 13565then : 13566 xorg_cv_cc_flag_unused_command_line_argument=yes 13567else $as_nop 13568 xorg_cv_cc_flag_unused_command_line_argument=no 13569fi 13570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13571fi 13572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13575 CFLAGS="$xorg_testset_save_CFLAGS" 13576fi 13577 13578found="no" 13579 13580 if test $found = "no" ; then 13581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13583 fi 13584 13585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13587 fi 13588 13589 CFLAGS="$CFLAGS -Wstrict-prototypes" 13590 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13592printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13593 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13594 if eval test \${$cacheid+y} 13595then : 13596 printf %s "(cached) " >&6 13597else $as_nop 13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13599/* end confdefs.h. */ 13600int i; 13601int 13602main (void) 13603{ 13604 13605 ; 13606 return 0; 13607} 13608_ACEOF 13609if ac_fn_c_try_link "$LINENO" 13610then : 13611 eval $cacheid=yes 13612else $as_nop 13613 eval $cacheid=no 13614fi 13615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13616 conftest$ac_exeext conftest.$ac_ext 13617fi 13618 13619 13620 CFLAGS="$xorg_testset_save_CFLAGS" 13621 13622 eval supported=\$$cacheid 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13624printf "%s\n" "$supported" >&6; } 13625 if test "$supported" = "yes" ; then 13626 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13627 found="yes" 13628 fi 13629 fi 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645xorg_testset_save_CFLAGS="$CFLAGS" 13646 13647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13651if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13652then : 13653 printf %s "(cached) " >&6 13654else $as_nop 13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656/* end confdefs.h. */ 13657int i; 13658_ACEOF 13659if ac_fn_c_try_compile "$LINENO" 13660then : 13661 xorg_cv_cc_flag_unknown_warning_option=yes 13662else $as_nop 13663 xorg_cv_cc_flag_unknown_warning_option=no 13664fi 13665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13666fi 13667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13670 CFLAGS="$xorg_testset_save_CFLAGS" 13671fi 13672 13673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13676 fi 13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13680if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13681then : 13682 printf %s "(cached) " >&6 13683else $as_nop 13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13685/* end confdefs.h. */ 13686int i; 13687_ACEOF 13688if ac_fn_c_try_compile "$LINENO" 13689then : 13690 xorg_cv_cc_flag_unused_command_line_argument=yes 13691else $as_nop 13692 xorg_cv_cc_flag_unused_command_line_argument=no 13693fi 13694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13695fi 13696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13699 CFLAGS="$xorg_testset_save_CFLAGS" 13700fi 13701 13702found="no" 13703 13704 if test $found = "no" ; then 13705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13707 fi 13708 13709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13711 fi 13712 13713 CFLAGS="$CFLAGS -Wmissing-prototypes" 13714 13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13716printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13717 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13718 if eval test \${$cacheid+y} 13719then : 13720 printf %s "(cached) " >&6 13721else $as_nop 13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723/* end confdefs.h. */ 13724int i; 13725int 13726main (void) 13727{ 13728 13729 ; 13730 return 0; 13731} 13732_ACEOF 13733if ac_fn_c_try_link "$LINENO" 13734then : 13735 eval $cacheid=yes 13736else $as_nop 13737 eval $cacheid=no 13738fi 13739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13740 conftest$ac_exeext conftest.$ac_ext 13741fi 13742 13743 13744 CFLAGS="$xorg_testset_save_CFLAGS" 13745 13746 eval supported=\$$cacheid 13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13748printf "%s\n" "$supported" >&6; } 13749 if test "$supported" = "yes" ; then 13750 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13751 found="yes" 13752 fi 13753 fi 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769xorg_testset_save_CFLAGS="$CFLAGS" 13770 13771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13775if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13776then : 13777 printf %s "(cached) " >&6 13778else $as_nop 13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13780/* end confdefs.h. */ 13781int i; 13782_ACEOF 13783if ac_fn_c_try_compile "$LINENO" 13784then : 13785 xorg_cv_cc_flag_unknown_warning_option=yes 13786else $as_nop 13787 xorg_cv_cc_flag_unknown_warning_option=no 13788fi 13789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13790fi 13791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13794 CFLAGS="$xorg_testset_save_CFLAGS" 13795fi 13796 13797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13800 fi 13801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13804if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13805then : 13806 printf %s "(cached) " >&6 13807else $as_nop 13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13809/* end confdefs.h. */ 13810int i; 13811_ACEOF 13812if ac_fn_c_try_compile "$LINENO" 13813then : 13814 xorg_cv_cc_flag_unused_command_line_argument=yes 13815else $as_nop 13816 xorg_cv_cc_flag_unused_command_line_argument=no 13817fi 13818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13819fi 13820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13823 CFLAGS="$xorg_testset_save_CFLAGS" 13824fi 13825 13826found="no" 13827 13828 if test $found = "no" ; then 13829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13831 fi 13832 13833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13835 fi 13836 13837 CFLAGS="$CFLAGS -Wnested-externs" 13838 13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13840printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13841 cacheid=xorg_cv_cc_flag__Wnested_externs 13842 if eval test \${$cacheid+y} 13843then : 13844 printf %s "(cached) " >&6 13845else $as_nop 13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13847/* end confdefs.h. */ 13848int i; 13849int 13850main (void) 13851{ 13852 13853 ; 13854 return 0; 13855} 13856_ACEOF 13857if ac_fn_c_try_link "$LINENO" 13858then : 13859 eval $cacheid=yes 13860else $as_nop 13861 eval $cacheid=no 13862fi 13863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13864 conftest$ac_exeext conftest.$ac_ext 13865fi 13866 13867 13868 CFLAGS="$xorg_testset_save_CFLAGS" 13869 13870 eval supported=\$$cacheid 13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13872printf "%s\n" "$supported" >&6; } 13873 if test "$supported" = "yes" ; then 13874 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13875 found="yes" 13876 fi 13877 fi 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893xorg_testset_save_CFLAGS="$CFLAGS" 13894 13895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13899if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13900then : 13901 printf %s "(cached) " >&6 13902else $as_nop 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904/* end confdefs.h. */ 13905int i; 13906_ACEOF 13907if ac_fn_c_try_compile "$LINENO" 13908then : 13909 xorg_cv_cc_flag_unknown_warning_option=yes 13910else $as_nop 13911 xorg_cv_cc_flag_unknown_warning_option=no 13912fi 13913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13914fi 13915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919fi 13920 13921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13924 fi 13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13928if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13929then : 13930 printf %s "(cached) " >&6 13931else $as_nop 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934int i; 13935_ACEOF 13936if ac_fn_c_try_compile "$LINENO" 13937then : 13938 xorg_cv_cc_flag_unused_command_line_argument=yes 13939else $as_nop 13940 xorg_cv_cc_flag_unused_command_line_argument=no 13941fi 13942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13943fi 13944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13947 CFLAGS="$xorg_testset_save_CFLAGS" 13948fi 13949 13950found="no" 13951 13952 if test $found = "no" ; then 13953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13955 fi 13956 13957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13959 fi 13960 13961 CFLAGS="$CFLAGS -Wbad-function-cast" 13962 13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13964printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13965 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13966 if eval test \${$cacheid+y} 13967then : 13968 printf %s "(cached) " >&6 13969else $as_nop 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13971/* end confdefs.h. */ 13972int i; 13973int 13974main (void) 13975{ 13976 13977 ; 13978 return 0; 13979} 13980_ACEOF 13981if ac_fn_c_try_link "$LINENO" 13982then : 13983 eval $cacheid=yes 13984else $as_nop 13985 eval $cacheid=no 13986fi 13987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13988 conftest$ac_exeext conftest.$ac_ext 13989fi 13990 13991 13992 CFLAGS="$xorg_testset_save_CFLAGS" 13993 13994 eval supported=\$$cacheid 13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13996printf "%s\n" "$supported" >&6; } 13997 if test "$supported" = "yes" ; then 13998 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13999 found="yes" 14000 fi 14001 fi 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017xorg_testset_save_CFLAGS="$CFLAGS" 14018 14019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14023if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14024then : 14025 printf %s "(cached) " >&6 14026else $as_nop 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029int i; 14030_ACEOF 14031if ac_fn_c_try_compile "$LINENO" 14032then : 14033 xorg_cv_cc_flag_unknown_warning_option=yes 14034else $as_nop 14035 xorg_cv_cc_flag_unknown_warning_option=no 14036fi 14037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14038fi 14039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14042 CFLAGS="$xorg_testset_save_CFLAGS" 14043fi 14044 14045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14048 fi 14049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14053then : 14054 printf %s "(cached) " >&6 14055else $as_nop 14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14057/* end confdefs.h. */ 14058int i; 14059_ACEOF 14060if ac_fn_c_try_compile "$LINENO" 14061then : 14062 xorg_cv_cc_flag_unused_command_line_argument=yes 14063else $as_nop 14064 xorg_cv_cc_flag_unused_command_line_argument=no 14065fi 14066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14067fi 14068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14071 CFLAGS="$xorg_testset_save_CFLAGS" 14072fi 14073 14074found="no" 14075 14076 if test $found = "no" ; then 14077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14079 fi 14080 14081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14083 fi 14084 14085 CFLAGS="$CFLAGS -Wold-style-definition" 14086 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14088printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14089 cacheid=xorg_cv_cc_flag__Wold_style_definition 14090 if eval test \${$cacheid+y} 14091then : 14092 printf %s "(cached) " >&6 14093else $as_nop 14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14095/* end confdefs.h. */ 14096int i; 14097int 14098main (void) 14099{ 14100 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105if ac_fn_c_try_link "$LINENO" 14106then : 14107 eval $cacheid=yes 14108else $as_nop 14109 eval $cacheid=no 14110fi 14111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14112 conftest$ac_exeext conftest.$ac_ext 14113fi 14114 14115 14116 CFLAGS="$xorg_testset_save_CFLAGS" 14117 14118 eval supported=\$$cacheid 14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14120printf "%s\n" "$supported" >&6; } 14121 if test "$supported" = "yes" ; then 14122 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14123 found="yes" 14124 fi 14125 fi 14126 14127 if test $found = "no" ; then 14128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14130 fi 14131 14132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14134 fi 14135 14136 CFLAGS="$CFLAGS -fd" 14137 14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14139printf %s "checking if $CC supports -fd... " >&6; } 14140 cacheid=xorg_cv_cc_flag__fd 14141 if eval test \${$cacheid+y} 14142then : 14143 printf %s "(cached) " >&6 14144else $as_nop 14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14146/* end confdefs.h. */ 14147int i; 14148int 14149main (void) 14150{ 14151 14152 ; 14153 return 0; 14154} 14155_ACEOF 14156if ac_fn_c_try_link "$LINENO" 14157then : 14158 eval $cacheid=yes 14159else $as_nop 14160 eval $cacheid=no 14161fi 14162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14163 conftest$ac_exeext conftest.$ac_ext 14164fi 14165 14166 14167 CFLAGS="$xorg_testset_save_CFLAGS" 14168 14169 eval supported=\$$cacheid 14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14171printf "%s\n" "$supported" >&6; } 14172 if test "$supported" = "yes" ; then 14173 BASE_CFLAGS="$BASE_CFLAGS -fd" 14174 found="yes" 14175 fi 14176 fi 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192xorg_testset_save_CFLAGS="$CFLAGS" 14193 14194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14198if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14199then : 14200 printf %s "(cached) " >&6 14201else $as_nop 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203/* end confdefs.h. */ 14204int i; 14205_ACEOF 14206if ac_fn_c_try_compile "$LINENO" 14207then : 14208 xorg_cv_cc_flag_unknown_warning_option=yes 14209else $as_nop 14210 xorg_cv_cc_flag_unknown_warning_option=no 14211fi 14212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14213fi 14214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14217 CFLAGS="$xorg_testset_save_CFLAGS" 14218fi 14219 14220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14223 fi 14224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14227if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14228then : 14229 printf %s "(cached) " >&6 14230else $as_nop 14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232/* end confdefs.h. */ 14233int i; 14234_ACEOF 14235if ac_fn_c_try_compile "$LINENO" 14236then : 14237 xorg_cv_cc_flag_unused_command_line_argument=yes 14238else $as_nop 14239 xorg_cv_cc_flag_unused_command_line_argument=no 14240fi 14241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14242fi 14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14246 CFLAGS="$xorg_testset_save_CFLAGS" 14247fi 14248 14249found="no" 14250 14251 if test $found = "no" ; then 14252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14254 fi 14255 14256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14258 fi 14259 14260 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14261 14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14263printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14264 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14265 if eval test \${$cacheid+y} 14266then : 14267 printf %s "(cached) " >&6 14268else $as_nop 14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14270/* end confdefs.h. */ 14271int i; 14272int 14273main (void) 14274{ 14275 14276 ; 14277 return 0; 14278} 14279_ACEOF 14280if ac_fn_c_try_link "$LINENO" 14281then : 14282 eval $cacheid=yes 14283else $as_nop 14284 eval $cacheid=no 14285fi 14286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14287 conftest$ac_exeext conftest.$ac_ext 14288fi 14289 14290 14291 CFLAGS="$xorg_testset_save_CFLAGS" 14292 14293 eval supported=\$$cacheid 14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14295printf "%s\n" "$supported" >&6; } 14296 if test "$supported" = "yes" ; then 14297 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14298 found="yes" 14299 fi 14300 fi 14301 14302 14303 14304 14305 14306# This chunk adds additional warnings that could catch undesired effects. 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320xorg_testset_save_CFLAGS="$CFLAGS" 14321 14322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14326if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14327then : 14328 printf %s "(cached) " >&6 14329else $as_nop 14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14331/* end confdefs.h. */ 14332int i; 14333_ACEOF 14334if ac_fn_c_try_compile "$LINENO" 14335then : 14336 xorg_cv_cc_flag_unknown_warning_option=yes 14337else $as_nop 14338 xorg_cv_cc_flag_unknown_warning_option=no 14339fi 14340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14341fi 14342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346fi 14347 14348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14351 fi 14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14356then : 14357 printf %s "(cached) " >&6 14358else $as_nop 14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14360/* end confdefs.h. */ 14361int i; 14362_ACEOF 14363if ac_fn_c_try_compile "$LINENO" 14364then : 14365 xorg_cv_cc_flag_unused_command_line_argument=yes 14366else $as_nop 14367 xorg_cv_cc_flag_unused_command_line_argument=no 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14370fi 14371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14374 CFLAGS="$xorg_testset_save_CFLAGS" 14375fi 14376 14377found="no" 14378 14379 if test $found = "no" ; then 14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14382 fi 14383 14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14386 fi 14387 14388 CFLAGS="$CFLAGS -Wunused" 14389 14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14391printf %s "checking if $CC supports -Wunused... " >&6; } 14392 cacheid=xorg_cv_cc_flag__Wunused 14393 if eval test \${$cacheid+y} 14394then : 14395 printf %s "(cached) " >&6 14396else $as_nop 14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398/* end confdefs.h. */ 14399int i; 14400int 14401main (void) 14402{ 14403 14404 ; 14405 return 0; 14406} 14407_ACEOF 14408if ac_fn_c_try_link "$LINENO" 14409then : 14410 eval $cacheid=yes 14411else $as_nop 14412 eval $cacheid=no 14413fi 14414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14415 conftest$ac_exeext conftest.$ac_ext 14416fi 14417 14418 14419 CFLAGS="$xorg_testset_save_CFLAGS" 14420 14421 eval supported=\$$cacheid 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14423printf "%s\n" "$supported" >&6; } 14424 if test "$supported" = "yes" ; then 14425 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14426 found="yes" 14427 fi 14428 fi 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444xorg_testset_save_CFLAGS="$CFLAGS" 14445 14446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14450if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14451then : 14452 printf %s "(cached) " >&6 14453else $as_nop 14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455/* end confdefs.h. */ 14456int i; 14457_ACEOF 14458if ac_fn_c_try_compile "$LINENO" 14459then : 14460 xorg_cv_cc_flag_unknown_warning_option=yes 14461else $as_nop 14462 xorg_cv_cc_flag_unknown_warning_option=no 14463fi 14464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14465fi 14466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14469 CFLAGS="$xorg_testset_save_CFLAGS" 14470fi 14471 14472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14475 fi 14476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14479if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14480then : 14481 printf %s "(cached) " >&6 14482else $as_nop 14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14484/* end confdefs.h. */ 14485int i; 14486_ACEOF 14487if ac_fn_c_try_compile "$LINENO" 14488then : 14489 xorg_cv_cc_flag_unused_command_line_argument=yes 14490else $as_nop 14491 xorg_cv_cc_flag_unused_command_line_argument=no 14492fi 14493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14494fi 14495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14498 CFLAGS="$xorg_testset_save_CFLAGS" 14499fi 14500 14501found="no" 14502 14503 if test $found = "no" ; then 14504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14506 fi 14507 14508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14510 fi 14511 14512 CFLAGS="$CFLAGS -Wuninitialized" 14513 14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14515printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14516 cacheid=xorg_cv_cc_flag__Wuninitialized 14517 if eval test \${$cacheid+y} 14518then : 14519 printf %s "(cached) " >&6 14520else $as_nop 14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522/* end confdefs.h. */ 14523int i; 14524int 14525main (void) 14526{ 14527 14528 ; 14529 return 0; 14530} 14531_ACEOF 14532if ac_fn_c_try_link "$LINENO" 14533then : 14534 eval $cacheid=yes 14535else $as_nop 14536 eval $cacheid=no 14537fi 14538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14539 conftest$ac_exeext conftest.$ac_ext 14540fi 14541 14542 14543 CFLAGS="$xorg_testset_save_CFLAGS" 14544 14545 eval supported=\$$cacheid 14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14547printf "%s\n" "$supported" >&6; } 14548 if test "$supported" = "yes" ; then 14549 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14550 found="yes" 14551 fi 14552 fi 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568xorg_testset_save_CFLAGS="$CFLAGS" 14569 14570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14574if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14575then : 14576 printf %s "(cached) " >&6 14577else $as_nop 14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14579/* end confdefs.h. */ 14580int i; 14581_ACEOF 14582if ac_fn_c_try_compile "$LINENO" 14583then : 14584 xorg_cv_cc_flag_unknown_warning_option=yes 14585else $as_nop 14586 xorg_cv_cc_flag_unknown_warning_option=no 14587fi 14588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14589fi 14590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14593 CFLAGS="$xorg_testset_save_CFLAGS" 14594fi 14595 14596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14599 fi 14600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14604then : 14605 printf %s "(cached) " >&6 14606else $as_nop 14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14608/* end confdefs.h. */ 14609int i; 14610_ACEOF 14611if ac_fn_c_try_compile "$LINENO" 14612then : 14613 xorg_cv_cc_flag_unused_command_line_argument=yes 14614else $as_nop 14615 xorg_cv_cc_flag_unused_command_line_argument=no 14616fi 14617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14618fi 14619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14622 CFLAGS="$xorg_testset_save_CFLAGS" 14623fi 14624 14625found="no" 14626 14627 if test $found = "no" ; then 14628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14630 fi 14631 14632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14634 fi 14635 14636 CFLAGS="$CFLAGS -Wshadow" 14637 14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14639printf %s "checking if $CC supports -Wshadow... " >&6; } 14640 cacheid=xorg_cv_cc_flag__Wshadow 14641 if eval test \${$cacheid+y} 14642then : 14643 printf %s "(cached) " >&6 14644else $as_nop 14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14646/* end confdefs.h. */ 14647int i; 14648int 14649main (void) 14650{ 14651 14652 ; 14653 return 0; 14654} 14655_ACEOF 14656if ac_fn_c_try_link "$LINENO" 14657then : 14658 eval $cacheid=yes 14659else $as_nop 14660 eval $cacheid=no 14661fi 14662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14663 conftest$ac_exeext conftest.$ac_ext 14664fi 14665 14666 14667 CFLAGS="$xorg_testset_save_CFLAGS" 14668 14669 eval supported=\$$cacheid 14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14671printf "%s\n" "$supported" >&6; } 14672 if test "$supported" = "yes" ; then 14673 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14674 found="yes" 14675 fi 14676 fi 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692xorg_testset_save_CFLAGS="$CFLAGS" 14693 14694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14699then : 14700 printf %s "(cached) " >&6 14701else $as_nop 14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14703/* end confdefs.h. */ 14704int i; 14705_ACEOF 14706if ac_fn_c_try_compile "$LINENO" 14707then : 14708 xorg_cv_cc_flag_unknown_warning_option=yes 14709else $as_nop 14710 xorg_cv_cc_flag_unknown_warning_option=no 14711fi 14712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14713fi 14714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14717 CFLAGS="$xorg_testset_save_CFLAGS" 14718fi 14719 14720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14723 fi 14724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14728then : 14729 printf %s "(cached) " >&6 14730else $as_nop 14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14732/* end confdefs.h. */ 14733int i; 14734_ACEOF 14735if ac_fn_c_try_compile "$LINENO" 14736then : 14737 xorg_cv_cc_flag_unused_command_line_argument=yes 14738else $as_nop 14739 xorg_cv_cc_flag_unused_command_line_argument=no 14740fi 14741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14742fi 14743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14746 CFLAGS="$xorg_testset_save_CFLAGS" 14747fi 14748 14749found="no" 14750 14751 if test $found = "no" ; then 14752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14754 fi 14755 14756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14758 fi 14759 14760 CFLAGS="$CFLAGS -Wmissing-noreturn" 14761 14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14763printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14764 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14765 if eval test \${$cacheid+y} 14766then : 14767 printf %s "(cached) " >&6 14768else $as_nop 14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14770/* end confdefs.h. */ 14771int i; 14772int 14773main (void) 14774{ 14775 14776 ; 14777 return 0; 14778} 14779_ACEOF 14780if ac_fn_c_try_link "$LINENO" 14781then : 14782 eval $cacheid=yes 14783else $as_nop 14784 eval $cacheid=no 14785fi 14786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14787 conftest$ac_exeext conftest.$ac_ext 14788fi 14789 14790 14791 CFLAGS="$xorg_testset_save_CFLAGS" 14792 14793 eval supported=\$$cacheid 14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14795printf "%s\n" "$supported" >&6; } 14796 if test "$supported" = "yes" ; then 14797 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14798 found="yes" 14799 fi 14800 fi 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816xorg_testset_save_CFLAGS="$CFLAGS" 14817 14818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14822if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14823then : 14824 printf %s "(cached) " >&6 14825else $as_nop 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827/* end confdefs.h. */ 14828int i; 14829_ACEOF 14830if ac_fn_c_try_compile "$LINENO" 14831then : 14832 xorg_cv_cc_flag_unknown_warning_option=yes 14833else $as_nop 14834 xorg_cv_cc_flag_unknown_warning_option=no 14835fi 14836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14837fi 14838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14841 CFLAGS="$xorg_testset_save_CFLAGS" 14842fi 14843 14844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14847 fi 14848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14851if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14852then : 14853 printf %s "(cached) " >&6 14854else $as_nop 14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856/* end confdefs.h. */ 14857int i; 14858_ACEOF 14859if ac_fn_c_try_compile "$LINENO" 14860then : 14861 xorg_cv_cc_flag_unused_command_line_argument=yes 14862else $as_nop 14863 xorg_cv_cc_flag_unused_command_line_argument=no 14864fi 14865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14866fi 14867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14870 CFLAGS="$xorg_testset_save_CFLAGS" 14871fi 14872 14873found="no" 14874 14875 if test $found = "no" ; then 14876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14878 fi 14879 14880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14882 fi 14883 14884 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14885 14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14887printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14888 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14889 if eval test \${$cacheid+y} 14890then : 14891 printf %s "(cached) " >&6 14892else $as_nop 14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14894/* end confdefs.h. */ 14895int i; 14896int 14897main (void) 14898{ 14899 14900 ; 14901 return 0; 14902} 14903_ACEOF 14904if ac_fn_c_try_link "$LINENO" 14905then : 14906 eval $cacheid=yes 14907else $as_nop 14908 eval $cacheid=no 14909fi 14910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14911 conftest$ac_exeext conftest.$ac_ext 14912fi 14913 14914 14915 CFLAGS="$xorg_testset_save_CFLAGS" 14916 14917 eval supported=\$$cacheid 14918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14919printf "%s\n" "$supported" >&6; } 14920 if test "$supported" = "yes" ; then 14921 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14922 found="yes" 14923 fi 14924 fi 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940xorg_testset_save_CFLAGS="$CFLAGS" 14941 14942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14946if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14947then : 14948 printf %s "(cached) " >&6 14949else $as_nop 14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14951/* end confdefs.h. */ 14952int i; 14953_ACEOF 14954if ac_fn_c_try_compile "$LINENO" 14955then : 14956 xorg_cv_cc_flag_unknown_warning_option=yes 14957else $as_nop 14958 xorg_cv_cc_flag_unknown_warning_option=no 14959fi 14960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14961fi 14962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14965 CFLAGS="$xorg_testset_save_CFLAGS" 14966fi 14967 14968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14971 fi 14972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14976then : 14977 printf %s "(cached) " >&6 14978else $as_nop 14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14980/* end confdefs.h. */ 14981int i; 14982_ACEOF 14983if ac_fn_c_try_compile "$LINENO" 14984then : 14985 xorg_cv_cc_flag_unused_command_line_argument=yes 14986else $as_nop 14987 xorg_cv_cc_flag_unused_command_line_argument=no 14988fi 14989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14990fi 14991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14994 CFLAGS="$xorg_testset_save_CFLAGS" 14995fi 14996 14997found="no" 14998 14999 if test $found = "no" ; then 15000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15002 fi 15003 15004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15006 fi 15007 15008 CFLAGS="$CFLAGS -Wredundant-decls" 15009 15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15011printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15012 cacheid=xorg_cv_cc_flag__Wredundant_decls 15013 if eval test \${$cacheid+y} 15014then : 15015 printf %s "(cached) " >&6 15016else $as_nop 15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15018/* end confdefs.h. */ 15019int i; 15020int 15021main (void) 15022{ 15023 15024 ; 15025 return 0; 15026} 15027_ACEOF 15028if ac_fn_c_try_link "$LINENO" 15029then : 15030 eval $cacheid=yes 15031else $as_nop 15032 eval $cacheid=no 15033fi 15034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15035 conftest$ac_exeext conftest.$ac_ext 15036fi 15037 15038 15039 CFLAGS="$xorg_testset_save_CFLAGS" 15040 15041 eval supported=\$$cacheid 15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15043printf "%s\n" "$supported" >&6; } 15044 if test "$supported" = "yes" ; then 15045 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15046 found="yes" 15047 fi 15048 fi 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064xorg_testset_save_CFLAGS="$CFLAGS" 15065 15066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15070if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15071then : 15072 printf %s "(cached) " >&6 15073else $as_nop 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076int i; 15077_ACEOF 15078if ac_fn_c_try_compile "$LINENO" 15079then : 15080 xorg_cv_cc_flag_unknown_warning_option=yes 15081else $as_nop 15082 xorg_cv_cc_flag_unknown_warning_option=no 15083fi 15084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15085fi 15086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15087printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090fi 15091 15092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15095 fi 15096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15098printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15099if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15100then : 15101 printf %s "(cached) " >&6 15102else $as_nop 15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15104/* end confdefs.h. */ 15105int i; 15106_ACEOF 15107if ac_fn_c_try_compile "$LINENO" 15108then : 15109 xorg_cv_cc_flag_unused_command_line_argument=yes 15110else $as_nop 15111 xorg_cv_cc_flag_unused_command_line_argument=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15114fi 15115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15118 CFLAGS="$xorg_testset_save_CFLAGS" 15119fi 15120 15121found="no" 15122 15123 if test $found = "no" ; then 15124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15126 fi 15127 15128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15130 fi 15131 15132 CFLAGS="$CFLAGS -Wlogical-op" 15133 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15135printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15136 cacheid=xorg_cv_cc_flag__Wlogical_op 15137 if eval test \${$cacheid+y} 15138then : 15139 printf %s "(cached) " >&6 15140else $as_nop 15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15142/* end confdefs.h. */ 15143int i; 15144int 15145main (void) 15146{ 15147 15148 ; 15149 return 0; 15150} 15151_ACEOF 15152if ac_fn_c_try_link "$LINENO" 15153then : 15154 eval $cacheid=yes 15155else $as_nop 15156 eval $cacheid=no 15157fi 15158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15159 conftest$ac_exeext conftest.$ac_ext 15160fi 15161 15162 15163 CFLAGS="$xorg_testset_save_CFLAGS" 15164 15165 eval supported=\$$cacheid 15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15167printf "%s\n" "$supported" >&6; } 15168 if test "$supported" = "yes" ; then 15169 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15170 found="yes" 15171 fi 15172 fi 15173 15174 15175 15176# These are currently disabled because they are noisy. They will be enabled 15177# in the future once the codebase is sufficiently modernized to silence 15178# them. For now, I don't want them to drown out the other warnings. 15179# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15180# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15181# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15182 15183# Turn some warnings into errors, so we don't accidently get successful builds 15184# when there are problems that should be fixed. 15185 15186if test "x$SELECTIVE_WERROR" = "xyes" ; then 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200xorg_testset_save_CFLAGS="$CFLAGS" 15201 15202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15206if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15207then : 15208 printf %s "(cached) " >&6 15209else $as_nop 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211/* end confdefs.h. */ 15212int i; 15213_ACEOF 15214if ac_fn_c_try_compile "$LINENO" 15215then : 15216 xorg_cv_cc_flag_unknown_warning_option=yes 15217else $as_nop 15218 xorg_cv_cc_flag_unknown_warning_option=no 15219fi 15220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15221fi 15222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15225 CFLAGS="$xorg_testset_save_CFLAGS" 15226fi 15227 15228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15231 fi 15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15235if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15236then : 15237 printf %s "(cached) " >&6 15238else $as_nop 15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15240/* end confdefs.h. */ 15241int i; 15242_ACEOF 15243if ac_fn_c_try_compile "$LINENO" 15244then : 15245 xorg_cv_cc_flag_unused_command_line_argument=yes 15246else $as_nop 15247 xorg_cv_cc_flag_unused_command_line_argument=no 15248fi 15249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15250fi 15251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15254 CFLAGS="$xorg_testset_save_CFLAGS" 15255fi 15256 15257found="no" 15258 15259 if test $found = "no" ; then 15260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15262 fi 15263 15264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15266 fi 15267 15268 CFLAGS="$CFLAGS -Werror=implicit" 15269 15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15271printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15272 cacheid=xorg_cv_cc_flag__Werror_implicit 15273 if eval test \${$cacheid+y} 15274then : 15275 printf %s "(cached) " >&6 15276else $as_nop 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279int i; 15280int 15281main (void) 15282{ 15283 15284 ; 15285 return 0; 15286} 15287_ACEOF 15288if ac_fn_c_try_link "$LINENO" 15289then : 15290 eval $cacheid=yes 15291else $as_nop 15292 eval $cacheid=no 15293fi 15294rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15295 conftest$ac_exeext conftest.$ac_ext 15296fi 15297 15298 15299 CFLAGS="$xorg_testset_save_CFLAGS" 15300 15301 eval supported=\$$cacheid 15302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15303printf "%s\n" "$supported" >&6; } 15304 if test "$supported" = "yes" ; then 15305 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15306 found="yes" 15307 fi 15308 fi 15309 15310 if test $found = "no" ; then 15311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15313 fi 15314 15315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15317 fi 15318 15319 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15320 15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15322printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15323 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15324 if eval test \${$cacheid+y} 15325then : 15326 printf %s "(cached) " >&6 15327else $as_nop 15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15329/* end confdefs.h. */ 15330int i; 15331int 15332main (void) 15333{ 15334 15335 ; 15336 return 0; 15337} 15338_ACEOF 15339if ac_fn_c_try_link "$LINENO" 15340then : 15341 eval $cacheid=yes 15342else $as_nop 15343 eval $cacheid=no 15344fi 15345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15346 conftest$ac_exeext conftest.$ac_ext 15347fi 15348 15349 15350 CFLAGS="$xorg_testset_save_CFLAGS" 15351 15352 eval supported=\$$cacheid 15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15354printf "%s\n" "$supported" >&6; } 15355 if test "$supported" = "yes" ; then 15356 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15357 found="yes" 15358 fi 15359 fi 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375xorg_testset_save_CFLAGS="$CFLAGS" 15376 15377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15382then : 15383 printf %s "(cached) " >&6 15384else $as_nop 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386/* end confdefs.h. */ 15387int i; 15388_ACEOF 15389if ac_fn_c_try_compile "$LINENO" 15390then : 15391 xorg_cv_cc_flag_unknown_warning_option=yes 15392else $as_nop 15393 xorg_cv_cc_flag_unknown_warning_option=no 15394fi 15395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15396fi 15397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15400 CFLAGS="$xorg_testset_save_CFLAGS" 15401fi 15402 15403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15406 fi 15407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15410if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15411then : 15412 printf %s "(cached) " >&6 15413else $as_nop 15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415/* end confdefs.h. */ 15416int i; 15417_ACEOF 15418if ac_fn_c_try_compile "$LINENO" 15419then : 15420 xorg_cv_cc_flag_unused_command_line_argument=yes 15421else $as_nop 15422 xorg_cv_cc_flag_unused_command_line_argument=no 15423fi 15424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15425fi 15426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15429 CFLAGS="$xorg_testset_save_CFLAGS" 15430fi 15431 15432found="no" 15433 15434 if test $found = "no" ; then 15435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15437 fi 15438 15439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15441 fi 15442 15443 CFLAGS="$CFLAGS -Werror=nonnull" 15444 15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15446printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15447 cacheid=xorg_cv_cc_flag__Werror_nonnull 15448 if eval test \${$cacheid+y} 15449then : 15450 printf %s "(cached) " >&6 15451else $as_nop 15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15453/* end confdefs.h. */ 15454int i; 15455int 15456main (void) 15457{ 15458 15459 ; 15460 return 0; 15461} 15462_ACEOF 15463if ac_fn_c_try_link "$LINENO" 15464then : 15465 eval $cacheid=yes 15466else $as_nop 15467 eval $cacheid=no 15468fi 15469rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15470 conftest$ac_exeext conftest.$ac_ext 15471fi 15472 15473 15474 CFLAGS="$xorg_testset_save_CFLAGS" 15475 15476 eval supported=\$$cacheid 15477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15478printf "%s\n" "$supported" >&6; } 15479 if test "$supported" = "yes" ; then 15480 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15481 found="yes" 15482 fi 15483 fi 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499xorg_testset_save_CFLAGS="$CFLAGS" 15500 15501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15506then : 15507 printf %s "(cached) " >&6 15508else $as_nop 15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15510/* end confdefs.h. */ 15511int i; 15512_ACEOF 15513if ac_fn_c_try_compile "$LINENO" 15514then : 15515 xorg_cv_cc_flag_unknown_warning_option=yes 15516else $as_nop 15517 xorg_cv_cc_flag_unknown_warning_option=no 15518fi 15519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15520fi 15521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15524 CFLAGS="$xorg_testset_save_CFLAGS" 15525fi 15526 15527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15530 fi 15531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15534if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15535then : 15536 printf %s "(cached) " >&6 15537else $as_nop 15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15539/* end confdefs.h. */ 15540int i; 15541_ACEOF 15542if ac_fn_c_try_compile "$LINENO" 15543then : 15544 xorg_cv_cc_flag_unused_command_line_argument=yes 15545else $as_nop 15546 xorg_cv_cc_flag_unused_command_line_argument=no 15547fi 15548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15549fi 15550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15553 CFLAGS="$xorg_testset_save_CFLAGS" 15554fi 15555 15556found="no" 15557 15558 if test $found = "no" ; then 15559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15561 fi 15562 15563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15565 fi 15566 15567 CFLAGS="$CFLAGS -Werror=init-self" 15568 15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15570printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15571 cacheid=xorg_cv_cc_flag__Werror_init_self 15572 if eval test \${$cacheid+y} 15573then : 15574 printf %s "(cached) " >&6 15575else $as_nop 15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15577/* end confdefs.h. */ 15578int i; 15579int 15580main (void) 15581{ 15582 15583 ; 15584 return 0; 15585} 15586_ACEOF 15587if ac_fn_c_try_link "$LINENO" 15588then : 15589 eval $cacheid=yes 15590else $as_nop 15591 eval $cacheid=no 15592fi 15593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15594 conftest$ac_exeext conftest.$ac_ext 15595fi 15596 15597 15598 CFLAGS="$xorg_testset_save_CFLAGS" 15599 15600 eval supported=\$$cacheid 15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15602printf "%s\n" "$supported" >&6; } 15603 if test "$supported" = "yes" ; then 15604 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15605 found="yes" 15606 fi 15607 fi 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623xorg_testset_save_CFLAGS="$CFLAGS" 15624 15625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15630then : 15631 printf %s "(cached) " >&6 15632else $as_nop 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634/* end confdefs.h. */ 15635int i; 15636_ACEOF 15637if ac_fn_c_try_compile "$LINENO" 15638then : 15639 xorg_cv_cc_flag_unknown_warning_option=yes 15640else $as_nop 15641 xorg_cv_cc_flag_unknown_warning_option=no 15642fi 15643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15644fi 15645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15648 CFLAGS="$xorg_testset_save_CFLAGS" 15649fi 15650 15651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15654 fi 15655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15659then : 15660 printf %s "(cached) " >&6 15661else $as_nop 15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15663/* end confdefs.h. */ 15664int i; 15665_ACEOF 15666if ac_fn_c_try_compile "$LINENO" 15667then : 15668 xorg_cv_cc_flag_unused_command_line_argument=yes 15669else $as_nop 15670 xorg_cv_cc_flag_unused_command_line_argument=no 15671fi 15672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15673fi 15674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15677 CFLAGS="$xorg_testset_save_CFLAGS" 15678fi 15679 15680found="no" 15681 15682 if test $found = "no" ; then 15683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15685 fi 15686 15687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15689 fi 15690 15691 CFLAGS="$CFLAGS -Werror=main" 15692 15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15694printf %s "checking if $CC supports -Werror=main... " >&6; } 15695 cacheid=xorg_cv_cc_flag__Werror_main 15696 if eval test \${$cacheid+y} 15697then : 15698 printf %s "(cached) " >&6 15699else $as_nop 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701/* end confdefs.h. */ 15702int i; 15703int 15704main (void) 15705{ 15706 15707 ; 15708 return 0; 15709} 15710_ACEOF 15711if ac_fn_c_try_link "$LINENO" 15712then : 15713 eval $cacheid=yes 15714else $as_nop 15715 eval $cacheid=no 15716fi 15717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15718 conftest$ac_exeext conftest.$ac_ext 15719fi 15720 15721 15722 CFLAGS="$xorg_testset_save_CFLAGS" 15723 15724 eval supported=\$$cacheid 15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15726printf "%s\n" "$supported" >&6; } 15727 if test "$supported" = "yes" ; then 15728 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15729 found="yes" 15730 fi 15731 fi 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747xorg_testset_save_CFLAGS="$CFLAGS" 15748 15749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15753if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15754then : 15755 printf %s "(cached) " >&6 15756else $as_nop 15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15758/* end confdefs.h. */ 15759int i; 15760_ACEOF 15761if ac_fn_c_try_compile "$LINENO" 15762then : 15763 xorg_cv_cc_flag_unknown_warning_option=yes 15764else $as_nop 15765 xorg_cv_cc_flag_unknown_warning_option=no 15766fi 15767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15768fi 15769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15772 CFLAGS="$xorg_testset_save_CFLAGS" 15773fi 15774 15775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15778 fi 15779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15782if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15783then : 15784 printf %s "(cached) " >&6 15785else $as_nop 15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15787/* end confdefs.h. */ 15788int i; 15789_ACEOF 15790if ac_fn_c_try_compile "$LINENO" 15791then : 15792 xorg_cv_cc_flag_unused_command_line_argument=yes 15793else $as_nop 15794 xorg_cv_cc_flag_unused_command_line_argument=no 15795fi 15796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15797fi 15798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15801 CFLAGS="$xorg_testset_save_CFLAGS" 15802fi 15803 15804found="no" 15805 15806 if test $found = "no" ; then 15807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15809 fi 15810 15811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15813 fi 15814 15815 CFLAGS="$CFLAGS -Werror=missing-braces" 15816 15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15818printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15819 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15820 if eval test \${$cacheid+y} 15821then : 15822 printf %s "(cached) " >&6 15823else $as_nop 15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15825/* end confdefs.h. */ 15826int i; 15827int 15828main (void) 15829{ 15830 15831 ; 15832 return 0; 15833} 15834_ACEOF 15835if ac_fn_c_try_link "$LINENO" 15836then : 15837 eval $cacheid=yes 15838else $as_nop 15839 eval $cacheid=no 15840fi 15841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15842 conftest$ac_exeext conftest.$ac_ext 15843fi 15844 15845 15846 CFLAGS="$xorg_testset_save_CFLAGS" 15847 15848 eval supported=\$$cacheid 15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15850printf "%s\n" "$supported" >&6; } 15851 if test "$supported" = "yes" ; then 15852 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15853 found="yes" 15854 fi 15855 fi 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871xorg_testset_save_CFLAGS="$CFLAGS" 15872 15873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15877if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15878then : 15879 printf %s "(cached) " >&6 15880else $as_nop 15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15882/* end confdefs.h. */ 15883int i; 15884_ACEOF 15885if ac_fn_c_try_compile "$LINENO" 15886then : 15887 xorg_cv_cc_flag_unknown_warning_option=yes 15888else $as_nop 15889 xorg_cv_cc_flag_unknown_warning_option=no 15890fi 15891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15892fi 15893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15896 CFLAGS="$xorg_testset_save_CFLAGS" 15897fi 15898 15899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15902 fi 15903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15906if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15907then : 15908 printf %s "(cached) " >&6 15909else $as_nop 15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15911/* end confdefs.h. */ 15912int i; 15913_ACEOF 15914if ac_fn_c_try_compile "$LINENO" 15915then : 15916 xorg_cv_cc_flag_unused_command_line_argument=yes 15917else $as_nop 15918 xorg_cv_cc_flag_unused_command_line_argument=no 15919fi 15920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15921fi 15922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15925 CFLAGS="$xorg_testset_save_CFLAGS" 15926fi 15927 15928found="no" 15929 15930 if test $found = "no" ; then 15931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15933 fi 15934 15935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15937 fi 15938 15939 CFLAGS="$CFLAGS -Werror=sequence-point" 15940 15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15942printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15943 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15944 if eval test \${$cacheid+y} 15945then : 15946 printf %s "(cached) " >&6 15947else $as_nop 15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15949/* end confdefs.h. */ 15950int i; 15951int 15952main (void) 15953{ 15954 15955 ; 15956 return 0; 15957} 15958_ACEOF 15959if ac_fn_c_try_link "$LINENO" 15960then : 15961 eval $cacheid=yes 15962else $as_nop 15963 eval $cacheid=no 15964fi 15965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15966 conftest$ac_exeext conftest.$ac_ext 15967fi 15968 15969 15970 CFLAGS="$xorg_testset_save_CFLAGS" 15971 15972 eval supported=\$$cacheid 15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15974printf "%s\n" "$supported" >&6; } 15975 if test "$supported" = "yes" ; then 15976 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15977 found="yes" 15978 fi 15979 fi 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995xorg_testset_save_CFLAGS="$CFLAGS" 15996 15997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16000printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16001if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16002then : 16003 printf %s "(cached) " >&6 16004else $as_nop 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007int i; 16008_ACEOF 16009if ac_fn_c_try_compile "$LINENO" 16010then : 16011 xorg_cv_cc_flag_unknown_warning_option=yes 16012else $as_nop 16013 xorg_cv_cc_flag_unknown_warning_option=no 16014fi 16015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16016fi 16017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16020 CFLAGS="$xorg_testset_save_CFLAGS" 16021fi 16022 16023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16026 fi 16027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16030if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16031then : 16032 printf %s "(cached) " >&6 16033else $as_nop 16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16035/* end confdefs.h. */ 16036int i; 16037_ACEOF 16038if ac_fn_c_try_compile "$LINENO" 16039then : 16040 xorg_cv_cc_flag_unused_command_line_argument=yes 16041else $as_nop 16042 xorg_cv_cc_flag_unused_command_line_argument=no 16043fi 16044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16045fi 16046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16049 CFLAGS="$xorg_testset_save_CFLAGS" 16050fi 16051 16052found="no" 16053 16054 if test $found = "no" ; then 16055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16057 fi 16058 16059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16061 fi 16062 16063 CFLAGS="$CFLAGS -Werror=return-type" 16064 16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16066printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16067 cacheid=xorg_cv_cc_flag__Werror_return_type 16068 if eval test \${$cacheid+y} 16069then : 16070 printf %s "(cached) " >&6 16071else $as_nop 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074int i; 16075int 16076main (void) 16077{ 16078 16079 ; 16080 return 0; 16081} 16082_ACEOF 16083if ac_fn_c_try_link "$LINENO" 16084then : 16085 eval $cacheid=yes 16086else $as_nop 16087 eval $cacheid=no 16088fi 16089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16090 conftest$ac_exeext conftest.$ac_ext 16091fi 16092 16093 16094 CFLAGS="$xorg_testset_save_CFLAGS" 16095 16096 eval supported=\$$cacheid 16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16098printf "%s\n" "$supported" >&6; } 16099 if test "$supported" = "yes" ; then 16100 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16101 found="yes" 16102 fi 16103 fi 16104 16105 if test $found = "no" ; then 16106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16108 fi 16109 16110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16112 fi 16113 16114 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16115 16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16117printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16118 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16119 if eval test \${$cacheid+y} 16120then : 16121 printf %s "(cached) " >&6 16122else $as_nop 16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124/* end confdefs.h. */ 16125int i; 16126int 16127main (void) 16128{ 16129 16130 ; 16131 return 0; 16132} 16133_ACEOF 16134if ac_fn_c_try_link "$LINENO" 16135then : 16136 eval $cacheid=yes 16137else $as_nop 16138 eval $cacheid=no 16139fi 16140rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16141 conftest$ac_exeext conftest.$ac_ext 16142fi 16143 16144 16145 CFLAGS="$xorg_testset_save_CFLAGS" 16146 16147 eval supported=\$$cacheid 16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16149printf "%s\n" "$supported" >&6; } 16150 if test "$supported" = "yes" ; then 16151 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16152 found="yes" 16153 fi 16154 fi 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170xorg_testset_save_CFLAGS="$CFLAGS" 16171 16172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16176if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16177then : 16178 printf %s "(cached) " >&6 16179else $as_nop 16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16181/* end confdefs.h. */ 16182int i; 16183_ACEOF 16184if ac_fn_c_try_compile "$LINENO" 16185then : 16186 xorg_cv_cc_flag_unknown_warning_option=yes 16187else $as_nop 16188 xorg_cv_cc_flag_unknown_warning_option=no 16189fi 16190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16191fi 16192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16195 CFLAGS="$xorg_testset_save_CFLAGS" 16196fi 16197 16198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16201 fi 16202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16205if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16206then : 16207 printf %s "(cached) " >&6 16208else $as_nop 16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16210/* end confdefs.h. */ 16211int i; 16212_ACEOF 16213if ac_fn_c_try_compile "$LINENO" 16214then : 16215 xorg_cv_cc_flag_unused_command_line_argument=yes 16216else $as_nop 16217 xorg_cv_cc_flag_unused_command_line_argument=no 16218fi 16219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16220fi 16221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16224 CFLAGS="$xorg_testset_save_CFLAGS" 16225fi 16226 16227found="no" 16228 16229 if test $found = "no" ; then 16230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16232 fi 16233 16234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16236 fi 16237 16238 CFLAGS="$CFLAGS -Werror=trigraphs" 16239 16240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16241printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16242 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16243 if eval test \${$cacheid+y} 16244then : 16245 printf %s "(cached) " >&6 16246else $as_nop 16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248/* end confdefs.h. */ 16249int i; 16250int 16251main (void) 16252{ 16253 16254 ; 16255 return 0; 16256} 16257_ACEOF 16258if ac_fn_c_try_link "$LINENO" 16259then : 16260 eval $cacheid=yes 16261else $as_nop 16262 eval $cacheid=no 16263fi 16264rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16265 conftest$ac_exeext conftest.$ac_ext 16266fi 16267 16268 16269 CFLAGS="$xorg_testset_save_CFLAGS" 16270 16271 eval supported=\$$cacheid 16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16273printf "%s\n" "$supported" >&6; } 16274 if test "$supported" = "yes" ; then 16275 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16276 found="yes" 16277 fi 16278 fi 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294xorg_testset_save_CFLAGS="$CFLAGS" 16295 16296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16300if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16301then : 16302 printf %s "(cached) " >&6 16303else $as_nop 16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16305/* end confdefs.h. */ 16306int i; 16307_ACEOF 16308if ac_fn_c_try_compile "$LINENO" 16309then : 16310 xorg_cv_cc_flag_unknown_warning_option=yes 16311else $as_nop 16312 xorg_cv_cc_flag_unknown_warning_option=no 16313fi 16314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16315fi 16316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16319 CFLAGS="$xorg_testset_save_CFLAGS" 16320fi 16321 16322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16325 fi 16326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16329if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16330then : 16331 printf %s "(cached) " >&6 16332else $as_nop 16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16334/* end confdefs.h. */ 16335int i; 16336_ACEOF 16337if ac_fn_c_try_compile "$LINENO" 16338then : 16339 xorg_cv_cc_flag_unused_command_line_argument=yes 16340else $as_nop 16341 xorg_cv_cc_flag_unused_command_line_argument=no 16342fi 16343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16344fi 16345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16348 CFLAGS="$xorg_testset_save_CFLAGS" 16349fi 16350 16351found="no" 16352 16353 if test $found = "no" ; then 16354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16356 fi 16357 16358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16360 fi 16361 16362 CFLAGS="$CFLAGS -Werror=array-bounds" 16363 16364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16365printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16366 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16367 if eval test \${$cacheid+y} 16368then : 16369 printf %s "(cached) " >&6 16370else $as_nop 16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16372/* end confdefs.h. */ 16373int i; 16374int 16375main (void) 16376{ 16377 16378 ; 16379 return 0; 16380} 16381_ACEOF 16382if ac_fn_c_try_link "$LINENO" 16383then : 16384 eval $cacheid=yes 16385else $as_nop 16386 eval $cacheid=no 16387fi 16388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16389 conftest$ac_exeext conftest.$ac_ext 16390fi 16391 16392 16393 CFLAGS="$xorg_testset_save_CFLAGS" 16394 16395 eval supported=\$$cacheid 16396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16397printf "%s\n" "$supported" >&6; } 16398 if test "$supported" = "yes" ; then 16399 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16400 found="yes" 16401 fi 16402 fi 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418xorg_testset_save_CFLAGS="$CFLAGS" 16419 16420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16424if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16425then : 16426 printf %s "(cached) " >&6 16427else $as_nop 16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16429/* end confdefs.h. */ 16430int i; 16431_ACEOF 16432if ac_fn_c_try_compile "$LINENO" 16433then : 16434 xorg_cv_cc_flag_unknown_warning_option=yes 16435else $as_nop 16436 xorg_cv_cc_flag_unknown_warning_option=no 16437fi 16438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16439fi 16440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16443 CFLAGS="$xorg_testset_save_CFLAGS" 16444fi 16445 16446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16449 fi 16450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16453if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16454then : 16455 printf %s "(cached) " >&6 16456else $as_nop 16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16458/* end confdefs.h. */ 16459int i; 16460_ACEOF 16461if ac_fn_c_try_compile "$LINENO" 16462then : 16463 xorg_cv_cc_flag_unused_command_line_argument=yes 16464else $as_nop 16465 xorg_cv_cc_flag_unused_command_line_argument=no 16466fi 16467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16468fi 16469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16472 CFLAGS="$xorg_testset_save_CFLAGS" 16473fi 16474 16475found="no" 16476 16477 if test $found = "no" ; then 16478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16480 fi 16481 16482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16484 fi 16485 16486 CFLAGS="$CFLAGS -Werror=write-strings" 16487 16488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16489printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16490 cacheid=xorg_cv_cc_flag__Werror_write_strings 16491 if eval test \${$cacheid+y} 16492then : 16493 printf %s "(cached) " >&6 16494else $as_nop 16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16496/* end confdefs.h. */ 16497int i; 16498int 16499main (void) 16500{ 16501 16502 ; 16503 return 0; 16504} 16505_ACEOF 16506if ac_fn_c_try_link "$LINENO" 16507then : 16508 eval $cacheid=yes 16509else $as_nop 16510 eval $cacheid=no 16511fi 16512rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16513 conftest$ac_exeext conftest.$ac_ext 16514fi 16515 16516 16517 CFLAGS="$xorg_testset_save_CFLAGS" 16518 16519 eval supported=\$$cacheid 16520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16521printf "%s\n" "$supported" >&6; } 16522 if test "$supported" = "yes" ; then 16523 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16524 found="yes" 16525 fi 16526 fi 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542xorg_testset_save_CFLAGS="$CFLAGS" 16543 16544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16547printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16548if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16549then : 16550 printf %s "(cached) " >&6 16551else $as_nop 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553/* end confdefs.h. */ 16554int i; 16555_ACEOF 16556if ac_fn_c_try_compile "$LINENO" 16557then : 16558 xorg_cv_cc_flag_unknown_warning_option=yes 16559else $as_nop 16560 xorg_cv_cc_flag_unknown_warning_option=no 16561fi 16562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16563fi 16564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16567 CFLAGS="$xorg_testset_save_CFLAGS" 16568fi 16569 16570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16573 fi 16574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16577if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16578then : 16579 printf %s "(cached) " >&6 16580else $as_nop 16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16582/* end confdefs.h. */ 16583int i; 16584_ACEOF 16585if ac_fn_c_try_compile "$LINENO" 16586then : 16587 xorg_cv_cc_flag_unused_command_line_argument=yes 16588else $as_nop 16589 xorg_cv_cc_flag_unused_command_line_argument=no 16590fi 16591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16592fi 16593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16596 CFLAGS="$xorg_testset_save_CFLAGS" 16597fi 16598 16599found="no" 16600 16601 if test $found = "no" ; then 16602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16604 fi 16605 16606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16608 fi 16609 16610 CFLAGS="$CFLAGS -Werror=address" 16611 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16613printf %s "checking if $CC supports -Werror=address... " >&6; } 16614 cacheid=xorg_cv_cc_flag__Werror_address 16615 if eval test \${$cacheid+y} 16616then : 16617 printf %s "(cached) " >&6 16618else $as_nop 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621int i; 16622int 16623main (void) 16624{ 16625 16626 ; 16627 return 0; 16628} 16629_ACEOF 16630if ac_fn_c_try_link "$LINENO" 16631then : 16632 eval $cacheid=yes 16633else $as_nop 16634 eval $cacheid=no 16635fi 16636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16637 conftest$ac_exeext conftest.$ac_ext 16638fi 16639 16640 16641 CFLAGS="$xorg_testset_save_CFLAGS" 16642 16643 eval supported=\$$cacheid 16644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16645printf "%s\n" "$supported" >&6; } 16646 if test "$supported" = "yes" ; then 16647 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16648 found="yes" 16649 fi 16650 fi 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666xorg_testset_save_CFLAGS="$CFLAGS" 16667 16668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16671printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16672if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16673then : 16674 printf %s "(cached) " >&6 16675else $as_nop 16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16677/* end confdefs.h. */ 16678int i; 16679_ACEOF 16680if ac_fn_c_try_compile "$LINENO" 16681then : 16682 xorg_cv_cc_flag_unknown_warning_option=yes 16683else $as_nop 16684 xorg_cv_cc_flag_unknown_warning_option=no 16685fi 16686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16687fi 16688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16689printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16691 CFLAGS="$xorg_testset_save_CFLAGS" 16692fi 16693 16694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16697 fi 16698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16700printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16701if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16702then : 16703 printf %s "(cached) " >&6 16704else $as_nop 16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16706/* end confdefs.h. */ 16707int i; 16708_ACEOF 16709if ac_fn_c_try_compile "$LINENO" 16710then : 16711 xorg_cv_cc_flag_unused_command_line_argument=yes 16712else $as_nop 16713 xorg_cv_cc_flag_unused_command_line_argument=no 16714fi 16715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16716fi 16717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16720 CFLAGS="$xorg_testset_save_CFLAGS" 16721fi 16722 16723found="no" 16724 16725 if test $found = "no" ; then 16726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16728 fi 16729 16730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16732 fi 16733 16734 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16735 16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16737printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16738 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16739 if eval test \${$cacheid+y} 16740then : 16741 printf %s "(cached) " >&6 16742else $as_nop 16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16744/* end confdefs.h. */ 16745int i; 16746int 16747main (void) 16748{ 16749 16750 ; 16751 return 0; 16752} 16753_ACEOF 16754if ac_fn_c_try_link "$LINENO" 16755then : 16756 eval $cacheid=yes 16757else $as_nop 16758 eval $cacheid=no 16759fi 16760rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16761 conftest$ac_exeext conftest.$ac_ext 16762fi 16763 16764 16765 CFLAGS="$xorg_testset_save_CFLAGS" 16766 16767 eval supported=\$$cacheid 16768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16769printf "%s\n" "$supported" >&6; } 16770 if test "$supported" = "yes" ; then 16771 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16772 found="yes" 16773 fi 16774 fi 16775 16776 if test $found = "no" ; then 16777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16779 fi 16780 16781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16783 fi 16784 16785 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16786 16787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16788printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16789 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16790 if eval test \${$cacheid+y} 16791then : 16792 printf %s "(cached) " >&6 16793else $as_nop 16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16795/* end confdefs.h. */ 16796int i; 16797int 16798main (void) 16799{ 16800 16801 ; 16802 return 0; 16803} 16804_ACEOF 16805if ac_fn_c_try_link "$LINENO" 16806then : 16807 eval $cacheid=yes 16808else $as_nop 16809 eval $cacheid=no 16810fi 16811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16812 conftest$ac_exeext conftest.$ac_ext 16813fi 16814 16815 16816 CFLAGS="$xorg_testset_save_CFLAGS" 16817 16818 eval supported=\$$cacheid 16819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16820printf "%s\n" "$supported" >&6; } 16821 if test "$supported" = "yes" ; then 16822 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16823 found="yes" 16824 fi 16825 fi 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841xorg_testset_save_CFLAGS="$CFLAGS" 16842 16843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16847if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16848then : 16849 printf %s "(cached) " >&6 16850else $as_nop 16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16852/* end confdefs.h. */ 16853int i; 16854_ACEOF 16855if ac_fn_c_try_compile "$LINENO" 16856then : 16857 xorg_cv_cc_flag_unknown_warning_option=yes 16858else $as_nop 16859 xorg_cv_cc_flag_unknown_warning_option=no 16860fi 16861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16862fi 16863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16866 CFLAGS="$xorg_testset_save_CFLAGS" 16867fi 16868 16869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16872 fi 16873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16877then : 16878 printf %s "(cached) " >&6 16879else $as_nop 16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16881/* end confdefs.h. */ 16882int i; 16883_ACEOF 16884if ac_fn_c_try_compile "$LINENO" 16885then : 16886 xorg_cv_cc_flag_unused_command_line_argument=yes 16887else $as_nop 16888 xorg_cv_cc_flag_unused_command_line_argument=no 16889fi 16890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16891fi 16892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16895 CFLAGS="$xorg_testset_save_CFLAGS" 16896fi 16897 16898found="no" 16899 16900 if test $found = "no" ; then 16901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16903 fi 16904 16905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16907 fi 16908 16909 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16910 16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16912printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16913 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16914 if eval test \${$cacheid+y} 16915then : 16916 printf %s "(cached) " >&6 16917else $as_nop 16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920int i; 16921int 16922main (void) 16923{ 16924 16925 ; 16926 return 0; 16927} 16928_ACEOF 16929if ac_fn_c_try_link "$LINENO" 16930then : 16931 eval $cacheid=yes 16932else $as_nop 16933 eval $cacheid=no 16934fi 16935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16936 conftest$ac_exeext conftest.$ac_ext 16937fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944printf "%s\n" "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16947 found="yes" 16948 fi 16949 fi 16950 16951 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16952else 16953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 16954printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968xorg_testset_save_CFLAGS="$CFLAGS" 16969 16970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16974if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16975then : 16976 printf %s "(cached) " >&6 16977else $as_nop 16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16979/* end confdefs.h. */ 16980int i; 16981_ACEOF 16982if ac_fn_c_try_compile "$LINENO" 16983then : 16984 xorg_cv_cc_flag_unknown_warning_option=yes 16985else $as_nop 16986 xorg_cv_cc_flag_unknown_warning_option=no 16987fi 16988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16989fi 16990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994fi 16995 16996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16999 fi 17000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17003if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17004then : 17005 printf %s "(cached) " >&6 17006else $as_nop 17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17008/* end confdefs.h. */ 17009int i; 17010_ACEOF 17011if ac_fn_c_try_compile "$LINENO" 17012then : 17013 xorg_cv_cc_flag_unused_command_line_argument=yes 17014else $as_nop 17015 xorg_cv_cc_flag_unused_command_line_argument=no 17016fi 17017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17018fi 17019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17022 CFLAGS="$xorg_testset_save_CFLAGS" 17023fi 17024 17025found="no" 17026 17027 if test $found = "no" ; then 17028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17030 fi 17031 17032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17034 fi 17035 17036 CFLAGS="$CFLAGS -Wimplicit" 17037 17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17039printf %s "checking if $CC supports -Wimplicit... " >&6; } 17040 cacheid=xorg_cv_cc_flag__Wimplicit 17041 if eval test \${$cacheid+y} 17042then : 17043 printf %s "(cached) " >&6 17044else $as_nop 17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17046/* end confdefs.h. */ 17047int i; 17048int 17049main (void) 17050{ 17051 17052 ; 17053 return 0; 17054} 17055_ACEOF 17056if ac_fn_c_try_link "$LINENO" 17057then : 17058 eval $cacheid=yes 17059else $as_nop 17060 eval $cacheid=no 17061fi 17062rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17063 conftest$ac_exeext conftest.$ac_ext 17064fi 17065 17066 17067 CFLAGS="$xorg_testset_save_CFLAGS" 17068 17069 eval supported=\$$cacheid 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17071printf "%s\n" "$supported" >&6; } 17072 if test "$supported" = "yes" ; then 17073 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17074 found="yes" 17075 fi 17076 fi 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092xorg_testset_save_CFLAGS="$CFLAGS" 17093 17094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17098if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17099then : 17100 printf %s "(cached) " >&6 17101else $as_nop 17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17103/* end confdefs.h. */ 17104int i; 17105_ACEOF 17106if ac_fn_c_try_compile "$LINENO" 17107then : 17108 xorg_cv_cc_flag_unknown_warning_option=yes 17109else $as_nop 17110 xorg_cv_cc_flag_unknown_warning_option=no 17111fi 17112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17113fi 17114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17117 CFLAGS="$xorg_testset_save_CFLAGS" 17118fi 17119 17120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17123 fi 17124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17127if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17128then : 17129 printf %s "(cached) " >&6 17130else $as_nop 17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17132/* end confdefs.h. */ 17133int i; 17134_ACEOF 17135if ac_fn_c_try_compile "$LINENO" 17136then : 17137 xorg_cv_cc_flag_unused_command_line_argument=yes 17138else $as_nop 17139 xorg_cv_cc_flag_unused_command_line_argument=no 17140fi 17141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17142fi 17143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17144printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17146 CFLAGS="$xorg_testset_save_CFLAGS" 17147fi 17148 17149found="no" 17150 17151 if test $found = "no" ; then 17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17154 fi 17155 17156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17158 fi 17159 17160 CFLAGS="$CFLAGS -Wnonnull" 17161 17162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17163printf %s "checking if $CC supports -Wnonnull... " >&6; } 17164 cacheid=xorg_cv_cc_flag__Wnonnull 17165 if eval test \${$cacheid+y} 17166then : 17167 printf %s "(cached) " >&6 17168else $as_nop 17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17170/* end confdefs.h. */ 17171int i; 17172int 17173main (void) 17174{ 17175 17176 ; 17177 return 0; 17178} 17179_ACEOF 17180if ac_fn_c_try_link "$LINENO" 17181then : 17182 eval $cacheid=yes 17183else $as_nop 17184 eval $cacheid=no 17185fi 17186rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17187 conftest$ac_exeext conftest.$ac_ext 17188fi 17189 17190 17191 CFLAGS="$xorg_testset_save_CFLAGS" 17192 17193 eval supported=\$$cacheid 17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17195printf "%s\n" "$supported" >&6; } 17196 if test "$supported" = "yes" ; then 17197 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17198 found="yes" 17199 fi 17200 fi 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216xorg_testset_save_CFLAGS="$CFLAGS" 17217 17218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17223then : 17224 printf %s "(cached) " >&6 17225else $as_nop 17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17227/* end confdefs.h. */ 17228int i; 17229_ACEOF 17230if ac_fn_c_try_compile "$LINENO" 17231then : 17232 xorg_cv_cc_flag_unknown_warning_option=yes 17233else $as_nop 17234 xorg_cv_cc_flag_unknown_warning_option=no 17235fi 17236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17237fi 17238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17241 CFLAGS="$xorg_testset_save_CFLAGS" 17242fi 17243 17244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17247 fi 17248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17251if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17252then : 17253 printf %s "(cached) " >&6 17254else $as_nop 17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17256/* end confdefs.h. */ 17257int i; 17258_ACEOF 17259if ac_fn_c_try_compile "$LINENO" 17260then : 17261 xorg_cv_cc_flag_unused_command_line_argument=yes 17262else $as_nop 17263 xorg_cv_cc_flag_unused_command_line_argument=no 17264fi 17265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17266fi 17267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17270 CFLAGS="$xorg_testset_save_CFLAGS" 17271fi 17272 17273found="no" 17274 17275 if test $found = "no" ; then 17276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17278 fi 17279 17280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17282 fi 17283 17284 CFLAGS="$CFLAGS -Winit-self" 17285 17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17287printf %s "checking if $CC supports -Winit-self... " >&6; } 17288 cacheid=xorg_cv_cc_flag__Winit_self 17289 if eval test \${$cacheid+y} 17290then : 17291 printf %s "(cached) " >&6 17292else $as_nop 17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17294/* end confdefs.h. */ 17295int i; 17296int 17297main (void) 17298{ 17299 17300 ; 17301 return 0; 17302} 17303_ACEOF 17304if ac_fn_c_try_link "$LINENO" 17305then : 17306 eval $cacheid=yes 17307else $as_nop 17308 eval $cacheid=no 17309fi 17310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17311 conftest$ac_exeext conftest.$ac_ext 17312fi 17313 17314 17315 CFLAGS="$xorg_testset_save_CFLAGS" 17316 17317 eval supported=\$$cacheid 17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17319printf "%s\n" "$supported" >&6; } 17320 if test "$supported" = "yes" ; then 17321 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17322 found="yes" 17323 fi 17324 fi 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340xorg_testset_save_CFLAGS="$CFLAGS" 17341 17342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17346if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17347then : 17348 printf %s "(cached) " >&6 17349else $as_nop 17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17351/* end confdefs.h. */ 17352int i; 17353_ACEOF 17354if ac_fn_c_try_compile "$LINENO" 17355then : 17356 xorg_cv_cc_flag_unknown_warning_option=yes 17357else $as_nop 17358 xorg_cv_cc_flag_unknown_warning_option=no 17359fi 17360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17361fi 17362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17363printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17365 CFLAGS="$xorg_testset_save_CFLAGS" 17366fi 17367 17368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17371 fi 17372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17374printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17375if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17376then : 17377 printf %s "(cached) " >&6 17378else $as_nop 17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17380/* end confdefs.h. */ 17381int i; 17382_ACEOF 17383if ac_fn_c_try_compile "$LINENO" 17384then : 17385 xorg_cv_cc_flag_unused_command_line_argument=yes 17386else $as_nop 17387 xorg_cv_cc_flag_unused_command_line_argument=no 17388fi 17389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17390fi 17391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17392printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17394 CFLAGS="$xorg_testset_save_CFLAGS" 17395fi 17396 17397found="no" 17398 17399 if test $found = "no" ; then 17400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17402 fi 17403 17404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17406 fi 17407 17408 CFLAGS="$CFLAGS -Wmain" 17409 17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17411printf %s "checking if $CC supports -Wmain... " >&6; } 17412 cacheid=xorg_cv_cc_flag__Wmain 17413 if eval test \${$cacheid+y} 17414then : 17415 printf %s "(cached) " >&6 17416else $as_nop 17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17418/* end confdefs.h. */ 17419int i; 17420int 17421main (void) 17422{ 17423 17424 ; 17425 return 0; 17426} 17427_ACEOF 17428if ac_fn_c_try_link "$LINENO" 17429then : 17430 eval $cacheid=yes 17431else $as_nop 17432 eval $cacheid=no 17433fi 17434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17435 conftest$ac_exeext conftest.$ac_ext 17436fi 17437 17438 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440 17441 eval supported=\$$cacheid 17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17443printf "%s\n" "$supported" >&6; } 17444 if test "$supported" = "yes" ; then 17445 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17446 found="yes" 17447 fi 17448 fi 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464xorg_testset_save_CFLAGS="$CFLAGS" 17465 17466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17470if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17471then : 17472 printf %s "(cached) " >&6 17473else $as_nop 17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17475/* end confdefs.h. */ 17476int i; 17477_ACEOF 17478if ac_fn_c_try_compile "$LINENO" 17479then : 17480 xorg_cv_cc_flag_unknown_warning_option=yes 17481else $as_nop 17482 xorg_cv_cc_flag_unknown_warning_option=no 17483fi 17484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17485fi 17486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17489 CFLAGS="$xorg_testset_save_CFLAGS" 17490fi 17491 17492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17495 fi 17496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17499if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17500then : 17501 printf %s "(cached) " >&6 17502else $as_nop 17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17504/* end confdefs.h. */ 17505int i; 17506_ACEOF 17507if ac_fn_c_try_compile "$LINENO" 17508then : 17509 xorg_cv_cc_flag_unused_command_line_argument=yes 17510else $as_nop 17511 xorg_cv_cc_flag_unused_command_line_argument=no 17512fi 17513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17514fi 17515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17518 CFLAGS="$xorg_testset_save_CFLAGS" 17519fi 17520 17521found="no" 17522 17523 if test $found = "no" ; then 17524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17526 fi 17527 17528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17530 fi 17531 17532 CFLAGS="$CFLAGS -Wmissing-braces" 17533 17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17535printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17536 cacheid=xorg_cv_cc_flag__Wmissing_braces 17537 if eval test \${$cacheid+y} 17538then : 17539 printf %s "(cached) " >&6 17540else $as_nop 17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17542/* end confdefs.h. */ 17543int i; 17544int 17545main (void) 17546{ 17547 17548 ; 17549 return 0; 17550} 17551_ACEOF 17552if ac_fn_c_try_link "$LINENO" 17553then : 17554 eval $cacheid=yes 17555else $as_nop 17556 eval $cacheid=no 17557fi 17558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17559 conftest$ac_exeext conftest.$ac_ext 17560fi 17561 17562 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564 17565 eval supported=\$$cacheid 17566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17567printf "%s\n" "$supported" >&6; } 17568 if test "$supported" = "yes" ; then 17569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17570 found="yes" 17571 fi 17572 fi 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588xorg_testset_save_CFLAGS="$CFLAGS" 17589 17590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17594if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17595then : 17596 printf %s "(cached) " >&6 17597else $as_nop 17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17599/* end confdefs.h. */ 17600int i; 17601_ACEOF 17602if ac_fn_c_try_compile "$LINENO" 17603then : 17604 xorg_cv_cc_flag_unknown_warning_option=yes 17605else $as_nop 17606 xorg_cv_cc_flag_unknown_warning_option=no 17607fi 17608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17609fi 17610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614fi 17615 17616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17619 fi 17620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17623if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17624then : 17625 printf %s "(cached) " >&6 17626else $as_nop 17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17628/* end confdefs.h. */ 17629int i; 17630_ACEOF 17631if ac_fn_c_try_compile "$LINENO" 17632then : 17633 xorg_cv_cc_flag_unused_command_line_argument=yes 17634else $as_nop 17635 xorg_cv_cc_flag_unused_command_line_argument=no 17636fi 17637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17638fi 17639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17642 CFLAGS="$xorg_testset_save_CFLAGS" 17643fi 17644 17645found="no" 17646 17647 if test $found = "no" ; then 17648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17650 fi 17651 17652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17654 fi 17655 17656 CFLAGS="$CFLAGS -Wsequence-point" 17657 17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17659printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17660 cacheid=xorg_cv_cc_flag__Wsequence_point 17661 if eval test \${$cacheid+y} 17662then : 17663 printf %s "(cached) " >&6 17664else $as_nop 17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17666/* end confdefs.h. */ 17667int i; 17668int 17669main (void) 17670{ 17671 17672 ; 17673 return 0; 17674} 17675_ACEOF 17676if ac_fn_c_try_link "$LINENO" 17677then : 17678 eval $cacheid=yes 17679else $as_nop 17680 eval $cacheid=no 17681fi 17682rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17683 conftest$ac_exeext conftest.$ac_ext 17684fi 17685 17686 17687 CFLAGS="$xorg_testset_save_CFLAGS" 17688 17689 eval supported=\$$cacheid 17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17691printf "%s\n" "$supported" >&6; } 17692 if test "$supported" = "yes" ; then 17693 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17694 found="yes" 17695 fi 17696 fi 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712xorg_testset_save_CFLAGS="$CFLAGS" 17713 17714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17718if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17719then : 17720 printf %s "(cached) " >&6 17721else $as_nop 17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723/* end confdefs.h. */ 17724int i; 17725_ACEOF 17726if ac_fn_c_try_compile "$LINENO" 17727then : 17728 xorg_cv_cc_flag_unknown_warning_option=yes 17729else $as_nop 17730 xorg_cv_cc_flag_unknown_warning_option=no 17731fi 17732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17733fi 17734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17737 CFLAGS="$xorg_testset_save_CFLAGS" 17738fi 17739 17740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17743 fi 17744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17747if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17748then : 17749 printf %s "(cached) " >&6 17750else $as_nop 17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17752/* end confdefs.h. */ 17753int i; 17754_ACEOF 17755if ac_fn_c_try_compile "$LINENO" 17756then : 17757 xorg_cv_cc_flag_unused_command_line_argument=yes 17758else $as_nop 17759 xorg_cv_cc_flag_unused_command_line_argument=no 17760fi 17761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17762fi 17763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17766 CFLAGS="$xorg_testset_save_CFLAGS" 17767fi 17768 17769found="no" 17770 17771 if test $found = "no" ; then 17772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17774 fi 17775 17776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17778 fi 17779 17780 CFLAGS="$CFLAGS -Wreturn-type" 17781 17782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17783printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17784 cacheid=xorg_cv_cc_flag__Wreturn_type 17785 if eval test \${$cacheid+y} 17786then : 17787 printf %s "(cached) " >&6 17788else $as_nop 17789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17790/* end confdefs.h. */ 17791int i; 17792int 17793main (void) 17794{ 17795 17796 ; 17797 return 0; 17798} 17799_ACEOF 17800if ac_fn_c_try_link "$LINENO" 17801then : 17802 eval $cacheid=yes 17803else $as_nop 17804 eval $cacheid=no 17805fi 17806rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17807 conftest$ac_exeext conftest.$ac_ext 17808fi 17809 17810 17811 CFLAGS="$xorg_testset_save_CFLAGS" 17812 17813 eval supported=\$$cacheid 17814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17815printf "%s\n" "$supported" >&6; } 17816 if test "$supported" = "yes" ; then 17817 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17818 found="yes" 17819 fi 17820 fi 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836xorg_testset_save_CFLAGS="$CFLAGS" 17837 17838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17842if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17843then : 17844 printf %s "(cached) " >&6 17845else $as_nop 17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847/* end confdefs.h. */ 17848int i; 17849_ACEOF 17850if ac_fn_c_try_compile "$LINENO" 17851then : 17852 xorg_cv_cc_flag_unknown_warning_option=yes 17853else $as_nop 17854 xorg_cv_cc_flag_unknown_warning_option=no 17855fi 17856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17857fi 17858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17861 CFLAGS="$xorg_testset_save_CFLAGS" 17862fi 17863 17864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17867 fi 17868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17871if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17872then : 17873 printf %s "(cached) " >&6 17874else $as_nop 17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17876/* end confdefs.h. */ 17877int i; 17878_ACEOF 17879if ac_fn_c_try_compile "$LINENO" 17880then : 17881 xorg_cv_cc_flag_unused_command_line_argument=yes 17882else $as_nop 17883 xorg_cv_cc_flag_unused_command_line_argument=no 17884fi 17885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17886fi 17887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17890 CFLAGS="$xorg_testset_save_CFLAGS" 17891fi 17892 17893found="no" 17894 17895 if test $found = "no" ; then 17896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17898 fi 17899 17900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17902 fi 17903 17904 CFLAGS="$CFLAGS -Wtrigraphs" 17905 17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17907printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17908 cacheid=xorg_cv_cc_flag__Wtrigraphs 17909 if eval test \${$cacheid+y} 17910then : 17911 printf %s "(cached) " >&6 17912else $as_nop 17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17914/* end confdefs.h. */ 17915int i; 17916int 17917main (void) 17918{ 17919 17920 ; 17921 return 0; 17922} 17923_ACEOF 17924if ac_fn_c_try_link "$LINENO" 17925then : 17926 eval $cacheid=yes 17927else $as_nop 17928 eval $cacheid=no 17929fi 17930rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17931 conftest$ac_exeext conftest.$ac_ext 17932fi 17933 17934 17935 CFLAGS="$xorg_testset_save_CFLAGS" 17936 17937 eval supported=\$$cacheid 17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17939printf "%s\n" "$supported" >&6; } 17940 if test "$supported" = "yes" ; then 17941 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17942 found="yes" 17943 fi 17944 fi 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960xorg_testset_save_CFLAGS="$CFLAGS" 17961 17962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17967then : 17968 printf %s "(cached) " >&6 17969else $as_nop 17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17971/* end confdefs.h. */ 17972int i; 17973_ACEOF 17974if ac_fn_c_try_compile "$LINENO" 17975then : 17976 xorg_cv_cc_flag_unknown_warning_option=yes 17977else $as_nop 17978 xorg_cv_cc_flag_unknown_warning_option=no 17979fi 17980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17981fi 17982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17983printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17985 CFLAGS="$xorg_testset_save_CFLAGS" 17986fi 17987 17988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17991 fi 17992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17994printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17995if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17996then : 17997 printf %s "(cached) " >&6 17998else $as_nop 17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18000/* end confdefs.h. */ 18001int i; 18002_ACEOF 18003if ac_fn_c_try_compile "$LINENO" 18004then : 18005 xorg_cv_cc_flag_unused_command_line_argument=yes 18006else $as_nop 18007 xorg_cv_cc_flag_unused_command_line_argument=no 18008fi 18009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18010fi 18011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18014 CFLAGS="$xorg_testset_save_CFLAGS" 18015fi 18016 18017found="no" 18018 18019 if test $found = "no" ; then 18020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18022 fi 18023 18024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18026 fi 18027 18028 CFLAGS="$CFLAGS -Warray-bounds" 18029 18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18031printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18032 cacheid=xorg_cv_cc_flag__Warray_bounds 18033 if eval test \${$cacheid+y} 18034then : 18035 printf %s "(cached) " >&6 18036else $as_nop 18037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18038/* end confdefs.h. */ 18039int i; 18040int 18041main (void) 18042{ 18043 18044 ; 18045 return 0; 18046} 18047_ACEOF 18048if ac_fn_c_try_link "$LINENO" 18049then : 18050 eval $cacheid=yes 18051else $as_nop 18052 eval $cacheid=no 18053fi 18054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18055 conftest$ac_exeext conftest.$ac_ext 18056fi 18057 18058 18059 CFLAGS="$xorg_testset_save_CFLAGS" 18060 18061 eval supported=\$$cacheid 18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18063printf "%s\n" "$supported" >&6; } 18064 if test "$supported" = "yes" ; then 18065 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18066 found="yes" 18067 fi 18068 fi 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084xorg_testset_save_CFLAGS="$CFLAGS" 18085 18086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18089printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18090if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18091then : 18092 printf %s "(cached) " >&6 18093else $as_nop 18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095/* end confdefs.h. */ 18096int i; 18097_ACEOF 18098if ac_fn_c_try_compile "$LINENO" 18099then : 18100 xorg_cv_cc_flag_unknown_warning_option=yes 18101else $as_nop 18102 xorg_cv_cc_flag_unknown_warning_option=no 18103fi 18104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18105fi 18106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18109 CFLAGS="$xorg_testset_save_CFLAGS" 18110fi 18111 18112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18115 fi 18116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18119if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18120then : 18121 printf %s "(cached) " >&6 18122else $as_nop 18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18124/* end confdefs.h. */ 18125int i; 18126_ACEOF 18127if ac_fn_c_try_compile "$LINENO" 18128then : 18129 xorg_cv_cc_flag_unused_command_line_argument=yes 18130else $as_nop 18131 xorg_cv_cc_flag_unused_command_line_argument=no 18132fi 18133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18134fi 18135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18138 CFLAGS="$xorg_testset_save_CFLAGS" 18139fi 18140 18141found="no" 18142 18143 if test $found = "no" ; then 18144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18146 fi 18147 18148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18150 fi 18151 18152 CFLAGS="$CFLAGS -Wwrite-strings" 18153 18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18155printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18156 cacheid=xorg_cv_cc_flag__Wwrite_strings 18157 if eval test \${$cacheid+y} 18158then : 18159 printf %s "(cached) " >&6 18160else $as_nop 18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18162/* end confdefs.h. */ 18163int i; 18164int 18165main (void) 18166{ 18167 18168 ; 18169 return 0; 18170} 18171_ACEOF 18172if ac_fn_c_try_link "$LINENO" 18173then : 18174 eval $cacheid=yes 18175else $as_nop 18176 eval $cacheid=no 18177fi 18178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18179 conftest$ac_exeext conftest.$ac_ext 18180fi 18181 18182 18183 CFLAGS="$xorg_testset_save_CFLAGS" 18184 18185 eval supported=\$$cacheid 18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18187printf "%s\n" "$supported" >&6; } 18188 if test "$supported" = "yes" ; then 18189 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18190 found="yes" 18191 fi 18192 fi 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208xorg_testset_save_CFLAGS="$CFLAGS" 18209 18210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18213printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18214if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18215then : 18216 printf %s "(cached) " >&6 18217else $as_nop 18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18219/* end confdefs.h. */ 18220int i; 18221_ACEOF 18222if ac_fn_c_try_compile "$LINENO" 18223then : 18224 xorg_cv_cc_flag_unknown_warning_option=yes 18225else $as_nop 18226 xorg_cv_cc_flag_unknown_warning_option=no 18227fi 18228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18229fi 18230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18231printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18233 CFLAGS="$xorg_testset_save_CFLAGS" 18234fi 18235 18236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18239 fi 18240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18242printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18243if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18244then : 18245 printf %s "(cached) " >&6 18246else $as_nop 18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18248/* end confdefs.h. */ 18249int i; 18250_ACEOF 18251if ac_fn_c_try_compile "$LINENO" 18252then : 18253 xorg_cv_cc_flag_unused_command_line_argument=yes 18254else $as_nop 18255 xorg_cv_cc_flag_unused_command_line_argument=no 18256fi 18257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18258fi 18259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18260printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18262 CFLAGS="$xorg_testset_save_CFLAGS" 18263fi 18264 18265found="no" 18266 18267 if test $found = "no" ; then 18268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18270 fi 18271 18272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18274 fi 18275 18276 CFLAGS="$CFLAGS -Waddress" 18277 18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18279printf %s "checking if $CC supports -Waddress... " >&6; } 18280 cacheid=xorg_cv_cc_flag__Waddress 18281 if eval test \${$cacheid+y} 18282then : 18283 printf %s "(cached) " >&6 18284else $as_nop 18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18286/* end confdefs.h. */ 18287int i; 18288int 18289main (void) 18290{ 18291 18292 ; 18293 return 0; 18294} 18295_ACEOF 18296if ac_fn_c_try_link "$LINENO" 18297then : 18298 eval $cacheid=yes 18299else $as_nop 18300 eval $cacheid=no 18301fi 18302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18303 conftest$ac_exeext conftest.$ac_ext 18304fi 18305 18306 18307 CFLAGS="$xorg_testset_save_CFLAGS" 18308 18309 eval supported=\$$cacheid 18310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18311printf "%s\n" "$supported" >&6; } 18312 if test "$supported" = "yes" ; then 18313 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18314 found="yes" 18315 fi 18316 fi 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332xorg_testset_save_CFLAGS="$CFLAGS" 18333 18334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18339then : 18340 printf %s "(cached) " >&6 18341else $as_nop 18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18343/* end confdefs.h. */ 18344int i; 18345_ACEOF 18346if ac_fn_c_try_compile "$LINENO" 18347then : 18348 xorg_cv_cc_flag_unknown_warning_option=yes 18349else $as_nop 18350 xorg_cv_cc_flag_unknown_warning_option=no 18351fi 18352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18353fi 18354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18357 CFLAGS="$xorg_testset_save_CFLAGS" 18358fi 18359 18360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18363 fi 18364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18367if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18368then : 18369 printf %s "(cached) " >&6 18370else $as_nop 18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18372/* end confdefs.h. */ 18373int i; 18374_ACEOF 18375if ac_fn_c_try_compile "$LINENO" 18376then : 18377 xorg_cv_cc_flag_unused_command_line_argument=yes 18378else $as_nop 18379 xorg_cv_cc_flag_unused_command_line_argument=no 18380fi 18381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18382fi 18383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18386 CFLAGS="$xorg_testset_save_CFLAGS" 18387fi 18388 18389found="no" 18390 18391 if test $found = "no" ; then 18392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18394 fi 18395 18396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18398 fi 18399 18400 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18401 18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18403printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18404 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18405 if eval test \${$cacheid+y} 18406then : 18407 printf %s "(cached) " >&6 18408else $as_nop 18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18410/* end confdefs.h. */ 18411int i; 18412int 18413main (void) 18414{ 18415 18416 ; 18417 return 0; 18418} 18419_ACEOF 18420if ac_fn_c_try_link "$LINENO" 18421then : 18422 eval $cacheid=yes 18423else $as_nop 18424 eval $cacheid=no 18425fi 18426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18427 conftest$ac_exeext conftest.$ac_ext 18428fi 18429 18430 18431 CFLAGS="$xorg_testset_save_CFLAGS" 18432 18433 eval supported=\$$cacheid 18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18435printf "%s\n" "$supported" >&6; } 18436 if test "$supported" = "yes" ; then 18437 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18438 found="yes" 18439 fi 18440 fi 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456xorg_testset_save_CFLAGS="$CFLAGS" 18457 18458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18462if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18463then : 18464 printf %s "(cached) " >&6 18465else $as_nop 18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18467/* end confdefs.h. */ 18468int i; 18469_ACEOF 18470if ac_fn_c_try_compile "$LINENO" 18471then : 18472 xorg_cv_cc_flag_unknown_warning_option=yes 18473else $as_nop 18474 xorg_cv_cc_flag_unknown_warning_option=no 18475fi 18476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18477fi 18478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18481 CFLAGS="$xorg_testset_save_CFLAGS" 18482fi 18483 18484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18487 fi 18488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18492then : 18493 printf %s "(cached) " >&6 18494else $as_nop 18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18496/* end confdefs.h. */ 18497int i; 18498_ACEOF 18499if ac_fn_c_try_compile "$LINENO" 18500then : 18501 xorg_cv_cc_flag_unused_command_line_argument=yes 18502else $as_nop 18503 xorg_cv_cc_flag_unused_command_line_argument=no 18504fi 18505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18506fi 18507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18510 CFLAGS="$xorg_testset_save_CFLAGS" 18511fi 18512 18513found="no" 18514 18515 if test $found = "no" ; then 18516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18518 fi 18519 18520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18522 fi 18523 18524 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18525 18526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18527printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18528 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18529 if eval test \${$cacheid+y} 18530then : 18531 printf %s "(cached) " >&6 18532else $as_nop 18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18534/* end confdefs.h. */ 18535int i; 18536int 18537main (void) 18538{ 18539 18540 ; 18541 return 0; 18542} 18543_ACEOF 18544if ac_fn_c_try_link "$LINENO" 18545then : 18546 eval $cacheid=yes 18547else $as_nop 18548 eval $cacheid=no 18549fi 18550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18551 conftest$ac_exeext conftest.$ac_ext 18552fi 18553 18554 18555 CFLAGS="$xorg_testset_save_CFLAGS" 18556 18557 eval supported=\$$cacheid 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18559printf "%s\n" "$supported" >&6; } 18560 if test "$supported" = "yes" ; then 18561 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18562 found="yes" 18563 fi 18564 fi 18565 18566 18567fi 18568 18569 18570 18571 18572 18573 18574 18575 CWARNFLAGS="$BASE_CFLAGS" 18576 if test "x$GCC" = xyes ; then 18577 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18578 fi 18579 18580 18581 18582 18583 18584 18585 18586 18587# Check whether --enable-strict-compilation was given. 18588if test ${enable_strict_compilation+y} 18589then : 18590 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18591else $as_nop 18592 STRICT_COMPILE=no 18593fi 18594 18595 18596 18597 18598 18599 18600STRICT_CFLAGS="" 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614xorg_testset_save_CFLAGS="$CFLAGS" 18615 18616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18620if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18621then : 18622 printf %s "(cached) " >&6 18623else $as_nop 18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18625/* end confdefs.h. */ 18626int i; 18627_ACEOF 18628if ac_fn_c_try_compile "$LINENO" 18629then : 18630 xorg_cv_cc_flag_unknown_warning_option=yes 18631else $as_nop 18632 xorg_cv_cc_flag_unknown_warning_option=no 18633fi 18634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18635fi 18636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18639 CFLAGS="$xorg_testset_save_CFLAGS" 18640fi 18641 18642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18645 fi 18646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18650then : 18651 printf %s "(cached) " >&6 18652else $as_nop 18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18654/* end confdefs.h. */ 18655int i; 18656_ACEOF 18657if ac_fn_c_try_compile "$LINENO" 18658then : 18659 xorg_cv_cc_flag_unused_command_line_argument=yes 18660else $as_nop 18661 xorg_cv_cc_flag_unused_command_line_argument=no 18662fi 18663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18664fi 18665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18668 CFLAGS="$xorg_testset_save_CFLAGS" 18669fi 18670 18671found="no" 18672 18673 if test $found = "no" ; then 18674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18676 fi 18677 18678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18680 fi 18681 18682 CFLAGS="$CFLAGS -pedantic" 18683 18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18685printf %s "checking if $CC supports -pedantic... " >&6; } 18686 cacheid=xorg_cv_cc_flag__pedantic 18687 if eval test \${$cacheid+y} 18688then : 18689 printf %s "(cached) " >&6 18690else $as_nop 18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18692/* end confdefs.h. */ 18693int i; 18694int 18695main (void) 18696{ 18697 18698 ; 18699 return 0; 18700} 18701_ACEOF 18702if ac_fn_c_try_link "$LINENO" 18703then : 18704 eval $cacheid=yes 18705else $as_nop 18706 eval $cacheid=no 18707fi 18708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18709 conftest$ac_exeext conftest.$ac_ext 18710fi 18711 18712 18713 CFLAGS="$xorg_testset_save_CFLAGS" 18714 18715 eval supported=\$$cacheid 18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18717printf "%s\n" "$supported" >&6; } 18718 if test "$supported" = "yes" ; then 18719 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18720 found="yes" 18721 fi 18722 fi 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738xorg_testset_save_CFLAGS="$CFLAGS" 18739 18740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18744if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18745then : 18746 printf %s "(cached) " >&6 18747else $as_nop 18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18749/* end confdefs.h. */ 18750int i; 18751_ACEOF 18752if ac_fn_c_try_compile "$LINENO" 18753then : 18754 xorg_cv_cc_flag_unknown_warning_option=yes 18755else $as_nop 18756 xorg_cv_cc_flag_unknown_warning_option=no 18757fi 18758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18759fi 18760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18763 CFLAGS="$xorg_testset_save_CFLAGS" 18764fi 18765 18766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18769 fi 18770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18774then : 18775 printf %s "(cached) " >&6 18776else $as_nop 18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778/* end confdefs.h. */ 18779int i; 18780_ACEOF 18781if ac_fn_c_try_compile "$LINENO" 18782then : 18783 xorg_cv_cc_flag_unused_command_line_argument=yes 18784else $as_nop 18785 xorg_cv_cc_flag_unused_command_line_argument=no 18786fi 18787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18788fi 18789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18790printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18792 CFLAGS="$xorg_testset_save_CFLAGS" 18793fi 18794 18795found="no" 18796 18797 if test $found = "no" ; then 18798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18800 fi 18801 18802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18804 fi 18805 18806 CFLAGS="$CFLAGS -Werror" 18807 18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18809printf %s "checking if $CC supports -Werror... " >&6; } 18810 cacheid=xorg_cv_cc_flag__Werror 18811 if eval test \${$cacheid+y} 18812then : 18813 printf %s "(cached) " >&6 18814else $as_nop 18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816/* end confdefs.h. */ 18817int i; 18818int 18819main (void) 18820{ 18821 18822 ; 18823 return 0; 18824} 18825_ACEOF 18826if ac_fn_c_try_link "$LINENO" 18827then : 18828 eval $cacheid=yes 18829else $as_nop 18830 eval $cacheid=no 18831fi 18832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18833 conftest$ac_exeext conftest.$ac_ext 18834fi 18835 18836 18837 CFLAGS="$xorg_testset_save_CFLAGS" 18838 18839 eval supported=\$$cacheid 18840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18841printf "%s\n" "$supported" >&6; } 18842 if test "$supported" = "yes" ; then 18843 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18844 found="yes" 18845 fi 18846 fi 18847 18848 if test $found = "no" ; then 18849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18851 fi 18852 18853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18855 fi 18856 18857 CFLAGS="$CFLAGS -errwarn" 18858 18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18860printf %s "checking if $CC supports -errwarn... " >&6; } 18861 cacheid=xorg_cv_cc_flag__errwarn 18862 if eval test \${$cacheid+y} 18863then : 18864 printf %s "(cached) " >&6 18865else $as_nop 18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18867/* end confdefs.h. */ 18868int i; 18869int 18870main (void) 18871{ 18872 18873 ; 18874 return 0; 18875} 18876_ACEOF 18877if ac_fn_c_try_link "$LINENO" 18878then : 18879 eval $cacheid=yes 18880else $as_nop 18881 eval $cacheid=no 18882fi 18883rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18884 conftest$ac_exeext conftest.$ac_ext 18885fi 18886 18887 18888 CFLAGS="$xorg_testset_save_CFLAGS" 18889 18890 eval supported=\$$cacheid 18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18892printf "%s\n" "$supported" >&6; } 18893 if test "$supported" = "yes" ; then 18894 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18895 found="yes" 18896 fi 18897 fi 18898 18899 18900 18901# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18902# activate it with -Werror, so we add it here explicitly. 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916xorg_testset_save_CFLAGS="$CFLAGS" 18917 18918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18923then : 18924 printf %s "(cached) " >&6 18925else $as_nop 18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18927/* end confdefs.h. */ 18928int i; 18929_ACEOF 18930if ac_fn_c_try_compile "$LINENO" 18931then : 18932 xorg_cv_cc_flag_unknown_warning_option=yes 18933else $as_nop 18934 xorg_cv_cc_flag_unknown_warning_option=no 18935fi 18936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18937fi 18938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18941 CFLAGS="$xorg_testset_save_CFLAGS" 18942fi 18943 18944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18947 fi 18948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18951if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18952then : 18953 printf %s "(cached) " >&6 18954else $as_nop 18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18956/* end confdefs.h. */ 18957int i; 18958_ACEOF 18959if ac_fn_c_try_compile "$LINENO" 18960then : 18961 xorg_cv_cc_flag_unused_command_line_argument=yes 18962else $as_nop 18963 xorg_cv_cc_flag_unused_command_line_argument=no 18964fi 18965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18966fi 18967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18970 CFLAGS="$xorg_testset_save_CFLAGS" 18971fi 18972 18973found="no" 18974 18975 if test $found = "no" ; then 18976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18978 fi 18979 18980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18982 fi 18983 18984 CFLAGS="$CFLAGS -Werror=attributes" 18985 18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18987printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18988 cacheid=xorg_cv_cc_flag__Werror_attributes 18989 if eval test \${$cacheid+y} 18990then : 18991 printf %s "(cached) " >&6 18992else $as_nop 18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18994/* end confdefs.h. */ 18995int i; 18996int 18997main (void) 18998{ 18999 19000 ; 19001 return 0; 19002} 19003_ACEOF 19004if ac_fn_c_try_link "$LINENO" 19005then : 19006 eval $cacheid=yes 19007else $as_nop 19008 eval $cacheid=no 19009fi 19010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19011 conftest$ac_exeext conftest.$ac_ext 19012fi 19013 19014 19015 CFLAGS="$xorg_testset_save_CFLAGS" 19016 19017 eval supported=\$$cacheid 19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19019printf "%s\n" "$supported" >&6; } 19020 if test "$supported" = "yes" ; then 19021 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19022 found="yes" 19023 fi 19024 fi 19025 19026 19027 19028if test "x$STRICT_COMPILE" = "xyes"; then 19029 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19030 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19031fi 19032 19033 19034 19035 19036 19037 19038cat >>confdefs.h <<_ACEOF 19039#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19040_ACEOF 19041 19042 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19043 if test "x$PVM" = "x"; then 19044 PVM="0" 19045 fi 19046 19047printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19048 19049 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19050 if test "x$PVP" = "x"; then 19051 PVP="0" 19052 fi 19053 19054printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19055 19056 19057 19058CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19059mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19060|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19061touch \$(top_srcdir)/ChangeLog; \ 19062echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19063 19064 19065 19066 19067macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19068INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19069mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19070|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19071touch \$(top_srcdir)/INSTALL; \ 19072echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19073 19074 19075 19076 19077 19078 19079case $host_os in 19080 solaris*) 19081 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19082 # check for a man page file found in later versions that use 19083 # traditional section numbers instead 19084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19085printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19086if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19087then : 19088 printf %s "(cached) " >&6 19089else $as_nop 19090 test "$cross_compiling" = yes && 19091 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19092if test -r "/usr/share/man/man7/attributes.7"; then 19093 ac_cv_file__usr_share_man_man7_attributes_7=yes 19094else 19095 ac_cv_file__usr_share_man_man7_attributes_7=no 19096fi 19097fi 19098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19099printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19100if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19101then : 19102 SYSV_MAN_SECTIONS=false 19103else $as_nop 19104 SYSV_MAN_SECTIONS=true 19105fi 19106 19107 ;; 19108 *) SYSV_MAN_SECTIONS=false ;; 19109esac 19110 19111if test x$APP_MAN_SUFFIX = x ; then 19112 APP_MAN_SUFFIX=1 19113fi 19114if test x$APP_MAN_DIR = x ; then 19115 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19116fi 19117 19118if test x$LIB_MAN_SUFFIX = x ; then 19119 LIB_MAN_SUFFIX=3 19120fi 19121if test x$LIB_MAN_DIR = x ; then 19122 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19123fi 19124 19125if test x$FILE_MAN_SUFFIX = x ; then 19126 case $SYSV_MAN_SECTIONS in 19127 true) FILE_MAN_SUFFIX=4 ;; 19128 *) FILE_MAN_SUFFIX=5 ;; 19129 esac 19130fi 19131if test x$FILE_MAN_DIR = x ; then 19132 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19133fi 19134 19135if test x$MISC_MAN_SUFFIX = x ; then 19136 case $SYSV_MAN_SECTIONS in 19137 true) MISC_MAN_SUFFIX=5 ;; 19138 *) MISC_MAN_SUFFIX=7 ;; 19139 esac 19140fi 19141if test x$MISC_MAN_DIR = x ; then 19142 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19143fi 19144 19145if test x$DRIVER_MAN_SUFFIX = x ; then 19146 case $SYSV_MAN_SECTIONS in 19147 true) DRIVER_MAN_SUFFIX=7 ;; 19148 *) DRIVER_MAN_SUFFIX=4 ;; 19149 esac 19150fi 19151if test x$DRIVER_MAN_DIR = x ; then 19152 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19153fi 19154 19155if test x$ADMIN_MAN_SUFFIX = x ; then 19156 case $SYSV_MAN_SECTIONS in 19157 true) ADMIN_MAN_SUFFIX=1m ;; 19158 *) ADMIN_MAN_SUFFIX=8 ;; 19159 esac 19160fi 19161if test x$ADMIN_MAN_DIR = x ; then 19162 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19163fi 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179XORG_MAN_PAGE="X Version 11" 19180 19181MAN_SUBSTS="\ 19182 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19183 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19184 -e 's|__xservername__|Xorg|g' \ 19185 -e 's|__xconfigfile__|xorg.conf|g' \ 19186 -e 's|__projectroot__|\$(prefix)|g' \ 19187 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19188 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19189 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19190 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19191 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19192 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19193 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19194 19195 19196 19197# Check whether --enable-silent-rules was given. 19198if test ${enable_silent_rules+y} 19199then : 19200 enableval=$enable_silent_rules; 19201fi 19202 19203case $enable_silent_rules in # ((( 19204 yes) AM_DEFAULT_VERBOSITY=0;; 19205 no) AM_DEFAULT_VERBOSITY=1;; 19206 *) AM_DEFAULT_VERBOSITY=0;; 19207esac 19208am_make=${MAKE-make} 19209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19210printf %s "checking whether $am_make supports nested variables... " >&6; } 19211if test ${am_cv_make_support_nested_variables+y} 19212then : 19213 printf %s "(cached) " >&6 19214else $as_nop 19215 if printf "%s\n" 'TRUE=$(BAR$(V)) 19216BAR0=false 19217BAR1=true 19218V=1 19219am__doit: 19220 @$(TRUE) 19221.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19222 am_cv_make_support_nested_variables=yes 19223else 19224 am_cv_make_support_nested_variables=no 19225fi 19226fi 19227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19228printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19229if test $am_cv_make_support_nested_variables = yes; then 19230 AM_V='$(V)' 19231 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19232else 19233 AM_V=$AM_DEFAULT_VERBOSITY 19234 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19235fi 19236AM_BACKSLASH='\' 19237 19238 19239 19240# Set library version for Xft.h from package version set in AC_INIT 19241# copied from PACKAGE_VERSION_* settings in XORG_VERSION 19242ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h" 19243 19244 19245cat >>confdefs.h <<_ACEOF 19246#define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19247_ACEOF 19248 19249 19250cat >>confdefs.h <<_ACEOF 19251#define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19252_ACEOF 19253 19254 19255cat >>confdefs.h <<_ACEOF 19256#define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19257_ACEOF 19258 19259 19260XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'` 19261 19262 19263# 19264# Check for Xrender 19265# 19266 19267pkg_failed=no 19268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender >= 0.8.2 x11 xproto >= 7.0.22" >&5 19269printf %s "checking for xrender >= 0.8.2 x11 xproto >= 7.0.22... " >&6; } 19270 19271if test -n "$XRENDER_CFLAGS"; then 19272 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 19273 elif test -n "$PKG_CONFIG"; then 19274 if test -n "$PKG_CONFIG" && \ 19275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11 xproto >= 7.0.22\""; } >&5 19276 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11 xproto >= 7.0.22") 2>&5 19277 ac_status=$? 19278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19279 test $ac_status = 0; }; then 19280 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>/dev/null` 19281 test "x$?" != "x0" && pkg_failed=yes 19282else 19283 pkg_failed=yes 19284fi 19285 else 19286 pkg_failed=untried 19287fi 19288if test -n "$XRENDER_LIBS"; then 19289 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 19290 elif test -n "$PKG_CONFIG"; then 19291 if test -n "$PKG_CONFIG" && \ 19292 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11 xproto >= 7.0.22\""; } >&5 19293 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11 xproto >= 7.0.22") 2>&5 19294 ac_status=$? 19295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19296 test $ac_status = 0; }; then 19297 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>/dev/null` 19298 test "x$?" != "x0" && pkg_failed=yes 19299else 19300 pkg_failed=yes 19301fi 19302 else 19303 pkg_failed=untried 19304fi 19305 19306 19307 19308if test $pkg_failed = yes; then 19309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19310printf "%s\n" "no" >&6; } 19311 19312if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19313 _pkg_short_errors_supported=yes 19314else 19315 _pkg_short_errors_supported=no 19316fi 19317 if test $_pkg_short_errors_supported = yes; then 19318 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>&1` 19319 else 19320 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>&1` 19321 fi 19322 # Put the nasty error message in config.log where it belongs 19323 echo "$XRENDER_PKG_ERRORS" >&5 19324 19325 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11 xproto >= 7.0.22) were not met: 19326 19327$XRENDER_PKG_ERRORS 19328 19329Consider adjusting the PKG_CONFIG_PATH environment variable if you 19330installed software in a non-standard prefix. 19331 19332Alternatively, you may set the environment variables XRENDER_CFLAGS 19333and XRENDER_LIBS to avoid the need to call pkg-config. 19334See the pkg-config man page for more details." "$LINENO" 5 19335elif test $pkg_failed = untried; then 19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19337printf "%s\n" "no" >&6; } 19338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19339printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19340as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19341is in your PATH or set the PKG_CONFIG environment variable to the full 19342path to pkg-config. 19343 19344Alternatively, you may set the environment variables XRENDER_CFLAGS 19345and XRENDER_LIBS to avoid the need to call pkg-config. 19346See the pkg-config man page for more details. 19347 19348To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19349See \`config.log' for more details" "$LINENO" 5; } 19350else 19351 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 19352 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19354printf "%s\n" "yes" >&6; } 19355 19356fi 19357 19358# Check freetype configuration 19359 19360pkg_failed=no 19361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 2.1.6" >&5 19362printf %s "checking for freetype2 >= 2.1.6... " >&6; } 19363 19364if test -n "$FREETYPE_CFLAGS"; then 19365 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 19366 elif test -n "$PKG_CONFIG"; then 19367 if test -n "$PKG_CONFIG" && \ 19368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 19369 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 19370 ac_status=$? 19371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19372 test $ac_status = 0; }; then 19373 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null` 19374 test "x$?" != "x0" && pkg_failed=yes 19375else 19376 pkg_failed=yes 19377fi 19378 else 19379 pkg_failed=untried 19380fi 19381if test -n "$FREETYPE_LIBS"; then 19382 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 19383 elif test -n "$PKG_CONFIG"; then 19384 if test -n "$PKG_CONFIG" && \ 19385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 19386 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 19387 ac_status=$? 19388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19389 test $ac_status = 0; }; then 19390 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null` 19391 test "x$?" != "x0" && pkg_failed=yes 19392else 19393 pkg_failed=yes 19394fi 19395 else 19396 pkg_failed=untried 19397fi 19398 19399 19400 19401if test $pkg_failed = yes; then 19402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19403printf "%s\n" "no" >&6; } 19404 19405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19406 _pkg_short_errors_supported=yes 19407else 19408 _pkg_short_errors_supported=no 19409fi 19410 if test $_pkg_short_errors_supported = yes; then 19411 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1` 19412 else 19413 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1` 19414 fi 19415 # Put the nasty error message in config.log where it belongs 19416 echo "$FREETYPE_PKG_ERRORS" >&5 19417 19418 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met: 19419 19420$FREETYPE_PKG_ERRORS 19421 19422Consider adjusting the PKG_CONFIG_PATH environment variable if you 19423installed software in a non-standard prefix. 19424 19425Alternatively, you may set the environment variables FREETYPE_CFLAGS 19426and FREETYPE_LIBS to avoid the need to call pkg-config. 19427See the pkg-config man page for more details." "$LINENO" 5 19428elif test $pkg_failed = untried; then 19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19430printf "%s\n" "no" >&6; } 19431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19432printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19433as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19434is in your PATH or set the PKG_CONFIG environment variable to the full 19435path to pkg-config. 19436 19437Alternatively, you may set the environment variables FREETYPE_CFLAGS 19438and FREETYPE_LIBS to avoid the need to call pkg-config. 19439See the pkg-config man page for more details. 19440 19441To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19442See \`config.log' for more details" "$LINENO" 5; } 19443else 19444 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 19445 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19447printf "%s\n" "yes" >&6; } 19448 19449fi 19450 19451# Check fontconfig configuration 19452 19453pkg_failed=no 19454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.5.92" >&5 19455printf %s "checking for fontconfig >= 2.5.92... " >&6; } 19456 19457if test -n "$FONTCONFIG_CFLAGS"; then 19458 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 19459 elif test -n "$PKG_CONFIG"; then 19460 if test -n "$PKG_CONFIG" && \ 19461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 19462 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 19463 ac_status=$? 19464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19465 test $ac_status = 0; }; then 19466 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null` 19467 test "x$?" != "x0" && pkg_failed=yes 19468else 19469 pkg_failed=yes 19470fi 19471 else 19472 pkg_failed=untried 19473fi 19474if test -n "$FONTCONFIG_LIBS"; then 19475 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 19476 elif test -n "$PKG_CONFIG"; then 19477 if test -n "$PKG_CONFIG" && \ 19478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 19479 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 19480 ac_status=$? 19481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19482 test $ac_status = 0; }; then 19483 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null` 19484 test "x$?" != "x0" && pkg_failed=yes 19485else 19486 pkg_failed=yes 19487fi 19488 else 19489 pkg_failed=untried 19490fi 19491 19492 19493 19494if test $pkg_failed = yes; then 19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19496printf "%s\n" "no" >&6; } 19497 19498if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19499 _pkg_short_errors_supported=yes 19500else 19501 _pkg_short_errors_supported=no 19502fi 19503 if test $_pkg_short_errors_supported = yes; then 19504 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1` 19505 else 19506 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1` 19507 fi 19508 # Put the nasty error message in config.log where it belongs 19509 echo "$FONTCONFIG_PKG_ERRORS" >&5 19510 19511 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met: 19512 19513$FONTCONFIG_PKG_ERRORS 19514 19515Consider adjusting the PKG_CONFIG_PATH environment variable if you 19516installed software in a non-standard prefix. 19517 19518Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 19519and FONTCONFIG_LIBS to avoid the need to call pkg-config. 19520See the pkg-config man page for more details." "$LINENO" 5 19521elif test $pkg_failed = untried; then 19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19523printf "%s\n" "no" >&6; } 19524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19525printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19526as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19527is in your PATH or set the PKG_CONFIG environment variable to the full 19528path to pkg-config. 19529 19530Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 19531and FONTCONFIG_LIBS to avoid the need to call pkg-config. 19532See the pkg-config man page for more details. 19533 19534To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19535See \`config.log' for more details" "$LINENO" 5; } 19536else 19537 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 19538 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19540printf "%s\n" "yes" >&6; } 19541 19542fi 19543 19544 19545 19546 19547 19548 19549 19550 19551if test "$VERSION" = "" ; then 19552 VERSION=$PACKAGE_VERSION; 19553fi 19554 19555ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile" 19556 19557cat >confcache <<\_ACEOF 19558# This file is a shell script that caches the results of configure 19559# tests run on this system so they can be shared between configure 19560# scripts and configure runs, see configure's option --config-cache. 19561# It is not useful on other systems. If it contains results you don't 19562# want to keep, you may remove or edit it. 19563# 19564# config.status only pays attention to the cache file if you give it 19565# the --recheck option to rerun configure. 19566# 19567# `ac_cv_env_foo' variables (set or unset) will be overridden when 19568# loading this file, other *unset* `ac_cv_foo' will be assigned the 19569# following values. 19570 19571_ACEOF 19572 19573# The following way of writing the cache mishandles newlines in values, 19574# but we know of no workaround that is simple, portable, and efficient. 19575# So, we kill variables containing newlines. 19576# Ultrix sh set writes to stderr and can't be redirected directly, 19577# and sets the high bit in the cache file unless we assign to the vars. 19578( 19579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19580 eval ac_val=\$$ac_var 19581 case $ac_val in #( 19582 *${as_nl}*) 19583 case $ac_var in #( 19584 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19585printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19586 esac 19587 case $ac_var in #( 19588 _ | IFS | as_nl) ;; #( 19589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19590 *) { eval $ac_var=; unset $ac_var;} ;; 19591 esac ;; 19592 esac 19593 done 19594 19595 (set) 2>&1 | 19596 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19597 *${as_nl}ac_space=\ *) 19598 # `set' does not quote correctly, so add quotes: double-quote 19599 # substitution turns \\\\ into \\, and sed turns \\ into \. 19600 sed -n \ 19601 "s/'/'\\\\''/g; 19602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19603 ;; #( 19604 *) 19605 # `set' quotes correctly as required by POSIX, so do not add quotes. 19606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19607 ;; 19608 esac | 19609 sort 19610) | 19611 sed ' 19612 /^ac_cv_env_/b end 19613 t clear 19614 :clear 19615 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19616 t end 19617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19618 :end' >>confcache 19619if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19620 if test -w "$cache_file"; then 19621 if test "x$cache_file" != "x/dev/null"; then 19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19623printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19624 if test ! -f "$cache_file" || test -h "$cache_file"; then 19625 cat confcache >"$cache_file" 19626 else 19627 case $cache_file in #( 19628 */* | ?:*) 19629 mv -f confcache "$cache_file"$$ && 19630 mv -f "$cache_file"$$ "$cache_file" ;; #( 19631 *) 19632 mv -f confcache "$cache_file" ;; 19633 esac 19634 fi 19635 fi 19636 else 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19638printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19639 fi 19640fi 19641rm -f confcache 19642 19643test "x$prefix" = xNONE && prefix=$ac_default_prefix 19644# Let make expand exec_prefix. 19645test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19646 19647DEFS=-DHAVE_CONFIG_H 19648 19649ac_libobjs= 19650ac_ltlibobjs= 19651U= 19652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19653 # 1. Remove the extension, and $U if already installed. 19654 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19655 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19657 # will be set to the directory where LIBOBJS objects are built. 19658 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19659 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19660done 19661LIBOBJS=$ac_libobjs 19662 19663LTLIBOBJS=$ac_ltlibobjs 19664 19665 19666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19667printf %s "checking that generated files are newer than configure... " >&6; } 19668 if test -n "$am_sleep_pid"; then 19669 # Hide warnings about reused PIDs. 19670 wait $am_sleep_pid 2>/dev/null 19671 fi 19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19673printf "%s\n" "done" >&6; } 19674 if test -n "$EXEEXT"; then 19675 am__EXEEXT_TRUE= 19676 am__EXEEXT_FALSE='#' 19677else 19678 am__EXEEXT_TRUE='#' 19679 am__EXEEXT_FALSE= 19680fi 19681 19682if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19683 as_fn_error $? "conditional \"AMDEP\" was never defined. 19684Usually this means the macro was only invoked conditionally." "$LINENO" 5 19685fi 19686if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19687 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19688Usually this means the macro was only invoked conditionally." "$LINENO" 5 19689fi 19690 19691: "${CONFIG_STATUS=./config.status}" 19692ac_write_fail=0 19693ac_clean_files_save=$ac_clean_files 19694ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19696printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19697as_write_fail=0 19698cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19699#! $SHELL 19700# Generated by $as_me. 19701# Run this file to recreate the current configuration. 19702# Compiler output produced by configure, useful for debugging 19703# configure, is in config.log if it exists. 19704 19705debug=false 19706ac_cs_recheck=false 19707ac_cs_silent=false 19708 19709SHELL=\${CONFIG_SHELL-$SHELL} 19710export SHELL 19711_ASEOF 19712cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19713## -------------------- ## 19714## M4sh Initialization. ## 19715## -------------------- ## 19716 19717# Be more Bourne compatible 19718DUALCASE=1; export DUALCASE # for MKS sh 19719as_nop=: 19720if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19721then : 19722 emulate sh 19723 NULLCMD=: 19724 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19725 # is contrary to our usage. Disable this feature. 19726 alias -g '${1+"$@"}'='"$@"' 19727 setopt NO_GLOB_SUBST 19728else $as_nop 19729 case `(set -o) 2>/dev/null` in #( 19730 *posix*) : 19731 set -o posix ;; #( 19732 *) : 19733 ;; 19734esac 19735fi 19736 19737 19738 19739# Reset variables that may have inherited troublesome values from 19740# the environment. 19741 19742# IFS needs to be set, to space, tab, and newline, in precisely that order. 19743# (If _AS_PATH_WALK were called with IFS unset, it would have the 19744# side effect of setting IFS to empty, thus disabling word splitting.) 19745# Quoting is to prevent editors from complaining about space-tab. 19746as_nl=' 19747' 19748export as_nl 19749IFS=" "" $as_nl" 19750 19751PS1='$ ' 19752PS2='> ' 19753PS4='+ ' 19754 19755# Ensure predictable behavior from utilities with locale-dependent output. 19756LC_ALL=C 19757export LC_ALL 19758LANGUAGE=C 19759export LANGUAGE 19760 19761# We cannot yet rely on "unset" to work, but we need these variables 19762# to be unset--not just set to an empty or harmless value--now, to 19763# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19764# also avoids known problems related to "unset" and subshell syntax 19765# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19766for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19767do eval test \${$as_var+y} \ 19768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19769done 19770 19771# Ensure that fds 0, 1, and 2 are open. 19772if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19773if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19774if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19775 19776# The user is always right. 19777if ${PATH_SEPARATOR+false} :; then 19778 PATH_SEPARATOR=: 19779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19781 PATH_SEPARATOR=';' 19782 } 19783fi 19784 19785 19786# Find who we are. Look in the path if we contain no directory separator. 19787as_myself= 19788case $0 in #(( 19789 *[\\/]* ) as_myself=$0 ;; 19790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19791for as_dir in $PATH 19792do 19793 IFS=$as_save_IFS 19794 case $as_dir in #((( 19795 '') as_dir=./ ;; 19796 */) ;; 19797 *) as_dir=$as_dir/ ;; 19798 esac 19799 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19800 done 19801IFS=$as_save_IFS 19802 19803 ;; 19804esac 19805# We did not find ourselves, most probably we were run as `sh COMMAND' 19806# in which case we are not to be found in the path. 19807if test "x$as_myself" = x; then 19808 as_myself=$0 19809fi 19810if test ! -f "$as_myself"; then 19811 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19812 exit 1 19813fi 19814 19815 19816 19817# as_fn_error STATUS ERROR [LINENO LOG_FD] 19818# ---------------------------------------- 19819# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19820# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19821# script with STATUS, using 1 if that was 0. 19822as_fn_error () 19823{ 19824 as_status=$1; test $as_status -eq 0 && as_status=1 19825 if test "$4"; then 19826 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19828 fi 19829 printf "%s\n" "$as_me: error: $2" >&2 19830 as_fn_exit $as_status 19831} # as_fn_error 19832 19833 19834 19835# as_fn_set_status STATUS 19836# ----------------------- 19837# Set $? to STATUS, without forking. 19838as_fn_set_status () 19839{ 19840 return $1 19841} # as_fn_set_status 19842 19843# as_fn_exit STATUS 19844# ----------------- 19845# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19846as_fn_exit () 19847{ 19848 set +e 19849 as_fn_set_status $1 19850 exit $1 19851} # as_fn_exit 19852 19853# as_fn_unset VAR 19854# --------------- 19855# Portably unset VAR. 19856as_fn_unset () 19857{ 19858 { eval $1=; unset $1;} 19859} 19860as_unset=as_fn_unset 19861 19862# as_fn_append VAR VALUE 19863# ---------------------- 19864# Append the text in VALUE to the end of the definition contained in VAR. Take 19865# advantage of any shell optimizations that allow amortized linear growth over 19866# repeated appends, instead of the typical quadratic growth present in naive 19867# implementations. 19868if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19869then : 19870 eval 'as_fn_append () 19871 { 19872 eval $1+=\$2 19873 }' 19874else $as_nop 19875 as_fn_append () 19876 { 19877 eval $1=\$$1\$2 19878 } 19879fi # as_fn_append 19880 19881# as_fn_arith ARG... 19882# ------------------ 19883# Perform arithmetic evaluation on the ARGs, and store the result in the 19884# global $as_val. Take advantage of shells that can avoid forks. The arguments 19885# must be portable across $(()) and expr. 19886if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19887then : 19888 eval 'as_fn_arith () 19889 { 19890 as_val=$(( $* )) 19891 }' 19892else $as_nop 19893 as_fn_arith () 19894 { 19895 as_val=`expr "$@" || test $? -eq 1` 19896 } 19897fi # as_fn_arith 19898 19899 19900if expr a : '\(a\)' >/dev/null 2>&1 && 19901 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19902 as_expr=expr 19903else 19904 as_expr=false 19905fi 19906 19907if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19908 as_basename=basename 19909else 19910 as_basename=false 19911fi 19912 19913if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19914 as_dirname=dirname 19915else 19916 as_dirname=false 19917fi 19918 19919as_me=`$as_basename -- "$0" || 19920$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19921 X"$0" : 'X\(//\)$' \| \ 19922 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19923printf "%s\n" X/"$0" | 19924 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19925 s//\1/ 19926 q 19927 } 19928 /^X\/\(\/\/\)$/{ 19929 s//\1/ 19930 q 19931 } 19932 /^X\/\(\/\).*/{ 19933 s//\1/ 19934 q 19935 } 19936 s/.*/./; q'` 19937 19938# Avoid depending upon Character Ranges. 19939as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19940as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19941as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19942as_cr_digits='0123456789' 19943as_cr_alnum=$as_cr_Letters$as_cr_digits 19944 19945 19946# Determine whether it's possible to make 'echo' print without a newline. 19947# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19948# for compatibility with existing Makefiles. 19949ECHO_C= ECHO_N= ECHO_T= 19950case `echo -n x` in #((((( 19951-n*) 19952 case `echo 'xy\c'` in 19953 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19954 xy) ECHO_C='\c';; 19955 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19956 ECHO_T=' ';; 19957 esac;; 19958*) 19959 ECHO_N='-n';; 19960esac 19961 19962# For backward compatibility with old third-party macros, we provide 19963# the shell variables $as_echo and $as_echo_n. New code should use 19964# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19965as_echo='printf %s\n' 19966as_echo_n='printf %s' 19967 19968rm -f conf$$ conf$$.exe conf$$.file 19969if test -d conf$$.dir; then 19970 rm -f conf$$.dir/conf$$.file 19971else 19972 rm -f conf$$.dir 19973 mkdir conf$$.dir 2>/dev/null 19974fi 19975if (echo >conf$$.file) 2>/dev/null; then 19976 if ln -s conf$$.file conf$$ 2>/dev/null; then 19977 as_ln_s='ln -s' 19978 # ... but there are two gotchas: 19979 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19980 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19981 # In both cases, we have to default to `cp -pR'. 19982 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19983 as_ln_s='cp -pR' 19984 elif ln conf$$.file conf$$ 2>/dev/null; then 19985 as_ln_s=ln 19986 else 19987 as_ln_s='cp -pR' 19988 fi 19989else 19990 as_ln_s='cp -pR' 19991fi 19992rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19993rmdir conf$$.dir 2>/dev/null 19994 19995 19996# as_fn_mkdir_p 19997# ------------- 19998# Create "$as_dir" as a directory, including parents if necessary. 19999as_fn_mkdir_p () 20000{ 20001 20002 case $as_dir in #( 20003 -*) as_dir=./$as_dir;; 20004 esac 20005 test -d "$as_dir" || eval $as_mkdir_p || { 20006 as_dirs= 20007 while :; do 20008 case $as_dir in #( 20009 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20010 *) as_qdir=$as_dir;; 20011 esac 20012 as_dirs="'$as_qdir' $as_dirs" 20013 as_dir=`$as_dirname -- "$as_dir" || 20014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20015 X"$as_dir" : 'X\(//\)[^/]' \| \ 20016 X"$as_dir" : 'X\(//\)$' \| \ 20017 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20018printf "%s\n" X"$as_dir" | 20019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20020 s//\1/ 20021 q 20022 } 20023 /^X\(\/\/\)[^/].*/{ 20024 s//\1/ 20025 q 20026 } 20027 /^X\(\/\/\)$/{ 20028 s//\1/ 20029 q 20030 } 20031 /^X\(\/\).*/{ 20032 s//\1/ 20033 q 20034 } 20035 s/.*/./; q'` 20036 test -d "$as_dir" && break 20037 done 20038 test -z "$as_dirs" || eval "mkdir $as_dirs" 20039 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20040 20041 20042} # as_fn_mkdir_p 20043if mkdir -p . 2>/dev/null; then 20044 as_mkdir_p='mkdir -p "$as_dir"' 20045else 20046 test -d ./-p && rmdir ./-p 20047 as_mkdir_p=false 20048fi 20049 20050 20051# as_fn_executable_p FILE 20052# ----------------------- 20053# Test if FILE is an executable regular file. 20054as_fn_executable_p () 20055{ 20056 test -f "$1" && test -x "$1" 20057} # as_fn_executable_p 20058as_test_x='test -x' 20059as_executable_p=as_fn_executable_p 20060 20061# Sed expression to map a string onto a valid CPP name. 20062as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20063 20064# Sed expression to map a string onto a valid variable name. 20065as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20066 20067 20068exec 6>&1 20069## ----------------------------------- ## 20070## Main body of $CONFIG_STATUS script. ## 20071## ----------------------------------- ## 20072_ASEOF 20073test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20074 20075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20076# Save the log message, to keep $0 and so on meaningful, and to 20077# report actual input values of CONFIG_FILES etc. instead of their 20078# values after options handling. 20079ac_log=" 20080This file was extended by libXft $as_me 2.3.9, which was 20081generated by GNU Autoconf 2.71. Invocation command line was 20082 20083 CONFIG_FILES = $CONFIG_FILES 20084 CONFIG_HEADERS = $CONFIG_HEADERS 20085 CONFIG_LINKS = $CONFIG_LINKS 20086 CONFIG_COMMANDS = $CONFIG_COMMANDS 20087 $ $0 $@ 20088 20089on `(hostname || uname -n) 2>/dev/null | sed 1q` 20090" 20091 20092_ACEOF 20093 20094case $ac_config_files in *" 20095"*) set x $ac_config_files; shift; ac_config_files=$*;; 20096esac 20097 20098case $ac_config_headers in *" 20099"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20100esac 20101 20102 20103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20104# Files that config.status was made for. 20105config_files="$ac_config_files" 20106config_headers="$ac_config_headers" 20107config_commands="$ac_config_commands" 20108 20109_ACEOF 20110 20111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20112ac_cs_usage="\ 20113\`$as_me' instantiates files and other configuration actions 20114from templates according to the current configuration. Unless the files 20115and actions are specified as TAGs, all are instantiated by default. 20116 20117Usage: $0 [OPTION]... [TAG]... 20118 20119 -h, --help print this help, then exit 20120 -V, --version print version number and configuration settings, then exit 20121 --config print configuration, then exit 20122 -q, --quiet, --silent 20123 do not print progress messages 20124 -d, --debug don't remove temporary files 20125 --recheck update $as_me by reconfiguring in the same conditions 20126 --file=FILE[:TEMPLATE] 20127 instantiate the configuration file FILE 20128 --header=FILE[:TEMPLATE] 20129 instantiate the configuration header FILE 20130 20131Configuration files: 20132$config_files 20133 20134Configuration headers: 20135$config_headers 20136 20137Configuration commands: 20138$config_commands 20139 20140Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>." 20141 20142_ACEOF 20143ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20144ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20146ac_cs_config='$ac_cs_config_escaped' 20147ac_cs_version="\\ 20148libXft config.status 2.3.9 20149configured by $0, generated by GNU Autoconf 2.71, 20150 with options \\"\$ac_cs_config\\" 20151 20152Copyright (C) 2021 Free Software Foundation, Inc. 20153This config.status script is free software; the Free Software Foundation 20154gives unlimited permission to copy, distribute and modify it." 20155 20156ac_pwd='$ac_pwd' 20157srcdir='$srcdir' 20158INSTALL='$INSTALL' 20159MKDIR_P='$MKDIR_P' 20160AWK='$AWK' 20161test -n "\$AWK" || AWK=awk 20162_ACEOF 20163 20164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20165# The default lists apply if the user does not specify any file. 20166ac_need_defaults=: 20167while test $# != 0 20168do 20169 case $1 in 20170 --*=?*) 20171 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20173 ac_shift=: 20174 ;; 20175 --*=) 20176 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20177 ac_optarg= 20178 ac_shift=: 20179 ;; 20180 *) 20181 ac_option=$1 20182 ac_optarg=$2 20183 ac_shift=shift 20184 ;; 20185 esac 20186 20187 case $ac_option in 20188 # Handling of the options. 20189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20190 ac_cs_recheck=: ;; 20191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20192 printf "%s\n" "$ac_cs_version"; exit ;; 20193 --config | --confi | --conf | --con | --co | --c ) 20194 printf "%s\n" "$ac_cs_config"; exit ;; 20195 --debug | --debu | --deb | --de | --d | -d ) 20196 debug=: ;; 20197 --file | --fil | --fi | --f ) 20198 $ac_shift 20199 case $ac_optarg in 20200 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20201 '') as_fn_error $? "missing file argument" ;; 20202 esac 20203 as_fn_append CONFIG_FILES " '$ac_optarg'" 20204 ac_need_defaults=false;; 20205 --header | --heade | --head | --hea ) 20206 $ac_shift 20207 case $ac_optarg in 20208 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20209 esac 20210 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20211 ac_need_defaults=false;; 20212 --he | --h) 20213 # Conflict between --help and --header 20214 as_fn_error $? "ambiguous option: \`$1' 20215Try \`$0 --help' for more information.";; 20216 --help | --hel | -h ) 20217 printf "%s\n" "$ac_cs_usage"; exit ;; 20218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20219 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20220 ac_cs_silent=: ;; 20221 20222 # This is an error. 20223 -*) as_fn_error $? "unrecognized option: \`$1' 20224Try \`$0 --help' for more information." ;; 20225 20226 *) as_fn_append ac_config_targets " $1" 20227 ac_need_defaults=false ;; 20228 20229 esac 20230 shift 20231done 20232 20233ac_configure_extra_args= 20234 20235if $ac_cs_silent; then 20236 exec 6>/dev/null 20237 ac_configure_extra_args="$ac_configure_extra_args --silent" 20238fi 20239 20240_ACEOF 20241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20242if \$ac_cs_recheck; then 20243 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20244 shift 20245 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20246 CONFIG_SHELL='$SHELL' 20247 export CONFIG_SHELL 20248 exec "\$@" 20249fi 20250 20251_ACEOF 20252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20253exec 5>>config.log 20254{ 20255 echo 20256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20257## Running $as_me. ## 20258_ASBOX 20259 printf "%s\n" "$ac_log" 20260} >&5 20261 20262_ACEOF 20263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20264# 20265# INIT-COMMANDS 20266# 20267AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20268 20269 20270# The HP-UX ksh and POSIX shell print the target directory to stdout 20271# if CDPATH is set. 20272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20273 20274sed_quote_subst='$sed_quote_subst' 20275double_quote_subst='$double_quote_subst' 20276delay_variable_subst='$delay_variable_subst' 20277macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20278macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20279enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20280enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20281pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20282enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20283shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20284SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20285ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20286PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20287host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20288host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20289host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20290build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20291build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20292build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20293SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20294Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20295GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20296EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20297FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20298LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20299NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20300LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20301max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20302ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20303exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20304lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20305lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20306lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20307lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20308lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20309reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20310reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20311FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20312OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20313deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20314file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20315file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20316want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20317DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20318sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20319AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20320lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20321AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20322archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20323STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20324RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20325old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20326old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20327old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20328lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20329CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20330CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20331compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20332GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20333lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20334lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20335lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20336lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20337lt_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"`' 20338lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20339nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20340lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20341lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20342objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20343MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20344lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20345lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20346lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20347lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20348lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20349need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20350MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20351DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20352NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20353LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20354OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20355OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20356libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20357shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20358extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20359archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20360enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20361export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20362whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20363compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20364old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20365old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20366archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20367archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20368module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20369module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20370with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20371allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20372no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20373hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20374hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20375hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20376hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20377hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20378hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20379hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20380inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20381link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20382always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20383export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20384exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20385include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20386prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20387postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20388file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20389variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20390need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20391need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20392version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20393runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20394shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20395shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20396libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20397library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20398soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20399install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20400postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20401postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20402finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20403finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20404hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20405sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20406configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20407configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20408hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20409enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20410enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20411enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20412old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20413striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20414 20415LTCC='$LTCC' 20416LTCFLAGS='$LTCFLAGS' 20417compiler='$compiler_DEFAULT' 20418 20419# A function that is used when there is no print builtin or printf. 20420func_fallback_echo () 20421{ 20422 eval 'cat <<_LTECHO_EOF 20423\$1 20424_LTECHO_EOF' 20425} 20426 20427# Quote evaled strings. 20428for var in SHELL \ 20429ECHO \ 20430PATH_SEPARATOR \ 20431SED \ 20432GREP \ 20433EGREP \ 20434FGREP \ 20435LD \ 20436NM \ 20437LN_S \ 20438lt_SP2NL \ 20439lt_NL2SP \ 20440reload_flag \ 20441FILECMD \ 20442OBJDUMP \ 20443deplibs_check_method \ 20444file_magic_cmd \ 20445file_magic_glob \ 20446want_nocaseglob \ 20447DLLTOOL \ 20448sharedlib_from_linklib_cmd \ 20449AR \ 20450archiver_list_spec \ 20451STRIP \ 20452RANLIB \ 20453CC \ 20454CFLAGS \ 20455compiler \ 20456lt_cv_sys_global_symbol_pipe \ 20457lt_cv_sys_global_symbol_to_cdecl \ 20458lt_cv_sys_global_symbol_to_import \ 20459lt_cv_sys_global_symbol_to_c_name_address \ 20460lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20461lt_cv_nm_interface \ 20462nm_file_list_spec \ 20463lt_cv_truncate_bin \ 20464lt_prog_compiler_no_builtin_flag \ 20465lt_prog_compiler_pic \ 20466lt_prog_compiler_wl \ 20467lt_prog_compiler_static \ 20468lt_cv_prog_compiler_c_o \ 20469need_locks \ 20470MANIFEST_TOOL \ 20471DSYMUTIL \ 20472NMEDIT \ 20473LIPO \ 20474OTOOL \ 20475OTOOL64 \ 20476shrext_cmds \ 20477export_dynamic_flag_spec \ 20478whole_archive_flag_spec \ 20479compiler_needs_object \ 20480with_gnu_ld \ 20481allow_undefined_flag \ 20482no_undefined_flag \ 20483hardcode_libdir_flag_spec \ 20484hardcode_libdir_separator \ 20485exclude_expsyms \ 20486include_expsyms \ 20487file_list_spec \ 20488variables_saved_for_relink \ 20489libname_spec \ 20490library_names_spec \ 20491soname_spec \ 20492install_override_mode \ 20493finish_eval \ 20494old_striplib \ 20495striplib; do 20496 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20497 *[\\\\\\\`\\"\\\$]*) 20498 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20499 ;; 20500 *) 20501 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20502 ;; 20503 esac 20504done 20505 20506# Double-quote double-evaled strings. 20507for var in reload_cmds \ 20508old_postinstall_cmds \ 20509old_postuninstall_cmds \ 20510old_archive_cmds \ 20511extract_expsyms_cmds \ 20512old_archive_from_new_cmds \ 20513old_archive_from_expsyms_cmds \ 20514archive_cmds \ 20515archive_expsym_cmds \ 20516module_cmds \ 20517module_expsym_cmds \ 20518export_symbols_cmds \ 20519prelink_cmds \ 20520postlink_cmds \ 20521postinstall_cmds \ 20522postuninstall_cmds \ 20523finish_cmds \ 20524sys_lib_search_path_spec \ 20525configure_time_dlsearch_path \ 20526configure_time_lt_sys_library_path; do 20527 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20528 *[\\\\\\\`\\"\\\$]*) 20529 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20530 ;; 20531 *) 20532 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20533 ;; 20534 esac 20535done 20536 20537ac_aux_dir='$ac_aux_dir' 20538 20539# See if we are running on zsh, and set the options that allow our 20540# commands through without removal of \ escapes INIT. 20541if test -n "\${ZSH_VERSION+set}"; then 20542 setopt NO_GLOB_SUBST 20543fi 20544 20545 20546 PACKAGE='$PACKAGE' 20547 VERSION='$VERSION' 20548 RM='$RM' 20549 ofile='$ofile' 20550 20551 20552 20553 20554_ACEOF 20555 20556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20557 20558# Handling of arguments. 20559for ac_config_target in $ac_config_targets 20560do 20561 case $ac_config_target in 20562 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20563 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20564 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20565 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;; 20566 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20567 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;; 20568 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20569 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20570 20571 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20572 esac 20573done 20574 20575 20576# If the user did not use the arguments to specify the items to instantiate, 20577# then the envvar interface is used. Set only those that are not. 20578# We use the long form for the default assignment because of an extremely 20579# bizarre bug on SunOS 4.1.3. 20580if $ac_need_defaults; then 20581 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20582 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20583 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20584fi 20585 20586# Have a temporary directory for convenience. Make it in the build tree 20587# simply because there is no reason against having it here, and in addition, 20588# creating and moving files from /tmp can sometimes cause problems. 20589# Hook for its removal unless debugging. 20590# Note that there is a small window in which the directory will not be cleaned: 20591# after its creation but before its name has been assigned to `$tmp'. 20592$debug || 20593{ 20594 tmp= ac_tmp= 20595 trap 'exit_status=$? 20596 : "${ac_tmp:=$tmp}" 20597 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20598' 0 20599 trap 'as_fn_exit 1' 1 2 13 15 20600} 20601# Create a (secure) tmp directory for tmp files. 20602 20603{ 20604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20605 test -d "$tmp" 20606} || 20607{ 20608 tmp=./conf$$-$RANDOM 20609 (umask 077 && mkdir "$tmp") 20610} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20611ac_tmp=$tmp 20612 20613# Set up the scripts for CONFIG_FILES section. 20614# No need to generate them if there are no CONFIG_FILES. 20615# This happens for instance with `./config.status config.h'. 20616if test -n "$CONFIG_FILES"; then 20617 20618 20619ac_cr=`echo X | tr X '\015'` 20620# On cygwin, bash can eat \r inside `` if the user requested igncr. 20621# But we know of no other shell where ac_cr would be empty at this 20622# point, so we can use a bashism as a fallback. 20623if test "x$ac_cr" = x; then 20624 eval ac_cr=\$\'\\r\' 20625fi 20626ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20627if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20628 ac_cs_awk_cr='\\r' 20629else 20630 ac_cs_awk_cr=$ac_cr 20631fi 20632 20633echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20634_ACEOF 20635 20636 20637{ 20638 echo "cat >conf$$subs.awk <<_ACEOF" && 20639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20640 echo "_ACEOF" 20641} >conf$$subs.sh || 20642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20643ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20644ac_delim='%!_!# ' 20645for ac_last_try in false false false false false :; do 20646 . ./conf$$subs.sh || 20647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20648 20649 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20650 if test $ac_delim_n = $ac_delim_num; then 20651 break 20652 elif $ac_last_try; then 20653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20654 else 20655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20656 fi 20657done 20658rm -f conf$$subs.sh 20659 20660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20661cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20662_ACEOF 20663sed -n ' 20664h 20665s/^/S["/; s/!.*/"]=/ 20666p 20667g 20668s/^[^!]*!// 20669:repl 20670t repl 20671s/'"$ac_delim"'$// 20672t delim 20673:nl 20674h 20675s/\(.\{148\}\)..*/\1/ 20676t more1 20677s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20678p 20679n 20680b repl 20681:more1 20682s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20683p 20684g 20685s/.\{148\}// 20686t nl 20687:delim 20688h 20689s/\(.\{148\}\)..*/\1/ 20690t more2 20691s/["\\]/\\&/g; s/^/"/; s/$/"/ 20692p 20693b 20694:more2 20695s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20696p 20697g 20698s/.\{148\}// 20699t delim 20700' <conf$$subs.awk | sed ' 20701/^[^""]/{ 20702 N 20703 s/\n// 20704} 20705' >>$CONFIG_STATUS || ac_write_fail=1 20706rm -f conf$$subs.awk 20707cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20708_ACAWK 20709cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20710 for (key in S) S_is_set[key] = 1 20711 FS = "" 20712 20713} 20714{ 20715 line = $ 0 20716 nfields = split(line, field, "@") 20717 substed = 0 20718 len = length(field[1]) 20719 for (i = 2; i < nfields; i++) { 20720 key = field[i] 20721 keylen = length(key) 20722 if (S_is_set[key]) { 20723 value = S[key] 20724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20725 len += length(value) + length(field[++i]) 20726 substed = 1 20727 } else 20728 len += 1 + keylen 20729 } 20730 20731 print line 20732} 20733 20734_ACAWK 20735_ACEOF 20736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20737if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20739else 20740 cat 20741fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20742 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20743_ACEOF 20744 20745# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20746# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20747# trailing colons and then remove the whole line if VPATH becomes empty 20748# (actually we leave an empty line to preserve line numbers). 20749if test "x$srcdir" = x.; then 20750 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20751h 20752s/// 20753s/^/:/ 20754s/[ ]*$/:/ 20755s/:\$(srcdir):/:/g 20756s/:\${srcdir}:/:/g 20757s/:@srcdir@:/:/g 20758s/^:*// 20759s/:*$// 20760x 20761s/\(=[ ]*\).*/\1/ 20762G 20763s/\n// 20764s/^[^=]*=[ ]*$// 20765}' 20766fi 20767 20768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20769fi # test -n "$CONFIG_FILES" 20770 20771# Set up the scripts for CONFIG_HEADERS section. 20772# No need to generate them if there are no CONFIG_HEADERS. 20773# This happens for instance with `./config.status Makefile'. 20774if test -n "$CONFIG_HEADERS"; then 20775cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20776BEGIN { 20777_ACEOF 20778 20779# Transform confdefs.h into an awk script `defines.awk', embedded as 20780# here-document in config.status, that substitutes the proper values into 20781# config.h.in to produce config.h. 20782 20783# Create a delimiter string that does not exist in confdefs.h, to ease 20784# handling of long lines. 20785ac_delim='%!_!# ' 20786for ac_last_try in false false :; do 20787 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20788 if test -z "$ac_tt"; then 20789 break 20790 elif $ac_last_try; then 20791 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20792 else 20793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20794 fi 20795done 20796 20797# For the awk script, D is an array of macro values keyed by name, 20798# likewise P contains macro parameters if any. Preserve backslash 20799# newline sequences. 20800 20801ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20802sed -n ' 20803s/.\{148\}/&'"$ac_delim"'/g 20804t rset 20805:rset 20806s/^[ ]*#[ ]*define[ ][ ]*/ / 20807t def 20808d 20809:def 20810s/\\$// 20811t bsnl 20812s/["\\]/\\&/g 20813s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20814D["\1"]=" \3"/p 20815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20816d 20817:bsnl 20818s/["\\]/\\&/g 20819s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20820D["\1"]=" \3\\\\\\n"\\/p 20821t cont 20822s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20823t cont 20824d 20825:cont 20826n 20827s/.\{148\}/&'"$ac_delim"'/g 20828t clear 20829:clear 20830s/\\$// 20831t bsnlc 20832s/["\\]/\\&/g; s/^/"/; s/$/"/p 20833d 20834:bsnlc 20835s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20836b cont 20837' <confdefs.h | sed ' 20838s/'"$ac_delim"'/"\\\ 20839"/g' >>$CONFIG_STATUS || ac_write_fail=1 20840 20841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20842 for (key in D) D_is_set[key] = 1 20843 FS = "" 20844} 20845/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20846 line = \$ 0 20847 split(line, arg, " ") 20848 if (arg[1] == "#") { 20849 defundef = arg[2] 20850 mac1 = arg[3] 20851 } else { 20852 defundef = substr(arg[1], 2) 20853 mac1 = arg[2] 20854 } 20855 split(mac1, mac2, "(") #) 20856 macro = mac2[1] 20857 prefix = substr(line, 1, index(line, defundef) - 1) 20858 if (D_is_set[macro]) { 20859 # Preserve the white space surrounding the "#". 20860 print prefix "define", macro P[macro] D[macro] 20861 next 20862 } else { 20863 # Replace #undef with comments. This is necessary, for example, 20864 # in the case of _POSIX_SOURCE, which is predefined and required 20865 # on some systems where configure will not decide to define it. 20866 if (defundef == "undef") { 20867 print "/*", prefix defundef, macro, "*/" 20868 next 20869 } 20870 } 20871} 20872{ print } 20873_ACAWK 20874_ACEOF 20875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20876 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20877fi # test -n "$CONFIG_HEADERS" 20878 20879 20880eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20881shift 20882for ac_tag 20883do 20884 case $ac_tag in 20885 :[FHLC]) ac_mode=$ac_tag; continue;; 20886 esac 20887 case $ac_mode$ac_tag in 20888 :[FHL]*:*);; 20889 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20890 :[FH]-) ac_tag=-:-;; 20891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20892 esac 20893 ac_save_IFS=$IFS 20894 IFS=: 20895 set x $ac_tag 20896 IFS=$ac_save_IFS 20897 shift 20898 ac_file=$1 20899 shift 20900 20901 case $ac_mode in 20902 :L) ac_source=$1;; 20903 :[FH]) 20904 ac_file_inputs= 20905 for ac_f 20906 do 20907 case $ac_f in 20908 -) ac_f="$ac_tmp/stdin";; 20909 *) # Look for the file first in the build tree, then in the source tree 20910 # (if the path is not absolute). The absolute path cannot be DOS-style, 20911 # because $ac_f cannot contain `:'. 20912 test -f "$ac_f" || 20913 case $ac_f in 20914 [\\/$]*) false;; 20915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20916 esac || 20917 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20918 esac 20919 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20920 as_fn_append ac_file_inputs " '$ac_f'" 20921 done 20922 20923 # Let's still pretend it is `configure' which instantiates (i.e., don't 20924 # use $as_me), people would be surprised to read: 20925 # /* config.h. Generated by config.status. */ 20926 configure_input='Generated from '` 20927 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20928 `' by configure.' 20929 if test x"$ac_file" != x-; then 20930 configure_input="$ac_file. $configure_input" 20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20932printf "%s\n" "$as_me: creating $ac_file" >&6;} 20933 fi 20934 # Neutralize special characters interpreted by sed in replacement strings. 20935 case $configure_input in #( 20936 *\&* | *\|* | *\\* ) 20937 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20938 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20939 *) ac_sed_conf_input=$configure_input;; 20940 esac 20941 20942 case $ac_tag in 20943 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20945 esac 20946 ;; 20947 esac 20948 20949 ac_dir=`$as_dirname -- "$ac_file" || 20950$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20951 X"$ac_file" : 'X\(//\)[^/]' \| \ 20952 X"$ac_file" : 'X\(//\)$' \| \ 20953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20954printf "%s\n" X"$ac_file" | 20955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20956 s//\1/ 20957 q 20958 } 20959 /^X\(\/\/\)[^/].*/{ 20960 s//\1/ 20961 q 20962 } 20963 /^X\(\/\/\)$/{ 20964 s//\1/ 20965 q 20966 } 20967 /^X\(\/\).*/{ 20968 s//\1/ 20969 q 20970 } 20971 s/.*/./; q'` 20972 as_dir="$ac_dir"; as_fn_mkdir_p 20973 ac_builddir=. 20974 20975case "$ac_dir" in 20976.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20977*) 20978 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20979 # A ".." for each directory in $ac_dir_suffix. 20980 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20981 case $ac_top_builddir_sub in 20982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20984 esac ;; 20985esac 20986ac_abs_top_builddir=$ac_pwd 20987ac_abs_builddir=$ac_pwd$ac_dir_suffix 20988# for backward compatibility: 20989ac_top_builddir=$ac_top_build_prefix 20990 20991case $srcdir in 20992 .) # We are building in place. 20993 ac_srcdir=. 20994 ac_top_srcdir=$ac_top_builddir_sub 20995 ac_abs_top_srcdir=$ac_pwd ;; 20996 [\\/]* | ?:[\\/]* ) # Absolute name. 20997 ac_srcdir=$srcdir$ac_dir_suffix; 20998 ac_top_srcdir=$srcdir 20999 ac_abs_top_srcdir=$srcdir ;; 21000 *) # Relative name. 21001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21002 ac_top_srcdir=$ac_top_build_prefix$srcdir 21003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21004esac 21005ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21006 21007 21008 case $ac_mode in 21009 :F) 21010 # 21011 # CONFIG_FILE 21012 # 21013 21014 case $INSTALL in 21015 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21016 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21017 esac 21018 ac_MKDIR_P=$MKDIR_P 21019 case $MKDIR_P in 21020 [\\/$]* | ?:[\\/]* ) ;; 21021 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21022 esac 21023_ACEOF 21024 21025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21026# If the template does not know about datarootdir, expand it. 21027# FIXME: This hack should be removed a few years after 2.60. 21028ac_datarootdir_hack=; ac_datarootdir_seen= 21029ac_sed_dataroot=' 21030/datarootdir/ { 21031 p 21032 q 21033} 21034/@datadir@/p 21035/@docdir@/p 21036/@infodir@/p 21037/@localedir@/p 21038/@mandir@/p' 21039case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21040*datarootdir*) ac_datarootdir_seen=yes;; 21041*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21043printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21044_ACEOF 21045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21046 ac_datarootdir_hack=' 21047 s&@datadir@&$datadir&g 21048 s&@docdir@&$docdir&g 21049 s&@infodir@&$infodir&g 21050 s&@localedir@&$localedir&g 21051 s&@mandir@&$mandir&g 21052 s&\\\${datarootdir}&$datarootdir&g' ;; 21053esac 21054_ACEOF 21055 21056# Neutralize VPATH when `$srcdir' = `.'. 21057# Shell code in configure.ac might set extrasub. 21058# FIXME: do we really want to maintain this feature? 21059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21060ac_sed_extra="$ac_vpsub 21061$extrasub 21062_ACEOF 21063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21064:t 21065/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21066s|@configure_input@|$ac_sed_conf_input|;t t 21067s&@top_builddir@&$ac_top_builddir_sub&;t t 21068s&@top_build_prefix@&$ac_top_build_prefix&;t t 21069s&@srcdir@&$ac_srcdir&;t t 21070s&@abs_srcdir@&$ac_abs_srcdir&;t t 21071s&@top_srcdir@&$ac_top_srcdir&;t t 21072s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21073s&@builddir@&$ac_builddir&;t t 21074s&@abs_builddir@&$ac_abs_builddir&;t t 21075s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21076s&@INSTALL@&$ac_INSTALL&;t t 21077s&@MKDIR_P@&$ac_MKDIR_P&;t t 21078$ac_datarootdir_hack 21079" 21080eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21081 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21082 21083test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21084 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21086 "$ac_tmp/out"`; test -z "$ac_out"; } && 21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21088which seems to be undefined. Please make sure it is defined" >&5 21089printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21090which seems to be undefined. Please make sure it is defined" >&2;} 21091 21092 rm -f "$ac_tmp/stdin" 21093 case $ac_file in 21094 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21095 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21096 esac \ 21097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21098 ;; 21099 :H) 21100 # 21101 # CONFIG_HEADER 21102 # 21103 if test x"$ac_file" != x-; then 21104 { 21105 printf "%s\n" "/* $configure_input */" >&1 \ 21106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21107 } >"$ac_tmp/config.h" \ 21108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21109 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21111printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21112 else 21113 rm -f "$ac_file" 21114 mv "$ac_tmp/config.h" "$ac_file" \ 21115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21116 fi 21117 else 21118 printf "%s\n" "/* $configure_input */" >&1 \ 21119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21120 || as_fn_error $? "could not create -" "$LINENO" 5 21121 fi 21122# Compute "$ac_file"'s index in $config_headers. 21123_am_arg="$ac_file" 21124_am_stamp_count=1 21125for _am_header in $config_headers :; do 21126 case $_am_header in 21127 $_am_arg | $_am_arg:* ) 21128 break ;; 21129 * ) 21130 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21131 esac 21132done 21133echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21134$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21135 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21136 X"$_am_arg" : 'X\(//\)$' \| \ 21137 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21138printf "%s\n" X"$_am_arg" | 21139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21140 s//\1/ 21141 q 21142 } 21143 /^X\(\/\/\)[^/].*/{ 21144 s//\1/ 21145 q 21146 } 21147 /^X\(\/\/\)$/{ 21148 s//\1/ 21149 q 21150 } 21151 /^X\(\/\).*/{ 21152 s//\1/ 21153 q 21154 } 21155 s/.*/./; q'`/stamp-h$_am_stamp_count 21156 ;; 21157 21158 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21159printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21160 ;; 21161 esac 21162 21163 21164 case $ac_file$ac_mode in 21165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21166 # Older Autoconf quotes --file arguments for eval, but not when files 21167 # are listed without --file. Let's play safe and only enable the eval 21168 # if we detect the quoting. 21169 # TODO: see whether this extra hack can be removed once we start 21170 # requiring Autoconf 2.70 or later. 21171 case $CONFIG_FILES in #( 21172 *\'*) : 21173 eval set x "$CONFIG_FILES" ;; #( 21174 *) : 21175 set x $CONFIG_FILES ;; #( 21176 *) : 21177 ;; 21178esac 21179 shift 21180 # Used to flag and report bootstrapping failures. 21181 am_rc=0 21182 for am_mf 21183 do 21184 # Strip MF so we end up with the name of the file. 21185 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21186 # Check whether this is an Automake generated Makefile which includes 21187 # dependency-tracking related rules and includes. 21188 # Grep'ing the whole file directly is not great: AIX grep has a line 21189 # limit of 2048, but all sed's we know have understand at least 4000. 21190 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21191 || continue 21192 am_dirpart=`$as_dirname -- "$am_mf" || 21193$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21194 X"$am_mf" : 'X\(//\)[^/]' \| \ 21195 X"$am_mf" : 'X\(//\)$' \| \ 21196 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21197printf "%s\n" X"$am_mf" | 21198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21199 s//\1/ 21200 q 21201 } 21202 /^X\(\/\/\)[^/].*/{ 21203 s//\1/ 21204 q 21205 } 21206 /^X\(\/\/\)$/{ 21207 s//\1/ 21208 q 21209 } 21210 /^X\(\/\).*/{ 21211 s//\1/ 21212 q 21213 } 21214 s/.*/./; q'` 21215 am_filepart=`$as_basename -- "$am_mf" || 21216$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21217 X"$am_mf" : 'X\(//\)$' \| \ 21218 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21219printf "%s\n" X/"$am_mf" | 21220 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21221 s//\1/ 21222 q 21223 } 21224 /^X\/\(\/\/\)$/{ 21225 s//\1/ 21226 q 21227 } 21228 /^X\/\(\/\).*/{ 21229 s//\1/ 21230 q 21231 } 21232 s/.*/./; q'` 21233 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21234 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21235 | $MAKE -f - am--depfiles" >&5 21236 (cd "$am_dirpart" \ 21237 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21238 | $MAKE -f - am--depfiles) >&5 2>&5 21239 ac_status=$? 21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21241 (exit $ac_status); } || am_rc=$? 21242 done 21243 if test $am_rc -ne 0; then 21244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21245printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21246as_fn_error $? "Something went wrong bootstrapping makefile fragments 21247 for automatic dependency tracking. If GNU make was not used, consider 21248 re-running the configure script with MAKE=\"gmake\" (or whatever is 21249 necessary). You can also try re-running configure with the 21250 '--disable-dependency-tracking' option to at least be able to build 21251 the package (albeit without support for automatic dependency tracking). 21252See \`config.log' for more details" "$LINENO" 5; } 21253 fi 21254 { am_dirpart=; unset am_dirpart;} 21255 { am_filepart=; unset am_filepart;} 21256 { am_mf=; unset am_mf;} 21257 { am_rc=; unset am_rc;} 21258 rm -f conftest-deps.mk 21259} 21260 ;; 21261 "libtool":C) 21262 21263 # See if we are running on zsh, and set the options that allow our 21264 # commands through without removal of \ escapes. 21265 if test -n "${ZSH_VERSION+set}"; then 21266 setopt NO_GLOB_SUBST 21267 fi 21268 21269 cfgfile=${ofile}T 21270 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21271 $RM "$cfgfile" 21272 21273 cat <<_LT_EOF >> "$cfgfile" 21274#! $SHELL 21275# Generated automatically by $as_me ($PACKAGE) $VERSION 21276# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21277 21278# Provide generalized library-building support services. 21279# Written by Gordon Matzigkeit, 1996 21280 21281# Copyright (C) 2014 Free Software Foundation, Inc. 21282# This is free software; see the source for copying conditions. There is NO 21283# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21284 21285# GNU Libtool is free software; you can redistribute it and/or modify 21286# it under the terms of the GNU General Public License as published by 21287# the Free Software Foundation; either version 2 of of the License, or 21288# (at your option) any later version. 21289# 21290# As a special exception to the GNU General Public License, if you 21291# distribute this file as part of a program or library that is built 21292# using GNU Libtool, you may include this file under the same 21293# distribution terms that you use for the rest of that program. 21294# 21295# GNU Libtool is distributed in the hope that it will be useful, but 21296# WITHOUT ANY WARRANTY; without even the implied warranty of 21297# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21298# GNU General Public License for more details. 21299# 21300# You should have received a copy of the GNU General Public License 21301# along with this program. If not, see <http://www.gnu.org/licenses/>. 21302 21303 21304# The names of the tagged configurations supported by this script. 21305available_tags='' 21306 21307# Configured defaults for sys_lib_dlsearch_path munging. 21308: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21309 21310# ### BEGIN LIBTOOL CONFIG 21311 21312# Which release of libtool.m4 was used? 21313macro_version=$macro_version 21314macro_revision=$macro_revision 21315 21316# Whether or not to build shared libraries. 21317build_libtool_libs=$enable_shared 21318 21319# Whether or not to build static libraries. 21320build_old_libs=$enable_static 21321 21322# What type of objects to build. 21323pic_mode=$pic_mode 21324 21325# Whether or not to optimize for fast installation. 21326fast_install=$enable_fast_install 21327 21328# Shared archive member basename,for filename based shared library versioning on AIX. 21329shared_archive_member_spec=$shared_archive_member_spec 21330 21331# Shell to use when invoking shell scripts. 21332SHELL=$lt_SHELL 21333 21334# An echo program that protects backslashes. 21335ECHO=$lt_ECHO 21336 21337# The PATH separator for the build system. 21338PATH_SEPARATOR=$lt_PATH_SEPARATOR 21339 21340# The host system. 21341host_alias=$host_alias 21342host=$host 21343host_os=$host_os 21344 21345# The build system. 21346build_alias=$build_alias 21347build=$build 21348build_os=$build_os 21349 21350# A sed program that does not truncate output. 21351SED=$lt_SED 21352 21353# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21354Xsed="\$SED -e 1s/^X//" 21355 21356# A grep program that handles long lines. 21357GREP=$lt_GREP 21358 21359# An ERE matcher. 21360EGREP=$lt_EGREP 21361 21362# A literal string matcher. 21363FGREP=$lt_FGREP 21364 21365# A BSD- or MS-compatible name lister. 21366NM=$lt_NM 21367 21368# Whether we need soft or hard links. 21369LN_S=$lt_LN_S 21370 21371# What is the maximum length of a command? 21372max_cmd_len=$max_cmd_len 21373 21374# Object file suffix (normally "o"). 21375objext=$ac_objext 21376 21377# Executable file suffix (normally ""). 21378exeext=$exeext 21379 21380# whether the shell understands "unset". 21381lt_unset=$lt_unset 21382 21383# turn spaces into newlines. 21384SP2NL=$lt_lt_SP2NL 21385 21386# turn newlines into spaces. 21387NL2SP=$lt_lt_NL2SP 21388 21389# convert \$build file names to \$host format. 21390to_host_file_cmd=$lt_cv_to_host_file_cmd 21391 21392# convert \$build files to toolchain format. 21393to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21394 21395# A file(cmd) program that detects file types. 21396FILECMD=$lt_FILECMD 21397 21398# An object symbol dumper. 21399OBJDUMP=$lt_OBJDUMP 21400 21401# Method to check whether dependent libraries are shared objects. 21402deplibs_check_method=$lt_deplibs_check_method 21403 21404# Command to use when deplibs_check_method = "file_magic". 21405file_magic_cmd=$lt_file_magic_cmd 21406 21407# How to find potential files when deplibs_check_method = "file_magic". 21408file_magic_glob=$lt_file_magic_glob 21409 21410# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21411want_nocaseglob=$lt_want_nocaseglob 21412 21413# DLL creation program. 21414DLLTOOL=$lt_DLLTOOL 21415 21416# Command to associate shared and link libraries. 21417sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21418 21419# The archiver. 21420AR=$lt_AR 21421 21422# Flags to create an archive (by configure). 21423lt_ar_flags=$lt_ar_flags 21424 21425# Flags to create an archive. 21426AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21427 21428# How to feed a file listing to the archiver. 21429archiver_list_spec=$lt_archiver_list_spec 21430 21431# A symbol stripping program. 21432STRIP=$lt_STRIP 21433 21434# Commands used to install an old-style archive. 21435RANLIB=$lt_RANLIB 21436old_postinstall_cmds=$lt_old_postinstall_cmds 21437old_postuninstall_cmds=$lt_old_postuninstall_cmds 21438 21439# Whether to use a lock for old archive extraction. 21440lock_old_archive_extraction=$lock_old_archive_extraction 21441 21442# A C compiler. 21443LTCC=$lt_CC 21444 21445# LTCC compiler flags. 21446LTCFLAGS=$lt_CFLAGS 21447 21448# Take the output of nm and produce a listing of raw symbols and C names. 21449global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21450 21451# Transform the output of nm in a proper C declaration. 21452global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21453 21454# Transform the output of nm into a list of symbols to manually relocate. 21455global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21456 21457# Transform the output of nm in a C name address pair. 21458global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21459 21460# Transform the output of nm in a C name address pair when lib prefix is needed. 21461global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21462 21463# The name lister interface. 21464nm_interface=$lt_lt_cv_nm_interface 21465 21466# Specify filename containing input files for \$NM. 21467nm_file_list_spec=$lt_nm_file_list_spec 21468 21469# The root where to search for dependent libraries,and where our libraries should be installed. 21470lt_sysroot=$lt_sysroot 21471 21472# Command to truncate a binary pipe. 21473lt_truncate_bin=$lt_lt_cv_truncate_bin 21474 21475# The name of the directory that contains temporary libtool files. 21476objdir=$objdir 21477 21478# Used to examine libraries when file_magic_cmd begins with "file". 21479MAGIC_CMD=$MAGIC_CMD 21480 21481# Must we lock files when doing compilation? 21482need_locks=$lt_need_locks 21483 21484# Manifest tool. 21485MANIFEST_TOOL=$lt_MANIFEST_TOOL 21486 21487# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21488DSYMUTIL=$lt_DSYMUTIL 21489 21490# Tool to change global to local symbols on Mac OS X. 21491NMEDIT=$lt_NMEDIT 21492 21493# Tool to manipulate fat objects and archives on Mac OS X. 21494LIPO=$lt_LIPO 21495 21496# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21497OTOOL=$lt_OTOOL 21498 21499# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21500OTOOL64=$lt_OTOOL64 21501 21502# Old archive suffix (normally "a"). 21503libext=$libext 21504 21505# Shared library suffix (normally ".so"). 21506shrext_cmds=$lt_shrext_cmds 21507 21508# The commands to extract the exported symbol list from a shared archive. 21509extract_expsyms_cmds=$lt_extract_expsyms_cmds 21510 21511# Variables whose values should be saved in libtool wrapper scripts and 21512# restored at link time. 21513variables_saved_for_relink=$lt_variables_saved_for_relink 21514 21515# Do we need the "lib" prefix for modules? 21516need_lib_prefix=$need_lib_prefix 21517 21518# Do we need a version for libraries? 21519need_version=$need_version 21520 21521# Library versioning type. 21522version_type=$version_type 21523 21524# Shared library runtime path variable. 21525runpath_var=$runpath_var 21526 21527# Shared library path variable. 21528shlibpath_var=$shlibpath_var 21529 21530# Is shlibpath searched before the hard-coded library search path? 21531shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21532 21533# Format of library name prefix. 21534libname_spec=$lt_libname_spec 21535 21536# List of archive names. First name is the real one, the rest are links. 21537# The last name is the one that the linker finds with -lNAME 21538library_names_spec=$lt_library_names_spec 21539 21540# The coded name of the library, if different from the real name. 21541soname_spec=$lt_soname_spec 21542 21543# Permission mode override for installation of shared libraries. 21544install_override_mode=$lt_install_override_mode 21545 21546# Command to use after installation of a shared archive. 21547postinstall_cmds=$lt_postinstall_cmds 21548 21549# Command to use after uninstallation of a shared archive. 21550postuninstall_cmds=$lt_postuninstall_cmds 21551 21552# Commands used to finish a libtool library installation in a directory. 21553finish_cmds=$lt_finish_cmds 21554 21555# As "finish_cmds", except a single script fragment to be evaled but 21556# not shown. 21557finish_eval=$lt_finish_eval 21558 21559# Whether we should hardcode library paths into libraries. 21560hardcode_into_libs=$hardcode_into_libs 21561 21562# Compile-time system search path for libraries. 21563sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21564 21565# Detected run-time system search path for libraries. 21566sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21567 21568# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21569configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21570 21571# Whether dlopen is supported. 21572dlopen_support=$enable_dlopen 21573 21574# Whether dlopen of programs is supported. 21575dlopen_self=$enable_dlopen_self 21576 21577# Whether dlopen of statically linked programs is supported. 21578dlopen_self_static=$enable_dlopen_self_static 21579 21580# Commands to strip libraries. 21581old_striplib=$lt_old_striplib 21582striplib=$lt_striplib 21583 21584 21585# The linker used to build libraries. 21586LD=$lt_LD 21587 21588# How to create reloadable object files. 21589reload_flag=$lt_reload_flag 21590reload_cmds=$lt_reload_cmds 21591 21592# Commands used to build an old-style archive. 21593old_archive_cmds=$lt_old_archive_cmds 21594 21595# A language specific compiler. 21596CC=$lt_compiler 21597 21598# Is the compiler the GNU compiler? 21599with_gcc=$GCC 21600 21601# Compiler flag to turn off builtin functions. 21602no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21603 21604# Additional compiler flags for building library objects. 21605pic_flag=$lt_lt_prog_compiler_pic 21606 21607# How to pass a linker flag through the compiler. 21608wl=$lt_lt_prog_compiler_wl 21609 21610# Compiler flag to prevent dynamic linking. 21611link_static_flag=$lt_lt_prog_compiler_static 21612 21613# Does compiler simultaneously support -c and -o options? 21614compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21615 21616# Whether or not to add -lc for building shared libraries. 21617build_libtool_need_lc=$archive_cmds_need_lc 21618 21619# Whether or not to disallow shared libs when runtime libs are static. 21620allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21621 21622# Compiler flag to allow reflexive dlopens. 21623export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21624 21625# Compiler flag to generate shared objects directly from archives. 21626whole_archive_flag_spec=$lt_whole_archive_flag_spec 21627 21628# Whether the compiler copes with passing no objects directly. 21629compiler_needs_object=$lt_compiler_needs_object 21630 21631# Create an old-style archive from a shared archive. 21632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21633 21634# Create a temporary old-style archive to link instead of a shared archive. 21635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21636 21637# Commands used to build a shared archive. 21638archive_cmds=$lt_archive_cmds 21639archive_expsym_cmds=$lt_archive_expsym_cmds 21640 21641# Commands used to build a loadable module if different from building 21642# a shared archive. 21643module_cmds=$lt_module_cmds 21644module_expsym_cmds=$lt_module_expsym_cmds 21645 21646# Whether we are building with GNU ld or not. 21647with_gnu_ld=$lt_with_gnu_ld 21648 21649# Flag that allows shared libraries with undefined symbols to be built. 21650allow_undefined_flag=$lt_allow_undefined_flag 21651 21652# Flag that enforces no undefined symbols. 21653no_undefined_flag=$lt_no_undefined_flag 21654 21655# Flag to hardcode \$libdir into a binary during linking. 21656# This must work even if \$libdir does not exist 21657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21658 21659# Whether we need a single "-rpath" flag with a separated argument. 21660hardcode_libdir_separator=$lt_hardcode_libdir_separator 21661 21662# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21663# DIR into the resulting binary. 21664hardcode_direct=$hardcode_direct 21665 21666# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21667# DIR into the resulting binary and the resulting library dependency is 21668# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21669# library is relocated. 21670hardcode_direct_absolute=$hardcode_direct_absolute 21671 21672# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21673# into the resulting binary. 21674hardcode_minus_L=$hardcode_minus_L 21675 21676# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21677# into the resulting binary. 21678hardcode_shlibpath_var=$hardcode_shlibpath_var 21679 21680# Set to "yes" if building a shared library automatically hardcodes DIR 21681# into the library and all subsequent libraries and executables linked 21682# against it. 21683hardcode_automatic=$hardcode_automatic 21684 21685# Set to yes if linker adds runtime paths of dependent libraries 21686# to runtime path list. 21687inherit_rpath=$inherit_rpath 21688 21689# Whether libtool must link a program against all its dependency libraries. 21690link_all_deplibs=$link_all_deplibs 21691 21692# Set to "yes" if exported symbols are required. 21693always_export_symbols=$always_export_symbols 21694 21695# The commands to list exported symbols. 21696export_symbols_cmds=$lt_export_symbols_cmds 21697 21698# Symbols that should not be listed in the preloaded symbols. 21699exclude_expsyms=$lt_exclude_expsyms 21700 21701# Symbols that must always be exported. 21702include_expsyms=$lt_include_expsyms 21703 21704# Commands necessary for linking programs (against libraries) with templates. 21705prelink_cmds=$lt_prelink_cmds 21706 21707# Commands necessary for finishing linking programs. 21708postlink_cmds=$lt_postlink_cmds 21709 21710# Specify filename containing input files. 21711file_list_spec=$lt_file_list_spec 21712 21713# How to hardcode a shared library path into an executable. 21714hardcode_action=$hardcode_action 21715 21716# ### END LIBTOOL CONFIG 21717 21718_LT_EOF 21719 21720 cat <<'_LT_EOF' >> "$cfgfile" 21721 21722# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21723 21724# func_munge_path_list VARIABLE PATH 21725# ----------------------------------- 21726# VARIABLE is name of variable containing _space_ separated list of 21727# directories to be munged by the contents of PATH, which is string 21728# having a format: 21729# "DIR[:DIR]:" 21730# string "DIR[ DIR]" will be prepended to VARIABLE 21731# ":DIR[:DIR]" 21732# string "DIR[ DIR]" will be appended to VARIABLE 21733# "DIRP[:DIRP]::[DIRA:]DIRA" 21734# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21735# "DIRA[ DIRA]" will be appended to VARIABLE 21736# "DIR[:DIR]" 21737# VARIABLE will be replaced by "DIR[ DIR]" 21738func_munge_path_list () 21739{ 21740 case x$2 in 21741 x) 21742 ;; 21743 *:) 21744 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21745 ;; 21746 x:*) 21747 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21748 ;; 21749 *::*) 21750 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21751 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21752 ;; 21753 *) 21754 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21755 ;; 21756 esac 21757} 21758 21759 21760# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21761func_cc_basename () 21762{ 21763 for cc_temp in $*""; do 21764 case $cc_temp in 21765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21767 \-*) ;; 21768 *) break;; 21769 esac 21770 done 21771 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21772} 21773 21774 21775# ### END FUNCTIONS SHARED WITH CONFIGURE 21776 21777_LT_EOF 21778 21779 case $host_os in 21780 aix3*) 21781 cat <<\_LT_EOF >> "$cfgfile" 21782# AIX sometimes has problems with the GCC collect2 program. For some 21783# reason, if we set the COLLECT_NAMES environment variable, the problems 21784# vanish in a puff of smoke. 21785if test set != "${COLLECT_NAMES+set}"; then 21786 COLLECT_NAMES= 21787 export COLLECT_NAMES 21788fi 21789_LT_EOF 21790 ;; 21791 esac 21792 21793 21794 21795ltmain=$ac_aux_dir/ltmain.sh 21796 21797 21798 # We use sed instead of cat because bash on DJGPP gets confused if 21799 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21800 # text mode, it properly converts lines to CR/LF. This bash problem 21801 # is reportedly fixed, but why not run on old versions too? 21802 $SED '$q' "$ltmain" >> "$cfgfile" \ 21803 || (rm -f "$cfgfile"; exit 1) 21804 21805 mv -f "$cfgfile" "$ofile" || 21806 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21807 chmod +x "$ofile" 21808 21809 ;; 21810 21811 esac 21812done # for ac_tag 21813 21814 21815as_fn_exit 0 21816_ACEOF 21817ac_clean_files=$ac_clean_files_save 21818 21819test $ac_write_fail = 0 || 21820 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21821 21822 21823# configure is writing to config.log, and then calls config.status. 21824# config.status does its own redirection, appending to config.log. 21825# Unfortunately, on DOS this fails, as config.log is still kept open 21826# by configure, so config.status won't be able to write to it; its 21827# output is simply discarded. So we exec the FD to /dev/null, 21828# effectively closing config.log, so it can be properly (re)opened and 21829# appended to by config.status. When coming back to configure, we 21830# need to make the FD available again. 21831if test "$no_create" != yes; then 21832 ac_cs_success=: 21833 ac_config_status_args= 21834 test "$silent" = yes && 21835 ac_config_status_args="$ac_config_status_args --quiet" 21836 exec 5>/dev/null 21837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21838 exec 5>>config.log 21839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21840 # would make configure fail if this is the last instruction. 21841 $ac_cs_success || as_fn_exit 1 21842fi 21843if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21845printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21846fi 21847 21848 21849