configure revision 48becaf0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libpciaccess 0.17. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/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/libpciaccess/-/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='libpciaccess' 624PACKAGE_TARNAME='libpciaccess' 625PACKAGE_VERSION='0.17' 626PACKAGE_STRING='libpciaccess 0.17' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/issues' 628PACKAGE_URL='' 629 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662ac_subst_vars='am__EXEEXT_FALSE 663am__EXEEXT_TRUE 664LTLIBOBJS 665LIBOBJS 666PCIACCESS_LIBS 667PCIACCESS_CFLAGS 668CYGWIN_FALSE 669CYGWIN_TRUE 670GNU_FALSE 671GNU_TRUE 672SOLARIS_FALSE 673SOLARIS_TRUE 674OPENBSD_FALSE 675OPENBSD_TRUE 676NETBSD_FALSE 677NETBSD_TRUE 678FREEBSD_FALSE 679FREEBSD_TRUE 680LINUX_FALSE 681LINUX_TRUE 682ZLIB_LIBS 683ZLIB_CFLAGS 684PCIIDS_PATH 685MAN_SUBSTS 686XORG_MAN_PAGE 687ADMIN_MAN_DIR 688DRIVER_MAN_DIR 689MISC_MAN_DIR 690FILE_MAN_DIR 691LIB_MAN_DIR 692APP_MAN_DIR 693ADMIN_MAN_SUFFIX 694DRIVER_MAN_SUFFIX 695MISC_MAN_SUFFIX 696FILE_MAN_SUFFIX 697LIB_MAN_SUFFIX 698APP_MAN_SUFFIX 699INSTALL_CMD 700PKG_CONFIG_LIBDIR 701PKG_CONFIG_PATH 702PKG_CONFIG 703CHANGELOG_CMD 704STRICT_CFLAGS 705CWARNFLAGS 706BASE_CFLAGS 707LT_SYS_LIBRARY_PATH 708OTOOL64 709OTOOL 710LIPO 711NMEDIT 712DSYMUTIL 713MANIFEST_TOOL 714RANLIB 715ac_ct_AR 716AR 717DLLTOOL 718OBJDUMP 719FILECMD 720LN_S 721NM 722ac_ct_DUMPBIN 723DUMPBIN 724LD 725FGREP 726EGREP 727GREP 728SED 729host_os 730host_vendor 731host_cpu 732host 733build_os 734build_vendor 735build_cpu 736build 737LIBTOOL 738am__fastdepCC_FALSE 739am__fastdepCC_TRUE 740CCDEPMODE 741am__nodep 742AMDEPBACKSLASH 743AMDEP_FALSE 744AMDEP_TRUE 745am__include 746DEPDIR 747OBJEXT 748EXEEXT 749ac_ct_CC 750CPPFLAGS 751LDFLAGS 752CFLAGS 753CC 754AM_BACKSLASH 755AM_DEFAULT_VERBOSITY 756AM_DEFAULT_V 757AM_V 758CSCOPE 759ETAGS 760CTAGS 761am__untar 762am__tar 763AMTAR 764am__leading_dot 765SET_MAKE 766AWK 767mkdir_p 768MKDIR_P 769INSTALL_STRIP_PROGRAM 770STRIP 771install_sh 772MAKEINFO 773AUTOHEADER 774AUTOMAKE 775AUTOCONF 776ACLOCAL 777VERSION 778PACKAGE 779CYGPATH_W 780am__isrc 781INSTALL_DATA 782INSTALL_SCRIPT 783INSTALL_PROGRAM 784target_alias 785host_alias 786build_alias 787LIBS 788ECHO_T 789ECHO_N 790ECHO_C 791DEFS 792mandir 793localedir 794libdir 795psdir 796pdfdir 797dvidir 798htmldir 799infodir 800docdir 801oldincludedir 802includedir 803runstatedir 804localstatedir 805sharedstatedir 806sysconfdir 807datadir 808datarootdir 809libexecdir 810sbindir 811bindir 812program_transform_name 813prefix 814exec_prefix 815PACKAGE_URL 816PACKAGE_BUGREPORT 817PACKAGE_STRING 818PACKAGE_VERSION 819PACKAGE_TARNAME 820PACKAGE_NAME 821PATH_SEPARATOR 822SHELL 823am__quote' 824ac_subst_files='' 825ac_user_opts=' 826enable_option_checking 827enable_silent_rules 828enable_dependency_tracking 829enable_shared 830enable_static 831with_pic 832enable_fast_install 833with_aix_soname 834with_gnu_ld 835with_sysroot 836enable_libtool_lock 837enable_selective_werror 838enable_strict_compilation 839with_pciids_path 840enable_linux_rom_fallback 841with_zlib 842enable_largefile 843' 844 ac_precious_vars='build_alias 845host_alias 846target_alias 847CC 848CFLAGS 849LDFLAGS 850LIBS 851CPPFLAGS 852LT_SYS_LIBRARY_PATH 853PKG_CONFIG 854PKG_CONFIG_PATH 855PKG_CONFIG_LIBDIR 856ZLIB_CFLAGS 857ZLIB_LIBS' 858 859 860# Initialize some variables set by options. 861ac_init_help= 862ac_init_version=false 863ac_unrecognized_opts= 864ac_unrecognized_sep= 865# The variables have the same names as the options, with 866# dashes changed to underlines. 867cache_file=/dev/null 868exec_prefix=NONE 869no_create= 870no_recursion= 871prefix=NONE 872program_prefix=NONE 873program_suffix=NONE 874program_transform_name=s,x,x, 875silent= 876site= 877srcdir= 878verbose= 879x_includes=NONE 880x_libraries=NONE 881 882# Installation directory options. 883# These are left unexpanded so users can "make install exec_prefix=/foo" 884# and all the variables that are supposed to be based on exec_prefix 885# by default will actually change. 886# Use braces instead of parens because sh, perl, etc. also accept them. 887# (The list follows the same order as the GNU Coding Standards.) 888bindir='${exec_prefix}/bin' 889sbindir='${exec_prefix}/sbin' 890libexecdir='${exec_prefix}/libexec' 891datarootdir='${prefix}/share' 892datadir='${datarootdir}' 893sysconfdir='${prefix}/etc' 894sharedstatedir='${prefix}/com' 895localstatedir='${prefix}/var' 896runstatedir='${localstatedir}/run' 897includedir='${prefix}/include' 898oldincludedir='/usr/include' 899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 900infodir='${datarootdir}/info' 901htmldir='${docdir}' 902dvidir='${docdir}' 903pdfdir='${docdir}' 904psdir='${docdir}' 905libdir='${exec_prefix}/lib' 906localedir='${datarootdir}/locale' 907mandir='${datarootdir}/man' 908 909ac_prev= 910ac_dashdash= 911for ac_option 912do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 case $ac_dashdash$ac_option in 927 --) 928 ac_dashdash=yes ;; 929 930 -bindir | --bindir | --bindi | --bind | --bin | --bi) 931 ac_prev=bindir ;; 932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 933 bindir=$ac_optarg ;; 934 935 -build | --build | --buil | --bui | --bu) 936 ac_prev=build_alias ;; 937 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 938 build_alias=$ac_optarg ;; 939 940 -cache-file | --cache-file | --cache-fil | --cache-fi \ 941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 942 ac_prev=cache_file ;; 943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 945 cache_file=$ac_optarg ;; 946 947 --config-cache | -C) 948 cache_file=config.cache ;; 949 950 -datadir | --datadir | --datadi | --datad) 951 ac_prev=datadir ;; 952 -datadir=* | --datadir=* | --datadi=* | --datad=*) 953 datadir=$ac_optarg ;; 954 955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 956 | --dataroo | --dataro | --datar) 957 ac_prev=datarootdir ;; 958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 960 datarootdir=$ac_optarg ;; 961 962 -disable-* | --disable-*) 963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 964 # Reject names that are not valid shell variable names. 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 966 as_fn_error $? "invalid feature name: \`$ac_useropt'" 967 ac_useropt_orig=$ac_useropt 968 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 969 case $ac_user_opts in 970 *" 971"enable_$ac_useropt" 972"*) ;; 973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 974 ac_unrecognized_sep=', ';; 975 esac 976 eval enable_$ac_useropt=no ;; 977 978 -docdir | --docdir | --docdi | --doc | --do) 979 ac_prev=docdir ;; 980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 981 docdir=$ac_optarg ;; 982 983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 984 ac_prev=dvidir ;; 985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 986 dvidir=$ac_optarg ;; 987 988 -enable-* | --enable-*) 989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 990 # Reject names that are not valid shell variable names. 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 992 as_fn_error $? "invalid feature name: \`$ac_useropt'" 993 ac_useropt_orig=$ac_useropt 994 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 995 case $ac_user_opts in 996 *" 997"enable_$ac_useropt" 998"*) ;; 999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1000 ac_unrecognized_sep=', ';; 1001 esac 1002 eval enable_$ac_useropt=\$ac_optarg ;; 1003 1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1006 | --exec | --exe | --ex) 1007 ac_prev=exec_prefix ;; 1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1010 | --exec=* | --exe=* | --ex=*) 1011 exec_prefix=$ac_optarg ;; 1012 1013 -gas | --gas | --ga | --g) 1014 # Obsolete; use --with-gas. 1015 with_gas=yes ;; 1016 1017 -help | --help | --hel | --he | -h) 1018 ac_init_help=long ;; 1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1020 ac_init_help=recursive ;; 1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1022 ac_init_help=short ;; 1023 1024 -host | --host | --hos | --ho) 1025 ac_prev=host_alias ;; 1026 -host=* | --host=* | --hos=* | --ho=*) 1027 host_alias=$ac_optarg ;; 1028 1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1030 ac_prev=htmldir ;; 1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1032 | --ht=*) 1033 htmldir=$ac_optarg ;; 1034 1035 -includedir | --includedir | --includedi | --included | --include \ 1036 | --includ | --inclu | --incl | --inc) 1037 ac_prev=includedir ;; 1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1039 | --includ=* | --inclu=* | --incl=* | --inc=*) 1040 includedir=$ac_optarg ;; 1041 1042 -infodir | --infodir | --infodi | --infod | --info | --inf) 1043 ac_prev=infodir ;; 1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1045 infodir=$ac_optarg ;; 1046 1047 -libdir | --libdir | --libdi | --libd) 1048 ac_prev=libdir ;; 1049 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1050 libdir=$ac_optarg ;; 1051 1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1053 | --libexe | --libex | --libe) 1054 ac_prev=libexecdir ;; 1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1056 | --libexe=* | --libex=* | --libe=*) 1057 libexecdir=$ac_optarg ;; 1058 1059 -localedir | --localedir | --localedi | --localed | --locale) 1060 ac_prev=localedir ;; 1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1062 localedir=$ac_optarg ;; 1063 1064 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1065 | --localstate | --localstat | --localsta | --localst | --locals) 1066 ac_prev=localstatedir ;; 1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1069 localstatedir=$ac_optarg ;; 1070 1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1072 ac_prev=mandir ;; 1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1074 mandir=$ac_optarg ;; 1075 1076 -nfp | --nfp | --nf) 1077 # Obsolete; use --without-fp. 1078 with_fp=no ;; 1079 1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1081 | --no-cr | --no-c | -n) 1082 no_create=yes ;; 1083 1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1086 no_recursion=yes ;; 1087 1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1090 | --oldin | --oldi | --old | --ol | --o) 1091 ac_prev=oldincludedir ;; 1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1095 oldincludedir=$ac_optarg ;; 1096 1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1098 ac_prev=prefix ;; 1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1100 prefix=$ac_optarg ;; 1101 1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1103 | --program-pre | --program-pr | --program-p) 1104 ac_prev=program_prefix ;; 1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1107 program_prefix=$ac_optarg ;; 1108 1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1110 | --program-suf | --program-su | --program-s) 1111 ac_prev=program_suffix ;; 1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1114 program_suffix=$ac_optarg ;; 1115 1116 -program-transform-name | --program-transform-name \ 1117 | --program-transform-nam | --program-transform-na \ 1118 | --program-transform-n | --program-transform- \ 1119 | --program-transform | --program-transfor \ 1120 | --program-transfo | --program-transf \ 1121 | --program-trans | --program-tran \ 1122 | --progr-tra | --program-tr | --program-t) 1123 ac_prev=program_transform_name ;; 1124 -program-transform-name=* | --program-transform-name=* \ 1125 | --program-transform-nam=* | --program-transform-na=* \ 1126 | --program-transform-n=* | --program-transform-=* \ 1127 | --program-transform=* | --program-transfor=* \ 1128 | --program-transfo=* | --program-transf=* \ 1129 | --program-trans=* | --program-tran=* \ 1130 | --progr-tra=* | --program-tr=* | --program-t=*) 1131 program_transform_name=$ac_optarg ;; 1132 1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1134 ac_prev=pdfdir ;; 1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1136 pdfdir=$ac_optarg ;; 1137 1138 -psdir | --psdir | --psdi | --psd | --ps) 1139 ac_prev=psdir ;; 1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1141 psdir=$ac_optarg ;; 1142 1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1144 | -silent | --silent | --silen | --sile | --sil) 1145 silent=yes ;; 1146 1147 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1148 | --runstate | --runstat | --runsta | --runst | --runs \ 1149 | --run | --ru | --r) 1150 ac_prev=runstatedir ;; 1151 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1152 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1153 | --run=* | --ru=* | --r=*) 1154 runstatedir=$ac_optarg ;; 1155 1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1157 ac_prev=sbindir ;; 1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1159 | --sbi=* | --sb=*) 1160 sbindir=$ac_optarg ;; 1161 1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1164 | --sharedst | --shareds | --shared | --share | --shar \ 1165 | --sha | --sh) 1166 ac_prev=sharedstatedir ;; 1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1170 | --sha=* | --sh=*) 1171 sharedstatedir=$ac_optarg ;; 1172 1173 -site | --site | --sit) 1174 ac_prev=site ;; 1175 -site=* | --site=* | --sit=*) 1176 site=$ac_optarg ;; 1177 1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1179 ac_prev=srcdir ;; 1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1181 srcdir=$ac_optarg ;; 1182 1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1184 | --syscon | --sysco | --sysc | --sys | --sy) 1185 ac_prev=sysconfdir ;; 1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1188 sysconfdir=$ac_optarg ;; 1189 1190 -target | --target | --targe | --targ | --tar | --ta | --t) 1191 ac_prev=target_alias ;; 1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1193 target_alias=$ac_optarg ;; 1194 1195 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1196 verbose=yes ;; 1197 1198 -version | --version | --versio | --versi | --vers | -V) 1199 ac_init_version=: ;; 1200 1201 -with-* | --with-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: \`$ac_useropt'" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210"with_$ac_useropt" 1211"*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=\$ac_optarg ;; 1216 1217 -without-* | --without-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: \`$ac_useropt'" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226"with_$ac_useropt" 1227"*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=no ;; 1232 1233 --x) 1234 # Obsolete; use --with-x. 1235 with_x=yes ;; 1236 1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1238 | --x-incl | --x-inc | --x-in | --x-i) 1239 ac_prev=x_includes ;; 1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1242 x_includes=$ac_optarg ;; 1243 1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1246 ac_prev=x_libraries ;; 1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1249 x_libraries=$ac_optarg ;; 1250 1251 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1252Try \`$0 --help' for more information" 1253 ;; 1254 1255 *=*) 1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1257 # Reject names that are not valid shell variable names. 1258 case $ac_envvar in #( 1259 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1260 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1261 esac 1262 eval $ac_envvar=\$ac_optarg 1263 export $ac_envvar ;; 1264 1265 *) 1266 # FIXME: should be removed in autoconf 3.0. 1267 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1269 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1270 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1271 ;; 1272 1273 esac 1274done 1275 1276if test -n "$ac_prev"; then 1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1278 as_fn_error $? "missing argument to $ac_option" 1279fi 1280 1281if test -n "$ac_unrecognized_opts"; then 1282 case $enable_option_checking in 1283 no) ;; 1284 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1285 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1286 esac 1287fi 1288 1289# Check all directory arguments for consistency. 1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1291 datadir sysconfdir sharedstatedir localstatedir includedir \ 1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1293 libdir localedir mandir runstatedir 1294do 1295 eval ac_val=\$$ac_var 1296 # Remove trailing slashes. 1297 case $ac_val in 1298 */ ) 1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1300 eval $ac_var=\$ac_val;; 1301 esac 1302 # Be sure to have absolute directory names. 1303 case $ac_val in 1304 [\\/$]* | ?:[\\/]* ) continue;; 1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1306 esac 1307 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1308done 1309 1310# There might be people who depend on the old broken behavior: `$host' 1311# used to hold the argument of --host etc. 1312# FIXME: To remove some day. 1313build=$build_alias 1314host=$host_alias 1315target=$target_alias 1316 1317# FIXME: To remove some day. 1318if test "x$host_alias" != x; then 1319 if test "x$build_alias" = x; then 1320 cross_compiling=maybe 1321 elif test "x$build_alias" != "x$host_alias"; then 1322 cross_compiling=yes 1323 fi 1324fi 1325 1326ac_tool_prefix= 1327test -n "$host_alias" && ac_tool_prefix=$host_alias- 1328 1329test "$silent" = yes && exec 6>/dev/null 1330 1331 1332ac_pwd=`pwd` && test -n "$ac_pwd" && 1333ac_ls_di=`ls -di .` && 1334ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1335 as_fn_error $? "working directory cannot be determined" 1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1337 as_fn_error $? "pwd does not report name of working directory" 1338 1339 1340# Find the source files, if location was not specified. 1341if test -z "$srcdir"; then 1342 ac_srcdir_defaulted=yes 1343 # Try the directory containing this script, then the parent directory. 1344 ac_confdir=`$as_dirname -- "$as_myself" || 1345$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1346 X"$as_myself" : 'X\(//\)[^/]' \| \ 1347 X"$as_myself" : 'X\(//\)$' \| \ 1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1349printf "%s\n" X"$as_myself" | 1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)[^/].*/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\).*/{ 1363 s//\1/ 1364 q 1365 } 1366 s/.*/./; q'` 1367 srcdir=$ac_confdir 1368 if test ! -r "$srcdir/$ac_unique_file"; then 1369 srcdir=.. 1370 fi 1371else 1372 ac_srcdir_defaulted=no 1373fi 1374if test ! -r "$srcdir/$ac_unique_file"; then 1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1376 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1377fi 1378ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1379ac_abs_confdir=`( 1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1381 pwd)` 1382# When building in place, set srcdir=. 1383if test "$ac_abs_confdir" = "$ac_pwd"; then 1384 srcdir=. 1385fi 1386# Remove unnecessary trailing slashes from srcdir. 1387# Double slashes in file names in object file debugging info 1388# mess up M-x gdb in Emacs. 1389case $srcdir in 1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1391esac 1392for ac_var in $ac_precious_vars; do 1393 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_env_${ac_var}_value=\$${ac_var} 1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1397done 1398 1399# 1400# Report the --help message. 1401# 1402if test "$ac_init_help" = "long"; then 1403 # Omit some internal or obsolete options to make the list less imposing. 1404 # This message is too long to be a string in the A/UX 3.1 sh. 1405 cat <<_ACEOF 1406\`configure' configures libpciaccess 0.17 to adapt to many kinds of systems. 1407 1408Usage: $0 [OPTION]... [VAR=VALUE]... 1409 1410To assign environment variables (e.g., CC, CFLAGS...), specify them as 1411VAR=VALUE. See below for descriptions of some of the useful variables. 1412 1413Defaults for the options are specified in brackets. 1414 1415Configuration: 1416 -h, --help display this help and exit 1417 --help=short display options specific to this package 1418 --help=recursive display the short help of all the included packages 1419 -V, --version display version information and exit 1420 -q, --quiet, --silent do not print \`checking ...' messages 1421 --cache-file=FILE cache test results in FILE [disabled] 1422 -C, --config-cache alias for \`--cache-file=config.cache' 1423 -n, --no-create do not create output files 1424 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1425 1426Installation directories: 1427 --prefix=PREFIX install architecture-independent files in PREFIX 1428 [$ac_default_prefix] 1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1430 [PREFIX] 1431 1432By default, \`make install' will install all the files in 1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1434an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1435for instance \`--prefix=\$HOME'. 1436 1437For better control, use the options below. 1438 1439Fine tuning of the installation directories: 1440 --bindir=DIR user executables [EPREFIX/bin] 1441 --sbindir=DIR system admin executables [EPREFIX/sbin] 1442 --libexecdir=DIR program executables [EPREFIX/libexec] 1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1446 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1447 --libdir=DIR object code libraries [EPREFIX/lib] 1448 --includedir=DIR C header files [PREFIX/include] 1449 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1452 --infodir=DIR info documentation [DATAROOTDIR/info] 1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1454 --mandir=DIR man documentation [DATAROOTDIR/man] 1455 --docdir=DIR documentation root [DATAROOTDIR/doc/libpciaccess] 1456 --htmldir=DIR html documentation [DOCDIR] 1457 --dvidir=DIR dvi documentation [DOCDIR] 1458 --pdfdir=DIR pdf documentation [DOCDIR] 1459 --psdir=DIR ps documentation [DOCDIR] 1460_ACEOF 1461 1462 cat <<\_ACEOF 1463 1464Program names: 1465 --program-prefix=PREFIX prepend PREFIX to installed program names 1466 --program-suffix=SUFFIX append SUFFIX to installed program names 1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1468 1469System types: 1470 --build=BUILD configure for building on BUILD [guessed] 1471 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1472_ACEOF 1473fi 1474 1475if test -n "$ac_init_help"; then 1476 case $ac_init_help in 1477 short | recursive ) echo "Configuration of libpciaccess 0.17:";; 1478 esac 1479 cat <<\_ACEOF 1480 1481Optional Features: 1482 --disable-option-checking ignore unrecognized --enable/--with options 1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1485 --enable-silent-rules less verbose build output (undo: "make V=1") 1486 --disable-silent-rules verbose build output (undo: "make V=0") 1487 --enable-dependency-tracking 1488 do not reject slow dependency extractors 1489 --disable-dependency-tracking 1490 speeds up one-time build 1491 --enable-shared[=PKGS] build shared libraries [default=yes] 1492 --enable-static[=PKGS] build static libraries [default=yes] 1493 --enable-fast-install[=PKGS] 1494 optimize for fast installation [default=yes] 1495 --disable-libtool-lock avoid locking (might break parallel builds) 1496 --disable-selective-werror 1497 Turn off selective compiler errors. (default: 1498 enabled) 1499 --enable-strict-compilation 1500 Enable all warnings from compiler and make them 1501 errors (default: disabled) 1502 --enable-linux-rom-fallback 1503 Enable support for falling back to /dev/mem for roms 1504 (default: disabled) 1505 --disable-largefile omit support for large files 1506 1507Optional Packages: 1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1510 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1511 both] 1512 --with-aix-soname=aix|svr4|both 1513 shared library versioning (aka "SONAME") variant to 1514 provide on AIX, [default=aix]. 1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1516 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1517 compiler's sysroot if not specified). 1518 --with-pciids-path=PCIIDS_PATH 1519 Path to pci.ids file 1520 --with-zlib Enable zlib support to read gzip compressed pci.ids 1521 1522Some influential environment variables: 1523 CC C compiler command 1524 CFLAGS C compiler flags 1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1526 nonstandard directory <lib dir> 1527 LIBS libraries to pass to the linker, e.g. -l<library> 1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1529 you have headers in a nonstandard directory <include dir> 1530 LT_SYS_LIBRARY_PATH 1531 User-defined run-time library search path. 1532 PKG_CONFIG path to pkg-config utility 1533 PKG_CONFIG_PATH 1534 directories to add to pkg-config's search path 1535 PKG_CONFIG_LIBDIR 1536 path overriding pkg-config's built-in search path 1537 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1538 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1539 1540Use these variables to override the choices made by `configure' or to help 1541it to find libraries and programs with nonstandard names/locations. 1542 1543Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/issues>. 1544_ACEOF 1545ac_status=$? 1546fi 1547 1548if test "$ac_init_help" = "recursive"; then 1549 # If there are subdirs, report their specific --help. 1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1551 test -d "$ac_dir" || 1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1553 continue 1554 ac_builddir=. 1555 1556case "$ac_dir" in 1557.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558*) 1559 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1560 # A ".." for each directory in $ac_dir_suffix. 1561 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1562 case $ac_top_builddir_sub in 1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1565 esac ;; 1566esac 1567ac_abs_top_builddir=$ac_pwd 1568ac_abs_builddir=$ac_pwd$ac_dir_suffix 1569# for backward compatibility: 1570ac_top_builddir=$ac_top_build_prefix 1571 1572case $srcdir in 1573 .) # We are building in place. 1574 ac_srcdir=. 1575 ac_top_srcdir=$ac_top_builddir_sub 1576 ac_abs_top_srcdir=$ac_pwd ;; 1577 [\\/]* | ?:[\\/]* ) # Absolute name. 1578 ac_srcdir=$srcdir$ac_dir_suffix; 1579 ac_top_srcdir=$srcdir 1580 ac_abs_top_srcdir=$srcdir ;; 1581 *) # Relative name. 1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1583 ac_top_srcdir=$ac_top_build_prefix$srcdir 1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1585esac 1586ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1587 1588 cd "$ac_dir" || { ac_status=$?; continue; } 1589 # Check for configure.gnu first; this name is used for a wrapper for 1590 # Metaconfig's "Configure" on case-insensitive file systems. 1591 if test -f "$ac_srcdir/configure.gnu"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1594 elif test -f "$ac_srcdir/configure"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure" --help=recursive 1597 else 1598 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1599 fi || ac_status=$? 1600 cd "$ac_pwd" || { ac_status=$?; break; } 1601 done 1602fi 1603 1604test -n "$ac_init_help" && exit $ac_status 1605if $ac_init_version; then 1606 cat <<\_ACEOF 1607libpciaccess configure 0.17 1608generated by GNU Autoconf 2.71 1609 1610Copyright (C) 2021 Free Software Foundation, Inc. 1611This configure script is free software; the Free Software Foundation 1612gives unlimited permission to copy, distribute and modify it. 1613_ACEOF 1614 exit 1615fi 1616 1617## ------------------------ ## 1618## Autoconf initialization. ## 1619## ------------------------ ## 1620 1621# ac_fn_c_try_compile LINENO 1622# -------------------------- 1623# Try to compile conftest.$ac_ext, and return whether this succeeded. 1624ac_fn_c_try_compile () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 rm -f conftest.$ac_objext conftest.beam 1628 if { { ac_try="$ac_compile" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634printf "%s\n" "$ac_try_echo"; } >&5 1635 (eval "$ac_compile") 2>conftest.err 1636 ac_status=$? 1637 if test -s conftest.err; then 1638 grep -v '^ *+' conftest.err >conftest.er1 1639 cat conftest.er1 >&5 1640 mv -f conftest.er1 conftest.err 1641 fi 1642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; } && { 1644 test -z "$ac_c_werror_flag" || 1645 test ! -s conftest.err 1646 } && test -s conftest.$ac_objext 1647then : 1648 ac_retval=0 1649else $as_nop 1650 printf "%s\n" "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_compile 1659 1660# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1661# ------------------------------------------------------- 1662# Tests whether HEADER exists and can be compiled using the include files in 1663# INCLUDES, setting the cache variable VAR accordingly. 1664ac_fn_c_check_header_compile () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1668printf %s "checking for $2... " >&6; } 1669if eval test \${$3+y} 1670then : 1671 printf %s "(cached) " >&6 1672else $as_nop 1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674/* end confdefs.h. */ 1675$4 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_compile "$LINENO" 1679then : 1680 eval "$3=yes" 1681else $as_nop 1682 eval "$3=no" 1683fi 1684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1685fi 1686eval ac_res=\$$3 1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1688printf "%s\n" "$ac_res" >&6; } 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 1691} # ac_fn_c_check_header_compile 1692 1693# ac_fn_c_try_link LINENO 1694# ----------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_c_try_link () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706printf "%s\n" "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } && { 1716 test -z "$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 } && test -s conftest$ac_exeext && { 1719 test "$cross_compiling" = yes || 1720 test -x conftest$ac_exeext 1721 } 1722then : 1723 ac_retval=0 1724else $as_nop 1725 printf "%s\n" "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729fi 1730 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1731 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1732 # interfere with the next link command; also delete a directory that is 1733 # left behind by Apple's compiler. We do this before executing the actions. 1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_link 1739 1740# ac_fn_c_check_func LINENO FUNC VAR 1741# ---------------------------------- 1742# Tests whether FUNC exists, setting the cache variable VAR accordingly 1743ac_fn_c_check_func () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1747printf %s "checking for $2... " >&6; } 1748if eval test \${$3+y} 1749then : 1750 printf %s "(cached) " >&6 1751else $as_nop 1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1756#define $2 innocuous_$2 1757 1758/* System header to define __stub macros and hopefully few prototypes, 1759 which can conflict with char $2 (); below. */ 1760 1761#include <limits.h> 1762#undef $2 1763 1764/* Override any GCC internal prototype to avoid an error. 1765 Use char because int might match the return type of a GCC 1766 builtin and then its argument prototype would still apply. */ 1767#ifdef __cplusplus 1768extern "C" 1769#endif 1770char $2 (); 1771/* The GNU C library defines this for functions which it implements 1772 to always fail with ENOSYS. Some functions are actually named 1773 something starting with __ and the normal name is an alias. */ 1774#if defined __stub_$2 || defined __stub___$2 1775choke me 1776#endif 1777 1778int 1779main (void) 1780{ 1781return $2 (); 1782 ; 1783 return 0; 1784} 1785_ACEOF 1786if ac_fn_c_try_link "$LINENO" 1787then : 1788 eval "$3=yes" 1789else $as_nop 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1793 conftest$ac_exeext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797printf "%s\n" "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_func 1801 1802# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1803# ------------------------------------------------------------------ 1804# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1805# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1806ac_fn_check_decl () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 as_decl_name=`echo $2|sed 's/ *(.*//'` 1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1811printf %s "checking whether $as_decl_name is declared... " >&6; } 1812if eval test \${$3+y} 1813then : 1814 printf %s "(cached) " >&6 1815else $as_nop 1816 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1817 eval ac_save_FLAGS=\$$6 1818 as_fn_append $6 " $5" 1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1820/* end confdefs.h. */ 1821$4 1822int 1823main (void) 1824{ 1825#ifndef $as_decl_name 1826#ifdef __cplusplus 1827 (void) $as_decl_use; 1828#else 1829 (void) $as_decl_name; 1830#endif 1831#endif 1832 1833 ; 1834 return 0; 1835} 1836_ACEOF 1837if ac_fn_c_try_compile "$LINENO" 1838then : 1839 eval "$3=yes" 1840else $as_nop 1841 eval "$3=no" 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1844 eval $6=\$ac_save_FLAGS 1845 1846fi 1847eval ac_res=\$$3 1848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849printf "%s\n" "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_check_decl 1853ac_configure_args_raw= 1854for ac_arg 1855do 1856 case $ac_arg in 1857 *\'*) 1858 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1859 esac 1860 as_fn_append ac_configure_args_raw " '$ac_arg'" 1861done 1862 1863case $ac_configure_args_raw in 1864 *$as_nl*) 1865 ac_safe_unquote= ;; 1866 *) 1867 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1868 ac_unsafe_a="$ac_unsafe_z#~" 1869 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1870 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1871esac 1872 1873cat >config.log <<_ACEOF 1874This file contains any messages produced by compilers while 1875running configure, to aid debugging if configure makes a mistake. 1876 1877It was created by libpciaccess $as_me 0.17, which was 1878generated by GNU Autoconf 2.71. Invocation command line was 1879 1880 $ $0$ac_configure_args_raw 1881 1882_ACEOF 1883exec 5>>config.log 1884{ 1885cat <<_ASUNAME 1886## --------- ## 1887## Platform. ## 1888## --------- ## 1889 1890hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1891uname -m = `(uname -m) 2>/dev/null || echo unknown` 1892uname -r = `(uname -r) 2>/dev/null || echo unknown` 1893uname -s = `(uname -s) 2>/dev/null || echo unknown` 1894uname -v = `(uname -v) 2>/dev/null || echo unknown` 1895 1896/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1897/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1898 1899/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1900/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1901/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1902/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1903/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1904/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1905/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1906 1907_ASUNAME 1908 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 case $as_dir in #((( 1914 '') as_dir=./ ;; 1915 */) ;; 1916 *) as_dir=$as_dir/ ;; 1917 esac 1918 printf "%s\n" "PATH: $as_dir" 1919 done 1920IFS=$as_save_IFS 1921 1922} >&5 1923 1924cat >&5 <<_ACEOF 1925 1926 1927## ----------- ## 1928## Core tests. ## 1929## ----------- ## 1930 1931_ACEOF 1932 1933 1934# Keep a trace of the command line. 1935# Strip out --no-create and --no-recursion so they do not pile up. 1936# Strip out --silent because we don't want to record it for future runs. 1937# Also quote any args containing shell meta-characters. 1938# Make two passes to allow for proper duplicate-argument suppression. 1939ac_configure_args= 1940ac_configure_args0= 1941ac_configure_args1= 1942ac_must_keep_next=false 1943for ac_pass in 1 2 1944do 1945 for ac_arg 1946 do 1947 case $ac_arg in 1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1950 | -silent | --silent | --silen | --sile | --sil) 1951 continue ;; 1952 *\'*) 1953 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1954 esac 1955 case $ac_pass in 1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1957 2) 1958 as_fn_append ac_configure_args1 " '$ac_arg'" 1959 if test $ac_must_keep_next = true; then 1960 ac_must_keep_next=false # Got value, back to normal. 1961 else 1962 case $ac_arg in 1963 *=* | --config-cache | -C | -disable-* | --disable-* \ 1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1966 | -with-* | --with-* | -without-* | --without-* | --x) 1967 case "$ac_configure_args0 " in 1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1969 esac 1970 ;; 1971 -* ) ac_must_keep_next=true ;; 1972 esac 1973 fi 1974 as_fn_append ac_configure_args " '$ac_arg'" 1975 ;; 1976 esac 1977 done 1978done 1979{ ac_configure_args0=; unset ac_configure_args0;} 1980{ ac_configure_args1=; unset ac_configure_args1;} 1981 1982# When interrupted or exit'd, cleanup temporary files, and complete 1983# config.log. We remove comments because anyway the quotes in there 1984# would cause problems or look ugly. 1985# WARNING: Use '\'' to represent an apostrophe within the trap. 1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1987trap 'exit_status=$? 1988 # Sanitize IFS. 1989 IFS=" "" $as_nl" 1990 # Save into config.log some information that might help in debugging. 1991 { 1992 echo 1993 1994 printf "%s\n" "## ---------------- ## 1995## Cache variables. ## 1996## ---------------- ##" 1997 echo 1998 # The following way of writing the cache mishandles newlines in values, 1999( 2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in #( 2003 *${as_nl}*) 2004 case $ac_var in #( 2005 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2006printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2007 esac 2008 case $ac_var in #( 2009 _ | IFS | as_nl) ;; #( 2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2011 *) { eval $ac_var=; unset $ac_var;} ;; 2012 esac ;; 2013 esac 2014 done 2015 (set) 2>&1 | 2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2017 *${as_nl}ac_space=\ *) 2018 sed -n \ 2019 "s/'\''/'\''\\\\'\'''\''/g; 2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2021 ;; #( 2022 *) 2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2024 ;; 2025 esac | 2026 sort 2027) 2028 echo 2029 2030 printf "%s\n" "## ----------------- ## 2031## Output variables. ## 2032## ----------------- ##" 2033 echo 2034 for ac_var in $ac_subst_vars 2035 do 2036 eval ac_val=\$$ac_var 2037 case $ac_val in 2038 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2039 esac 2040 printf "%s\n" "$ac_var='\''$ac_val'\''" 2041 done | sort 2042 echo 2043 2044 if test -n "$ac_subst_files"; then 2045 printf "%s\n" "## ------------------- ## 2046## File substitutions. ## 2047## ------------------- ##" 2048 echo 2049 for ac_var in $ac_subst_files 2050 do 2051 eval ac_val=\$$ac_var 2052 case $ac_val in 2053 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2054 esac 2055 printf "%s\n" "$ac_var='\''$ac_val'\''" 2056 done | sort 2057 echo 2058 fi 2059 2060 if test -s confdefs.h; then 2061 printf "%s\n" "## ----------- ## 2062## confdefs.h. ## 2063## ----------- ##" 2064 echo 2065 cat confdefs.h 2066 echo 2067 fi 2068 test "$ac_signal" != 0 && 2069 printf "%s\n" "$as_me: caught signal $ac_signal" 2070 printf "%s\n" "$as_me: exit $exit_status" 2071 } >&5 2072 rm -f core *.core core.conftest.* && 2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2074 exit $exit_status 2075' 0 2076for ac_signal in 1 2 13 15; do 2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2078done 2079ac_signal=0 2080 2081# confdefs.h avoids OS command line length limits that DEFS can exceed. 2082rm -f -r conftest* confdefs.h 2083 2084printf "%s\n" "/* confdefs.h */" > confdefs.h 2085 2086# Predefined preprocessor variables. 2087 2088printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2089 2090printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2091 2092printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2093 2094printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2095 2096printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2097 2098printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2099 2100 2101# Let the site file select an alternate cache file if it wants to. 2102# Prefer an explicitly selected file to automatically selected ones. 2103if test -n "$CONFIG_SITE"; then 2104 ac_site_files="$CONFIG_SITE" 2105elif test "x$prefix" != xNONE; then 2106 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2107else 2108 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2109fi 2110 2111for ac_site_file in $ac_site_files 2112do 2113 case $ac_site_file in #( 2114 */*) : 2115 ;; #( 2116 *) : 2117 ac_site_file=./$ac_site_file ;; 2118esac 2119 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2121printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2122 sed 's/^/| /' "$ac_site_file" >&5 2123 . "$ac_site_file" \ 2124 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2125printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2126as_fn_error $? "failed to load site script $ac_site_file 2127See \`config.log' for more details" "$LINENO" 5; } 2128 fi 2129done 2130 2131if test -r "$cache_file"; then 2132 # Some versions of bash will fail to source /dev/null (special files 2133 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2134 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2136printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2137 case $cache_file in 2138 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2139 *) . "./$cache_file";; 2140 esac 2141 fi 2142else 2143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2144printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2145 >$cache_file 2146fi 2147 2148as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2149# Test code for whether the C compiler supports C89 (global declarations) 2150ac_c_conftest_c89_globals=' 2151/* Does the compiler advertise C89 conformance? 2152 Do not test the value of __STDC__, because some compilers set it to 0 2153 while being otherwise adequately conformant. */ 2154#if !defined __STDC__ 2155# error "Compiler does not advertise C89 conformance" 2156#endif 2157 2158#include <stddef.h> 2159#include <stdarg.h> 2160struct stat; 2161/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2162struct buf { int x; }; 2163struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2164static char *e (p, i) 2165 char **p; 2166 int i; 2167{ 2168 return p[i]; 2169} 2170static char *f (char * (*g) (char **, int), char **p, ...) 2171{ 2172 char *s; 2173 va_list v; 2174 va_start (v,p); 2175 s = g (p, va_arg (v,int)); 2176 va_end (v); 2177 return s; 2178} 2179 2180/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2181 function prototypes and stuff, but not \xHH hex character constants. 2182 These do not provoke an error unfortunately, instead are silently treated 2183 as an "x". The following induces an error, until -std is added to get 2184 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2185 array size at least. It is necessary to write \x00 == 0 to get something 2186 that is true only with -std. */ 2187int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2188 2189/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2190 inside strings and character constants. */ 2191#define FOO(x) '\''x'\'' 2192int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2193 2194int test (int i, double x); 2195struct s1 {int (*f) (int a);}; 2196struct s2 {int (*f) (double a);}; 2197int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2198 int, int);' 2199 2200# Test code for whether the C compiler supports C89 (body of main). 2201ac_c_conftest_c89_main=' 2202ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2203' 2204 2205# Test code for whether the C compiler supports C99 (global declarations) 2206ac_c_conftest_c99_globals=' 2207// Does the compiler advertise C99 conformance? 2208#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2209# error "Compiler does not advertise C99 conformance" 2210#endif 2211 2212#include <stdbool.h> 2213extern int puts (const char *); 2214extern int printf (const char *, ...); 2215extern int dprintf (int, const char *, ...); 2216extern void *malloc (size_t); 2217 2218// Check varargs macros. These examples are taken from C99 6.10.3.5. 2219// dprintf is used instead of fprintf to avoid needing to declare 2220// FILE and stderr. 2221#define debug(...) dprintf (2, __VA_ARGS__) 2222#define showlist(...) puts (#__VA_ARGS__) 2223#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2224static void 2225test_varargs_macros (void) 2226{ 2227 int x = 1234; 2228 int y = 5678; 2229 debug ("Flag"); 2230 debug ("X = %d\n", x); 2231 showlist (The first, second, and third items.); 2232 report (x>y, "x is %d but y is %d", x, y); 2233} 2234 2235// Check long long types. 2236#define BIG64 18446744073709551615ull 2237#define BIG32 4294967295ul 2238#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2239#if !BIG_OK 2240 #error "your preprocessor is broken" 2241#endif 2242#if BIG_OK 2243#else 2244 #error "your preprocessor is broken" 2245#endif 2246static long long int bignum = -9223372036854775807LL; 2247static unsigned long long int ubignum = BIG64; 2248 2249struct incomplete_array 2250{ 2251 int datasize; 2252 double data[]; 2253}; 2254 2255struct named_init { 2256 int number; 2257 const wchar_t *name; 2258 double average; 2259}; 2260 2261typedef const char *ccp; 2262 2263static inline int 2264test_restrict (ccp restrict text) 2265{ 2266 // See if C++-style comments work. 2267 // Iterate through items via the restricted pointer. 2268 // Also check for declarations in for loops. 2269 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2270 continue; 2271 return 0; 2272} 2273 2274// Check varargs and va_copy. 2275static bool 2276test_varargs (const char *format, ...) 2277{ 2278 va_list args; 2279 va_start (args, format); 2280 va_list args_copy; 2281 va_copy (args_copy, args); 2282 2283 const char *str = ""; 2284 int number = 0; 2285 float fnumber = 0; 2286 2287 while (*format) 2288 { 2289 switch (*format++) 2290 { 2291 case '\''s'\'': // string 2292 str = va_arg (args_copy, const char *); 2293 break; 2294 case '\''d'\'': // int 2295 number = va_arg (args_copy, int); 2296 break; 2297 case '\''f'\'': // float 2298 fnumber = va_arg (args_copy, double); 2299 break; 2300 default: 2301 break; 2302 } 2303 } 2304 va_end (args_copy); 2305 va_end (args); 2306 2307 return *str && number && fnumber; 2308} 2309' 2310 2311# Test code for whether the C compiler supports C99 (body of main). 2312ac_c_conftest_c99_main=' 2313 // Check bool. 2314 _Bool success = false; 2315 success |= (argc != 0); 2316 2317 // Check restrict. 2318 if (test_restrict ("String literal") == 0) 2319 success = true; 2320 char *restrict newvar = "Another string"; 2321 2322 // Check varargs. 2323 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2324 test_varargs_macros (); 2325 2326 // Check flexible array members. 2327 struct incomplete_array *ia = 2328 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2329 ia->datasize = 10; 2330 for (int i = 0; i < ia->datasize; ++i) 2331 ia->data[i] = i * 1.234; 2332 2333 // Check named initializers. 2334 struct named_init ni = { 2335 .number = 34, 2336 .name = L"Test wide string", 2337 .average = 543.34343, 2338 }; 2339 2340 ni.number = 58; 2341 2342 int dynamic_array[ni.number]; 2343 dynamic_array[0] = argv[0][0]; 2344 dynamic_array[ni.number - 1] = 543; 2345 2346 // work around unused variable warnings 2347 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2348 || dynamic_array[ni.number - 1] != 543); 2349' 2350 2351# Test code for whether the C compiler supports C11 (global declarations) 2352ac_c_conftest_c11_globals=' 2353// Does the compiler advertise C11 conformance? 2354#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2355# error "Compiler does not advertise C11 conformance" 2356#endif 2357 2358// Check _Alignas. 2359char _Alignas (double) aligned_as_double; 2360char _Alignas (0) no_special_alignment; 2361extern char aligned_as_int; 2362char _Alignas (0) _Alignas (int) aligned_as_int; 2363 2364// Check _Alignof. 2365enum 2366{ 2367 int_alignment = _Alignof (int), 2368 int_array_alignment = _Alignof (int[100]), 2369 char_alignment = _Alignof (char) 2370}; 2371_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2372 2373// Check _Noreturn. 2374int _Noreturn does_not_return (void) { for (;;) continue; } 2375 2376// Check _Static_assert. 2377struct test_static_assert 2378{ 2379 int x; 2380 _Static_assert (sizeof (int) <= sizeof (long int), 2381 "_Static_assert does not work in struct"); 2382 long int y; 2383}; 2384 2385// Check UTF-8 literals. 2386#define u8 syntax error! 2387char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2388 2389// Check duplicate typedefs. 2390typedef long *long_ptr; 2391typedef long int *long_ptr; 2392typedef long_ptr long_ptr; 2393 2394// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2395struct anonymous 2396{ 2397 union { 2398 struct { int i; int j; }; 2399 struct { int k; long int l; } w; 2400 }; 2401 int m; 2402} v1; 2403' 2404 2405# Test code for whether the C compiler supports C11 (body of main). 2406ac_c_conftest_c11_main=' 2407 _Static_assert ((offsetof (struct anonymous, i) 2408 == offsetof (struct anonymous, w.k)), 2409 "Anonymous union alignment botch"); 2410 v1.i = 2; 2411 v1.w.k = 5; 2412 ok |= v1.i != 5; 2413' 2414 2415# Test code for whether the C compiler supports C11 (complete). 2416ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2417${ac_c_conftest_c99_globals} 2418${ac_c_conftest_c11_globals} 2419 2420int 2421main (int argc, char **argv) 2422{ 2423 int ok = 0; 2424 ${ac_c_conftest_c89_main} 2425 ${ac_c_conftest_c99_main} 2426 ${ac_c_conftest_c11_main} 2427 return ok; 2428} 2429" 2430 2431# Test code for whether the C compiler supports C99 (complete). 2432ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2433${ac_c_conftest_c99_globals} 2434 2435int 2436main (int argc, char **argv) 2437{ 2438 int ok = 0; 2439 ${ac_c_conftest_c89_main} 2440 ${ac_c_conftest_c99_main} 2441 return ok; 2442} 2443" 2444 2445# Test code for whether the C compiler supports C89 (complete). 2446ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2447 2448int 2449main (int argc, char **argv) 2450{ 2451 int ok = 0; 2452 ${ac_c_conftest_c89_main} 2453 return ok; 2454} 2455" 2456 2457as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2458as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2459as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2460as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2461as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2462as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2463as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2464as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2465as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2466as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2467 2468# Auxiliary files required by this configure script. 2469ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2470 2471# Locations in which to look for auxiliary files. 2472ac_aux_dir_candidates="${srcdir}/." 2473 2474# Search for a directory containing all of the required auxiliary files, 2475# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2476# If we don't find one directory that contains all the files we need, 2477# we report the set of missing files from the *first* directory in 2478# $ac_aux_dir_candidates and give up. 2479ac_missing_aux_files="" 2480ac_first_candidate=: 2481printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483as_found=false 2484for as_dir in $ac_aux_dir_candidates 2485do 2486 IFS=$as_save_IFS 2487 case $as_dir in #((( 2488 '') as_dir=./ ;; 2489 */) ;; 2490 *) as_dir=$as_dir/ ;; 2491 esac 2492 as_found=: 2493 2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2495 ac_aux_dir_found=yes 2496 ac_install_sh= 2497 for ac_aux in $ac_aux_files 2498 do 2499 # As a special case, if "install-sh" is required, that requirement 2500 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2501 # and $ac_install_sh is set appropriately for whichever one is found. 2502 if test x"$ac_aux" = x"install-sh" 2503 then 2504 if test -f "${as_dir}install-sh"; then 2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2506 ac_install_sh="${as_dir}install-sh -c" 2507 elif test -f "${as_dir}install.sh"; then 2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2509 ac_install_sh="${as_dir}install.sh -c" 2510 elif test -f "${as_dir}shtool"; then 2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2512 ac_install_sh="${as_dir}shtool install -c" 2513 else 2514 ac_aux_dir_found=no 2515 if $ac_first_candidate; then 2516 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2517 else 2518 break 2519 fi 2520 fi 2521 else 2522 if test -f "${as_dir}${ac_aux}"; then 2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2524 else 2525 ac_aux_dir_found=no 2526 if $ac_first_candidate; then 2527 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2528 else 2529 break 2530 fi 2531 fi 2532 fi 2533 done 2534 if test "$ac_aux_dir_found" = yes; then 2535 ac_aux_dir="$as_dir" 2536 break 2537 fi 2538 ac_first_candidate=false 2539 2540 as_found=false 2541done 2542IFS=$as_save_IFS 2543if $as_found 2544then : 2545 2546else $as_nop 2547 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2548fi 2549 2550 2551# These three variables are undocumented and unsupported, 2552# and are intended to be withdrawn in a future Autoconf release. 2553# They can cause serious problems if a builder's source tree is in a directory 2554# whose full name contains unusual characters. 2555if test -f "${ac_aux_dir}config.guess"; then 2556 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2557fi 2558if test -f "${ac_aux_dir}config.sub"; then 2559 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2560fi 2561if test -f "$ac_aux_dir/configure"; then 2562 ac_configure="$SHELL ${ac_aux_dir}configure" 2563fi 2564 2565# Check that the precious variables saved in the cache have kept the same 2566# value. 2567ac_cache_corrupted=false 2568for ac_var in $ac_precious_vars; do 2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2570 eval ac_new_set=\$ac_env_${ac_var}_set 2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2572 eval ac_new_val=\$ac_env_${ac_var}_value 2573 case $ac_old_set,$ac_new_set in 2574 set,) 2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2576printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2577 ac_cache_corrupted=: ;; 2578 ,set) 2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2580printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2581 ac_cache_corrupted=: ;; 2582 ,);; 2583 *) 2584 if test "x$ac_old_val" != "x$ac_new_val"; then 2585 # differences in whitespace do not lead to failure. 2586 ac_old_val_w=`echo x $ac_old_val` 2587 ac_new_val_w=`echo x $ac_new_val` 2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2590printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2591 ac_cache_corrupted=: 2592 else 2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2594printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2595 eval $ac_var=\$ac_old_val 2596 fi 2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2598printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2600printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2601 fi;; 2602 esac 2603 # Pass precious variables to config.status. 2604 if test "$ac_new_set" = set; then 2605 case $ac_new_val in 2606 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2607 *) ac_arg=$ac_var=$ac_new_val ;; 2608 esac 2609 case " $ac_configure_args " in 2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2612 esac 2613 fi 2614done 2615if $ac_cache_corrupted; then 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2617printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2619printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2620 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2621 and start over" "$LINENO" 5 2622fi 2623## -------------------- ## 2624## Main body of script. ## 2625## -------------------- ## 2626 2627ac_ext=c 2628ac_cpp='$CPP $CPPFLAGS' 2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2631ac_compiler_gnu=$ac_cv_c_compiler_gnu 2632 2633 2634ac_config_headers="$ac_config_headers config.h" 2635 2636 2637 2638# Initialize Automake 2639am__api_version='1.16' 2640 2641 2642 2643 # Find a good install program. We prefer a C program (faster), 2644# so one script is as good as another. But avoid the broken or 2645# incompatible versions: 2646# SysV /etc/install, /usr/sbin/install 2647# SunOS /usr/etc/install 2648# IRIX /sbin/install 2649# AIX /bin/install 2650# AmigaOS /C/install, which installs bootblocks on floppy discs 2651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2652# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2654# OS/2's system install, which has a completely different semantic 2655# ./install, which can be erroneously created by make from ./install.sh. 2656# Reject install programs that cannot install multiple files. 2657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2658printf %s "checking for a BSD-compatible install... " >&6; } 2659if test -z "$INSTALL"; then 2660if test ${ac_cv_path_install+y} 2661then : 2662 printf %s "(cached) " >&6 2663else $as_nop 2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 case $as_dir in #((( 2669 '') as_dir=./ ;; 2670 */) ;; 2671 *) as_dir=$as_dir/ ;; 2672 esac 2673 # Account for fact that we put trailing slashes in our PATH walk. 2674case $as_dir in #(( 2675 ./ | /[cC]/* | \ 2676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2678 /usr/ucb/* ) ;; 2679 *) 2680 # OSF1 and SCO ODT 3.0 have their own names for install. 2681 # Don't use installbsd from OSF since it installs stuff as root 2682 # by default. 2683 for ac_prog in ginstall scoinst install; do 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2686 if test $ac_prog = install && 2687 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2688 # AIX install. It has an incompatible calling convention. 2689 : 2690 elif test $ac_prog = install && 2691 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2692 # program-specific install script used by HP pwplus--don't use. 2693 : 2694 else 2695 rm -rf conftest.one conftest.two conftest.dir 2696 echo one > conftest.one 2697 echo two > conftest.two 2698 mkdir conftest.dir 2699 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2700 test -s conftest.one && test -s conftest.two && 2701 test -s conftest.dir/conftest.one && 2702 test -s conftest.dir/conftest.two 2703 then 2704 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2705 break 3 2706 fi 2707 fi 2708 fi 2709 done 2710 done 2711 ;; 2712esac 2713 2714 done 2715IFS=$as_save_IFS 2716 2717rm -rf conftest.one conftest.two conftest.dir 2718 2719fi 2720 if test ${ac_cv_path_install+y}; then 2721 INSTALL=$ac_cv_path_install 2722 else 2723 # As a last resort, use the slow shell script. Don't cache a 2724 # value for INSTALL within a source directory, because that will 2725 # break other packages using the cache if that directory is 2726 # removed, or if the value is a relative name. 2727 INSTALL=$ac_install_sh 2728 fi 2729fi 2730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2731printf "%s\n" "$INSTALL" >&6; } 2732 2733# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2734# It thinks the first close brace ends the variable substitution. 2735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2736 2737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2738 2739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2740 2741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2742printf %s "checking whether build environment is sane... " >&6; } 2743# Reject unsafe characters in $srcdir or the absolute working directory 2744# name. Accept space and tab only in the latter. 2745am_lf=' 2746' 2747case `pwd` in 2748 *[\\\"\#\$\&\'\`$am_lf]*) 2749 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2750esac 2751case $srcdir in 2752 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2753 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2754esac 2755 2756# Do 'set' in a subshell so we don't clobber the current shell's 2757# arguments. Must try -L first in case configure is actually a 2758# symlink; some systems play weird games with the mod time of symlinks 2759# (eg FreeBSD returns the mod time of the symlink's containing 2760# directory). 2761if ( 2762 am_has_slept=no 2763 for am_try in 1 2; do 2764 echo "timestamp, slept: $am_has_slept" > conftest.file 2765 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2766 if test "$*" = "X"; then 2767 # -L didn't work. 2768 set X `ls -t "$srcdir/configure" conftest.file` 2769 fi 2770 if test "$*" != "X $srcdir/configure conftest.file" \ 2771 && test "$*" != "X conftest.file $srcdir/configure"; then 2772 2773 # If neither matched, then we have a broken ls. This can happen 2774 # if, for instance, CONFIG_SHELL is bash and it inherits a 2775 # broken ls alias from the environment. This has actually 2776 # happened. Such a system could not be considered "sane". 2777 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2778 alias in your environment" "$LINENO" 5 2779 fi 2780 if test "$2" = conftest.file || test $am_try -eq 2; then 2781 break 2782 fi 2783 # Just in case. 2784 sleep 1 2785 am_has_slept=yes 2786 done 2787 test "$2" = conftest.file 2788 ) 2789then 2790 # Ok. 2791 : 2792else 2793 as_fn_error $? "newly created file is older than distributed files! 2794Check your system clock" "$LINENO" 5 2795fi 2796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2797printf "%s\n" "yes" >&6; } 2798# If we didn't sleep, we still need to ensure time stamps of config.status and 2799# generated files are strictly newer. 2800am_sleep_pid= 2801if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2802 ( sleep 1 ) & 2803 am_sleep_pid=$! 2804fi 2805 2806rm -f conftest.file 2807 2808test "$program_prefix" != NONE && 2809 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2810# Use a double $ so make ignores it. 2811test "$program_suffix" != NONE && 2812 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2813# Double any \ or $. 2814# By default was `s,x,x', remove it if useless. 2815ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2816program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2817 2818 2819# Expand $ac_aux_dir to an absolute path. 2820am_aux_dir=`cd "$ac_aux_dir" && pwd` 2821 2822 2823 if test x"${MISSING+set}" != xset; then 2824 MISSING="\${SHELL} '$am_aux_dir/missing'" 2825fi 2826# Use eval to expand $SHELL 2827if eval "$MISSING --is-lightweight"; then 2828 am_missing_run="$MISSING " 2829else 2830 am_missing_run= 2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2832printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2833fi 2834 2835if test x"${install_sh+set}" != xset; then 2836 case $am_aux_dir in 2837 *\ * | *\ *) 2838 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2839 *) 2840 install_sh="\${SHELL} $am_aux_dir/install-sh" 2841 esac 2842fi 2843 2844# Installed binaries are usually stripped using 'strip' when the user 2845# run "make install-strip". However 'strip' might not be the right 2846# tool to use in cross-compilation environments, therefore Automake 2847# will honor the 'STRIP' environment variable to overrule this program. 2848if test "$cross_compiling" != no; then 2849 if test -n "$ac_tool_prefix"; then 2850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2851set dummy ${ac_tool_prefix}strip; ac_word=$2 2852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2853printf %s "checking for $ac_word... " >&6; } 2854if test ${ac_cv_prog_STRIP+y} 2855then : 2856 printf %s "(cached) " >&6 2857else $as_nop 2858 if test -n "$STRIP"; then 2859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 case $as_dir in #((( 2866 '') as_dir=./ ;; 2867 */) ;; 2868 *) as_dir=$as_dir/ ;; 2869 esac 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2872 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876done 2877 done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882STRIP=$ac_cv_prog_STRIP 2883if test -n "$STRIP"; then 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2885printf "%s\n" "$STRIP" >&6; } 2886else 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888printf "%s\n" "no" >&6; } 2889fi 2890 2891 2892fi 2893if test -z "$ac_cv_prog_STRIP"; then 2894 ac_ct_STRIP=$STRIP 2895 # Extract the first word of "strip", so it can be a program name with args. 2896set dummy strip; ac_word=$2 2897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2898printf %s "checking for $ac_word... " >&6; } 2899if test ${ac_cv_prog_ac_ct_STRIP+y} 2900then : 2901 printf %s "(cached) " >&6 2902else $as_nop 2903 if test -n "$ac_ct_STRIP"; then 2904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2905else 2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907for as_dir in $PATH 2908do 2909 IFS=$as_save_IFS 2910 case $as_dir in #((( 2911 '') as_dir=./ ;; 2912 */) ;; 2913 *) as_dir=$as_dir/ ;; 2914 esac 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2917 ac_cv_prog_ac_ct_STRIP="strip" 2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2928if test -n "$ac_ct_STRIP"; then 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2930printf "%s\n" "$ac_ct_STRIP" >&6; } 2931else 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933printf "%s\n" "no" >&6; } 2934fi 2935 2936 if test "x$ac_ct_STRIP" = x; then 2937 STRIP=":" 2938 else 2939 case $cross_compiling:$ac_tool_warned in 2940yes:) 2941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2942printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2943ac_tool_warned=yes ;; 2944esac 2945 STRIP=$ac_ct_STRIP 2946 fi 2947else 2948 STRIP="$ac_cv_prog_STRIP" 2949fi 2950 2951fi 2952INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2953 2954 2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2956printf %s "checking for a race-free mkdir -p... " >&6; } 2957if test -z "$MKDIR_P"; then 2958 if test ${ac_cv_path_mkdir+y} 2959then : 2960 printf %s "(cached) " >&6 2961else $as_nop 2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2964do 2965 IFS=$as_save_IFS 2966 case $as_dir in #((( 2967 '') as_dir=./ ;; 2968 */) ;; 2969 *) as_dir=$as_dir/ ;; 2970 esac 2971 for ac_prog in mkdir gmkdir; do 2972 for ac_exec_ext in '' $ac_executable_extensions; do 2973 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2974 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2975 'mkdir ('*'coreutils) '* | \ 2976 'BusyBox '* | \ 2977 'mkdir (fileutils) '4.1*) 2978 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2979 break 3;; 2980 esac 2981 done 2982 done 2983 done 2984IFS=$as_save_IFS 2985 2986fi 2987 2988 test -d ./--version && rmdir ./--version 2989 if test ${ac_cv_path_mkdir+y}; then 2990 MKDIR_P="$ac_cv_path_mkdir -p" 2991 else 2992 # As a last resort, use the slow shell script. Don't cache a 2993 # value for MKDIR_P within a source directory, because that will 2994 # break other packages using the cache if that directory is 2995 # removed, or if the value is a relative name. 2996 MKDIR_P="$ac_install_sh -d" 2997 fi 2998fi 2999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3000printf "%s\n" "$MKDIR_P" >&6; } 3001 3002for ac_prog in gawk mawk nawk awk 3003do 3004 # Extract the first word of "$ac_prog", so it can be a program name with args. 3005set dummy $ac_prog; ac_word=$2 3006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007printf %s "checking for $ac_word... " >&6; } 3008if test ${ac_cv_prog_AWK+y} 3009then : 3010 printf %s "(cached) " >&6 3011else $as_nop 3012 if test -n "$AWK"; then 3013 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3014else 3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016for as_dir in $PATH 3017do 3018 IFS=$as_save_IFS 3019 case $as_dir in #((( 3020 '') as_dir=./ ;; 3021 */) ;; 3022 *) as_dir=$as_dir/ ;; 3023 esac 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_AWK="$ac_prog" 3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036AWK=$ac_cv_prog_AWK 3037if test -n "$AWK"; then 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3039printf "%s\n" "$AWK" >&6; } 3040else 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042printf "%s\n" "no" >&6; } 3043fi 3044 3045 3046 test -n "$AWK" && break 3047done 3048 3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3050printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3051set x ${MAKE-make} 3052ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3053if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3054then : 3055 printf %s "(cached) " >&6 3056else $as_nop 3057 cat >conftest.make <<\_ACEOF 3058SHELL = /bin/sh 3059all: 3060 @echo '@@@%%%=$(MAKE)=@@@%%%' 3061_ACEOF 3062# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3063case `${MAKE-make} -f conftest.make 2>/dev/null` in 3064 *@@@%%%=?*=@@@%%%*) 3065 eval ac_cv_prog_make_${ac_make}_set=yes;; 3066 *) 3067 eval ac_cv_prog_make_${ac_make}_set=no;; 3068esac 3069rm -f conftest.make 3070fi 3071if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3073printf "%s\n" "yes" >&6; } 3074 SET_MAKE= 3075else 3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077printf "%s\n" "no" >&6; } 3078 SET_MAKE="MAKE=${MAKE-make}" 3079fi 3080 3081rm -rf .tst 2>/dev/null 3082mkdir .tst 2>/dev/null 3083if test -d .tst; then 3084 am__leading_dot=. 3085else 3086 am__leading_dot=_ 3087fi 3088rmdir .tst 2>/dev/null 3089 3090# Check whether --enable-silent-rules was given. 3091if test ${enable_silent_rules+y} 3092then : 3093 enableval=$enable_silent_rules; 3094fi 3095 3096case $enable_silent_rules in # ((( 3097 yes) AM_DEFAULT_VERBOSITY=0;; 3098 no) AM_DEFAULT_VERBOSITY=1;; 3099 *) AM_DEFAULT_VERBOSITY=1;; 3100esac 3101am_make=${MAKE-make} 3102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3103printf %s "checking whether $am_make supports nested variables... " >&6; } 3104if test ${am_cv_make_support_nested_variables+y} 3105then : 3106 printf %s "(cached) " >&6 3107else $as_nop 3108 if printf "%s\n" 'TRUE=$(BAR$(V)) 3109BAR0=false 3110BAR1=true 3111V=1 3112am__doit: 3113 @$(TRUE) 3114.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3115 am_cv_make_support_nested_variables=yes 3116else 3117 am_cv_make_support_nested_variables=no 3118fi 3119fi 3120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3121printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3122if test $am_cv_make_support_nested_variables = yes; then 3123 AM_V='$(V)' 3124 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3125else 3126 AM_V=$AM_DEFAULT_VERBOSITY 3127 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3128fi 3129AM_BACKSLASH='\' 3130 3131if test "`cd $srcdir && pwd`" != "`pwd`"; then 3132 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3133 # is not polluted with repeated "-I." 3134 am__isrc=' -I$(srcdir)' 3135 # test to see if srcdir already configured 3136 if test -f $srcdir/config.status; then 3137 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3138 fi 3139fi 3140 3141# test whether we have cygpath 3142if test -z "$CYGPATH_W"; then 3143 if (cygpath --version) >/dev/null 2>/dev/null; then 3144 CYGPATH_W='cygpath -w' 3145 else 3146 CYGPATH_W=echo 3147 fi 3148fi 3149 3150 3151# Define the identity of the package. 3152 PACKAGE='libpciaccess' 3153 VERSION='0.17' 3154 3155 3156printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3157 3158 3159printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3160 3161# Some tools Automake needs. 3162 3163ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3164 3165 3166AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3167 3168 3169AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3170 3171 3172AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3173 3174 3175MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3176 3177# For better backward compatibility. To be removed once Automake 1.9.x 3178# dies out for good. For more background, see: 3179# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3180# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3181mkdir_p='$(MKDIR_P)' 3182 3183# We need awk for the "check" target (and possibly the TAP driver). The 3184# system "awk" is bad on some platforms. 3185# Always define AMTAR for backward compatibility. Yes, it's still used 3186# in the wild :-( We should find a proper way to deprecate it ... 3187AMTAR='$${TAR-tar}' 3188 3189 3190# We'll loop over all known methods to create a tar archive until one works. 3191_am_tools='gnutar pax cpio none' 3192 3193am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3194 3195 3196 3197 3198 3199# Variables for tags utilities; see am/tags.am 3200if test -z "$CTAGS"; then 3201 CTAGS=ctags 3202fi 3203 3204if test -z "$ETAGS"; then 3205 ETAGS=etags 3206fi 3207 3208if test -z "$CSCOPE"; then 3209 CSCOPE=cscope 3210fi 3211 3212 3213 3214# POSIX will say in a future version that running "rm -f" with no argument 3215# is OK; and we want to be able to make that assumption in our Makefile 3216# recipes. So use an aggressive probe to check that the usage we want is 3217# actually supported "in the wild" to an acceptable degree. 3218# See automake bug#10828. 3219# To make any issue more visible, cause the running configure to be aborted 3220# by default if the 'rm' program in use doesn't match our expectations; the 3221# user can still override this though. 3222if rm -f && rm -fr && rm -rf; then : OK; else 3223 cat >&2 <<'END' 3224Oops! 3225 3226Your 'rm' program seems unable to run without file operands specified 3227on the command line, even when the '-f' option is present. This is contrary 3228to the behaviour of most rm programs out there, and not conforming with 3229the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3230 3231Please tell bug-automake@gnu.org about your system, including the value 3232of your $PATH and any error possibly output before this message. This 3233can help us improve future automake versions. 3234 3235END 3236 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3237 echo 'Configuration will proceed anyway, since you have set the' >&2 3238 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3239 echo >&2 3240 else 3241 cat >&2 <<'END' 3242Aborting the configuration process, to ensure you take notice of the issue. 3243 3244You can download and install GNU coreutils to get an 'rm' implementation 3245that behaves properly: <https://www.gnu.org/software/coreutils/>. 3246 3247If you want to complete the configuration process using your problematic 3248'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3249to "yes", and re-run configure. 3250 3251END 3252 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3253 fi 3254fi 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265DEPDIR="${am__leading_dot}deps" 3266 3267ac_config_commands="$ac_config_commands depfiles" 3268 3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3270printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3271cat > confinc.mk << 'END' 3272am__doit: 3273 @echo this is the am__doit target >confinc.out 3274.PHONY: am__doit 3275END 3276am__include="#" 3277am__quote= 3278# BSD make does it like this. 3279echo '.include "confinc.mk" # ignored' > confmf.BSD 3280# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3281echo 'include confinc.mk # ignored' > confmf.GNU 3282_am_result=no 3283for s in GNU BSD; do 3284 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3285 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3286 ac_status=$? 3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3288 (exit $ac_status); } 3289 case $?:`cat confinc.out 2>/dev/null` in #( 3290 '0:this is the am__doit target') : 3291 case $s in #( 3292 BSD) : 3293 am__include='.include' am__quote='"' ;; #( 3294 *) : 3295 am__include='include' am__quote='' ;; 3296esac ;; #( 3297 *) : 3298 ;; 3299esac 3300 if test "$am__include" != "#"; then 3301 _am_result="yes ($s style)" 3302 break 3303 fi 3304done 3305rm -f confinc.* confmf.* 3306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3307printf "%s\n" "${_am_result}" >&6; } 3308 3309# Check whether --enable-dependency-tracking was given. 3310if test ${enable_dependency_tracking+y} 3311then : 3312 enableval=$enable_dependency_tracking; 3313fi 3314 3315if test "x$enable_dependency_tracking" != xno; then 3316 am_depcomp="$ac_aux_dir/depcomp" 3317 AMDEPBACKSLASH='\' 3318 am__nodep='_no' 3319fi 3320 if test "x$enable_dependency_tracking" != xno; then 3321 AMDEP_TRUE= 3322 AMDEP_FALSE='#' 3323else 3324 AMDEP_TRUE='#' 3325 AMDEP_FALSE= 3326fi 3327 3328 3329ac_ext=c 3330ac_cpp='$CPP $CPPFLAGS' 3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3333ac_compiler_gnu=$ac_cv_c_compiler_gnu 3334if test -n "$ac_tool_prefix"; then 3335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3336set dummy ${ac_tool_prefix}gcc; ac_word=$2 3337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3338printf %s "checking for $ac_word... " >&6; } 3339if test ${ac_cv_prog_CC+y} 3340then : 3341 printf %s "(cached) " >&6 3342else $as_nop 3343 if test -n "$CC"; then 3344 ac_cv_prog_CC="$CC" # Let the user override the test. 3345else 3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3347for as_dir in $PATH 3348do 3349 IFS=$as_save_IFS 3350 case $as_dir in #((( 3351 '') as_dir=./ ;; 3352 */) ;; 3353 *) as_dir=$as_dir/ ;; 3354 esac 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3357 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3359 break 2 3360 fi 3361done 3362 done 3363IFS=$as_save_IFS 3364 3365fi 3366fi 3367CC=$ac_cv_prog_CC 3368if test -n "$CC"; then 3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3370printf "%s\n" "$CC" >&6; } 3371else 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373printf "%s\n" "no" >&6; } 3374fi 3375 3376 3377fi 3378if test -z "$ac_cv_prog_CC"; then 3379 ac_ct_CC=$CC 3380 # Extract the first word of "gcc", so it can be a program name with args. 3381set dummy gcc; ac_word=$2 3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383printf %s "checking for $ac_word... " >&6; } 3384if test ${ac_cv_prog_ac_ct_CC+y} 3385then : 3386 printf %s "(cached) " >&6 3387else $as_nop 3388 if test -n "$ac_ct_CC"; then 3389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3390else 3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392for as_dir in $PATH 3393do 3394 IFS=$as_save_IFS 3395 case $as_dir in #((( 3396 '') as_dir=./ ;; 3397 */) ;; 3398 *) as_dir=$as_dir/ ;; 3399 esac 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3402 ac_cv_prog_ac_ct_CC="gcc" 3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406done 3407 done 3408IFS=$as_save_IFS 3409 3410fi 3411fi 3412ac_ct_CC=$ac_cv_prog_ac_ct_CC 3413if test -n "$ac_ct_CC"; then 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3415printf "%s\n" "$ac_ct_CC" >&6; } 3416else 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418printf "%s\n" "no" >&6; } 3419fi 3420 3421 if test "x$ac_ct_CC" = x; then 3422 CC="" 3423 else 3424 case $cross_compiling:$ac_tool_warned in 3425yes:) 3426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3427printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3428ac_tool_warned=yes ;; 3429esac 3430 CC=$ac_ct_CC 3431 fi 3432else 3433 CC="$ac_cv_prog_CC" 3434fi 3435 3436if test -z "$CC"; then 3437 if test -n "$ac_tool_prefix"; then 3438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3439set dummy ${ac_tool_prefix}cc; ac_word=$2 3440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3441printf %s "checking for $ac_word... " >&6; } 3442if test ${ac_cv_prog_CC+y} 3443then : 3444 printf %s "(cached) " >&6 3445else $as_nop 3446 if test -n "$CC"; then 3447 ac_cv_prog_CC="$CC" # Let the user override the test. 3448else 3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450for as_dir in $PATH 3451do 3452 IFS=$as_save_IFS 3453 case $as_dir in #((( 3454 '') as_dir=./ ;; 3455 */) ;; 3456 *) as_dir=$as_dir/ ;; 3457 esac 3458 for ac_exec_ext in '' $ac_executable_extensions; do 3459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3460 ac_cv_prog_CC="${ac_tool_prefix}cc" 3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3462 break 2 3463 fi 3464done 3465 done 3466IFS=$as_save_IFS 3467 3468fi 3469fi 3470CC=$ac_cv_prog_CC 3471if test -n "$CC"; then 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3473printf "%s\n" "$CC" >&6; } 3474else 3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476printf "%s\n" "no" >&6; } 3477fi 3478 3479 3480 fi 3481fi 3482if test -z "$CC"; then 3483 # Extract the first word of "cc", so it can be a program name with args. 3484set dummy cc; ac_word=$2 3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486printf %s "checking for $ac_word... " >&6; } 3487if test ${ac_cv_prog_CC+y} 3488then : 3489 printf %s "(cached) " >&6 3490else $as_nop 3491 if test -n "$CC"; then 3492 ac_cv_prog_CC="$CC" # Let the user override the test. 3493else 3494 ac_prog_rejected=no 3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3496for as_dir in $PATH 3497do 3498 IFS=$as_save_IFS 3499 case $as_dir in #((( 3500 '') as_dir=./ ;; 3501 */) ;; 3502 *) as_dir=$as_dir/ ;; 3503 esac 3504 for ac_exec_ext in '' $ac_executable_extensions; do 3505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3506 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3507 ac_prog_rejected=yes 3508 continue 3509 fi 3510 ac_cv_prog_CC="cc" 3511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3512 break 2 3513 fi 3514done 3515 done 3516IFS=$as_save_IFS 3517 3518if test $ac_prog_rejected = yes; then 3519 # We found a bogon in the path, so make sure we never use it. 3520 set dummy $ac_cv_prog_CC 3521 shift 3522 if test $# != 0; then 3523 # We chose a different compiler from the bogus one. 3524 # However, it has the same basename, so the bogon will be chosen 3525 # first if we set CC to just the basename; use the full file name. 3526 shift 3527 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3528 fi 3529fi 3530fi 3531fi 3532CC=$ac_cv_prog_CC 3533if test -n "$CC"; then 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3535printf "%s\n" "$CC" >&6; } 3536else 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538printf "%s\n" "no" >&6; } 3539fi 3540 3541 3542fi 3543if test -z "$CC"; then 3544 if test -n "$ac_tool_prefix"; then 3545 for ac_prog in cl.exe 3546 do 3547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3548set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3550printf %s "checking for $ac_word... " >&6; } 3551if test ${ac_cv_prog_CC+y} 3552then : 3553 printf %s "(cached) " >&6 3554else $as_nop 3555 if test -n "$CC"; then 3556 ac_cv_prog_CC="$CC" # Let the user override the test. 3557else 3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3559for as_dir in $PATH 3560do 3561 IFS=$as_save_IFS 3562 case $as_dir in #((( 3563 '') as_dir=./ ;; 3564 */) ;; 3565 *) as_dir=$as_dir/ ;; 3566 esac 3567 for ac_exec_ext in '' $ac_executable_extensions; do 3568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3571 break 2 3572 fi 3573done 3574 done 3575IFS=$as_save_IFS 3576 3577fi 3578fi 3579CC=$ac_cv_prog_CC 3580if test -n "$CC"; then 3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3582printf "%s\n" "$CC" >&6; } 3583else 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3585printf "%s\n" "no" >&6; } 3586fi 3587 3588 3589 test -n "$CC" && break 3590 done 3591fi 3592if test -z "$CC"; then 3593 ac_ct_CC=$CC 3594 for ac_prog in cl.exe 3595do 3596 # Extract the first word of "$ac_prog", so it can be a program name with args. 3597set dummy $ac_prog; ac_word=$2 3598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599printf %s "checking for $ac_word... " >&6; } 3600if test ${ac_cv_prog_ac_ct_CC+y} 3601then : 3602 printf %s "(cached) " >&6 3603else $as_nop 3604 if test -n "$ac_ct_CC"; then 3605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 case $as_dir in #((( 3612 '') as_dir=./ ;; 3613 */) ;; 3614 *) as_dir=$as_dir/ ;; 3615 esac 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_ac_ct_CC="$ac_prog" 3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622done 3623 done 3624IFS=$as_save_IFS 3625 3626fi 3627fi 3628ac_ct_CC=$ac_cv_prog_ac_ct_CC 3629if test -n "$ac_ct_CC"; then 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3631printf "%s\n" "$ac_ct_CC" >&6; } 3632else 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3634printf "%s\n" "no" >&6; } 3635fi 3636 3637 3638 test -n "$ac_ct_CC" && break 3639done 3640 3641 if test "x$ac_ct_CC" = x; then 3642 CC="" 3643 else 3644 case $cross_compiling:$ac_tool_warned in 3645yes:) 3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3647printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3648ac_tool_warned=yes ;; 3649esac 3650 CC=$ac_ct_CC 3651 fi 3652fi 3653 3654fi 3655if test -z "$CC"; then 3656 if test -n "$ac_tool_prefix"; then 3657 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3658set dummy ${ac_tool_prefix}clang; ac_word=$2 3659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3660printf %s "checking for $ac_word... " >&6; } 3661if test ${ac_cv_prog_CC+y} 3662then : 3663 printf %s "(cached) " >&6 3664else $as_nop 3665 if test -n "$CC"; then 3666 ac_cv_prog_CC="$CC" # Let the user override the test. 3667else 3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3669for as_dir in $PATH 3670do 3671 IFS=$as_save_IFS 3672 case $as_dir in #((( 3673 '') as_dir=./ ;; 3674 */) ;; 3675 *) as_dir=$as_dir/ ;; 3676 esac 3677 for ac_exec_ext in '' $ac_executable_extensions; do 3678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3679 ac_cv_prog_CC="${ac_tool_prefix}clang" 3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3681 break 2 3682 fi 3683done 3684 done 3685IFS=$as_save_IFS 3686 3687fi 3688fi 3689CC=$ac_cv_prog_CC 3690if test -n "$CC"; then 3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3692printf "%s\n" "$CC" >&6; } 3693else 3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3695printf "%s\n" "no" >&6; } 3696fi 3697 3698 3699fi 3700if test -z "$ac_cv_prog_CC"; then 3701 ac_ct_CC=$CC 3702 # Extract the first word of "clang", so it can be a program name with args. 3703set dummy clang; ac_word=$2 3704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3705printf %s "checking for $ac_word... " >&6; } 3706if test ${ac_cv_prog_ac_ct_CC+y} 3707then : 3708 printf %s "(cached) " >&6 3709else $as_nop 3710 if test -n "$ac_ct_CC"; then 3711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3712else 3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3714for as_dir in $PATH 3715do 3716 IFS=$as_save_IFS 3717 case $as_dir in #((( 3718 '') as_dir=./ ;; 3719 */) ;; 3720 *) as_dir=$as_dir/ ;; 3721 esac 3722 for ac_exec_ext in '' $ac_executable_extensions; do 3723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3724 ac_cv_prog_ac_ct_CC="clang" 3725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3726 break 2 3727 fi 3728done 3729 done 3730IFS=$as_save_IFS 3731 3732fi 3733fi 3734ac_ct_CC=$ac_cv_prog_ac_ct_CC 3735if test -n "$ac_ct_CC"; then 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3737printf "%s\n" "$ac_ct_CC" >&6; } 3738else 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3740printf "%s\n" "no" >&6; } 3741fi 3742 3743 if test "x$ac_ct_CC" = x; then 3744 CC="" 3745 else 3746 case $cross_compiling:$ac_tool_warned in 3747yes:) 3748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3749printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3750ac_tool_warned=yes ;; 3751esac 3752 CC=$ac_ct_CC 3753 fi 3754else 3755 CC="$ac_cv_prog_CC" 3756fi 3757 3758fi 3759 3760 3761test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3762printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3763as_fn_error $? "no acceptable C compiler found in \$PATH 3764See \`config.log' for more details" "$LINENO" 5; } 3765 3766# Provide some information about the compiler. 3767printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3768set X $ac_compile 3769ac_compiler=$2 3770for ac_option in --version -v -V -qversion -version; do 3771 { { ac_try="$ac_compiler $ac_option >&5" 3772case "(($ac_try" in 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3774 *) ac_try_echo=$ac_try;; 3775esac 3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3777printf "%s\n" "$ac_try_echo"; } >&5 3778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3779 ac_status=$? 3780 if test -s conftest.err; then 3781 sed '10a\ 3782... rest of stderr output deleted ... 3783 10q' conftest.err >conftest.er1 3784 cat conftest.er1 >&5 3785 fi 3786 rm -f conftest.er1 conftest.err 3787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3788 test $ac_status = 0; } 3789done 3790 3791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794int 3795main (void) 3796{ 3797 3798 ; 3799 return 0; 3800} 3801_ACEOF 3802ac_clean_files_save=$ac_clean_files 3803ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3804# Try to create an executable without -o first, disregard a.out. 3805# It will help us diagnose broken compilers, and finding out an intuition 3806# of exeext. 3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3808printf %s "checking whether the C compiler works... " >&6; } 3809ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3810 3811# The possible output files: 3812ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3813 3814ac_rmfiles= 3815for ac_file in $ac_files 3816do 3817 case $ac_file in 3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3819 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3820 esac 3821done 3822rm -f $ac_rmfiles 3823 3824if { { ac_try="$ac_link_default" 3825case "(($ac_try" in 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3827 *) ac_try_echo=$ac_try;; 3828esac 3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3830printf "%s\n" "$ac_try_echo"; } >&5 3831 (eval "$ac_link_default") 2>&5 3832 ac_status=$? 3833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3834 test $ac_status = 0; } 3835then : 3836 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3837# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3838# in a Makefile. We should not override ac_cv_exeext if it was cached, 3839# so that the user can short-circuit this test for compilers unknown to 3840# Autoconf. 3841for ac_file in $ac_files '' 3842do 3843 test -f "$ac_file" || continue 3844 case $ac_file in 3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3846 ;; 3847 [ab].out ) 3848 # We found the default executable, but exeext='' is most 3849 # certainly right. 3850 break;; 3851 *.* ) 3852 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3853 then :; else 3854 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3855 fi 3856 # We set ac_cv_exeext here because the later test for it is not 3857 # safe: cross compilers may not add the suffix if given an `-o' 3858 # argument, so we may need to know it at that point already. 3859 # Even if this section looks crufty: it has the advantage of 3860 # actually working. 3861 break;; 3862 * ) 3863 break;; 3864 esac 3865done 3866test "$ac_cv_exeext" = no && ac_cv_exeext= 3867 3868else $as_nop 3869 ac_file='' 3870fi 3871if test -z "$ac_file" 3872then : 3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3874printf "%s\n" "no" >&6; } 3875printf "%s\n" "$as_me: failed program was:" >&5 3876sed 's/^/| /' conftest.$ac_ext >&5 3877 3878{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3879printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3880as_fn_error 77 "C compiler cannot create executables 3881See \`config.log' for more details" "$LINENO" 5; } 3882else $as_nop 3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3884printf "%s\n" "yes" >&6; } 3885fi 3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3887printf %s "checking for C compiler default output file name... " >&6; } 3888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3889printf "%s\n" "$ac_file" >&6; } 3890ac_exeext=$ac_cv_exeext 3891 3892rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3893ac_clean_files=$ac_clean_files_save 3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3895printf %s "checking for suffix of executables... " >&6; } 3896if { { ac_try="$ac_link" 3897case "(($ac_try" in 3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3899 *) ac_try_echo=$ac_try;; 3900esac 3901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3902printf "%s\n" "$ac_try_echo"; } >&5 3903 (eval "$ac_link") 2>&5 3904 ac_status=$? 3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3906 test $ac_status = 0; } 3907then : 3908 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3909# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3910# work properly (i.e., refer to `conftest.exe'), while it won't with 3911# `rm'. 3912for ac_file in conftest.exe conftest conftest.*; do 3913 test -f "$ac_file" || continue 3914 case $ac_file in 3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3917 break;; 3918 * ) break;; 3919 esac 3920done 3921else $as_nop 3922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3924as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3925See \`config.log' for more details" "$LINENO" 5; } 3926fi 3927rm -f conftest conftest$ac_cv_exeext 3928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3929printf "%s\n" "$ac_cv_exeext" >&6; } 3930 3931rm -f conftest.$ac_ext 3932EXEEXT=$ac_cv_exeext 3933ac_exeext=$EXEEXT 3934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935/* end confdefs.h. */ 3936#include <stdio.h> 3937int 3938main (void) 3939{ 3940FILE *f = fopen ("conftest.out", "w"); 3941 return ferror (f) || fclose (f) != 0; 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947ac_clean_files="$ac_clean_files conftest.out" 3948# Check that the compiler produces executables we can run. If not, either 3949# the compiler is broken, or we cross compile. 3950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3951printf %s "checking whether we are cross compiling... " >&6; } 3952if test "$cross_compiling" != yes; then 3953 { { ac_try="$ac_link" 3954case "(($ac_try" in 3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3956 *) ac_try_echo=$ac_try;; 3957esac 3958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3959printf "%s\n" "$ac_try_echo"; } >&5 3960 (eval "$ac_link") 2>&5 3961 ac_status=$? 3962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3963 test $ac_status = 0; } 3964 if { ac_try='./conftest$ac_cv_exeext' 3965 { { case "(($ac_try" in 3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3967 *) ac_try_echo=$ac_try;; 3968esac 3969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3970printf "%s\n" "$ac_try_echo"; } >&5 3971 (eval "$ac_try") 2>&5 3972 ac_status=$? 3973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3974 test $ac_status = 0; }; }; then 3975 cross_compiling=no 3976 else 3977 if test "$cross_compiling" = maybe; then 3978 cross_compiling=yes 3979 else 3980 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3981printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3982as_fn_error 77 "cannot run C compiled programs. 3983If you meant to cross compile, use \`--host'. 3984See \`config.log' for more details" "$LINENO" 5; } 3985 fi 3986 fi 3987fi 3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3989printf "%s\n" "$cross_compiling" >&6; } 3990 3991rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3992ac_clean_files=$ac_clean_files_save 3993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3994printf %s "checking for suffix of object files... " >&6; } 3995if test ${ac_cv_objext+y} 3996then : 3997 printf %s "(cached) " >&6 3998else $as_nop 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001 4002int 4003main (void) 4004{ 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010rm -f conftest.o conftest.obj 4011if { { ac_try="$ac_compile" 4012case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015esac 4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017printf "%s\n" "$ac_try_echo"; } >&5 4018 (eval "$ac_compile") 2>&5 4019 ac_status=$? 4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021 test $ac_status = 0; } 4022then : 4023 for ac_file in conftest.o conftest.obj conftest.*; do 4024 test -f "$ac_file" || continue; 4025 case $ac_file in 4026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4027 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4028 break;; 4029 esac 4030done 4031else $as_nop 4032 printf "%s\n" "$as_me: failed program was:" >&5 4033sed 's/^/| /' conftest.$ac_ext >&5 4034 4035{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4036printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4037as_fn_error $? "cannot compute suffix of object files: cannot compile 4038See \`config.log' for more details" "$LINENO" 5; } 4039fi 4040rm -f conftest.$ac_cv_objext conftest.$ac_ext 4041fi 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4043printf "%s\n" "$ac_cv_objext" >&6; } 4044OBJEXT=$ac_cv_objext 4045ac_objext=$OBJEXT 4046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4047printf %s "checking whether the compiler supports GNU C... " >&6; } 4048if test ${ac_cv_c_compiler_gnu+y} 4049then : 4050 printf %s "(cached) " >&6 4051else $as_nop 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054 4055int 4056main (void) 4057{ 4058#ifndef __GNUC__ 4059 choke me 4060#endif 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066if ac_fn_c_try_compile "$LINENO" 4067then : 4068 ac_compiler_gnu=yes 4069else $as_nop 4070 ac_compiler_gnu=no 4071fi 4072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4073ac_cv_c_compiler_gnu=$ac_compiler_gnu 4074 4075fi 4076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4077printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079 4080if test $ac_compiler_gnu = yes; then 4081 GCC=yes 4082else 4083 GCC= 4084fi 4085ac_test_CFLAGS=${CFLAGS+y} 4086ac_save_CFLAGS=$CFLAGS 4087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4088printf %s "checking whether $CC accepts -g... " >&6; } 4089if test ${ac_cv_prog_cc_g+y} 4090then : 4091 printf %s "(cached) " >&6 4092else $as_nop 4093 ac_save_c_werror_flag=$ac_c_werror_flag 4094 ac_c_werror_flag=yes 4095 ac_cv_prog_cc_g=no 4096 CFLAGS="-g" 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099 4100int 4101main (void) 4102{ 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108if ac_fn_c_try_compile "$LINENO" 4109then : 4110 ac_cv_prog_cc_g=yes 4111else $as_nop 4112 CFLAGS="" 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115 4116int 4117main (void) 4118{ 4119 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124if ac_fn_c_try_compile "$LINENO" 4125then : 4126 4127else $as_nop 4128 ac_c_werror_flag=$ac_save_c_werror_flag 4129 CFLAGS="-g" 4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131/* end confdefs.h. */ 4132 4133int 4134main (void) 4135{ 4136 4137 ; 4138 return 0; 4139} 4140_ACEOF 4141if ac_fn_c_try_compile "$LINENO" 4142then : 4143 ac_cv_prog_cc_g=yes 4144fi 4145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4146fi 4147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4148fi 4149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4150 ac_c_werror_flag=$ac_save_c_werror_flag 4151fi 4152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4153printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4154if test $ac_test_CFLAGS; then 4155 CFLAGS=$ac_save_CFLAGS 4156elif test $ac_cv_prog_cc_g = yes; then 4157 if test "$GCC" = yes; then 4158 CFLAGS="-g -O2" 4159 else 4160 CFLAGS="-g" 4161 fi 4162else 4163 if test "$GCC" = yes; then 4164 CFLAGS="-O2" 4165 else 4166 CFLAGS= 4167 fi 4168fi 4169ac_prog_cc_stdc=no 4170if test x$ac_prog_cc_stdc = xno 4171then : 4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4173printf %s "checking for $CC option to enable C11 features... " >&6; } 4174if test ${ac_cv_prog_cc_c11+y} 4175then : 4176 printf %s "(cached) " >&6 4177else $as_nop 4178 ac_cv_prog_cc_c11=no 4179ac_save_CC=$CC 4180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4181/* end confdefs.h. */ 4182$ac_c_conftest_c11_program 4183_ACEOF 4184for ac_arg in '' -std=gnu11 4185do 4186 CC="$ac_save_CC $ac_arg" 4187 if ac_fn_c_try_compile "$LINENO" 4188then : 4189 ac_cv_prog_cc_c11=$ac_arg 4190fi 4191rm -f core conftest.err conftest.$ac_objext conftest.beam 4192 test "x$ac_cv_prog_cc_c11" != "xno" && break 4193done 4194rm -f conftest.$ac_ext 4195CC=$ac_save_CC 4196fi 4197 4198if test "x$ac_cv_prog_cc_c11" = xno 4199then : 4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4201printf "%s\n" "unsupported" >&6; } 4202else $as_nop 4203 if test "x$ac_cv_prog_cc_c11" = x 4204then : 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4206printf "%s\n" "none needed" >&6; } 4207else $as_nop 4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4209printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4210 CC="$CC $ac_cv_prog_cc_c11" 4211fi 4212 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4213 ac_prog_cc_stdc=c11 4214fi 4215fi 4216if test x$ac_prog_cc_stdc = xno 4217then : 4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4219printf %s "checking for $CC option to enable C99 features... " >&6; } 4220if test ${ac_cv_prog_cc_c99+y} 4221then : 4222 printf %s "(cached) " >&6 4223else $as_nop 4224 ac_cv_prog_cc_c99=no 4225ac_save_CC=$CC 4226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228$ac_c_conftest_c99_program 4229_ACEOF 4230for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4231do 4232 CC="$ac_save_CC $ac_arg" 4233 if ac_fn_c_try_compile "$LINENO" 4234then : 4235 ac_cv_prog_cc_c99=$ac_arg 4236fi 4237rm -f core conftest.err conftest.$ac_objext conftest.beam 4238 test "x$ac_cv_prog_cc_c99" != "xno" && break 4239done 4240rm -f conftest.$ac_ext 4241CC=$ac_save_CC 4242fi 4243 4244if test "x$ac_cv_prog_cc_c99" = xno 4245then : 4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4247printf "%s\n" "unsupported" >&6; } 4248else $as_nop 4249 if test "x$ac_cv_prog_cc_c99" = x 4250then : 4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4252printf "%s\n" "none needed" >&6; } 4253else $as_nop 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4255printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4256 CC="$CC $ac_cv_prog_cc_c99" 4257fi 4258 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4259 ac_prog_cc_stdc=c99 4260fi 4261fi 4262if test x$ac_prog_cc_stdc = xno 4263then : 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4265printf %s "checking for $CC option to enable C89 features... " >&6; } 4266if test ${ac_cv_prog_cc_c89+y} 4267then : 4268 printf %s "(cached) " >&6 4269else $as_nop 4270 ac_cv_prog_cc_c89=no 4271ac_save_CC=$CC 4272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4273/* end confdefs.h. */ 4274$ac_c_conftest_c89_program 4275_ACEOF 4276for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4277do 4278 CC="$ac_save_CC $ac_arg" 4279 if ac_fn_c_try_compile "$LINENO" 4280then : 4281 ac_cv_prog_cc_c89=$ac_arg 4282fi 4283rm -f core conftest.err conftest.$ac_objext conftest.beam 4284 test "x$ac_cv_prog_cc_c89" != "xno" && break 4285done 4286rm -f conftest.$ac_ext 4287CC=$ac_save_CC 4288fi 4289 4290if test "x$ac_cv_prog_cc_c89" = xno 4291then : 4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4293printf "%s\n" "unsupported" >&6; } 4294else $as_nop 4295 if test "x$ac_cv_prog_cc_c89" = x 4296then : 4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4298printf "%s\n" "none needed" >&6; } 4299else $as_nop 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4301printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4302 CC="$CC $ac_cv_prog_cc_c89" 4303fi 4304 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4305 ac_prog_cc_stdc=c89 4306fi 4307fi 4308 4309ac_ext=c 4310ac_cpp='$CPP $CPPFLAGS' 4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4313ac_compiler_gnu=$ac_cv_c_compiler_gnu 4314 4315 4316 ac_ext=c 4317ac_cpp='$CPP $CPPFLAGS' 4318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4320ac_compiler_gnu=$ac_cv_c_compiler_gnu 4321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4322printf %s "checking whether $CC understands -c and -o together... " >&6; } 4323if test ${am_cv_prog_cc_c_o+y} 4324then : 4325 printf %s "(cached) " >&6 4326else $as_nop 4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4328/* end confdefs.h. */ 4329 4330int 4331main (void) 4332{ 4333 4334 ; 4335 return 0; 4336} 4337_ACEOF 4338 # Make sure it works both with $CC and with simple cc. 4339 # Following AC_PROG_CC_C_O, we do the test twice because some 4340 # compilers refuse to overwrite an existing .o file with -o, 4341 # though they will create one. 4342 am_cv_prog_cc_c_o=yes 4343 for am_i in 1 2; do 4344 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4345 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4346 ac_status=$? 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); } \ 4349 && test -f conftest2.$ac_objext; then 4350 : OK 4351 else 4352 am_cv_prog_cc_c_o=no 4353 break 4354 fi 4355 done 4356 rm -f core conftest* 4357 unset am_i 4358fi 4359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4360printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4361if test "$am_cv_prog_cc_c_o" != yes; then 4362 # Losing compiler, so override with the script. 4363 # FIXME: It is wrong to rewrite CC. 4364 # But if we don't then we get into trouble of one sort or another. 4365 # A longer-term fix would be to have automake use am__CC in this case, 4366 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4367 CC="$am_aux_dir/compile $CC" 4368fi 4369ac_ext=c 4370ac_cpp='$CPP $CPPFLAGS' 4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4373ac_compiler_gnu=$ac_cv_c_compiler_gnu 4374 4375 4376depcc="$CC" am_compiler_list= 4377 4378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4379printf %s "checking dependency style of $depcc... " >&6; } 4380if test ${am_cv_CC_dependencies_compiler_type+y} 4381then : 4382 printf %s "(cached) " >&6 4383else $as_nop 4384 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4385 # We make a subdir and do the tests there. Otherwise we can end up 4386 # making bogus files that we don't know about and never remove. For 4387 # instance it was reported that on HP-UX the gcc test will end up 4388 # making a dummy file named 'D' -- because '-MD' means "put the output 4389 # in D". 4390 rm -rf conftest.dir 4391 mkdir conftest.dir 4392 # Copy depcomp to subdir because otherwise we won't find it if we're 4393 # using a relative directory. 4394 cp "$am_depcomp" conftest.dir 4395 cd conftest.dir 4396 # We will build objects and dependencies in a subdirectory because 4397 # it helps to detect inapplicable dependency modes. For instance 4398 # both Tru64's cc and ICC support -MD to output dependencies as a 4399 # side effect of compilation, but ICC will put the dependencies in 4400 # the current directory while Tru64 will put them in the object 4401 # directory. 4402 mkdir sub 4403 4404 am_cv_CC_dependencies_compiler_type=none 4405 if test "$am_compiler_list" = ""; then 4406 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4407 fi 4408 am__universal=false 4409 case " $depcc " in #( 4410 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4411 esac 4412 4413 for depmode in $am_compiler_list; do 4414 # Setup a source with many dependencies, because some compilers 4415 # like to wrap large dependency lists on column 80 (with \), and 4416 # we should not choose a depcomp mode which is confused by this. 4417 # 4418 # We need to recreate these files for each test, as the compiler may 4419 # overwrite some of them when testing with obscure command lines. 4420 # This happens at least with the AIX C compiler. 4421 : > sub/conftest.c 4422 for i in 1 2 3 4 5 6; do 4423 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4424 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4425 # Solaris 10 /bin/sh. 4426 echo '/* dummy */' > sub/conftst$i.h 4427 done 4428 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4429 4430 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4431 # mode. It turns out that the SunPro C++ compiler does not properly 4432 # handle '-M -o', and we need to detect this. Also, some Intel 4433 # versions had trouble with output in subdirs. 4434 am__obj=sub/conftest.${OBJEXT-o} 4435 am__minus_obj="-o $am__obj" 4436 case $depmode in 4437 gcc) 4438 # This depmode causes a compiler race in universal mode. 4439 test "$am__universal" = false || continue 4440 ;; 4441 nosideeffect) 4442 # After this tag, mechanisms are not by side-effect, so they'll 4443 # only be used when explicitly requested. 4444 if test "x$enable_dependency_tracking" = xyes; then 4445 continue 4446 else 4447 break 4448 fi 4449 ;; 4450 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4451 # This compiler won't grok '-c -o', but also, the minuso test has 4452 # not run yet. These depmodes are late enough in the game, and 4453 # so weak that their functioning should not be impacted. 4454 am__obj=conftest.${OBJEXT-o} 4455 am__minus_obj= 4456 ;; 4457 none) break ;; 4458 esac 4459 if depmode=$depmode \ 4460 source=sub/conftest.c object=$am__obj \ 4461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4462 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4463 >/dev/null 2>conftest.err && 4464 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4465 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4466 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4467 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4468 # icc doesn't choke on unknown options, it will just issue warnings 4469 # or remarks (even with -Werror). So we grep stderr for any message 4470 # that says an option was ignored or not supported. 4471 # When given -MP, icc 7.0 and 7.1 complain thusly: 4472 # icc: Command line warning: ignoring option '-M'; no argument required 4473 # The diagnosis changed in icc 8.0: 4474 # icc: Command line remark: option '-MP' not supported 4475 if (grep 'ignoring option' conftest.err || 4476 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4477 am_cv_CC_dependencies_compiler_type=$depmode 4478 break 4479 fi 4480 fi 4481 done 4482 4483 cd .. 4484 rm -rf conftest.dir 4485else 4486 am_cv_CC_dependencies_compiler_type=none 4487fi 4488 4489fi 4490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4491printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4492CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4493 4494 if 4495 test "x$enable_dependency_tracking" != xno \ 4496 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4497 am__fastdepCC_TRUE= 4498 am__fastdepCC_FALSE='#' 4499else 4500 am__fastdepCC_TRUE='#' 4501 am__fastdepCC_FALSE= 4502fi 4503 4504 4505 4506ac_header= ac_cache= 4507for ac_item in $ac_header_c_list 4508do 4509 if test $ac_cache; then 4510 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4511 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4512 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4513 fi 4514 ac_header= ac_cache= 4515 elif test $ac_header; then 4516 ac_cache=$ac_item 4517 else 4518 ac_header=$ac_item 4519 fi 4520done 4521 4522 4523 4524 4525 4526 4527 4528 4529if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4530then : 4531 4532printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4533 4534fi 4535 4536 4537 4538 4539 4540 4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4542printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4543if test ${ac_cv_safe_to_define___extensions__+y} 4544then : 4545 printf %s "(cached) " >&6 4546else $as_nop 4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4548/* end confdefs.h. */ 4549 4550# define __EXTENSIONS__ 1 4551 $ac_includes_default 4552int 4553main (void) 4554{ 4555 4556 ; 4557 return 0; 4558} 4559_ACEOF 4560if ac_fn_c_try_compile "$LINENO" 4561then : 4562 ac_cv_safe_to_define___extensions__=yes 4563else $as_nop 4564 ac_cv_safe_to_define___extensions__=no 4565fi 4566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4567fi 4568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4569printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4570 4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4572printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4573if test ${ac_cv_should_define__xopen_source+y} 4574then : 4575 printf %s "(cached) " >&6 4576else $as_nop 4577 ac_cv_should_define__xopen_source=no 4578 if test $ac_cv_header_wchar_h = yes 4579then : 4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4581/* end confdefs.h. */ 4582 4583 #include <wchar.h> 4584 mbstate_t x; 4585int 4586main (void) 4587{ 4588 4589 ; 4590 return 0; 4591} 4592_ACEOF 4593if ac_fn_c_try_compile "$LINENO" 4594then : 4595 4596else $as_nop 4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4598/* end confdefs.h. */ 4599 4600 #define _XOPEN_SOURCE 500 4601 #include <wchar.h> 4602 mbstate_t x; 4603int 4604main (void) 4605{ 4606 4607 ; 4608 return 0; 4609} 4610_ACEOF 4611if ac_fn_c_try_compile "$LINENO" 4612then : 4613 ac_cv_should_define__xopen_source=yes 4614fi 4615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4616fi 4617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4618fi 4619fi 4620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4621printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4622 4623 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4624 4625 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4626 4627 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4628 4629 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4630 4631 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4632 4633 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4634 4635 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4636 4637 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4638 4639 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4640 4641 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4642 4643 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4644 4645 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4646 4647 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4648 4649 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4650 4651 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4652 4653 if test $ac_cv_header_minix_config_h = yes 4654then : 4655 MINIX=yes 4656 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4657 4658 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4659 4660 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4661 4662else $as_nop 4663 MINIX= 4664fi 4665 if test $ac_cv_safe_to_define___extensions__ = yes 4666then : 4667 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4668 4669fi 4670 if test $ac_cv_should_define__xopen_source = yes 4671then : 4672 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4673 4674fi 4675 4676 4677# Initialize libtool 4678case `pwd` in 4679 *\ * | *\ *) 4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4681printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4682esac 4683 4684 4685 4686macro_version='2.4.7' 4687macro_revision='2.4.7' 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702ltmain=$ac_aux_dir/ltmain.sh 4703 4704 4705 4706 # Make sure we can run config.sub. 4707$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4708 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4709 4710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4711printf %s "checking build system type... " >&6; } 4712if test ${ac_cv_build+y} 4713then : 4714 printf %s "(cached) " >&6 4715else $as_nop 4716 ac_build_alias=$build_alias 4717test "x$ac_build_alias" = x && 4718 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4719test "x$ac_build_alias" = x && 4720 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4721ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4722 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4723 4724fi 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4726printf "%s\n" "$ac_cv_build" >&6; } 4727case $ac_cv_build in 4728*-*-*) ;; 4729*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4730esac 4731build=$ac_cv_build 4732ac_save_IFS=$IFS; IFS='-' 4733set x $ac_cv_build 4734shift 4735build_cpu=$1 4736build_vendor=$2 4737shift; shift 4738# Remember, the first character of IFS is used to create $*, 4739# except with old shells: 4740build_os=$* 4741IFS=$ac_save_IFS 4742case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4743 4744 4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4746printf %s "checking host system type... " >&6; } 4747if test ${ac_cv_host+y} 4748then : 4749 printf %s "(cached) " >&6 4750else $as_nop 4751 if test "x$host_alias" = x; then 4752 ac_cv_host=$ac_cv_build 4753else 4754 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4755 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4756fi 4757 4758fi 4759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4760printf "%s\n" "$ac_cv_host" >&6; } 4761case $ac_cv_host in 4762*-*-*) ;; 4763*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4764esac 4765host=$ac_cv_host 4766ac_save_IFS=$IFS; IFS='-' 4767set x $ac_cv_host 4768shift 4769host_cpu=$1 4770host_vendor=$2 4771shift; shift 4772# Remember, the first character of IFS is used to create $*, 4773# except with old shells: 4774host_os=$* 4775IFS=$ac_save_IFS 4776case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4777 4778 4779# Backslashify metacharacters that are still active within 4780# double-quoted strings. 4781sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4782 4783# Same as above, but do not quote variable references. 4784double_quote_subst='s/\(["`\\]\)/\\\1/g' 4785 4786# Sed substitution to delay expansion of an escaped shell variable in a 4787# double_quote_subst'ed string. 4788delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4789 4790# Sed substitution to delay expansion of an escaped single quote. 4791delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4792 4793# Sed substitution to avoid accidental globbing in evaled expressions 4794no_glob_subst='s/\*/\\\*/g' 4795 4796ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4797ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4798ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4799 4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4801printf %s "checking how to print strings... " >&6; } 4802# Test print first, because it will be a builtin if present. 4803if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4804 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4805 ECHO='print -r --' 4806elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4807 ECHO='printf %s\n' 4808else 4809 # Use this function as a fallback that always works. 4810 func_fallback_echo () 4811 { 4812 eval 'cat <<_LTECHO_EOF 4813$1 4814_LTECHO_EOF' 4815 } 4816 ECHO='func_fallback_echo' 4817fi 4818 4819# func_echo_all arg... 4820# Invoke $ECHO with all args, space-separated. 4821func_echo_all () 4822{ 4823 $ECHO "" 4824} 4825 4826case $ECHO in 4827 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4828printf "%s\n" "printf" >&6; } ;; 4829 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4830printf "%s\n" "print -r" >&6; } ;; 4831 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4832printf "%s\n" "cat" >&6; } ;; 4833esac 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4849printf %s "checking for a sed that does not truncate output... " >&6; } 4850if test ${ac_cv_path_SED+y} 4851then : 4852 printf %s "(cached) " >&6 4853else $as_nop 4854 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4855 for ac_i in 1 2 3 4 5 6 7; do 4856 ac_script="$ac_script$as_nl$ac_script" 4857 done 4858 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4859 { ac_script=; unset ac_script;} 4860 if test -z "$SED"; then 4861 ac_path_SED_found=false 4862 # Loop through the user's path and test for each of PROGNAME-LIST 4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864for as_dir in $PATH 4865do 4866 IFS=$as_save_IFS 4867 case $as_dir in #((( 4868 '') as_dir=./ ;; 4869 */) ;; 4870 *) as_dir=$as_dir/ ;; 4871 esac 4872 for ac_prog in sed gsed 4873 do 4874 for ac_exec_ext in '' $ac_executable_extensions; do 4875 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4876 as_fn_executable_p "$ac_path_SED" || continue 4877# Check for GNU ac_path_SED and select it if it is found. 4878 # Check for GNU $ac_path_SED 4879case `"$ac_path_SED" --version 2>&1` in 4880*GNU*) 4881 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4882*) 4883 ac_count=0 4884 printf %s 0123456789 >"conftest.in" 4885 while : 4886 do 4887 cat "conftest.in" "conftest.in" >"conftest.tmp" 4888 mv "conftest.tmp" "conftest.in" 4889 cp "conftest.in" "conftest.nl" 4890 printf "%s\n" '' >> "conftest.nl" 4891 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4893 as_fn_arith $ac_count + 1 && ac_count=$as_val 4894 if test $ac_count -gt ${ac_path_SED_max-0}; then 4895 # Best one so far, save it but keep looking for a better one 4896 ac_cv_path_SED="$ac_path_SED" 4897 ac_path_SED_max=$ac_count 4898 fi 4899 # 10*(2^10) chars as input seems more than enough 4900 test $ac_count -gt 10 && break 4901 done 4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4903esac 4904 4905 $ac_path_SED_found && break 3 4906 done 4907 done 4908 done 4909IFS=$as_save_IFS 4910 if test -z "$ac_cv_path_SED"; then 4911 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4912 fi 4913else 4914 ac_cv_path_SED=$SED 4915fi 4916 4917fi 4918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4919printf "%s\n" "$ac_cv_path_SED" >&6; } 4920 SED="$ac_cv_path_SED" 4921 rm -f conftest.sed 4922 4923test -z "$SED" && SED=sed 4924Xsed="$SED -e 1s/^X//" 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4937printf %s "checking for grep that handles long lines and -e... " >&6; } 4938if test ${ac_cv_path_GREP+y} 4939then : 4940 printf %s "(cached) " >&6 4941else $as_nop 4942 if test -z "$GREP"; then 4943 ac_path_GREP_found=false 4944 # Loop through the user's path and test for each of PROGNAME-LIST 4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4947do 4948 IFS=$as_save_IFS 4949 case $as_dir in #((( 4950 '') as_dir=./ ;; 4951 */) ;; 4952 *) as_dir=$as_dir/ ;; 4953 esac 4954 for ac_prog in grep ggrep 4955 do 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4958 as_fn_executable_p "$ac_path_GREP" || continue 4959# Check for GNU ac_path_GREP and select it if it is found. 4960 # Check for GNU $ac_path_GREP 4961case `"$ac_path_GREP" --version 2>&1` in 4962*GNU*) 4963 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4964*) 4965 ac_count=0 4966 printf %s 0123456789 >"conftest.in" 4967 while : 4968 do 4969 cat "conftest.in" "conftest.in" >"conftest.tmp" 4970 mv "conftest.tmp" "conftest.in" 4971 cp "conftest.in" "conftest.nl" 4972 printf "%s\n" 'GREP' >> "conftest.nl" 4973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4975 as_fn_arith $ac_count + 1 && ac_count=$as_val 4976 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4977 # Best one so far, save it but keep looking for a better one 4978 ac_cv_path_GREP="$ac_path_GREP" 4979 ac_path_GREP_max=$ac_count 4980 fi 4981 # 10*(2^10) chars as input seems more than enough 4982 test $ac_count -gt 10 && break 4983 done 4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4985esac 4986 4987 $ac_path_GREP_found && break 3 4988 done 4989 done 4990 done 4991IFS=$as_save_IFS 4992 if test -z "$ac_cv_path_GREP"; then 4993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4994 fi 4995else 4996 ac_cv_path_GREP=$GREP 4997fi 4998 4999fi 5000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5001printf "%s\n" "$ac_cv_path_GREP" >&6; } 5002 GREP="$ac_cv_path_GREP" 5003 5004 5005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5006printf %s "checking for egrep... " >&6; } 5007if test ${ac_cv_path_EGREP+y} 5008then : 5009 printf %s "(cached) " >&6 5010else $as_nop 5011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5012 then ac_cv_path_EGREP="$GREP -E" 5013 else 5014 if test -z "$EGREP"; then 5015 ac_path_EGREP_found=false 5016 # Loop through the user's path and test for each of PROGNAME-LIST 5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5019do 5020 IFS=$as_save_IFS 5021 case $as_dir in #((( 5022 '') as_dir=./ ;; 5023 */) ;; 5024 *) as_dir=$as_dir/ ;; 5025 esac 5026 for ac_prog in egrep 5027 do 5028 for ac_exec_ext in '' $ac_executable_extensions; do 5029 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5030 as_fn_executable_p "$ac_path_EGREP" || continue 5031# Check for GNU ac_path_EGREP and select it if it is found. 5032 # Check for GNU $ac_path_EGREP 5033case `"$ac_path_EGREP" --version 2>&1` in 5034*GNU*) 5035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5036*) 5037 ac_count=0 5038 printf %s 0123456789 >"conftest.in" 5039 while : 5040 do 5041 cat "conftest.in" "conftest.in" >"conftest.tmp" 5042 mv "conftest.tmp" "conftest.in" 5043 cp "conftest.in" "conftest.nl" 5044 printf "%s\n" 'EGREP' >> "conftest.nl" 5045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5047 as_fn_arith $ac_count + 1 && ac_count=$as_val 5048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5049 # Best one so far, save it but keep looking for a better one 5050 ac_cv_path_EGREP="$ac_path_EGREP" 5051 ac_path_EGREP_max=$ac_count 5052 fi 5053 # 10*(2^10) chars as input seems more than enough 5054 test $ac_count -gt 10 && break 5055 done 5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5057esac 5058 5059 $ac_path_EGREP_found && break 3 5060 done 5061 done 5062 done 5063IFS=$as_save_IFS 5064 if test -z "$ac_cv_path_EGREP"; then 5065 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5066 fi 5067else 5068 ac_cv_path_EGREP=$EGREP 5069fi 5070 5071 fi 5072fi 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5074printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5075 EGREP="$ac_cv_path_EGREP" 5076 5077 5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5079printf %s "checking for fgrep... " >&6; } 5080if test ${ac_cv_path_FGREP+y} 5081then : 5082 printf %s "(cached) " >&6 5083else $as_nop 5084 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5085 then ac_cv_path_FGREP="$GREP -F" 5086 else 5087 if test -z "$FGREP"; then 5088 ac_path_FGREP_found=false 5089 # Loop through the user's path and test for each of PROGNAME-LIST 5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5092do 5093 IFS=$as_save_IFS 5094 case $as_dir in #((( 5095 '') as_dir=./ ;; 5096 */) ;; 5097 *) as_dir=$as_dir/ ;; 5098 esac 5099 for ac_prog in fgrep 5100 do 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5103 as_fn_executable_p "$ac_path_FGREP" || continue 5104# Check for GNU ac_path_FGREP and select it if it is found. 5105 # Check for GNU $ac_path_FGREP 5106case `"$ac_path_FGREP" --version 2>&1` in 5107*GNU*) 5108 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5109*) 5110 ac_count=0 5111 printf %s 0123456789 >"conftest.in" 5112 while : 5113 do 5114 cat "conftest.in" "conftest.in" >"conftest.tmp" 5115 mv "conftest.tmp" "conftest.in" 5116 cp "conftest.in" "conftest.nl" 5117 printf "%s\n" 'FGREP' >> "conftest.nl" 5118 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5120 as_fn_arith $ac_count + 1 && ac_count=$as_val 5121 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5122 # Best one so far, save it but keep looking for a better one 5123 ac_cv_path_FGREP="$ac_path_FGREP" 5124 ac_path_FGREP_max=$ac_count 5125 fi 5126 # 10*(2^10) chars as input seems more than enough 5127 test $ac_count -gt 10 && break 5128 done 5129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5130esac 5131 5132 $ac_path_FGREP_found && break 3 5133 done 5134 done 5135 done 5136IFS=$as_save_IFS 5137 if test -z "$ac_cv_path_FGREP"; then 5138 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5139 fi 5140else 5141 ac_cv_path_FGREP=$FGREP 5142fi 5143 5144 fi 5145fi 5146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5147printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5148 FGREP="$ac_cv_path_FGREP" 5149 5150 5151test -z "$GREP" && GREP=grep 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171# Check whether --with-gnu-ld was given. 5172if test ${with_gnu_ld+y} 5173then : 5174 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5175else $as_nop 5176 with_gnu_ld=no 5177fi 5178 5179ac_prog=ld 5180if test yes = "$GCC"; then 5181 # Check if gcc -print-prog-name=ld gives a path. 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5183printf %s "checking for ld used by $CC... " >&6; } 5184 case $host in 5185 *-*-mingw*) 5186 # gcc leaves a trailing carriage return, which upsets mingw 5187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5188 *) 5189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5190 esac 5191 case $ac_prog in 5192 # Accept absolute paths. 5193 [\\/]* | ?:[\\/]*) 5194 re_direlt='/[^/][^/]*/\.\./' 5195 # Canonicalize the pathname of ld 5196 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5197 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5198 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5199 done 5200 test -z "$LD" && LD=$ac_prog 5201 ;; 5202 "") 5203 # If it fails, then pretend we aren't using GCC. 5204 ac_prog=ld 5205 ;; 5206 *) 5207 # If it is relative, then search for the first ld in PATH. 5208 with_gnu_ld=unknown 5209 ;; 5210 esac 5211elif test yes = "$with_gnu_ld"; then 5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5213printf %s "checking for GNU ld... " >&6; } 5214else 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5216printf %s "checking for non-GNU ld... " >&6; } 5217fi 5218if test ${lt_cv_path_LD+y} 5219then : 5220 printf %s "(cached) " >&6 5221else $as_nop 5222 if test -z "$LD"; then 5223 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5224 for ac_dir in $PATH; do 5225 IFS=$lt_save_ifs 5226 test -z "$ac_dir" && ac_dir=. 5227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5228 lt_cv_path_LD=$ac_dir/$ac_prog 5229 # Check to see if the program is GNU ld. I'd rather use --version, 5230 # but apparently some variants of GNU ld only accept -v. 5231 # Break only if it was the GNU/non-GNU ld that we prefer. 5232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5233 *GNU* | *'with BFD'*) 5234 test no != "$with_gnu_ld" && break 5235 ;; 5236 *) 5237 test yes != "$with_gnu_ld" && break 5238 ;; 5239 esac 5240 fi 5241 done 5242 IFS=$lt_save_ifs 5243else 5244 lt_cv_path_LD=$LD # Let the user override the test with a path. 5245fi 5246fi 5247 5248LD=$lt_cv_path_LD 5249if test -n "$LD"; then 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5251printf "%s\n" "$LD" >&6; } 5252else 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254printf "%s\n" "no" >&6; } 5255fi 5256test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5258printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5259if test ${lt_cv_prog_gnu_ld+y} 5260then : 5261 printf %s "(cached) " >&6 5262else $as_nop 5263 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5264case `$LD -v 2>&1 </dev/null` in 5265*GNU* | *'with BFD'*) 5266 lt_cv_prog_gnu_ld=yes 5267 ;; 5268*) 5269 lt_cv_prog_gnu_ld=no 5270 ;; 5271esac 5272fi 5273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5274printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5275with_gnu_ld=$lt_cv_prog_gnu_ld 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5286printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5287if test ${lt_cv_path_NM+y} 5288then : 5289 printf %s "(cached) " >&6 5290else $as_nop 5291 if test -n "$NM"; then 5292 # Let the user override the test. 5293 lt_cv_path_NM=$NM 5294else 5295 lt_nm_to_check=${ac_tool_prefix}nm 5296 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5297 lt_nm_to_check="$lt_nm_to_check nm" 5298 fi 5299 for lt_tmp_nm in $lt_nm_to_check; do 5300 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5301 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5302 IFS=$lt_save_ifs 5303 test -z "$ac_dir" && ac_dir=. 5304 tmp_nm=$ac_dir/$lt_tmp_nm 5305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5306 # Check to see if the nm accepts a BSD-compat flag. 5307 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5308 # nm: unknown option "B" ignored 5309 # Tru64's nm complains that /dev/null is an invalid object file 5310 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5311 case $build_os in 5312 mingw*) lt_bad_file=conftest.nm/nofile ;; 5313 *) lt_bad_file=/dev/null ;; 5314 esac 5315 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5316 *$lt_bad_file* | *'Invalid file or object type'*) 5317 lt_cv_path_NM="$tmp_nm -B" 5318 break 2 5319 ;; 5320 *) 5321 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5322 */dev/null*) 5323 lt_cv_path_NM="$tmp_nm -p" 5324 break 2 5325 ;; 5326 *) 5327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5328 continue # so that we can try to find one that supports BSD flags 5329 ;; 5330 esac 5331 ;; 5332 esac 5333 fi 5334 done 5335 IFS=$lt_save_ifs 5336 done 5337 : ${lt_cv_path_NM=no} 5338fi 5339fi 5340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5341printf "%s\n" "$lt_cv_path_NM" >&6; } 5342if test no != "$lt_cv_path_NM"; then 5343 NM=$lt_cv_path_NM 5344else 5345 # Didn't find any BSD compatible name lister, look for dumpbin. 5346 if test -n "$DUMPBIN"; then : 5347 # Let the user override the test. 5348 else 5349 if test -n "$ac_tool_prefix"; then 5350 for ac_prog in dumpbin "link -dump" 5351 do 5352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5353set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5355printf %s "checking for $ac_word... " >&6; } 5356if test ${ac_cv_prog_DUMPBIN+y} 5357then : 5358 printf %s "(cached) " >&6 5359else $as_nop 5360 if test -n "$DUMPBIN"; then 5361 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5362else 5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5364for as_dir in $PATH 5365do 5366 IFS=$as_save_IFS 5367 case $as_dir in #((( 5368 '') as_dir=./ ;; 5369 */) ;; 5370 *) as_dir=$as_dir/ ;; 5371 esac 5372 for ac_exec_ext in '' $ac_executable_extensions; do 5373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5374 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5376 break 2 5377 fi 5378done 5379 done 5380IFS=$as_save_IFS 5381 5382fi 5383fi 5384DUMPBIN=$ac_cv_prog_DUMPBIN 5385if test -n "$DUMPBIN"; then 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5387printf "%s\n" "$DUMPBIN" >&6; } 5388else 5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390printf "%s\n" "no" >&6; } 5391fi 5392 5393 5394 test -n "$DUMPBIN" && break 5395 done 5396fi 5397if test -z "$DUMPBIN"; then 5398 ac_ct_DUMPBIN=$DUMPBIN 5399 for ac_prog in dumpbin "link -dump" 5400do 5401 # Extract the first word of "$ac_prog", so it can be a program name with args. 5402set dummy $ac_prog; ac_word=$2 5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5404printf %s "checking for $ac_word... " >&6; } 5405if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5406then : 5407 printf %s "(cached) " >&6 5408else $as_nop 5409 if test -n "$ac_ct_DUMPBIN"; then 5410 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5411else 5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413for as_dir in $PATH 5414do 5415 IFS=$as_save_IFS 5416 case $as_dir in #((( 5417 '') as_dir=./ ;; 5418 */) ;; 5419 *) as_dir=$as_dir/ ;; 5420 esac 5421 for ac_exec_ext in '' $ac_executable_extensions; do 5422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5423 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5425 break 2 5426 fi 5427done 5428 done 5429IFS=$as_save_IFS 5430 5431fi 5432fi 5433ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5434if test -n "$ac_ct_DUMPBIN"; then 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5436printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5437else 5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5439printf "%s\n" "no" >&6; } 5440fi 5441 5442 5443 test -n "$ac_ct_DUMPBIN" && break 5444done 5445 5446 if test "x$ac_ct_DUMPBIN" = x; then 5447 DUMPBIN=":" 5448 else 5449 case $cross_compiling:$ac_tool_warned in 5450yes:) 5451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5452printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5453ac_tool_warned=yes ;; 5454esac 5455 DUMPBIN=$ac_ct_DUMPBIN 5456 fi 5457fi 5458 5459 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5460 *COFF*) 5461 DUMPBIN="$DUMPBIN -symbols -headers" 5462 ;; 5463 *) 5464 DUMPBIN=: 5465 ;; 5466 esac 5467 fi 5468 5469 if test : != "$DUMPBIN"; then 5470 NM=$DUMPBIN 5471 fi 5472fi 5473test -z "$NM" && NM=nm 5474 5475 5476 5477 5478 5479 5480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5481printf %s "checking the name lister ($NM) interface... " >&6; } 5482if test ${lt_cv_nm_interface+y} 5483then : 5484 printf %s "(cached) " >&6 5485else $as_nop 5486 lt_cv_nm_interface="BSD nm" 5487 echo "int some_variable = 0;" > conftest.$ac_ext 5488 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5489 (eval "$ac_compile" 2>conftest.err) 5490 cat conftest.err >&5 5491 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5492 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5493 cat conftest.err >&5 5494 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5495 cat conftest.out >&5 5496 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5497 lt_cv_nm_interface="MS dumpbin" 5498 fi 5499 rm -f conftest* 5500fi 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5502printf "%s\n" "$lt_cv_nm_interface" >&6; } 5503 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5505printf %s "checking whether ln -s works... " >&6; } 5506LN_S=$as_ln_s 5507if test "$LN_S" = "ln -s"; then 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5509printf "%s\n" "yes" >&6; } 5510else 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5512printf "%s\n" "no, using $LN_S" >&6; } 5513fi 5514 5515# find the maximum length of command line arguments 5516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5517printf %s "checking the maximum length of command line arguments... " >&6; } 5518if test ${lt_cv_sys_max_cmd_len+y} 5519then : 5520 printf %s "(cached) " >&6 5521else $as_nop 5522 i=0 5523 teststring=ABCD 5524 5525 case $build_os in 5526 msdosdjgpp*) 5527 # On DJGPP, this test can blow up pretty badly due to problems in libc 5528 # (any single argument exceeding 2000 bytes causes a buffer overrun 5529 # during glob expansion). Even if it were fixed, the result of this 5530 # check would be larger than it should be. 5531 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5532 ;; 5533 5534 gnu*) 5535 # Under GNU Hurd, this test is not required because there is 5536 # no limit to the length of command line arguments. 5537 # Libtool will interpret -1 as no limit whatsoever 5538 lt_cv_sys_max_cmd_len=-1; 5539 ;; 5540 5541 cygwin* | mingw* | cegcc*) 5542 # On Win9x/ME, this test blows up -- it succeeds, but takes 5543 # about 5 minutes as the teststring grows exponentially. 5544 # Worse, since 9x/ME are not pre-emptively multitasking, 5545 # you end up with a "frozen" computer, even though with patience 5546 # the test eventually succeeds (with a max line length of 256k). 5547 # Instead, let's just punt: use the minimum linelength reported by 5548 # all of the supported platforms: 8192 (on NT/2K/XP). 5549 lt_cv_sys_max_cmd_len=8192; 5550 ;; 5551 5552 mint*) 5553 # On MiNT this can take a long time and run out of memory. 5554 lt_cv_sys_max_cmd_len=8192; 5555 ;; 5556 5557 amigaos*) 5558 # On AmigaOS with pdksh, this test takes hours, literally. 5559 # So we just punt and use a minimum line length of 8192. 5560 lt_cv_sys_max_cmd_len=8192; 5561 ;; 5562 5563 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5564 # This has been around since 386BSD, at least. Likely further. 5565 if test -x /sbin/sysctl; then 5566 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5567 elif test -x /usr/sbin/sysctl; then 5568 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5569 else 5570 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5571 fi 5572 # And add a safety zone 5573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5575 ;; 5576 5577 interix*) 5578 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5579 lt_cv_sys_max_cmd_len=196608 5580 ;; 5581 5582 os2*) 5583 # The test takes a long time on OS/2. 5584 lt_cv_sys_max_cmd_len=8192 5585 ;; 5586 5587 osf*) 5588 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5589 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5590 # nice to cause kernel panics so lets avoid the loop below. 5591 # First set a reasonable default. 5592 lt_cv_sys_max_cmd_len=16384 5593 # 5594 if test -x /sbin/sysconfig; then 5595 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5596 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5597 esac 5598 fi 5599 ;; 5600 sco3.2v5*) 5601 lt_cv_sys_max_cmd_len=102400 5602 ;; 5603 sysv5* | sco5v6* | sysv4.2uw2*) 5604 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5605 if test -n "$kargmax"; then 5606 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5607 else 5608 lt_cv_sys_max_cmd_len=32768 5609 fi 5610 ;; 5611 *) 5612 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5613 if test -n "$lt_cv_sys_max_cmd_len" && \ 5614 test undefined != "$lt_cv_sys_max_cmd_len"; then 5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5617 else 5618 # Make teststring a little bigger before we do anything with it. 5619 # a 1K string should be a reasonable start. 5620 for i in 1 2 3 4 5 6 7 8; do 5621 teststring=$teststring$teststring 5622 done 5623 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5624 # If test is not a shell built-in, we'll probably end up computing a 5625 # maximum length that is only half of the actual maximum length, but 5626 # we can't tell. 5627 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5628 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5629 test 17 != "$i" # 1/2 MB should be enough 5630 do 5631 i=`expr $i + 1` 5632 teststring=$teststring$teststring 5633 done 5634 # Only check the string length outside the loop. 5635 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5636 teststring= 5637 # Add a significant safety factor because C++ compilers can tack on 5638 # massive amounts of additional arguments before passing them to the 5639 # linker. It appears as though 1/2 is a usable value. 5640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5641 fi 5642 ;; 5643 esac 5644 5645fi 5646 5647if test -n "$lt_cv_sys_max_cmd_len"; then 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5649printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5650else 5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5652printf "%s\n" "none" >&6; } 5653fi 5654max_cmd_len=$lt_cv_sys_max_cmd_len 5655 5656 5657 5658 5659 5660 5661: ${CP="cp -f"} 5662: ${MV="mv -f"} 5663: ${RM="rm -f"} 5664 5665if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5666 lt_unset=unset 5667else 5668 lt_unset=false 5669fi 5670 5671 5672 5673 5674 5675# test EBCDIC or ASCII 5676case `echo X|tr X '\101'` in 5677 A) # ASCII based system 5678 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5679 lt_SP2NL='tr \040 \012' 5680 lt_NL2SP='tr \015\012 \040\040' 5681 ;; 5682 *) # EBCDIC based system 5683 lt_SP2NL='tr \100 \n' 5684 lt_NL2SP='tr \r\n \100\100' 5685 ;; 5686esac 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5697printf %s "checking how to convert $build file names to $host format... " >&6; } 5698if test ${lt_cv_to_host_file_cmd+y} 5699then : 5700 printf %s "(cached) " >&6 5701else $as_nop 5702 case $host in 5703 *-*-mingw* ) 5704 case $build in 5705 *-*-mingw* ) # actually msys 5706 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5707 ;; 5708 *-*-cygwin* ) 5709 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5710 ;; 5711 * ) # otherwise, assume *nix 5712 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5713 ;; 5714 esac 5715 ;; 5716 *-*-cygwin* ) 5717 case $build in 5718 *-*-mingw* ) # actually msys 5719 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5720 ;; 5721 *-*-cygwin* ) 5722 lt_cv_to_host_file_cmd=func_convert_file_noop 5723 ;; 5724 * ) # otherwise, assume *nix 5725 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5726 ;; 5727 esac 5728 ;; 5729 * ) # unhandled hosts (and "normal" native builds) 5730 lt_cv_to_host_file_cmd=func_convert_file_noop 5731 ;; 5732esac 5733 5734fi 5735 5736to_host_file_cmd=$lt_cv_to_host_file_cmd 5737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5738printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5739 5740 5741 5742 5743 5744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5745printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5746if test ${lt_cv_to_tool_file_cmd+y} 5747then : 5748 printf %s "(cached) " >&6 5749else $as_nop 5750 #assume ordinary cross tools, or native build. 5751lt_cv_to_tool_file_cmd=func_convert_file_noop 5752case $host in 5753 *-*-mingw* ) 5754 case $build in 5755 *-*-mingw* ) # actually msys 5756 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5757 ;; 5758 esac 5759 ;; 5760esac 5761 5762fi 5763 5764to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5766printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5767 5768 5769 5770 5771 5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5773printf %s "checking for $LD option to reload object files... " >&6; } 5774if test ${lt_cv_ld_reload_flag+y} 5775then : 5776 printf %s "(cached) " >&6 5777else $as_nop 5778 lt_cv_ld_reload_flag='-r' 5779fi 5780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5781printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5782reload_flag=$lt_cv_ld_reload_flag 5783case $reload_flag in 5784"" | " "*) ;; 5785*) reload_flag=" $reload_flag" ;; 5786esac 5787reload_cmds='$LD$reload_flag -o $output$reload_objs' 5788case $host_os in 5789 cygwin* | mingw* | pw32* | cegcc*) 5790 if test yes != "$GCC"; then 5791 reload_cmds=false 5792 fi 5793 ;; 5794 darwin*) 5795 if test yes = "$GCC"; then 5796 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5797 else 5798 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5799 fi 5800 ;; 5801esac 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811if test -n "$ac_tool_prefix"; then 5812 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5813set dummy ${ac_tool_prefix}file; ac_word=$2 5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5815printf %s "checking for $ac_word... " >&6; } 5816if test ${ac_cv_prog_FILECMD+y} 5817then : 5818 printf %s "(cached) " >&6 5819else $as_nop 5820 if test -n "$FILECMD"; then 5821 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5822else 5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824for as_dir in $PATH 5825do 5826 IFS=$as_save_IFS 5827 case $as_dir in #((( 5828 '') as_dir=./ ;; 5829 */) ;; 5830 *) as_dir=$as_dir/ ;; 5831 esac 5832 for ac_exec_ext in '' $ac_executable_extensions; do 5833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5834 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5836 break 2 5837 fi 5838done 5839 done 5840IFS=$as_save_IFS 5841 5842fi 5843fi 5844FILECMD=$ac_cv_prog_FILECMD 5845if test -n "$FILECMD"; then 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5847printf "%s\n" "$FILECMD" >&6; } 5848else 5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5850printf "%s\n" "no" >&6; } 5851fi 5852 5853 5854fi 5855if test -z "$ac_cv_prog_FILECMD"; then 5856 ac_ct_FILECMD=$FILECMD 5857 # Extract the first word of "file", so it can be a program name with args. 5858set dummy file; ac_word=$2 5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5860printf %s "checking for $ac_word... " >&6; } 5861if test ${ac_cv_prog_ac_ct_FILECMD+y} 5862then : 5863 printf %s "(cached) " >&6 5864else $as_nop 5865 if test -n "$ac_ct_FILECMD"; then 5866 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5867else 5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH 5870do 5871 IFS=$as_save_IFS 5872 case $as_dir in #((( 5873 '') as_dir=./ ;; 5874 */) ;; 5875 *) as_dir=$as_dir/ ;; 5876 esac 5877 for ac_exec_ext in '' $ac_executable_extensions; do 5878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5879 ac_cv_prog_ac_ct_FILECMD="file" 5880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5881 break 2 5882 fi 5883done 5884 done 5885IFS=$as_save_IFS 5886 5887fi 5888fi 5889ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5890if test -n "$ac_ct_FILECMD"; then 5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5892printf "%s\n" "$ac_ct_FILECMD" >&6; } 5893else 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5895printf "%s\n" "no" >&6; } 5896fi 5897 5898 if test "x$ac_ct_FILECMD" = x; then 5899 FILECMD=":" 5900 else 5901 case $cross_compiling:$ac_tool_warned in 5902yes:) 5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5904printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5905ac_tool_warned=yes ;; 5906esac 5907 FILECMD=$ac_ct_FILECMD 5908 fi 5909else 5910 FILECMD="$ac_cv_prog_FILECMD" 5911fi 5912 5913 5914 5915 5916 5917 5918 5919if test -n "$ac_tool_prefix"; then 5920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5921set dummy ${ac_tool_prefix}objdump; ac_word=$2 5922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5923printf %s "checking for $ac_word... " >&6; } 5924if test ${ac_cv_prog_OBJDUMP+y} 5925then : 5926 printf %s "(cached) " >&6 5927else $as_nop 5928 if test -n "$OBJDUMP"; then 5929 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5930else 5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 case $as_dir in #((( 5936 '') as_dir=./ ;; 5937 */) ;; 5938 *) as_dir=$as_dir/ ;; 5939 esac 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5942 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947 done 5948IFS=$as_save_IFS 5949 5950fi 5951fi 5952OBJDUMP=$ac_cv_prog_OBJDUMP 5953if test -n "$OBJDUMP"; then 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5955printf "%s\n" "$OBJDUMP" >&6; } 5956else 5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958printf "%s\n" "no" >&6; } 5959fi 5960 5961 5962fi 5963if test -z "$ac_cv_prog_OBJDUMP"; then 5964 ac_ct_OBJDUMP=$OBJDUMP 5965 # Extract the first word of "objdump", so it can be a program name with args. 5966set dummy objdump; ac_word=$2 5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5968printf %s "checking for $ac_word... " >&6; } 5969if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5970then : 5971 printf %s "(cached) " >&6 5972else $as_nop 5973 if test -n "$ac_ct_OBJDUMP"; then 5974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5975else 5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977for as_dir in $PATH 5978do 5979 IFS=$as_save_IFS 5980 case $as_dir in #((( 5981 '') as_dir=./ ;; 5982 */) ;; 5983 *) as_dir=$as_dir/ ;; 5984 esac 5985 for ac_exec_ext in '' $ac_executable_extensions; do 5986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5987 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5989 break 2 5990 fi 5991done 5992 done 5993IFS=$as_save_IFS 5994 5995fi 5996fi 5997ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5998if test -n "$ac_ct_OBJDUMP"; then 5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6000printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6001else 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6003printf "%s\n" "no" >&6; } 6004fi 6005 6006 if test "x$ac_ct_OBJDUMP" = x; then 6007 OBJDUMP="false" 6008 else 6009 case $cross_compiling:$ac_tool_warned in 6010yes:) 6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6012printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6013ac_tool_warned=yes ;; 6014esac 6015 OBJDUMP=$ac_ct_OBJDUMP 6016 fi 6017else 6018 OBJDUMP="$ac_cv_prog_OBJDUMP" 6019fi 6020 6021test -z "$OBJDUMP" && OBJDUMP=objdump 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6032printf %s "checking how to recognize dependent libraries... " >&6; } 6033if test ${lt_cv_deplibs_check_method+y} 6034then : 6035 printf %s "(cached) " >&6 6036else $as_nop 6037 lt_cv_file_magic_cmd='$MAGIC_CMD' 6038lt_cv_file_magic_test_file= 6039lt_cv_deplibs_check_method='unknown' 6040# Need to set the preceding variable on all platforms that support 6041# interlibrary dependencies. 6042# 'none' -- dependencies not supported. 6043# 'unknown' -- same as none, but documents that we really don't know. 6044# 'pass_all' -- all dependencies passed with no checks. 6045# 'test_compile' -- check by making test program. 6046# 'file_magic [[regex]]' -- check by looking for files in library path 6047# that responds to the $file_magic_cmd with a given extended regex. 6048# If you have 'file' or equivalent on your system and you're not sure 6049# whether 'pass_all' will *always* work, you probably want this one. 6050 6051case $host_os in 6052aix[4-9]*) 6053 lt_cv_deplibs_check_method=pass_all 6054 ;; 6055 6056beos*) 6057 lt_cv_deplibs_check_method=pass_all 6058 ;; 6059 6060bsdi[45]*) 6061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6062 lt_cv_file_magic_cmd='$FILECMD -L' 6063 lt_cv_file_magic_test_file=/shlib/libc.so 6064 ;; 6065 6066cygwin*) 6067 # func_win32_libid is a shell function defined in ltmain.sh 6068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6069 lt_cv_file_magic_cmd='func_win32_libid' 6070 ;; 6071 6072mingw* | pw32*) 6073 # Base MSYS/MinGW do not provide the 'file' command needed by 6074 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6075 # unless we find 'file', for example because we are cross-compiling. 6076 if ( file / ) >/dev/null 2>&1; then 6077 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6078 lt_cv_file_magic_cmd='func_win32_libid' 6079 else 6080 # Keep this pattern in sync with the one in func_win32_libid. 6081 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6082 lt_cv_file_magic_cmd='$OBJDUMP -f' 6083 fi 6084 ;; 6085 6086cegcc*) 6087 # use the weaker test based on 'objdump'. See mingw*. 6088 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6089 lt_cv_file_magic_cmd='$OBJDUMP -f' 6090 ;; 6091 6092darwin* | rhapsody*) 6093 lt_cv_deplibs_check_method=pass_all 6094 ;; 6095 6096freebsd* | dragonfly* | midnightbsd*) 6097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6098 case $host_cpu in 6099 i*86 ) 6100 # Not sure whether the presence of OpenBSD here was a mistake. 6101 # Let's accept both of them until this is cleared up. 6102 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6103 lt_cv_file_magic_cmd=$FILECMD 6104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6105 ;; 6106 esac 6107 else 6108 lt_cv_deplibs_check_method=pass_all 6109 fi 6110 ;; 6111 6112haiku*) 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 6116hpux10.20* | hpux11*) 6117 lt_cv_file_magic_cmd=$FILECMD 6118 case $host_cpu in 6119 ia64*) 6120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6121 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6122 ;; 6123 hppa*64*) 6124 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]' 6125 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6126 ;; 6127 *) 6128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6129 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6130 ;; 6131 esac 6132 ;; 6133 6134interix[3-9]*) 6135 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6137 ;; 6138 6139irix5* | irix6* | nonstopux*) 6140 case $LD in 6141 *-32|*"-32 ") libmagic=32-bit;; 6142 *-n32|*"-n32 ") libmagic=N32;; 6143 *-64|*"-64 ") libmagic=64-bit;; 6144 *) libmagic=never-match;; 6145 esac 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149# This must be glibc/ELF. 6150linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 6154netbsd*) 6155 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6157 else 6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6159 fi 6160 ;; 6161 6162newos6*) 6163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6164 lt_cv_file_magic_cmd=$FILECMD 6165 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6166 ;; 6167 6168*nto* | *qnx*) 6169 lt_cv_deplibs_check_method=pass_all 6170 ;; 6171 6172openbsd* | bitrig*) 6173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6175 else 6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6177 fi 6178 ;; 6179 6180osf3* | osf4* | osf5*) 6181 lt_cv_deplibs_check_method=pass_all 6182 ;; 6183 6184rdos*) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187 6188solaris*) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 6192sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6193 lt_cv_deplibs_check_method=pass_all 6194 ;; 6195 6196sysv4 | sysv4.3*) 6197 case $host_vendor in 6198 motorola) 6199 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]' 6200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6201 ;; 6202 ncr) 6203 lt_cv_deplibs_check_method=pass_all 6204 ;; 6205 sequent) 6206 lt_cv_file_magic_cmd='/bin/file' 6207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6208 ;; 6209 sni) 6210 lt_cv_file_magic_cmd='/bin/file' 6211 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6212 lt_cv_file_magic_test_file=/lib/libc.so 6213 ;; 6214 siemens) 6215 lt_cv_deplibs_check_method=pass_all 6216 ;; 6217 pc) 6218 lt_cv_deplibs_check_method=pass_all 6219 ;; 6220 esac 6221 ;; 6222 6223tpf*) 6224 lt_cv_deplibs_check_method=pass_all 6225 ;; 6226os2*) 6227 lt_cv_deplibs_check_method=pass_all 6228 ;; 6229esac 6230 6231fi 6232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6233printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6234 6235file_magic_glob= 6236want_nocaseglob=no 6237if test "$build" = "$host"; then 6238 case $host_os in 6239 mingw* | pw32*) 6240 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6241 want_nocaseglob=yes 6242 else 6243 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6244 fi 6245 ;; 6246 esac 6247fi 6248 6249file_magic_cmd=$lt_cv_file_magic_cmd 6250deplibs_check_method=$lt_cv_deplibs_check_method 6251test -z "$deplibs_check_method" && deplibs_check_method=unknown 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274if test -n "$ac_tool_prefix"; then 6275 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6276set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6278printf %s "checking for $ac_word... " >&6; } 6279if test ${ac_cv_prog_DLLTOOL+y} 6280then : 6281 printf %s "(cached) " >&6 6282else $as_nop 6283 if test -n "$DLLTOOL"; then 6284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6285else 6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287for as_dir in $PATH 6288do 6289 IFS=$as_save_IFS 6290 case $as_dir in #((( 6291 '') as_dir=./ ;; 6292 */) ;; 6293 *) as_dir=$as_dir/ ;; 6294 esac 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6297 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6299 break 2 6300 fi 6301done 6302 done 6303IFS=$as_save_IFS 6304 6305fi 6306fi 6307DLLTOOL=$ac_cv_prog_DLLTOOL 6308if test -n "$DLLTOOL"; then 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6310printf "%s\n" "$DLLTOOL" >&6; } 6311else 6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6313printf "%s\n" "no" >&6; } 6314fi 6315 6316 6317fi 6318if test -z "$ac_cv_prog_DLLTOOL"; then 6319 ac_ct_DLLTOOL=$DLLTOOL 6320 # Extract the first word of "dlltool", so it can be a program name with args. 6321set dummy dlltool; ac_word=$2 6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6323printf %s "checking for $ac_word... " >&6; } 6324if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6325then : 6326 printf %s "(cached) " >&6 6327else $as_nop 6328 if test -n "$ac_ct_DLLTOOL"; then 6329 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6330else 6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332for as_dir in $PATH 6333do 6334 IFS=$as_save_IFS 6335 case $as_dir in #((( 6336 '') as_dir=./ ;; 6337 */) ;; 6338 *) as_dir=$as_dir/ ;; 6339 esac 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6342 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346done 6347 done 6348IFS=$as_save_IFS 6349 6350fi 6351fi 6352ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6353if test -n "$ac_ct_DLLTOOL"; then 6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6355printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6356else 6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6358printf "%s\n" "no" >&6; } 6359fi 6360 6361 if test "x$ac_ct_DLLTOOL" = x; then 6362 DLLTOOL="false" 6363 else 6364 case $cross_compiling:$ac_tool_warned in 6365yes:) 6366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6367printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6368ac_tool_warned=yes ;; 6369esac 6370 DLLTOOL=$ac_ct_DLLTOOL 6371 fi 6372else 6373 DLLTOOL="$ac_cv_prog_DLLTOOL" 6374fi 6375 6376test -z "$DLLTOOL" && DLLTOOL=dlltool 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6388printf %s "checking how to associate runtime and link libraries... " >&6; } 6389if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6390then : 6391 printf %s "(cached) " >&6 6392else $as_nop 6393 lt_cv_sharedlib_from_linklib_cmd='unknown' 6394 6395case $host_os in 6396cygwin* | mingw* | pw32* | cegcc*) 6397 # two different shell functions defined in ltmain.sh; 6398 # decide which one to use based on capabilities of $DLLTOOL 6399 case `$DLLTOOL --help 2>&1` in 6400 *--identify-strict*) 6401 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6402 ;; 6403 *) 6404 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6405 ;; 6406 esac 6407 ;; 6408*) 6409 # fallback: assume linklib IS sharedlib 6410 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6411 ;; 6412esac 6413 6414fi 6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6416printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6417sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6418test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6419 6420 6421 6422 6423 6424 6425 6426if test -n "$ac_tool_prefix"; then 6427 for ac_prog in ar 6428 do 6429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6430set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432printf %s "checking for $ac_word... " >&6; } 6433if test ${ac_cv_prog_AR+y} 6434then : 6435 printf %s "(cached) " >&6 6436else $as_nop 6437 if test -n "$AR"; then 6438 ac_cv_prog_AR="$AR" # Let the user override the test. 6439else 6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441for as_dir in $PATH 6442do 6443 IFS=$as_save_IFS 6444 case $as_dir in #((( 6445 '') as_dir=./ ;; 6446 */) ;; 6447 *) as_dir=$as_dir/ ;; 6448 esac 6449 for ac_exec_ext in '' $ac_executable_extensions; do 6450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6451 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6453 break 2 6454 fi 6455done 6456 done 6457IFS=$as_save_IFS 6458 6459fi 6460fi 6461AR=$ac_cv_prog_AR 6462if test -n "$AR"; then 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6464printf "%s\n" "$AR" >&6; } 6465else 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467printf "%s\n" "no" >&6; } 6468fi 6469 6470 6471 test -n "$AR" && break 6472 done 6473fi 6474if test -z "$AR"; then 6475 ac_ct_AR=$AR 6476 for ac_prog in ar 6477do 6478 # Extract the first word of "$ac_prog", so it can be a program name with args. 6479set dummy $ac_prog; ac_word=$2 6480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6481printf %s "checking for $ac_word... " >&6; } 6482if test ${ac_cv_prog_ac_ct_AR+y} 6483then : 6484 printf %s "(cached) " >&6 6485else $as_nop 6486 if test -n "$ac_ct_AR"; then 6487 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6488else 6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490for as_dir in $PATH 6491do 6492 IFS=$as_save_IFS 6493 case $as_dir in #((( 6494 '') as_dir=./ ;; 6495 */) ;; 6496 *) as_dir=$as_dir/ ;; 6497 esac 6498 for ac_exec_ext in '' $ac_executable_extensions; do 6499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6500 ac_cv_prog_ac_ct_AR="$ac_prog" 6501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6502 break 2 6503 fi 6504done 6505 done 6506IFS=$as_save_IFS 6507 6508fi 6509fi 6510ac_ct_AR=$ac_cv_prog_ac_ct_AR 6511if test -n "$ac_ct_AR"; then 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6513printf "%s\n" "$ac_ct_AR" >&6; } 6514else 6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6516printf "%s\n" "no" >&6; } 6517fi 6518 6519 6520 test -n "$ac_ct_AR" && break 6521done 6522 6523 if test "x$ac_ct_AR" = x; then 6524 AR="false" 6525 else 6526 case $cross_compiling:$ac_tool_warned in 6527yes:) 6528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6529printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6530ac_tool_warned=yes ;; 6531esac 6532 AR=$ac_ct_AR 6533 fi 6534fi 6535 6536: ${AR=ar} 6537 6538 6539 6540 6541 6542 6543# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6544# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6545# higher priority because thats what people were doing historically (setting 6546# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6547# variable obsoleted/removed. 6548 6549test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6550lt_ar_flags=$AR_FLAGS 6551 6552 6553 6554 6555 6556 6557# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6558# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6559 6560 6561 6562 6563 6564 6565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6566printf %s "checking for archiver @FILE support... " >&6; } 6567if test ${lt_cv_ar_at_file+y} 6568then : 6569 printf %s "(cached) " >&6 6570else $as_nop 6571 lt_cv_ar_at_file=no 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574 6575int 6576main (void) 6577{ 6578 6579 ; 6580 return 0; 6581} 6582_ACEOF 6583if ac_fn_c_try_compile "$LINENO" 6584then : 6585 echo conftest.$ac_objext > conftest.lst 6586 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6588 (eval $lt_ar_try) 2>&5 6589 ac_status=$? 6590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6591 test $ac_status = 0; } 6592 if test 0 -eq "$ac_status"; then 6593 # Ensure the archiver fails upon bogus file names. 6594 rm -f conftest.$ac_objext libconftest.a 6595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6596 (eval $lt_ar_try) 2>&5 6597 ac_status=$? 6598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6599 test $ac_status = 0; } 6600 if test 0 -ne "$ac_status"; then 6601 lt_cv_ar_at_file=@ 6602 fi 6603 fi 6604 rm -f conftest.* libconftest.a 6605 6606fi 6607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6608 6609fi 6610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6611printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6612 6613if test no = "$lt_cv_ar_at_file"; then 6614 archiver_list_spec= 6615else 6616 archiver_list_spec=$lt_cv_ar_at_file 6617fi 6618 6619 6620 6621 6622 6623 6624 6625if test -n "$ac_tool_prefix"; then 6626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6627set dummy ${ac_tool_prefix}strip; ac_word=$2 6628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6629printf %s "checking for $ac_word... " >&6; } 6630if test ${ac_cv_prog_STRIP+y} 6631then : 6632 printf %s "(cached) " >&6 6633else $as_nop 6634 if test -n "$STRIP"; then 6635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6636else 6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6638for as_dir in $PATH 6639do 6640 IFS=$as_save_IFS 6641 case $as_dir in #((( 6642 '') as_dir=./ ;; 6643 */) ;; 6644 *) as_dir=$as_dir/ ;; 6645 esac 6646 for ac_exec_ext in '' $ac_executable_extensions; do 6647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6648 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6650 break 2 6651 fi 6652done 6653 done 6654IFS=$as_save_IFS 6655 6656fi 6657fi 6658STRIP=$ac_cv_prog_STRIP 6659if test -n "$STRIP"; then 6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6661printf "%s\n" "$STRIP" >&6; } 6662else 6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664printf "%s\n" "no" >&6; } 6665fi 6666 6667 6668fi 6669if test -z "$ac_cv_prog_STRIP"; then 6670 ac_ct_STRIP=$STRIP 6671 # Extract the first word of "strip", so it can be a program name with args. 6672set dummy strip; ac_word=$2 6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6674printf %s "checking for $ac_word... " >&6; } 6675if test ${ac_cv_prog_ac_ct_STRIP+y} 6676then : 6677 printf %s "(cached) " >&6 6678else $as_nop 6679 if test -n "$ac_ct_STRIP"; then 6680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6681else 6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683for as_dir in $PATH 6684do 6685 IFS=$as_save_IFS 6686 case $as_dir in #((( 6687 '') as_dir=./ ;; 6688 */) ;; 6689 *) as_dir=$as_dir/ ;; 6690 esac 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6693 ac_cv_prog_ac_ct_STRIP="strip" 6694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6704if test -n "$ac_ct_STRIP"; then 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6706printf "%s\n" "$ac_ct_STRIP" >&6; } 6707else 6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709printf "%s\n" "no" >&6; } 6710fi 6711 6712 if test "x$ac_ct_STRIP" = x; then 6713 STRIP=":" 6714 else 6715 case $cross_compiling:$ac_tool_warned in 6716yes:) 6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6719ac_tool_warned=yes ;; 6720esac 6721 STRIP=$ac_ct_STRIP 6722 fi 6723else 6724 STRIP="$ac_cv_prog_STRIP" 6725fi 6726 6727test -z "$STRIP" && STRIP=: 6728 6729 6730 6731 6732 6733 6734if test -n "$ac_tool_prefix"; then 6735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6736set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738printf %s "checking for $ac_word... " >&6; } 6739if test ${ac_cv_prog_RANLIB+y} 6740then : 6741 printf %s "(cached) " >&6 6742else $as_nop 6743 if test -n "$RANLIB"; then 6744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6745else 6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747for as_dir in $PATH 6748do 6749 IFS=$as_save_IFS 6750 case $as_dir in #((( 6751 '') as_dir=./ ;; 6752 */) ;; 6753 *) as_dir=$as_dir/ ;; 6754 esac 6755 for ac_exec_ext in '' $ac_executable_extensions; do 6756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6759 break 2 6760 fi 6761done 6762 done 6763IFS=$as_save_IFS 6764 6765fi 6766fi 6767RANLIB=$ac_cv_prog_RANLIB 6768if test -n "$RANLIB"; then 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6770printf "%s\n" "$RANLIB" >&6; } 6771else 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6773printf "%s\n" "no" >&6; } 6774fi 6775 6776 6777fi 6778if test -z "$ac_cv_prog_RANLIB"; then 6779 ac_ct_RANLIB=$RANLIB 6780 # Extract the first word of "ranlib", so it can be a program name with args. 6781set dummy ranlib; ac_word=$2 6782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6783printf %s "checking for $ac_word... " >&6; } 6784if test ${ac_cv_prog_ac_ct_RANLIB+y} 6785then : 6786 printf %s "(cached) " >&6 6787else $as_nop 6788 if test -n "$ac_ct_RANLIB"; then 6789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6790else 6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 case $as_dir in #((( 6796 '') as_dir=./ ;; 6797 */) ;; 6798 *) as_dir=$as_dir/ ;; 6799 esac 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_ac_ct_RANLIB="ranlib" 6803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6813if test -n "$ac_ct_RANLIB"; then 6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6815printf "%s\n" "$ac_ct_RANLIB" >&6; } 6816else 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818printf "%s\n" "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_RANLIB" = x; then 6822 RANLIB=":" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6827printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 RANLIB=$ac_ct_RANLIB 6831 fi 6832else 6833 RANLIB="$ac_cv_prog_RANLIB" 6834fi 6835 6836test -z "$RANLIB" && RANLIB=: 6837 6838 6839 6840 6841 6842 6843# Determine commands to create old-style static archives. 6844old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6845old_postinstall_cmds='chmod 644 $oldlib' 6846old_postuninstall_cmds= 6847 6848if test -n "$RANLIB"; then 6849 case $host_os in 6850 bitrig* | openbsd*) 6851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6852 ;; 6853 *) 6854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6855 ;; 6856 esac 6857 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6858fi 6859 6860case $host_os in 6861 darwin*) 6862 lock_old_archive_extraction=yes ;; 6863 *) 6864 lock_old_archive_extraction=no ;; 6865esac 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905# If no C compiler was specified, use CC. 6906LTCC=${LTCC-"$CC"} 6907 6908# If no C compiler flags were specified, use CFLAGS. 6909LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6910 6911# Allow CC to be a program name with arguments. 6912compiler=$CC 6913 6914 6915# Check for command to grab the raw symbol name followed by C symbol from nm. 6916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6917printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6918if test ${lt_cv_sys_global_symbol_pipe+y} 6919then : 6920 printf %s "(cached) " >&6 6921else $as_nop 6922 6923# These are sane defaults that work on at least a few old systems. 6924# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6925 6926# Character class describing NM global symbol codes. 6927symcode='[BCDEGRST]' 6928 6929# Regexp to match symbols that can be accessed directly from C. 6930sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6931 6932# Define system-specific variables. 6933case $host_os in 6934aix*) 6935 symcode='[BCDT]' 6936 ;; 6937cygwin* | mingw* | pw32* | cegcc*) 6938 symcode='[ABCDGISTW]' 6939 ;; 6940hpux*) 6941 if test ia64 = "$host_cpu"; then 6942 symcode='[ABCDEGRST]' 6943 fi 6944 ;; 6945irix* | nonstopux*) 6946 symcode='[BCDEGRST]' 6947 ;; 6948osf*) 6949 symcode='[BCDEGQRST]' 6950 ;; 6951solaris*) 6952 symcode='[BDRT]' 6953 ;; 6954sco3.2v5*) 6955 symcode='[DT]' 6956 ;; 6957sysv4.2uw2*) 6958 symcode='[DT]' 6959 ;; 6960sysv5* | sco5v6* | unixware* | OpenUNIX*) 6961 symcode='[ABDT]' 6962 ;; 6963sysv4) 6964 symcode='[DFNSTU]' 6965 ;; 6966esac 6967 6968# If we're using GNU nm, then use its standard symbol codes. 6969case `$NM -V 2>&1` in 6970*GNU* | *'with BFD'*) 6971 symcode='[ABCDGIRSTW]' ;; 6972esac 6973 6974if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6975 # Gets list of data symbols to import. 6976 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6977 # Adjust the below global symbol transforms to fixup imported variables. 6978 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6979 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6980 lt_c_name_lib_hook="\ 6981 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6982 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6983else 6984 # Disable hooks by default. 6985 lt_cv_sys_global_symbol_to_import= 6986 lt_cdecl_hook= 6987 lt_c_name_hook= 6988 lt_c_name_lib_hook= 6989fi 6990 6991# Transform an extracted symbol line into a proper C declaration. 6992# Some systems (esp. on ia64) link data and code symbols differently, 6993# so use this general approach. 6994lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6995$lt_cdecl_hook\ 6996" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6997" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6998 6999# Transform an extracted symbol line into symbol name and symbol address 7000lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7001$lt_c_name_hook\ 7002" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7003" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7004 7005# Transform an extracted symbol line into symbol name with lib prefix and 7006# symbol address. 7007lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7008$lt_c_name_lib_hook\ 7009" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7010" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7011" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7012 7013# Handle CRLF in mingw tool chain 7014opt_cr= 7015case $build_os in 7016mingw*) 7017 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7018 ;; 7019esac 7020 7021# Try without a prefix underscore, then with it. 7022for ac_symprfx in "" "_"; do 7023 7024 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7025 symxfrm="\\1 $ac_symprfx\\2 \\2" 7026 7027 # Write the raw and C identifiers. 7028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7029 # Fake it for dumpbin and say T for any non-static function, 7030 # D for any global variable and I for any imported variable. 7031 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7032 # which start with @ or ?. 7033 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7034" {last_section=section; section=\$ 3};"\ 7035" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7036" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7037" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7038" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7039" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7040" \$ 0!~/External *\|/{next};"\ 7041" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7042" {if(hide[section]) next};"\ 7043" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7044" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7045" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7046" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7047" ' prfx=^$ac_symprfx" 7048 else 7049 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7050 fi 7051 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7052 7053 # Check to see that the pipe works correctly. 7054 pipe_works=no 7055 7056 rm -f conftest* 7057 cat > conftest.$ac_ext <<_LT_EOF 7058#ifdef __cplusplus 7059extern "C" { 7060#endif 7061char nm_test_var; 7062void nm_test_func(void); 7063void nm_test_func(void){} 7064#ifdef __cplusplus 7065} 7066#endif 7067int main(){nm_test_var='a';nm_test_func();return(0);} 7068_LT_EOF 7069 7070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7071 (eval $ac_compile) 2>&5 7072 ac_status=$? 7073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7074 test $ac_status = 0; }; then 7075 # Now try to grab the symbols. 7076 nlist=conftest.nm 7077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7078 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7079 ac_status=$? 7080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7081 test $ac_status = 0; } && test -s "$nlist"; then 7082 # Try sorting and uniquifying the output. 7083 if sort "$nlist" | uniq > "$nlist"T; then 7084 mv -f "$nlist"T "$nlist" 7085 else 7086 rm -f "$nlist"T 7087 fi 7088 7089 # Make sure that we snagged all the symbols we need. 7090 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7091 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7092 cat <<_LT_EOF > conftest.$ac_ext 7093/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7094#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7095/* DATA imports from DLLs on WIN32 can't be const, because runtime 7096 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7097# define LT_DLSYM_CONST 7098#elif defined __osf__ 7099/* This system does not cope well with relocations in const data. */ 7100# define LT_DLSYM_CONST 7101#else 7102# define LT_DLSYM_CONST const 7103#endif 7104 7105#ifdef __cplusplus 7106extern "C" { 7107#endif 7108 7109_LT_EOF 7110 # Now generate the symbol file. 7111 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7112 7113 cat <<_LT_EOF >> conftest.$ac_ext 7114 7115/* The mapping between symbol names and symbols. */ 7116LT_DLSYM_CONST struct { 7117 const char *name; 7118 void *address; 7119} 7120lt__PROGRAM__LTX_preloaded_symbols[] = 7121{ 7122 { "@PROGRAM@", (void *) 0 }, 7123_LT_EOF 7124 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7125 cat <<\_LT_EOF >> conftest.$ac_ext 7126 {0, (void *) 0} 7127}; 7128 7129/* This works around a problem in FreeBSD linker */ 7130#ifdef FREEBSD_WORKAROUND 7131static const void *lt_preloaded_setup() { 7132 return lt__PROGRAM__LTX_preloaded_symbols; 7133} 7134#endif 7135 7136#ifdef __cplusplus 7137} 7138#endif 7139_LT_EOF 7140 # Now try linking the two files. 7141 mv conftest.$ac_objext conftstm.$ac_objext 7142 lt_globsym_save_LIBS=$LIBS 7143 lt_globsym_save_CFLAGS=$CFLAGS 7144 LIBS=conftstm.$ac_objext 7145 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7147 (eval $ac_link) 2>&5 7148 ac_status=$? 7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7150 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7151 pipe_works=yes 7152 fi 7153 LIBS=$lt_globsym_save_LIBS 7154 CFLAGS=$lt_globsym_save_CFLAGS 7155 else 7156 echo "cannot find nm_test_func in $nlist" >&5 7157 fi 7158 else 7159 echo "cannot find nm_test_var in $nlist" >&5 7160 fi 7161 else 7162 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7163 fi 7164 else 7165 echo "$progname: failed program was:" >&5 7166 cat conftest.$ac_ext >&5 7167 fi 7168 rm -rf conftest* conftst* 7169 7170 # Do not use the global_symbol_pipe unless it works. 7171 if test yes = "$pipe_works"; then 7172 break 7173 else 7174 lt_cv_sys_global_symbol_pipe= 7175 fi 7176done 7177 7178fi 7179 7180if test -z "$lt_cv_sys_global_symbol_pipe"; then 7181 lt_cv_sys_global_symbol_to_cdecl= 7182fi 7183if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7185printf "%s\n" "failed" >&6; } 7186else 7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7188printf "%s\n" "ok" >&6; } 7189fi 7190 7191# Response file support. 7192if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7193 nm_file_list_spec='@' 7194elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7195 nm_file_list_spec='@' 7196fi 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7235printf %s "checking for sysroot... " >&6; } 7236 7237# Check whether --with-sysroot was given. 7238if test ${with_sysroot+y} 7239then : 7240 withval=$with_sysroot; 7241else $as_nop 7242 with_sysroot=no 7243fi 7244 7245 7246lt_sysroot= 7247case $with_sysroot in #( 7248 yes) 7249 if test yes = "$GCC"; then 7250 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7251 fi 7252 ;; #( 7253 /*) 7254 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7255 ;; #( 7256 no|'') 7257 ;; #( 7258 *) 7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7260printf "%s\n" "$with_sysroot" >&6; } 7261 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7262 ;; 7263esac 7264 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7266printf "%s\n" "${lt_sysroot:-no}" >&6; } 7267 7268 7269 7270 7271 7272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7273printf %s "checking for a working dd... " >&6; } 7274if test ${ac_cv_path_lt_DD+y} 7275then : 7276 printf %s "(cached) " >&6 7277else $as_nop 7278 printf 0123456789abcdef0123456789abcdef >conftest.i 7279cat conftest.i conftest.i >conftest2.i 7280: ${lt_DD:=$DD} 7281if test -z "$lt_DD"; then 7282 ac_path_lt_DD_found=false 7283 # Loop through the user's path and test for each of PROGNAME-LIST 7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 7287 IFS=$as_save_IFS 7288 case $as_dir in #((( 7289 '') as_dir=./ ;; 7290 */) ;; 7291 *) as_dir=$as_dir/ ;; 7292 esac 7293 for ac_prog in dd 7294 do 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7297 as_fn_executable_p "$ac_path_lt_DD" || continue 7298if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7299 cmp -s conftest.i conftest.out \ 7300 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7301fi 7302 $ac_path_lt_DD_found && break 3 7303 done 7304 done 7305 done 7306IFS=$as_save_IFS 7307 if test -z "$ac_cv_path_lt_DD"; then 7308 : 7309 fi 7310else 7311 ac_cv_path_lt_DD=$lt_DD 7312fi 7313 7314rm -f conftest.i conftest2.i conftest.out 7315fi 7316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7317printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7318 7319 7320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7321printf %s "checking how to truncate binary pipes... " >&6; } 7322if test ${lt_cv_truncate_bin+y} 7323then : 7324 printf %s "(cached) " >&6 7325else $as_nop 7326 printf 0123456789abcdef0123456789abcdef >conftest.i 7327cat conftest.i conftest.i >conftest2.i 7328lt_cv_truncate_bin= 7329if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7330 cmp -s conftest.i conftest.out \ 7331 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7332fi 7333rm -f conftest.i conftest2.i conftest.out 7334test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7335fi 7336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7337printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7338 7339 7340 7341 7342 7343 7344 7345# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7346func_cc_basename () 7347{ 7348 for cc_temp in $*""; do 7349 case $cc_temp in 7350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7352 \-*) ;; 7353 *) break;; 7354 esac 7355 done 7356 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7357} 7358 7359# Check whether --enable-libtool-lock was given. 7360if test ${enable_libtool_lock+y} 7361then : 7362 enableval=$enable_libtool_lock; 7363fi 7364 7365test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7366 7367# Some flags need to be propagated to the compiler or linker for good 7368# libtool support. 7369case $host in 7370ia64-*-hpux*) 7371 # Find out what ABI is being produced by ac_compile, and set mode 7372 # options accordingly. 7373 echo 'int i;' > conftest.$ac_ext 7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7375 (eval $ac_compile) 2>&5 7376 ac_status=$? 7377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7378 test $ac_status = 0; }; then 7379 case `$FILECMD conftest.$ac_objext` in 7380 *ELF-32*) 7381 HPUX_IA64_MODE=32 7382 ;; 7383 *ELF-64*) 7384 HPUX_IA64_MODE=64 7385 ;; 7386 esac 7387 fi 7388 rm -rf conftest* 7389 ;; 7390*-*-irix6*) 7391 # Find out what ABI is being produced by ac_compile, and set linker 7392 # options accordingly. 7393 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7395 (eval $ac_compile) 2>&5 7396 ac_status=$? 7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7398 test $ac_status = 0; }; then 7399 if test yes = "$lt_cv_prog_gnu_ld"; then 7400 case `$FILECMD conftest.$ac_objext` in 7401 *32-bit*) 7402 LD="${LD-ld} -melf32bsmip" 7403 ;; 7404 *N32*) 7405 LD="${LD-ld} -melf32bmipn32" 7406 ;; 7407 *64-bit*) 7408 LD="${LD-ld} -melf64bmip" 7409 ;; 7410 esac 7411 else 7412 case `$FILECMD conftest.$ac_objext` in 7413 *32-bit*) 7414 LD="${LD-ld} -32" 7415 ;; 7416 *N32*) 7417 LD="${LD-ld} -n32" 7418 ;; 7419 *64-bit*) 7420 LD="${LD-ld} -64" 7421 ;; 7422 esac 7423 fi 7424 fi 7425 rm -rf conftest* 7426 ;; 7427 7428mips64*-*linux*) 7429 # Find out what ABI is being produced by ac_compile, and set linker 7430 # options accordingly. 7431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7433 (eval $ac_compile) 2>&5 7434 ac_status=$? 7435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7436 test $ac_status = 0; }; then 7437 emul=elf 7438 case `$FILECMD conftest.$ac_objext` in 7439 *32-bit*) 7440 emul="${emul}32" 7441 ;; 7442 *64-bit*) 7443 emul="${emul}64" 7444 ;; 7445 esac 7446 case `$FILECMD conftest.$ac_objext` in 7447 *MSB*) 7448 emul="${emul}btsmip" 7449 ;; 7450 *LSB*) 7451 emul="${emul}ltsmip" 7452 ;; 7453 esac 7454 case `$FILECMD conftest.$ac_objext` in 7455 *N32*) 7456 emul="${emul}n32" 7457 ;; 7458 esac 7459 LD="${LD-ld} -m $emul" 7460 fi 7461 rm -rf conftest* 7462 ;; 7463 7464x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7465s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7466 # Find out what ABI is being produced by ac_compile, and set linker 7467 # options accordingly. Note that the listed cases only cover the 7468 # situations where additional linker options are needed (such as when 7469 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7470 # vice versa); the common cases where no linker options are needed do 7471 # not appear in the list. 7472 echo 'int i;' > conftest.$ac_ext 7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7474 (eval $ac_compile) 2>&5 7475 ac_status=$? 7476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7477 test $ac_status = 0; }; then 7478 case `$FILECMD conftest.o` in 7479 *32-bit*) 7480 case $host in 7481 x86_64-*kfreebsd*-gnu) 7482 LD="${LD-ld} -m elf_i386_fbsd" 7483 ;; 7484 x86_64-*linux*) 7485 case `$FILECMD conftest.o` in 7486 *x86-64*) 7487 LD="${LD-ld} -m elf32_x86_64" 7488 ;; 7489 *) 7490 LD="${LD-ld} -m elf_i386" 7491 ;; 7492 esac 7493 ;; 7494 powerpc64le-*linux*) 7495 LD="${LD-ld} -m elf32lppclinux" 7496 ;; 7497 powerpc64-*linux*) 7498 LD="${LD-ld} -m elf32ppclinux" 7499 ;; 7500 s390x-*linux*) 7501 LD="${LD-ld} -m elf_s390" 7502 ;; 7503 sparc64-*linux*) 7504 LD="${LD-ld} -m elf32_sparc" 7505 ;; 7506 esac 7507 ;; 7508 *64-bit*) 7509 case $host in 7510 x86_64-*kfreebsd*-gnu) 7511 LD="${LD-ld} -m elf_x86_64_fbsd" 7512 ;; 7513 x86_64-*linux*) 7514 LD="${LD-ld} -m elf_x86_64" 7515 ;; 7516 powerpcle-*linux*) 7517 LD="${LD-ld} -m elf64lppc" 7518 ;; 7519 powerpc-*linux*) 7520 LD="${LD-ld} -m elf64ppc" 7521 ;; 7522 s390*-*linux*|s390*-*tpf*) 7523 LD="${LD-ld} -m elf64_s390" 7524 ;; 7525 sparc*-*linux*) 7526 LD="${LD-ld} -m elf64_sparc" 7527 ;; 7528 esac 7529 ;; 7530 esac 7531 fi 7532 rm -rf conftest* 7533 ;; 7534 7535*-*-sco3.2v5*) 7536 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7537 SAVE_CFLAGS=$CFLAGS 7538 CFLAGS="$CFLAGS -belf" 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7540printf %s "checking whether the C compiler needs -belf... " >&6; } 7541if test ${lt_cv_cc_needs_belf+y} 7542then : 7543 printf %s "(cached) " >&6 7544else $as_nop 7545 ac_ext=c 7546ac_cpp='$CPP $CPPFLAGS' 7547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7549ac_compiler_gnu=$ac_cv_c_compiler_gnu 7550 7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7552/* end confdefs.h. */ 7553 7554int 7555main (void) 7556{ 7557 7558 ; 7559 return 0; 7560} 7561_ACEOF 7562if ac_fn_c_try_link "$LINENO" 7563then : 7564 lt_cv_cc_needs_belf=yes 7565else $as_nop 7566 lt_cv_cc_needs_belf=no 7567fi 7568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7569 conftest$ac_exeext conftest.$ac_ext 7570 ac_ext=c 7571ac_cpp='$CPP $CPPFLAGS' 7572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7574ac_compiler_gnu=$ac_cv_c_compiler_gnu 7575 7576fi 7577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7578printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7579 if test yes != "$lt_cv_cc_needs_belf"; then 7580 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7581 CFLAGS=$SAVE_CFLAGS 7582 fi 7583 ;; 7584*-*solaris*) 7585 # Find out what ABI is being produced by ac_compile, and set linker 7586 # options accordingly. 7587 echo 'int i;' > conftest.$ac_ext 7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7589 (eval $ac_compile) 2>&5 7590 ac_status=$? 7591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7592 test $ac_status = 0; }; then 7593 case `$FILECMD conftest.o` in 7594 *64-bit*) 7595 case $lt_cv_prog_gnu_ld in 7596 yes*) 7597 case $host in 7598 i?86-*-solaris*|x86_64-*-solaris*) 7599 LD="${LD-ld} -m elf_x86_64" 7600 ;; 7601 sparc*-*-solaris*) 7602 LD="${LD-ld} -m elf64_sparc" 7603 ;; 7604 esac 7605 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7606 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7607 LD=${LD-ld}_sol2 7608 fi 7609 ;; 7610 *) 7611 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7612 LD="${LD-ld} -64" 7613 fi 7614 ;; 7615 esac 7616 ;; 7617 esac 7618 fi 7619 rm -rf conftest* 7620 ;; 7621esac 7622 7623need_locks=$enable_libtool_lock 7624 7625if test -n "$ac_tool_prefix"; then 7626 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7627set dummy ${ac_tool_prefix}mt; ac_word=$2 7628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7629printf %s "checking for $ac_word... " >&6; } 7630if test ${ac_cv_prog_MANIFEST_TOOL+y} 7631then : 7632 printf %s "(cached) " >&6 7633else $as_nop 7634 if test -n "$MANIFEST_TOOL"; then 7635 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7636else 7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638for as_dir in $PATH 7639do 7640 IFS=$as_save_IFS 7641 case $as_dir in #((( 7642 '') as_dir=./ ;; 7643 */) ;; 7644 *) as_dir=$as_dir/ ;; 7645 esac 7646 for ac_exec_ext in '' $ac_executable_extensions; do 7647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7648 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7650 break 2 7651 fi 7652done 7653 done 7654IFS=$as_save_IFS 7655 7656fi 7657fi 7658MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7659if test -n "$MANIFEST_TOOL"; then 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7661printf "%s\n" "$MANIFEST_TOOL" >&6; } 7662else 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7664printf "%s\n" "no" >&6; } 7665fi 7666 7667 7668fi 7669if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7670 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7671 # Extract the first word of "mt", so it can be a program name with args. 7672set dummy mt; ac_word=$2 7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7674printf %s "checking for $ac_word... " >&6; } 7675if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7676then : 7677 printf %s "(cached) " >&6 7678else $as_nop 7679 if test -n "$ac_ct_MANIFEST_TOOL"; then 7680 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7681else 7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683for as_dir in $PATH 7684do 7685 IFS=$as_save_IFS 7686 case $as_dir in #((( 7687 '') as_dir=./ ;; 7688 */) ;; 7689 *) as_dir=$as_dir/ ;; 7690 esac 7691 for ac_exec_ext in '' $ac_executable_extensions; do 7692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7693 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7695 break 2 7696 fi 7697done 7698 done 7699IFS=$as_save_IFS 7700 7701fi 7702fi 7703ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7704if test -n "$ac_ct_MANIFEST_TOOL"; then 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7706printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7707else 7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7709printf "%s\n" "no" >&6; } 7710fi 7711 7712 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7713 MANIFEST_TOOL=":" 7714 else 7715 case $cross_compiling:$ac_tool_warned in 7716yes:) 7717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7719ac_tool_warned=yes ;; 7720esac 7721 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7722 fi 7723else 7724 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7725fi 7726 7727test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7729printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7730if test ${lt_cv_path_mainfest_tool+y} 7731then : 7732 printf %s "(cached) " >&6 7733else $as_nop 7734 lt_cv_path_mainfest_tool=no 7735 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7736 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7737 cat conftest.err >&5 7738 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7739 lt_cv_path_mainfest_tool=yes 7740 fi 7741 rm -f conftest* 7742fi 7743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7744printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7745if test yes != "$lt_cv_path_mainfest_tool"; then 7746 MANIFEST_TOOL=: 7747fi 7748 7749 7750 7751 7752 7753 7754 case $host_os in 7755 rhapsody* | darwin*) 7756 if test -n "$ac_tool_prefix"; then 7757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7758set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760printf %s "checking for $ac_word... " >&6; } 7761if test ${ac_cv_prog_DSYMUTIL+y} 7762then : 7763 printf %s "(cached) " >&6 7764else $as_nop 7765 if test -n "$DSYMUTIL"; then 7766 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7767else 7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7769for as_dir in $PATH 7770do 7771 IFS=$as_save_IFS 7772 case $as_dir in #((( 7773 '') as_dir=./ ;; 7774 */) ;; 7775 *) as_dir=$as_dir/ ;; 7776 esac 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7779 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784 done 7785IFS=$as_save_IFS 7786 7787fi 7788fi 7789DSYMUTIL=$ac_cv_prog_DSYMUTIL 7790if test -n "$DSYMUTIL"; then 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7792printf "%s\n" "$DSYMUTIL" >&6; } 7793else 7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7795printf "%s\n" "no" >&6; } 7796fi 7797 7798 7799fi 7800if test -z "$ac_cv_prog_DSYMUTIL"; then 7801 ac_ct_DSYMUTIL=$DSYMUTIL 7802 # Extract the first word of "dsymutil", so it can be a program name with args. 7803set dummy dsymutil; ac_word=$2 7804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7805printf %s "checking for $ac_word... " >&6; } 7806if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7807then : 7808 printf %s "(cached) " >&6 7809else $as_nop 7810 if test -n "$ac_ct_DSYMUTIL"; then 7811 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7812else 7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7814for as_dir in $PATH 7815do 7816 IFS=$as_save_IFS 7817 case $as_dir in #((( 7818 '') as_dir=./ ;; 7819 */) ;; 7820 *) as_dir=$as_dir/ ;; 7821 esac 7822 for ac_exec_ext in '' $ac_executable_extensions; do 7823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7824 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7826 break 2 7827 fi 7828done 7829 done 7830IFS=$as_save_IFS 7831 7832fi 7833fi 7834ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7835if test -n "$ac_ct_DSYMUTIL"; then 7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7837printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7838else 7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7840printf "%s\n" "no" >&6; } 7841fi 7842 7843 if test "x$ac_ct_DSYMUTIL" = x; then 7844 DSYMUTIL=":" 7845 else 7846 case $cross_compiling:$ac_tool_warned in 7847yes:) 7848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7849printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7850ac_tool_warned=yes ;; 7851esac 7852 DSYMUTIL=$ac_ct_DSYMUTIL 7853 fi 7854else 7855 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7856fi 7857 7858 if test -n "$ac_tool_prefix"; then 7859 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7860set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7862printf %s "checking for $ac_word... " >&6; } 7863if test ${ac_cv_prog_NMEDIT+y} 7864then : 7865 printf %s "(cached) " >&6 7866else $as_nop 7867 if test -n "$NMEDIT"; then 7868 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7869else 7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7871for as_dir in $PATH 7872do 7873 IFS=$as_save_IFS 7874 case $as_dir in #((( 7875 '') as_dir=./ ;; 7876 */) ;; 7877 *) as_dir=$as_dir/ ;; 7878 esac 7879 for ac_exec_ext in '' $ac_executable_extensions; do 7880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7883 break 2 7884 fi 7885done 7886 done 7887IFS=$as_save_IFS 7888 7889fi 7890fi 7891NMEDIT=$ac_cv_prog_NMEDIT 7892if test -n "$NMEDIT"; then 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7894printf "%s\n" "$NMEDIT" >&6; } 7895else 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7897printf "%s\n" "no" >&6; } 7898fi 7899 7900 7901fi 7902if test -z "$ac_cv_prog_NMEDIT"; then 7903 ac_ct_NMEDIT=$NMEDIT 7904 # Extract the first word of "nmedit", so it can be a program name with args. 7905set dummy nmedit; ac_word=$2 7906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7907printf %s "checking for $ac_word... " >&6; } 7908if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7909then : 7910 printf %s "(cached) " >&6 7911else $as_nop 7912 if test -n "$ac_ct_NMEDIT"; then 7913 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7914else 7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7916for as_dir in $PATH 7917do 7918 IFS=$as_save_IFS 7919 case $as_dir in #((( 7920 '') as_dir=./ ;; 7921 */) ;; 7922 *) as_dir=$as_dir/ ;; 7923 esac 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7926 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930done 7931 done 7932IFS=$as_save_IFS 7933 7934fi 7935fi 7936ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7937if test -n "$ac_ct_NMEDIT"; then 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7939printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7940else 7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942printf "%s\n" "no" >&6; } 7943fi 7944 7945 if test "x$ac_ct_NMEDIT" = x; then 7946 NMEDIT=":" 7947 else 7948 case $cross_compiling:$ac_tool_warned in 7949yes:) 7950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7951printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7952ac_tool_warned=yes ;; 7953esac 7954 NMEDIT=$ac_ct_NMEDIT 7955 fi 7956else 7957 NMEDIT="$ac_cv_prog_NMEDIT" 7958fi 7959 7960 if test -n "$ac_tool_prefix"; then 7961 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7962set dummy ${ac_tool_prefix}lipo; ac_word=$2 7963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7964printf %s "checking for $ac_word... " >&6; } 7965if test ${ac_cv_prog_LIPO+y} 7966then : 7967 printf %s "(cached) " >&6 7968else $as_nop 7969 if test -n "$LIPO"; then 7970 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7971else 7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7973for as_dir in $PATH 7974do 7975 IFS=$as_save_IFS 7976 case $as_dir in #((( 7977 '') as_dir=./ ;; 7978 */) ;; 7979 *) as_dir=$as_dir/ ;; 7980 esac 7981 for ac_exec_ext in '' $ac_executable_extensions; do 7982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7983 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7985 break 2 7986 fi 7987done 7988 done 7989IFS=$as_save_IFS 7990 7991fi 7992fi 7993LIPO=$ac_cv_prog_LIPO 7994if test -n "$LIPO"; then 7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7996printf "%s\n" "$LIPO" >&6; } 7997else 7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7999printf "%s\n" "no" >&6; } 8000fi 8001 8002 8003fi 8004if test -z "$ac_cv_prog_LIPO"; then 8005 ac_ct_LIPO=$LIPO 8006 # Extract the first word of "lipo", so it can be a program name with args. 8007set dummy lipo; ac_word=$2 8008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8009printf %s "checking for $ac_word... " >&6; } 8010if test ${ac_cv_prog_ac_ct_LIPO+y} 8011then : 8012 printf %s "(cached) " >&6 8013else $as_nop 8014 if test -n "$ac_ct_LIPO"; then 8015 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8016else 8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8018for as_dir in $PATH 8019do 8020 IFS=$as_save_IFS 8021 case $as_dir in #((( 8022 '') as_dir=./ ;; 8023 */) ;; 8024 *) as_dir=$as_dir/ ;; 8025 esac 8026 for ac_exec_ext in '' $ac_executable_extensions; do 8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8028 ac_cv_prog_ac_ct_LIPO="lipo" 8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8030 break 2 8031 fi 8032done 8033 done 8034IFS=$as_save_IFS 8035 8036fi 8037fi 8038ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8039if test -n "$ac_ct_LIPO"; then 8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8041printf "%s\n" "$ac_ct_LIPO" >&6; } 8042else 8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8044printf "%s\n" "no" >&6; } 8045fi 8046 8047 if test "x$ac_ct_LIPO" = x; then 8048 LIPO=":" 8049 else 8050 case $cross_compiling:$ac_tool_warned in 8051yes:) 8052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8053printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8054ac_tool_warned=yes ;; 8055esac 8056 LIPO=$ac_ct_LIPO 8057 fi 8058else 8059 LIPO="$ac_cv_prog_LIPO" 8060fi 8061 8062 if test -n "$ac_tool_prefix"; then 8063 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8064set dummy ${ac_tool_prefix}otool; ac_word=$2 8065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8066printf %s "checking for $ac_word... " >&6; } 8067if test ${ac_cv_prog_OTOOL+y} 8068then : 8069 printf %s "(cached) " >&6 8070else $as_nop 8071 if test -n "$OTOOL"; then 8072 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8073else 8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8075for as_dir in $PATH 8076do 8077 IFS=$as_save_IFS 8078 case $as_dir in #((( 8079 '') as_dir=./ ;; 8080 */) ;; 8081 *) as_dir=$as_dir/ ;; 8082 esac 8083 for ac_exec_ext in '' $ac_executable_extensions; do 8084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8085 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8087 break 2 8088 fi 8089done 8090 done 8091IFS=$as_save_IFS 8092 8093fi 8094fi 8095OTOOL=$ac_cv_prog_OTOOL 8096if test -n "$OTOOL"; then 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8098printf "%s\n" "$OTOOL" >&6; } 8099else 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8101printf "%s\n" "no" >&6; } 8102fi 8103 8104 8105fi 8106if test -z "$ac_cv_prog_OTOOL"; then 8107 ac_ct_OTOOL=$OTOOL 8108 # Extract the first word of "otool", so it can be a program name with args. 8109set dummy otool; ac_word=$2 8110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8111printf %s "checking for $ac_word... " >&6; } 8112if test ${ac_cv_prog_ac_ct_OTOOL+y} 8113then : 8114 printf %s "(cached) " >&6 8115else $as_nop 8116 if test -n "$ac_ct_OTOOL"; then 8117 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8118else 8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8120for as_dir in $PATH 8121do 8122 IFS=$as_save_IFS 8123 case $as_dir in #((( 8124 '') as_dir=./ ;; 8125 */) ;; 8126 *) as_dir=$as_dir/ ;; 8127 esac 8128 for ac_exec_ext in '' $ac_executable_extensions; do 8129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8130 ac_cv_prog_ac_ct_OTOOL="otool" 8131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8132 break 2 8133 fi 8134done 8135 done 8136IFS=$as_save_IFS 8137 8138fi 8139fi 8140ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8141if test -n "$ac_ct_OTOOL"; then 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8143printf "%s\n" "$ac_ct_OTOOL" >&6; } 8144else 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8146printf "%s\n" "no" >&6; } 8147fi 8148 8149 if test "x$ac_ct_OTOOL" = x; then 8150 OTOOL=":" 8151 else 8152 case $cross_compiling:$ac_tool_warned in 8153yes:) 8154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8155printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8156ac_tool_warned=yes ;; 8157esac 8158 OTOOL=$ac_ct_OTOOL 8159 fi 8160else 8161 OTOOL="$ac_cv_prog_OTOOL" 8162fi 8163 8164 if test -n "$ac_tool_prefix"; then 8165 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8166set dummy ${ac_tool_prefix}otool64; ac_word=$2 8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8168printf %s "checking for $ac_word... " >&6; } 8169if test ${ac_cv_prog_OTOOL64+y} 8170then : 8171 printf %s "(cached) " >&6 8172else $as_nop 8173 if test -n "$OTOOL64"; then 8174 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8175else 8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8177for as_dir in $PATH 8178do 8179 IFS=$as_save_IFS 8180 case $as_dir in #((( 8181 '') as_dir=./ ;; 8182 */) ;; 8183 *) as_dir=$as_dir/ ;; 8184 esac 8185 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8187 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8189 break 2 8190 fi 8191done 8192 done 8193IFS=$as_save_IFS 8194 8195fi 8196fi 8197OTOOL64=$ac_cv_prog_OTOOL64 8198if test -n "$OTOOL64"; then 8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8200printf "%s\n" "$OTOOL64" >&6; } 8201else 8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8203printf "%s\n" "no" >&6; } 8204fi 8205 8206 8207fi 8208if test -z "$ac_cv_prog_OTOOL64"; then 8209 ac_ct_OTOOL64=$OTOOL64 8210 # Extract the first word of "otool64", so it can be a program name with args. 8211set dummy otool64; ac_word=$2 8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8213printf %s "checking for $ac_word... " >&6; } 8214if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8215then : 8216 printf %s "(cached) " >&6 8217else $as_nop 8218 if test -n "$ac_ct_OTOOL64"; then 8219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8220else 8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8222for as_dir in $PATH 8223do 8224 IFS=$as_save_IFS 8225 case $as_dir in #((( 8226 '') as_dir=./ ;; 8227 */) ;; 8228 *) as_dir=$as_dir/ ;; 8229 esac 8230 for ac_exec_ext in '' $ac_executable_extensions; do 8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8232 ac_cv_prog_ac_ct_OTOOL64="otool64" 8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8234 break 2 8235 fi 8236done 8237 done 8238IFS=$as_save_IFS 8239 8240fi 8241fi 8242ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8243if test -n "$ac_ct_OTOOL64"; then 8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8245printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8246else 8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8248printf "%s\n" "no" >&6; } 8249fi 8250 8251 if test "x$ac_ct_OTOOL64" = x; then 8252 OTOOL64=":" 8253 else 8254 case $cross_compiling:$ac_tool_warned in 8255yes:) 8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8257printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8258ac_tool_warned=yes ;; 8259esac 8260 OTOOL64=$ac_ct_OTOOL64 8261 fi 8262else 8263 OTOOL64="$ac_cv_prog_OTOOL64" 8264fi 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8293printf %s "checking for -single_module linker flag... " >&6; } 8294if test ${lt_cv_apple_cc_single_mod+y} 8295then : 8296 printf %s "(cached) " >&6 8297else $as_nop 8298 lt_cv_apple_cc_single_mod=no 8299 if test -z "$LT_MULTI_MODULE"; then 8300 # By default we will add the -single_module flag. You can override 8301 # by either setting the environment variable LT_MULTI_MODULE 8302 # non-empty at configure time, or by adding -multi_module to the 8303 # link flags. 8304 rm -rf libconftest.dylib* 8305 echo "int foo(void){return 1;}" > conftest.c 8306 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8307-dynamiclib -Wl,-single_module conftest.c" >&5 8308 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8309 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8310 _lt_result=$? 8311 # If there is a non-empty error log, and "single_module" 8312 # appears in it, assume the flag caused a linker warning 8313 if test -s conftest.err && $GREP single_module conftest.err; then 8314 cat conftest.err >&5 8315 # Otherwise, if the output was created with a 0 exit code from 8316 # the compiler, it worked. 8317 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8318 lt_cv_apple_cc_single_mod=yes 8319 else 8320 cat conftest.err >&5 8321 fi 8322 rm -rf libconftest.dylib* 8323 rm -f conftest.* 8324 fi 8325fi 8326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8327printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8328 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8330printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8331if test ${lt_cv_ld_exported_symbols_list+y} 8332then : 8333 printf %s "(cached) " >&6 8334else $as_nop 8335 lt_cv_ld_exported_symbols_list=no 8336 save_LDFLAGS=$LDFLAGS 8337 echo "_main" > conftest.sym 8338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341 8342int 8343main (void) 8344{ 8345 8346 ; 8347 return 0; 8348} 8349_ACEOF 8350if ac_fn_c_try_link "$LINENO" 8351then : 8352 lt_cv_ld_exported_symbols_list=yes 8353else $as_nop 8354 lt_cv_ld_exported_symbols_list=no 8355fi 8356rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8357 conftest$ac_exeext conftest.$ac_ext 8358 LDFLAGS=$save_LDFLAGS 8359 8360fi 8361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8362printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8363 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8365printf %s "checking for -force_load linker flag... " >&6; } 8366if test ${lt_cv_ld_force_load+y} 8367then : 8368 printf %s "(cached) " >&6 8369else $as_nop 8370 lt_cv_ld_force_load=no 8371 cat > conftest.c << _LT_EOF 8372int forced_loaded() { return 2;} 8373_LT_EOF 8374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8376 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8377 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8378 echo "$RANLIB libconftest.a" >&5 8379 $RANLIB libconftest.a 2>&5 8380 cat > conftest.c << _LT_EOF 8381int main() { return 0;} 8382_LT_EOF 8383 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8384 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8385 _lt_result=$? 8386 if test -s conftest.err && $GREP force_load conftest.err; then 8387 cat conftest.err >&5 8388 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8389 lt_cv_ld_force_load=yes 8390 else 8391 cat conftest.err >&5 8392 fi 8393 rm -f conftest.err libconftest.a conftest conftest.c 8394 rm -rf conftest.dSYM 8395 8396fi 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8398printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8399 case $host_os in 8400 rhapsody* | darwin1.[012]) 8401 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8402 darwin1.*) 8403 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8404 darwin*) 8405 case $MACOSX_DEPLOYMENT_TARGET,$host in 8406 10.[012],*|,*powerpc*-darwin[5-8]*) 8407 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8408 *) 8409 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8410 esac 8411 ;; 8412 esac 8413 if test yes = "$lt_cv_apple_cc_single_mod"; then 8414 _lt_dar_single_mod='$single_module' 8415 fi 8416 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8417 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8418 else 8419 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8420 fi 8421 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8422 _lt_dsymutil='~$DSYMUTIL $lib || :' 8423 else 8424 _lt_dsymutil= 8425 fi 8426 ;; 8427 esac 8428 8429# func_munge_path_list VARIABLE PATH 8430# ----------------------------------- 8431# VARIABLE is name of variable containing _space_ separated list of 8432# directories to be munged by the contents of PATH, which is string 8433# having a format: 8434# "DIR[:DIR]:" 8435# string "DIR[ DIR]" will be prepended to VARIABLE 8436# ":DIR[:DIR]" 8437# string "DIR[ DIR]" will be appended to VARIABLE 8438# "DIRP[:DIRP]::[DIRA:]DIRA" 8439# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8440# "DIRA[ DIRA]" will be appended to VARIABLE 8441# "DIR[:DIR]" 8442# VARIABLE will be replaced by "DIR[ DIR]" 8443func_munge_path_list () 8444{ 8445 case x$2 in 8446 x) 8447 ;; 8448 *:) 8449 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8450 ;; 8451 x:*) 8452 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8453 ;; 8454 *::*) 8455 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8456 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8457 ;; 8458 *) 8459 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8460 ;; 8461 esac 8462} 8463 8464ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8465" 8466if test "x$ac_cv_header_dlfcn_h" = xyes 8467then : 8468 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8469 8470fi 8471 8472 8473 8474 8475 8476# Set options 8477 8478 8479 8480 enable_dlopen=no 8481 8482 8483 enable_win32_dll=no 8484 8485 8486 # Check whether --enable-shared was given. 8487if test ${enable_shared+y} 8488then : 8489 enableval=$enable_shared; p=${PACKAGE-default} 8490 case $enableval in 8491 yes) enable_shared=yes ;; 8492 no) enable_shared=no ;; 8493 *) 8494 enable_shared=no 8495 # Look at the argument we got. We use all the common list separators. 8496 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8497 for pkg in $enableval; do 8498 IFS=$lt_save_ifs 8499 if test "X$pkg" = "X$p"; then 8500 enable_shared=yes 8501 fi 8502 done 8503 IFS=$lt_save_ifs 8504 ;; 8505 esac 8506else $as_nop 8507 enable_shared=yes 8508fi 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 # Check whether --enable-static was given. 8519if test ${enable_static+y} 8520then : 8521 enableval=$enable_static; p=${PACKAGE-default} 8522 case $enableval in 8523 yes) enable_static=yes ;; 8524 no) enable_static=no ;; 8525 *) 8526 enable_static=no 8527 # Look at the argument we got. We use all the common list separators. 8528 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8529 for pkg in $enableval; do 8530 IFS=$lt_save_ifs 8531 if test "X$pkg" = "X$p"; then 8532 enable_static=yes 8533 fi 8534 done 8535 IFS=$lt_save_ifs 8536 ;; 8537 esac 8538else $as_nop 8539 enable_static=yes 8540fi 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551# Check whether --with-pic was given. 8552if test ${with_pic+y} 8553then : 8554 withval=$with_pic; lt_p=${PACKAGE-default} 8555 case $withval in 8556 yes|no) pic_mode=$withval ;; 8557 *) 8558 pic_mode=default 8559 # Look at the argument we got. We use all the common list separators. 8560 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8561 for lt_pkg in $withval; do 8562 IFS=$lt_save_ifs 8563 if test "X$lt_pkg" = "X$lt_p"; then 8564 pic_mode=yes 8565 fi 8566 done 8567 IFS=$lt_save_ifs 8568 ;; 8569 esac 8570else $as_nop 8571 pic_mode=default 8572fi 8573 8574 8575 8576 8577 8578 8579 8580 8581 # Check whether --enable-fast-install was given. 8582if test ${enable_fast_install+y} 8583then : 8584 enableval=$enable_fast_install; p=${PACKAGE-default} 8585 case $enableval in 8586 yes) enable_fast_install=yes ;; 8587 no) enable_fast_install=no ;; 8588 *) 8589 enable_fast_install=no 8590 # Look at the argument we got. We use all the common list separators. 8591 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8592 for pkg in $enableval; do 8593 IFS=$lt_save_ifs 8594 if test "X$pkg" = "X$p"; then 8595 enable_fast_install=yes 8596 fi 8597 done 8598 IFS=$lt_save_ifs 8599 ;; 8600 esac 8601else $as_nop 8602 enable_fast_install=yes 8603fi 8604 8605 8606 8607 8608 8609 8610 8611 8612 shared_archive_member_spec= 8613case $host,$enable_shared in 8614power*-*-aix[5-9]*,yes) 8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8616printf %s "checking which variant of shared library versioning to provide... " >&6; } 8617 8618# Check whether --with-aix-soname was given. 8619if test ${with_aix_soname+y} 8620then : 8621 withval=$with_aix_soname; case $withval in 8622 aix|svr4|both) 8623 ;; 8624 *) 8625 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8626 ;; 8627 esac 8628 lt_cv_with_aix_soname=$with_aix_soname 8629else $as_nop 8630 if test ${lt_cv_with_aix_soname+y} 8631then : 8632 printf %s "(cached) " >&6 8633else $as_nop 8634 lt_cv_with_aix_soname=aix 8635fi 8636 8637 with_aix_soname=$lt_cv_with_aix_soname 8638fi 8639 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8641printf "%s\n" "$with_aix_soname" >&6; } 8642 if test aix != "$with_aix_soname"; then 8643 # For the AIX way of multilib, we name the shared archive member 8644 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8645 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8646 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8647 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8648 if test 64 = "${OBJECT_MODE-32}"; then 8649 shared_archive_member_spec=shr_64 8650 else 8651 shared_archive_member_spec=shr 8652 fi 8653 fi 8654 ;; 8655*) 8656 with_aix_soname=aix 8657 ;; 8658esac 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669# This can be used to rebuild libtool when needed 8670LIBTOOL_DEPS=$ltmain 8671 8672# Always use our own libtool. 8673LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704test -z "$LN_S" && LN_S="ln -s" 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719if test -n "${ZSH_VERSION+set}"; then 8720 setopt NO_GLOB_SUBST 8721fi 8722 8723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8724printf %s "checking for objdir... " >&6; } 8725if test ${lt_cv_objdir+y} 8726then : 8727 printf %s "(cached) " >&6 8728else $as_nop 8729 rm -f .libs 2>/dev/null 8730mkdir .libs 2>/dev/null 8731if test -d .libs; then 8732 lt_cv_objdir=.libs 8733else 8734 # MS-DOS does not allow filenames that begin with a dot. 8735 lt_cv_objdir=_libs 8736fi 8737rmdir .libs 2>/dev/null 8738fi 8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8740printf "%s\n" "$lt_cv_objdir" >&6; } 8741objdir=$lt_cv_objdir 8742 8743 8744 8745 8746 8747printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8748 8749 8750 8751 8752case $host_os in 8753aix3*) 8754 # AIX sometimes has problems with the GCC collect2 program. For some 8755 # reason, if we set the COLLECT_NAMES environment variable, the problems 8756 # vanish in a puff of smoke. 8757 if test set != "${COLLECT_NAMES+set}"; then 8758 COLLECT_NAMES= 8759 export COLLECT_NAMES 8760 fi 8761 ;; 8762esac 8763 8764# Global variables: 8765ofile=libtool 8766can_build_shared=yes 8767 8768# All known linkers require a '.a' archive for static linking (except MSVC and 8769# ICC, which need '.lib'). 8770libext=a 8771 8772with_gnu_ld=$lt_cv_prog_gnu_ld 8773 8774old_CC=$CC 8775old_CFLAGS=$CFLAGS 8776 8777# Set sane defaults for various variables 8778test -z "$CC" && CC=cc 8779test -z "$LTCC" && LTCC=$CC 8780test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8781test -z "$LD" && LD=ld 8782test -z "$ac_objext" && ac_objext=o 8783 8784func_cc_basename $compiler 8785cc_basename=$func_cc_basename_result 8786 8787 8788# Only perform the check for file, if the check method requires it 8789test -z "$MAGIC_CMD" && MAGIC_CMD=file 8790case $deplibs_check_method in 8791file_magic*) 8792 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8794printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8795if test ${lt_cv_path_MAGIC_CMD+y} 8796then : 8797 printf %s "(cached) " >&6 8798else $as_nop 8799 case $MAGIC_CMD in 8800[\\/*] | ?:[\\/]*) 8801 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8802 ;; 8803*) 8804 lt_save_MAGIC_CMD=$MAGIC_CMD 8805 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8807 for ac_dir in $ac_dummy; do 8808 IFS=$lt_save_ifs 8809 test -z "$ac_dir" && ac_dir=. 8810 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8811 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8812 if test -n "$file_magic_test_file"; then 8813 case $deplibs_check_method in 8814 "file_magic "*) 8815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8818 $EGREP "$file_magic_regex" > /dev/null; then 8819 : 8820 else 8821 cat <<_LT_EOF 1>&2 8822 8823*** Warning: the command libtool uses to detect shared libraries, 8824*** $file_magic_cmd, produces output that libtool cannot recognize. 8825*** The result is that libtool may fail to recognize shared libraries 8826*** as such. This will affect the creation of libtool libraries that 8827*** depend on shared libraries, but programs linked with such libtool 8828*** libraries will work regardless of this problem. Nevertheless, you 8829*** may want to report the problem to your system manager and/or to 8830*** bug-libtool@gnu.org 8831 8832_LT_EOF 8833 fi ;; 8834 esac 8835 fi 8836 break 8837 fi 8838 done 8839 IFS=$lt_save_ifs 8840 MAGIC_CMD=$lt_save_MAGIC_CMD 8841 ;; 8842esac 8843fi 8844 8845MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8846if test -n "$MAGIC_CMD"; then 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8848printf "%s\n" "$MAGIC_CMD" >&6; } 8849else 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851printf "%s\n" "no" >&6; } 8852fi 8853 8854 8855 8856 8857 8858if test -z "$lt_cv_path_MAGIC_CMD"; then 8859 if test -n "$ac_tool_prefix"; then 8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8861printf %s "checking for file... " >&6; } 8862if test ${lt_cv_path_MAGIC_CMD+y} 8863then : 8864 printf %s "(cached) " >&6 8865else $as_nop 8866 case $MAGIC_CMD in 8867[\\/*] | ?:[\\/]*) 8868 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8869 ;; 8870*) 8871 lt_save_MAGIC_CMD=$MAGIC_CMD 8872 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8874 for ac_dir in $ac_dummy; do 8875 IFS=$lt_save_ifs 8876 test -z "$ac_dir" && ac_dir=. 8877 if test -f "$ac_dir/file"; then 8878 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8879 if test -n "$file_magic_test_file"; then 8880 case $deplibs_check_method in 8881 "file_magic "*) 8882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8883 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8885 $EGREP "$file_magic_regex" > /dev/null; then 8886 : 8887 else 8888 cat <<_LT_EOF 1>&2 8889 8890*** Warning: the command libtool uses to detect shared libraries, 8891*** $file_magic_cmd, produces output that libtool cannot recognize. 8892*** The result is that libtool may fail to recognize shared libraries 8893*** as such. This will affect the creation of libtool libraries that 8894*** depend on shared libraries, but programs linked with such libtool 8895*** libraries will work regardless of this problem. Nevertheless, you 8896*** may want to report the problem to your system manager and/or to 8897*** bug-libtool@gnu.org 8898 8899_LT_EOF 8900 fi ;; 8901 esac 8902 fi 8903 break 8904 fi 8905 done 8906 IFS=$lt_save_ifs 8907 MAGIC_CMD=$lt_save_MAGIC_CMD 8908 ;; 8909esac 8910fi 8911 8912MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8913if test -n "$MAGIC_CMD"; then 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8915printf "%s\n" "$MAGIC_CMD" >&6; } 8916else 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8918printf "%s\n" "no" >&6; } 8919fi 8920 8921 8922 else 8923 MAGIC_CMD=: 8924 fi 8925fi 8926 8927 fi 8928 ;; 8929esac 8930 8931# Use C for the default configuration in the libtool script 8932 8933lt_save_CC=$CC 8934ac_ext=c 8935ac_cpp='$CPP $CPPFLAGS' 8936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8938ac_compiler_gnu=$ac_cv_c_compiler_gnu 8939 8940 8941# Source file extension for C test sources. 8942ac_ext=c 8943 8944# Object file extension for compiled C test sources. 8945objext=o 8946objext=$objext 8947 8948# Code to be used in simple compile tests 8949lt_simple_compile_test_code="int some_variable = 0;" 8950 8951# Code to be used in simple link tests 8952lt_simple_link_test_code='int main(){return(0);}' 8953 8954 8955 8956 8957 8958 8959 8960# If no C compiler was specified, use CC. 8961LTCC=${LTCC-"$CC"} 8962 8963# If no C compiler flags were specified, use CFLAGS. 8964LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8965 8966# Allow CC to be a program name with arguments. 8967compiler=$CC 8968 8969# Save the default compiler, since it gets overwritten when the other 8970# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8971compiler_DEFAULT=$CC 8972 8973# save warnings/boilerplate of simple test code 8974ac_outfile=conftest.$ac_objext 8975echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8977_lt_compiler_boilerplate=`cat conftest.err` 8978$RM conftest* 8979 8980ac_outfile=conftest.$ac_objext 8981echo "$lt_simple_link_test_code" >conftest.$ac_ext 8982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8983_lt_linker_boilerplate=`cat conftest.err` 8984$RM -r conftest* 8985 8986 8987## CAVEAT EMPTOR: 8988## There is no encapsulation within the following macros, do not change 8989## the running order or otherwise move them around unless you know exactly 8990## what you are doing... 8991if test -n "$compiler"; then 8992 8993lt_prog_compiler_no_builtin_flag= 8994 8995if test yes = "$GCC"; then 8996 case $cc_basename in 8997 nvcc*) 8998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8999 *) 9000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9001 esac 9002 9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9004printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9005if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9006then : 9007 printf %s "(cached) " >&6 9008else $as_nop 9009 lt_cv_prog_compiler_rtti_exceptions=no 9010 ac_outfile=conftest.$ac_objext 9011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9012 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9013 # Insert the option either (1) after the last *FLAGS variable, or 9014 # (2) before a word containing "conftest.", or (3) at the end. 9015 # Note that $ac_compile itself does not contain backslashes and begins 9016 # with a dollar sign (not a hyphen), so the echo should work correctly. 9017 # The option is referenced via a variable to avoid confusing sed. 9018 lt_compile=`echo "$ac_compile" | $SED \ 9019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9021 -e 's:$: $lt_compiler_flag:'` 9022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9023 (eval "$lt_compile" 2>conftest.err) 9024 ac_status=$? 9025 cat conftest.err >&5 9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9027 if (exit $ac_status) && test -s "$ac_outfile"; then 9028 # The compiler can only warn and ignore the option if not recognized 9029 # So say no if there are warnings other than the usual output. 9030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9033 lt_cv_prog_compiler_rtti_exceptions=yes 9034 fi 9035 fi 9036 $RM conftest* 9037 9038fi 9039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9040printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9041 9042if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9043 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9044else 9045 : 9046fi 9047 9048fi 9049 9050 9051 9052 9053 9054 9055 lt_prog_compiler_wl= 9056lt_prog_compiler_pic= 9057lt_prog_compiler_static= 9058 9059 9060 if test yes = "$GCC"; then 9061 lt_prog_compiler_wl='-Wl,' 9062 lt_prog_compiler_static='-static' 9063 9064 case $host_os in 9065 aix*) 9066 # All AIX code is PIC. 9067 if test ia64 = "$host_cpu"; then 9068 # AIX 5 now supports IA64 processor 9069 lt_prog_compiler_static='-Bstatic' 9070 fi 9071 lt_prog_compiler_pic='-fPIC' 9072 ;; 9073 9074 amigaos*) 9075 case $host_cpu in 9076 powerpc) 9077 # see comment about AmigaOS4 .so support 9078 lt_prog_compiler_pic='-fPIC' 9079 ;; 9080 m68k) 9081 # FIXME: we need at least 68020 code to build shared libraries, but 9082 # adding the '-m68020' flag to GCC prevents building anything better, 9083 # like '-m68040'. 9084 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9085 ;; 9086 esac 9087 ;; 9088 9089 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9090 # PIC is the default for these OSes. 9091 ;; 9092 9093 mingw* | cygwin* | pw32* | os2* | cegcc*) 9094 # This hack is so that the source file can tell whether it is being 9095 # built for inclusion in a dll (and should export symbols for example). 9096 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9097 # (--disable-auto-import) libraries 9098 lt_prog_compiler_pic='-DDLL_EXPORT' 9099 case $host_os in 9100 os2*) 9101 lt_prog_compiler_static='$wl-static' 9102 ;; 9103 esac 9104 ;; 9105 9106 darwin* | rhapsody*) 9107 # PIC is the default on this platform 9108 # Common symbols not allowed in MH_DYLIB files 9109 lt_prog_compiler_pic='-fno-common' 9110 ;; 9111 9112 haiku*) 9113 # PIC is the default for Haiku. 9114 # The "-static" flag exists, but is broken. 9115 lt_prog_compiler_static= 9116 ;; 9117 9118 hpux*) 9119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9121 # sets the default TLS model and affects inlining. 9122 case $host_cpu in 9123 hppa*64*) 9124 # +Z the default 9125 ;; 9126 *) 9127 lt_prog_compiler_pic='-fPIC' 9128 ;; 9129 esac 9130 ;; 9131 9132 interix[3-9]*) 9133 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9134 # Instead, we relocate shared libraries at runtime. 9135 ;; 9136 9137 msdosdjgpp*) 9138 # Just because we use GCC doesn't mean we suddenly get shared libraries 9139 # on systems that don't support them. 9140 lt_prog_compiler_can_build_shared=no 9141 enable_shared=no 9142 ;; 9143 9144 *nto* | *qnx*) 9145 # QNX uses GNU C++, but need to define -shared option too, otherwise 9146 # it will coredump. 9147 lt_prog_compiler_pic='-fPIC -shared' 9148 ;; 9149 9150 sysv4*MP*) 9151 if test -d /usr/nec; then 9152 lt_prog_compiler_pic=-Kconform_pic 9153 fi 9154 ;; 9155 9156 *) 9157 lt_prog_compiler_pic='-fPIC' 9158 ;; 9159 esac 9160 9161 case $cc_basename in 9162 nvcc*) # Cuda Compiler Driver 2.2 9163 lt_prog_compiler_wl='-Xlinker ' 9164 if test -n "$lt_prog_compiler_pic"; then 9165 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9166 fi 9167 ;; 9168 esac 9169 else 9170 # PORTME Check for flag to pass linker flags through the system compiler. 9171 case $host_os in 9172 aix*) 9173 lt_prog_compiler_wl='-Wl,' 9174 if test ia64 = "$host_cpu"; then 9175 # AIX 5 now supports IA64 processor 9176 lt_prog_compiler_static='-Bstatic' 9177 else 9178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9179 fi 9180 ;; 9181 9182 darwin* | rhapsody*) 9183 # PIC is the default on this platform 9184 # Common symbols not allowed in MH_DYLIB files 9185 lt_prog_compiler_pic='-fno-common' 9186 case $cc_basename in 9187 nagfor*) 9188 # NAG Fortran compiler 9189 lt_prog_compiler_wl='-Wl,-Wl,,' 9190 lt_prog_compiler_pic='-PIC' 9191 lt_prog_compiler_static='-Bstatic' 9192 ;; 9193 esac 9194 ;; 9195 9196 mingw* | cygwin* | pw32* | os2* | cegcc*) 9197 # This hack is so that the source file can tell whether it is being 9198 # built for inclusion in a dll (and should export symbols for example). 9199 lt_prog_compiler_pic='-DDLL_EXPORT' 9200 case $host_os in 9201 os2*) 9202 lt_prog_compiler_static='$wl-static' 9203 ;; 9204 esac 9205 ;; 9206 9207 hpux9* | hpux10* | hpux11*) 9208 lt_prog_compiler_wl='-Wl,' 9209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9210 # not for PA HP-UX. 9211 case $host_cpu in 9212 hppa*64*|ia64*) 9213 # +Z the default 9214 ;; 9215 *) 9216 lt_prog_compiler_pic='+Z' 9217 ;; 9218 esac 9219 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9220 lt_prog_compiler_static='$wl-a ${wl}archive' 9221 ;; 9222 9223 irix5* | irix6* | nonstopux*) 9224 lt_prog_compiler_wl='-Wl,' 9225 # PIC (with -KPIC) is the default. 9226 lt_prog_compiler_static='-non_shared' 9227 ;; 9228 9229 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9230 case $cc_basename in 9231 # old Intel for x86_64, which still supported -KPIC. 9232 ecc*) 9233 lt_prog_compiler_wl='-Wl,' 9234 lt_prog_compiler_pic='-KPIC' 9235 lt_prog_compiler_static='-static' 9236 ;; 9237 # icc used to be incompatible with GCC. 9238 # ICC 10 doesn't accept -KPIC any more. 9239 icc* | ifort*) 9240 lt_prog_compiler_wl='-Wl,' 9241 lt_prog_compiler_pic='-fPIC' 9242 lt_prog_compiler_static='-static' 9243 ;; 9244 # Lahey Fortran 8.1. 9245 lf95*) 9246 lt_prog_compiler_wl='-Wl,' 9247 lt_prog_compiler_pic='--shared' 9248 lt_prog_compiler_static='--static' 9249 ;; 9250 nagfor*) 9251 # NAG Fortran compiler 9252 lt_prog_compiler_wl='-Wl,-Wl,,' 9253 lt_prog_compiler_pic='-PIC' 9254 lt_prog_compiler_static='-Bstatic' 9255 ;; 9256 tcc*) 9257 # Fabrice Bellard et al's Tiny C Compiler 9258 lt_prog_compiler_wl='-Wl,' 9259 lt_prog_compiler_pic='-fPIC' 9260 lt_prog_compiler_static='-static' 9261 ;; 9262 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9263 # Portland Group compilers (*not* the Pentium gcc compiler, 9264 # which looks to be a dead project) 9265 lt_prog_compiler_wl='-Wl,' 9266 lt_prog_compiler_pic='-fpic' 9267 lt_prog_compiler_static='-Bstatic' 9268 ;; 9269 ccc*) 9270 lt_prog_compiler_wl='-Wl,' 9271 # All Alpha code is PIC. 9272 lt_prog_compiler_static='-non_shared' 9273 ;; 9274 xl* | bgxl* | bgf* | mpixl*) 9275 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9276 lt_prog_compiler_wl='-Wl,' 9277 lt_prog_compiler_pic='-qpic' 9278 lt_prog_compiler_static='-qstaticlink' 9279 ;; 9280 *) 9281 case `$CC -V 2>&1 | $SED 5q` in 9282 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9283 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9284 lt_prog_compiler_pic='-KPIC' 9285 lt_prog_compiler_static='-Bstatic' 9286 lt_prog_compiler_wl='' 9287 ;; 9288 *Sun\ F* | *Sun*Fortran*) 9289 lt_prog_compiler_pic='-KPIC' 9290 lt_prog_compiler_static='-Bstatic' 9291 lt_prog_compiler_wl='-Qoption ld ' 9292 ;; 9293 *Sun\ C*) 9294 # Sun C 5.9 9295 lt_prog_compiler_pic='-KPIC' 9296 lt_prog_compiler_static='-Bstatic' 9297 lt_prog_compiler_wl='-Wl,' 9298 ;; 9299 *Intel*\ [CF]*Compiler*) 9300 lt_prog_compiler_wl='-Wl,' 9301 lt_prog_compiler_pic='-fPIC' 9302 lt_prog_compiler_static='-static' 9303 ;; 9304 *Portland\ Group*) 9305 lt_prog_compiler_wl='-Wl,' 9306 lt_prog_compiler_pic='-fpic' 9307 lt_prog_compiler_static='-Bstatic' 9308 ;; 9309 esac 9310 ;; 9311 esac 9312 ;; 9313 9314 newsos6) 9315 lt_prog_compiler_pic='-KPIC' 9316 lt_prog_compiler_static='-Bstatic' 9317 ;; 9318 9319 *nto* | *qnx*) 9320 # QNX uses GNU C++, but need to define -shared option too, otherwise 9321 # it will coredump. 9322 lt_prog_compiler_pic='-fPIC -shared' 9323 ;; 9324 9325 osf3* | osf4* | osf5*) 9326 lt_prog_compiler_wl='-Wl,' 9327 # All OSF/1 code is PIC. 9328 lt_prog_compiler_static='-non_shared' 9329 ;; 9330 9331 rdos*) 9332 lt_prog_compiler_static='-non_shared' 9333 ;; 9334 9335 solaris*) 9336 lt_prog_compiler_pic='-KPIC' 9337 lt_prog_compiler_static='-Bstatic' 9338 case $cc_basename in 9339 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9340 lt_prog_compiler_wl='-Qoption ld ';; 9341 *) 9342 lt_prog_compiler_wl='-Wl,';; 9343 esac 9344 ;; 9345 9346 sunos4*) 9347 lt_prog_compiler_wl='-Qoption ld ' 9348 lt_prog_compiler_pic='-PIC' 9349 lt_prog_compiler_static='-Bstatic' 9350 ;; 9351 9352 sysv4 | sysv4.2uw2* | sysv4.3*) 9353 lt_prog_compiler_wl='-Wl,' 9354 lt_prog_compiler_pic='-KPIC' 9355 lt_prog_compiler_static='-Bstatic' 9356 ;; 9357 9358 sysv4*MP*) 9359 if test -d /usr/nec; then 9360 lt_prog_compiler_pic='-Kconform_pic' 9361 lt_prog_compiler_static='-Bstatic' 9362 fi 9363 ;; 9364 9365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9366 lt_prog_compiler_wl='-Wl,' 9367 lt_prog_compiler_pic='-KPIC' 9368 lt_prog_compiler_static='-Bstatic' 9369 ;; 9370 9371 unicos*) 9372 lt_prog_compiler_wl='-Wl,' 9373 lt_prog_compiler_can_build_shared=no 9374 ;; 9375 9376 uts4*) 9377 lt_prog_compiler_pic='-pic' 9378 lt_prog_compiler_static='-Bstatic' 9379 ;; 9380 9381 *) 9382 lt_prog_compiler_can_build_shared=no 9383 ;; 9384 esac 9385 fi 9386 9387case $host_os in 9388 # For platforms that do not support PIC, -DPIC is meaningless: 9389 *djgpp*) 9390 lt_prog_compiler_pic= 9391 ;; 9392 *) 9393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9394 ;; 9395esac 9396 9397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9398printf %s "checking for $compiler option to produce PIC... " >&6; } 9399if test ${lt_cv_prog_compiler_pic+y} 9400then : 9401 printf %s "(cached) " >&6 9402else $as_nop 9403 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9404fi 9405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9406printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9407lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9408 9409# 9410# Check to make sure the PIC flag actually works. 9411# 9412if test -n "$lt_prog_compiler_pic"; then 9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9414printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9415if test ${lt_cv_prog_compiler_pic_works+y} 9416then : 9417 printf %s "(cached) " >&6 9418else $as_nop 9419 lt_cv_prog_compiler_pic_works=no 9420 ac_outfile=conftest.$ac_objext 9421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9423 # Insert the option either (1) after the last *FLAGS variable, or 9424 # (2) before a word containing "conftest.", or (3) at the end. 9425 # Note that $ac_compile itself does not contain backslashes and begins 9426 # with a dollar sign (not a hyphen), so the echo should work correctly. 9427 # The option is referenced via a variable to avoid confusing sed. 9428 lt_compile=`echo "$ac_compile" | $SED \ 9429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9431 -e 's:$: $lt_compiler_flag:'` 9432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9433 (eval "$lt_compile" 2>conftest.err) 9434 ac_status=$? 9435 cat conftest.err >&5 9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9437 if (exit $ac_status) && test -s "$ac_outfile"; then 9438 # The compiler can only warn and ignore the option if not recognized 9439 # So say no if there are warnings other than the usual output. 9440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9443 lt_cv_prog_compiler_pic_works=yes 9444 fi 9445 fi 9446 $RM conftest* 9447 9448fi 9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9450printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9451 9452if test yes = "$lt_cv_prog_compiler_pic_works"; then 9453 case $lt_prog_compiler_pic in 9454 "" | " "*) ;; 9455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9456 esac 9457else 9458 lt_prog_compiler_pic= 9459 lt_prog_compiler_can_build_shared=no 9460fi 9461 9462fi 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474# 9475# Check to make sure the static flag actually works. 9476# 9477wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9479printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9480if test ${lt_cv_prog_compiler_static_works+y} 9481then : 9482 printf %s "(cached) " >&6 9483else $as_nop 9484 lt_cv_prog_compiler_static_works=no 9485 save_LDFLAGS=$LDFLAGS 9486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9487 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9489 # The linker can only warn and ignore the option if not recognized 9490 # So say no if there are warnings 9491 if test -s conftest.err; then 9492 # Append any errors to the config.log. 9493 cat conftest.err 1>&5 9494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9496 if diff conftest.exp conftest.er2 >/dev/null; then 9497 lt_cv_prog_compiler_static_works=yes 9498 fi 9499 else 9500 lt_cv_prog_compiler_static_works=yes 9501 fi 9502 fi 9503 $RM -r conftest* 9504 LDFLAGS=$save_LDFLAGS 9505 9506fi 9507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9508printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9509 9510if test yes = "$lt_cv_prog_compiler_static_works"; then 9511 : 9512else 9513 lt_prog_compiler_static= 9514fi 9515 9516 9517 9518 9519 9520 9521 9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9523printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9524if test ${lt_cv_prog_compiler_c_o+y} 9525then : 9526 printf %s "(cached) " >&6 9527else $as_nop 9528 lt_cv_prog_compiler_c_o=no 9529 $RM -r conftest 2>/dev/null 9530 mkdir conftest 9531 cd conftest 9532 mkdir out 9533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9534 9535 lt_compiler_flag="-o out/conftest2.$ac_objext" 9536 # Insert the option either (1) after the last *FLAGS variable, or 9537 # (2) before a word containing "conftest.", or (3) at the end. 9538 # Note that $ac_compile itself does not contain backslashes and begins 9539 # with a dollar sign (not a hyphen), so the echo should work correctly. 9540 lt_compile=`echo "$ac_compile" | $SED \ 9541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9543 -e 's:$: $lt_compiler_flag:'` 9544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9545 (eval "$lt_compile" 2>out/conftest.err) 9546 ac_status=$? 9547 cat out/conftest.err >&5 9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9549 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9550 then 9551 # The compiler can only warn and ignore the option if not recognized 9552 # So say no if there are warnings 9553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9556 lt_cv_prog_compiler_c_o=yes 9557 fi 9558 fi 9559 chmod u+w . 2>&5 9560 $RM conftest* 9561 # SGI C++ compiler will create directory out/ii_files/ for 9562 # template instantiation 9563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9564 $RM out/* && rmdir out 9565 cd .. 9566 $RM -r conftest 9567 $RM conftest* 9568 9569fi 9570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9571printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9572 9573 9574 9575 9576 9577 9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9579printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9580if test ${lt_cv_prog_compiler_c_o+y} 9581then : 9582 printf %s "(cached) " >&6 9583else $as_nop 9584 lt_cv_prog_compiler_c_o=no 9585 $RM -r conftest 2>/dev/null 9586 mkdir conftest 9587 cd conftest 9588 mkdir out 9589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9590 9591 lt_compiler_flag="-o out/conftest2.$ac_objext" 9592 # Insert the option either (1) after the last *FLAGS variable, or 9593 # (2) before a word containing "conftest.", or (3) at the end. 9594 # Note that $ac_compile itself does not contain backslashes and begins 9595 # with a dollar sign (not a hyphen), so the echo should work correctly. 9596 lt_compile=`echo "$ac_compile" | $SED \ 9597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9599 -e 's:$: $lt_compiler_flag:'` 9600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9601 (eval "$lt_compile" 2>out/conftest.err) 9602 ac_status=$? 9603 cat out/conftest.err >&5 9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9605 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9606 then 9607 # The compiler can only warn and ignore the option if not recognized 9608 # So say no if there are warnings 9609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9610 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9611 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9612 lt_cv_prog_compiler_c_o=yes 9613 fi 9614 fi 9615 chmod u+w . 2>&5 9616 $RM conftest* 9617 # SGI C++ compiler will create directory out/ii_files/ for 9618 # template instantiation 9619 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9620 $RM out/* && rmdir out 9621 cd .. 9622 $RM -r conftest 9623 $RM conftest* 9624 9625fi 9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9627printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9628 9629 9630 9631 9632hard_links=nottested 9633if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9634 # do not overwrite the value of need_locks provided by the user 9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9636printf %s "checking if we can lock with hard links... " >&6; } 9637 hard_links=yes 9638 $RM conftest* 9639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9640 touch conftest.a 9641 ln conftest.a conftest.b 2>&5 || hard_links=no 9642 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9644printf "%s\n" "$hard_links" >&6; } 9645 if test no = "$hard_links"; then 9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9647printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9648 need_locks=warn 9649 fi 9650else 9651 need_locks=no 9652fi 9653 9654 9655 9656 9657 9658 9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9660printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9661 9662 runpath_var= 9663 allow_undefined_flag= 9664 always_export_symbols=no 9665 archive_cmds= 9666 archive_expsym_cmds= 9667 compiler_needs_object=no 9668 enable_shared_with_static_runtimes=no 9669 export_dynamic_flag_spec= 9670 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9671 hardcode_automatic=no 9672 hardcode_direct=no 9673 hardcode_direct_absolute=no 9674 hardcode_libdir_flag_spec= 9675 hardcode_libdir_separator= 9676 hardcode_minus_L=no 9677 hardcode_shlibpath_var=unsupported 9678 inherit_rpath=no 9679 link_all_deplibs=unknown 9680 module_cmds= 9681 module_expsym_cmds= 9682 old_archive_from_new_cmds= 9683 old_archive_from_expsyms_cmds= 9684 thread_safe_flag_spec= 9685 whole_archive_flag_spec= 9686 # include_expsyms should be a list of space-separated symbols to be *always* 9687 # included in the symbol list 9688 include_expsyms= 9689 # exclude_expsyms can be an extended regexp of symbols to exclude 9690 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9691 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9692 # as well as any symbol that contains 'd'. 9693 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9694 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9695 # platforms (ab)use it in PIC code, but their linkers get confused if 9696 # the symbol is explicitly referenced. Since portable code cannot 9697 # rely on this symbol name, it's probably fine to never include it in 9698 # preloaded symbol tables. 9699 # Exclude shared library initialization/finalization symbols. 9700 extract_expsyms_cmds= 9701 9702 case $host_os in 9703 cygwin* | mingw* | pw32* | cegcc*) 9704 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9705 # When not using gcc, we currently assume that we are using 9706 # Microsoft Visual C++ or Intel C++ Compiler. 9707 if test yes != "$GCC"; then 9708 with_gnu_ld=no 9709 fi 9710 ;; 9711 interix*) 9712 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9713 with_gnu_ld=yes 9714 ;; 9715 openbsd* | bitrig*) 9716 with_gnu_ld=no 9717 ;; 9718 esac 9719 9720 ld_shlibs=yes 9721 9722 # On some targets, GNU ld is compatible enough with the native linker 9723 # that we're better off using the native interface for both. 9724 lt_use_gnu_ld_interface=no 9725 if test yes = "$with_gnu_ld"; then 9726 case $host_os in 9727 aix*) 9728 # The AIX port of GNU ld has always aspired to compatibility 9729 # with the native linker. However, as the warning in the GNU ld 9730 # block says, versions before 2.19.5* couldn't really create working 9731 # shared libraries, regardless of the interface used. 9732 case `$LD -v 2>&1` in 9733 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9734 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9735 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9736 *) 9737 lt_use_gnu_ld_interface=yes 9738 ;; 9739 esac 9740 ;; 9741 *) 9742 lt_use_gnu_ld_interface=yes 9743 ;; 9744 esac 9745 fi 9746 9747 if test yes = "$lt_use_gnu_ld_interface"; then 9748 # If archive_cmds runs LD, not CC, wlarc should be empty 9749 wlarc='$wl' 9750 9751 # Set some defaults for GNU ld with shared library support. These 9752 # are reset later if shared libraries are not supported. Putting them 9753 # here allows them to be overridden if necessary. 9754 runpath_var=LD_RUN_PATH 9755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9756 export_dynamic_flag_spec='$wl--export-dynamic' 9757 # ancient GNU ld didn't support --whole-archive et. al. 9758 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9759 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9760 else 9761 whole_archive_flag_spec= 9762 fi 9763 supports_anon_versioning=no 9764 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9765 *GNU\ gold*) supports_anon_versioning=yes ;; 9766 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9767 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9768 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9769 *\ 2.11.*) ;; # other 2.11 versions 9770 *) supports_anon_versioning=yes ;; 9771 esac 9772 9773 # See if GNU ld supports shared libraries. 9774 case $host_os in 9775 aix[3-9]*) 9776 # On AIX/PPC, the GNU linker is very broken 9777 if test ia64 != "$host_cpu"; then 9778 ld_shlibs=no 9779 cat <<_LT_EOF 1>&2 9780 9781*** Warning: the GNU linker, at least up to release 2.19, is reported 9782*** to be unable to reliably create shared libraries on AIX. 9783*** Therefore, libtool is disabling shared libraries support. If you 9784*** really care for shared libraries, you may want to install binutils 9785*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9786*** You will then need to restart the configuration process. 9787 9788_LT_EOF 9789 fi 9790 ;; 9791 9792 amigaos*) 9793 case $host_cpu in 9794 powerpc) 9795 # see comment about AmigaOS4 .so support 9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9797 archive_expsym_cmds='' 9798 ;; 9799 m68k) 9800 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)' 9801 hardcode_libdir_flag_spec='-L$libdir' 9802 hardcode_minus_L=yes 9803 ;; 9804 esac 9805 ;; 9806 9807 beos*) 9808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9809 allow_undefined_flag=unsupported 9810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9811 # support --undefined. This deserves some investigation. FIXME 9812 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9813 else 9814 ld_shlibs=no 9815 fi 9816 ;; 9817 9818 cygwin* | mingw* | pw32* | cegcc*) 9819 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9820 # as there is no search path for DLLs. 9821 hardcode_libdir_flag_spec='-L$libdir' 9822 export_dynamic_flag_spec='$wl--export-all-symbols' 9823 allow_undefined_flag=unsupported 9824 always_export_symbols=no 9825 enable_shared_with_static_runtimes=yes 9826 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' 9827 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9828 9829 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9831 # If the export-symbols file already is a .def file, use it as 9832 # is; otherwise, prepend EXPORTS... 9833 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9834 cp $export_symbols $output_objdir/$soname.def; 9835 else 9836 echo EXPORTS > $output_objdir/$soname.def; 9837 cat $export_symbols >> $output_objdir/$soname.def; 9838 fi~ 9839 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9840 else 9841 ld_shlibs=no 9842 fi 9843 ;; 9844 9845 haiku*) 9846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9847 link_all_deplibs=yes 9848 ;; 9849 9850 os2*) 9851 hardcode_libdir_flag_spec='-L$libdir' 9852 hardcode_minus_L=yes 9853 allow_undefined_flag=unsupported 9854 shrext_cmds=.dll 9855 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9856 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9857 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9858 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9859 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9860 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9861 emximp -o $lib $output_objdir/$libname.def' 9862 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9865 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9866 prefix_cmds="$SED"~ 9867 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9868 prefix_cmds="$prefix_cmds -e 1d"; 9869 fi~ 9870 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9871 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9872 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9873 emximp -o $lib $output_objdir/$libname.def' 9874 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9875 enable_shared_with_static_runtimes=yes 9876 file_list_spec='@' 9877 ;; 9878 9879 interix[3-9]*) 9880 hardcode_direct=no 9881 hardcode_shlibpath_var=no 9882 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9883 export_dynamic_flag_spec='$wl-E' 9884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9885 # Instead, shared libraries are loaded at an image base (0x10000000 by 9886 # default) and relocated if they conflict, which is a slow very memory 9887 # consuming and fragmenting process. To avoid this, we pick a random, 9888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9889 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9891 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' 9892 ;; 9893 9894 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9895 tmp_diet=no 9896 if test linux-dietlibc = "$host_os"; then 9897 case $cc_basename in 9898 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9899 esac 9900 fi 9901 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9902 && test no = "$tmp_diet" 9903 then 9904 tmp_addflag=' $pic_flag' 9905 tmp_sharedflag='-shared' 9906 case $cc_basename,$host_cpu in 9907 pgcc*) # Portland Group C compiler 9908 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' 9909 tmp_addflag=' $pic_flag' 9910 ;; 9911 pgf77* | pgf90* | pgf95* | pgfortran*) 9912 # Portland Group f77 and f90 compilers 9913 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' 9914 tmp_addflag=' $pic_flag -Mnomain' ;; 9915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9916 tmp_addflag=' -i_dynamic' ;; 9917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9918 tmp_addflag=' -i_dynamic -nofor_main' ;; 9919 ifc* | ifort*) # Intel Fortran compiler 9920 tmp_addflag=' -nofor_main' ;; 9921 lf95*) # Lahey Fortran 8.1 9922 whole_archive_flag_spec= 9923 tmp_sharedflag='--shared' ;; 9924 nagfor*) # NAGFOR 5.3 9925 tmp_sharedflag='-Wl,-shared' ;; 9926 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9927 tmp_sharedflag='-qmkshrobj' 9928 tmp_addflag= ;; 9929 nvcc*) # Cuda Compiler Driver 2.2 9930 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' 9931 compiler_needs_object=yes 9932 ;; 9933 esac 9934 case `$CC -V 2>&1 | $SED 5q` in 9935 *Sun\ C*) # Sun C 5.9 9936 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' 9937 compiler_needs_object=yes 9938 tmp_sharedflag='-G' ;; 9939 *Sun\ F*) # Sun Fortran 8.3 9940 tmp_sharedflag='-G' ;; 9941 esac 9942 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9943 9944 if test yes = "$supports_anon_versioning"; then 9945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9946 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9947 echo "local: *; };" >> $output_objdir/$libname.ver~ 9948 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9949 fi 9950 9951 case $cc_basename in 9952 tcc*) 9953 export_dynamic_flag_spec='-rdynamic' 9954 ;; 9955 xlf* | bgf* | bgxlf* | mpixlf*) 9956 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9957 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9958 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9959 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9960 if test yes = "$supports_anon_versioning"; then 9961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9962 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9963 echo "local: *; };" >> $output_objdir/$libname.ver~ 9964 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9965 fi 9966 ;; 9967 esac 9968 else 9969 ld_shlibs=no 9970 fi 9971 ;; 9972 9973 netbsd*) 9974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9975 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9976 wlarc= 9977 else 9978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9979 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9980 fi 9981 ;; 9982 9983 solaris*) 9984 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9985 ld_shlibs=no 9986 cat <<_LT_EOF 1>&2 9987 9988*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9989*** create shared libraries on Solaris systems. Therefore, libtool 9990*** is disabling shared libraries support. We urge you to upgrade GNU 9991*** binutils to release 2.9.1 or newer. Another option is to modify 9992*** your PATH or compiler configuration so that the native linker is 9993*** used, and then restart. 9994 9995_LT_EOF 9996 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9997 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9998 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9999 else 10000 ld_shlibs=no 10001 fi 10002 ;; 10003 10004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10005 case `$LD -v 2>&1` in 10006 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10007 ld_shlibs=no 10008 cat <<_LT_EOF 1>&2 10009 10010*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10011*** reliably create shared libraries on SCO systems. Therefore, libtool 10012*** is disabling shared libraries support. We urge you to upgrade GNU 10013*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10014*** your PATH or compiler configuration so that the native linker is 10015*** used, and then restart. 10016 10017_LT_EOF 10018 ;; 10019 *) 10020 # For security reasons, it is highly recommended that you always 10021 # use absolute paths for naming shared libraries, and exclude the 10022 # DT_RUNPATH tag from executables and libraries. But doing so 10023 # requires that you compile everything twice, which is a pain. 10024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10025 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10028 else 10029 ld_shlibs=no 10030 fi 10031 ;; 10032 esac 10033 ;; 10034 10035 sunos4*) 10036 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10037 wlarc= 10038 hardcode_direct=yes 10039 hardcode_shlibpath_var=no 10040 ;; 10041 10042 *) 10043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10044 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10046 else 10047 ld_shlibs=no 10048 fi 10049 ;; 10050 esac 10051 10052 if test no = "$ld_shlibs"; then 10053 runpath_var= 10054 hardcode_libdir_flag_spec= 10055 export_dynamic_flag_spec= 10056 whole_archive_flag_spec= 10057 fi 10058 else 10059 # PORTME fill in a description of your system's linker (not GNU ld) 10060 case $host_os in 10061 aix3*) 10062 allow_undefined_flag=unsupported 10063 always_export_symbols=yes 10064 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' 10065 # Note: this linker hardcodes the directories in LIBPATH if there 10066 # are no directories specified by -L. 10067 hardcode_minus_L=yes 10068 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10069 # Neither direct hardcoding nor static linking is supported with a 10070 # broken collect2. 10071 hardcode_direct=unsupported 10072 fi 10073 ;; 10074 10075 aix[4-9]*) 10076 if test ia64 = "$host_cpu"; then 10077 # On IA64, the linker does run time linking by default, so we don't 10078 # have to do anything special. 10079 aix_use_runtimelinking=no 10080 exp_sym_flag='-Bexport' 10081 no_entry_flag= 10082 else 10083 # If we're using GNU nm, then we don't want the "-C" option. 10084 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10085 # Without the "-l" option, or with the "-B" option, AIX nm treats 10086 # weak defined symbols like other global defined symbols, whereas 10087 # GNU nm marks them as "W". 10088 # While the 'weak' keyword is ignored in the Export File, we need 10089 # it in the Import File for the 'aix-soname' feature, so we have 10090 # to replace the "-B" option with "-P" for AIX nm. 10091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10092 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' 10093 else 10094 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' 10095 fi 10096 aix_use_runtimelinking=no 10097 10098 # Test if we are trying to use run time linking or normal 10099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10100 # have runtime linking enabled, and use it for executables. 10101 # For shared libraries, we enable/disable runtime linking 10102 # depending on the kind of the shared library created - 10103 # when "with_aix_soname,aix_use_runtimelinking" is: 10104 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10105 # "aix,yes" lib.so shared, rtl:yes, for executables 10106 # lib.a static archive 10107 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10108 # lib.a(lib.so.V) shared, rtl:no, for executables 10109 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10110 # lib.a(lib.so.V) shared, rtl:no 10111 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10112 # lib.a static archive 10113 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10114 for ld_flag in $LDFLAGS; do 10115 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10116 aix_use_runtimelinking=yes 10117 break 10118 fi 10119 done 10120 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10121 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10122 # so we don't have lib.a shared libs to link our executables. 10123 # We have to force runtime linking in this case. 10124 aix_use_runtimelinking=yes 10125 LDFLAGS="$LDFLAGS -Wl,-brtl" 10126 fi 10127 ;; 10128 esac 10129 10130 exp_sym_flag='-bexport' 10131 no_entry_flag='-bnoentry' 10132 fi 10133 10134 # When large executables or shared objects are built, AIX ld can 10135 # have problems creating the table of contents. If linking a library 10136 # or program results in "error TOC overflow" add -mminimal-toc to 10137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10139 10140 archive_cmds='' 10141 hardcode_direct=yes 10142 hardcode_direct_absolute=yes 10143 hardcode_libdir_separator=':' 10144 link_all_deplibs=yes 10145 file_list_spec='$wl-f,' 10146 case $with_aix_soname,$aix_use_runtimelinking in 10147 aix,*) ;; # traditional, no import file 10148 svr4,* | *,yes) # use import file 10149 # The Import File defines what to hardcode. 10150 hardcode_direct=no 10151 hardcode_direct_absolute=no 10152 ;; 10153 esac 10154 10155 if test yes = "$GCC"; then 10156 case $host_os in aix4.[012]|aix4.[012].*) 10157 # We only want to do this on AIX 4.2 and lower, the check 10158 # below for broken collect2 doesn't work under 4.3+ 10159 collect2name=`$CC -print-prog-name=collect2` 10160 if test -f "$collect2name" && 10161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10162 then 10163 # We have reworked collect2 10164 : 10165 else 10166 # We have old collect2 10167 hardcode_direct=unsupported 10168 # It fails to find uninstalled libraries when the uninstalled 10169 # path is not listed in the libpath. Setting hardcode_minus_L 10170 # to unsupported forces relinking 10171 hardcode_minus_L=yes 10172 hardcode_libdir_flag_spec='-L$libdir' 10173 hardcode_libdir_separator= 10174 fi 10175 ;; 10176 esac 10177 shared_flag='-shared' 10178 if test yes = "$aix_use_runtimelinking"; then 10179 shared_flag="$shared_flag "'$wl-G' 10180 fi 10181 # Need to ensure runtime linking is disabled for the traditional 10182 # shared library, or the linker may eventually find shared libraries 10183 # /with/ Import File - we do not want to mix them. 10184 shared_flag_aix='-shared' 10185 shared_flag_svr4='-shared $wl-G' 10186 else 10187 # not using gcc 10188 if test ia64 = "$host_cpu"; then 10189 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10190 # chokes on -Wl,-G. The following line is correct: 10191 shared_flag='-G' 10192 else 10193 if test yes = "$aix_use_runtimelinking"; then 10194 shared_flag='$wl-G' 10195 else 10196 shared_flag='$wl-bM:SRE' 10197 fi 10198 shared_flag_aix='$wl-bM:SRE' 10199 shared_flag_svr4='$wl-G' 10200 fi 10201 fi 10202 10203 export_dynamic_flag_spec='$wl-bexpall' 10204 # It seems that -bexpall does not export symbols beginning with 10205 # underscore (_), so it is better to generate a list of symbols to export. 10206 always_export_symbols=yes 10207 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10208 # Warning - without using the other runtime loading flags (-brtl), 10209 # -berok will link without error, but may produce a broken library. 10210 allow_undefined_flag='-berok' 10211 # Determine the default libpath from the value encoded in an 10212 # empty executable. 10213 if test set = "${lt_cv_aix_libpath+set}"; then 10214 aix_libpath=$lt_cv_aix_libpath 10215else 10216 if test ${lt_cv_aix_libpath_+y} 10217then : 10218 printf %s "(cached) " >&6 10219else $as_nop 10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10221/* end confdefs.h. */ 10222 10223int 10224main (void) 10225{ 10226 10227 ; 10228 return 0; 10229} 10230_ACEOF 10231if ac_fn_c_try_link "$LINENO" 10232then : 10233 10234 lt_aix_libpath_sed=' 10235 /Import File Strings/,/^$/ { 10236 /^0/ { 10237 s/^0 *\([^ ]*\) *$/\1/ 10238 p 10239 } 10240 }' 10241 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10242 # Check for a 64-bit object if we didn't find anything. 10243 if test -z "$lt_cv_aix_libpath_"; then 10244 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10245 fi 10246fi 10247rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10248 conftest$ac_exeext conftest.$ac_ext 10249 if test -z "$lt_cv_aix_libpath_"; then 10250 lt_cv_aix_libpath_=/usr/lib:/lib 10251 fi 10252 10253fi 10254 10255 aix_libpath=$lt_cv_aix_libpath_ 10256fi 10257 10258 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10259 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 10260 else 10261 if test ia64 = "$host_cpu"; then 10262 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10263 allow_undefined_flag="-z nodefs" 10264 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" 10265 else 10266 # Determine the default libpath from the value encoded in an 10267 # empty executable. 10268 if test set = "${lt_cv_aix_libpath+set}"; then 10269 aix_libpath=$lt_cv_aix_libpath 10270else 10271 if test ${lt_cv_aix_libpath_+y} 10272then : 10273 printf %s "(cached) " >&6 10274else $as_nop 10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276/* end confdefs.h. */ 10277 10278int 10279main (void) 10280{ 10281 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286if ac_fn_c_try_link "$LINENO" 10287then : 10288 10289 lt_aix_libpath_sed=' 10290 /Import File Strings/,/^$/ { 10291 /^0/ { 10292 s/^0 *\([^ ]*\) *$/\1/ 10293 p 10294 } 10295 }' 10296 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10297 # Check for a 64-bit object if we didn't find anything. 10298 if test -z "$lt_cv_aix_libpath_"; then 10299 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10300 fi 10301fi 10302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10303 conftest$ac_exeext conftest.$ac_ext 10304 if test -z "$lt_cv_aix_libpath_"; then 10305 lt_cv_aix_libpath_=/usr/lib:/lib 10306 fi 10307 10308fi 10309 10310 aix_libpath=$lt_cv_aix_libpath_ 10311fi 10312 10313 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10314 # Warning - without using the other run time loading flags, 10315 # -berok will link without error, but may produce a broken library. 10316 no_undefined_flag=' $wl-bernotok' 10317 allow_undefined_flag=' $wl-berok' 10318 if test yes = "$with_gnu_ld"; then 10319 # We only use this code for GNU lds that support --whole-archive. 10320 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10321 else 10322 # Exported symbols can be pulled into shared objects from archives 10323 whole_archive_flag_spec='$convenience' 10324 fi 10325 archive_cmds_need_lc=yes 10326 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10327 # -brtl affects multiple linker settings, -berok does not and is overridden later 10328 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10329 if test svr4 != "$with_aix_soname"; then 10330 # This is similar to how AIX traditionally builds its shared libraries. 10331 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' 10332 fi 10333 if test aix != "$with_aix_soname"; then 10334 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' 10335 else 10336 # used by -dlpreopen to get the symbols 10337 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10338 fi 10339 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10340 fi 10341 fi 10342 ;; 10343 10344 amigaos*) 10345 case $host_cpu in 10346 powerpc) 10347 # see comment about AmigaOS4 .so support 10348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10349 archive_expsym_cmds='' 10350 ;; 10351 m68k) 10352 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)' 10353 hardcode_libdir_flag_spec='-L$libdir' 10354 hardcode_minus_L=yes 10355 ;; 10356 esac 10357 ;; 10358 10359 bsdi[45]*) 10360 export_dynamic_flag_spec=-rdynamic 10361 ;; 10362 10363 cygwin* | mingw* | pw32* | cegcc*) 10364 # When not using gcc, we currently assume that we are using 10365 # Microsoft Visual C++ or Intel C++ Compiler. 10366 # hardcode_libdir_flag_spec is actually meaningless, as there is 10367 # no search path for DLLs. 10368 case $cc_basename in 10369 cl* | icl*) 10370 # Native MSVC or ICC 10371 hardcode_libdir_flag_spec=' ' 10372 allow_undefined_flag=unsupported 10373 always_export_symbols=yes 10374 file_list_spec='@' 10375 # Tell ltmain to make .lib files, not .a files. 10376 libext=lib 10377 # Tell ltmain to make .dll files, not .so files. 10378 shrext_cmds=.dll 10379 # FIXME: Setting linknames here is a bad hack. 10380 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10381 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10382 cp "$export_symbols" "$output_objdir/$soname.def"; 10383 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10384 else 10385 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10386 fi~ 10387 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10388 linknames=' 10389 # The linker will not automatically build a static lib if we build a DLL. 10390 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10391 enable_shared_with_static_runtimes=yes 10392 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10394 # Don't use ranlib 10395 old_postinstall_cmds='chmod 644 $oldlib' 10396 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10397 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10398 case $lt_outputfile in 10399 *.exe|*.EXE) ;; 10400 *) 10401 lt_outputfile=$lt_outputfile.exe 10402 lt_tool_outputfile=$lt_tool_outputfile.exe 10403 ;; 10404 esac~ 10405 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10406 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10407 $RM "$lt_outputfile.manifest"; 10408 fi' 10409 ;; 10410 *) 10411 # Assume MSVC and ICC wrapper 10412 hardcode_libdir_flag_spec=' ' 10413 allow_undefined_flag=unsupported 10414 # Tell ltmain to make .lib files, not .a files. 10415 libext=lib 10416 # Tell ltmain to make .dll files, not .so files. 10417 shrext_cmds=.dll 10418 # FIXME: Setting linknames here is a bad hack. 10419 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10420 # The linker will automatically build a .lib file if we build a DLL. 10421 old_archive_from_new_cmds='true' 10422 # FIXME: Should let the user specify the lib program. 10423 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10424 enable_shared_with_static_runtimes=yes 10425 ;; 10426 esac 10427 ;; 10428 10429 darwin* | rhapsody*) 10430 10431 10432 archive_cmds_need_lc=no 10433 hardcode_direct=no 10434 hardcode_automatic=yes 10435 hardcode_shlibpath_var=unsupported 10436 if test yes = "$lt_cv_ld_force_load"; then 10437 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\"`' 10438 10439 else 10440 whole_archive_flag_spec='' 10441 fi 10442 link_all_deplibs=yes 10443 allow_undefined_flag=$_lt_dar_allow_undefined 10444 case $cc_basename in 10445 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10446 *) _lt_dar_can_shared=$GCC ;; 10447 esac 10448 if test yes = "$_lt_dar_can_shared"; then 10449 output_verbose_link_cmd=func_echo_all 10450 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10451 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10452 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" 10453 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" 10454 10455 else 10456 ld_shlibs=no 10457 fi 10458 10459 ;; 10460 10461 dgux*) 10462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10463 hardcode_libdir_flag_spec='-L$libdir' 10464 hardcode_shlibpath_var=no 10465 ;; 10466 10467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10468 # support. Future versions do this automatically, but an explicit c++rt0.o 10469 # does not break anything, and helps significantly (at the cost of a little 10470 # extra space). 10471 freebsd2.2*) 10472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10473 hardcode_libdir_flag_spec='-R$libdir' 10474 hardcode_direct=yes 10475 hardcode_shlibpath_var=no 10476 ;; 10477 10478 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10479 freebsd2.*) 10480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10481 hardcode_direct=yes 10482 hardcode_minus_L=yes 10483 hardcode_shlibpath_var=no 10484 ;; 10485 10486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10487 freebsd* | dragonfly* | midnightbsd*) 10488 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10489 hardcode_libdir_flag_spec='-R$libdir' 10490 hardcode_direct=yes 10491 hardcode_shlibpath_var=no 10492 ;; 10493 10494 hpux9*) 10495 if test yes = "$GCC"; then 10496 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' 10497 else 10498 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' 10499 fi 10500 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10501 hardcode_libdir_separator=: 10502 hardcode_direct=yes 10503 10504 # hardcode_minus_L: Not really in the search PATH, 10505 # but as the default location of the library. 10506 hardcode_minus_L=yes 10507 export_dynamic_flag_spec='$wl-E' 10508 ;; 10509 10510 hpux10*) 10511 if test yes,no = "$GCC,$with_gnu_ld"; then 10512 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10513 else 10514 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10515 fi 10516 if test no = "$with_gnu_ld"; then 10517 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10518 hardcode_libdir_separator=: 10519 hardcode_direct=yes 10520 hardcode_direct_absolute=yes 10521 export_dynamic_flag_spec='$wl-E' 10522 # hardcode_minus_L: Not really in the search PATH, 10523 # but as the default location of the library. 10524 hardcode_minus_L=yes 10525 fi 10526 ;; 10527 10528 hpux11*) 10529 if test yes,no = "$GCC,$with_gnu_ld"; then 10530 case $host_cpu in 10531 hppa*64*) 10532 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10533 ;; 10534 ia64*) 10535 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10536 ;; 10537 *) 10538 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10539 ;; 10540 esac 10541 else 10542 case $host_cpu in 10543 hppa*64*) 10544 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10545 ;; 10546 ia64*) 10547 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10548 ;; 10549 *) 10550 10551 # Older versions of the 11.00 compiler do not understand -b yet 10552 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10554printf %s "checking if $CC understands -b... " >&6; } 10555if test ${lt_cv_prog_compiler__b+y} 10556then : 10557 printf %s "(cached) " >&6 10558else $as_nop 10559 lt_cv_prog_compiler__b=no 10560 save_LDFLAGS=$LDFLAGS 10561 LDFLAGS="$LDFLAGS -b" 10562 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10564 # The linker can only warn and ignore the option if not recognized 10565 # So say no if there are warnings 10566 if test -s conftest.err; then 10567 # Append any errors to the config.log. 10568 cat conftest.err 1>&5 10569 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10571 if diff conftest.exp conftest.er2 >/dev/null; then 10572 lt_cv_prog_compiler__b=yes 10573 fi 10574 else 10575 lt_cv_prog_compiler__b=yes 10576 fi 10577 fi 10578 $RM -r conftest* 10579 LDFLAGS=$save_LDFLAGS 10580 10581fi 10582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10583printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10584 10585if test yes = "$lt_cv_prog_compiler__b"; then 10586 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10587else 10588 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10589fi 10590 10591 ;; 10592 esac 10593 fi 10594 if test no = "$with_gnu_ld"; then 10595 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10596 hardcode_libdir_separator=: 10597 10598 case $host_cpu in 10599 hppa*64*|ia64*) 10600 hardcode_direct=no 10601 hardcode_shlibpath_var=no 10602 ;; 10603 *) 10604 hardcode_direct=yes 10605 hardcode_direct_absolute=yes 10606 export_dynamic_flag_spec='$wl-E' 10607 10608 # hardcode_minus_L: Not really in the search PATH, 10609 # but as the default location of the library. 10610 hardcode_minus_L=yes 10611 ;; 10612 esac 10613 fi 10614 ;; 10615 10616 irix5* | irix6* | nonstopux*) 10617 if test yes = "$GCC"; then 10618 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' 10619 # Try to use the -exported_symbol ld option, if it does not 10620 # work, assume that -exports_file does not work either and 10621 # implicitly export all symbols. 10622 # This should be the same for all languages, so no per-tag cache variable. 10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10624printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10625if test ${lt_cv_irix_exported_symbol+y} 10626then : 10627 printf %s "(cached) " >&6 10628else $as_nop 10629 save_LDFLAGS=$LDFLAGS 10630 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10632/* end confdefs.h. */ 10633int foo (void) { return 0; } 10634_ACEOF 10635if ac_fn_c_try_link "$LINENO" 10636then : 10637 lt_cv_irix_exported_symbol=yes 10638else $as_nop 10639 lt_cv_irix_exported_symbol=no 10640fi 10641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10642 conftest$ac_exeext conftest.$ac_ext 10643 LDFLAGS=$save_LDFLAGS 10644fi 10645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10646printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10647 if test yes = "$lt_cv_irix_exported_symbol"; then 10648 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' 10649 fi 10650 else 10651 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' 10652 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' 10653 fi 10654 archive_cmds_need_lc='no' 10655 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10656 hardcode_libdir_separator=: 10657 inherit_rpath=yes 10658 link_all_deplibs=yes 10659 ;; 10660 10661 linux*) 10662 case $cc_basename in 10663 tcc*) 10664 # Fabrice Bellard et al's Tiny C Compiler 10665 ld_shlibs=yes 10666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10667 ;; 10668 esac 10669 ;; 10670 10671 netbsd*) 10672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10674 else 10675 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10676 fi 10677 hardcode_libdir_flag_spec='-R$libdir' 10678 hardcode_direct=yes 10679 hardcode_shlibpath_var=no 10680 ;; 10681 10682 newsos6) 10683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10684 hardcode_direct=yes 10685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10686 hardcode_libdir_separator=: 10687 hardcode_shlibpath_var=no 10688 ;; 10689 10690 *nto* | *qnx*) 10691 ;; 10692 10693 openbsd* | bitrig*) 10694 if test -f /usr/libexec/ld.so; then 10695 hardcode_direct=yes 10696 hardcode_shlibpath_var=no 10697 hardcode_direct_absolute=yes 10698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10700 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10701 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10702 export_dynamic_flag_spec='$wl-E' 10703 else 10704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10705 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10706 fi 10707 else 10708 ld_shlibs=no 10709 fi 10710 ;; 10711 10712 os2*) 10713 hardcode_libdir_flag_spec='-L$libdir' 10714 hardcode_minus_L=yes 10715 allow_undefined_flag=unsupported 10716 shrext_cmds=.dll 10717 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10718 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10719 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10720 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10721 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10722 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10723 emximp -o $lib $output_objdir/$libname.def' 10724 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10725 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10726 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10727 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10728 prefix_cmds="$SED"~ 10729 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10730 prefix_cmds="$prefix_cmds -e 1d"; 10731 fi~ 10732 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10733 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10735 emximp -o $lib $output_objdir/$libname.def' 10736 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10737 enable_shared_with_static_runtimes=yes 10738 file_list_spec='@' 10739 ;; 10740 10741 osf3*) 10742 if test yes = "$GCC"; then 10743 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10744 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' 10745 else 10746 allow_undefined_flag=' -expect_unresolved \*' 10747 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' 10748 fi 10749 archive_cmds_need_lc='no' 10750 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10751 hardcode_libdir_separator=: 10752 ;; 10753 10754 osf4* | osf5*) # as osf3* with the addition of -msym flag 10755 if test yes = "$GCC"; then 10756 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10757 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' 10758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10759 else 10760 allow_undefined_flag=' -expect_unresolved \*' 10761 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' 10762 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~ 10763 $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' 10764 10765 # Both c and cxx compiler support -rpath directly 10766 hardcode_libdir_flag_spec='-rpath $libdir' 10767 fi 10768 archive_cmds_need_lc='no' 10769 hardcode_libdir_separator=: 10770 ;; 10771 10772 solaris*) 10773 no_undefined_flag=' -z defs' 10774 if test yes = "$GCC"; then 10775 wlarc='$wl' 10776 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10778 $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' 10779 else 10780 case `$CC -V 2>&1` in 10781 *"Compilers 5.0"*) 10782 wlarc='' 10783 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10785 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10786 ;; 10787 *) 10788 wlarc='$wl' 10789 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10790 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10791 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10792 ;; 10793 esac 10794 fi 10795 hardcode_libdir_flag_spec='-R$libdir' 10796 hardcode_shlibpath_var=no 10797 case $host_os in 10798 solaris2.[0-5] | solaris2.[0-5].*) ;; 10799 *) 10800 # The compiler driver will combine and reorder linker options, 10801 # but understands '-z linker_flag'. GCC discards it without '$wl', 10802 # but is careful enough not to reorder. 10803 # Supported since Solaris 2.6 (maybe 2.5.1?) 10804 if test yes = "$GCC"; then 10805 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10806 else 10807 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10808 fi 10809 ;; 10810 esac 10811 link_all_deplibs=yes 10812 ;; 10813 10814 sunos4*) 10815 if test sequent = "$host_vendor"; then 10816 # Use $CC to link under sequent, because it throws in some extra .o 10817 # files that make .init and .fini sections work. 10818 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10819 else 10820 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10821 fi 10822 hardcode_libdir_flag_spec='-L$libdir' 10823 hardcode_direct=yes 10824 hardcode_minus_L=yes 10825 hardcode_shlibpath_var=no 10826 ;; 10827 10828 sysv4) 10829 case $host_vendor in 10830 sni) 10831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10832 hardcode_direct=yes # is this really true??? 10833 ;; 10834 siemens) 10835 ## LD is ld it makes a PLAMLIB 10836 ## CC just makes a GrossModule. 10837 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10838 reload_cmds='$CC -r -o $output$reload_objs' 10839 hardcode_direct=no 10840 ;; 10841 motorola) 10842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10843 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10844 ;; 10845 esac 10846 runpath_var='LD_RUN_PATH' 10847 hardcode_shlibpath_var=no 10848 ;; 10849 10850 sysv4.3*) 10851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10852 hardcode_shlibpath_var=no 10853 export_dynamic_flag_spec='-Bexport' 10854 ;; 10855 10856 sysv4*MP*) 10857 if test -d /usr/nec; then 10858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10859 hardcode_shlibpath_var=no 10860 runpath_var=LD_RUN_PATH 10861 hardcode_runpath_var=yes 10862 ld_shlibs=yes 10863 fi 10864 ;; 10865 10866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10867 no_undefined_flag='$wl-z,text' 10868 archive_cmds_need_lc=no 10869 hardcode_shlibpath_var=no 10870 runpath_var='LD_RUN_PATH' 10871 10872 if test yes = "$GCC"; then 10873 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10874 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10875 else 10876 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10877 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10878 fi 10879 ;; 10880 10881 sysv5* | sco3.2v5* | sco5v6*) 10882 # Note: We CANNOT use -z defs as we might desire, because we do not 10883 # link with -lc, and that would cause any symbols used from libc to 10884 # always be unresolved, which means just about no library would 10885 # ever link correctly. If we're not using GNU ld we use -z text 10886 # though, which does catch some bad symbols but isn't as heavy-handed 10887 # as -z defs. 10888 no_undefined_flag='$wl-z,text' 10889 allow_undefined_flag='$wl-z,nodefs' 10890 archive_cmds_need_lc=no 10891 hardcode_shlibpath_var=no 10892 hardcode_libdir_flag_spec='$wl-R,$libdir' 10893 hardcode_libdir_separator=':' 10894 link_all_deplibs=yes 10895 export_dynamic_flag_spec='$wl-Bexport' 10896 runpath_var='LD_RUN_PATH' 10897 10898 if test yes = "$GCC"; then 10899 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10900 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10901 else 10902 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10903 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10904 fi 10905 ;; 10906 10907 uts4*) 10908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10909 hardcode_libdir_flag_spec='-L$libdir' 10910 hardcode_shlibpath_var=no 10911 ;; 10912 10913 *) 10914 ld_shlibs=no 10915 ;; 10916 esac 10917 10918 if test sni = "$host_vendor"; then 10919 case $host in 10920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10921 export_dynamic_flag_spec='$wl-Blargedynsym' 10922 ;; 10923 esac 10924 fi 10925 fi 10926 10927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10928printf "%s\n" "$ld_shlibs" >&6; } 10929test no = "$ld_shlibs" && can_build_shared=no 10930 10931with_gnu_ld=$with_gnu_ld 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947# 10948# Do we need to explicitly link libc? 10949# 10950case "x$archive_cmds_need_lc" in 10951x|xyes) 10952 # Assume -lc should be added 10953 archive_cmds_need_lc=yes 10954 10955 if test yes,yes = "$GCC,$enable_shared"; then 10956 case $archive_cmds in 10957 *'~'*) 10958 # FIXME: we may have to deal with multi-command sequences. 10959 ;; 10960 '$CC '*) 10961 # Test whether the compiler implicitly links with -lc since on some 10962 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10963 # to ld, don't add -lc before -lgcc. 10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10965printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10966if test ${lt_cv_archive_cmds_need_lc+y} 10967then : 10968 printf %s "(cached) " >&6 10969else $as_nop 10970 $RM conftest* 10971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10972 10973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10974 (eval $ac_compile) 2>&5 10975 ac_status=$? 10976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10977 test $ac_status = 0; } 2>conftest.err; then 10978 soname=conftest 10979 lib=conftest 10980 libobjs=conftest.$ac_objext 10981 deplibs= 10982 wl=$lt_prog_compiler_wl 10983 pic_flag=$lt_prog_compiler_pic 10984 compiler_flags=-v 10985 linker_flags=-v 10986 verstring= 10987 output_objdir=. 10988 libname=conftest 10989 lt_save_allow_undefined_flag=$allow_undefined_flag 10990 allow_undefined_flag= 10991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10992 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10993 ac_status=$? 10994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10995 test $ac_status = 0; } 10996 then 10997 lt_cv_archive_cmds_need_lc=no 10998 else 10999 lt_cv_archive_cmds_need_lc=yes 11000 fi 11001 allow_undefined_flag=$lt_save_allow_undefined_flag 11002 else 11003 cat conftest.err 1>&5 11004 fi 11005 $RM conftest* 11006 11007fi 11008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11009printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11010 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11011 ;; 11012 esac 11013 fi 11014 ;; 11015esac 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11169printf %s "checking dynamic linker characteristics... " >&6; } 11170 11171if test yes = "$GCC"; then 11172 case $host_os in 11173 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11174 *) lt_awk_arg='/^libraries:/' ;; 11175 esac 11176 case $host_os in 11177 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11178 *) lt_sed_strip_eq='s|=/|/|g' ;; 11179 esac 11180 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11181 case $lt_search_path_spec in 11182 *\;*) 11183 # if the path contains ";" then we assume it to be the separator 11184 # otherwise default to the standard path separator (i.e. ":") - it is 11185 # assumed that no part of a normal pathname contains ";" but that should 11186 # okay in the real world where ";" in dirpaths is itself problematic. 11187 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11188 ;; 11189 *) 11190 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11191 ;; 11192 esac 11193 # Ok, now we have the path, separated by spaces, we can step through it 11194 # and add multilib dir if necessary... 11195 lt_tmp_lt_search_path_spec= 11196 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11197 # ...but if some path component already ends with the multilib dir we assume 11198 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11199 case "$lt_multi_os_dir; $lt_search_path_spec " in 11200 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11201 lt_multi_os_dir= 11202 ;; 11203 esac 11204 for lt_sys_path in $lt_search_path_spec; do 11205 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11207 elif test -n "$lt_multi_os_dir"; then 11208 test -d "$lt_sys_path" && \ 11209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11210 fi 11211 done 11212 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11213BEGIN {RS = " "; FS = "/|\n";} { 11214 lt_foo = ""; 11215 lt_count = 0; 11216 for (lt_i = NF; lt_i > 0; lt_i--) { 11217 if ($lt_i != "" && $lt_i != ".") { 11218 if ($lt_i == "..") { 11219 lt_count++; 11220 } else { 11221 if (lt_count == 0) { 11222 lt_foo = "/" $lt_i lt_foo; 11223 } else { 11224 lt_count--; 11225 } 11226 } 11227 } 11228 } 11229 if (lt_foo != "") { lt_freq[lt_foo]++; } 11230 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11231}'` 11232 # AWK program above erroneously prepends '/' to C:/dos/paths 11233 # for these hosts. 11234 case $host_os in 11235 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11236 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11237 esac 11238 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11239else 11240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11241fi 11242library_names_spec= 11243libname_spec='lib$name' 11244soname_spec= 11245shrext_cmds=.so 11246postinstall_cmds= 11247postuninstall_cmds= 11248finish_cmds= 11249finish_eval= 11250shlibpath_var= 11251shlibpath_overrides_runpath=unknown 11252version_type=none 11253dynamic_linker="$host_os ld.so" 11254sys_lib_dlsearch_path_spec="/lib /usr/lib" 11255need_lib_prefix=unknown 11256hardcode_into_libs=no 11257 11258# when you set need_version to no, make sure it does not cause -set_version 11259# flags to be left without arguments 11260need_version=unknown 11261 11262 11263 11264case $host_os in 11265aix3*) 11266 version_type=linux # correct to gnu/linux during the next big refactor 11267 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11268 shlibpath_var=LIBPATH 11269 11270 # AIX 3 has no versioning support, so we append a major version to the name. 11271 soname_spec='$libname$release$shared_ext$major' 11272 ;; 11273 11274aix[4-9]*) 11275 version_type=linux # correct to gnu/linux during the next big refactor 11276 need_lib_prefix=no 11277 need_version=no 11278 hardcode_into_libs=yes 11279 if test ia64 = "$host_cpu"; then 11280 # AIX 5 supports IA64 11281 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11282 shlibpath_var=LD_LIBRARY_PATH 11283 else 11284 # With GCC up to 2.95.x, collect2 would create an import file 11285 # for dependence libraries. The import file would start with 11286 # the line '#! .'. This would cause the generated library to 11287 # depend on '.', always an invalid library. This was fixed in 11288 # development snapshots of GCC prior to 3.0. 11289 case $host_os in 11290 aix4 | aix4.[01] | aix4.[01].*) 11291 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11292 echo ' yes ' 11293 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11294 : 11295 else 11296 can_build_shared=no 11297 fi 11298 ;; 11299 esac 11300 # Using Import Files as archive members, it is possible to support 11301 # filename-based versioning of shared library archives on AIX. While 11302 # this would work for both with and without runtime linking, it will 11303 # prevent static linking of such archives. So we do filename-based 11304 # shared library versioning with .so extension only, which is used 11305 # when both runtime linking and shared linking is enabled. 11306 # Unfortunately, runtime linking may impact performance, so we do 11307 # not want this to be the default eventually. Also, we use the 11308 # versioned .so libs for executables only if there is the -brtl 11309 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11310 # To allow for filename-based versioning support, we need to create 11311 # libNAME.so.V as an archive file, containing: 11312 # *) an Import File, referring to the versioned filename of the 11313 # archive as well as the shared archive member, telling the 11314 # bitwidth (32 or 64) of that shared object, and providing the 11315 # list of exported symbols of that shared object, eventually 11316 # decorated with the 'weak' keyword 11317 # *) the shared object with the F_LOADONLY flag set, to really avoid 11318 # it being seen by the linker. 11319 # At run time we better use the real file rather than another symlink, 11320 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11321 11322 case $with_aix_soname,$aix_use_runtimelinking in 11323 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11324 # soname into executable. Probably we can add versioning support to 11325 # collect2, so additional links can be useful in future. 11326 aix,yes) # traditional libtool 11327 dynamic_linker='AIX unversionable lib.so' 11328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11329 # instead of lib<name>.a to let people know that these are not 11330 # typical AIX shared libraries. 11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11332 ;; 11333 aix,no) # traditional AIX only 11334 dynamic_linker='AIX lib.a(lib.so.V)' 11335 # We preserve .a as extension for shared libraries through AIX4.2 11336 # and later when we are not doing run time linking. 11337 library_names_spec='$libname$release.a $libname.a' 11338 soname_spec='$libname$release$shared_ext$major' 11339 ;; 11340 svr4,*) # full svr4 only 11341 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11342 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11343 # We do not specify a path in Import Files, so LIBPATH fires. 11344 shlibpath_overrides_runpath=yes 11345 ;; 11346 *,yes) # both, prefer svr4 11347 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11348 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11349 # unpreferred sharedlib libNAME.a needs extra handling 11350 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"' 11351 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"' 11352 # We do not specify a path in Import Files, so LIBPATH fires. 11353 shlibpath_overrides_runpath=yes 11354 ;; 11355 *,no) # both, prefer aix 11356 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11357 library_names_spec='$libname$release.a $libname.a' 11358 soname_spec='$libname$release$shared_ext$major' 11359 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11360 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)' 11361 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"' 11362 ;; 11363 esac 11364 shlibpath_var=LIBPATH 11365 fi 11366 ;; 11367 11368amigaos*) 11369 case $host_cpu in 11370 powerpc) 11371 # Since July 2007 AmigaOS4 officially supports .so libraries. 11372 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11374 ;; 11375 m68k) 11376 library_names_spec='$libname.ixlibrary $libname.a' 11377 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11378 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' 11379 ;; 11380 esac 11381 ;; 11382 11383beos*) 11384 library_names_spec='$libname$shared_ext' 11385 dynamic_linker="$host_os ld.so" 11386 shlibpath_var=LIBRARY_PATH 11387 ;; 11388 11389bsdi[45]*) 11390 version_type=linux # correct to gnu/linux during the next big refactor 11391 need_version=no 11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11393 soname_spec='$libname$release$shared_ext$major' 11394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11395 shlibpath_var=LD_LIBRARY_PATH 11396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11398 # the default ld.so.conf also contains /usr/contrib/lib and 11399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11400 # libtool to hard-code these into programs 11401 ;; 11402 11403cygwin* | mingw* | pw32* | cegcc*) 11404 version_type=windows 11405 shrext_cmds=.dll 11406 need_version=no 11407 need_lib_prefix=no 11408 11409 case $GCC,$cc_basename in 11410 yes,*) 11411 # gcc 11412 library_names_spec='$libname.dll.a' 11413 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11414 postinstall_cmds='base_file=`basename \$file`~ 11415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11416 dldir=$destdir/`dirname \$dlpath`~ 11417 test -d \$dldir || mkdir -p \$dldir~ 11418 $install_prog $dir/$dlname \$dldir/$dlname~ 11419 chmod a+x \$dldir/$dlname~ 11420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11422 fi' 11423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11424 dlpath=$dir/\$dldll~ 11425 $RM \$dlpath' 11426 shlibpath_overrides_runpath=yes 11427 11428 case $host_os in 11429 cygwin*) 11430 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11431 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11432 11433 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11434 ;; 11435 mingw* | cegcc*) 11436 # MinGW DLLs use traditional 'lib' prefix 11437 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11438 ;; 11439 pw32*) 11440 # pw32 DLLs use 'pw' prefix rather than 'lib' 11441 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11442 ;; 11443 esac 11444 dynamic_linker='Win32 ld.exe' 11445 ;; 11446 11447 *,cl* | *,icl*) 11448 # Native MSVC or ICC 11449 libname_spec='$name' 11450 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11451 library_names_spec='$libname.dll.lib' 11452 11453 case $build_os in 11454 mingw*) 11455 sys_lib_search_path_spec= 11456 lt_save_ifs=$IFS 11457 IFS=';' 11458 for lt_path in $LIB 11459 do 11460 IFS=$lt_save_ifs 11461 # Let DOS variable expansion print the short 8.3 style file name. 11462 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11463 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11464 done 11465 IFS=$lt_save_ifs 11466 # Convert to MSYS style. 11467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11468 ;; 11469 cygwin*) 11470 # Convert to unix form, then to dos form, then back to unix form 11471 # but this time dos style (no spaces!) so that the unix form looks 11472 # like /cygdrive/c/PROGRA~1:/cygdr... 11473 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11474 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11475 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11476 ;; 11477 *) 11478 sys_lib_search_path_spec=$LIB 11479 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11480 # It is most probably a Windows format PATH. 11481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11482 else 11483 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11484 fi 11485 # FIXME: find the short name or the path components, as spaces are 11486 # common. (e.g. "Program Files" -> "PROGRA~1") 11487 ;; 11488 esac 11489 11490 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11491 postinstall_cmds='base_file=`basename \$file`~ 11492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11493 dldir=$destdir/`dirname \$dlpath`~ 11494 test -d \$dldir || mkdir -p \$dldir~ 11495 $install_prog $dir/$dlname \$dldir/$dlname' 11496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11497 dlpath=$dir/\$dldll~ 11498 $RM \$dlpath' 11499 shlibpath_overrides_runpath=yes 11500 dynamic_linker='Win32 link.exe' 11501 ;; 11502 11503 *) 11504 # Assume MSVC and ICC wrapper 11505 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11506 dynamic_linker='Win32 ld.exe' 11507 ;; 11508 esac 11509 # FIXME: first we should search . and the directory the executable is in 11510 shlibpath_var=PATH 11511 ;; 11512 11513darwin* | rhapsody*) 11514 dynamic_linker="$host_os dyld" 11515 version_type=darwin 11516 need_lib_prefix=no 11517 need_version=no 11518 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11519 soname_spec='$libname$release$major$shared_ext' 11520 shlibpath_overrides_runpath=yes 11521 shlibpath_var=DYLD_LIBRARY_PATH 11522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11523 11524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11526 ;; 11527 11528dgux*) 11529 version_type=linux # correct to gnu/linux during the next big refactor 11530 need_lib_prefix=no 11531 need_version=no 11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11533 soname_spec='$libname$release$shared_ext$major' 11534 shlibpath_var=LD_LIBRARY_PATH 11535 ;; 11536 11537freebsd* | dragonfly* | midnightbsd*) 11538 # DragonFly does not have aout. When/if they implement a new 11539 # versioning mechanism, adjust this. 11540 if test -x /usr/bin/objformat; then 11541 objformat=`/usr/bin/objformat` 11542 else 11543 case $host_os in 11544 freebsd[23].*) objformat=aout ;; 11545 *) objformat=elf ;; 11546 esac 11547 fi 11548 version_type=freebsd-$objformat 11549 case $version_type in 11550 freebsd-elf*) 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11552 soname_spec='$libname$release$shared_ext$major' 11553 need_version=no 11554 need_lib_prefix=no 11555 ;; 11556 freebsd-*) 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11558 need_version=yes 11559 ;; 11560 esac 11561 shlibpath_var=LD_LIBRARY_PATH 11562 case $host_os in 11563 freebsd2.*) 11564 shlibpath_overrides_runpath=yes 11565 ;; 11566 freebsd3.[01]* | freebsdelf3.[01]*) 11567 shlibpath_overrides_runpath=yes 11568 hardcode_into_libs=yes 11569 ;; 11570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11572 shlibpath_overrides_runpath=no 11573 hardcode_into_libs=yes 11574 ;; 11575 *) # from 4.6 on, and DragonFly 11576 shlibpath_overrides_runpath=yes 11577 hardcode_into_libs=yes 11578 ;; 11579 esac 11580 ;; 11581 11582haiku*) 11583 version_type=linux # correct to gnu/linux during the next big refactor 11584 need_lib_prefix=no 11585 need_version=no 11586 dynamic_linker="$host_os runtime_loader" 11587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11588 soname_spec='$libname$release$shared_ext$major' 11589 shlibpath_var=LIBRARY_PATH 11590 shlibpath_overrides_runpath=no 11591 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11592 hardcode_into_libs=yes 11593 ;; 11594 11595hpux9* | hpux10* | hpux11*) 11596 # Give a soname corresponding to the major version so that dld.sl refuses to 11597 # link against other versions. 11598 version_type=sunos 11599 need_lib_prefix=no 11600 need_version=no 11601 case $host_cpu in 11602 ia64*) 11603 shrext_cmds='.so' 11604 hardcode_into_libs=yes 11605 dynamic_linker="$host_os dld.so" 11606 shlibpath_var=LD_LIBRARY_PATH 11607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11609 soname_spec='$libname$release$shared_ext$major' 11610 if test 32 = "$HPUX_IA64_MODE"; then 11611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11612 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11613 else 11614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11615 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11616 fi 11617 ;; 11618 hppa*64*) 11619 shrext_cmds='.sl' 11620 hardcode_into_libs=yes 11621 dynamic_linker="$host_os dld.sl" 11622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11625 soname_spec='$libname$release$shared_ext$major' 11626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11628 ;; 11629 *) 11630 shrext_cmds='.sl' 11631 dynamic_linker="$host_os dld.sl" 11632 shlibpath_var=SHLIB_PATH 11633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11635 soname_spec='$libname$release$shared_ext$major' 11636 ;; 11637 esac 11638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11639 postinstall_cmds='chmod 555 $lib' 11640 # or fails outright, so override atomically: 11641 install_override_mode=555 11642 ;; 11643 11644interix[3-9]*) 11645 version_type=linux # correct to gnu/linux during the next big refactor 11646 need_lib_prefix=no 11647 need_version=no 11648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11649 soname_spec='$libname$release$shared_ext$major' 11650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11651 shlibpath_var=LD_LIBRARY_PATH 11652 shlibpath_overrides_runpath=no 11653 hardcode_into_libs=yes 11654 ;; 11655 11656irix5* | irix6* | nonstopux*) 11657 case $host_os in 11658 nonstopux*) version_type=nonstopux ;; 11659 *) 11660 if test yes = "$lt_cv_prog_gnu_ld"; then 11661 version_type=linux # correct to gnu/linux during the next big refactor 11662 else 11663 version_type=irix 11664 fi ;; 11665 esac 11666 need_lib_prefix=no 11667 need_version=no 11668 soname_spec='$libname$release$shared_ext$major' 11669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11670 case $host_os in 11671 irix5* | nonstopux*) 11672 libsuff= shlibsuff= 11673 ;; 11674 *) 11675 case $LD in # libtool.m4 will add one of these switches to LD 11676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11677 libsuff= shlibsuff= libmagic=32-bit;; 11678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11679 libsuff=32 shlibsuff=N32 libmagic=N32;; 11680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11681 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11682 *) libsuff= shlibsuff= libmagic=never-match;; 11683 esac 11684 ;; 11685 esac 11686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11687 shlibpath_overrides_runpath=no 11688 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11689 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11690 hardcode_into_libs=yes 11691 ;; 11692 11693# No shared lib support for Linux oldld, aout, or coff. 11694linux*oldld* | linux*aout* | linux*coff*) 11695 dynamic_linker=no 11696 ;; 11697 11698linux*android*) 11699 version_type=none # Android doesn't support versioned libraries. 11700 need_lib_prefix=no 11701 need_version=no 11702 library_names_spec='$libname$release$shared_ext' 11703 soname_spec='$libname$release$shared_ext' 11704 finish_cmds= 11705 shlibpath_var=LD_LIBRARY_PATH 11706 shlibpath_overrides_runpath=yes 11707 11708 # This implies no fast_install, which is unacceptable. 11709 # Some rework will be needed to allow for fast_install 11710 # before this can be enabled. 11711 hardcode_into_libs=yes 11712 11713 dynamic_linker='Android linker' 11714 # Don't embed -rpath directories since the linker doesn't support them. 11715 hardcode_libdir_flag_spec='-L$libdir' 11716 ;; 11717 11718# This must be glibc/ELF. 11719linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11720 version_type=linux # correct to gnu/linux during the next big refactor 11721 need_lib_prefix=no 11722 need_version=no 11723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11724 soname_spec='$libname$release$shared_ext$major' 11725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11726 shlibpath_var=LD_LIBRARY_PATH 11727 shlibpath_overrides_runpath=no 11728 11729 # Some binutils ld are patched to set DT_RUNPATH 11730 if test ${lt_cv_shlibpath_overrides_runpath+y} 11731then : 11732 printf %s "(cached) " >&6 11733else $as_nop 11734 lt_cv_shlibpath_overrides_runpath=no 11735 save_LDFLAGS=$LDFLAGS 11736 save_libdir=$libdir 11737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11740/* end confdefs.h. */ 11741 11742int 11743main (void) 11744{ 11745 11746 ; 11747 return 0; 11748} 11749_ACEOF 11750if ac_fn_c_try_link "$LINENO" 11751then : 11752 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11753then : 11754 lt_cv_shlibpath_overrides_runpath=yes 11755fi 11756fi 11757rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11758 conftest$ac_exeext conftest.$ac_ext 11759 LDFLAGS=$save_LDFLAGS 11760 libdir=$save_libdir 11761 11762fi 11763 11764 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11765 11766 # This implies no fast_install, which is unacceptable. 11767 # Some rework will be needed to allow for fast_install 11768 # before this can be enabled. 11769 hardcode_into_libs=yes 11770 11771 # Ideally, we could use ldconfig to report *all* directores which are 11772 # searched for libraries, however this is still not possible. Aside from not 11773 # being certain /sbin/ldconfig is available, command 11774 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11775 # even though it is searched at run-time. Try to do the best guess by 11776 # appending ld.so.conf contents (and includes) to the search path. 11777 if test -f /etc/ld.so.conf; then 11778 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' ' '` 11779 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11780 fi 11781 11782 # We used to test for /lib/ld.so.1 and disable shared libraries on 11783 # powerpc, because MkLinux only supported shared libraries with the 11784 # GNU dynamic linker. Since this was broken with cross compilers, 11785 # most powerpc-linux boxes support dynamic linking these days and 11786 # people can always --disable-shared, the test was removed, and we 11787 # assume the GNU/Linux dynamic linker is in use. 11788 dynamic_linker='GNU/Linux ld.so' 11789 ;; 11790 11791netbsd*) 11792 version_type=sunos 11793 need_lib_prefix=no 11794 need_version=no 11795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11798 dynamic_linker='NetBSD (a.out) ld.so' 11799 else 11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11801 soname_spec='$libname$release$shared_ext$major' 11802 dynamic_linker='NetBSD ld.elf_so' 11803 fi 11804 shlibpath_var=LD_LIBRARY_PATH 11805 shlibpath_overrides_runpath=yes 11806 hardcode_into_libs=yes 11807 ;; 11808 11809newsos6) 11810 version_type=linux # correct to gnu/linux during the next big refactor 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11812 shlibpath_var=LD_LIBRARY_PATH 11813 shlibpath_overrides_runpath=yes 11814 ;; 11815 11816*nto* | *qnx*) 11817 version_type=qnx 11818 need_lib_prefix=no 11819 need_version=no 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 soname_spec='$libname$release$shared_ext$major' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 shlibpath_overrides_runpath=no 11824 hardcode_into_libs=yes 11825 dynamic_linker='ldqnx.so' 11826 ;; 11827 11828openbsd* | bitrig*) 11829 version_type=sunos 11830 sys_lib_dlsearch_path_spec=/usr/lib 11831 need_lib_prefix=no 11832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11833 need_version=no 11834 else 11835 need_version=yes 11836 fi 11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 shlibpath_overrides_runpath=yes 11841 ;; 11842 11843os2*) 11844 libname_spec='$name' 11845 version_type=windows 11846 shrext_cmds=.dll 11847 need_version=no 11848 need_lib_prefix=no 11849 # OS/2 can only load a DLL with a base name of 8 characters or less. 11850 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11851 v=$($ECHO $release$versuffix | tr -d .-); 11852 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11853 $ECHO $n$v`$shared_ext' 11854 library_names_spec='${libname}_dll.$libext' 11855 dynamic_linker='OS/2 ld.exe' 11856 shlibpath_var=BEGINLIBPATH 11857 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11859 postinstall_cmds='base_file=`basename \$file`~ 11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11861 dldir=$destdir/`dirname \$dlpath`~ 11862 test -d \$dldir || mkdir -p \$dldir~ 11863 $install_prog $dir/$dlname \$dldir/$dlname~ 11864 chmod a+x \$dldir/$dlname~ 11865 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11866 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11867 fi' 11868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11869 dlpath=$dir/\$dldll~ 11870 $RM \$dlpath' 11871 ;; 11872 11873osf3* | osf4* | osf5*) 11874 version_type=osf 11875 need_lib_prefix=no 11876 need_version=no 11877 soname_spec='$libname$release$shared_ext$major' 11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11882 ;; 11883 11884rdos*) 11885 dynamic_linker=no 11886 ;; 11887 11888solaris*) 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 need_lib_prefix=no 11891 need_version=no 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11893 soname_spec='$libname$release$shared_ext$major' 11894 shlibpath_var=LD_LIBRARY_PATH 11895 shlibpath_overrides_runpath=yes 11896 hardcode_into_libs=yes 11897 # ldd complains unless libraries are executable 11898 postinstall_cmds='chmod +x $lib' 11899 ;; 11900 11901sunos4*) 11902 version_type=sunos 11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11905 shlibpath_var=LD_LIBRARY_PATH 11906 shlibpath_overrides_runpath=yes 11907 if test yes = "$with_gnu_ld"; then 11908 need_lib_prefix=no 11909 fi 11910 need_version=yes 11911 ;; 11912 11913sysv4 | sysv4.3*) 11914 version_type=linux # correct to gnu/linux during the next big refactor 11915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11916 soname_spec='$libname$release$shared_ext$major' 11917 shlibpath_var=LD_LIBRARY_PATH 11918 case $host_vendor in 11919 sni) 11920 shlibpath_overrides_runpath=no 11921 need_lib_prefix=no 11922 runpath_var=LD_RUN_PATH 11923 ;; 11924 siemens) 11925 need_lib_prefix=no 11926 ;; 11927 motorola) 11928 need_lib_prefix=no 11929 need_version=no 11930 shlibpath_overrides_runpath=no 11931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11932 ;; 11933 esac 11934 ;; 11935 11936sysv4*MP*) 11937 if test -d /usr/nec; then 11938 version_type=linux # correct to gnu/linux during the next big refactor 11939 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11940 soname_spec='$libname$shared_ext.$major' 11941 shlibpath_var=LD_LIBRARY_PATH 11942 fi 11943 ;; 11944 11945sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11946 version_type=sco 11947 need_lib_prefix=no 11948 need_version=no 11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11950 soname_spec='$libname$release$shared_ext$major' 11951 shlibpath_var=LD_LIBRARY_PATH 11952 shlibpath_overrides_runpath=yes 11953 hardcode_into_libs=yes 11954 if test yes = "$with_gnu_ld"; then 11955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11956 else 11957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11958 case $host_os in 11959 sco3.2v5*) 11960 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11961 ;; 11962 esac 11963 fi 11964 sys_lib_dlsearch_path_spec='/usr/lib' 11965 ;; 11966 11967tpf*) 11968 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11969 version_type=linux # correct to gnu/linux during the next big refactor 11970 need_lib_prefix=no 11971 need_version=no 11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11973 shlibpath_var=LD_LIBRARY_PATH 11974 shlibpath_overrides_runpath=no 11975 hardcode_into_libs=yes 11976 ;; 11977 11978uts4*) 11979 version_type=linux # correct to gnu/linux during the next big refactor 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 soname_spec='$libname$release$shared_ext$major' 11982 shlibpath_var=LD_LIBRARY_PATH 11983 ;; 11984 11985*) 11986 dynamic_linker=no 11987 ;; 11988esac 11989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11990printf "%s\n" "$dynamic_linker" >&6; } 11991test no = "$dynamic_linker" && can_build_shared=no 11992 11993variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11994if test yes = "$GCC"; then 11995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11996fi 11997 11998if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11999 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12000fi 12001 12002if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12003 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12004fi 12005 12006# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12007configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12008 12009# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12010func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12011 12012# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12013configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12112printf %s "checking how to hardcode library paths into programs... " >&6; } 12113hardcode_action= 12114if test -n "$hardcode_libdir_flag_spec" || 12115 test -n "$runpath_var" || 12116 test yes = "$hardcode_automatic"; then 12117 12118 # We can hardcode non-existent directories. 12119 if test no != "$hardcode_direct" && 12120 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12121 # have to relink, otherwise we might link with an installed library 12122 # when we should be linking with a yet-to-be-installed one 12123 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12124 test no != "$hardcode_minus_L"; then 12125 # Linking always hardcodes the temporary library directory. 12126 hardcode_action=relink 12127 else 12128 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12129 hardcode_action=immediate 12130 fi 12131else 12132 # We cannot hardcode anything, or else we can only hardcode existing 12133 # directories. 12134 hardcode_action=unsupported 12135fi 12136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12137printf "%s\n" "$hardcode_action" >&6; } 12138 12139if test relink = "$hardcode_action" || 12140 test yes = "$inherit_rpath"; then 12141 # Fast installation is not supported 12142 enable_fast_install=no 12143elif test yes = "$shlibpath_overrides_runpath" || 12144 test no = "$enable_shared"; then 12145 # Fast installation is not necessary 12146 enable_fast_install=needless 12147fi 12148 12149 12150 12151 12152 12153 12154 if test yes != "$enable_dlopen"; then 12155 enable_dlopen=unknown 12156 enable_dlopen_self=unknown 12157 enable_dlopen_self_static=unknown 12158else 12159 lt_cv_dlopen=no 12160 lt_cv_dlopen_libs= 12161 12162 case $host_os in 12163 beos*) 12164 lt_cv_dlopen=load_add_on 12165 lt_cv_dlopen_libs= 12166 lt_cv_dlopen_self=yes 12167 ;; 12168 12169 mingw* | pw32* | cegcc*) 12170 lt_cv_dlopen=LoadLibrary 12171 lt_cv_dlopen_libs= 12172 ;; 12173 12174 cygwin*) 12175 lt_cv_dlopen=dlopen 12176 lt_cv_dlopen_libs= 12177 ;; 12178 12179 darwin*) 12180 # if libdl is installed we need to link against it 12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12182printf %s "checking for dlopen in -ldl... " >&6; } 12183if test ${ac_cv_lib_dl_dlopen+y} 12184then : 12185 printf %s "(cached) " >&6 12186else $as_nop 12187 ac_check_lib_save_LIBS=$LIBS 12188LIBS="-ldl $LIBS" 12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191 12192/* Override any GCC internal prototype to avoid an error. 12193 Use char because int might match the return type of a GCC 12194 builtin and then its argument prototype would still apply. */ 12195char dlopen (); 12196int 12197main (void) 12198{ 12199return dlopen (); 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO" 12205then : 12206 ac_cv_lib_dl_dlopen=yes 12207else $as_nop 12208 ac_cv_lib_dl_dlopen=no 12209fi 12210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12211 conftest$ac_exeext conftest.$ac_ext 12212LIBS=$ac_check_lib_save_LIBS 12213fi 12214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12215printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12216if test "x$ac_cv_lib_dl_dlopen" = xyes 12217then : 12218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12219else $as_nop 12220 12221 lt_cv_dlopen=dyld 12222 lt_cv_dlopen_libs= 12223 lt_cv_dlopen_self=yes 12224 12225fi 12226 12227 ;; 12228 12229 tpf*) 12230 # Don't try to run any link tests for TPF. We know it's impossible 12231 # because TPF is a cross-compiler, and we know how we open DSOs. 12232 lt_cv_dlopen=dlopen 12233 lt_cv_dlopen_libs= 12234 lt_cv_dlopen_self=no 12235 ;; 12236 12237 *) 12238 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12239if test "x$ac_cv_func_shl_load" = xyes 12240then : 12241 lt_cv_dlopen=shl_load 12242else $as_nop 12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12244printf %s "checking for shl_load in -ldld... " >&6; } 12245if test ${ac_cv_lib_dld_shl_load+y} 12246then : 12247 printf %s "(cached) " >&6 12248else $as_nop 12249 ac_check_lib_save_LIBS=$LIBS 12250LIBS="-ldld $LIBS" 12251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253 12254/* Override any GCC internal prototype to avoid an error. 12255 Use char because int might match the return type of a GCC 12256 builtin and then its argument prototype would still apply. */ 12257char shl_load (); 12258int 12259main (void) 12260{ 12261return shl_load (); 12262 ; 12263 return 0; 12264} 12265_ACEOF 12266if ac_fn_c_try_link "$LINENO" 12267then : 12268 ac_cv_lib_dld_shl_load=yes 12269else $as_nop 12270 ac_cv_lib_dld_shl_load=no 12271fi 12272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12273 conftest$ac_exeext conftest.$ac_ext 12274LIBS=$ac_check_lib_save_LIBS 12275fi 12276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12277printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12278if test "x$ac_cv_lib_dld_shl_load" = xyes 12279then : 12280 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12281else $as_nop 12282 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12283if test "x$ac_cv_func_dlopen" = xyes 12284then : 12285 lt_cv_dlopen=dlopen 12286else $as_nop 12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12288printf %s "checking for dlopen in -ldl... " >&6; } 12289if test ${ac_cv_lib_dl_dlopen+y} 12290then : 12291 printf %s "(cached) " >&6 12292else $as_nop 12293 ac_check_lib_save_LIBS=$LIBS 12294LIBS="-ldl $LIBS" 12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12296/* end confdefs.h. */ 12297 12298/* Override any GCC internal prototype to avoid an error. 12299 Use char because int might match the return type of a GCC 12300 builtin and then its argument prototype would still apply. */ 12301char dlopen (); 12302int 12303main (void) 12304{ 12305return dlopen (); 12306 ; 12307 return 0; 12308} 12309_ACEOF 12310if ac_fn_c_try_link "$LINENO" 12311then : 12312 ac_cv_lib_dl_dlopen=yes 12313else $as_nop 12314 ac_cv_lib_dl_dlopen=no 12315fi 12316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12317 conftest$ac_exeext conftest.$ac_ext 12318LIBS=$ac_check_lib_save_LIBS 12319fi 12320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12321printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12322if test "x$ac_cv_lib_dl_dlopen" = xyes 12323then : 12324 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12325else $as_nop 12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12327printf %s "checking for dlopen in -lsvld... " >&6; } 12328if test ${ac_cv_lib_svld_dlopen+y} 12329then : 12330 printf %s "(cached) " >&6 12331else $as_nop 12332 ac_check_lib_save_LIBS=$LIBS 12333LIBS="-lsvld $LIBS" 12334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336 12337/* Override any GCC internal prototype to avoid an error. 12338 Use char because int might match the return type of a GCC 12339 builtin and then its argument prototype would still apply. */ 12340char dlopen (); 12341int 12342main (void) 12343{ 12344return dlopen (); 12345 ; 12346 return 0; 12347} 12348_ACEOF 12349if ac_fn_c_try_link "$LINENO" 12350then : 12351 ac_cv_lib_svld_dlopen=yes 12352else $as_nop 12353 ac_cv_lib_svld_dlopen=no 12354fi 12355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12356 conftest$ac_exeext conftest.$ac_ext 12357LIBS=$ac_check_lib_save_LIBS 12358fi 12359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12360printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12361if test "x$ac_cv_lib_svld_dlopen" = xyes 12362then : 12363 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12364else $as_nop 12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12366printf %s "checking for dld_link in -ldld... " >&6; } 12367if test ${ac_cv_lib_dld_dld_link+y} 12368then : 12369 printf %s "(cached) " >&6 12370else $as_nop 12371 ac_check_lib_save_LIBS=$LIBS 12372LIBS="-ldld $LIBS" 12373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12374/* end confdefs.h. */ 12375 12376/* Override any GCC internal prototype to avoid an error. 12377 Use char because int might match the return type of a GCC 12378 builtin and then its argument prototype would still apply. */ 12379char dld_link (); 12380int 12381main (void) 12382{ 12383return dld_link (); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO" 12389then : 12390 ac_cv_lib_dld_dld_link=yes 12391else $as_nop 12392 ac_cv_lib_dld_dld_link=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12395 conftest$ac_exeext conftest.$ac_ext 12396LIBS=$ac_check_lib_save_LIBS 12397fi 12398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12399printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12400if test "x$ac_cv_lib_dld_dld_link" = xyes 12401then : 12402 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12403fi 12404 12405 12406fi 12407 12408 12409fi 12410 12411 12412fi 12413 12414 12415fi 12416 12417 12418fi 12419 12420 ;; 12421 esac 12422 12423 if test no = "$lt_cv_dlopen"; then 12424 enable_dlopen=no 12425 else 12426 enable_dlopen=yes 12427 fi 12428 12429 case $lt_cv_dlopen in 12430 dlopen) 12431 save_CPPFLAGS=$CPPFLAGS 12432 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12433 12434 save_LDFLAGS=$LDFLAGS 12435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12436 12437 save_LIBS=$LIBS 12438 LIBS="$lt_cv_dlopen_libs $LIBS" 12439 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12441printf %s "checking whether a program can dlopen itself... " >&6; } 12442if test ${lt_cv_dlopen_self+y} 12443then : 12444 printf %s "(cached) " >&6 12445else $as_nop 12446 if test yes = "$cross_compiling"; then : 12447 lt_cv_dlopen_self=cross 12448else 12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12450 lt_status=$lt_dlunknown 12451 cat > conftest.$ac_ext <<_LT_EOF 12452#line $LINENO "configure" 12453#include "confdefs.h" 12454 12455#if HAVE_DLFCN_H 12456#include <dlfcn.h> 12457#endif 12458 12459#include <stdio.h> 12460 12461#ifdef RTLD_GLOBAL 12462# define LT_DLGLOBAL RTLD_GLOBAL 12463#else 12464# ifdef DL_GLOBAL 12465# define LT_DLGLOBAL DL_GLOBAL 12466# else 12467# define LT_DLGLOBAL 0 12468# endif 12469#endif 12470 12471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12472 find out it does not work in some platform. */ 12473#ifndef LT_DLLAZY_OR_NOW 12474# ifdef RTLD_LAZY 12475# define LT_DLLAZY_OR_NOW RTLD_LAZY 12476# else 12477# ifdef DL_LAZY 12478# define LT_DLLAZY_OR_NOW DL_LAZY 12479# else 12480# ifdef RTLD_NOW 12481# define LT_DLLAZY_OR_NOW RTLD_NOW 12482# else 12483# ifdef DL_NOW 12484# define LT_DLLAZY_OR_NOW DL_NOW 12485# else 12486# define LT_DLLAZY_OR_NOW 0 12487# endif 12488# endif 12489# endif 12490# endif 12491#endif 12492 12493/* When -fvisibility=hidden is used, assume the code has been annotated 12494 correspondingly for the symbols needed. */ 12495#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12496int fnord () __attribute__((visibility("default"))); 12497#endif 12498 12499int fnord () { return 42; } 12500int main () 12501{ 12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12503 int status = $lt_dlunknown; 12504 12505 if (self) 12506 { 12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12508 else 12509 { 12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12511 else puts (dlerror ()); 12512 } 12513 /* dlclose (self); */ 12514 } 12515 else 12516 puts (dlerror ()); 12517 12518 return status; 12519} 12520_LT_EOF 12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12522 (eval $ac_link) 2>&5 12523 ac_status=$? 12524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12526 (./conftest; exit; ) >&5 2>/dev/null 12527 lt_status=$? 12528 case x$lt_status in 12529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12532 esac 12533 else : 12534 # compilation failed 12535 lt_cv_dlopen_self=no 12536 fi 12537fi 12538rm -fr conftest* 12539 12540 12541fi 12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12543printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12544 12545 if test yes = "$lt_cv_dlopen_self"; then 12546 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12548printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12549if test ${lt_cv_dlopen_self_static+y} 12550then : 12551 printf %s "(cached) " >&6 12552else $as_nop 12553 if test yes = "$cross_compiling"; then : 12554 lt_cv_dlopen_self_static=cross 12555else 12556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12557 lt_status=$lt_dlunknown 12558 cat > conftest.$ac_ext <<_LT_EOF 12559#line $LINENO "configure" 12560#include "confdefs.h" 12561 12562#if HAVE_DLFCN_H 12563#include <dlfcn.h> 12564#endif 12565 12566#include <stdio.h> 12567 12568#ifdef RTLD_GLOBAL 12569# define LT_DLGLOBAL RTLD_GLOBAL 12570#else 12571# ifdef DL_GLOBAL 12572# define LT_DLGLOBAL DL_GLOBAL 12573# else 12574# define LT_DLGLOBAL 0 12575# endif 12576#endif 12577 12578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12579 find out it does not work in some platform. */ 12580#ifndef LT_DLLAZY_OR_NOW 12581# ifdef RTLD_LAZY 12582# define LT_DLLAZY_OR_NOW RTLD_LAZY 12583# else 12584# ifdef DL_LAZY 12585# define LT_DLLAZY_OR_NOW DL_LAZY 12586# else 12587# ifdef RTLD_NOW 12588# define LT_DLLAZY_OR_NOW RTLD_NOW 12589# else 12590# ifdef DL_NOW 12591# define LT_DLLAZY_OR_NOW DL_NOW 12592# else 12593# define LT_DLLAZY_OR_NOW 0 12594# endif 12595# endif 12596# endif 12597# endif 12598#endif 12599 12600/* When -fvisibility=hidden is used, assume the code has been annotated 12601 correspondingly for the symbols needed. */ 12602#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12603int fnord () __attribute__((visibility("default"))); 12604#endif 12605 12606int fnord () { return 42; } 12607int main () 12608{ 12609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12610 int status = $lt_dlunknown; 12611 12612 if (self) 12613 { 12614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12615 else 12616 { 12617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12618 else puts (dlerror ()); 12619 } 12620 /* dlclose (self); */ 12621 } 12622 else 12623 puts (dlerror ()); 12624 12625 return status; 12626} 12627_LT_EOF 12628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12629 (eval $ac_link) 2>&5 12630 ac_status=$? 12631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12632 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12633 (./conftest; exit; ) >&5 2>/dev/null 12634 lt_status=$? 12635 case x$lt_status in 12636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12639 esac 12640 else : 12641 # compilation failed 12642 lt_cv_dlopen_self_static=no 12643 fi 12644fi 12645rm -fr conftest* 12646 12647 12648fi 12649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12650printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12651 fi 12652 12653 CPPFLAGS=$save_CPPFLAGS 12654 LDFLAGS=$save_LDFLAGS 12655 LIBS=$save_LIBS 12656 ;; 12657 esac 12658 12659 case $lt_cv_dlopen_self in 12660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12661 *) enable_dlopen_self=unknown ;; 12662 esac 12663 12664 case $lt_cv_dlopen_self_static in 12665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12666 *) enable_dlopen_self_static=unknown ;; 12667 esac 12668fi 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686striplib= 12687old_striplib= 12688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12689printf %s "checking whether stripping libraries is possible... " >&6; } 12690if test -z "$STRIP"; then 12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12692printf "%s\n" "no" >&6; } 12693else 12694 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12695 old_striplib="$STRIP --strip-debug" 12696 striplib="$STRIP --strip-unneeded" 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12698printf "%s\n" "yes" >&6; } 12699 else 12700 case $host_os in 12701 darwin*) 12702 # FIXME - insert some real tests, host_os isn't really good enough 12703 striplib="$STRIP -x" 12704 old_striplib="$STRIP -S" 12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12706printf "%s\n" "yes" >&6; } 12707 ;; 12708 freebsd*) 12709 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12710 old_striplib="$STRIP --strip-debug" 12711 striplib="$STRIP --strip-unneeded" 12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12713printf "%s\n" "yes" >&6; } 12714 else 12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12716printf "%s\n" "no" >&6; } 12717 fi 12718 ;; 12719 *) 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12721printf "%s\n" "no" >&6; } 12722 ;; 12723 esac 12724 fi 12725fi 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 # Report what library types will actually be built 12739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12740printf %s "checking if libtool supports shared libraries... " >&6; } 12741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12742printf "%s\n" "$can_build_shared" >&6; } 12743 12744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12745printf %s "checking whether to build shared libraries... " >&6; } 12746 test no = "$can_build_shared" && enable_shared=no 12747 12748 # On AIX, shared libraries and static libraries use the same namespace, and 12749 # are all built from PIC. 12750 case $host_os in 12751 aix3*) 12752 test yes = "$enable_shared" && enable_static=no 12753 if test -n "$RANLIB"; then 12754 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12755 postinstall_cmds='$RANLIB $lib' 12756 fi 12757 ;; 12758 12759 aix[4-9]*) 12760 if test ia64 != "$host_cpu"; then 12761 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12762 yes,aix,yes) ;; # shared object as lib.so file only 12763 yes,svr4,*) ;; # shared object as lib.so archive member only 12764 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12765 esac 12766 fi 12767 ;; 12768 esac 12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12770printf "%s\n" "$enable_shared" >&6; } 12771 12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12773printf %s "checking whether to build static libraries... " >&6; } 12774 # Make sure either enable_shared or enable_static is yes. 12775 test yes = "$enable_shared" || enable_static=yes 12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12777printf "%s\n" "$enable_static" >&6; } 12778 12779 12780 12781 12782fi 12783ac_ext=c 12784ac_cpp='$CPP $CPPFLAGS' 12785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12787ac_compiler_gnu=$ac_cv_c_compiler_gnu 12788 12789CC=$lt_save_CC 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 ac_config_commands="$ac_config_commands libtool" 12806 12807 12808 12809 12810# Only expand once: 12811 12812 12813 12814# Require X.Org macros 1.8 or later 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12828printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12829if test ${ac_cv_c_undeclared_builtin_options+y} 12830then : 12831 printf %s "(cached) " >&6 12832else $as_nop 12833 ac_save_CFLAGS=$CFLAGS 12834 ac_cv_c_undeclared_builtin_options='cannot detect' 12835 for ac_arg in '' -fno-builtin; do 12836 CFLAGS="$ac_save_CFLAGS $ac_arg" 12837 # This test program should *not* compile successfully. 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12839/* end confdefs.h. */ 12840 12841int 12842main (void) 12843{ 12844(void) strchr; 12845 ; 12846 return 0; 12847} 12848_ACEOF 12849if ac_fn_c_try_compile "$LINENO" 12850then : 12851 12852else $as_nop 12853 # This test program should compile successfully. 12854 # No library function is consistently available on 12855 # freestanding implementations, so test against a dummy 12856 # declaration. Include always-available headers on the 12857 # off chance that they somehow elicit warnings. 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860#include <float.h> 12861#include <limits.h> 12862#include <stdarg.h> 12863#include <stddef.h> 12864extern void ac_decl (int, char *); 12865 12866int 12867main (void) 12868{ 12869(void) ac_decl (0, (char *) 0); 12870 (void) ac_decl; 12871 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876if ac_fn_c_try_compile "$LINENO" 12877then : 12878 if test x"$ac_arg" = x 12879then : 12880 ac_cv_c_undeclared_builtin_options='none needed' 12881else $as_nop 12882 ac_cv_c_undeclared_builtin_options=$ac_arg 12883fi 12884 break 12885fi 12886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12887fi 12888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12889 done 12890 CFLAGS=$ac_save_CFLAGS 12891 12892fi 12893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12894printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12895 case $ac_cv_c_undeclared_builtin_options in #( 12896 'cannot detect') : 12897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12898printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12899as_fn_error $? "cannot make $CC report undeclared builtins 12900See \`config.log' for more details" "$LINENO" 5; } ;; #( 12901 'none needed') : 12902 ac_c_undeclared_builtin_options='' ;; #( 12903 *) : 12904 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12905esac 12906 12907 12908 12909 12910 12911ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12912if test "x$ac_cv_have_decl___clang__" = xyes 12913then : 12914 CLANGCC="yes" 12915else $as_nop 12916 CLANGCC="no" 12917fi 12918ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12919if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12920then : 12921 INTELCC="yes" 12922else $as_nop 12923 INTELCC="no" 12924fi 12925ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12926if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12927then : 12928 SUNCC="yes" 12929else $as_nop 12930 SUNCC="no" 12931fi 12932 12933 12934 12935 12936 12937 12938 12939 12940if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12941 if test -n "$ac_tool_prefix"; then 12942 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12943set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12945printf %s "checking for $ac_word... " >&6; } 12946if test ${ac_cv_path_PKG_CONFIG+y} 12947then : 12948 printf %s "(cached) " >&6 12949else $as_nop 12950 case $PKG_CONFIG in 12951 [\\/]* | ?:[\\/]*) 12952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12953 ;; 12954 *) 12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12956for as_dir in $PATH 12957do 12958 IFS=$as_save_IFS 12959 case $as_dir in #((( 12960 '') as_dir=./ ;; 12961 */) ;; 12962 *) as_dir=$as_dir/ ;; 12963 esac 12964 for ac_exec_ext in '' $ac_executable_extensions; do 12965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12966 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12968 break 2 12969 fi 12970done 12971 done 12972IFS=$as_save_IFS 12973 12974 ;; 12975esac 12976fi 12977PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12978if test -n "$PKG_CONFIG"; then 12979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12980printf "%s\n" "$PKG_CONFIG" >&6; } 12981else 12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12983printf "%s\n" "no" >&6; } 12984fi 12985 12986 12987fi 12988if test -z "$ac_cv_path_PKG_CONFIG"; then 12989 ac_pt_PKG_CONFIG=$PKG_CONFIG 12990 # Extract the first word of "pkg-config", so it can be a program name with args. 12991set dummy pkg-config; ac_word=$2 12992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12993printf %s "checking for $ac_word... " >&6; } 12994if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12995then : 12996 printf %s "(cached) " >&6 12997else $as_nop 12998 case $ac_pt_PKG_CONFIG in 12999 [\\/]* | ?:[\\/]*) 13000 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13001 ;; 13002 *) 13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13004for as_dir in $PATH 13005do 13006 IFS=$as_save_IFS 13007 case $as_dir in #((( 13008 '') as_dir=./ ;; 13009 */) ;; 13010 *) as_dir=$as_dir/ ;; 13011 esac 13012 for ac_exec_ext in '' $ac_executable_extensions; do 13013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13014 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13016 break 2 13017 fi 13018done 13019 done 13020IFS=$as_save_IFS 13021 13022 ;; 13023esac 13024fi 13025ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13026if test -n "$ac_pt_PKG_CONFIG"; then 13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13028printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13029else 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13031printf "%s\n" "no" >&6; } 13032fi 13033 13034 if test "x$ac_pt_PKG_CONFIG" = x; then 13035 PKG_CONFIG="" 13036 else 13037 case $cross_compiling:$ac_tool_warned in 13038yes:) 13039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13041ac_tool_warned=yes ;; 13042esac 13043 PKG_CONFIG=$ac_pt_PKG_CONFIG 13044 fi 13045else 13046 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13047fi 13048 13049fi 13050if test -n "$PKG_CONFIG"; then 13051 _pkg_min_version=0.9.0 13052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13053printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13054 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13056printf "%s\n" "yes" >&6; } 13057 else 13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13059printf "%s\n" "no" >&6; } 13060 PKG_CONFIG="" 13061 fi 13062fi 13063 13064 13065 13066 13067 13068# Check whether --enable-selective-werror was given. 13069if test ${enable_selective_werror+y} 13070then : 13071 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13072else $as_nop 13073 SELECTIVE_WERROR=yes 13074fi 13075 13076 13077 13078 13079 13080# -v is too short to test reliably with XORG_TESTSET_CFLAG 13081if test "x$SUNCC" = "xyes"; then 13082 BASE_CFLAGS="-v" 13083else 13084 BASE_CFLAGS="" 13085fi 13086 13087# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101xorg_testset_save_CFLAGS="$CFLAGS" 13102 13103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13107if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13108then : 13109 printf %s "(cached) " >&6 13110else $as_nop 13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13112/* end confdefs.h. */ 13113int i; 13114_ACEOF 13115if ac_fn_c_try_compile "$LINENO" 13116then : 13117 xorg_cv_cc_flag_unknown_warning_option=yes 13118else $as_nop 13119 xorg_cv_cc_flag_unknown_warning_option=no 13120fi 13121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13122fi 13123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13126 CFLAGS="$xorg_testset_save_CFLAGS" 13127fi 13128 13129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13132 fi 13133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13136if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13137then : 13138 printf %s "(cached) " >&6 13139else $as_nop 13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13141/* end confdefs.h. */ 13142int i; 13143_ACEOF 13144if ac_fn_c_try_compile "$LINENO" 13145then : 13146 xorg_cv_cc_flag_unused_command_line_argument=yes 13147else $as_nop 13148 xorg_cv_cc_flag_unused_command_line_argument=no 13149fi 13150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13151fi 13152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13155 CFLAGS="$xorg_testset_save_CFLAGS" 13156fi 13157 13158found="no" 13159 13160 if test $found = "no" ; then 13161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13163 fi 13164 13165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13167 fi 13168 13169 CFLAGS="$CFLAGS -Wall" 13170 13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13172printf %s "checking if $CC supports -Wall... " >&6; } 13173 cacheid=xorg_cv_cc_flag__Wall 13174 if eval test \${$cacheid+y} 13175then : 13176 printf %s "(cached) " >&6 13177else $as_nop 13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13179/* end confdefs.h. */ 13180int i; 13181int 13182main (void) 13183{ 13184 13185 ; 13186 return 0; 13187} 13188_ACEOF 13189if ac_fn_c_try_link "$LINENO" 13190then : 13191 eval $cacheid=yes 13192else $as_nop 13193 eval $cacheid=no 13194fi 13195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13196 conftest$ac_exeext conftest.$ac_ext 13197fi 13198 13199 13200 CFLAGS="$xorg_testset_save_CFLAGS" 13201 13202 eval supported=\$$cacheid 13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13204printf "%s\n" "$supported" >&6; } 13205 if test "$supported" = "yes" ; then 13206 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13207 found="yes" 13208 fi 13209 fi 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225xorg_testset_save_CFLAGS="$CFLAGS" 13226 13227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13231if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13232then : 13233 printf %s "(cached) " >&6 13234else $as_nop 13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13236/* end confdefs.h. */ 13237int i; 13238_ACEOF 13239if ac_fn_c_try_compile "$LINENO" 13240then : 13241 xorg_cv_cc_flag_unknown_warning_option=yes 13242else $as_nop 13243 xorg_cv_cc_flag_unknown_warning_option=no 13244fi 13245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13246fi 13247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13250 CFLAGS="$xorg_testset_save_CFLAGS" 13251fi 13252 13253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13256 fi 13257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13260if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13261then : 13262 printf %s "(cached) " >&6 13263else $as_nop 13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13265/* end confdefs.h. */ 13266int i; 13267_ACEOF 13268if ac_fn_c_try_compile "$LINENO" 13269then : 13270 xorg_cv_cc_flag_unused_command_line_argument=yes 13271else $as_nop 13272 xorg_cv_cc_flag_unused_command_line_argument=no 13273fi 13274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13275fi 13276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13279 CFLAGS="$xorg_testset_save_CFLAGS" 13280fi 13281 13282found="no" 13283 13284 if test $found = "no" ; then 13285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13287 fi 13288 13289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13291 fi 13292 13293 CFLAGS="$CFLAGS -Wpointer-arith" 13294 13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13296printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13297 cacheid=xorg_cv_cc_flag__Wpointer_arith 13298 if eval test \${$cacheid+y} 13299then : 13300 printf %s "(cached) " >&6 13301else $as_nop 13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13303/* end confdefs.h. */ 13304int i; 13305int 13306main (void) 13307{ 13308 13309 ; 13310 return 0; 13311} 13312_ACEOF 13313if ac_fn_c_try_link "$LINENO" 13314then : 13315 eval $cacheid=yes 13316else $as_nop 13317 eval $cacheid=no 13318fi 13319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13320 conftest$ac_exeext conftest.$ac_ext 13321fi 13322 13323 13324 CFLAGS="$xorg_testset_save_CFLAGS" 13325 13326 eval supported=\$$cacheid 13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13328printf "%s\n" "$supported" >&6; } 13329 if test "$supported" = "yes" ; then 13330 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13331 found="yes" 13332 fi 13333 fi 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349xorg_testset_save_CFLAGS="$CFLAGS" 13350 13351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13355if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13356then : 13357 printf %s "(cached) " >&6 13358else $as_nop 13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13360/* end confdefs.h. */ 13361int i; 13362_ACEOF 13363if ac_fn_c_try_compile "$LINENO" 13364then : 13365 xorg_cv_cc_flag_unknown_warning_option=yes 13366else $as_nop 13367 xorg_cv_cc_flag_unknown_warning_option=no 13368fi 13369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13370fi 13371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13374 CFLAGS="$xorg_testset_save_CFLAGS" 13375fi 13376 13377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13380 fi 13381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13384if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13385then : 13386 printf %s "(cached) " >&6 13387else $as_nop 13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13389/* end confdefs.h. */ 13390int i; 13391_ACEOF 13392if ac_fn_c_try_compile "$LINENO" 13393then : 13394 xorg_cv_cc_flag_unused_command_line_argument=yes 13395else $as_nop 13396 xorg_cv_cc_flag_unused_command_line_argument=no 13397fi 13398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13399fi 13400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13403 CFLAGS="$xorg_testset_save_CFLAGS" 13404fi 13405 13406found="no" 13407 13408 if test $found = "no" ; then 13409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13411 fi 13412 13413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13415 fi 13416 13417 CFLAGS="$CFLAGS -Wmissing-declarations" 13418 13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13420printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13421 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13422 if eval test \${$cacheid+y} 13423then : 13424 printf %s "(cached) " >&6 13425else $as_nop 13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13427/* end confdefs.h. */ 13428int i; 13429int 13430main (void) 13431{ 13432 13433 ; 13434 return 0; 13435} 13436_ACEOF 13437if ac_fn_c_try_link "$LINENO" 13438then : 13439 eval $cacheid=yes 13440else $as_nop 13441 eval $cacheid=no 13442fi 13443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13444 conftest$ac_exeext conftest.$ac_ext 13445fi 13446 13447 13448 CFLAGS="$xorg_testset_save_CFLAGS" 13449 13450 eval supported=\$$cacheid 13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13452printf "%s\n" "$supported" >&6; } 13453 if test "$supported" = "yes" ; then 13454 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13455 found="yes" 13456 fi 13457 fi 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473xorg_testset_save_CFLAGS="$CFLAGS" 13474 13475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13479if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13480then : 13481 printf %s "(cached) " >&6 13482else $as_nop 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485int i; 13486_ACEOF 13487if ac_fn_c_try_compile "$LINENO" 13488then : 13489 xorg_cv_cc_flag_unknown_warning_option=yes 13490else $as_nop 13491 xorg_cv_cc_flag_unknown_warning_option=no 13492fi 13493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13494fi 13495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13498 CFLAGS="$xorg_testset_save_CFLAGS" 13499fi 13500 13501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13504 fi 13505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13508if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13509then : 13510 printf %s "(cached) " >&6 13511else $as_nop 13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13513/* end confdefs.h. */ 13514int i; 13515_ACEOF 13516if ac_fn_c_try_compile "$LINENO" 13517then : 13518 xorg_cv_cc_flag_unused_command_line_argument=yes 13519else $as_nop 13520 xorg_cv_cc_flag_unused_command_line_argument=no 13521fi 13522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13523fi 13524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13527 CFLAGS="$xorg_testset_save_CFLAGS" 13528fi 13529 13530found="no" 13531 13532 if test $found = "no" ; then 13533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13535 fi 13536 13537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13539 fi 13540 13541 CFLAGS="$CFLAGS -Wformat=2" 13542 13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13544printf %s "checking if $CC supports -Wformat=2... " >&6; } 13545 cacheid=xorg_cv_cc_flag__Wformat_2 13546 if eval test \${$cacheid+y} 13547then : 13548 printf %s "(cached) " >&6 13549else $as_nop 13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13551/* end confdefs.h. */ 13552int i; 13553int 13554main (void) 13555{ 13556 13557 ; 13558 return 0; 13559} 13560_ACEOF 13561if ac_fn_c_try_link "$LINENO" 13562then : 13563 eval $cacheid=yes 13564else $as_nop 13565 eval $cacheid=no 13566fi 13567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13568 conftest$ac_exeext conftest.$ac_ext 13569fi 13570 13571 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573 13574 eval supported=\$$cacheid 13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13576printf "%s\n" "$supported" >&6; } 13577 if test "$supported" = "yes" ; then 13578 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13579 found="yes" 13580 fi 13581 fi 13582 13583 if test $found = "no" ; then 13584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13586 fi 13587 13588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13590 fi 13591 13592 CFLAGS="$CFLAGS -Wformat" 13593 13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13595printf %s "checking if $CC supports -Wformat... " >&6; } 13596 cacheid=xorg_cv_cc_flag__Wformat 13597 if eval test \${$cacheid+y} 13598then : 13599 printf %s "(cached) " >&6 13600else $as_nop 13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13602/* end confdefs.h. */ 13603int i; 13604int 13605main (void) 13606{ 13607 13608 ; 13609 return 0; 13610} 13611_ACEOF 13612if ac_fn_c_try_link "$LINENO" 13613then : 13614 eval $cacheid=yes 13615else $as_nop 13616 eval $cacheid=no 13617fi 13618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13619 conftest$ac_exeext conftest.$ac_ext 13620fi 13621 13622 13623 CFLAGS="$xorg_testset_save_CFLAGS" 13624 13625 eval supported=\$$cacheid 13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13627printf "%s\n" "$supported" >&6; } 13628 if test "$supported" = "yes" ; then 13629 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13630 found="yes" 13631 fi 13632 fi 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650xorg_testset_save_CFLAGS="$CFLAGS" 13651 13652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13656if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13657then : 13658 printf %s "(cached) " >&6 13659else $as_nop 13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13661/* end confdefs.h. */ 13662int i; 13663_ACEOF 13664if ac_fn_c_try_compile "$LINENO" 13665then : 13666 xorg_cv_cc_flag_unknown_warning_option=yes 13667else $as_nop 13668 xorg_cv_cc_flag_unknown_warning_option=no 13669fi 13670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13671fi 13672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13675 CFLAGS="$xorg_testset_save_CFLAGS" 13676fi 13677 13678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13681 fi 13682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13685if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13686then : 13687 printf %s "(cached) " >&6 13688else $as_nop 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692_ACEOF 13693if ac_fn_c_try_compile "$LINENO" 13694then : 13695 xorg_cv_cc_flag_unused_command_line_argument=yes 13696else $as_nop 13697 xorg_cv_cc_flag_unused_command_line_argument=no 13698fi 13699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13700fi 13701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13704 CFLAGS="$xorg_testset_save_CFLAGS" 13705fi 13706 13707found="no" 13708 13709 if test $found = "no" ; then 13710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13712 fi 13713 13714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13716 fi 13717 13718 CFLAGS="$CFLAGS -Wstrict-prototypes" 13719 13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13721printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13722 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13723 if eval test \${$cacheid+y} 13724then : 13725 printf %s "(cached) " >&6 13726else $as_nop 13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13728/* end confdefs.h. */ 13729int i; 13730int 13731main (void) 13732{ 13733 13734 ; 13735 return 0; 13736} 13737_ACEOF 13738if ac_fn_c_try_link "$LINENO" 13739then : 13740 eval $cacheid=yes 13741else $as_nop 13742 eval $cacheid=no 13743fi 13744rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13745 conftest$ac_exeext conftest.$ac_ext 13746fi 13747 13748 13749 CFLAGS="$xorg_testset_save_CFLAGS" 13750 13751 eval supported=\$$cacheid 13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13753printf "%s\n" "$supported" >&6; } 13754 if test "$supported" = "yes" ; then 13755 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13756 found="yes" 13757 fi 13758 fi 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774xorg_testset_save_CFLAGS="$CFLAGS" 13775 13776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13780if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13781then : 13782 printf %s "(cached) " >&6 13783else $as_nop 13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13785/* end confdefs.h. */ 13786int i; 13787_ACEOF 13788if ac_fn_c_try_compile "$LINENO" 13789then : 13790 xorg_cv_cc_flag_unknown_warning_option=yes 13791else $as_nop 13792 xorg_cv_cc_flag_unknown_warning_option=no 13793fi 13794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13795fi 13796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13799 CFLAGS="$xorg_testset_save_CFLAGS" 13800fi 13801 13802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13805 fi 13806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13809if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13810then : 13811 printf %s "(cached) " >&6 13812else $as_nop 13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13814/* end confdefs.h. */ 13815int i; 13816_ACEOF 13817if ac_fn_c_try_compile "$LINENO" 13818then : 13819 xorg_cv_cc_flag_unused_command_line_argument=yes 13820else $as_nop 13821 xorg_cv_cc_flag_unused_command_line_argument=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13824fi 13825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829fi 13830 13831found="no" 13832 13833 if test $found = "no" ; then 13834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13836 fi 13837 13838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13840 fi 13841 13842 CFLAGS="$CFLAGS -Wmissing-prototypes" 13843 13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13845printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13846 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13847 if eval test \${$cacheid+y} 13848then : 13849 printf %s "(cached) " >&6 13850else $as_nop 13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13852/* end confdefs.h. */ 13853int i; 13854int 13855main (void) 13856{ 13857 13858 ; 13859 return 0; 13860} 13861_ACEOF 13862if ac_fn_c_try_link "$LINENO" 13863then : 13864 eval $cacheid=yes 13865else $as_nop 13866 eval $cacheid=no 13867fi 13868rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13869 conftest$ac_exeext conftest.$ac_ext 13870fi 13871 13872 13873 CFLAGS="$xorg_testset_save_CFLAGS" 13874 13875 eval supported=\$$cacheid 13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13877printf "%s\n" "$supported" >&6; } 13878 if test "$supported" = "yes" ; then 13879 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13880 found="yes" 13881 fi 13882 fi 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898xorg_testset_save_CFLAGS="$CFLAGS" 13899 13900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13904if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13905then : 13906 printf %s "(cached) " >&6 13907else $as_nop 13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909/* end confdefs.h. */ 13910int i; 13911_ACEOF 13912if ac_fn_c_try_compile "$LINENO" 13913then : 13914 xorg_cv_cc_flag_unknown_warning_option=yes 13915else $as_nop 13916 xorg_cv_cc_flag_unknown_warning_option=no 13917fi 13918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13919fi 13920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13923 CFLAGS="$xorg_testset_save_CFLAGS" 13924fi 13925 13926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13929 fi 13930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13933if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13934then : 13935 printf %s "(cached) " >&6 13936else $as_nop 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939int i; 13940_ACEOF 13941if ac_fn_c_try_compile "$LINENO" 13942then : 13943 xorg_cv_cc_flag_unused_command_line_argument=yes 13944else $as_nop 13945 xorg_cv_cc_flag_unused_command_line_argument=no 13946fi 13947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13948fi 13949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13952 CFLAGS="$xorg_testset_save_CFLAGS" 13953fi 13954 13955found="no" 13956 13957 if test $found = "no" ; then 13958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13960 fi 13961 13962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13964 fi 13965 13966 CFLAGS="$CFLAGS -Wnested-externs" 13967 13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13969printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13970 cacheid=xorg_cv_cc_flag__Wnested_externs 13971 if eval test \${$cacheid+y} 13972then : 13973 printf %s "(cached) " >&6 13974else $as_nop 13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13976/* end confdefs.h. */ 13977int i; 13978int 13979main (void) 13980{ 13981 13982 ; 13983 return 0; 13984} 13985_ACEOF 13986if ac_fn_c_try_link "$LINENO" 13987then : 13988 eval $cacheid=yes 13989else $as_nop 13990 eval $cacheid=no 13991fi 13992rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13993 conftest$ac_exeext conftest.$ac_ext 13994fi 13995 13996 13997 CFLAGS="$xorg_testset_save_CFLAGS" 13998 13999 eval supported=\$$cacheid 14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14001printf "%s\n" "$supported" >&6; } 14002 if test "$supported" = "yes" ; then 14003 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14004 found="yes" 14005 fi 14006 fi 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022xorg_testset_save_CFLAGS="$CFLAGS" 14023 14024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14028if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14029then : 14030 printf %s "(cached) " >&6 14031else $as_nop 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034int i; 14035_ACEOF 14036if ac_fn_c_try_compile "$LINENO" 14037then : 14038 xorg_cv_cc_flag_unknown_warning_option=yes 14039else $as_nop 14040 xorg_cv_cc_flag_unknown_warning_option=no 14041fi 14042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14043fi 14044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14047 CFLAGS="$xorg_testset_save_CFLAGS" 14048fi 14049 14050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14053 fi 14054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14057if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14058then : 14059 printf %s "(cached) " >&6 14060else $as_nop 14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062/* end confdefs.h. */ 14063int i; 14064_ACEOF 14065if ac_fn_c_try_compile "$LINENO" 14066then : 14067 xorg_cv_cc_flag_unused_command_line_argument=yes 14068else $as_nop 14069 xorg_cv_cc_flag_unused_command_line_argument=no 14070fi 14071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14072fi 14073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14076 CFLAGS="$xorg_testset_save_CFLAGS" 14077fi 14078 14079found="no" 14080 14081 if test $found = "no" ; then 14082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14084 fi 14085 14086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14088 fi 14089 14090 CFLAGS="$CFLAGS -Wbad-function-cast" 14091 14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14093printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14094 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14095 if eval test \${$cacheid+y} 14096then : 14097 printf %s "(cached) " >&6 14098else $as_nop 14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101int i; 14102int 14103main (void) 14104{ 14105 14106 ; 14107 return 0; 14108} 14109_ACEOF 14110if ac_fn_c_try_link "$LINENO" 14111then : 14112 eval $cacheid=yes 14113else $as_nop 14114 eval $cacheid=no 14115fi 14116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14117 conftest$ac_exeext conftest.$ac_ext 14118fi 14119 14120 14121 CFLAGS="$xorg_testset_save_CFLAGS" 14122 14123 eval supported=\$$cacheid 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14125printf "%s\n" "$supported" >&6; } 14126 if test "$supported" = "yes" ; then 14127 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14128 found="yes" 14129 fi 14130 fi 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146xorg_testset_save_CFLAGS="$CFLAGS" 14147 14148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14153then : 14154 printf %s "(cached) " >&6 14155else $as_nop 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14157/* end confdefs.h. */ 14158int i; 14159_ACEOF 14160if ac_fn_c_try_compile "$LINENO" 14161then : 14162 xorg_cv_cc_flag_unknown_warning_option=yes 14163else $as_nop 14164 xorg_cv_cc_flag_unknown_warning_option=no 14165fi 14166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14167fi 14168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14171 CFLAGS="$xorg_testset_save_CFLAGS" 14172fi 14173 14174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14177 fi 14178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14182then : 14183 printf %s "(cached) " >&6 14184else $as_nop 14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14186/* end confdefs.h. */ 14187int i; 14188_ACEOF 14189if ac_fn_c_try_compile "$LINENO" 14190then : 14191 xorg_cv_cc_flag_unused_command_line_argument=yes 14192else $as_nop 14193 xorg_cv_cc_flag_unused_command_line_argument=no 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14196fi 14197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14200 CFLAGS="$xorg_testset_save_CFLAGS" 14201fi 14202 14203found="no" 14204 14205 if test $found = "no" ; then 14206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14208 fi 14209 14210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14212 fi 14213 14214 CFLAGS="$CFLAGS -Wold-style-definition" 14215 14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14217printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14218 cacheid=xorg_cv_cc_flag__Wold_style_definition 14219 if eval test \${$cacheid+y} 14220then : 14221 printf %s "(cached) " >&6 14222else $as_nop 14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14224/* end confdefs.h. */ 14225int i; 14226int 14227main (void) 14228{ 14229 14230 ; 14231 return 0; 14232} 14233_ACEOF 14234if ac_fn_c_try_link "$LINENO" 14235then : 14236 eval $cacheid=yes 14237else $as_nop 14238 eval $cacheid=no 14239fi 14240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14241 conftest$ac_exeext conftest.$ac_ext 14242fi 14243 14244 14245 CFLAGS="$xorg_testset_save_CFLAGS" 14246 14247 eval supported=\$$cacheid 14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14249printf "%s\n" "$supported" >&6; } 14250 if test "$supported" = "yes" ; then 14251 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14252 found="yes" 14253 fi 14254 fi 14255 14256 if test $found = "no" ; then 14257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14259 fi 14260 14261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14263 fi 14264 14265 CFLAGS="$CFLAGS -fd" 14266 14267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14268printf %s "checking if $CC supports -fd... " >&6; } 14269 cacheid=xorg_cv_cc_flag__fd 14270 if eval test \${$cacheid+y} 14271then : 14272 printf %s "(cached) " >&6 14273else $as_nop 14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14275/* end confdefs.h. */ 14276int i; 14277int 14278main (void) 14279{ 14280 14281 ; 14282 return 0; 14283} 14284_ACEOF 14285if ac_fn_c_try_link "$LINENO" 14286then : 14287 eval $cacheid=yes 14288else $as_nop 14289 eval $cacheid=no 14290fi 14291rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14292 conftest$ac_exeext conftest.$ac_ext 14293fi 14294 14295 14296 CFLAGS="$xorg_testset_save_CFLAGS" 14297 14298 eval supported=\$$cacheid 14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14300printf "%s\n" "$supported" >&6; } 14301 if test "$supported" = "yes" ; then 14302 BASE_CFLAGS="$BASE_CFLAGS -fd" 14303 found="yes" 14304 fi 14305 fi 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321xorg_testset_save_CFLAGS="$CFLAGS" 14322 14323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14327if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14328then : 14329 printf %s "(cached) " >&6 14330else $as_nop 14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333int i; 14334_ACEOF 14335if ac_fn_c_try_compile "$LINENO" 14336then : 14337 xorg_cv_cc_flag_unknown_warning_option=yes 14338else $as_nop 14339 xorg_cv_cc_flag_unknown_warning_option=no 14340fi 14341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14342fi 14343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14346 CFLAGS="$xorg_testset_save_CFLAGS" 14347fi 14348 14349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14352 fi 14353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14356if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14357then : 14358 printf %s "(cached) " >&6 14359else $as_nop 14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14361/* end confdefs.h. */ 14362int i; 14363_ACEOF 14364if ac_fn_c_try_compile "$LINENO" 14365then : 14366 xorg_cv_cc_flag_unused_command_line_argument=yes 14367else $as_nop 14368 xorg_cv_cc_flag_unused_command_line_argument=no 14369fi 14370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14371fi 14372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14375 CFLAGS="$xorg_testset_save_CFLAGS" 14376fi 14377 14378found="no" 14379 14380 if test $found = "no" ; then 14381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14383 fi 14384 14385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14387 fi 14388 14389 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14390 14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14392printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14393 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14394 if eval test \${$cacheid+y} 14395then : 14396 printf %s "(cached) " >&6 14397else $as_nop 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400int i; 14401int 14402main (void) 14403{ 14404 14405 ; 14406 return 0; 14407} 14408_ACEOF 14409if ac_fn_c_try_link "$LINENO" 14410then : 14411 eval $cacheid=yes 14412else $as_nop 14413 eval $cacheid=no 14414fi 14415rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14416 conftest$ac_exeext conftest.$ac_ext 14417fi 14418 14419 14420 CFLAGS="$xorg_testset_save_CFLAGS" 14421 14422 eval supported=\$$cacheid 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14424printf "%s\n" "$supported" >&6; } 14425 if test "$supported" = "yes" ; then 14426 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14427 found="yes" 14428 fi 14429 fi 14430 14431 14432 14433 14434 14435# This chunk adds additional warnings that could catch undesired effects. 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449xorg_testset_save_CFLAGS="$CFLAGS" 14450 14451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14455if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14456then : 14457 printf %s "(cached) " >&6 14458else $as_nop 14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14460/* end confdefs.h. */ 14461int i; 14462_ACEOF 14463if ac_fn_c_try_compile "$LINENO" 14464then : 14465 xorg_cv_cc_flag_unknown_warning_option=yes 14466else $as_nop 14467 xorg_cv_cc_flag_unknown_warning_option=no 14468fi 14469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14470fi 14471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14472printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14474 CFLAGS="$xorg_testset_save_CFLAGS" 14475fi 14476 14477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14480 fi 14481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14483printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14484if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14485then : 14486 printf %s "(cached) " >&6 14487else $as_nop 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491_ACEOF 14492if ac_fn_c_try_compile "$LINENO" 14493then : 14494 xorg_cv_cc_flag_unused_command_line_argument=yes 14495else $as_nop 14496 xorg_cv_cc_flag_unused_command_line_argument=no 14497fi 14498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14499fi 14500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14501printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14503 CFLAGS="$xorg_testset_save_CFLAGS" 14504fi 14505 14506found="no" 14507 14508 if test $found = "no" ; then 14509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14511 fi 14512 14513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14515 fi 14516 14517 CFLAGS="$CFLAGS -Wunused" 14518 14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14520printf %s "checking if $CC supports -Wunused... " >&6; } 14521 cacheid=xorg_cv_cc_flag__Wunused 14522 if eval test \${$cacheid+y} 14523then : 14524 printf %s "(cached) " >&6 14525else $as_nop 14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528int i; 14529int 14530main (void) 14531{ 14532 14533 ; 14534 return 0; 14535} 14536_ACEOF 14537if ac_fn_c_try_link "$LINENO" 14538then : 14539 eval $cacheid=yes 14540else $as_nop 14541 eval $cacheid=no 14542fi 14543rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14544 conftest$ac_exeext conftest.$ac_ext 14545fi 14546 14547 14548 CFLAGS="$xorg_testset_save_CFLAGS" 14549 14550 eval supported=\$$cacheid 14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14552printf "%s\n" "$supported" >&6; } 14553 if test "$supported" = "yes" ; then 14554 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14555 found="yes" 14556 fi 14557 fi 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573xorg_testset_save_CFLAGS="$CFLAGS" 14574 14575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14578printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14579if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14580then : 14581 printf %s "(cached) " >&6 14582else $as_nop 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585int i; 14586_ACEOF 14587if ac_fn_c_try_compile "$LINENO" 14588then : 14589 xorg_cv_cc_flag_unknown_warning_option=yes 14590else $as_nop 14591 xorg_cv_cc_flag_unknown_warning_option=no 14592fi 14593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14594fi 14595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14596printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14598 CFLAGS="$xorg_testset_save_CFLAGS" 14599fi 14600 14601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14604 fi 14605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14607printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14608if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14609then : 14610 printf %s "(cached) " >&6 14611else $as_nop 14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14613/* end confdefs.h. */ 14614int i; 14615_ACEOF 14616if ac_fn_c_try_compile "$LINENO" 14617then : 14618 xorg_cv_cc_flag_unused_command_line_argument=yes 14619else $as_nop 14620 xorg_cv_cc_flag_unused_command_line_argument=no 14621fi 14622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14623fi 14624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14627 CFLAGS="$xorg_testset_save_CFLAGS" 14628fi 14629 14630found="no" 14631 14632 if test $found = "no" ; then 14633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14635 fi 14636 14637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14639 fi 14640 14641 CFLAGS="$CFLAGS -Wuninitialized" 14642 14643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14644printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14645 cacheid=xorg_cv_cc_flag__Wuninitialized 14646 if eval test \${$cacheid+y} 14647then : 14648 printf %s "(cached) " >&6 14649else $as_nop 14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14651/* end confdefs.h. */ 14652int i; 14653int 14654main (void) 14655{ 14656 14657 ; 14658 return 0; 14659} 14660_ACEOF 14661if ac_fn_c_try_link "$LINENO" 14662then : 14663 eval $cacheid=yes 14664else $as_nop 14665 eval $cacheid=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14668 conftest$ac_exeext conftest.$ac_ext 14669fi 14670 14671 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673 14674 eval supported=\$$cacheid 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14676printf "%s\n" "$supported" >&6; } 14677 if test "$supported" = "yes" ; then 14678 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14679 found="yes" 14680 fi 14681 fi 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697xorg_testset_save_CFLAGS="$CFLAGS" 14698 14699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14704then : 14705 printf %s "(cached) " >&6 14706else $as_nop 14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14708/* end confdefs.h. */ 14709int i; 14710_ACEOF 14711if ac_fn_c_try_compile "$LINENO" 14712then : 14713 xorg_cv_cc_flag_unknown_warning_option=yes 14714else $as_nop 14715 xorg_cv_cc_flag_unknown_warning_option=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14718fi 14719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14722 CFLAGS="$xorg_testset_save_CFLAGS" 14723fi 14724 14725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14728 fi 14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14733then : 14734 printf %s "(cached) " >&6 14735else $as_nop 14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14737/* end confdefs.h. */ 14738int i; 14739_ACEOF 14740if ac_fn_c_try_compile "$LINENO" 14741then : 14742 xorg_cv_cc_flag_unused_command_line_argument=yes 14743else $as_nop 14744 xorg_cv_cc_flag_unused_command_line_argument=no 14745fi 14746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14747fi 14748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14751 CFLAGS="$xorg_testset_save_CFLAGS" 14752fi 14753 14754found="no" 14755 14756 if test $found = "no" ; then 14757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14759 fi 14760 14761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14763 fi 14764 14765 CFLAGS="$CFLAGS -Wshadow" 14766 14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14768printf %s "checking if $CC supports -Wshadow... " >&6; } 14769 cacheid=xorg_cv_cc_flag__Wshadow 14770 if eval test \${$cacheid+y} 14771then : 14772 printf %s "(cached) " >&6 14773else $as_nop 14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14775/* end confdefs.h. */ 14776int i; 14777int 14778main (void) 14779{ 14780 14781 ; 14782 return 0; 14783} 14784_ACEOF 14785if ac_fn_c_try_link "$LINENO" 14786then : 14787 eval $cacheid=yes 14788else $as_nop 14789 eval $cacheid=no 14790fi 14791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14792 conftest$ac_exeext conftest.$ac_ext 14793fi 14794 14795 14796 CFLAGS="$xorg_testset_save_CFLAGS" 14797 14798 eval supported=\$$cacheid 14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14800printf "%s\n" "$supported" >&6; } 14801 if test "$supported" = "yes" ; then 14802 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14803 found="yes" 14804 fi 14805 fi 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821xorg_testset_save_CFLAGS="$CFLAGS" 14822 14823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14827if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14828then : 14829 printf %s "(cached) " >&6 14830else $as_nop 14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14832/* end confdefs.h. */ 14833int i; 14834_ACEOF 14835if ac_fn_c_try_compile "$LINENO" 14836then : 14837 xorg_cv_cc_flag_unknown_warning_option=yes 14838else $as_nop 14839 xorg_cv_cc_flag_unknown_warning_option=no 14840fi 14841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14842fi 14843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14846 CFLAGS="$xorg_testset_save_CFLAGS" 14847fi 14848 14849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14852 fi 14853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14856if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14857then : 14858 printf %s "(cached) " >&6 14859else $as_nop 14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14861/* end confdefs.h. */ 14862int i; 14863_ACEOF 14864if ac_fn_c_try_compile "$LINENO" 14865then : 14866 xorg_cv_cc_flag_unused_command_line_argument=yes 14867else $as_nop 14868 xorg_cv_cc_flag_unused_command_line_argument=no 14869fi 14870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14871fi 14872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14875 CFLAGS="$xorg_testset_save_CFLAGS" 14876fi 14877 14878found="no" 14879 14880 if test $found = "no" ; then 14881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14883 fi 14884 14885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14887 fi 14888 14889 CFLAGS="$CFLAGS -Wmissing-noreturn" 14890 14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14892printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14893 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14894 if eval test \${$cacheid+y} 14895then : 14896 printf %s "(cached) " >&6 14897else $as_nop 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900int i; 14901int 14902main (void) 14903{ 14904 14905 ; 14906 return 0; 14907} 14908_ACEOF 14909if ac_fn_c_try_link "$LINENO" 14910then : 14911 eval $cacheid=yes 14912else $as_nop 14913 eval $cacheid=no 14914fi 14915rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14916 conftest$ac_exeext conftest.$ac_ext 14917fi 14918 14919 14920 CFLAGS="$xorg_testset_save_CFLAGS" 14921 14922 eval supported=\$$cacheid 14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14924printf "%s\n" "$supported" >&6; } 14925 if test "$supported" = "yes" ; then 14926 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14927 found="yes" 14928 fi 14929 fi 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945xorg_testset_save_CFLAGS="$CFLAGS" 14946 14947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14952then : 14953 printf %s "(cached) " >&6 14954else $as_nop 14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957int i; 14958_ACEOF 14959if ac_fn_c_try_compile "$LINENO" 14960then : 14961 xorg_cv_cc_flag_unknown_warning_option=yes 14962else $as_nop 14963 xorg_cv_cc_flag_unknown_warning_option=no 14964fi 14965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14966fi 14967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14970 CFLAGS="$xorg_testset_save_CFLAGS" 14971fi 14972 14973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14976 fi 14977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14980if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14981then : 14982 printf %s "(cached) " >&6 14983else $as_nop 14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14985/* end confdefs.h. */ 14986int i; 14987_ACEOF 14988if ac_fn_c_try_compile "$LINENO" 14989then : 14990 xorg_cv_cc_flag_unused_command_line_argument=yes 14991else $as_nop 14992 xorg_cv_cc_flag_unused_command_line_argument=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14995fi 14996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000fi 15001 15002found="no" 15003 15004 if test $found = "no" ; then 15005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15007 fi 15008 15009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15011 fi 15012 15013 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15014 15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15016printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15017 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15018 if eval test \${$cacheid+y} 15019then : 15020 printf %s "(cached) " >&6 15021else $as_nop 15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15023/* end confdefs.h. */ 15024int i; 15025int 15026main (void) 15027{ 15028 15029 ; 15030 return 0; 15031} 15032_ACEOF 15033if ac_fn_c_try_link "$LINENO" 15034then : 15035 eval $cacheid=yes 15036else $as_nop 15037 eval $cacheid=no 15038fi 15039rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15040 conftest$ac_exeext conftest.$ac_ext 15041fi 15042 15043 15044 CFLAGS="$xorg_testset_save_CFLAGS" 15045 15046 eval supported=\$$cacheid 15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15048printf "%s\n" "$supported" >&6; } 15049 if test "$supported" = "yes" ; then 15050 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15051 found="yes" 15052 fi 15053 fi 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069xorg_testset_save_CFLAGS="$CFLAGS" 15070 15071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15076then : 15077 printf %s "(cached) " >&6 15078else $as_nop 15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15080/* end confdefs.h. */ 15081int i; 15082_ACEOF 15083if ac_fn_c_try_compile "$LINENO" 15084then : 15085 xorg_cv_cc_flag_unknown_warning_option=yes 15086else $as_nop 15087 xorg_cv_cc_flag_unknown_warning_option=no 15088fi 15089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15090fi 15091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15094 CFLAGS="$xorg_testset_save_CFLAGS" 15095fi 15096 15097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15100 fi 15101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15104if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15105then : 15106 printf %s "(cached) " >&6 15107else $as_nop 15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15109/* end confdefs.h. */ 15110int i; 15111_ACEOF 15112if ac_fn_c_try_compile "$LINENO" 15113then : 15114 xorg_cv_cc_flag_unused_command_line_argument=yes 15115else $as_nop 15116 xorg_cv_cc_flag_unused_command_line_argument=no 15117fi 15118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15119fi 15120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15123 CFLAGS="$xorg_testset_save_CFLAGS" 15124fi 15125 15126found="no" 15127 15128 if test $found = "no" ; then 15129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15131 fi 15132 15133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15135 fi 15136 15137 CFLAGS="$CFLAGS -Wredundant-decls" 15138 15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15140printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15141 cacheid=xorg_cv_cc_flag__Wredundant_decls 15142 if eval test \${$cacheid+y} 15143then : 15144 printf %s "(cached) " >&6 15145else $as_nop 15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15147/* end confdefs.h. */ 15148int i; 15149int 15150main (void) 15151{ 15152 15153 ; 15154 return 0; 15155} 15156_ACEOF 15157if ac_fn_c_try_link "$LINENO" 15158then : 15159 eval $cacheid=yes 15160else $as_nop 15161 eval $cacheid=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15164 conftest$ac_exeext conftest.$ac_ext 15165fi 15166 15167 15168 CFLAGS="$xorg_testset_save_CFLAGS" 15169 15170 eval supported=\$$cacheid 15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15172printf "%s\n" "$supported" >&6; } 15173 if test "$supported" = "yes" ; then 15174 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15175 found="yes" 15176 fi 15177 fi 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193xorg_testset_save_CFLAGS="$CFLAGS" 15194 15195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15199if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15200then : 15201 printf %s "(cached) " >&6 15202else $as_nop 15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15204/* end confdefs.h. */ 15205int i; 15206_ACEOF 15207if ac_fn_c_try_compile "$LINENO" 15208then : 15209 xorg_cv_cc_flag_unknown_warning_option=yes 15210else $as_nop 15211 xorg_cv_cc_flag_unknown_warning_option=no 15212fi 15213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15214fi 15215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15218 CFLAGS="$xorg_testset_save_CFLAGS" 15219fi 15220 15221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15224 fi 15225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15228if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15229then : 15230 printf %s "(cached) " >&6 15231else $as_nop 15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15233/* end confdefs.h. */ 15234int i; 15235_ACEOF 15236if ac_fn_c_try_compile "$LINENO" 15237then : 15238 xorg_cv_cc_flag_unused_command_line_argument=yes 15239else $as_nop 15240 xorg_cv_cc_flag_unused_command_line_argument=no 15241fi 15242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15243fi 15244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15247 CFLAGS="$xorg_testset_save_CFLAGS" 15248fi 15249 15250found="no" 15251 15252 if test $found = "no" ; then 15253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15255 fi 15256 15257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15259 fi 15260 15261 CFLAGS="$CFLAGS -Wlogical-op" 15262 15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15264printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15265 cacheid=xorg_cv_cc_flag__Wlogical_op 15266 if eval test \${$cacheid+y} 15267then : 15268 printf %s "(cached) " >&6 15269else $as_nop 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273int 15274main (void) 15275{ 15276 15277 ; 15278 return 0; 15279} 15280_ACEOF 15281if ac_fn_c_try_link "$LINENO" 15282then : 15283 eval $cacheid=yes 15284else $as_nop 15285 eval $cacheid=no 15286fi 15287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15288 conftest$ac_exeext conftest.$ac_ext 15289fi 15290 15291 15292 CFLAGS="$xorg_testset_save_CFLAGS" 15293 15294 eval supported=\$$cacheid 15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15296printf "%s\n" "$supported" >&6; } 15297 if test "$supported" = "yes" ; then 15298 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15299 found="yes" 15300 fi 15301 fi 15302 15303 15304 15305# These are currently disabled because they are noisy. They will be enabled 15306# in the future once the codebase is sufficiently modernized to silence 15307# them. For now, I don't want them to drown out the other warnings. 15308# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15309# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15310# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15311 15312# Turn some warnings into errors, so we don't accidently get successful builds 15313# when there are problems that should be fixed. 15314 15315if test "x$SELECTIVE_WERROR" = "xyes" ; then 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329xorg_testset_save_CFLAGS="$CFLAGS" 15330 15331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15334printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15335if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15336then : 15337 printf %s "(cached) " >&6 15338else $as_nop 15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15340/* end confdefs.h. */ 15341int i; 15342_ACEOF 15343if ac_fn_c_try_compile "$LINENO" 15344then : 15345 xorg_cv_cc_flag_unknown_warning_option=yes 15346else $as_nop 15347 xorg_cv_cc_flag_unknown_warning_option=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15350fi 15351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15352printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355fi 15356 15357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15360 fi 15361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15363printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15364if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15365then : 15366 printf %s "(cached) " >&6 15367else $as_nop 15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15369/* end confdefs.h. */ 15370int i; 15371_ACEOF 15372if ac_fn_c_try_compile "$LINENO" 15373then : 15374 xorg_cv_cc_flag_unused_command_line_argument=yes 15375else $as_nop 15376 xorg_cv_cc_flag_unused_command_line_argument=no 15377fi 15378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15379fi 15380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15383 CFLAGS="$xorg_testset_save_CFLAGS" 15384fi 15385 15386found="no" 15387 15388 if test $found = "no" ; then 15389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15391 fi 15392 15393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15395 fi 15396 15397 CFLAGS="$CFLAGS -Werror=implicit" 15398 15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15400printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15401 cacheid=xorg_cv_cc_flag__Werror_implicit 15402 if eval test \${$cacheid+y} 15403then : 15404 printf %s "(cached) " >&6 15405else $as_nop 15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15407/* end confdefs.h. */ 15408int i; 15409int 15410main (void) 15411{ 15412 15413 ; 15414 return 0; 15415} 15416_ACEOF 15417if ac_fn_c_try_link "$LINENO" 15418then : 15419 eval $cacheid=yes 15420else $as_nop 15421 eval $cacheid=no 15422fi 15423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15424 conftest$ac_exeext conftest.$ac_ext 15425fi 15426 15427 15428 CFLAGS="$xorg_testset_save_CFLAGS" 15429 15430 eval supported=\$$cacheid 15431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15432printf "%s\n" "$supported" >&6; } 15433 if test "$supported" = "yes" ; then 15434 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15435 found="yes" 15436 fi 15437 fi 15438 15439 if test $found = "no" ; then 15440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15442 fi 15443 15444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15446 fi 15447 15448 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15449 15450 { 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 15451printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15452 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15453 if eval test \${$cacheid+y} 15454then : 15455 printf %s "(cached) " >&6 15456else $as_nop 15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15458/* end confdefs.h. */ 15459int i; 15460int 15461main (void) 15462{ 15463 15464 ; 15465 return 0; 15466} 15467_ACEOF 15468if ac_fn_c_try_link "$LINENO" 15469then : 15470 eval $cacheid=yes 15471else $as_nop 15472 eval $cacheid=no 15473fi 15474rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15475 conftest$ac_exeext conftest.$ac_ext 15476fi 15477 15478 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480 15481 eval supported=\$$cacheid 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15483printf "%s\n" "$supported" >&6; } 15484 if test "$supported" = "yes" ; then 15485 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15486 found="yes" 15487 fi 15488 fi 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504xorg_testset_save_CFLAGS="$CFLAGS" 15505 15506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15509printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15510if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15511then : 15512 printf %s "(cached) " >&6 15513else $as_nop 15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15515/* end confdefs.h. */ 15516int i; 15517_ACEOF 15518if ac_fn_c_try_compile "$LINENO" 15519then : 15520 xorg_cv_cc_flag_unknown_warning_option=yes 15521else $as_nop 15522 xorg_cv_cc_flag_unknown_warning_option=no 15523fi 15524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15525fi 15526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15527printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15529 CFLAGS="$xorg_testset_save_CFLAGS" 15530fi 15531 15532if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15535 fi 15536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15538printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15539if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15540then : 15541 printf %s "(cached) " >&6 15542else $as_nop 15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544/* end confdefs.h. */ 15545int i; 15546_ACEOF 15547if ac_fn_c_try_compile "$LINENO" 15548then : 15549 xorg_cv_cc_flag_unused_command_line_argument=yes 15550else $as_nop 15551 xorg_cv_cc_flag_unused_command_line_argument=no 15552fi 15553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15554fi 15555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15556printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15558 CFLAGS="$xorg_testset_save_CFLAGS" 15559fi 15560 15561found="no" 15562 15563 if test $found = "no" ; then 15564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15566 fi 15567 15568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15570 fi 15571 15572 CFLAGS="$CFLAGS -Werror=nonnull" 15573 15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15575printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15576 cacheid=xorg_cv_cc_flag__Werror_nonnull 15577 if eval test \${$cacheid+y} 15578then : 15579 printf %s "(cached) " >&6 15580else $as_nop 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583int i; 15584int 15585main (void) 15586{ 15587 15588 ; 15589 return 0; 15590} 15591_ACEOF 15592if ac_fn_c_try_link "$LINENO" 15593then : 15594 eval $cacheid=yes 15595else $as_nop 15596 eval $cacheid=no 15597fi 15598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15599 conftest$ac_exeext conftest.$ac_ext 15600fi 15601 15602 15603 CFLAGS="$xorg_testset_save_CFLAGS" 15604 15605 eval supported=\$$cacheid 15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15607printf "%s\n" "$supported" >&6; } 15608 if test "$supported" = "yes" ; then 15609 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15610 found="yes" 15611 fi 15612 fi 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628xorg_testset_save_CFLAGS="$CFLAGS" 15629 15630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15634if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15635then : 15636 printf %s "(cached) " >&6 15637else $as_nop 15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15639/* end confdefs.h. */ 15640int i; 15641_ACEOF 15642if ac_fn_c_try_compile "$LINENO" 15643then : 15644 xorg_cv_cc_flag_unknown_warning_option=yes 15645else $as_nop 15646 xorg_cv_cc_flag_unknown_warning_option=no 15647fi 15648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15649fi 15650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15653 CFLAGS="$xorg_testset_save_CFLAGS" 15654fi 15655 15656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15659 fi 15660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15663if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15664then : 15665 printf %s "(cached) " >&6 15666else $as_nop 15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15668/* end confdefs.h. */ 15669int i; 15670_ACEOF 15671if ac_fn_c_try_compile "$LINENO" 15672then : 15673 xorg_cv_cc_flag_unused_command_line_argument=yes 15674else $as_nop 15675 xorg_cv_cc_flag_unused_command_line_argument=no 15676fi 15677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15678fi 15679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15680printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15682 CFLAGS="$xorg_testset_save_CFLAGS" 15683fi 15684 15685found="no" 15686 15687 if test $found = "no" ; then 15688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15690 fi 15691 15692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15694 fi 15695 15696 CFLAGS="$CFLAGS -Werror=init-self" 15697 15698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15699printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15700 cacheid=xorg_cv_cc_flag__Werror_init_self 15701 if eval test \${$cacheid+y} 15702then : 15703 printf %s "(cached) " >&6 15704else $as_nop 15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15706/* end confdefs.h. */ 15707int i; 15708int 15709main (void) 15710{ 15711 15712 ; 15713 return 0; 15714} 15715_ACEOF 15716if ac_fn_c_try_link "$LINENO" 15717then : 15718 eval $cacheid=yes 15719else $as_nop 15720 eval $cacheid=no 15721fi 15722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15723 conftest$ac_exeext conftest.$ac_ext 15724fi 15725 15726 15727 CFLAGS="$xorg_testset_save_CFLAGS" 15728 15729 eval supported=\$$cacheid 15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15731printf "%s\n" "$supported" >&6; } 15732 if test "$supported" = "yes" ; then 15733 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15734 found="yes" 15735 fi 15736 fi 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752xorg_testset_save_CFLAGS="$CFLAGS" 15753 15754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15758if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15759then : 15760 printf %s "(cached) " >&6 15761else $as_nop 15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15763/* end confdefs.h. */ 15764int i; 15765_ACEOF 15766if ac_fn_c_try_compile "$LINENO" 15767then : 15768 xorg_cv_cc_flag_unknown_warning_option=yes 15769else $as_nop 15770 xorg_cv_cc_flag_unknown_warning_option=no 15771fi 15772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15773fi 15774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15777 CFLAGS="$xorg_testset_save_CFLAGS" 15778fi 15779 15780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15783 fi 15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15787if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15788then : 15789 printf %s "(cached) " >&6 15790else $as_nop 15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15792/* end confdefs.h. */ 15793int i; 15794_ACEOF 15795if ac_fn_c_try_compile "$LINENO" 15796then : 15797 xorg_cv_cc_flag_unused_command_line_argument=yes 15798else $as_nop 15799 xorg_cv_cc_flag_unused_command_line_argument=no 15800fi 15801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15802fi 15803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15806 CFLAGS="$xorg_testset_save_CFLAGS" 15807fi 15808 15809found="no" 15810 15811 if test $found = "no" ; then 15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15814 fi 15815 15816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15818 fi 15819 15820 CFLAGS="$CFLAGS -Werror=main" 15821 15822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15823printf %s "checking if $CC supports -Werror=main... " >&6; } 15824 cacheid=xorg_cv_cc_flag__Werror_main 15825 if eval test \${$cacheid+y} 15826then : 15827 printf %s "(cached) " >&6 15828else $as_nop 15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15830/* end confdefs.h. */ 15831int i; 15832int 15833main (void) 15834{ 15835 15836 ; 15837 return 0; 15838} 15839_ACEOF 15840if ac_fn_c_try_link "$LINENO" 15841then : 15842 eval $cacheid=yes 15843else $as_nop 15844 eval $cacheid=no 15845fi 15846rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15847 conftest$ac_exeext conftest.$ac_ext 15848fi 15849 15850 15851 CFLAGS="$xorg_testset_save_CFLAGS" 15852 15853 eval supported=\$$cacheid 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15855printf "%s\n" "$supported" >&6; } 15856 if test "$supported" = "yes" ; then 15857 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15858 found="yes" 15859 fi 15860 fi 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876xorg_testset_save_CFLAGS="$CFLAGS" 15877 15878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15882if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15883then : 15884 printf %s "(cached) " >&6 15885else $as_nop 15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15887/* end confdefs.h. */ 15888int i; 15889_ACEOF 15890if ac_fn_c_try_compile "$LINENO" 15891then : 15892 xorg_cv_cc_flag_unknown_warning_option=yes 15893else $as_nop 15894 xorg_cv_cc_flag_unknown_warning_option=no 15895fi 15896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15897fi 15898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15899printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15901 CFLAGS="$xorg_testset_save_CFLAGS" 15902fi 15903 15904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15907 fi 15908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15910printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15911if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15912then : 15913 printf %s "(cached) " >&6 15914else $as_nop 15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15916/* end confdefs.h. */ 15917int i; 15918_ACEOF 15919if ac_fn_c_try_compile "$LINENO" 15920then : 15921 xorg_cv_cc_flag_unused_command_line_argument=yes 15922else $as_nop 15923 xorg_cv_cc_flag_unused_command_line_argument=no 15924fi 15925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15926fi 15927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15930 CFLAGS="$xorg_testset_save_CFLAGS" 15931fi 15932 15933found="no" 15934 15935 if test $found = "no" ; then 15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15938 fi 15939 15940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15942 fi 15943 15944 CFLAGS="$CFLAGS -Werror=missing-braces" 15945 15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15947printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15948 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15949 if eval test \${$cacheid+y} 15950then : 15951 printf %s "(cached) " >&6 15952else $as_nop 15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15954/* end confdefs.h. */ 15955int i; 15956int 15957main (void) 15958{ 15959 15960 ; 15961 return 0; 15962} 15963_ACEOF 15964if ac_fn_c_try_link "$LINENO" 15965then : 15966 eval $cacheid=yes 15967else $as_nop 15968 eval $cacheid=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15971 conftest$ac_exeext conftest.$ac_ext 15972fi 15973 15974 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976 15977 eval supported=\$$cacheid 15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15979printf "%s\n" "$supported" >&6; } 15980 if test "$supported" = "yes" ; then 15981 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15982 found="yes" 15983 fi 15984 fi 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000xorg_testset_save_CFLAGS="$CFLAGS" 16001 16002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16005printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16006if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16007then : 16008 printf %s "(cached) " >&6 16009else $as_nop 16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16011/* end confdefs.h. */ 16012int i; 16013_ACEOF 16014if ac_fn_c_try_compile "$LINENO" 16015then : 16016 xorg_cv_cc_flag_unknown_warning_option=yes 16017else $as_nop 16018 xorg_cv_cc_flag_unknown_warning_option=no 16019fi 16020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16021fi 16022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16025 CFLAGS="$xorg_testset_save_CFLAGS" 16026fi 16027 16028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16031 fi 16032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16035if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16036then : 16037 printf %s "(cached) " >&6 16038else $as_nop 16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16040/* end confdefs.h. */ 16041int i; 16042_ACEOF 16043if ac_fn_c_try_compile "$LINENO" 16044then : 16045 xorg_cv_cc_flag_unused_command_line_argument=yes 16046else $as_nop 16047 xorg_cv_cc_flag_unused_command_line_argument=no 16048fi 16049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16050fi 16051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16052printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16054 CFLAGS="$xorg_testset_save_CFLAGS" 16055fi 16056 16057found="no" 16058 16059 if test $found = "no" ; then 16060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16062 fi 16063 16064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16066 fi 16067 16068 CFLAGS="$CFLAGS -Werror=sequence-point" 16069 16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16071printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16072 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16073 if eval test \${$cacheid+y} 16074then : 16075 printf %s "(cached) " >&6 16076else $as_nop 16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16078/* end confdefs.h. */ 16079int i; 16080int 16081main (void) 16082{ 16083 16084 ; 16085 return 0; 16086} 16087_ACEOF 16088if ac_fn_c_try_link "$LINENO" 16089then : 16090 eval $cacheid=yes 16091else $as_nop 16092 eval $cacheid=no 16093fi 16094rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16095 conftest$ac_exeext conftest.$ac_ext 16096fi 16097 16098 16099 CFLAGS="$xorg_testset_save_CFLAGS" 16100 16101 eval supported=\$$cacheid 16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16103printf "%s\n" "$supported" >&6; } 16104 if test "$supported" = "yes" ; then 16105 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16106 found="yes" 16107 fi 16108 fi 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124xorg_testset_save_CFLAGS="$CFLAGS" 16125 16126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16130if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16131then : 16132 printf %s "(cached) " >&6 16133else $as_nop 16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16135/* end confdefs.h. */ 16136int i; 16137_ACEOF 16138if ac_fn_c_try_compile "$LINENO" 16139then : 16140 xorg_cv_cc_flag_unknown_warning_option=yes 16141else $as_nop 16142 xorg_cv_cc_flag_unknown_warning_option=no 16143fi 16144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16145fi 16146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16149 CFLAGS="$xorg_testset_save_CFLAGS" 16150fi 16151 16152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16155 fi 16156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16159if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16160then : 16161 printf %s "(cached) " >&6 16162else $as_nop 16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16164/* end confdefs.h. */ 16165int i; 16166_ACEOF 16167if ac_fn_c_try_compile "$LINENO" 16168then : 16169 xorg_cv_cc_flag_unused_command_line_argument=yes 16170else $as_nop 16171 xorg_cv_cc_flag_unused_command_line_argument=no 16172fi 16173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16174fi 16175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16178 CFLAGS="$xorg_testset_save_CFLAGS" 16179fi 16180 16181found="no" 16182 16183 if test $found = "no" ; then 16184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16186 fi 16187 16188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16190 fi 16191 16192 CFLAGS="$CFLAGS -Werror=return-type" 16193 16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16195printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16196 cacheid=xorg_cv_cc_flag__Werror_return_type 16197 if eval test \${$cacheid+y} 16198then : 16199 printf %s "(cached) " >&6 16200else $as_nop 16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16202/* end confdefs.h. */ 16203int i; 16204int 16205main (void) 16206{ 16207 16208 ; 16209 return 0; 16210} 16211_ACEOF 16212if ac_fn_c_try_link "$LINENO" 16213then : 16214 eval $cacheid=yes 16215else $as_nop 16216 eval $cacheid=no 16217fi 16218rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16219 conftest$ac_exeext conftest.$ac_ext 16220fi 16221 16222 16223 CFLAGS="$xorg_testset_save_CFLAGS" 16224 16225 eval supported=\$$cacheid 16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16227printf "%s\n" "$supported" >&6; } 16228 if test "$supported" = "yes" ; then 16229 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16230 found="yes" 16231 fi 16232 fi 16233 16234 if test $found = "no" ; then 16235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16237 fi 16238 16239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16241 fi 16242 16243 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16244 16245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16246printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16247 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16248 if eval test \${$cacheid+y} 16249then : 16250 printf %s "(cached) " >&6 16251else $as_nop 16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16253/* end confdefs.h. */ 16254int i; 16255int 16256main (void) 16257{ 16258 16259 ; 16260 return 0; 16261} 16262_ACEOF 16263if ac_fn_c_try_link "$LINENO" 16264then : 16265 eval $cacheid=yes 16266else $as_nop 16267 eval $cacheid=no 16268fi 16269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16270 conftest$ac_exeext conftest.$ac_ext 16271fi 16272 16273 16274 CFLAGS="$xorg_testset_save_CFLAGS" 16275 16276 eval supported=\$$cacheid 16277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16278printf "%s\n" "$supported" >&6; } 16279 if test "$supported" = "yes" ; then 16280 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16281 found="yes" 16282 fi 16283 fi 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299xorg_testset_save_CFLAGS="$CFLAGS" 16300 16301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16304printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16305if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16306then : 16307 printf %s "(cached) " >&6 16308else $as_nop 16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310/* end confdefs.h. */ 16311int i; 16312_ACEOF 16313if ac_fn_c_try_compile "$LINENO" 16314then : 16315 xorg_cv_cc_flag_unknown_warning_option=yes 16316else $as_nop 16317 xorg_cv_cc_flag_unknown_warning_option=no 16318fi 16319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16320fi 16321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16322printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16324 CFLAGS="$xorg_testset_save_CFLAGS" 16325fi 16326 16327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16330 fi 16331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16333printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16334if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16335then : 16336 printf %s "(cached) " >&6 16337else $as_nop 16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339/* end confdefs.h. */ 16340int i; 16341_ACEOF 16342if ac_fn_c_try_compile "$LINENO" 16343then : 16344 xorg_cv_cc_flag_unused_command_line_argument=yes 16345else $as_nop 16346 xorg_cv_cc_flag_unused_command_line_argument=no 16347fi 16348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16349fi 16350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16351printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16353 CFLAGS="$xorg_testset_save_CFLAGS" 16354fi 16355 16356found="no" 16357 16358 if test $found = "no" ; then 16359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16361 fi 16362 16363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16365 fi 16366 16367 CFLAGS="$CFLAGS -Werror=trigraphs" 16368 16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16370printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16371 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16372 if eval test \${$cacheid+y} 16373then : 16374 printf %s "(cached) " >&6 16375else $as_nop 16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16377/* end confdefs.h. */ 16378int i; 16379int 16380main (void) 16381{ 16382 16383 ; 16384 return 0; 16385} 16386_ACEOF 16387if ac_fn_c_try_link "$LINENO" 16388then : 16389 eval $cacheid=yes 16390else $as_nop 16391 eval $cacheid=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16394 conftest$ac_exeext conftest.$ac_ext 16395fi 16396 16397 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399 16400 eval supported=\$$cacheid 16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16402printf "%s\n" "$supported" >&6; } 16403 if test "$supported" = "yes" ; then 16404 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16405 found="yes" 16406 fi 16407 fi 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423xorg_testset_save_CFLAGS="$CFLAGS" 16424 16425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16428printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16429if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16430then : 16431 printf %s "(cached) " >&6 16432else $as_nop 16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16434/* end confdefs.h. */ 16435int i; 16436_ACEOF 16437if ac_fn_c_try_compile "$LINENO" 16438then : 16439 xorg_cv_cc_flag_unknown_warning_option=yes 16440else $as_nop 16441 xorg_cv_cc_flag_unknown_warning_option=no 16442fi 16443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16444fi 16445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16448 CFLAGS="$xorg_testset_save_CFLAGS" 16449fi 16450 16451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16454 fi 16455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16458if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16459then : 16460 printf %s "(cached) " >&6 16461else $as_nop 16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463/* end confdefs.h. */ 16464int i; 16465_ACEOF 16466if ac_fn_c_try_compile "$LINENO" 16467then : 16468 xorg_cv_cc_flag_unused_command_line_argument=yes 16469else $as_nop 16470 xorg_cv_cc_flag_unused_command_line_argument=no 16471fi 16472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16473fi 16474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16477 CFLAGS="$xorg_testset_save_CFLAGS" 16478fi 16479 16480found="no" 16481 16482 if test $found = "no" ; then 16483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16485 fi 16486 16487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16489 fi 16490 16491 CFLAGS="$CFLAGS -Werror=array-bounds" 16492 16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16494printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16495 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16496 if eval test \${$cacheid+y} 16497then : 16498 printf %s "(cached) " >&6 16499else $as_nop 16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16501/* end confdefs.h. */ 16502int i; 16503int 16504main (void) 16505{ 16506 16507 ; 16508 return 0; 16509} 16510_ACEOF 16511if ac_fn_c_try_link "$LINENO" 16512then : 16513 eval $cacheid=yes 16514else $as_nop 16515 eval $cacheid=no 16516fi 16517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16518 conftest$ac_exeext conftest.$ac_ext 16519fi 16520 16521 16522 CFLAGS="$xorg_testset_save_CFLAGS" 16523 16524 eval supported=\$$cacheid 16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16526printf "%s\n" "$supported" >&6; } 16527 if test "$supported" = "yes" ; then 16528 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16529 found="yes" 16530 fi 16531 fi 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547xorg_testset_save_CFLAGS="$CFLAGS" 16548 16549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16553if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16554then : 16555 printf %s "(cached) " >&6 16556else $as_nop 16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16558/* end confdefs.h. */ 16559int i; 16560_ACEOF 16561if ac_fn_c_try_compile "$LINENO" 16562then : 16563 xorg_cv_cc_flag_unknown_warning_option=yes 16564else $as_nop 16565 xorg_cv_cc_flag_unknown_warning_option=no 16566fi 16567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16568fi 16569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16572 CFLAGS="$xorg_testset_save_CFLAGS" 16573fi 16574 16575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16578 fi 16579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16583then : 16584 printf %s "(cached) " >&6 16585else $as_nop 16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16587/* end confdefs.h. */ 16588int i; 16589_ACEOF 16590if ac_fn_c_try_compile "$LINENO" 16591then : 16592 xorg_cv_cc_flag_unused_command_line_argument=yes 16593else $as_nop 16594 xorg_cv_cc_flag_unused_command_line_argument=no 16595fi 16596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16597fi 16598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16599printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16601 CFLAGS="$xorg_testset_save_CFLAGS" 16602fi 16603 16604found="no" 16605 16606 if test $found = "no" ; then 16607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16609 fi 16610 16611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16613 fi 16614 16615 CFLAGS="$CFLAGS -Werror=write-strings" 16616 16617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16618printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16619 cacheid=xorg_cv_cc_flag__Werror_write_strings 16620 if eval test \${$cacheid+y} 16621then : 16622 printf %s "(cached) " >&6 16623else $as_nop 16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16625/* end confdefs.h. */ 16626int i; 16627int 16628main (void) 16629{ 16630 16631 ; 16632 return 0; 16633} 16634_ACEOF 16635if ac_fn_c_try_link "$LINENO" 16636then : 16637 eval $cacheid=yes 16638else $as_nop 16639 eval $cacheid=no 16640fi 16641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16642 conftest$ac_exeext conftest.$ac_ext 16643fi 16644 16645 16646 CFLAGS="$xorg_testset_save_CFLAGS" 16647 16648 eval supported=\$$cacheid 16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16650printf "%s\n" "$supported" >&6; } 16651 if test "$supported" = "yes" ; then 16652 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16653 found="yes" 16654 fi 16655 fi 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671xorg_testset_save_CFLAGS="$CFLAGS" 16672 16673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16677if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16678then : 16679 printf %s "(cached) " >&6 16680else $as_nop 16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682/* end confdefs.h. */ 16683int i; 16684_ACEOF 16685if ac_fn_c_try_compile "$LINENO" 16686then : 16687 xorg_cv_cc_flag_unknown_warning_option=yes 16688else $as_nop 16689 xorg_cv_cc_flag_unknown_warning_option=no 16690fi 16691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16692fi 16693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16696 CFLAGS="$xorg_testset_save_CFLAGS" 16697fi 16698 16699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16702 fi 16703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16707then : 16708 printf %s "(cached) " >&6 16709else $as_nop 16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711/* end confdefs.h. */ 16712int i; 16713_ACEOF 16714if ac_fn_c_try_compile "$LINENO" 16715then : 16716 xorg_cv_cc_flag_unused_command_line_argument=yes 16717else $as_nop 16718 xorg_cv_cc_flag_unused_command_line_argument=no 16719fi 16720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16721fi 16722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16725 CFLAGS="$xorg_testset_save_CFLAGS" 16726fi 16727 16728found="no" 16729 16730 if test $found = "no" ; then 16731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 fi 16734 16735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16737 fi 16738 16739 CFLAGS="$CFLAGS -Werror=address" 16740 16741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16742printf %s "checking if $CC supports -Werror=address... " >&6; } 16743 cacheid=xorg_cv_cc_flag__Werror_address 16744 if eval test \${$cacheid+y} 16745then : 16746 printf %s "(cached) " >&6 16747else $as_nop 16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16749/* end confdefs.h. */ 16750int i; 16751int 16752main (void) 16753{ 16754 16755 ; 16756 return 0; 16757} 16758_ACEOF 16759if ac_fn_c_try_link "$LINENO" 16760then : 16761 eval $cacheid=yes 16762else $as_nop 16763 eval $cacheid=no 16764fi 16765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16766 conftest$ac_exeext conftest.$ac_ext 16767fi 16768 16769 16770 CFLAGS="$xorg_testset_save_CFLAGS" 16771 16772 eval supported=\$$cacheid 16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16774printf "%s\n" "$supported" >&6; } 16775 if test "$supported" = "yes" ; then 16776 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16777 found="yes" 16778 fi 16779 fi 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795xorg_testset_save_CFLAGS="$CFLAGS" 16796 16797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16802then : 16803 printf %s "(cached) " >&6 16804else $as_nop 16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16806/* end confdefs.h. */ 16807int i; 16808_ACEOF 16809if ac_fn_c_try_compile "$LINENO" 16810then : 16811 xorg_cv_cc_flag_unknown_warning_option=yes 16812else $as_nop 16813 xorg_cv_cc_flag_unknown_warning_option=no 16814fi 16815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16816fi 16817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16820 CFLAGS="$xorg_testset_save_CFLAGS" 16821fi 16822 16823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16826 fi 16827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16830if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16831then : 16832 printf %s "(cached) " >&6 16833else $as_nop 16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16835/* end confdefs.h. */ 16836int i; 16837_ACEOF 16838if ac_fn_c_try_compile "$LINENO" 16839then : 16840 xorg_cv_cc_flag_unused_command_line_argument=yes 16841else $as_nop 16842 xorg_cv_cc_flag_unused_command_line_argument=no 16843fi 16844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16845fi 16846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16849 CFLAGS="$xorg_testset_save_CFLAGS" 16850fi 16851 16852found="no" 16853 16854 if test $found = "no" ; then 16855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16857 fi 16858 16859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16861 fi 16862 16863 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16864 16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16866printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16867 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16868 if eval test \${$cacheid+y} 16869then : 16870 printf %s "(cached) " >&6 16871else $as_nop 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873/* end confdefs.h. */ 16874int i; 16875int 16876main (void) 16877{ 16878 16879 ; 16880 return 0; 16881} 16882_ACEOF 16883if ac_fn_c_try_link "$LINENO" 16884then : 16885 eval $cacheid=yes 16886else $as_nop 16887 eval $cacheid=no 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16890 conftest$ac_exeext conftest.$ac_ext 16891fi 16892 16893 16894 CFLAGS="$xorg_testset_save_CFLAGS" 16895 16896 eval supported=\$$cacheid 16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16898printf "%s\n" "$supported" >&6; } 16899 if test "$supported" = "yes" ; then 16900 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16901 found="yes" 16902 fi 16903 fi 16904 16905 if test $found = "no" ; then 16906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16908 fi 16909 16910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16912 fi 16913 16914 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16915 16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16917printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16918 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16919 if eval test \${$cacheid+y} 16920then : 16921 printf %s "(cached) " >&6 16922else $as_nop 16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16924/* end confdefs.h. */ 16925int i; 16926int 16927main (void) 16928{ 16929 16930 ; 16931 return 0; 16932} 16933_ACEOF 16934if ac_fn_c_try_link "$LINENO" 16935then : 16936 eval $cacheid=yes 16937else $as_nop 16938 eval $cacheid=no 16939fi 16940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16941 conftest$ac_exeext conftest.$ac_ext 16942fi 16943 16944 16945 CFLAGS="$xorg_testset_save_CFLAGS" 16946 16947 eval supported=\$$cacheid 16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16949printf "%s\n" "$supported" >&6; } 16950 if test "$supported" = "yes" ; then 16951 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16952 found="yes" 16953 fi 16954 fi 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970xorg_testset_save_CFLAGS="$CFLAGS" 16971 16972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16976if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16977then : 16978 printf %s "(cached) " >&6 16979else $as_nop 16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16981/* end confdefs.h. */ 16982int i; 16983_ACEOF 16984if ac_fn_c_try_compile "$LINENO" 16985then : 16986 xorg_cv_cc_flag_unknown_warning_option=yes 16987else $as_nop 16988 xorg_cv_cc_flag_unknown_warning_option=no 16989fi 16990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16991fi 16992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16995 CFLAGS="$xorg_testset_save_CFLAGS" 16996fi 16997 16998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17006then : 17007 printf %s "(cached) " >&6 17008else $as_nop 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010/* end confdefs.h. */ 17011int i; 17012_ACEOF 17013if ac_fn_c_try_compile "$LINENO" 17014then : 17015 xorg_cv_cc_flag_unused_command_line_argument=yes 17016else $as_nop 17017 xorg_cv_cc_flag_unused_command_line_argument=no 17018fi 17019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17020fi 17021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17024 CFLAGS="$xorg_testset_save_CFLAGS" 17025fi 17026 17027found="no" 17028 17029 if test $found = "no" ; then 17030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17032 fi 17033 17034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17036 fi 17037 17038 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17039 17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17041printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17042 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17043 if eval test \${$cacheid+y} 17044then : 17045 printf %s "(cached) " >&6 17046else $as_nop 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049int i; 17050int 17051main (void) 17052{ 17053 17054 ; 17055 return 0; 17056} 17057_ACEOF 17058if ac_fn_c_try_link "$LINENO" 17059then : 17060 eval $cacheid=yes 17061else $as_nop 17062 eval $cacheid=no 17063fi 17064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17065 conftest$ac_exeext conftest.$ac_ext 17066fi 17067 17068 17069 CFLAGS="$xorg_testset_save_CFLAGS" 17070 17071 eval supported=\$$cacheid 17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17073printf "%s\n" "$supported" >&6; } 17074 if test "$supported" = "yes" ; then 17075 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17076 found="yes" 17077 fi 17078 fi 17079 17080 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17081else 17082{ 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 17083printf "%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;} 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097xorg_testset_save_CFLAGS="$CFLAGS" 17098 17099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17103if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17104then : 17105 printf %s "(cached) " >&6 17106else $as_nop 17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17108/* end confdefs.h. */ 17109int i; 17110_ACEOF 17111if ac_fn_c_try_compile "$LINENO" 17112then : 17113 xorg_cv_cc_flag_unknown_warning_option=yes 17114else $as_nop 17115 xorg_cv_cc_flag_unknown_warning_option=no 17116fi 17117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17118fi 17119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17122 CFLAGS="$xorg_testset_save_CFLAGS" 17123fi 17124 17125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17128 fi 17129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17132if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17133then : 17134 printf %s "(cached) " >&6 17135else $as_nop 17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17137/* end confdefs.h. */ 17138int i; 17139_ACEOF 17140if ac_fn_c_try_compile "$LINENO" 17141then : 17142 xorg_cv_cc_flag_unused_command_line_argument=yes 17143else $as_nop 17144 xorg_cv_cc_flag_unused_command_line_argument=no 17145fi 17146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17147fi 17148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17151 CFLAGS="$xorg_testset_save_CFLAGS" 17152fi 17153 17154found="no" 17155 17156 if test $found = "no" ; then 17157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17159 fi 17160 17161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17163 fi 17164 17165 CFLAGS="$CFLAGS -Wimplicit" 17166 17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17168printf %s "checking if $CC supports -Wimplicit... " >&6; } 17169 cacheid=xorg_cv_cc_flag__Wimplicit 17170 if eval test \${$cacheid+y} 17171then : 17172 printf %s "(cached) " >&6 17173else $as_nop 17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17175/* end confdefs.h. */ 17176int i; 17177int 17178main (void) 17179{ 17180 17181 ; 17182 return 0; 17183} 17184_ACEOF 17185if ac_fn_c_try_link "$LINENO" 17186then : 17187 eval $cacheid=yes 17188else $as_nop 17189 eval $cacheid=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17192 conftest$ac_exeext conftest.$ac_ext 17193fi 17194 17195 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197 17198 eval supported=\$$cacheid 17199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17200printf "%s\n" "$supported" >&6; } 17201 if test "$supported" = "yes" ; then 17202 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17203 found="yes" 17204 fi 17205 fi 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221xorg_testset_save_CFLAGS="$CFLAGS" 17222 17223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17227if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17228then : 17229 printf %s "(cached) " >&6 17230else $as_nop 17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17232/* end confdefs.h. */ 17233int i; 17234_ACEOF 17235if ac_fn_c_try_compile "$LINENO" 17236then : 17237 xorg_cv_cc_flag_unknown_warning_option=yes 17238else $as_nop 17239 xorg_cv_cc_flag_unknown_warning_option=no 17240fi 17241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17242fi 17243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17246 CFLAGS="$xorg_testset_save_CFLAGS" 17247fi 17248 17249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17252 fi 17253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17257then : 17258 printf %s "(cached) " >&6 17259else $as_nop 17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17261/* end confdefs.h. */ 17262int i; 17263_ACEOF 17264if ac_fn_c_try_compile "$LINENO" 17265then : 17266 xorg_cv_cc_flag_unused_command_line_argument=yes 17267else $as_nop 17268 xorg_cv_cc_flag_unused_command_line_argument=no 17269fi 17270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17271fi 17272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17275 CFLAGS="$xorg_testset_save_CFLAGS" 17276fi 17277 17278found="no" 17279 17280 if test $found = "no" ; then 17281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17283 fi 17284 17285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17287 fi 17288 17289 CFLAGS="$CFLAGS -Wnonnull" 17290 17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17292printf %s "checking if $CC supports -Wnonnull... " >&6; } 17293 cacheid=xorg_cv_cc_flag__Wnonnull 17294 if eval test \${$cacheid+y} 17295then : 17296 printf %s "(cached) " >&6 17297else $as_nop 17298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17299/* end confdefs.h. */ 17300int i; 17301int 17302main (void) 17303{ 17304 17305 ; 17306 return 0; 17307} 17308_ACEOF 17309if ac_fn_c_try_link "$LINENO" 17310then : 17311 eval $cacheid=yes 17312else $as_nop 17313 eval $cacheid=no 17314fi 17315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17316 conftest$ac_exeext conftest.$ac_ext 17317fi 17318 17319 17320 CFLAGS="$xorg_testset_save_CFLAGS" 17321 17322 eval supported=\$$cacheid 17323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17324printf "%s\n" "$supported" >&6; } 17325 if test "$supported" = "yes" ; then 17326 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17327 found="yes" 17328 fi 17329 fi 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345xorg_testset_save_CFLAGS="$CFLAGS" 17346 17347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17351if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17352then : 17353 printf %s "(cached) " >&6 17354else $as_nop 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358_ACEOF 17359if ac_fn_c_try_compile "$LINENO" 17360then : 17361 xorg_cv_cc_flag_unknown_warning_option=yes 17362else $as_nop 17363 xorg_cv_cc_flag_unknown_warning_option=no 17364fi 17365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17366fi 17367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17370 CFLAGS="$xorg_testset_save_CFLAGS" 17371fi 17372 17373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17376 fi 17377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17380if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17381then : 17382 printf %s "(cached) " >&6 17383else $as_nop 17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17385/* end confdefs.h. */ 17386int i; 17387_ACEOF 17388if ac_fn_c_try_compile "$LINENO" 17389then : 17390 xorg_cv_cc_flag_unused_command_line_argument=yes 17391else $as_nop 17392 xorg_cv_cc_flag_unused_command_line_argument=no 17393fi 17394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17395fi 17396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17399 CFLAGS="$xorg_testset_save_CFLAGS" 17400fi 17401 17402found="no" 17403 17404 if test $found = "no" ; then 17405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17407 fi 17408 17409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17411 fi 17412 17413 CFLAGS="$CFLAGS -Winit-self" 17414 17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17416printf %s "checking if $CC supports -Winit-self... " >&6; } 17417 cacheid=xorg_cv_cc_flag__Winit_self 17418 if eval test \${$cacheid+y} 17419then : 17420 printf %s "(cached) " >&6 17421else $as_nop 17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17423/* end confdefs.h. */ 17424int i; 17425int 17426main (void) 17427{ 17428 17429 ; 17430 return 0; 17431} 17432_ACEOF 17433if ac_fn_c_try_link "$LINENO" 17434then : 17435 eval $cacheid=yes 17436else $as_nop 17437 eval $cacheid=no 17438fi 17439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17440 conftest$ac_exeext conftest.$ac_ext 17441fi 17442 17443 17444 CFLAGS="$xorg_testset_save_CFLAGS" 17445 17446 eval supported=\$$cacheid 17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17448printf "%s\n" "$supported" >&6; } 17449 if test "$supported" = "yes" ; then 17450 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17451 found="yes" 17452 fi 17453 fi 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469xorg_testset_save_CFLAGS="$CFLAGS" 17470 17471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17475if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17476then : 17477 printf %s "(cached) " >&6 17478else $as_nop 17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17480/* end confdefs.h. */ 17481int i; 17482_ACEOF 17483if ac_fn_c_try_compile "$LINENO" 17484then : 17485 xorg_cv_cc_flag_unknown_warning_option=yes 17486else $as_nop 17487 xorg_cv_cc_flag_unknown_warning_option=no 17488fi 17489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17490fi 17491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17494 CFLAGS="$xorg_testset_save_CFLAGS" 17495fi 17496 17497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17500 fi 17501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17504if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17505then : 17506 printf %s "(cached) " >&6 17507else $as_nop 17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17509/* end confdefs.h. */ 17510int i; 17511_ACEOF 17512if ac_fn_c_try_compile "$LINENO" 17513then : 17514 xorg_cv_cc_flag_unused_command_line_argument=yes 17515else $as_nop 17516 xorg_cv_cc_flag_unused_command_line_argument=no 17517fi 17518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17519fi 17520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17523 CFLAGS="$xorg_testset_save_CFLAGS" 17524fi 17525 17526found="no" 17527 17528 if test $found = "no" ; then 17529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17531 fi 17532 17533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17535 fi 17536 17537 CFLAGS="$CFLAGS -Wmain" 17538 17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17540printf %s "checking if $CC supports -Wmain... " >&6; } 17541 cacheid=xorg_cv_cc_flag__Wmain 17542 if eval test \${$cacheid+y} 17543then : 17544 printf %s "(cached) " >&6 17545else $as_nop 17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17547/* end confdefs.h. */ 17548int i; 17549int 17550main (void) 17551{ 17552 17553 ; 17554 return 0; 17555} 17556_ACEOF 17557if ac_fn_c_try_link "$LINENO" 17558then : 17559 eval $cacheid=yes 17560else $as_nop 17561 eval $cacheid=no 17562fi 17563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17564 conftest$ac_exeext conftest.$ac_ext 17565fi 17566 17567 17568 CFLAGS="$xorg_testset_save_CFLAGS" 17569 17570 eval supported=\$$cacheid 17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17572printf "%s\n" "$supported" >&6; } 17573 if test "$supported" = "yes" ; then 17574 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17575 found="yes" 17576 fi 17577 fi 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593xorg_testset_save_CFLAGS="$CFLAGS" 17594 17595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17598printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17599if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17600then : 17601 printf %s "(cached) " >&6 17602else $as_nop 17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17604/* end confdefs.h. */ 17605int i; 17606_ACEOF 17607if ac_fn_c_try_compile "$LINENO" 17608then : 17609 xorg_cv_cc_flag_unknown_warning_option=yes 17610else $as_nop 17611 xorg_cv_cc_flag_unknown_warning_option=no 17612fi 17613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17614fi 17615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17618 CFLAGS="$xorg_testset_save_CFLAGS" 17619fi 17620 17621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17624 fi 17625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17628if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17629then : 17630 printf %s "(cached) " >&6 17631else $as_nop 17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17633/* end confdefs.h. */ 17634int i; 17635_ACEOF 17636if ac_fn_c_try_compile "$LINENO" 17637then : 17638 xorg_cv_cc_flag_unused_command_line_argument=yes 17639else $as_nop 17640 xorg_cv_cc_flag_unused_command_line_argument=no 17641fi 17642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17643fi 17644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17647 CFLAGS="$xorg_testset_save_CFLAGS" 17648fi 17649 17650found="no" 17651 17652 if test $found = "no" ; then 17653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17655 fi 17656 17657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17659 fi 17660 17661 CFLAGS="$CFLAGS -Wmissing-braces" 17662 17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17664printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17665 cacheid=xorg_cv_cc_flag__Wmissing_braces 17666 if eval test \${$cacheid+y} 17667then : 17668 printf %s "(cached) " >&6 17669else $as_nop 17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17671/* end confdefs.h. */ 17672int i; 17673int 17674main (void) 17675{ 17676 17677 ; 17678 return 0; 17679} 17680_ACEOF 17681if ac_fn_c_try_link "$LINENO" 17682then : 17683 eval $cacheid=yes 17684else $as_nop 17685 eval $cacheid=no 17686fi 17687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17688 conftest$ac_exeext conftest.$ac_ext 17689fi 17690 17691 17692 CFLAGS="$xorg_testset_save_CFLAGS" 17693 17694 eval supported=\$$cacheid 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17696printf "%s\n" "$supported" >&6; } 17697 if test "$supported" = "yes" ; then 17698 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17699 found="yes" 17700 fi 17701 fi 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717xorg_testset_save_CFLAGS="$CFLAGS" 17718 17719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17724then : 17725 printf %s "(cached) " >&6 17726else $as_nop 17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17728/* end confdefs.h. */ 17729int i; 17730_ACEOF 17731if ac_fn_c_try_compile "$LINENO" 17732then : 17733 xorg_cv_cc_flag_unknown_warning_option=yes 17734else $as_nop 17735 xorg_cv_cc_flag_unknown_warning_option=no 17736fi 17737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17738fi 17739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17742 CFLAGS="$xorg_testset_save_CFLAGS" 17743fi 17744 17745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17748 fi 17749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17752if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17753then : 17754 printf %s "(cached) " >&6 17755else $as_nop 17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758int i; 17759_ACEOF 17760if ac_fn_c_try_compile "$LINENO" 17761then : 17762 xorg_cv_cc_flag_unused_command_line_argument=yes 17763else $as_nop 17764 xorg_cv_cc_flag_unused_command_line_argument=no 17765fi 17766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17767fi 17768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17771 CFLAGS="$xorg_testset_save_CFLAGS" 17772fi 17773 17774found="no" 17775 17776 if test $found = "no" ; then 17777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17779 fi 17780 17781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17783 fi 17784 17785 CFLAGS="$CFLAGS -Wsequence-point" 17786 17787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17788printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17789 cacheid=xorg_cv_cc_flag__Wsequence_point 17790 if eval test \${$cacheid+y} 17791then : 17792 printf %s "(cached) " >&6 17793else $as_nop 17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17795/* end confdefs.h. */ 17796int i; 17797int 17798main (void) 17799{ 17800 17801 ; 17802 return 0; 17803} 17804_ACEOF 17805if ac_fn_c_try_link "$LINENO" 17806then : 17807 eval $cacheid=yes 17808else $as_nop 17809 eval $cacheid=no 17810fi 17811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17812 conftest$ac_exeext conftest.$ac_ext 17813fi 17814 17815 17816 CFLAGS="$xorg_testset_save_CFLAGS" 17817 17818 eval supported=\$$cacheid 17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17820printf "%s\n" "$supported" >&6; } 17821 if test "$supported" = "yes" ; then 17822 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17823 found="yes" 17824 fi 17825 fi 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841xorg_testset_save_CFLAGS="$CFLAGS" 17842 17843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17846printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17847if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17848then : 17849 printf %s "(cached) " >&6 17850else $as_nop 17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17852/* end confdefs.h. */ 17853int i; 17854_ACEOF 17855if ac_fn_c_try_compile "$LINENO" 17856then : 17857 xorg_cv_cc_flag_unknown_warning_option=yes 17858else $as_nop 17859 xorg_cv_cc_flag_unknown_warning_option=no 17860fi 17861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17862fi 17863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17866 CFLAGS="$xorg_testset_save_CFLAGS" 17867fi 17868 17869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17872 fi 17873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17877then : 17878 printf %s "(cached) " >&6 17879else $as_nop 17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17881/* end confdefs.h. */ 17882int i; 17883_ACEOF 17884if ac_fn_c_try_compile "$LINENO" 17885then : 17886 xorg_cv_cc_flag_unused_command_line_argument=yes 17887else $as_nop 17888 xorg_cv_cc_flag_unused_command_line_argument=no 17889fi 17890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17891fi 17892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17895 CFLAGS="$xorg_testset_save_CFLAGS" 17896fi 17897 17898found="no" 17899 17900 if test $found = "no" ; then 17901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17903 fi 17904 17905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17907 fi 17908 17909 CFLAGS="$CFLAGS -Wreturn-type" 17910 17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17912printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17913 cacheid=xorg_cv_cc_flag__Wreturn_type 17914 if eval test \${$cacheid+y} 17915then : 17916 printf %s "(cached) " >&6 17917else $as_nop 17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17919/* end confdefs.h. */ 17920int i; 17921int 17922main (void) 17923{ 17924 17925 ; 17926 return 0; 17927} 17928_ACEOF 17929if ac_fn_c_try_link "$LINENO" 17930then : 17931 eval $cacheid=yes 17932else $as_nop 17933 eval $cacheid=no 17934fi 17935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17936 conftest$ac_exeext conftest.$ac_ext 17937fi 17938 17939 17940 CFLAGS="$xorg_testset_save_CFLAGS" 17941 17942 eval supported=\$$cacheid 17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17944printf "%s\n" "$supported" >&6; } 17945 if test "$supported" = "yes" ; then 17946 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17947 found="yes" 17948 fi 17949 fi 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965xorg_testset_save_CFLAGS="$CFLAGS" 17966 17967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17970printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17971if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17972then : 17973 printf %s "(cached) " >&6 17974else $as_nop 17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17976/* end confdefs.h. */ 17977int i; 17978_ACEOF 17979if ac_fn_c_try_compile "$LINENO" 17980then : 17981 xorg_cv_cc_flag_unknown_warning_option=yes 17982else $as_nop 17983 xorg_cv_cc_flag_unknown_warning_option=no 17984fi 17985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17986fi 17987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17988printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17990 CFLAGS="$xorg_testset_save_CFLAGS" 17991fi 17992 17993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17996 fi 17997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17999printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18000if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18001then : 18002 printf %s "(cached) " >&6 18003else $as_nop 18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005/* end confdefs.h. */ 18006int i; 18007_ACEOF 18008if ac_fn_c_try_compile "$LINENO" 18009then : 18010 xorg_cv_cc_flag_unused_command_line_argument=yes 18011else $as_nop 18012 xorg_cv_cc_flag_unused_command_line_argument=no 18013fi 18014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18015fi 18016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18017printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18019 CFLAGS="$xorg_testset_save_CFLAGS" 18020fi 18021 18022found="no" 18023 18024 if test $found = "no" ; then 18025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18027 fi 18028 18029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18031 fi 18032 18033 CFLAGS="$CFLAGS -Wtrigraphs" 18034 18035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18036printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18037 cacheid=xorg_cv_cc_flag__Wtrigraphs 18038 if eval test \${$cacheid+y} 18039then : 18040 printf %s "(cached) " >&6 18041else $as_nop 18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18043/* end confdefs.h. */ 18044int i; 18045int 18046main (void) 18047{ 18048 18049 ; 18050 return 0; 18051} 18052_ACEOF 18053if ac_fn_c_try_link "$LINENO" 18054then : 18055 eval $cacheid=yes 18056else $as_nop 18057 eval $cacheid=no 18058fi 18059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18060 conftest$ac_exeext conftest.$ac_ext 18061fi 18062 18063 18064 CFLAGS="$xorg_testset_save_CFLAGS" 18065 18066 eval supported=\$$cacheid 18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18068printf "%s\n" "$supported" >&6; } 18069 if test "$supported" = "yes" ; then 18070 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18071 found="yes" 18072 fi 18073 fi 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089xorg_testset_save_CFLAGS="$CFLAGS" 18090 18091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18094printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18095if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18096then : 18097 printf %s "(cached) " >&6 18098else $as_nop 18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18100/* end confdefs.h. */ 18101int i; 18102_ACEOF 18103if ac_fn_c_try_compile "$LINENO" 18104then : 18105 xorg_cv_cc_flag_unknown_warning_option=yes 18106else $as_nop 18107 xorg_cv_cc_flag_unknown_warning_option=no 18108fi 18109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18110fi 18111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18112printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18114 CFLAGS="$xorg_testset_save_CFLAGS" 18115fi 18116 18117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18120 fi 18121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18123printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18124if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18125then : 18126 printf %s "(cached) " >&6 18127else $as_nop 18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18129/* end confdefs.h. */ 18130int i; 18131_ACEOF 18132if ac_fn_c_try_compile "$LINENO" 18133then : 18134 xorg_cv_cc_flag_unused_command_line_argument=yes 18135else $as_nop 18136 xorg_cv_cc_flag_unused_command_line_argument=no 18137fi 18138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18139fi 18140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18143 CFLAGS="$xorg_testset_save_CFLAGS" 18144fi 18145 18146found="no" 18147 18148 if test $found = "no" ; then 18149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18151 fi 18152 18153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18155 fi 18156 18157 CFLAGS="$CFLAGS -Warray-bounds" 18158 18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18160printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18161 cacheid=xorg_cv_cc_flag__Warray_bounds 18162 if eval test \${$cacheid+y} 18163then : 18164 printf %s "(cached) " >&6 18165else $as_nop 18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18167/* end confdefs.h. */ 18168int i; 18169int 18170main (void) 18171{ 18172 18173 ; 18174 return 0; 18175} 18176_ACEOF 18177if ac_fn_c_try_link "$LINENO" 18178then : 18179 eval $cacheid=yes 18180else $as_nop 18181 eval $cacheid=no 18182fi 18183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18184 conftest$ac_exeext conftest.$ac_ext 18185fi 18186 18187 18188 CFLAGS="$xorg_testset_save_CFLAGS" 18189 18190 eval supported=\$$cacheid 18191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18192printf "%s\n" "$supported" >&6; } 18193 if test "$supported" = "yes" ; then 18194 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18195 found="yes" 18196 fi 18197 fi 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213xorg_testset_save_CFLAGS="$CFLAGS" 18214 18215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18219if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18220then : 18221 printf %s "(cached) " >&6 18222else $as_nop 18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18224/* end confdefs.h. */ 18225int i; 18226_ACEOF 18227if ac_fn_c_try_compile "$LINENO" 18228then : 18229 xorg_cv_cc_flag_unknown_warning_option=yes 18230else $as_nop 18231 xorg_cv_cc_flag_unknown_warning_option=no 18232fi 18233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18234fi 18235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18238 CFLAGS="$xorg_testset_save_CFLAGS" 18239fi 18240 18241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18244 fi 18245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18248if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18249then : 18250 printf %s "(cached) " >&6 18251else $as_nop 18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18253/* end confdefs.h. */ 18254int i; 18255_ACEOF 18256if ac_fn_c_try_compile "$LINENO" 18257then : 18258 xorg_cv_cc_flag_unused_command_line_argument=yes 18259else $as_nop 18260 xorg_cv_cc_flag_unused_command_line_argument=no 18261fi 18262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18263fi 18264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18267 CFLAGS="$xorg_testset_save_CFLAGS" 18268fi 18269 18270found="no" 18271 18272 if test $found = "no" ; then 18273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18275 fi 18276 18277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18279 fi 18280 18281 CFLAGS="$CFLAGS -Wwrite-strings" 18282 18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18284printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18285 cacheid=xorg_cv_cc_flag__Wwrite_strings 18286 if eval test \${$cacheid+y} 18287then : 18288 printf %s "(cached) " >&6 18289else $as_nop 18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18291/* end confdefs.h. */ 18292int i; 18293int 18294main (void) 18295{ 18296 18297 ; 18298 return 0; 18299} 18300_ACEOF 18301if ac_fn_c_try_link "$LINENO" 18302then : 18303 eval $cacheid=yes 18304else $as_nop 18305 eval $cacheid=no 18306fi 18307rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18308 conftest$ac_exeext conftest.$ac_ext 18309fi 18310 18311 18312 CFLAGS="$xorg_testset_save_CFLAGS" 18313 18314 eval supported=\$$cacheid 18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18316printf "%s\n" "$supported" >&6; } 18317 if test "$supported" = "yes" ; then 18318 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18319 found="yes" 18320 fi 18321 fi 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337xorg_testset_save_CFLAGS="$CFLAGS" 18338 18339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18343if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18344then : 18345 printf %s "(cached) " >&6 18346else $as_nop 18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18348/* end confdefs.h. */ 18349int i; 18350_ACEOF 18351if ac_fn_c_try_compile "$LINENO" 18352then : 18353 xorg_cv_cc_flag_unknown_warning_option=yes 18354else $as_nop 18355 xorg_cv_cc_flag_unknown_warning_option=no 18356fi 18357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18358fi 18359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18362 CFLAGS="$xorg_testset_save_CFLAGS" 18363fi 18364 18365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18368 fi 18369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18372if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18373then : 18374 printf %s "(cached) " >&6 18375else $as_nop 18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18377/* end confdefs.h. */ 18378int i; 18379_ACEOF 18380if ac_fn_c_try_compile "$LINENO" 18381then : 18382 xorg_cv_cc_flag_unused_command_line_argument=yes 18383else $as_nop 18384 xorg_cv_cc_flag_unused_command_line_argument=no 18385fi 18386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18387fi 18388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18391 CFLAGS="$xorg_testset_save_CFLAGS" 18392fi 18393 18394found="no" 18395 18396 if test $found = "no" ; then 18397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18399 fi 18400 18401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18403 fi 18404 18405 CFLAGS="$CFLAGS -Waddress" 18406 18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18408printf %s "checking if $CC supports -Waddress... " >&6; } 18409 cacheid=xorg_cv_cc_flag__Waddress 18410 if eval test \${$cacheid+y} 18411then : 18412 printf %s "(cached) " >&6 18413else $as_nop 18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18415/* end confdefs.h. */ 18416int i; 18417int 18418main (void) 18419{ 18420 18421 ; 18422 return 0; 18423} 18424_ACEOF 18425if ac_fn_c_try_link "$LINENO" 18426then : 18427 eval $cacheid=yes 18428else $as_nop 18429 eval $cacheid=no 18430fi 18431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18432 conftest$ac_exeext conftest.$ac_ext 18433fi 18434 18435 18436 CFLAGS="$xorg_testset_save_CFLAGS" 18437 18438 eval supported=\$$cacheid 18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18440printf "%s\n" "$supported" >&6; } 18441 if test "$supported" = "yes" ; then 18442 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18443 found="yes" 18444 fi 18445 fi 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461xorg_testset_save_CFLAGS="$CFLAGS" 18462 18463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18467if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18468then : 18469 printf %s "(cached) " >&6 18470else $as_nop 18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18472/* end confdefs.h. */ 18473int i; 18474_ACEOF 18475if ac_fn_c_try_compile "$LINENO" 18476then : 18477 xorg_cv_cc_flag_unknown_warning_option=yes 18478else $as_nop 18479 xorg_cv_cc_flag_unknown_warning_option=no 18480fi 18481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18482fi 18483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18486 CFLAGS="$xorg_testset_save_CFLAGS" 18487fi 18488 18489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18492 fi 18493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18496if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18497then : 18498 printf %s "(cached) " >&6 18499else $as_nop 18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18501/* end confdefs.h. */ 18502int i; 18503_ACEOF 18504if ac_fn_c_try_compile "$LINENO" 18505then : 18506 xorg_cv_cc_flag_unused_command_line_argument=yes 18507else $as_nop 18508 xorg_cv_cc_flag_unused_command_line_argument=no 18509fi 18510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18511fi 18512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18515 CFLAGS="$xorg_testset_save_CFLAGS" 18516fi 18517 18518found="no" 18519 18520 if test $found = "no" ; then 18521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18523 fi 18524 18525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18527 fi 18528 18529 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18530 18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18532printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18533 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18534 if eval test \${$cacheid+y} 18535then : 18536 printf %s "(cached) " >&6 18537else $as_nop 18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18539/* end confdefs.h. */ 18540int i; 18541int 18542main (void) 18543{ 18544 18545 ; 18546 return 0; 18547} 18548_ACEOF 18549if ac_fn_c_try_link "$LINENO" 18550then : 18551 eval $cacheid=yes 18552else $as_nop 18553 eval $cacheid=no 18554fi 18555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18556 conftest$ac_exeext conftest.$ac_ext 18557fi 18558 18559 18560 CFLAGS="$xorg_testset_save_CFLAGS" 18561 18562 eval supported=\$$cacheid 18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18564printf "%s\n" "$supported" >&6; } 18565 if test "$supported" = "yes" ; then 18566 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18567 found="yes" 18568 fi 18569 fi 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585xorg_testset_save_CFLAGS="$CFLAGS" 18586 18587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18591if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18592then : 18593 printf %s "(cached) " >&6 18594else $as_nop 18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596/* end confdefs.h. */ 18597int i; 18598_ACEOF 18599if ac_fn_c_try_compile "$LINENO" 18600then : 18601 xorg_cv_cc_flag_unknown_warning_option=yes 18602else $as_nop 18603 xorg_cv_cc_flag_unknown_warning_option=no 18604fi 18605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18606fi 18607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18610 CFLAGS="$xorg_testset_save_CFLAGS" 18611fi 18612 18613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18616 fi 18617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18620if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes 18631else $as_nop 18632 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5 18637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18639 CFLAGS="$xorg_testset_save_CFLAGS" 18640fi 18641 18642found="no" 18643 18644 if test $found = "no" ; then 18645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18647 fi 18648 18649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18651 fi 18652 18653 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18654 18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18656printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18657 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18658 if eval test \${$cacheid+y} 18659then : 18660 printf %s "(cached) " >&6 18661else $as_nop 18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18663/* end confdefs.h. */ 18664int i; 18665int 18666main (void) 18667{ 18668 18669 ; 18670 return 0; 18671} 18672_ACEOF 18673if ac_fn_c_try_link "$LINENO" 18674then : 18675 eval $cacheid=yes 18676else $as_nop 18677 eval $cacheid=no 18678fi 18679rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18680 conftest$ac_exeext conftest.$ac_ext 18681fi 18682 18683 18684 CFLAGS="$xorg_testset_save_CFLAGS" 18685 18686 eval supported=\$$cacheid 18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18688printf "%s\n" "$supported" >&6; } 18689 if test "$supported" = "yes" ; then 18690 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18691 found="yes" 18692 fi 18693 fi 18694 18695 18696fi 18697 18698 18699 18700 18701 18702 18703 18704 CWARNFLAGS="$BASE_CFLAGS" 18705 if test "x$GCC" = xyes ; then 18706 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18707 fi 18708 18709 18710 18711 18712 18713 18714 18715 18716# Check whether --enable-strict-compilation was given. 18717if test ${enable_strict_compilation+y} 18718then : 18719 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18720else $as_nop 18721 STRICT_COMPILE=no 18722fi 18723 18724 18725 18726 18727 18728 18729STRICT_CFLAGS="" 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743xorg_testset_save_CFLAGS="$CFLAGS" 18744 18745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18749if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18750then : 18751 printf %s "(cached) " >&6 18752else $as_nop 18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18754/* end confdefs.h. */ 18755int i; 18756_ACEOF 18757if ac_fn_c_try_compile "$LINENO" 18758then : 18759 xorg_cv_cc_flag_unknown_warning_option=yes 18760else $as_nop 18761 xorg_cv_cc_flag_unknown_warning_option=no 18762fi 18763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18764fi 18765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18766printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18768 CFLAGS="$xorg_testset_save_CFLAGS" 18769fi 18770 18771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18774 fi 18775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18777printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18778if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18779then : 18780 printf %s "(cached) " >&6 18781else $as_nop 18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18783/* end confdefs.h. */ 18784int i; 18785_ACEOF 18786if ac_fn_c_try_compile "$LINENO" 18787then : 18788 xorg_cv_cc_flag_unused_command_line_argument=yes 18789else $as_nop 18790 xorg_cv_cc_flag_unused_command_line_argument=no 18791fi 18792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18793fi 18794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18795printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18797 CFLAGS="$xorg_testset_save_CFLAGS" 18798fi 18799 18800found="no" 18801 18802 if test $found = "no" ; then 18803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18805 fi 18806 18807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18809 fi 18810 18811 CFLAGS="$CFLAGS -pedantic" 18812 18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18814printf %s "checking if $CC supports -pedantic... " >&6; } 18815 cacheid=xorg_cv_cc_flag__pedantic 18816 if eval test \${$cacheid+y} 18817then : 18818 printf %s "(cached) " >&6 18819else $as_nop 18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18821/* end confdefs.h. */ 18822int i; 18823int 18824main (void) 18825{ 18826 18827 ; 18828 return 0; 18829} 18830_ACEOF 18831if ac_fn_c_try_link "$LINENO" 18832then : 18833 eval $cacheid=yes 18834else $as_nop 18835 eval $cacheid=no 18836fi 18837rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18838 conftest$ac_exeext conftest.$ac_ext 18839fi 18840 18841 18842 CFLAGS="$xorg_testset_save_CFLAGS" 18843 18844 eval supported=\$$cacheid 18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18846printf "%s\n" "$supported" >&6; } 18847 if test "$supported" = "yes" ; then 18848 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18849 found="yes" 18850 fi 18851 fi 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867xorg_testset_save_CFLAGS="$CFLAGS" 18868 18869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18873if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18874then : 18875 printf %s "(cached) " >&6 18876else $as_nop 18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18878/* end confdefs.h. */ 18879int i; 18880_ACEOF 18881if ac_fn_c_try_compile "$LINENO" 18882then : 18883 xorg_cv_cc_flag_unknown_warning_option=yes 18884else $as_nop 18885 xorg_cv_cc_flag_unknown_warning_option=no 18886fi 18887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18888fi 18889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18892 CFLAGS="$xorg_testset_save_CFLAGS" 18893fi 18894 18895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18898 fi 18899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18902if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18903then : 18904 printf %s "(cached) " >&6 18905else $as_nop 18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18907/* end confdefs.h. */ 18908int i; 18909_ACEOF 18910if ac_fn_c_try_compile "$LINENO" 18911then : 18912 xorg_cv_cc_flag_unused_command_line_argument=yes 18913else $as_nop 18914 xorg_cv_cc_flag_unused_command_line_argument=no 18915fi 18916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18917fi 18918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18921 CFLAGS="$xorg_testset_save_CFLAGS" 18922fi 18923 18924found="no" 18925 18926 if test $found = "no" ; then 18927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18929 fi 18930 18931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18933 fi 18934 18935 CFLAGS="$CFLAGS -Werror" 18936 18937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18938printf %s "checking if $CC supports -Werror... " >&6; } 18939 cacheid=xorg_cv_cc_flag__Werror 18940 if eval test \${$cacheid+y} 18941then : 18942 printf %s "(cached) " >&6 18943else $as_nop 18944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18945/* end confdefs.h. */ 18946int i; 18947int 18948main (void) 18949{ 18950 18951 ; 18952 return 0; 18953} 18954_ACEOF 18955if ac_fn_c_try_link "$LINENO" 18956then : 18957 eval $cacheid=yes 18958else $as_nop 18959 eval $cacheid=no 18960fi 18961rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18962 conftest$ac_exeext conftest.$ac_ext 18963fi 18964 18965 18966 CFLAGS="$xorg_testset_save_CFLAGS" 18967 18968 eval supported=\$$cacheid 18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18970printf "%s\n" "$supported" >&6; } 18971 if test "$supported" = "yes" ; then 18972 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18973 found="yes" 18974 fi 18975 fi 18976 18977 if test $found = "no" ; then 18978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18980 fi 18981 18982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18984 fi 18985 18986 CFLAGS="$CFLAGS -errwarn" 18987 18988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18989printf %s "checking if $CC supports -errwarn... " >&6; } 18990 cacheid=xorg_cv_cc_flag__errwarn 18991 if eval test \${$cacheid+y} 18992then : 18993 printf %s "(cached) " >&6 18994else $as_nop 18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18996/* end confdefs.h. */ 18997int i; 18998int 18999main (void) 19000{ 19001 19002 ; 19003 return 0; 19004} 19005_ACEOF 19006if ac_fn_c_try_link "$LINENO" 19007then : 19008 eval $cacheid=yes 19009else $as_nop 19010 eval $cacheid=no 19011fi 19012rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19013 conftest$ac_exeext conftest.$ac_ext 19014fi 19015 19016 19017 CFLAGS="$xorg_testset_save_CFLAGS" 19018 19019 eval supported=\$$cacheid 19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19021printf "%s\n" "$supported" >&6; } 19022 if test "$supported" = "yes" ; then 19023 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19024 found="yes" 19025 fi 19026 fi 19027 19028 19029 19030# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19031# activate it with -Werror, so we add it here explicitly. 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045xorg_testset_save_CFLAGS="$CFLAGS" 19046 19047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19051if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19052then : 19053 printf %s "(cached) " >&6 19054else $as_nop 19055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19056/* end confdefs.h. */ 19057int i; 19058_ACEOF 19059if ac_fn_c_try_compile "$LINENO" 19060then : 19061 xorg_cv_cc_flag_unknown_warning_option=yes 19062else $as_nop 19063 xorg_cv_cc_flag_unknown_warning_option=no 19064fi 19065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19066fi 19067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19070 CFLAGS="$xorg_testset_save_CFLAGS" 19071fi 19072 19073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19076 fi 19077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19080if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19081then : 19082 printf %s "(cached) " >&6 19083else $as_nop 19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19085/* end confdefs.h. */ 19086int i; 19087_ACEOF 19088if ac_fn_c_try_compile "$LINENO" 19089then : 19090 xorg_cv_cc_flag_unused_command_line_argument=yes 19091else $as_nop 19092 xorg_cv_cc_flag_unused_command_line_argument=no 19093fi 19094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19095fi 19096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19099 CFLAGS="$xorg_testset_save_CFLAGS" 19100fi 19101 19102found="no" 19103 19104 if test $found = "no" ; then 19105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19107 fi 19108 19109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19111 fi 19112 19113 CFLAGS="$CFLAGS -Werror=attributes" 19114 19115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19116printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19117 cacheid=xorg_cv_cc_flag__Werror_attributes 19118 if eval test \${$cacheid+y} 19119then : 19120 printf %s "(cached) " >&6 19121else $as_nop 19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19123/* end confdefs.h. */ 19124int i; 19125int 19126main (void) 19127{ 19128 19129 ; 19130 return 0; 19131} 19132_ACEOF 19133if ac_fn_c_try_link "$LINENO" 19134then : 19135 eval $cacheid=yes 19136else $as_nop 19137 eval $cacheid=no 19138fi 19139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19140 conftest$ac_exeext conftest.$ac_ext 19141fi 19142 19143 19144 CFLAGS="$xorg_testset_save_CFLAGS" 19145 19146 eval supported=\$$cacheid 19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19148printf "%s\n" "$supported" >&6; } 19149 if test "$supported" = "yes" ; then 19150 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19151 found="yes" 19152 fi 19153 fi 19154 19155 19156 19157if test "x$STRICT_COMPILE" = "xyes"; then 19158 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19159 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19160fi 19161 19162 19163 19164 19165 19166 19167cat >>confdefs.h <<_ACEOF 19168#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19169_ACEOF 19170 19171 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19172 if test "x$PVM" = "x"; then 19173 PVM="0" 19174 fi 19175 19176printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19177 19178 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19179 if test "x$PVP" = "x"; then 19180 PVP="0" 19181 fi 19182 19183printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19184 19185 19186 19187CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19188mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19189|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19190touch \$(top_srcdir)/ChangeLog; \ 19191echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19192 19193 19194 19195 19196macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19197INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19198mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19199|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19200touch \$(top_srcdir)/INSTALL; \ 19201echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19202 19203 19204 19205 19206 19207 19208case $host_os in 19209 solaris*) 19210 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19211 # check for a man page file found in later versions that use 19212 # traditional section numbers instead 19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19214printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19215if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19216then : 19217 printf %s "(cached) " >&6 19218else $as_nop 19219 test "$cross_compiling" = yes && 19220 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19221if test -r "/usr/share/man/man7/attributes.7"; then 19222 ac_cv_file__usr_share_man_man7_attributes_7=yes 19223else 19224 ac_cv_file__usr_share_man_man7_attributes_7=no 19225fi 19226fi 19227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19228printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19229if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19230then : 19231 SYSV_MAN_SECTIONS=false 19232else $as_nop 19233 SYSV_MAN_SECTIONS=true 19234fi 19235 19236 ;; 19237 *) SYSV_MAN_SECTIONS=false ;; 19238esac 19239 19240if test x$APP_MAN_SUFFIX = x ; then 19241 APP_MAN_SUFFIX=1 19242fi 19243if test x$APP_MAN_DIR = x ; then 19244 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19245fi 19246 19247if test x$LIB_MAN_SUFFIX = x ; then 19248 LIB_MAN_SUFFIX=3 19249fi 19250if test x$LIB_MAN_DIR = x ; then 19251 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19252fi 19253 19254if test x$FILE_MAN_SUFFIX = x ; then 19255 case $SYSV_MAN_SECTIONS in 19256 true) FILE_MAN_SUFFIX=4 ;; 19257 *) FILE_MAN_SUFFIX=5 ;; 19258 esac 19259fi 19260if test x$FILE_MAN_DIR = x ; then 19261 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19262fi 19263 19264if test x$MISC_MAN_SUFFIX = x ; then 19265 case $SYSV_MAN_SECTIONS in 19266 true) MISC_MAN_SUFFIX=5 ;; 19267 *) MISC_MAN_SUFFIX=7 ;; 19268 esac 19269fi 19270if test x$MISC_MAN_DIR = x ; then 19271 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19272fi 19273 19274if test x$DRIVER_MAN_SUFFIX = x ; then 19275 case $SYSV_MAN_SECTIONS in 19276 true) DRIVER_MAN_SUFFIX=7 ;; 19277 *) DRIVER_MAN_SUFFIX=4 ;; 19278 esac 19279fi 19280if test x$DRIVER_MAN_DIR = x ; then 19281 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19282fi 19283 19284if test x$ADMIN_MAN_SUFFIX = x ; then 19285 case $SYSV_MAN_SECTIONS in 19286 true) ADMIN_MAN_SUFFIX=1m ;; 19287 *) ADMIN_MAN_SUFFIX=8 ;; 19288 esac 19289fi 19290if test x$ADMIN_MAN_DIR = x ; then 19291 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19292fi 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308XORG_MAN_PAGE="X Version 11" 19309 19310MAN_SUBSTS="\ 19311 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19312 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19313 -e 's|__xservername__|Xorg|g' \ 19314 -e 's|__xconfigfile__|xorg.conf|g' \ 19315 -e 's|__projectroot__|\$(prefix)|g' \ 19316 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19317 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19318 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19319 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19320 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19321 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19322 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19323 19324 19325 19326# Check whether --enable-silent-rules was given. 19327if test ${enable_silent_rules+y} 19328then : 19329 enableval=$enable_silent_rules; 19330fi 19331 19332case $enable_silent_rules in # ((( 19333 yes) AM_DEFAULT_VERBOSITY=0;; 19334 no) AM_DEFAULT_VERBOSITY=1;; 19335 *) AM_DEFAULT_VERBOSITY=0;; 19336esac 19337am_make=${MAKE-make} 19338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19339printf %s "checking whether $am_make supports nested variables... " >&6; } 19340if test ${am_cv_make_support_nested_variables+y} 19341then : 19342 printf %s "(cached) " >&6 19343else $as_nop 19344 if printf "%s\n" 'TRUE=$(BAR$(V)) 19345BAR0=false 19346BAR1=true 19347V=1 19348am__doit: 19349 @$(TRUE) 19350.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19351 am_cv_make_support_nested_variables=yes 19352else 19353 am_cv_make_support_nested_variables=no 19354fi 19355fi 19356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19357printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19358if test $am_cv_make_support_nested_variables = yes; then 19359 AM_V='$(V)' 19360 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19361else 19362 AM_V=$AM_DEFAULT_VERBOSITY 19363 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19364fi 19365AM_BACKSLASH='\' 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19376 if test -n "$ac_tool_prefix"; then 19377 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19378set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19380printf %s "checking for $ac_word... " >&6; } 19381if test ${ac_cv_path_PKG_CONFIG+y} 19382then : 19383 printf %s "(cached) " >&6 19384else $as_nop 19385 case $PKG_CONFIG in 19386 [\\/]* | ?:[\\/]*) 19387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19388 ;; 19389 *) 19390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19391for as_dir in $PATH 19392do 19393 IFS=$as_save_IFS 19394 case $as_dir in #((( 19395 '') as_dir=./ ;; 19396 */) ;; 19397 *) as_dir=$as_dir/ ;; 19398 esac 19399 for ac_exec_ext in '' $ac_executable_extensions; do 19400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19401 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 19402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19403 break 2 19404 fi 19405done 19406 done 19407IFS=$as_save_IFS 19408 19409 ;; 19410esac 19411fi 19412PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19413if test -n "$PKG_CONFIG"; then 19414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19415printf "%s\n" "$PKG_CONFIG" >&6; } 19416else 19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19418printf "%s\n" "no" >&6; } 19419fi 19420 19421 19422fi 19423if test -z "$ac_cv_path_PKG_CONFIG"; then 19424 ac_pt_PKG_CONFIG=$PKG_CONFIG 19425 # Extract the first word of "pkg-config", so it can be a program name with args. 19426set dummy pkg-config; ac_word=$2 19427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19428printf %s "checking for $ac_word... " >&6; } 19429if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 19430then : 19431 printf %s "(cached) " >&6 19432else $as_nop 19433 case $ac_pt_PKG_CONFIG in 19434 [\\/]* | ?:[\\/]*) 19435 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19436 ;; 19437 *) 19438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19439for as_dir in $PATH 19440do 19441 IFS=$as_save_IFS 19442 case $as_dir in #((( 19443 '') as_dir=./ ;; 19444 */) ;; 19445 *) as_dir=$as_dir/ ;; 19446 esac 19447 for ac_exec_ext in '' $ac_executable_extensions; do 19448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 19450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19451 break 2 19452 fi 19453done 19454 done 19455IFS=$as_save_IFS 19456 19457 ;; 19458esac 19459fi 19460ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19461if test -n "$ac_pt_PKG_CONFIG"; then 19462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19463printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 19464else 19465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19466printf "%s\n" "no" >&6; } 19467fi 19468 19469 if test "x$ac_pt_PKG_CONFIG" = x; then 19470 PKG_CONFIG="" 19471 else 19472 case $cross_compiling:$ac_tool_warned in 19473yes:) 19474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19475printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19476ac_tool_warned=yes ;; 19477esac 19478 PKG_CONFIG=$ac_pt_PKG_CONFIG 19479 fi 19480else 19481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19482fi 19483 19484fi 19485if test -n "$PKG_CONFIG"; then 19486 _pkg_min_version=0.9.0 19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19488printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19491printf "%s\n" "yes" >&6; } 19492 else 19493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19494printf "%s\n" "no" >&6; } 19495 PKG_CONFIG="" 19496 fi 19497fi 19498 19499pciids_path=/usr/share/hwdata 19500 19501# Check whether --with-pciids-path was given. 19502if test ${with_pciids_path+y} 19503then : 19504 withval=$with_pciids_path; pciids_path="$withval" 19505fi 19506 19507 19508 prefix_NONE= 19509 exec_prefix_NONE= 19510 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19511 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19512 eval ax_define_dir="\"$pciids_path\"" 19513 eval ax_define_dir="\"$ax_define_dir\"" 19514 PCIIDS_PATH="$ax_define_dir" 19515 19516 19517printf "%s\n" "#define PCIIDS_PATH \"$ax_define_dir\"" >>confdefs.h 19518 19519 test "$prefix_NONE" && prefix=NONE 19520 test "$exec_prefix_NONE" && exec_prefix=NONE 19521 19522 19523# Check whether --enable-linux-rom-fallback was given. 19524if test ${enable_linux_rom_fallback+y} 19525then : 19526 enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval 19527else $as_nop 19528 LINUX_ROM=no 19529fi 19530 19531 19532if test "x$LINUX_ROM" = xyes; then 19533 19534printf "%s\n" "#define LINUX_ROM 1" >>confdefs.h 19535 19536fi 19537 19538use_zlib=no 19539 19540# Check whether --with-zlib was given. 19541if test ${with_zlib+y} 19542then : 19543 withval=$with_zlib; use_zlib="$withval" 19544fi 19545 19546if test "x$use_zlib" = xyes; then 19547 19548pkg_failed=no 19549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 19550printf %s "checking for ZLIB... " >&6; } 19551 19552if test -n "$ZLIB_CFLAGS"; then 19553 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 19554 elif test -n "$PKG_CONFIG"; then 19555 if test -n "$PKG_CONFIG" && \ 19556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 19557 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 19558 ac_status=$? 19559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19560 test $ac_status = 0; }; then 19561 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 19562 test "x$?" != "x0" && pkg_failed=yes 19563else 19564 pkg_failed=yes 19565fi 19566 else 19567 pkg_failed=untried 19568fi 19569if test -n "$ZLIB_LIBS"; then 19570 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 19571 elif test -n "$PKG_CONFIG"; then 19572 if test -n "$PKG_CONFIG" && \ 19573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 19574 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 19575 ac_status=$? 19576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19577 test $ac_status = 0; }; then 19578 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 19579 test "x$?" != "x0" && pkg_failed=yes 19580else 19581 pkg_failed=yes 19582fi 19583 else 19584 pkg_failed=untried 19585fi 19586 19587 19588 19589if test $pkg_failed = yes; then 19590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19591printf "%s\n" "no" >&6; } 19592 19593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19594 _pkg_short_errors_supported=yes 19595else 19596 _pkg_short_errors_supported=no 19597fi 19598 if test $_pkg_short_errors_supported = yes; then 19599 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 19600 else 19601 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 19602 fi 19603 # Put the nasty error message in config.log where it belongs 19604 echo "$ZLIB_PKG_ERRORS" >&5 19605 19606 as_fn_error $? "Package requirements (zlib) were not met: 19607 19608$ZLIB_PKG_ERRORS 19609 19610Consider adjusting the PKG_CONFIG_PATH environment variable if you 19611installed software in a non-standard prefix. 19612 19613Alternatively, you may set the environment variables ZLIB_CFLAGS 19614and ZLIB_LIBS to avoid the need to call pkg-config. 19615See the pkg-config man page for more details." "$LINENO" 5 19616elif test $pkg_failed = untried; then 19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19618printf "%s\n" "no" >&6; } 19619 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19620printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19621as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19622is in your PATH or set the PKG_CONFIG environment variable to the full 19623path to pkg-config. 19624 19625Alternatively, you may set the environment variables ZLIB_CFLAGS 19626and ZLIB_LIBS to avoid the need to call pkg-config. 19627See the pkg-config man page for more details. 19628 19629To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19630See \`config.log' for more details" "$LINENO" 5; } 19631else 19632 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 19633 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19635printf "%s\n" "yes" >&6; } 19636 19637fi 19638 PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS $ZLIB_CFLAGS" 19639 PCIACCESS_LIBS="$PCIACCESS_LIBS $ZLIB_LIBS" 19640 19641printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h 19642 19643fi 19644 19645case $host_os in 19646 *freebsd* | *dragonfly*) 19647 freebsd=yes 19648 ;; 19649 *linux*) 19650 linux=yes 19651 ;; 19652 *netbsd*) 19653 case $host in 19654 *i[3-9]86*) 19655 PCIACCESS_LIBS="$PCIACCESS_LIBS -li386" 19656 ;; 19657 *x86_64*|*amd64*) 19658 PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64" 19659 ;; 19660 *alpha*) 19661 PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha" 19662 ;; 19663 esac 19664 PCIACCESS_LIBS="$PCIACCESS_LIBS -lpci" 19665 netbsd=yes 19666 ;; 19667 *openbsd*) 19668 openbsd=yes 19669 ;; 19670 *solaris*) 19671 solaris=yes 19672 PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo" 19673 ;; 19674 gnu*) 19675 gnu=yes 19676 ;; 19677 *cygwin*) 19678 cygwin=yes 19679 PCIACCESS_LIBS="$PCIACCESS_LIBS" 19680 ;; 19681esac 19682 19683 if test "x$linux" = xyes; then 19684 LINUX_TRUE= 19685 LINUX_FALSE='#' 19686else 19687 LINUX_TRUE='#' 19688 LINUX_FALSE= 19689fi 19690 19691 if test "x$freebsd" = xyes; then 19692 FREEBSD_TRUE= 19693 FREEBSD_FALSE='#' 19694else 19695 FREEBSD_TRUE='#' 19696 FREEBSD_FALSE= 19697fi 19698 19699 if test "x$netbsd" = xyes; then 19700 NETBSD_TRUE= 19701 NETBSD_FALSE='#' 19702else 19703 NETBSD_TRUE='#' 19704 NETBSD_FALSE= 19705fi 19706 19707 if test "x$openbsd" = xyes; then 19708 OPENBSD_TRUE= 19709 OPENBSD_FALSE='#' 19710else 19711 OPENBSD_TRUE='#' 19712 OPENBSD_FALSE= 19713fi 19714 19715 if test "x$solaris" = xyes; then 19716 SOLARIS_TRUE= 19717 SOLARIS_FALSE='#' 19718else 19719 SOLARIS_TRUE='#' 19720 SOLARIS_FALSE= 19721fi 19722 19723 if test "x$gnu" = xyes; then 19724 GNU_TRUE= 19725 GNU_FALSE='#' 19726else 19727 GNU_TRUE='#' 19728 GNU_FALSE= 19729fi 19730 19731 if test "x$cygwin" = xyes; then 19732 CYGWIN_TRUE= 19733 CYGWIN_FALSE='#' 19734else 19735 CYGWIN_TRUE='#' 19736 CYGWIN_FALSE= 19737fi 19738 19739 19740# Check whether --enable-largefile was given. 19741if test ${enable_largefile+y} 19742then : 19743 enableval=$enable_largefile; 19744fi 19745 19746if test "$enable_largefile" != no; then 19747 19748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 19749printf %s "checking for special C compiler options needed for large files... " >&6; } 19750if test ${ac_cv_sys_largefile_CC+y} 19751then : 19752 printf %s "(cached) " >&6 19753else $as_nop 19754 ac_cv_sys_largefile_CC=no 19755 if test "$GCC" != yes; then 19756 ac_save_CC=$CC 19757 while :; do 19758 # IRIX 6.2 and later do not support large files by default, 19759 # so use the C compiler's -n32 option if that helps. 19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19761/* end confdefs.h. */ 19762#include <sys/types.h> 19763 /* Check that off_t can represent 2**63 - 1 correctly. 19764 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19765 since some C++ compilers masquerading as C compilers 19766 incorrectly reject 9223372036854775807. */ 19767#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19769 && LARGE_OFF_T % 2147483647 == 1) 19770 ? 1 : -1]; 19771int 19772main (void) 19773{ 19774 19775 ; 19776 return 0; 19777} 19778_ACEOF 19779 if ac_fn_c_try_compile "$LINENO" 19780then : 19781 break 19782fi 19783rm -f core conftest.err conftest.$ac_objext conftest.beam 19784 CC="$CC -n32" 19785 if ac_fn_c_try_compile "$LINENO" 19786then : 19787 ac_cv_sys_largefile_CC=' -n32'; break 19788fi 19789rm -f core conftest.err conftest.$ac_objext conftest.beam 19790 break 19791 done 19792 CC=$ac_save_CC 19793 rm -f conftest.$ac_ext 19794 fi 19795fi 19796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 19797printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 19798 if test "$ac_cv_sys_largefile_CC" != no; then 19799 CC=$CC$ac_cv_sys_largefile_CC 19800 fi 19801 19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 19803printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 19804if test ${ac_cv_sys_file_offset_bits+y} 19805then : 19806 printf %s "(cached) " >&6 19807else $as_nop 19808 while :; do 19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19810/* end confdefs.h. */ 19811#include <sys/types.h> 19812 /* Check that off_t can represent 2**63 - 1 correctly. 19813 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19814 since some C++ compilers masquerading as C compilers 19815 incorrectly reject 9223372036854775807. */ 19816#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19818 && LARGE_OFF_T % 2147483647 == 1) 19819 ? 1 : -1]; 19820int 19821main (void) 19822{ 19823 19824 ; 19825 return 0; 19826} 19827_ACEOF 19828if ac_fn_c_try_compile "$LINENO" 19829then : 19830 ac_cv_sys_file_offset_bits=no; break 19831fi 19832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19834/* end confdefs.h. */ 19835#define _FILE_OFFSET_BITS 64 19836#include <sys/types.h> 19837 /* Check that off_t can represent 2**63 - 1 correctly. 19838 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19839 since some C++ compilers masquerading as C compilers 19840 incorrectly reject 9223372036854775807. */ 19841#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19843 && LARGE_OFF_T % 2147483647 == 1) 19844 ? 1 : -1]; 19845int 19846main (void) 19847{ 19848 19849 ; 19850 return 0; 19851} 19852_ACEOF 19853if ac_fn_c_try_compile "$LINENO" 19854then : 19855 ac_cv_sys_file_offset_bits=64; break 19856fi 19857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19858 ac_cv_sys_file_offset_bits=unknown 19859 break 19860done 19861fi 19862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 19863printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 19864case $ac_cv_sys_file_offset_bits in #( 19865 no | unknown) ;; 19866 *) 19867printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 19868;; 19869esac 19870rm -rf conftest* 19871 if test $ac_cv_sys_file_offset_bits = unknown; then 19872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 19873printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 19874if test ${ac_cv_sys_large_files+y} 19875then : 19876 printf %s "(cached) " >&6 19877else $as_nop 19878 while :; do 19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19880/* end confdefs.h. */ 19881#include <sys/types.h> 19882 /* Check that off_t can represent 2**63 - 1 correctly. 19883 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19884 since some C++ compilers masquerading as C compilers 19885 incorrectly reject 9223372036854775807. */ 19886#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19888 && LARGE_OFF_T % 2147483647 == 1) 19889 ? 1 : -1]; 19890int 19891main (void) 19892{ 19893 19894 ; 19895 return 0; 19896} 19897_ACEOF 19898if ac_fn_c_try_compile "$LINENO" 19899then : 19900 ac_cv_sys_large_files=no; break 19901fi 19902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19904/* end confdefs.h. */ 19905#define _LARGE_FILES 1 19906#include <sys/types.h> 19907 /* Check that off_t can represent 2**63 - 1 correctly. 19908 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19909 since some C++ compilers masquerading as C compilers 19910 incorrectly reject 9223372036854775807. */ 19911#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19913 && LARGE_OFF_T % 2147483647 == 1) 19914 ? 1 : -1]; 19915int 19916main (void) 19917{ 19918 19919 ; 19920 return 0; 19921} 19922_ACEOF 19923if ac_fn_c_try_compile "$LINENO" 19924then : 19925 ac_cv_sys_large_files=1; break 19926fi 19927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19928 ac_cv_sys_large_files=unknown 19929 break 19930done 19931fi 19932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 19933printf "%s\n" "$ac_cv_sys_large_files" >&6; } 19934case $ac_cv_sys_large_files in #( 19935 no | unknown) ;; 19936 *) 19937printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 19938;; 19939esac 19940rm -rf conftest* 19941 fi 19942fi 19943 19944 19945ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 19946if test "x$ac_cv_header_err_h" = xyes 19947then : 19948 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 19949 19950fi 19951 19952 19953if test "x$netbsd" = xyes; then 19954ac_fn_c_check_header_compile "$LINENO" "machine/sysarch.h" "ac_cv_header_machine_sysarch_h" "$ac_includes_default" 19955if test "x$ac_cv_header_machine_sysarch_h" = xyes 19956then : 19957 printf "%s\n" "#define HAVE_MACHINE_SYSARCH_H 1" >>confdefs.h 19958 19959fi 19960 19961 for ac_header in machine/mtrr.h 19962do : 19963 ac_fn_c_check_header_compile "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "#ifdef HAVE_MACHINE_SYSARCH_H 19964#include <sys/types.h> 19965#include <machine/sysarch.h> 19966#endif 19967 19968" 19969if test "x$ac_cv_header_machine_mtrr_h" = xyes 19970then : 19971 printf "%s\n" "#define HAVE_MACHINE_MTRR_H 1" >>confdefs.h 19972 have_mtrr_h="yes" 19973else $as_nop 19974 have_mtrr_h="no" 19975fi 19976 19977done 19978else 19979ac_fn_c_check_header_compile "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default" 19980if test "x$ac_cv_header_asm_mtrr_h" = xyes 19981then : 19982 have_mtrr_h="yes" 19983else $as_nop 19984 have_mtrr_h="no" 19985fi 19986 19987fi 19988 19989if test "x$have_mtrr_h" = xyes; then 19990 19991printf "%s\n" "#define HAVE_MTRR 1" >>confdefs.h 19992 19993fi 19994 19995 19996 19997 19998ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc" 19999 20000cat >confcache <<\_ACEOF 20001# This file is a shell script that caches the results of configure 20002# tests run on this system so they can be shared between configure 20003# scripts and configure runs, see configure's option --config-cache. 20004# It is not useful on other systems. If it contains results you don't 20005# want to keep, you may remove or edit it. 20006# 20007# config.status only pays attention to the cache file if you give it 20008# the --recheck option to rerun configure. 20009# 20010# `ac_cv_env_foo' variables (set or unset) will be overridden when 20011# loading this file, other *unset* `ac_cv_foo' will be assigned the 20012# following values. 20013 20014_ACEOF 20015 20016# The following way of writing the cache mishandles newlines in values, 20017# but we know of no workaround that is simple, portable, and efficient. 20018# So, we kill variables containing newlines. 20019# Ultrix sh set writes to stderr and can't be redirected directly, 20020# and sets the high bit in the cache file unless we assign to the vars. 20021( 20022 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20023 eval ac_val=\$$ac_var 20024 case $ac_val in #( 20025 *${as_nl}*) 20026 case $ac_var in #( 20027 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20028printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20029 esac 20030 case $ac_var in #( 20031 _ | IFS | as_nl) ;; #( 20032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20033 *) { eval $ac_var=; unset $ac_var;} ;; 20034 esac ;; 20035 esac 20036 done 20037 20038 (set) 2>&1 | 20039 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20040 *${as_nl}ac_space=\ *) 20041 # `set' does not quote correctly, so add quotes: double-quote 20042 # substitution turns \\\\ into \\, and sed turns \\ into \. 20043 sed -n \ 20044 "s/'/'\\\\''/g; 20045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20046 ;; #( 20047 *) 20048 # `set' quotes correctly as required by POSIX, so do not add quotes. 20049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20050 ;; 20051 esac | 20052 sort 20053) | 20054 sed ' 20055 /^ac_cv_env_/b end 20056 t clear 20057 :clear 20058 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20059 t end 20060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20061 :end' >>confcache 20062if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20063 if test -w "$cache_file"; then 20064 if test "x$cache_file" != "x/dev/null"; then 20065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20066printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20067 if test ! -f "$cache_file" || test -h "$cache_file"; then 20068 cat confcache >"$cache_file" 20069 else 20070 case $cache_file in #( 20071 */* | ?:*) 20072 mv -f confcache "$cache_file"$$ && 20073 mv -f "$cache_file"$$ "$cache_file" ;; #( 20074 *) 20075 mv -f confcache "$cache_file" ;; 20076 esac 20077 fi 20078 fi 20079 else 20080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20081printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20082 fi 20083fi 20084rm -f confcache 20085 20086test "x$prefix" = xNONE && prefix=$ac_default_prefix 20087# Let make expand exec_prefix. 20088test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20089 20090DEFS=-DHAVE_CONFIG_H 20091 20092ac_libobjs= 20093ac_ltlibobjs= 20094U= 20095for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20096 # 1. Remove the extension, and $U if already installed. 20097 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20098 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20099 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20100 # will be set to the directory where LIBOBJS objects are built. 20101 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20102 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20103done 20104LIBOBJS=$ac_libobjs 20105 20106LTLIBOBJS=$ac_ltlibobjs 20107 20108 20109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20110printf %s "checking that generated files are newer than configure... " >&6; } 20111 if test -n "$am_sleep_pid"; then 20112 # Hide warnings about reused PIDs. 20113 wait $am_sleep_pid 2>/dev/null 20114 fi 20115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20116printf "%s\n" "done" >&6; } 20117 if test -n "$EXEEXT"; then 20118 am__EXEEXT_TRUE= 20119 am__EXEEXT_FALSE='#' 20120else 20121 am__EXEEXT_TRUE='#' 20122 am__EXEEXT_FALSE= 20123fi 20124 20125if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20126 as_fn_error $? "conditional \"AMDEP\" was never defined. 20127Usually this means the macro was only invoked conditionally." "$LINENO" 5 20128fi 20129if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20130 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20131Usually this means the macro was only invoked conditionally." "$LINENO" 5 20132fi 20133if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 20134 as_fn_error $? "conditional \"LINUX\" was never defined. 20135Usually this means the macro was only invoked conditionally." "$LINENO" 5 20136fi 20137if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 20138 as_fn_error $? "conditional \"FREEBSD\" was never defined. 20139Usually this means the macro was only invoked conditionally." "$LINENO" 5 20140fi 20141if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 20142 as_fn_error $? "conditional \"NETBSD\" was never defined. 20143Usually this means the macro was only invoked conditionally." "$LINENO" 5 20144fi 20145if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 20146 as_fn_error $? "conditional \"OPENBSD\" was never defined. 20147Usually this means the macro was only invoked conditionally." "$LINENO" 5 20148fi 20149if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 20150 as_fn_error $? "conditional \"SOLARIS\" was never defined. 20151Usually this means the macro was only invoked conditionally." "$LINENO" 5 20152fi 20153if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then 20154 as_fn_error $? "conditional \"GNU\" was never defined. 20155Usually this means the macro was only invoked conditionally." "$LINENO" 5 20156fi 20157if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 20158 as_fn_error $? "conditional \"CYGWIN\" was never defined. 20159Usually this means the macro was only invoked conditionally." "$LINENO" 5 20160fi 20161 20162: "${CONFIG_STATUS=./config.status}" 20163ac_write_fail=0 20164ac_clean_files_save=$ac_clean_files 20165ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20167printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20168as_write_fail=0 20169cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20170#! $SHELL 20171# Generated by $as_me. 20172# Run this file to recreate the current configuration. 20173# Compiler output produced by configure, useful for debugging 20174# configure, is in config.log if it exists. 20175 20176debug=false 20177ac_cs_recheck=false 20178ac_cs_silent=false 20179 20180SHELL=\${CONFIG_SHELL-$SHELL} 20181export SHELL 20182_ASEOF 20183cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20184## -------------------- ## 20185## M4sh Initialization. ## 20186## -------------------- ## 20187 20188# Be more Bourne compatible 20189DUALCASE=1; export DUALCASE # for MKS sh 20190as_nop=: 20191if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20192then : 20193 emulate sh 20194 NULLCMD=: 20195 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20196 # is contrary to our usage. Disable this feature. 20197 alias -g '${1+"$@"}'='"$@"' 20198 setopt NO_GLOB_SUBST 20199else $as_nop 20200 case `(set -o) 2>/dev/null` in #( 20201 *posix*) : 20202 set -o posix ;; #( 20203 *) : 20204 ;; 20205esac 20206fi 20207 20208 20209 20210# Reset variables that may have inherited troublesome values from 20211# the environment. 20212 20213# IFS needs to be set, to space, tab, and newline, in precisely that order. 20214# (If _AS_PATH_WALK were called with IFS unset, it would have the 20215# side effect of setting IFS to empty, thus disabling word splitting.) 20216# Quoting is to prevent editors from complaining about space-tab. 20217as_nl=' 20218' 20219export as_nl 20220IFS=" "" $as_nl" 20221 20222PS1='$ ' 20223PS2='> ' 20224PS4='+ ' 20225 20226# Ensure predictable behavior from utilities with locale-dependent output. 20227LC_ALL=C 20228export LC_ALL 20229LANGUAGE=C 20230export LANGUAGE 20231 20232# We cannot yet rely on "unset" to work, but we need these variables 20233# to be unset--not just set to an empty or harmless value--now, to 20234# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20235# also avoids known problems related to "unset" and subshell syntax 20236# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20237for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20238do eval test \${$as_var+y} \ 20239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20240done 20241 20242# Ensure that fds 0, 1, and 2 are open. 20243if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20244if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20245if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20246 20247# The user is always right. 20248if ${PATH_SEPARATOR+false} :; then 20249 PATH_SEPARATOR=: 20250 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20251 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20252 PATH_SEPARATOR=';' 20253 } 20254fi 20255 20256 20257# Find who we are. Look in the path if we contain no directory separator. 20258as_myself= 20259case $0 in #(( 20260 *[\\/]* ) as_myself=$0 ;; 20261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20262for as_dir in $PATH 20263do 20264 IFS=$as_save_IFS 20265 case $as_dir in #((( 20266 '') as_dir=./ ;; 20267 */) ;; 20268 *) as_dir=$as_dir/ ;; 20269 esac 20270 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20271 done 20272IFS=$as_save_IFS 20273 20274 ;; 20275esac 20276# We did not find ourselves, most probably we were run as `sh COMMAND' 20277# in which case we are not to be found in the path. 20278if test "x$as_myself" = x; then 20279 as_myself=$0 20280fi 20281if test ! -f "$as_myself"; then 20282 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20283 exit 1 20284fi 20285 20286 20287 20288# as_fn_error STATUS ERROR [LINENO LOG_FD] 20289# ---------------------------------------- 20290# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20291# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20292# script with STATUS, using 1 if that was 0. 20293as_fn_error () 20294{ 20295 as_status=$1; test $as_status -eq 0 && as_status=1 20296 if test "$4"; then 20297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20299 fi 20300 printf "%s\n" "$as_me: error: $2" >&2 20301 as_fn_exit $as_status 20302} # as_fn_error 20303 20304 20305 20306# as_fn_set_status STATUS 20307# ----------------------- 20308# Set $? to STATUS, without forking. 20309as_fn_set_status () 20310{ 20311 return $1 20312} # as_fn_set_status 20313 20314# as_fn_exit STATUS 20315# ----------------- 20316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20317as_fn_exit () 20318{ 20319 set +e 20320 as_fn_set_status $1 20321 exit $1 20322} # as_fn_exit 20323 20324# as_fn_unset VAR 20325# --------------- 20326# Portably unset VAR. 20327as_fn_unset () 20328{ 20329 { eval $1=; unset $1;} 20330} 20331as_unset=as_fn_unset 20332 20333# as_fn_append VAR VALUE 20334# ---------------------- 20335# Append the text in VALUE to the end of the definition contained in VAR. Take 20336# advantage of any shell optimizations that allow amortized linear growth over 20337# repeated appends, instead of the typical quadratic growth present in naive 20338# implementations. 20339if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20340then : 20341 eval 'as_fn_append () 20342 { 20343 eval $1+=\$2 20344 }' 20345else $as_nop 20346 as_fn_append () 20347 { 20348 eval $1=\$$1\$2 20349 } 20350fi # as_fn_append 20351 20352# as_fn_arith ARG... 20353# ------------------ 20354# Perform arithmetic evaluation on the ARGs, and store the result in the 20355# global $as_val. Take advantage of shells that can avoid forks. The arguments 20356# must be portable across $(()) and expr. 20357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20358then : 20359 eval 'as_fn_arith () 20360 { 20361 as_val=$(( $* )) 20362 }' 20363else $as_nop 20364 as_fn_arith () 20365 { 20366 as_val=`expr "$@" || test $? -eq 1` 20367 } 20368fi # as_fn_arith 20369 20370 20371if expr a : '\(a\)' >/dev/null 2>&1 && 20372 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20373 as_expr=expr 20374else 20375 as_expr=false 20376fi 20377 20378if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20379 as_basename=basename 20380else 20381 as_basename=false 20382fi 20383 20384if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20385 as_dirname=dirname 20386else 20387 as_dirname=false 20388fi 20389 20390as_me=`$as_basename -- "$0" || 20391$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20392 X"$0" : 'X\(//\)$' \| \ 20393 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20394printf "%s\n" X/"$0" | 20395 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20396 s//\1/ 20397 q 20398 } 20399 /^X\/\(\/\/\)$/{ 20400 s//\1/ 20401 q 20402 } 20403 /^X\/\(\/\).*/{ 20404 s//\1/ 20405 q 20406 } 20407 s/.*/./; q'` 20408 20409# Avoid depending upon Character Ranges. 20410as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20411as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20412as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20413as_cr_digits='0123456789' 20414as_cr_alnum=$as_cr_Letters$as_cr_digits 20415 20416 20417# Determine whether it's possible to make 'echo' print without a newline. 20418# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20419# for compatibility with existing Makefiles. 20420ECHO_C= ECHO_N= ECHO_T= 20421case `echo -n x` in #((((( 20422-n*) 20423 case `echo 'xy\c'` in 20424 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20425 xy) ECHO_C='\c';; 20426 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20427 ECHO_T=' ';; 20428 esac;; 20429*) 20430 ECHO_N='-n';; 20431esac 20432 20433# For backward compatibility with old third-party macros, we provide 20434# the shell variables $as_echo and $as_echo_n. New code should use 20435# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20436as_echo='printf %s\n' 20437as_echo_n='printf %s' 20438 20439rm -f conf$$ conf$$.exe conf$$.file 20440if test -d conf$$.dir; then 20441 rm -f conf$$.dir/conf$$.file 20442else 20443 rm -f conf$$.dir 20444 mkdir conf$$.dir 2>/dev/null 20445fi 20446if (echo >conf$$.file) 2>/dev/null; then 20447 if ln -s conf$$.file conf$$ 2>/dev/null; then 20448 as_ln_s='ln -s' 20449 # ... but there are two gotchas: 20450 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20451 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20452 # In both cases, we have to default to `cp -pR'. 20453 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20454 as_ln_s='cp -pR' 20455 elif ln conf$$.file conf$$ 2>/dev/null; then 20456 as_ln_s=ln 20457 else 20458 as_ln_s='cp -pR' 20459 fi 20460else 20461 as_ln_s='cp -pR' 20462fi 20463rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20464rmdir conf$$.dir 2>/dev/null 20465 20466 20467# as_fn_mkdir_p 20468# ------------- 20469# Create "$as_dir" as a directory, including parents if necessary. 20470as_fn_mkdir_p () 20471{ 20472 20473 case $as_dir in #( 20474 -*) as_dir=./$as_dir;; 20475 esac 20476 test -d "$as_dir" || eval $as_mkdir_p || { 20477 as_dirs= 20478 while :; do 20479 case $as_dir in #( 20480 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20481 *) as_qdir=$as_dir;; 20482 esac 20483 as_dirs="'$as_qdir' $as_dirs" 20484 as_dir=`$as_dirname -- "$as_dir" || 20485$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20486 X"$as_dir" : 'X\(//\)[^/]' \| \ 20487 X"$as_dir" : 'X\(//\)$' \| \ 20488 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20489printf "%s\n" X"$as_dir" | 20490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20491 s//\1/ 20492 q 20493 } 20494 /^X\(\/\/\)[^/].*/{ 20495 s//\1/ 20496 q 20497 } 20498 /^X\(\/\/\)$/{ 20499 s//\1/ 20500 q 20501 } 20502 /^X\(\/\).*/{ 20503 s//\1/ 20504 q 20505 } 20506 s/.*/./; q'` 20507 test -d "$as_dir" && break 20508 done 20509 test -z "$as_dirs" || eval "mkdir $as_dirs" 20510 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20511 20512 20513} # as_fn_mkdir_p 20514if mkdir -p . 2>/dev/null; then 20515 as_mkdir_p='mkdir -p "$as_dir"' 20516else 20517 test -d ./-p && rmdir ./-p 20518 as_mkdir_p=false 20519fi 20520 20521 20522# as_fn_executable_p FILE 20523# ----------------------- 20524# Test if FILE is an executable regular file. 20525as_fn_executable_p () 20526{ 20527 test -f "$1" && test -x "$1" 20528} # as_fn_executable_p 20529as_test_x='test -x' 20530as_executable_p=as_fn_executable_p 20531 20532# Sed expression to map a string onto a valid CPP name. 20533as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20534 20535# Sed expression to map a string onto a valid variable name. 20536as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20537 20538 20539exec 6>&1 20540## ----------------------------------- ## 20541## Main body of $CONFIG_STATUS script. ## 20542## ----------------------------------- ## 20543_ASEOF 20544test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20545 20546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20547# Save the log message, to keep $0 and so on meaningful, and to 20548# report actual input values of CONFIG_FILES etc. instead of their 20549# values after options handling. 20550ac_log=" 20551This file was extended by libpciaccess $as_me 0.17, which was 20552generated by GNU Autoconf 2.71. Invocation command line was 20553 20554 CONFIG_FILES = $CONFIG_FILES 20555 CONFIG_HEADERS = $CONFIG_HEADERS 20556 CONFIG_LINKS = $CONFIG_LINKS 20557 CONFIG_COMMANDS = $CONFIG_COMMANDS 20558 $ $0 $@ 20559 20560on `(hostname || uname -n) 2>/dev/null | sed 1q` 20561" 20562 20563_ACEOF 20564 20565case $ac_config_files in *" 20566"*) set x $ac_config_files; shift; ac_config_files=$*;; 20567esac 20568 20569case $ac_config_headers in *" 20570"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20571esac 20572 20573 20574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20575# Files that config.status was made for. 20576config_files="$ac_config_files" 20577config_headers="$ac_config_headers" 20578config_commands="$ac_config_commands" 20579 20580_ACEOF 20581 20582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20583ac_cs_usage="\ 20584\`$as_me' instantiates files and other configuration actions 20585from templates according to the current configuration. Unless the files 20586and actions are specified as TAGs, all are instantiated by default. 20587 20588Usage: $0 [OPTION]... [TAG]... 20589 20590 -h, --help print this help, then exit 20591 -V, --version print version number and configuration settings, then exit 20592 --config print configuration, then exit 20593 -q, --quiet, --silent 20594 do not print progress messages 20595 -d, --debug don't remove temporary files 20596 --recheck update $as_me by reconfiguring in the same conditions 20597 --file=FILE[:TEMPLATE] 20598 instantiate the configuration file FILE 20599 --header=FILE[:TEMPLATE] 20600 instantiate the configuration header FILE 20601 20602Configuration files: 20603$config_files 20604 20605Configuration headers: 20606$config_headers 20607 20608Configuration commands: 20609$config_commands 20610 20611Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libpciaccess/-/issues>." 20612 20613_ACEOF 20614ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20615ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20617ac_cs_config='$ac_cs_config_escaped' 20618ac_cs_version="\\ 20619libpciaccess config.status 0.17 20620configured by $0, generated by GNU Autoconf 2.71, 20621 with options \\"\$ac_cs_config\\" 20622 20623Copyright (C) 2021 Free Software Foundation, Inc. 20624This config.status script is free software; the Free Software Foundation 20625gives unlimited permission to copy, distribute and modify it." 20626 20627ac_pwd='$ac_pwd' 20628srcdir='$srcdir' 20629INSTALL='$INSTALL' 20630MKDIR_P='$MKDIR_P' 20631AWK='$AWK' 20632test -n "\$AWK" || AWK=awk 20633_ACEOF 20634 20635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20636# The default lists apply if the user does not specify any file. 20637ac_need_defaults=: 20638while test $# != 0 20639do 20640 case $1 in 20641 --*=?*) 20642 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20644 ac_shift=: 20645 ;; 20646 --*=) 20647 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20648 ac_optarg= 20649 ac_shift=: 20650 ;; 20651 *) 20652 ac_option=$1 20653 ac_optarg=$2 20654 ac_shift=shift 20655 ;; 20656 esac 20657 20658 case $ac_option in 20659 # Handling of the options. 20660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20661 ac_cs_recheck=: ;; 20662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20663 printf "%s\n" "$ac_cs_version"; exit ;; 20664 --config | --confi | --conf | --con | --co | --c ) 20665 printf "%s\n" "$ac_cs_config"; exit ;; 20666 --debug | --debu | --deb | --de | --d | -d ) 20667 debug=: ;; 20668 --file | --fil | --fi | --f ) 20669 $ac_shift 20670 case $ac_optarg in 20671 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20672 '') as_fn_error $? "missing file argument" ;; 20673 esac 20674 as_fn_append CONFIG_FILES " '$ac_optarg'" 20675 ac_need_defaults=false;; 20676 --header | --heade | --head | --hea ) 20677 $ac_shift 20678 case $ac_optarg in 20679 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20680 esac 20681 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20682 ac_need_defaults=false;; 20683 --he | --h) 20684 # Conflict between --help and --header 20685 as_fn_error $? "ambiguous option: \`$1' 20686Try \`$0 --help' for more information.";; 20687 --help | --hel | -h ) 20688 printf "%s\n" "$ac_cs_usage"; exit ;; 20689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20690 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20691 ac_cs_silent=: ;; 20692 20693 # This is an error. 20694 -*) as_fn_error $? "unrecognized option: \`$1' 20695Try \`$0 --help' for more information." ;; 20696 20697 *) as_fn_append ac_config_targets " $1" 20698 ac_need_defaults=false ;; 20699 20700 esac 20701 shift 20702done 20703 20704ac_configure_extra_args= 20705 20706if $ac_cs_silent; then 20707 exec 6>/dev/null 20708 ac_configure_extra_args="$ac_configure_extra_args --silent" 20709fi 20710 20711_ACEOF 20712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20713if \$ac_cs_recheck; then 20714 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20715 shift 20716 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20717 CONFIG_SHELL='$SHELL' 20718 export CONFIG_SHELL 20719 exec "\$@" 20720fi 20721 20722_ACEOF 20723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20724exec 5>>config.log 20725{ 20726 echo 20727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20728## Running $as_me. ## 20729_ASBOX 20730 printf "%s\n" "$ac_log" 20731} >&5 20732 20733_ACEOF 20734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20735# 20736# INIT-COMMANDS 20737# 20738AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20739 20740 20741# The HP-UX ksh and POSIX shell print the target directory to stdout 20742# if CDPATH is set. 20743(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20744 20745sed_quote_subst='$sed_quote_subst' 20746double_quote_subst='$double_quote_subst' 20747delay_variable_subst='$delay_variable_subst' 20748macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20749macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20750enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20751enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20752pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20753enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20754shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20755SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20756ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20757PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20758host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20759host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20760host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20761build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20762build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20763build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20764SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20765Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20766GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20767EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20768FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20769LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20770NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20771LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20772max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20773ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20774exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20775lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20776lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20777lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20778lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20779lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20780reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20781reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20782FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20783OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20784deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20785file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20786file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20787want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20788DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20789sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20790AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20791lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20792AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20793archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20794STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20795RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20796old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20797old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20798old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20799lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20800CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20801CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20802compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20803GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20804lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20805lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20806lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20807lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20808lt_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"`' 20809lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20810nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20811lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20812lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20813objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20814MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20815lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20816lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20817lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20818lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20819lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20820need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20821MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20822DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20823NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20824LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20825OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20826OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20827libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20828shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20829extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20830archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20831enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20832export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20833whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20834compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20835old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20836old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20837archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20838archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20839module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20840module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20841with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20842allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20843no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20844hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20845hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20846hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20847hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20848hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20849hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20850hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20851inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20852link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20853always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20854export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20855exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20856include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20857prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20858postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20859file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20860variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20861need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20862need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20863version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20864runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20865shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20866shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20867libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20868library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20869soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20870install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20871postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20872postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20873finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20874finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20875hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20876sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20877configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20878configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20879hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20880enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20881enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20882enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20883old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20884striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20885 20886LTCC='$LTCC' 20887LTCFLAGS='$LTCFLAGS' 20888compiler='$compiler_DEFAULT' 20889 20890# A function that is used when there is no print builtin or printf. 20891func_fallback_echo () 20892{ 20893 eval 'cat <<_LTECHO_EOF 20894\$1 20895_LTECHO_EOF' 20896} 20897 20898# Quote evaled strings. 20899for var in SHELL \ 20900ECHO \ 20901PATH_SEPARATOR \ 20902SED \ 20903GREP \ 20904EGREP \ 20905FGREP \ 20906LD \ 20907NM \ 20908LN_S \ 20909lt_SP2NL \ 20910lt_NL2SP \ 20911reload_flag \ 20912FILECMD \ 20913OBJDUMP \ 20914deplibs_check_method \ 20915file_magic_cmd \ 20916file_magic_glob \ 20917want_nocaseglob \ 20918DLLTOOL \ 20919sharedlib_from_linklib_cmd \ 20920AR \ 20921archiver_list_spec \ 20922STRIP \ 20923RANLIB \ 20924CC \ 20925CFLAGS \ 20926compiler \ 20927lt_cv_sys_global_symbol_pipe \ 20928lt_cv_sys_global_symbol_to_cdecl \ 20929lt_cv_sys_global_symbol_to_import \ 20930lt_cv_sys_global_symbol_to_c_name_address \ 20931lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20932lt_cv_nm_interface \ 20933nm_file_list_spec \ 20934lt_cv_truncate_bin \ 20935lt_prog_compiler_no_builtin_flag \ 20936lt_prog_compiler_pic \ 20937lt_prog_compiler_wl \ 20938lt_prog_compiler_static \ 20939lt_cv_prog_compiler_c_o \ 20940need_locks \ 20941MANIFEST_TOOL \ 20942DSYMUTIL \ 20943NMEDIT \ 20944LIPO \ 20945OTOOL \ 20946OTOOL64 \ 20947shrext_cmds \ 20948export_dynamic_flag_spec \ 20949whole_archive_flag_spec \ 20950compiler_needs_object \ 20951with_gnu_ld \ 20952allow_undefined_flag \ 20953no_undefined_flag \ 20954hardcode_libdir_flag_spec \ 20955hardcode_libdir_separator \ 20956exclude_expsyms \ 20957include_expsyms \ 20958file_list_spec \ 20959variables_saved_for_relink \ 20960libname_spec \ 20961library_names_spec \ 20962soname_spec \ 20963install_override_mode \ 20964finish_eval \ 20965old_striplib \ 20966striplib; do 20967 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20968 *[\\\\\\\`\\"\\\$]*) 20969 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20970 ;; 20971 *) 20972 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20973 ;; 20974 esac 20975done 20976 20977# Double-quote double-evaled strings. 20978for var in reload_cmds \ 20979old_postinstall_cmds \ 20980old_postuninstall_cmds \ 20981old_archive_cmds \ 20982extract_expsyms_cmds \ 20983old_archive_from_new_cmds \ 20984old_archive_from_expsyms_cmds \ 20985archive_cmds \ 20986archive_expsym_cmds \ 20987module_cmds \ 20988module_expsym_cmds \ 20989export_symbols_cmds \ 20990prelink_cmds \ 20991postlink_cmds \ 20992postinstall_cmds \ 20993postuninstall_cmds \ 20994finish_cmds \ 20995sys_lib_search_path_spec \ 20996configure_time_dlsearch_path \ 20997configure_time_lt_sys_library_path; do 20998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20999 *[\\\\\\\`\\"\\\$]*) 21000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21001 ;; 21002 *) 21003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21004 ;; 21005 esac 21006done 21007 21008ac_aux_dir='$ac_aux_dir' 21009 21010# See if we are running on zsh, and set the options that allow our 21011# commands through without removal of \ escapes INIT. 21012if test -n "\${ZSH_VERSION+set}"; then 21013 setopt NO_GLOB_SUBST 21014fi 21015 21016 21017 PACKAGE='$PACKAGE' 21018 VERSION='$VERSION' 21019 RM='$RM' 21020 ofile='$ofile' 21021 21022 21023 21024 21025_ACEOF 21026 21027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21028 21029# Handling of arguments. 21030for ac_config_target in $ac_config_targets 21031do 21032 case $ac_config_target in 21033 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21034 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21035 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21036 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21037 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21038 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21039 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21040 "scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES scanpci/Makefile" ;; 21041 "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;; 21042 21043 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21044 esac 21045done 21046 21047 21048# If the user did not use the arguments to specify the items to instantiate, 21049# then the envvar interface is used. Set only those that are not. 21050# We use the long form for the default assignment because of an extremely 21051# bizarre bug on SunOS 4.1.3. 21052if $ac_need_defaults; then 21053 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21054 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21055 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21056fi 21057 21058# Have a temporary directory for convenience. Make it in the build tree 21059# simply because there is no reason against having it here, and in addition, 21060# creating and moving files from /tmp can sometimes cause problems. 21061# Hook for its removal unless debugging. 21062# Note that there is a small window in which the directory will not be cleaned: 21063# after its creation but before its name has been assigned to `$tmp'. 21064$debug || 21065{ 21066 tmp= ac_tmp= 21067 trap 'exit_status=$? 21068 : "${ac_tmp:=$tmp}" 21069 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21070' 0 21071 trap 'as_fn_exit 1' 1 2 13 15 21072} 21073# Create a (secure) tmp directory for tmp files. 21074 21075{ 21076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21077 test -d "$tmp" 21078} || 21079{ 21080 tmp=./conf$$-$RANDOM 21081 (umask 077 && mkdir "$tmp") 21082} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21083ac_tmp=$tmp 21084 21085# Set up the scripts for CONFIG_FILES section. 21086# No need to generate them if there are no CONFIG_FILES. 21087# This happens for instance with `./config.status config.h'. 21088if test -n "$CONFIG_FILES"; then 21089 21090 21091ac_cr=`echo X | tr X '\015'` 21092# On cygwin, bash can eat \r inside `` if the user requested igncr. 21093# But we know of no other shell where ac_cr would be empty at this 21094# point, so we can use a bashism as a fallback. 21095if test "x$ac_cr" = x; then 21096 eval ac_cr=\$\'\\r\' 21097fi 21098ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21099if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21100 ac_cs_awk_cr='\\r' 21101else 21102 ac_cs_awk_cr=$ac_cr 21103fi 21104 21105echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21106_ACEOF 21107 21108 21109{ 21110 echo "cat >conf$$subs.awk <<_ACEOF" && 21111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21112 echo "_ACEOF" 21113} >conf$$subs.sh || 21114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21115ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21116ac_delim='%!_!# ' 21117for ac_last_try in false false false false false :; do 21118 . ./conf$$subs.sh || 21119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21120 21121 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21122 if test $ac_delim_n = $ac_delim_num; then 21123 break 21124 elif $ac_last_try; then 21125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21126 else 21127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21128 fi 21129done 21130rm -f conf$$subs.sh 21131 21132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21133cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21134_ACEOF 21135sed -n ' 21136h 21137s/^/S["/; s/!.*/"]=/ 21138p 21139g 21140s/^[^!]*!// 21141:repl 21142t repl 21143s/'"$ac_delim"'$// 21144t delim 21145:nl 21146h 21147s/\(.\{148\}\)..*/\1/ 21148t more1 21149s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21150p 21151n 21152b repl 21153:more1 21154s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21155p 21156g 21157s/.\{148\}// 21158t nl 21159:delim 21160h 21161s/\(.\{148\}\)..*/\1/ 21162t more2 21163s/["\\]/\\&/g; s/^/"/; s/$/"/ 21164p 21165b 21166:more2 21167s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21168p 21169g 21170s/.\{148\}// 21171t delim 21172' <conf$$subs.awk | sed ' 21173/^[^""]/{ 21174 N 21175 s/\n// 21176} 21177' >>$CONFIG_STATUS || ac_write_fail=1 21178rm -f conf$$subs.awk 21179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21180_ACAWK 21181cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21182 for (key in S) S_is_set[key] = 1 21183 FS = "" 21184 21185} 21186{ 21187 line = $ 0 21188 nfields = split(line, field, "@") 21189 substed = 0 21190 len = length(field[1]) 21191 for (i = 2; i < nfields; i++) { 21192 key = field[i] 21193 keylen = length(key) 21194 if (S_is_set[key]) { 21195 value = S[key] 21196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21197 len += length(value) + length(field[++i]) 21198 substed = 1 21199 } else 21200 len += 1 + keylen 21201 } 21202 21203 print line 21204} 21205 21206_ACAWK 21207_ACEOF 21208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21209if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21210 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21211else 21212 cat 21213fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21214 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21215_ACEOF 21216 21217# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21218# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21219# trailing colons and then remove the whole line if VPATH becomes empty 21220# (actually we leave an empty line to preserve line numbers). 21221if test "x$srcdir" = x.; then 21222 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21223h 21224s/// 21225s/^/:/ 21226s/[ ]*$/:/ 21227s/:\$(srcdir):/:/g 21228s/:\${srcdir}:/:/g 21229s/:@srcdir@:/:/g 21230s/^:*// 21231s/:*$// 21232x 21233s/\(=[ ]*\).*/\1/ 21234G 21235s/\n// 21236s/^[^=]*=[ ]*$// 21237}' 21238fi 21239 21240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21241fi # test -n "$CONFIG_FILES" 21242 21243# Set up the scripts for CONFIG_HEADERS section. 21244# No need to generate them if there are no CONFIG_HEADERS. 21245# This happens for instance with `./config.status Makefile'. 21246if test -n "$CONFIG_HEADERS"; then 21247cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21248BEGIN { 21249_ACEOF 21250 21251# Transform confdefs.h into an awk script `defines.awk', embedded as 21252# here-document in config.status, that substitutes the proper values into 21253# config.h.in to produce config.h. 21254 21255# Create a delimiter string that does not exist in confdefs.h, to ease 21256# handling of long lines. 21257ac_delim='%!_!# ' 21258for ac_last_try in false false :; do 21259 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21260 if test -z "$ac_tt"; then 21261 break 21262 elif $ac_last_try; then 21263 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21264 else 21265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21266 fi 21267done 21268 21269# For the awk script, D is an array of macro values keyed by name, 21270# likewise P contains macro parameters if any. Preserve backslash 21271# newline sequences. 21272 21273ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21274sed -n ' 21275s/.\{148\}/&'"$ac_delim"'/g 21276t rset 21277:rset 21278s/^[ ]*#[ ]*define[ ][ ]*/ / 21279t def 21280d 21281:def 21282s/\\$// 21283t bsnl 21284s/["\\]/\\&/g 21285s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21286D["\1"]=" \3"/p 21287s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21288d 21289:bsnl 21290s/["\\]/\\&/g 21291s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21292D["\1"]=" \3\\\\\\n"\\/p 21293t cont 21294s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21295t cont 21296d 21297:cont 21298n 21299s/.\{148\}/&'"$ac_delim"'/g 21300t clear 21301:clear 21302s/\\$// 21303t bsnlc 21304s/["\\]/\\&/g; s/^/"/; s/$/"/p 21305d 21306:bsnlc 21307s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21308b cont 21309' <confdefs.h | sed ' 21310s/'"$ac_delim"'/"\\\ 21311"/g' >>$CONFIG_STATUS || ac_write_fail=1 21312 21313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21314 for (key in D) D_is_set[key] = 1 21315 FS = "" 21316} 21317/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21318 line = \$ 0 21319 split(line, arg, " ") 21320 if (arg[1] == "#") { 21321 defundef = arg[2] 21322 mac1 = arg[3] 21323 } else { 21324 defundef = substr(arg[1], 2) 21325 mac1 = arg[2] 21326 } 21327 split(mac1, mac2, "(") #) 21328 macro = mac2[1] 21329 prefix = substr(line, 1, index(line, defundef) - 1) 21330 if (D_is_set[macro]) { 21331 # Preserve the white space surrounding the "#". 21332 print prefix "define", macro P[macro] D[macro] 21333 next 21334 } else { 21335 # Replace #undef with comments. This is necessary, for example, 21336 # in the case of _POSIX_SOURCE, which is predefined and required 21337 # on some systems where configure will not decide to define it. 21338 if (defundef == "undef") { 21339 print "/*", prefix defundef, macro, "*/" 21340 next 21341 } 21342 } 21343} 21344{ print } 21345_ACAWK 21346_ACEOF 21347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21348 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21349fi # test -n "$CONFIG_HEADERS" 21350 21351 21352eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21353shift 21354for ac_tag 21355do 21356 case $ac_tag in 21357 :[FHLC]) ac_mode=$ac_tag; continue;; 21358 esac 21359 case $ac_mode$ac_tag in 21360 :[FHL]*:*);; 21361 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21362 :[FH]-) ac_tag=-:-;; 21363 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21364 esac 21365 ac_save_IFS=$IFS 21366 IFS=: 21367 set x $ac_tag 21368 IFS=$ac_save_IFS 21369 shift 21370 ac_file=$1 21371 shift 21372 21373 case $ac_mode in 21374 :L) ac_source=$1;; 21375 :[FH]) 21376 ac_file_inputs= 21377 for ac_f 21378 do 21379 case $ac_f in 21380 -) ac_f="$ac_tmp/stdin";; 21381 *) # Look for the file first in the build tree, then in the source tree 21382 # (if the path is not absolute). The absolute path cannot be DOS-style, 21383 # because $ac_f cannot contain `:'. 21384 test -f "$ac_f" || 21385 case $ac_f in 21386 [\\/$]*) false;; 21387 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21388 esac || 21389 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21390 esac 21391 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21392 as_fn_append ac_file_inputs " '$ac_f'" 21393 done 21394 21395 # Let's still pretend it is `configure' which instantiates (i.e., don't 21396 # use $as_me), people would be surprised to read: 21397 # /* config.h. Generated by config.status. */ 21398 configure_input='Generated from '` 21399 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21400 `' by configure.' 21401 if test x"$ac_file" != x-; then 21402 configure_input="$ac_file. $configure_input" 21403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21404printf "%s\n" "$as_me: creating $ac_file" >&6;} 21405 fi 21406 # Neutralize special characters interpreted by sed in replacement strings. 21407 case $configure_input in #( 21408 *\&* | *\|* | *\\* ) 21409 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21410 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21411 *) ac_sed_conf_input=$configure_input;; 21412 esac 21413 21414 case $ac_tag in 21415 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21417 esac 21418 ;; 21419 esac 21420 21421 ac_dir=`$as_dirname -- "$ac_file" || 21422$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21423 X"$ac_file" : 'X\(//\)[^/]' \| \ 21424 X"$ac_file" : 'X\(//\)$' \| \ 21425 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21426printf "%s\n" X"$ac_file" | 21427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21428 s//\1/ 21429 q 21430 } 21431 /^X\(\/\/\)[^/].*/{ 21432 s//\1/ 21433 q 21434 } 21435 /^X\(\/\/\)$/{ 21436 s//\1/ 21437 q 21438 } 21439 /^X\(\/\).*/{ 21440 s//\1/ 21441 q 21442 } 21443 s/.*/./; q'` 21444 as_dir="$ac_dir"; as_fn_mkdir_p 21445 ac_builddir=. 21446 21447case "$ac_dir" in 21448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21449*) 21450 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21451 # A ".." for each directory in $ac_dir_suffix. 21452 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21453 case $ac_top_builddir_sub in 21454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21456 esac ;; 21457esac 21458ac_abs_top_builddir=$ac_pwd 21459ac_abs_builddir=$ac_pwd$ac_dir_suffix 21460# for backward compatibility: 21461ac_top_builddir=$ac_top_build_prefix 21462 21463case $srcdir in 21464 .) # We are building in place. 21465 ac_srcdir=. 21466 ac_top_srcdir=$ac_top_builddir_sub 21467 ac_abs_top_srcdir=$ac_pwd ;; 21468 [\\/]* | ?:[\\/]* ) # Absolute name. 21469 ac_srcdir=$srcdir$ac_dir_suffix; 21470 ac_top_srcdir=$srcdir 21471 ac_abs_top_srcdir=$srcdir ;; 21472 *) # Relative name. 21473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21474 ac_top_srcdir=$ac_top_build_prefix$srcdir 21475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21476esac 21477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21478 21479 21480 case $ac_mode in 21481 :F) 21482 # 21483 # CONFIG_FILE 21484 # 21485 21486 case $INSTALL in 21487 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21488 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21489 esac 21490 ac_MKDIR_P=$MKDIR_P 21491 case $MKDIR_P in 21492 [\\/$]* | ?:[\\/]* ) ;; 21493 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21494 esac 21495_ACEOF 21496 21497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21498# If the template does not know about datarootdir, expand it. 21499# FIXME: This hack should be removed a few years after 2.60. 21500ac_datarootdir_hack=; ac_datarootdir_seen= 21501ac_sed_dataroot=' 21502/datarootdir/ { 21503 p 21504 q 21505} 21506/@datadir@/p 21507/@docdir@/p 21508/@infodir@/p 21509/@localedir@/p 21510/@mandir@/p' 21511case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21512*datarootdir*) ac_datarootdir_seen=yes;; 21513*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21515printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21516_ACEOF 21517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21518 ac_datarootdir_hack=' 21519 s&@datadir@&$datadir&g 21520 s&@docdir@&$docdir&g 21521 s&@infodir@&$infodir&g 21522 s&@localedir@&$localedir&g 21523 s&@mandir@&$mandir&g 21524 s&\\\${datarootdir}&$datarootdir&g' ;; 21525esac 21526_ACEOF 21527 21528# Neutralize VPATH when `$srcdir' = `.'. 21529# Shell code in configure.ac might set extrasub. 21530# FIXME: do we really want to maintain this feature? 21531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21532ac_sed_extra="$ac_vpsub 21533$extrasub 21534_ACEOF 21535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21536:t 21537/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21538s|@configure_input@|$ac_sed_conf_input|;t t 21539s&@top_builddir@&$ac_top_builddir_sub&;t t 21540s&@top_build_prefix@&$ac_top_build_prefix&;t t 21541s&@srcdir@&$ac_srcdir&;t t 21542s&@abs_srcdir@&$ac_abs_srcdir&;t t 21543s&@top_srcdir@&$ac_top_srcdir&;t t 21544s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21545s&@builddir@&$ac_builddir&;t t 21546s&@abs_builddir@&$ac_abs_builddir&;t t 21547s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21548s&@INSTALL@&$ac_INSTALL&;t t 21549s&@MKDIR_P@&$ac_MKDIR_P&;t t 21550$ac_datarootdir_hack 21551" 21552eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21553 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21554 21555test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21558 "$ac_tmp/out"`; test -z "$ac_out"; } && 21559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21560which seems to be undefined. Please make sure it is defined" >&5 21561printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21562which seems to be undefined. Please make sure it is defined" >&2;} 21563 21564 rm -f "$ac_tmp/stdin" 21565 case $ac_file in 21566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21568 esac \ 21569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21570 ;; 21571 :H) 21572 # 21573 # CONFIG_HEADER 21574 # 21575 if test x"$ac_file" != x-; then 21576 { 21577 printf "%s\n" "/* $configure_input */" >&1 \ 21578 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21579 } >"$ac_tmp/config.h" \ 21580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21581 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21583printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21584 else 21585 rm -f "$ac_file" 21586 mv "$ac_tmp/config.h" "$ac_file" \ 21587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21588 fi 21589 else 21590 printf "%s\n" "/* $configure_input */" >&1 \ 21591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21592 || as_fn_error $? "could not create -" "$LINENO" 5 21593 fi 21594# Compute "$ac_file"'s index in $config_headers. 21595_am_arg="$ac_file" 21596_am_stamp_count=1 21597for _am_header in $config_headers :; do 21598 case $_am_header in 21599 $_am_arg | $_am_arg:* ) 21600 break ;; 21601 * ) 21602 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21603 esac 21604done 21605echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21606$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21607 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21608 X"$_am_arg" : 'X\(//\)$' \| \ 21609 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21610printf "%s\n" X"$_am_arg" | 21611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21612 s//\1/ 21613 q 21614 } 21615 /^X\(\/\/\)[^/].*/{ 21616 s//\1/ 21617 q 21618 } 21619 /^X\(\/\/\)$/{ 21620 s//\1/ 21621 q 21622 } 21623 /^X\(\/\).*/{ 21624 s//\1/ 21625 q 21626 } 21627 s/.*/./; q'`/stamp-h$_am_stamp_count 21628 ;; 21629 21630 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21631printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21632 ;; 21633 esac 21634 21635 21636 case $ac_file$ac_mode in 21637 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21638 # Older Autoconf quotes --file arguments for eval, but not when files 21639 # are listed without --file. Let's play safe and only enable the eval 21640 # if we detect the quoting. 21641 # TODO: see whether this extra hack can be removed once we start 21642 # requiring Autoconf 2.70 or later. 21643 case $CONFIG_FILES in #( 21644 *\'*) : 21645 eval set x "$CONFIG_FILES" ;; #( 21646 *) : 21647 set x $CONFIG_FILES ;; #( 21648 *) : 21649 ;; 21650esac 21651 shift 21652 # Used to flag and report bootstrapping failures. 21653 am_rc=0 21654 for am_mf 21655 do 21656 # Strip MF so we end up with the name of the file. 21657 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21658 # Check whether this is an Automake generated Makefile which includes 21659 # dependency-tracking related rules and includes. 21660 # Grep'ing the whole file directly is not great: AIX grep has a line 21661 # limit of 2048, but all sed's we know have understand at least 4000. 21662 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21663 || continue 21664 am_dirpart=`$as_dirname -- "$am_mf" || 21665$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21666 X"$am_mf" : 'X\(//\)[^/]' \| \ 21667 X"$am_mf" : 'X\(//\)$' \| \ 21668 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21669printf "%s\n" X"$am_mf" | 21670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21671 s//\1/ 21672 q 21673 } 21674 /^X\(\/\/\)[^/].*/{ 21675 s//\1/ 21676 q 21677 } 21678 /^X\(\/\/\)$/{ 21679 s//\1/ 21680 q 21681 } 21682 /^X\(\/\).*/{ 21683 s//\1/ 21684 q 21685 } 21686 s/.*/./; q'` 21687 am_filepart=`$as_basename -- "$am_mf" || 21688$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21689 X"$am_mf" : 'X\(//\)$' \| \ 21690 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21691printf "%s\n" X/"$am_mf" | 21692 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21693 s//\1/ 21694 q 21695 } 21696 /^X\/\(\/\/\)$/{ 21697 s//\1/ 21698 q 21699 } 21700 /^X\/\(\/\).*/{ 21701 s//\1/ 21702 q 21703 } 21704 s/.*/./; q'` 21705 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21706 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21707 | $MAKE -f - am--depfiles" >&5 21708 (cd "$am_dirpart" \ 21709 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21710 | $MAKE -f - am--depfiles) >&5 2>&5 21711 ac_status=$? 21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21713 (exit $ac_status); } || am_rc=$? 21714 done 21715 if test $am_rc -ne 0; then 21716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21717printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21718as_fn_error $? "Something went wrong bootstrapping makefile fragments 21719 for automatic dependency tracking. If GNU make was not used, consider 21720 re-running the configure script with MAKE=\"gmake\" (or whatever is 21721 necessary). You can also try re-running configure with the 21722 '--disable-dependency-tracking' option to at least be able to build 21723 the package (albeit without support for automatic dependency tracking). 21724See \`config.log' for more details" "$LINENO" 5; } 21725 fi 21726 { am_dirpart=; unset am_dirpart;} 21727 { am_filepart=; unset am_filepart;} 21728 { am_mf=; unset am_mf;} 21729 { am_rc=; unset am_rc;} 21730 rm -f conftest-deps.mk 21731} 21732 ;; 21733 "libtool":C) 21734 21735 # See if we are running on zsh, and set the options that allow our 21736 # commands through without removal of \ escapes. 21737 if test -n "${ZSH_VERSION+set}"; then 21738 setopt NO_GLOB_SUBST 21739 fi 21740 21741 cfgfile=${ofile}T 21742 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21743 $RM "$cfgfile" 21744 21745 cat <<_LT_EOF >> "$cfgfile" 21746#! $SHELL 21747# Generated automatically by $as_me ($PACKAGE) $VERSION 21748# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21749# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21750 21751# Provide generalized library-building support services. 21752# Written by Gordon Matzigkeit, 1996 21753 21754# Copyright (C) 2014 Free Software Foundation, Inc. 21755# This is free software; see the source for copying conditions. There is NO 21756# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21757 21758# GNU Libtool is free software; you can redistribute it and/or modify 21759# it under the terms of the GNU General Public License as published by 21760# the Free Software Foundation; either version 2 of of the License, or 21761# (at your option) any later version. 21762# 21763# As a special exception to the GNU General Public License, if you 21764# distribute this file as part of a program or library that is built 21765# using GNU Libtool, you may include this file under the same 21766# distribution terms that you use for the rest of that program. 21767# 21768# GNU Libtool is distributed in the hope that it will be useful, but 21769# WITHOUT ANY WARRANTY; without even the implied warranty of 21770# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21771# GNU General Public License for more details. 21772# 21773# You should have received a copy of the GNU General Public License 21774# along with this program. If not, see <http://www.gnu.org/licenses/>. 21775 21776 21777# The names of the tagged configurations supported by this script. 21778available_tags='' 21779 21780# Configured defaults for sys_lib_dlsearch_path munging. 21781: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21782 21783# ### BEGIN LIBTOOL CONFIG 21784 21785# Which release of libtool.m4 was used? 21786macro_version=$macro_version 21787macro_revision=$macro_revision 21788 21789# Whether or not to build shared libraries. 21790build_libtool_libs=$enable_shared 21791 21792# Whether or not to build static libraries. 21793build_old_libs=$enable_static 21794 21795# What type of objects to build. 21796pic_mode=$pic_mode 21797 21798# Whether or not to optimize for fast installation. 21799fast_install=$enable_fast_install 21800 21801# Shared archive member basename,for filename based shared library versioning on AIX. 21802shared_archive_member_spec=$shared_archive_member_spec 21803 21804# Shell to use when invoking shell scripts. 21805SHELL=$lt_SHELL 21806 21807# An echo program that protects backslashes. 21808ECHO=$lt_ECHO 21809 21810# The PATH separator for the build system. 21811PATH_SEPARATOR=$lt_PATH_SEPARATOR 21812 21813# The host system. 21814host_alias=$host_alias 21815host=$host 21816host_os=$host_os 21817 21818# The build system. 21819build_alias=$build_alias 21820build=$build 21821build_os=$build_os 21822 21823# A sed program that does not truncate output. 21824SED=$lt_SED 21825 21826# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21827Xsed="\$SED -e 1s/^X//" 21828 21829# A grep program that handles long lines. 21830GREP=$lt_GREP 21831 21832# An ERE matcher. 21833EGREP=$lt_EGREP 21834 21835# A literal string matcher. 21836FGREP=$lt_FGREP 21837 21838# A BSD- or MS-compatible name lister. 21839NM=$lt_NM 21840 21841# Whether we need soft or hard links. 21842LN_S=$lt_LN_S 21843 21844# What is the maximum length of a command? 21845max_cmd_len=$max_cmd_len 21846 21847# Object file suffix (normally "o"). 21848objext=$ac_objext 21849 21850# Executable file suffix (normally ""). 21851exeext=$exeext 21852 21853# whether the shell understands "unset". 21854lt_unset=$lt_unset 21855 21856# turn spaces into newlines. 21857SP2NL=$lt_lt_SP2NL 21858 21859# turn newlines into spaces. 21860NL2SP=$lt_lt_NL2SP 21861 21862# convert \$build file names to \$host format. 21863to_host_file_cmd=$lt_cv_to_host_file_cmd 21864 21865# convert \$build files to toolchain format. 21866to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21867 21868# A file(cmd) program that detects file types. 21869FILECMD=$lt_FILECMD 21870 21871# An object symbol dumper. 21872OBJDUMP=$lt_OBJDUMP 21873 21874# Method to check whether dependent libraries are shared objects. 21875deplibs_check_method=$lt_deplibs_check_method 21876 21877# Command to use when deplibs_check_method = "file_magic". 21878file_magic_cmd=$lt_file_magic_cmd 21879 21880# How to find potential files when deplibs_check_method = "file_magic". 21881file_magic_glob=$lt_file_magic_glob 21882 21883# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21884want_nocaseglob=$lt_want_nocaseglob 21885 21886# DLL creation program. 21887DLLTOOL=$lt_DLLTOOL 21888 21889# Command to associate shared and link libraries. 21890sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21891 21892# The archiver. 21893AR=$lt_AR 21894 21895# Flags to create an archive (by configure). 21896lt_ar_flags=$lt_ar_flags 21897 21898# Flags to create an archive. 21899AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21900 21901# How to feed a file listing to the archiver. 21902archiver_list_spec=$lt_archiver_list_spec 21903 21904# A symbol stripping program. 21905STRIP=$lt_STRIP 21906 21907# Commands used to install an old-style archive. 21908RANLIB=$lt_RANLIB 21909old_postinstall_cmds=$lt_old_postinstall_cmds 21910old_postuninstall_cmds=$lt_old_postuninstall_cmds 21911 21912# Whether to use a lock for old archive extraction. 21913lock_old_archive_extraction=$lock_old_archive_extraction 21914 21915# A C compiler. 21916LTCC=$lt_CC 21917 21918# LTCC compiler flags. 21919LTCFLAGS=$lt_CFLAGS 21920 21921# Take the output of nm and produce a listing of raw symbols and C names. 21922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21923 21924# Transform the output of nm in a proper C declaration. 21925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21926 21927# Transform the output of nm into a list of symbols to manually relocate. 21928global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21929 21930# Transform the output of nm in a C name address pair. 21931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21932 21933# Transform the output of nm in a C name address pair when lib prefix is needed. 21934global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21935 21936# The name lister interface. 21937nm_interface=$lt_lt_cv_nm_interface 21938 21939# Specify filename containing input files for \$NM. 21940nm_file_list_spec=$lt_nm_file_list_spec 21941 21942# The root where to search for dependent libraries,and where our libraries should be installed. 21943lt_sysroot=$lt_sysroot 21944 21945# Command to truncate a binary pipe. 21946lt_truncate_bin=$lt_lt_cv_truncate_bin 21947 21948# The name of the directory that contains temporary libtool files. 21949objdir=$objdir 21950 21951# Used to examine libraries when file_magic_cmd begins with "file". 21952MAGIC_CMD=$MAGIC_CMD 21953 21954# Must we lock files when doing compilation? 21955need_locks=$lt_need_locks 21956 21957# Manifest tool. 21958MANIFEST_TOOL=$lt_MANIFEST_TOOL 21959 21960# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21961DSYMUTIL=$lt_DSYMUTIL 21962 21963# Tool to change global to local symbols on Mac OS X. 21964NMEDIT=$lt_NMEDIT 21965 21966# Tool to manipulate fat objects and archives on Mac OS X. 21967LIPO=$lt_LIPO 21968 21969# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21970OTOOL=$lt_OTOOL 21971 21972# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21973OTOOL64=$lt_OTOOL64 21974 21975# Old archive suffix (normally "a"). 21976libext=$libext 21977 21978# Shared library suffix (normally ".so"). 21979shrext_cmds=$lt_shrext_cmds 21980 21981# The commands to extract the exported symbol list from a shared archive. 21982extract_expsyms_cmds=$lt_extract_expsyms_cmds 21983 21984# Variables whose values should be saved in libtool wrapper scripts and 21985# restored at link time. 21986variables_saved_for_relink=$lt_variables_saved_for_relink 21987 21988# Do we need the "lib" prefix for modules? 21989need_lib_prefix=$need_lib_prefix 21990 21991# Do we need a version for libraries? 21992need_version=$need_version 21993 21994# Library versioning type. 21995version_type=$version_type 21996 21997# Shared library runtime path variable. 21998runpath_var=$runpath_var 21999 22000# Shared library path variable. 22001shlibpath_var=$shlibpath_var 22002 22003# Is shlibpath searched before the hard-coded library search path? 22004shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22005 22006# Format of library name prefix. 22007libname_spec=$lt_libname_spec 22008 22009# List of archive names. First name is the real one, the rest are links. 22010# The last name is the one that the linker finds with -lNAME 22011library_names_spec=$lt_library_names_spec 22012 22013# The coded name of the library, if different from the real name. 22014soname_spec=$lt_soname_spec 22015 22016# Permission mode override for installation of shared libraries. 22017install_override_mode=$lt_install_override_mode 22018 22019# Command to use after installation of a shared archive. 22020postinstall_cmds=$lt_postinstall_cmds 22021 22022# Command to use after uninstallation of a shared archive. 22023postuninstall_cmds=$lt_postuninstall_cmds 22024 22025# Commands used to finish a libtool library installation in a directory. 22026finish_cmds=$lt_finish_cmds 22027 22028# As "finish_cmds", except a single script fragment to be evaled but 22029# not shown. 22030finish_eval=$lt_finish_eval 22031 22032# Whether we should hardcode library paths into libraries. 22033hardcode_into_libs=$hardcode_into_libs 22034 22035# Compile-time system search path for libraries. 22036sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22037 22038# Detected run-time system search path for libraries. 22039sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22040 22041# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22042configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22043 22044# Whether dlopen is supported. 22045dlopen_support=$enable_dlopen 22046 22047# Whether dlopen of programs is supported. 22048dlopen_self=$enable_dlopen_self 22049 22050# Whether dlopen of statically linked programs is supported. 22051dlopen_self_static=$enable_dlopen_self_static 22052 22053# Commands to strip libraries. 22054old_striplib=$lt_old_striplib 22055striplib=$lt_striplib 22056 22057 22058# The linker used to build libraries. 22059LD=$lt_LD 22060 22061# How to create reloadable object files. 22062reload_flag=$lt_reload_flag 22063reload_cmds=$lt_reload_cmds 22064 22065# Commands used to build an old-style archive. 22066old_archive_cmds=$lt_old_archive_cmds 22067 22068# A language specific compiler. 22069CC=$lt_compiler 22070 22071# Is the compiler the GNU compiler? 22072with_gcc=$GCC 22073 22074# Compiler flag to turn off builtin functions. 22075no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22076 22077# Additional compiler flags for building library objects. 22078pic_flag=$lt_lt_prog_compiler_pic 22079 22080# How to pass a linker flag through the compiler. 22081wl=$lt_lt_prog_compiler_wl 22082 22083# Compiler flag to prevent dynamic linking. 22084link_static_flag=$lt_lt_prog_compiler_static 22085 22086# Does compiler simultaneously support -c and -o options? 22087compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22088 22089# Whether or not to add -lc for building shared libraries. 22090build_libtool_need_lc=$archive_cmds_need_lc 22091 22092# Whether or not to disallow shared libs when runtime libs are static. 22093allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22094 22095# Compiler flag to allow reflexive dlopens. 22096export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22097 22098# Compiler flag to generate shared objects directly from archives. 22099whole_archive_flag_spec=$lt_whole_archive_flag_spec 22100 22101# Whether the compiler copes with passing no objects directly. 22102compiler_needs_object=$lt_compiler_needs_object 22103 22104# Create an old-style archive from a shared archive. 22105old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22106 22107# Create a temporary old-style archive to link instead of a shared archive. 22108old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22109 22110# Commands used to build a shared archive. 22111archive_cmds=$lt_archive_cmds 22112archive_expsym_cmds=$lt_archive_expsym_cmds 22113 22114# Commands used to build a loadable module if different from building 22115# a shared archive. 22116module_cmds=$lt_module_cmds 22117module_expsym_cmds=$lt_module_expsym_cmds 22118 22119# Whether we are building with GNU ld or not. 22120with_gnu_ld=$lt_with_gnu_ld 22121 22122# Flag that allows shared libraries with undefined symbols to be built. 22123allow_undefined_flag=$lt_allow_undefined_flag 22124 22125# Flag that enforces no undefined symbols. 22126no_undefined_flag=$lt_no_undefined_flag 22127 22128# Flag to hardcode \$libdir into a binary during linking. 22129# This must work even if \$libdir does not exist 22130hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22131 22132# Whether we need a single "-rpath" flag with a separated argument. 22133hardcode_libdir_separator=$lt_hardcode_libdir_separator 22134 22135# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22136# DIR into the resulting binary. 22137hardcode_direct=$hardcode_direct 22138 22139# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22140# DIR into the resulting binary and the resulting library dependency is 22141# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22142# library is relocated. 22143hardcode_direct_absolute=$hardcode_direct_absolute 22144 22145# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22146# into the resulting binary. 22147hardcode_minus_L=$hardcode_minus_L 22148 22149# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22150# into the resulting binary. 22151hardcode_shlibpath_var=$hardcode_shlibpath_var 22152 22153# Set to "yes" if building a shared library automatically hardcodes DIR 22154# into the library and all subsequent libraries and executables linked 22155# against it. 22156hardcode_automatic=$hardcode_automatic 22157 22158# Set to yes if linker adds runtime paths of dependent libraries 22159# to runtime path list. 22160inherit_rpath=$inherit_rpath 22161 22162# Whether libtool must link a program against all its dependency libraries. 22163link_all_deplibs=$link_all_deplibs 22164 22165# Set to "yes" if exported symbols are required. 22166always_export_symbols=$always_export_symbols 22167 22168# The commands to list exported symbols. 22169export_symbols_cmds=$lt_export_symbols_cmds 22170 22171# Symbols that should not be listed in the preloaded symbols. 22172exclude_expsyms=$lt_exclude_expsyms 22173 22174# Symbols that must always be exported. 22175include_expsyms=$lt_include_expsyms 22176 22177# Commands necessary for linking programs (against libraries) with templates. 22178prelink_cmds=$lt_prelink_cmds 22179 22180# Commands necessary for finishing linking programs. 22181postlink_cmds=$lt_postlink_cmds 22182 22183# Specify filename containing input files. 22184file_list_spec=$lt_file_list_spec 22185 22186# How to hardcode a shared library path into an executable. 22187hardcode_action=$hardcode_action 22188 22189# ### END LIBTOOL CONFIG 22190 22191_LT_EOF 22192 22193 cat <<'_LT_EOF' >> "$cfgfile" 22194 22195# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22196 22197# func_munge_path_list VARIABLE PATH 22198# ----------------------------------- 22199# VARIABLE is name of variable containing _space_ separated list of 22200# directories to be munged by the contents of PATH, which is string 22201# having a format: 22202# "DIR[:DIR]:" 22203# string "DIR[ DIR]" will be prepended to VARIABLE 22204# ":DIR[:DIR]" 22205# string "DIR[ DIR]" will be appended to VARIABLE 22206# "DIRP[:DIRP]::[DIRA:]DIRA" 22207# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22208# "DIRA[ DIRA]" will be appended to VARIABLE 22209# "DIR[:DIR]" 22210# VARIABLE will be replaced by "DIR[ DIR]" 22211func_munge_path_list () 22212{ 22213 case x$2 in 22214 x) 22215 ;; 22216 *:) 22217 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22218 ;; 22219 x:*) 22220 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22221 ;; 22222 *::*) 22223 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22224 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22225 ;; 22226 *) 22227 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22228 ;; 22229 esac 22230} 22231 22232 22233# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22234func_cc_basename () 22235{ 22236 for cc_temp in $*""; do 22237 case $cc_temp in 22238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22240 \-*) ;; 22241 *) break;; 22242 esac 22243 done 22244 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22245} 22246 22247 22248# ### END FUNCTIONS SHARED WITH CONFIGURE 22249 22250_LT_EOF 22251 22252 case $host_os in 22253 aix3*) 22254 cat <<\_LT_EOF >> "$cfgfile" 22255# AIX sometimes has problems with the GCC collect2 program. For some 22256# reason, if we set the COLLECT_NAMES environment variable, the problems 22257# vanish in a puff of smoke. 22258if test set != "${COLLECT_NAMES+set}"; then 22259 COLLECT_NAMES= 22260 export COLLECT_NAMES 22261fi 22262_LT_EOF 22263 ;; 22264 esac 22265 22266 22267 22268ltmain=$ac_aux_dir/ltmain.sh 22269 22270 22271 # We use sed instead of cat because bash on DJGPP gets confused if 22272 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22273 # text mode, it properly converts lines to CR/LF. This bash problem 22274 # is reportedly fixed, but why not run on old versions too? 22275 $SED '$q' "$ltmain" >> "$cfgfile" \ 22276 || (rm -f "$cfgfile"; exit 1) 22277 22278 mv -f "$cfgfile" "$ofile" || 22279 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22280 chmod +x "$ofile" 22281 22282 ;; 22283 22284 esac 22285done # for ac_tag 22286 22287 22288as_fn_exit 0 22289_ACEOF 22290ac_clean_files=$ac_clean_files_save 22291 22292test $ac_write_fail = 0 || 22293 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22294 22295 22296# configure is writing to config.log, and then calls config.status. 22297# config.status does its own redirection, appending to config.log. 22298# Unfortunately, on DOS this fails, as config.log is still kept open 22299# by configure, so config.status won't be able to write to it; its 22300# output is simply discarded. So we exec the FD to /dev/null, 22301# effectively closing config.log, so it can be properly (re)opened and 22302# appended to by config.status. When coming back to configure, we 22303# need to make the FD available again. 22304if test "$no_create" != yes; then 22305 ac_cs_success=: 22306 ac_config_status_args= 22307 test "$silent" = yes && 22308 ac_config_status_args="$ac_config_status_args --quiet" 22309 exec 5>/dev/null 22310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22311 exec 5>>config.log 22312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22313 # would make configure fail if this is the last instruction. 22314 $ac_cs_success || as_fn_exit 1 22315fi 22316if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22318printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22319fi 22320 22321 22322