configure revision 6a94483f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libpciaccess 0.13.4. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libpciaccess' 593PACKAGE_TARNAME='libpciaccess' 594PACKAGE_VERSION='0.13.4' 595PACKAGE_STRING='libpciaccess 0.13.4' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640PCIACCESS_LIBS 641PCIACCESS_CFLAGS 642CYGWIN_FALSE 643CYGWIN_TRUE 644GNU_FALSE 645GNU_TRUE 646SOLARIS_FALSE 647SOLARIS_TRUE 648OPENBSD_FALSE 649OPENBSD_TRUE 650NETBSD_FALSE 651NETBSD_TRUE 652FREEBSD_FALSE 653FREEBSD_TRUE 654LINUX_FALSE 655LINUX_TRUE 656PCIIDS_PATH 657MAN_SUBSTS 658XORG_MAN_PAGE 659ADMIN_MAN_DIR 660DRIVER_MAN_DIR 661MISC_MAN_DIR 662FILE_MAN_DIR 663LIB_MAN_DIR 664APP_MAN_DIR 665ADMIN_MAN_SUFFIX 666DRIVER_MAN_SUFFIX 667MISC_MAN_SUFFIX 668FILE_MAN_SUFFIX 669LIB_MAN_SUFFIX 670APP_MAN_SUFFIX 671INSTALL_CMD 672PKG_CONFIG 673CHANGELOG_CMD 674STRICT_CFLAGS 675CWARNFLAGS 676BASE_CFLAGS 677OTOOL64 678OTOOL 679LIPO 680NMEDIT 681DSYMUTIL 682MANIFEST_TOOL 683RANLIB 684ac_ct_AR 685AR 686DLLTOOL 687OBJDUMP 688LN_S 689NM 690ac_ct_DUMPBIN 691DUMPBIN 692LD 693FGREP 694SED 695host_os 696host_vendor 697host_cpu 698host 699build_os 700build_vendor 701build_cpu 702build 703LIBTOOL 704EGREP 705GREP 706CPP 707am__fastdepCC_FALSE 708am__fastdepCC_TRUE 709CCDEPMODE 710am__nodep 711AMDEPBACKSLASH 712AMDEP_FALSE 713AMDEP_TRUE 714am__quote 715am__include 716DEPDIR 717OBJEXT 718EXEEXT 719ac_ct_CC 720CPPFLAGS 721LDFLAGS 722CFLAGS 723CC 724AM_BACKSLASH 725AM_DEFAULT_VERBOSITY 726AM_DEFAULT_V 727AM_V 728am__untar 729am__tar 730AMTAR 731am__leading_dot 732SET_MAKE 733AWK 734mkdir_p 735MKDIR_P 736INSTALL_STRIP_PROGRAM 737STRIP 738install_sh 739MAKEINFO 740AUTOHEADER 741AUTOMAKE 742AUTOCONF 743ACLOCAL 744VERSION 745PACKAGE 746CYGPATH_W 747am__isrc 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751target_alias 752host_alias 753build_alias 754LIBS 755ECHO_T 756ECHO_N 757ECHO_C 758DEFS 759mandir 760localedir 761libdir 762psdir 763pdfdir 764dvidir 765htmldir 766infodir 767docdir 768oldincludedir 769includedir 770localstatedir 771sharedstatedir 772sysconfdir 773datadir 774datarootdir 775libexecdir 776sbindir 777bindir 778program_transform_name 779prefix 780exec_prefix 781PACKAGE_URL 782PACKAGE_BUGREPORT 783PACKAGE_STRING 784PACKAGE_VERSION 785PACKAGE_TARNAME 786PACKAGE_NAME 787PATH_SEPARATOR 788SHELL' 789ac_subst_files='' 790ac_user_opts=' 791enable_option_checking 792enable_silent_rules 793enable_dependency_tracking 794enable_shared 795enable_static 796with_pic 797enable_fast_install 798with_gnu_ld 799with_sysroot 800enable_libtool_lock 801enable_selective_werror 802enable_strict_compilation 803with_pciids_path 804enable_linux_rom_fallback 805with_zlib 806enable_largefile 807' 808 ac_precious_vars='build_alias 809host_alias 810target_alias 811CC 812CFLAGS 813LDFLAGS 814LIBS 815CPPFLAGS 816CPP 817PKG_CONFIG' 818 819 820# Initialize some variables set by options. 821ac_init_help= 822ac_init_version=false 823ac_unrecognized_opts= 824ac_unrecognized_sep= 825# The variables have the same names as the options, with 826# dashes changed to underlines. 827cache_file=/dev/null 828exec_prefix=NONE 829no_create= 830no_recursion= 831prefix=NONE 832program_prefix=NONE 833program_suffix=NONE 834program_transform_name=s,x,x, 835silent= 836site= 837srcdir= 838verbose= 839x_includes=NONE 840x_libraries=NONE 841 842# Installation directory options. 843# These are left unexpanded so users can "make install exec_prefix=/foo" 844# and all the variables that are supposed to be based on exec_prefix 845# by default will actually change. 846# Use braces instead of parens because sh, perl, etc. also accept them. 847# (The list follows the same order as the GNU Coding Standards.) 848bindir='${exec_prefix}/bin' 849sbindir='${exec_prefix}/sbin' 850libexecdir='${exec_prefix}/libexec' 851datarootdir='${prefix}/share' 852datadir='${datarootdir}' 853sysconfdir='${prefix}/etc' 854sharedstatedir='${prefix}/com' 855localstatedir='${prefix}/var' 856includedir='${prefix}/include' 857oldincludedir='/usr/include' 858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 859infodir='${datarootdir}/info' 860htmldir='${docdir}' 861dvidir='${docdir}' 862pdfdir='${docdir}' 863psdir='${docdir}' 864libdir='${exec_prefix}/lib' 865localedir='${datarootdir}/locale' 866mandir='${datarootdir}/man' 867 868ac_prev= 869ac_dashdash= 870for ac_option 871do 872 # If the previous option needs an argument, assign it. 873 if test -n "$ac_prev"; then 874 eval $ac_prev=\$ac_option 875 ac_prev= 876 continue 877 fi 878 879 case $ac_option in 880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 881 *=) ac_optarg= ;; 882 *) ac_optarg=yes ;; 883 esac 884 885 # Accept the important Cygnus configure options, so we can diagnose typos. 886 887 case $ac_dashdash$ac_option in 888 --) 889 ac_dashdash=yes ;; 890 891 -bindir | --bindir | --bindi | --bind | --bin | --bi) 892 ac_prev=bindir ;; 893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 894 bindir=$ac_optarg ;; 895 896 -build | --build | --buil | --bui | --bu) 897 ac_prev=build_alias ;; 898 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 899 build_alias=$ac_optarg ;; 900 901 -cache-file | --cache-file | --cache-fil | --cache-fi \ 902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 903 ac_prev=cache_file ;; 904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 906 cache_file=$ac_optarg ;; 907 908 --config-cache | -C) 909 cache_file=config.cache ;; 910 911 -datadir | --datadir | --datadi | --datad) 912 ac_prev=datadir ;; 913 -datadir=* | --datadir=* | --datadi=* | --datad=*) 914 datadir=$ac_optarg ;; 915 916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 917 | --dataroo | --dataro | --datar) 918 ac_prev=datarootdir ;; 919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 921 datarootdir=$ac_optarg ;; 922 923 -disable-* | --disable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=\$ac_optarg ;; 964 965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967 | --exec | --exe | --ex) 968 ac_prev=exec_prefix ;; 969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971 | --exec=* | --exe=* | --ex=*) 972 exec_prefix=$ac_optarg ;; 973 974 -gas | --gas | --ga | --g) 975 # Obsolete; use --with-gas. 976 with_gas=yes ;; 977 978 -help | --help | --hel | --he | -h) 979 ac_init_help=long ;; 980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981 ac_init_help=recursive ;; 982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983 ac_init_help=short ;; 984 985 -host | --host | --hos | --ho) 986 ac_prev=host_alias ;; 987 -host=* | --host=* | --hos=* | --ho=*) 988 host_alias=$ac_optarg ;; 989 990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991 ac_prev=htmldir ;; 992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993 | --ht=*) 994 htmldir=$ac_optarg ;; 995 996 -includedir | --includedir | --includedi | --included | --include \ 997 | --includ | --inclu | --incl | --inc) 998 ac_prev=includedir ;; 999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000 | --includ=* | --inclu=* | --incl=* | --inc=*) 1001 includedir=$ac_optarg ;; 1002 1003 -infodir | --infodir | --infodi | --infod | --info | --inf) 1004 ac_prev=infodir ;; 1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006 infodir=$ac_optarg ;; 1007 1008 -libdir | --libdir | --libdi | --libd) 1009 ac_prev=libdir ;; 1010 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011 libdir=$ac_optarg ;; 1012 1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014 | --libexe | --libex | --libe) 1015 ac_prev=libexecdir ;; 1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017 | --libexe=* | --libex=* | --libe=*) 1018 libexecdir=$ac_optarg ;; 1019 1020 -localedir | --localedir | --localedi | --localed | --locale) 1021 ac_prev=localedir ;; 1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023 localedir=$ac_optarg ;; 1024 1025 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026 | --localstate | --localstat | --localsta | --localst | --locals) 1027 ac_prev=localstatedir ;; 1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030 localstatedir=$ac_optarg ;; 1031 1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033 ac_prev=mandir ;; 1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035 mandir=$ac_optarg ;; 1036 1037 -nfp | --nfp | --nf) 1038 # Obsolete; use --without-fp. 1039 with_fp=no ;; 1040 1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042 | --no-cr | --no-c | -n) 1043 no_create=yes ;; 1044 1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047 no_recursion=yes ;; 1048 1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051 | --oldin | --oldi | --old | --ol | --o) 1052 ac_prev=oldincludedir ;; 1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056 oldincludedir=$ac_optarg ;; 1057 1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059 ac_prev=prefix ;; 1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061 prefix=$ac_optarg ;; 1062 1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064 | --program-pre | --program-pr | --program-p) 1065 ac_prev=program_prefix ;; 1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068 program_prefix=$ac_optarg ;; 1069 1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071 | --program-suf | --program-su | --program-s) 1072 ac_prev=program_suffix ;; 1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075 program_suffix=$ac_optarg ;; 1076 1077 -program-transform-name | --program-transform-name \ 1078 | --program-transform-nam | --program-transform-na \ 1079 | --program-transform-n | --program-transform- \ 1080 | --program-transform | --program-transfor \ 1081 | --program-transfo | --program-transf \ 1082 | --program-trans | --program-tran \ 1083 | --progr-tra | --program-tr | --program-t) 1084 ac_prev=program_transform_name ;; 1085 -program-transform-name=* | --program-transform-name=* \ 1086 | --program-transform-nam=* | --program-transform-na=* \ 1087 | --program-transform-n=* | --program-transform-=* \ 1088 | --program-transform=* | --program-transfor=* \ 1089 | --program-transfo=* | --program-transf=* \ 1090 | --program-trans=* | --program-tran=* \ 1091 | --progr-tra=* | --program-tr=* | --program-t=*) 1092 program_transform_name=$ac_optarg ;; 1093 1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095 ac_prev=pdfdir ;; 1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097 pdfdir=$ac_optarg ;; 1098 1099 -psdir | --psdir | --psdi | --psd | --ps) 1100 ac_prev=psdir ;; 1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102 psdir=$ac_optarg ;; 1103 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 silent=yes ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=\$ac_optarg ;; 1168 1169 -without-* | --without-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=no ;; 1184 1185 --x) 1186 # Obsolete; use --with-x. 1187 with_x=yes ;; 1188 1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1190 | --x-incl | --x-inc | --x-in | --x-i) 1191 ac_prev=x_includes ;; 1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1194 x_includes=$ac_optarg ;; 1195 1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1198 ac_prev=x_libraries ;; 1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1201 x_libraries=$ac_optarg ;; 1202 1203 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1204Try \`$0 --help' for more information" 1205 ;; 1206 1207 *=*) 1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1209 # Reject names that are not valid shell variable names. 1210 case $ac_envvar in #( 1211 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1213 esac 1214 eval $ac_envvar=\$ac_optarg 1215 export $ac_envvar ;; 1216 1217 *) 1218 # FIXME: should be removed in autoconf 3.0. 1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1223 ;; 1224 1225 esac 1226done 1227 1228if test -n "$ac_prev"; then 1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1230 as_fn_error $? "missing argument to $ac_option" 1231fi 1232 1233if test -n "$ac_unrecognized_opts"; then 1234 case $enable_option_checking in 1235 no) ;; 1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1238 esac 1239fi 1240 1241# Check all directory arguments for consistency. 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245 libdir localedir mandir 1246do 1247 eval ac_val=\$$ac_var 1248 # Remove trailing slashes. 1249 case $ac_val in 1250 */ ) 1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1252 eval $ac_var=\$ac_val;; 1253 esac 1254 # Be sure to have absolute directory names. 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1260done 1261 1262# There might be people who depend on the old broken behavior: `$host' 1263# used to hold the argument of --host etc. 1264# FIXME: To remove some day. 1265build=$build_alias 1266host=$host_alias 1267target=$target_alias 1268 1269# FIXME: To remove some day. 1270if test "x$host_alias" != x; then 1271 if test "x$build_alias" = x; then 1272 cross_compiling=maybe 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures libpciaccess 0.13.4 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/libpciaccess] 1407 --htmldir=DIR html documentation [DOCDIR] 1408 --dvidir=DIR dvi documentation [DOCDIR] 1409 --pdfdir=DIR pdf documentation [DOCDIR] 1410 --psdir=DIR ps documentation [DOCDIR] 1411_ACEOF 1412 1413 cat <<\_ACEOF 1414 1415Program names: 1416 --program-prefix=PREFIX prepend PREFIX to installed program names 1417 --program-suffix=SUFFIX append SUFFIX to installed program names 1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1419 1420System types: 1421 --build=BUILD configure for building on BUILD [guessed] 1422 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1423_ACEOF 1424fi 1425 1426if test -n "$ac_init_help"; then 1427 case $ac_init_help in 1428 short | recursive ) echo "Configuration of libpciaccess 0.13.4:";; 1429 esac 1430 cat <<\_ACEOF 1431 1432Optional Features: 1433 --disable-option-checking ignore unrecognized --enable/--with options 1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436 --enable-silent-rules less verbose build output (undo: "make V=1") 1437 --disable-silent-rules verbose build output (undo: "make V=0") 1438 --enable-dependency-tracking 1439 do not reject slow dependency extractors 1440 --disable-dependency-tracking 1441 speeds up one-time build 1442 --enable-shared[=PKGS] build shared libraries [default=yes] 1443 --enable-static[=PKGS] build static libraries [default=yes] 1444 --enable-fast-install[=PKGS] 1445 optimize for fast installation [default=yes] 1446 --disable-libtool-lock avoid locking (might break parallel builds) 1447 --disable-selective-werror 1448 Turn off selective compiler errors. (default: 1449 enabled) 1450 --enable-strict-compilation 1451 Enable all warnings from compiler and make them 1452 errors (default: disabled) 1453 --enable-linux-rom-fallback 1454 Enable support for falling back to /dev/mem for roms 1455 (default: disabled) 1456 --disable-largefile omit support for large files 1457 1458Optional Packages: 1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1462 both] 1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1464 --with-sysroot=DIR Search for dependent libraries within DIR 1465 (or the compiler's sysroot if not specified). 1466 --with-pciids-path=PCIIDS_PATH 1467 Path to pci.ids file 1468 --with-zlib Enable zlib support to read gzip compressed pci.ids 1469 1470Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 CPP C preprocessor 1479 PKG_CONFIG path to pkg-config utility 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>. 1485_ACEOF 1486ac_status=$? 1487fi 1488 1489if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497case "$ac_dir" in 1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499*) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507esac 1508ac_abs_top_builddir=$ac_pwd 1509ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510# for backward compatibility: 1511ac_top_builddir=$ac_top_build_prefix 1512 1513case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526esac 1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542fi 1543 1544test -n "$ac_init_help" && exit $ac_status 1545if $ac_init_version; then 1546 cat <<\_ACEOF 1547libpciaccess configure 0.13.4 1548generated by GNU Autoconf 2.69 1549 1550Copyright (C) 2012 Free Software Foundation, Inc. 1551This configure script is free software; the Free Software Foundation 1552gives unlimited permission to copy, distribute and modify it. 1553_ACEOF 1554 exit 1555fi 1556 1557## ------------------------ ## 1558## Autoconf initialization. ## 1559## ------------------------ ## 1560 1561# ac_fn_c_try_compile LINENO 1562# -------------------------- 1563# Try to compile conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_compile () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572esac 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574$as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_try_cpp LINENO 1600# ---------------------- 1601# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_cpp () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 if { { ac_try="$ac_cpp conftest.$ac_ext" 1606case "(($ac_try" in 1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1608 *) ac_try_echo=$ac_try;; 1609esac 1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1611$as_echo "$ac_try_echo"; } >&5 1612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1613 ac_status=$? 1614 if test -s conftest.err; then 1615 grep -v '^ *+' conftest.err >conftest.er1 1616 cat conftest.er1 >&5 1617 mv -f conftest.er1 conftest.err 1618 fi 1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1620 test $ac_status = 0; } > conftest.i && { 1621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1622 test ! -s conftest.err 1623 }; then : 1624 ac_retval=0 1625else 1626 $as_echo "$as_me: failed program was:" >&5 1627sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 1630fi 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 as_fn_set_status $ac_retval 1633 1634} # ac_fn_c_try_cpp 1635 1636# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1637# ------------------------------------------------------- 1638# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1639# the include files in INCLUDES and setting the cache variable VAR 1640# accordingly. 1641ac_fn_c_check_header_mongrel () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 if eval \${$3+:} false; then : 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1646$as_echo_n "checking for $2... " >&6; } 1647if eval \${$3+:} false; then : 1648 $as_echo_n "(cached) " >&6 1649fi 1650eval ac_res=\$$3 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1652$as_echo "$ac_res" >&6; } 1653else 1654 # Is the header compilable? 1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1656$as_echo_n "checking $2 usability... " >&6; } 1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658/* end confdefs.h. */ 1659$4 1660#include <$2> 1661_ACEOF 1662if ac_fn_c_try_compile "$LINENO"; then : 1663 ac_header_compiler=yes 1664else 1665 ac_header_compiler=no 1666fi 1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1669$as_echo "$ac_header_compiler" >&6; } 1670 1671# Is the header present? 1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1673$as_echo_n "checking $2 presence... " >&6; } 1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676#include <$2> 1677_ACEOF 1678if ac_fn_c_try_cpp "$LINENO"; then : 1679 ac_header_preproc=yes 1680else 1681 ac_header_preproc=no 1682fi 1683rm -f conftest.err conftest.i conftest.$ac_ext 1684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1685$as_echo "$ac_header_preproc" >&6; } 1686 1687# So? What about this header? 1688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1689 yes:no: ) 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1691$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1693$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1694 ;; 1695 no:yes:* ) 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1697$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1699$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1701$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1703$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1706( $as_echo "## --------------------------------------------------------------------------------------------- ## 1707## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ## 1708## --------------------------------------------------------------------------------------------- ##" 1709 ) | sed "s/^/$as_me: WARNING: /" >&2 1710 ;; 1711esac 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1713$as_echo_n "checking for $2... " >&6; } 1714if eval \${$3+:} false; then : 1715 $as_echo_n "(cached) " >&6 1716else 1717 eval "$3=\$ac_header_compiler" 1718fi 1719eval ac_res=\$$3 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1721$as_echo "$ac_res" >&6; } 1722fi 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1724 1725} # ac_fn_c_check_header_mongrel 1726 1727# ac_fn_c_try_run LINENO 1728# ---------------------- 1729# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1730# that executables *can* be run. 1731ac_fn_c_try_run () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 if { { ac_try="$ac_link" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_link") 2>&5 1742 ac_status=$? 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1745 { { case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_try") 2>&5 1752 ac_status=$? 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; }; }; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: program exited with status $ac_status" >&5 1758 $as_echo "$as_me: failed program was:" >&5 1759sed 's/^/| /' conftest.$ac_ext >&5 1760 1761 ac_retval=$ac_status 1762fi 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_run 1768 1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1770# ------------------------------------------------------- 1771# Tests whether HEADER exists and can be compiled using the include files in 1772# INCLUDES, setting the cache variable VAR accordingly. 1773ac_fn_c_check_header_compile () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1777$as_echo_n "checking for $2... " >&6; } 1778if eval \${$3+:} false; then : 1779 $as_echo_n "(cached) " >&6 1780else 1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782/* end confdefs.h. */ 1783$4 1784#include <$2> 1785_ACEOF 1786if ac_fn_c_try_compile "$LINENO"; then : 1787 eval "$3=yes" 1788else 1789 eval "$3=no" 1790fi 1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_header_compile 1799 1800# ac_fn_c_try_link LINENO 1801# ----------------------- 1802# Try to link conftest.$ac_ext, and return whether this succeeded. 1803ac_fn_c_try_link () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 rm -f conftest.$ac_objext conftest$ac_exeext 1807 if { { ac_try="$ac_link" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_link") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { 1823 test -z "$ac_c_werror_flag" || 1824 test ! -s conftest.err 1825 } && test -s conftest$ac_exeext && { 1826 test "$cross_compiling" = yes || 1827 test -x conftest$ac_exeext 1828 }; then : 1829 ac_retval=0 1830else 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=1 1835fi 1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1838 # interfere with the next link command; also delete a directory that is 1839 # left behind by Apple's compiler. We do this before executing the actions. 1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 as_fn_set_status $ac_retval 1843 1844} # ac_fn_c_try_link 1845 1846# ac_fn_c_check_func LINENO FUNC VAR 1847# ---------------------------------- 1848# Tests whether FUNC exists, setting the cache variable VAR accordingly 1849ac_fn_c_check_func () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853$as_echo_n "checking for $2... " >&6; } 1854if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856else 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858/* end confdefs.h. */ 1859/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1861#define $2 innocuous_$2 1862 1863/* System header to define __stub macros and hopefully few prototypes, 1864 which can conflict with char $2 (); below. 1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1866 <limits.h> exists even on freestanding compilers. */ 1867 1868#ifdef __STDC__ 1869# include <limits.h> 1870#else 1871# include <assert.h> 1872#endif 1873 1874#undef $2 1875 1876/* Override any GCC internal prototype to avoid an error. 1877 Use char because int might match the return type of a GCC 1878 builtin and then its argument prototype would still apply. */ 1879#ifdef __cplusplus 1880extern "C" 1881#endif 1882char $2 (); 1883/* The GNU C library defines this for functions which it implements 1884 to always fail with ENOSYS. Some functions are actually named 1885 something starting with __ and the normal name is an alias. */ 1886#if defined __stub_$2 || defined __stub___$2 1887choke me 1888#endif 1889 1890int 1891main () 1892{ 1893return $2 (); 1894 ; 1895 return 0; 1896} 1897_ACEOF 1898if ac_fn_c_try_link "$LINENO"; then : 1899 eval "$3=yes" 1900else 1901 eval "$3=no" 1902fi 1903rm -f core conftest.err conftest.$ac_objext \ 1904 conftest$ac_exeext conftest.$ac_ext 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 1911} # ac_fn_c_check_func 1912 1913# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1914# --------------------------------------------- 1915# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1916# accordingly. 1917ac_fn_c_check_decl () 1918{ 1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 as_decl_name=`echo $2|sed 's/ *(.*//'` 1921 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1923$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1924if eval \${$3+:} false; then : 1925 $as_echo_n "(cached) " >&6 1926else 1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929$4 1930int 1931main () 1932{ 1933#ifndef $as_decl_name 1934#ifdef __cplusplus 1935 (void) $as_decl_use; 1936#else 1937 (void) $as_decl_name; 1938#endif 1939#endif 1940 1941 ; 1942 return 0; 1943} 1944_ACEOF 1945if ac_fn_c_try_compile "$LINENO"; then : 1946 eval "$3=yes" 1947else 1948 eval "$3=no" 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 1957} # ac_fn_c_check_decl 1958 1959# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1960# ---------------------------------------------------- 1961# Tries to find if the field MEMBER exists in type AGGR, after including 1962# INCLUDES, setting cache variable VAR accordingly. 1963ac_fn_c_check_member () 1964{ 1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1967$as_echo_n "checking for $2.$3... " >&6; } 1968if eval \${$4+:} false; then : 1969 $as_echo_n "(cached) " >&6 1970else 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972/* end confdefs.h. */ 1973$5 1974int 1975main () 1976{ 1977static $2 ac_aggr; 1978if (ac_aggr.$3) 1979return 0; 1980 ; 1981 return 0; 1982} 1983_ACEOF 1984if ac_fn_c_try_compile "$LINENO"; then : 1985 eval "$4=yes" 1986else 1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989$5 1990int 1991main () 1992{ 1993static $2 ac_aggr; 1994if (sizeof ac_aggr.$3) 1995return 0; 1996 ; 1997 return 0; 1998} 1999_ACEOF 2000if ac_fn_c_try_compile "$LINENO"; then : 2001 eval "$4=yes" 2002else 2003 eval "$4=no" 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008fi 2009eval ac_res=\$$4 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2013 2014} # ac_fn_c_check_member 2015cat >config.log <<_ACEOF 2016This file contains any messages produced by compilers while 2017running configure, to aid debugging if configure makes a mistake. 2018 2019It was created by libpciaccess $as_me 0.13.4, which was 2020generated by GNU Autoconf 2.69. Invocation command line was 2021 2022 $ $0 $@ 2023 2024_ACEOF 2025exec 5>>config.log 2026{ 2027cat <<_ASUNAME 2028## --------- ## 2029## Platform. ## 2030## --------- ## 2031 2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2033uname -m = `(uname -m) 2>/dev/null || echo unknown` 2034uname -r = `(uname -r) 2>/dev/null || echo unknown` 2035uname -s = `(uname -s) 2>/dev/null || echo unknown` 2036uname -v = `(uname -v) 2>/dev/null || echo unknown` 2037 2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2039/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2040 2041/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2042/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2044/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2045/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2046/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2047/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2048 2049_ASUNAME 2050 2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2052for as_dir in $PATH 2053do 2054 IFS=$as_save_IFS 2055 test -z "$as_dir" && as_dir=. 2056 $as_echo "PATH: $as_dir" 2057 done 2058IFS=$as_save_IFS 2059 2060} >&5 2061 2062cat >&5 <<_ACEOF 2063 2064 2065## ----------- ## 2066## Core tests. ## 2067## ----------- ## 2068 2069_ACEOF 2070 2071 2072# Keep a trace of the command line. 2073# Strip out --no-create and --no-recursion so they do not pile up. 2074# Strip out --silent because we don't want to record it for future runs. 2075# Also quote any args containing shell meta-characters. 2076# Make two passes to allow for proper duplicate-argument suppression. 2077ac_configure_args= 2078ac_configure_args0= 2079ac_configure_args1= 2080ac_must_keep_next=false 2081for ac_pass in 1 2 2082do 2083 for ac_arg 2084 do 2085 case $ac_arg in 2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2088 | -silent | --silent | --silen | --sile | --sil) 2089 continue ;; 2090 *\'*) 2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2092 esac 2093 case $ac_pass in 2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2095 2) 2096 as_fn_append ac_configure_args1 " '$ac_arg'" 2097 if test $ac_must_keep_next = true; then 2098 ac_must_keep_next=false # Got value, back to normal. 2099 else 2100 case $ac_arg in 2101 *=* | --config-cache | -C | -disable-* | --disable-* \ 2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2104 | -with-* | --with-* | -without-* | --without-* | --x) 2105 case "$ac_configure_args0 " in 2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2107 esac 2108 ;; 2109 -* ) ac_must_keep_next=true ;; 2110 esac 2111 fi 2112 as_fn_append ac_configure_args " '$ac_arg'" 2113 ;; 2114 esac 2115 done 2116done 2117{ ac_configure_args0=; unset ac_configure_args0;} 2118{ ac_configure_args1=; unset ac_configure_args1;} 2119 2120# When interrupted or exit'd, cleanup temporary files, and complete 2121# config.log. We remove comments because anyway the quotes in there 2122# would cause problems or look ugly. 2123# WARNING: Use '\'' to represent an apostrophe within the trap. 2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2125trap 'exit_status=$? 2126 # Save into config.log some information that might help in debugging. 2127 { 2128 echo 2129 2130 $as_echo "## ---------------- ## 2131## Cache variables. ## 2132## ---------------- ##" 2133 echo 2134 # The following way of writing the cache mishandles newlines in values, 2135( 2136 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2137 eval ac_val=\$$ac_var 2138 case $ac_val in #( 2139 *${as_nl}*) 2140 case $ac_var in #( 2141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2143 esac 2144 case $ac_var in #( 2145 _ | IFS | as_nl) ;; #( 2146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2147 *) { eval $ac_var=; unset $ac_var;} ;; 2148 esac ;; 2149 esac 2150 done 2151 (set) 2>&1 | 2152 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2153 *${as_nl}ac_space=\ *) 2154 sed -n \ 2155 "s/'\''/'\''\\\\'\'''\''/g; 2156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2157 ;; #( 2158 *) 2159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2160 ;; 2161 esac | 2162 sort 2163) 2164 echo 2165 2166 $as_echo "## ----------------- ## 2167## Output variables. ## 2168## ----------------- ##" 2169 echo 2170 for ac_var in $ac_subst_vars 2171 do 2172 eval ac_val=\$$ac_var 2173 case $ac_val in 2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2175 esac 2176 $as_echo "$ac_var='\''$ac_val'\''" 2177 done | sort 2178 echo 2179 2180 if test -n "$ac_subst_files"; then 2181 $as_echo "## ------------------- ## 2182## File substitutions. ## 2183## ------------------- ##" 2184 echo 2185 for ac_var in $ac_subst_files 2186 do 2187 eval ac_val=\$$ac_var 2188 case $ac_val in 2189 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2190 esac 2191 $as_echo "$ac_var='\''$ac_val'\''" 2192 done | sort 2193 echo 2194 fi 2195 2196 if test -s confdefs.h; then 2197 $as_echo "## ----------- ## 2198## confdefs.h. ## 2199## ----------- ##" 2200 echo 2201 cat confdefs.h 2202 echo 2203 fi 2204 test "$ac_signal" != 0 && 2205 $as_echo "$as_me: caught signal $ac_signal" 2206 $as_echo "$as_me: exit $exit_status" 2207 } >&5 2208 rm -f core *.core core.conftest.* && 2209 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2210 exit $exit_status 2211' 0 2212for ac_signal in 1 2 13 15; do 2213 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2214done 2215ac_signal=0 2216 2217# confdefs.h avoids OS command line length limits that DEFS can exceed. 2218rm -f -r conftest* confdefs.h 2219 2220$as_echo "/* confdefs.h */" > confdefs.h 2221 2222# Predefined preprocessor variables. 2223 2224cat >>confdefs.h <<_ACEOF 2225#define PACKAGE_NAME "$PACKAGE_NAME" 2226_ACEOF 2227 2228cat >>confdefs.h <<_ACEOF 2229#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2230_ACEOF 2231 2232cat >>confdefs.h <<_ACEOF 2233#define PACKAGE_VERSION "$PACKAGE_VERSION" 2234_ACEOF 2235 2236cat >>confdefs.h <<_ACEOF 2237#define PACKAGE_STRING "$PACKAGE_STRING" 2238_ACEOF 2239 2240cat >>confdefs.h <<_ACEOF 2241#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2242_ACEOF 2243 2244cat >>confdefs.h <<_ACEOF 2245#define PACKAGE_URL "$PACKAGE_URL" 2246_ACEOF 2247 2248 2249# Let the site file select an alternate cache file if it wants to. 2250# Prefer an explicitly selected file to automatically selected ones. 2251ac_site_file1=NONE 2252ac_site_file2=NONE 2253if test -n "$CONFIG_SITE"; then 2254 # We do not want a PATH search for config.site. 2255 case $CONFIG_SITE in #(( 2256 -*) ac_site_file1=./$CONFIG_SITE;; 2257 */*) ac_site_file1=$CONFIG_SITE;; 2258 *) ac_site_file1=./$CONFIG_SITE;; 2259 esac 2260elif test "x$prefix" != xNONE; then 2261 ac_site_file1=$prefix/share/config.site 2262 ac_site_file2=$prefix/etc/config.site 2263else 2264 ac_site_file1=$ac_default_prefix/share/config.site 2265 ac_site_file2=$ac_default_prefix/etc/config.site 2266fi 2267for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2268do 2269 test "x$ac_site_file" = xNONE && continue 2270 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2272$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2273 sed 's/^/| /' "$ac_site_file" >&5 2274 . "$ac_site_file" \ 2275 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2277as_fn_error $? "failed to load site script $ac_site_file 2278See \`config.log' for more details" "$LINENO" 5; } 2279 fi 2280done 2281 2282if test -r "$cache_file"; then 2283 # Some versions of bash will fail to source /dev/null (special files 2284 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2285 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2287$as_echo "$as_me: loading cache $cache_file" >&6;} 2288 case $cache_file in 2289 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2290 *) . "./$cache_file";; 2291 esac 2292 fi 2293else 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2295$as_echo "$as_me: creating cache $cache_file" >&6;} 2296 >$cache_file 2297fi 2298 2299# Check that the precious variables saved in the cache have kept the same 2300# value. 2301ac_cache_corrupted=false 2302for ac_var in $ac_precious_vars; do 2303 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2304 eval ac_new_set=\$ac_env_${ac_var}_set 2305 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2306 eval ac_new_val=\$ac_env_${ac_var}_value 2307 case $ac_old_set,$ac_new_set in 2308 set,) 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2310$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2311 ac_cache_corrupted=: ;; 2312 ,set) 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2314$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2315 ac_cache_corrupted=: ;; 2316 ,);; 2317 *) 2318 if test "x$ac_old_val" != "x$ac_new_val"; then 2319 # differences in whitespace do not lead to failure. 2320 ac_old_val_w=`echo x $ac_old_val` 2321 ac_new_val_w=`echo x $ac_new_val` 2322 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2324$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2325 ac_cache_corrupted=: 2326 else 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2328$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2329 eval $ac_var=\$ac_old_val 2330 fi 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2332$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2334$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2335 fi;; 2336 esac 2337 # Pass precious variables to config.status. 2338 if test "$ac_new_set" = set; then 2339 case $ac_new_val in 2340 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 *) ac_arg=$ac_var=$ac_new_val ;; 2342 esac 2343 case " $ac_configure_args " in 2344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2345 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2346 esac 2347 fi 2348done 2349if $ac_cache_corrupted; then 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2353$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2354 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2355fi 2356## -------------------- ## 2357## Main body of script. ## 2358## -------------------- ## 2359 2360ac_ext=c 2361ac_cpp='$CPP $CPPFLAGS' 2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2364ac_compiler_gnu=$ac_cv_c_compiler_gnu 2365 2366 2367 2368ac_config_headers="$ac_config_headers config.h" 2369 2370 2371# Initialize Automake 2372am__api_version='1.15' 2373 2374ac_aux_dir= 2375for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2376 if test -f "$ac_dir/install-sh"; then 2377 ac_aux_dir=$ac_dir 2378 ac_install_sh="$ac_aux_dir/install-sh -c" 2379 break 2380 elif test -f "$ac_dir/install.sh"; then 2381 ac_aux_dir=$ac_dir 2382 ac_install_sh="$ac_aux_dir/install.sh -c" 2383 break 2384 elif test -f "$ac_dir/shtool"; then 2385 ac_aux_dir=$ac_dir 2386 ac_install_sh="$ac_aux_dir/shtool install -c" 2387 break 2388 fi 2389done 2390if test -z "$ac_aux_dir"; then 2391 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2392fi 2393 2394# These three variables are undocumented and unsupported, 2395# and are intended to be withdrawn in a future Autoconf release. 2396# They can cause serious problems if a builder's source tree is in a directory 2397# whose full name contains unusual characters. 2398ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2399ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2400ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2401 2402 2403# Find a good install program. We prefer a C program (faster), 2404# so one script is as good as another. But avoid the broken or 2405# incompatible versions: 2406# SysV /etc/install, /usr/sbin/install 2407# SunOS /usr/etc/install 2408# IRIX /sbin/install 2409# AIX /bin/install 2410# AmigaOS /C/install, which installs bootblocks on floppy discs 2411# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2412# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2413# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2414# OS/2's system install, which has a completely different semantic 2415# ./install, which can be erroneously created by make from ./install.sh. 2416# Reject install programs that cannot install multiple files. 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2418$as_echo_n "checking for a BSD-compatible install... " >&6; } 2419if test -z "$INSTALL"; then 2420if ${ac_cv_path_install+:} false; then : 2421 $as_echo_n "(cached) " >&6 2422else 2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 # Account for people who put trailing slashes in PATH elements. 2429case $as_dir/ in #(( 2430 ./ | .// | /[cC]/* | \ 2431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2432 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2433 /usr/ucb/* ) ;; 2434 *) 2435 # OSF1 and SCO ODT 3.0 have their own names for install. 2436 # Don't use installbsd from OSF since it installs stuff as root 2437 # by default. 2438 for ac_prog in ginstall scoinst install; do 2439 for ac_exec_ext in '' $ac_executable_extensions; do 2440 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2441 if test $ac_prog = install && 2442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2443 # AIX install. It has an incompatible calling convention. 2444 : 2445 elif test $ac_prog = install && 2446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2447 # program-specific install script used by HP pwplus--don't use. 2448 : 2449 else 2450 rm -rf conftest.one conftest.two conftest.dir 2451 echo one > conftest.one 2452 echo two > conftest.two 2453 mkdir conftest.dir 2454 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2455 test -s conftest.one && test -s conftest.two && 2456 test -s conftest.dir/conftest.one && 2457 test -s conftest.dir/conftest.two 2458 then 2459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2460 break 3 2461 fi 2462 fi 2463 fi 2464 done 2465 done 2466 ;; 2467esac 2468 2469 done 2470IFS=$as_save_IFS 2471 2472rm -rf conftest.one conftest.two conftest.dir 2473 2474fi 2475 if test "${ac_cv_path_install+set}" = set; then 2476 INSTALL=$ac_cv_path_install 2477 else 2478 # As a last resort, use the slow shell script. Don't cache a 2479 # value for INSTALL within a source directory, because that will 2480 # break other packages using the cache if that directory is 2481 # removed, or if the value is a relative name. 2482 INSTALL=$ac_install_sh 2483 fi 2484fi 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2486$as_echo "$INSTALL" >&6; } 2487 2488# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2489# It thinks the first close brace ends the variable substitution. 2490test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2491 2492test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2493 2494test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2495 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2497$as_echo_n "checking whether build environment is sane... " >&6; } 2498# Reject unsafe characters in $srcdir or the absolute working directory 2499# name. Accept space and tab only in the latter. 2500am_lf=' 2501' 2502case `pwd` in 2503 *[\\\"\#\$\&\'\`$am_lf]*) 2504 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2505esac 2506case $srcdir in 2507 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2508 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2509esac 2510 2511# Do 'set' in a subshell so we don't clobber the current shell's 2512# arguments. Must try -L first in case configure is actually a 2513# symlink; some systems play weird games with the mod time of symlinks 2514# (eg FreeBSD returns the mod time of the symlink's containing 2515# directory). 2516if ( 2517 am_has_slept=no 2518 for am_try in 1 2; do 2519 echo "timestamp, slept: $am_has_slept" > conftest.file 2520 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2521 if test "$*" = "X"; then 2522 # -L didn't work. 2523 set X `ls -t "$srcdir/configure" conftest.file` 2524 fi 2525 if test "$*" != "X $srcdir/configure conftest.file" \ 2526 && test "$*" != "X conftest.file $srcdir/configure"; then 2527 2528 # If neither matched, then we have a broken ls. This can happen 2529 # if, for instance, CONFIG_SHELL is bash and it inherits a 2530 # broken ls alias from the environment. This has actually 2531 # happened. Such a system could not be considered "sane". 2532 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2533 alias in your environment" "$LINENO" 5 2534 fi 2535 if test "$2" = conftest.file || test $am_try -eq 2; then 2536 break 2537 fi 2538 # Just in case. 2539 sleep 1 2540 am_has_slept=yes 2541 done 2542 test "$2" = conftest.file 2543 ) 2544then 2545 # Ok. 2546 : 2547else 2548 as_fn_error $? "newly created file is older than distributed files! 2549Check your system clock" "$LINENO" 5 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2552$as_echo "yes" >&6; } 2553# If we didn't sleep, we still need to ensure time stamps of config.status and 2554# generated files are strictly newer. 2555am_sleep_pid= 2556if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2557 ( sleep 1 ) & 2558 am_sleep_pid=$! 2559fi 2560 2561rm -f conftest.file 2562 2563test "$program_prefix" != NONE && 2564 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2565# Use a double $ so make ignores it. 2566test "$program_suffix" != NONE && 2567 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2568# Double any \ or $. 2569# By default was `s,x,x', remove it if useless. 2570ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2571program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2572 2573# Expand $ac_aux_dir to an absolute path. 2574am_aux_dir=`cd "$ac_aux_dir" && pwd` 2575 2576if test x"${MISSING+set}" != xset; then 2577 case $am_aux_dir in 2578 *\ * | *\ *) 2579 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2580 *) 2581 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2582 esac 2583fi 2584# Use eval to expand $SHELL 2585if eval "$MISSING --is-lightweight"; then 2586 am_missing_run="$MISSING " 2587else 2588 am_missing_run= 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2590$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2591fi 2592 2593if test x"${install_sh+set}" != xset; then 2594 case $am_aux_dir in 2595 *\ * | *\ *) 2596 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2597 *) 2598 install_sh="\${SHELL} $am_aux_dir/install-sh" 2599 esac 2600fi 2601 2602# Installed binaries are usually stripped using 'strip' when the user 2603# run "make install-strip". However 'strip' might not be the right 2604# tool to use in cross-compilation environments, therefore Automake 2605# will honor the 'STRIP' environment variable to overrule this program. 2606if test "$cross_compiling" != no; then 2607 if test -n "$ac_tool_prefix"; then 2608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2609set dummy ${ac_tool_prefix}strip; ac_word=$2 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2611$as_echo_n "checking for $ac_word... " >&6; } 2612if ${ac_cv_prog_STRIP+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 if test -n "$STRIP"; then 2616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2617else 2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619for as_dir in $PATH 2620do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2625 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630 done 2631IFS=$as_save_IFS 2632 2633fi 2634fi 2635STRIP=$ac_cv_prog_STRIP 2636if test -n "$STRIP"; then 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2638$as_echo "$STRIP" >&6; } 2639else 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641$as_echo "no" >&6; } 2642fi 2643 2644 2645fi 2646if test -z "$ac_cv_prog_STRIP"; then 2647 ac_ct_STRIP=$STRIP 2648 # Extract the first word of "strip", so it can be a program name with args. 2649set dummy strip; ac_word=$2 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2651$as_echo_n "checking for $ac_word... " >&6; } 2652if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2653 $as_echo_n "(cached) " >&6 2654else 2655 if test -n "$ac_ct_STRIP"; then 2656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2657else 2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659for as_dir in $PATH 2660do 2661 IFS=$as_save_IFS 2662 test -z "$as_dir" && as_dir=. 2663 for ac_exec_ext in '' $ac_executable_extensions; do 2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2665 ac_cv_prog_ac_ct_STRIP="strip" 2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2667 break 2 2668 fi 2669done 2670 done 2671IFS=$as_save_IFS 2672 2673fi 2674fi 2675ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2676if test -n "$ac_ct_STRIP"; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2678$as_echo "$ac_ct_STRIP" >&6; } 2679else 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2681$as_echo "no" >&6; } 2682fi 2683 2684 if test "x$ac_ct_STRIP" = x; then 2685 STRIP=":" 2686 else 2687 case $cross_compiling:$ac_tool_warned in 2688yes:) 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2691ac_tool_warned=yes ;; 2692esac 2693 STRIP=$ac_ct_STRIP 2694 fi 2695else 2696 STRIP="$ac_cv_prog_STRIP" 2697fi 2698 2699fi 2700INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2701 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2703$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2704if test -z "$MKDIR_P"; then 2705 if ${ac_cv_path_mkdir+:} false; then : 2706 $as_echo_n "(cached) " >&6 2707else 2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2709for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2710do 2711 IFS=$as_save_IFS 2712 test -z "$as_dir" && as_dir=. 2713 for ac_prog in mkdir gmkdir; do 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2716 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2717 'mkdir (GNU coreutils) '* | \ 2718 'mkdir (coreutils) '* | \ 2719 'mkdir (fileutils) '4.1*) 2720 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2721 break 3;; 2722 esac 2723 done 2724 done 2725 done 2726IFS=$as_save_IFS 2727 2728fi 2729 2730 test -d ./--version && rmdir ./--version 2731 if test "${ac_cv_path_mkdir+set}" = set; then 2732 MKDIR_P="$ac_cv_path_mkdir -p" 2733 else 2734 # As a last resort, use the slow shell script. Don't cache a 2735 # value for MKDIR_P within a source directory, because that will 2736 # break other packages using the cache if that directory is 2737 # removed, or if the value is a relative name. 2738 MKDIR_P="$ac_install_sh -d" 2739 fi 2740fi 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2742$as_echo "$MKDIR_P" >&6; } 2743 2744for ac_prog in gawk mawk nawk awk 2745do 2746 # Extract the first word of "$ac_prog", so it can be a program name with args. 2747set dummy $ac_prog; ac_word=$2 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2749$as_echo_n "checking for $ac_word... " >&6; } 2750if ${ac_cv_prog_AWK+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 if test -n "$AWK"; then 2754 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2755else 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_exec_ext in '' $ac_executable_extensions; do 2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2763 ac_cv_prog_AWK="$ac_prog" 2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2765 break 2 2766 fi 2767done 2768 done 2769IFS=$as_save_IFS 2770 2771fi 2772fi 2773AWK=$ac_cv_prog_AWK 2774if test -n "$AWK"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2776$as_echo "$AWK" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783 test -n "$AWK" && break 2784done 2785 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2787$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2788set x ${MAKE-make} 2789ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2790if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 cat >conftest.make <<\_ACEOF 2794SHELL = /bin/sh 2795all: 2796 @echo '@@@%%%=$(MAKE)=@@@%%%' 2797_ACEOF 2798# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2799case `${MAKE-make} -f conftest.make 2>/dev/null` in 2800 *@@@%%%=?*=@@@%%%*) 2801 eval ac_cv_prog_make_${ac_make}_set=yes;; 2802 *) 2803 eval ac_cv_prog_make_${ac_make}_set=no;; 2804esac 2805rm -f conftest.make 2806fi 2807if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2809$as_echo "yes" >&6; } 2810 SET_MAKE= 2811else 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813$as_echo "no" >&6; } 2814 SET_MAKE="MAKE=${MAKE-make}" 2815fi 2816 2817rm -rf .tst 2>/dev/null 2818mkdir .tst 2>/dev/null 2819if test -d .tst; then 2820 am__leading_dot=. 2821else 2822 am__leading_dot=_ 2823fi 2824rmdir .tst 2>/dev/null 2825 2826# Check whether --enable-silent-rules was given. 2827if test "${enable_silent_rules+set}" = set; then : 2828 enableval=$enable_silent_rules; 2829fi 2830 2831case $enable_silent_rules in # ((( 2832 yes) AM_DEFAULT_VERBOSITY=0;; 2833 no) AM_DEFAULT_VERBOSITY=1;; 2834 *) AM_DEFAULT_VERBOSITY=1;; 2835esac 2836am_make=${MAKE-make} 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2838$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2839if ${am_cv_make_support_nested_variables+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 if $as_echo 'TRUE=$(BAR$(V)) 2843BAR0=false 2844BAR1=true 2845V=1 2846am__doit: 2847 @$(TRUE) 2848.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2849 am_cv_make_support_nested_variables=yes 2850else 2851 am_cv_make_support_nested_variables=no 2852fi 2853fi 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2855$as_echo "$am_cv_make_support_nested_variables" >&6; } 2856if test $am_cv_make_support_nested_variables = yes; then 2857 AM_V='$(V)' 2858 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2859else 2860 AM_V=$AM_DEFAULT_VERBOSITY 2861 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2862fi 2863AM_BACKSLASH='\' 2864 2865if test "`cd $srcdir && pwd`" != "`pwd`"; then 2866 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2867 # is not polluted with repeated "-I." 2868 am__isrc=' -I$(srcdir)' 2869 # test to see if srcdir already configured 2870 if test -f $srcdir/config.status; then 2871 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2872 fi 2873fi 2874 2875# test whether we have cygpath 2876if test -z "$CYGPATH_W"; then 2877 if (cygpath --version) >/dev/null 2>/dev/null; then 2878 CYGPATH_W='cygpath -w' 2879 else 2880 CYGPATH_W=echo 2881 fi 2882fi 2883 2884 2885# Define the identity of the package. 2886 PACKAGE='libpciaccess' 2887 VERSION='0.13.4' 2888 2889 2890cat >>confdefs.h <<_ACEOF 2891#define PACKAGE "$PACKAGE" 2892_ACEOF 2893 2894 2895cat >>confdefs.h <<_ACEOF 2896#define VERSION "$VERSION" 2897_ACEOF 2898 2899# Some tools Automake needs. 2900 2901ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2902 2903 2904AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2905 2906 2907AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2908 2909 2910AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2911 2912 2913MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2914 2915# For better backward compatibility. To be removed once Automake 1.9.x 2916# dies out for good. For more background, see: 2917# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2918# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2919mkdir_p='$(MKDIR_P)' 2920 2921# We need awk for the "check" target (and possibly the TAP driver). The 2922# system "awk" is bad on some platforms. 2923# Always define AMTAR for backward compatibility. Yes, it's still used 2924# in the wild :-( We should find a proper way to deprecate it ... 2925AMTAR='$${TAR-tar}' 2926 2927 2928# We'll loop over all known methods to create a tar archive until one works. 2929_am_tools='gnutar pax cpio none' 2930 2931am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2932 2933 2934 2935 2936 2937 2938# POSIX will say in a future version that running "rm -f" with no argument 2939# is OK; and we want to be able to make that assumption in our Makefile 2940# recipes. So use an aggressive probe to check that the usage we want is 2941# actually supported "in the wild" to an acceptable degree. 2942# See automake bug#10828. 2943# To make any issue more visible, cause the running configure to be aborted 2944# by default if the 'rm' program in use doesn't match our expectations; the 2945# user can still override this though. 2946if rm -f && rm -fr && rm -rf; then : OK; else 2947 cat >&2 <<'END' 2948Oops! 2949 2950Your 'rm' program seems unable to run without file operands specified 2951on the command line, even when the '-f' option is present. This is contrary 2952to the behaviour of most rm programs out there, and not conforming with 2953the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2954 2955Please tell bug-automake@gnu.org about your system, including the value 2956of your $PATH and any error possibly output before this message. This 2957can help us improve future automake versions. 2958 2959END 2960 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2961 echo 'Configuration will proceed anyway, since you have set the' >&2 2962 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2963 echo >&2 2964 else 2965 cat >&2 <<'END' 2966Aborting the configuration process, to ensure you take notice of the issue. 2967 2968You can download and install GNU coreutils to get an 'rm' implementation 2969that behaves properly: <http://www.gnu.org/software/coreutils/>. 2970 2971If you want to complete the configuration process using your problematic 2972'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2973to "yes", and re-run configure. 2974 2975END 2976 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2977 fi 2978fi 2979 2980DEPDIR="${am__leading_dot}deps" 2981 2982ac_config_commands="$ac_config_commands depfiles" 2983 2984 2985am_make=${MAKE-make} 2986cat > confinc << 'END' 2987am__doit: 2988 @echo this is the am__doit target 2989.PHONY: am__doit 2990END 2991# If we don't find an include directive, just comment out the code. 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2993$as_echo_n "checking for style of include used by $am_make... " >&6; } 2994am__include="#" 2995am__quote= 2996_am_result=none 2997# First try GNU make style include. 2998echo "include confinc" > confmf 2999# Ignore all kinds of additional output from 'make'. 3000case `$am_make -s -f confmf 2> /dev/null` in #( 3001*the\ am__doit\ target*) 3002 am__include=include 3003 am__quote= 3004 _am_result=GNU 3005 ;; 3006esac 3007# Now try BSD make style include. 3008if test "$am__include" = "#"; then 3009 echo '.include "confinc"' > confmf 3010 case `$am_make -s -f confmf 2> /dev/null` in #( 3011 *the\ am__doit\ target*) 3012 am__include=.include 3013 am__quote="\"" 3014 _am_result=BSD 3015 ;; 3016 esac 3017fi 3018 3019 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3021$as_echo "$_am_result" >&6; } 3022rm -f confinc confmf 3023 3024# Check whether --enable-dependency-tracking was given. 3025if test "${enable_dependency_tracking+set}" = set; then : 3026 enableval=$enable_dependency_tracking; 3027fi 3028 3029if test "x$enable_dependency_tracking" != xno; then 3030 am_depcomp="$ac_aux_dir/depcomp" 3031 AMDEPBACKSLASH='\' 3032 am__nodep='_no' 3033fi 3034 if test "x$enable_dependency_tracking" != xno; then 3035 AMDEP_TRUE= 3036 AMDEP_FALSE='#' 3037else 3038 AMDEP_TRUE='#' 3039 AMDEP_FALSE= 3040fi 3041 3042 3043ac_ext=c 3044ac_cpp='$CPP $CPPFLAGS' 3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3047ac_compiler_gnu=$ac_cv_c_compiler_gnu 3048if test -n "$ac_tool_prefix"; then 3049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3050set dummy ${ac_tool_prefix}gcc; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if ${ac_cv_prog_CC+:} false; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 if test -n "$CC"; then 3057 ac_cv_prog_CC="$CC" # Let the user override the test. 3058else 3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3060for as_dir in $PATH 3061do 3062 IFS=$as_save_IFS 3063 test -z "$as_dir" && as_dir=. 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3066 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3068 break 2 3069 fi 3070done 3071 done 3072IFS=$as_save_IFS 3073 3074fi 3075fi 3076CC=$ac_cv_prog_CC 3077if test -n "$CC"; then 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3079$as_echo "$CC" >&6; } 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083fi 3084 3085 3086fi 3087if test -z "$ac_cv_prog_CC"; then 3088 ac_ct_CC=$CC 3089 # Extract the first word of "gcc", so it can be a program name with args. 3090set dummy gcc; ac_word=$2 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092$as_echo_n "checking for $ac_word... " >&6; } 3093if ${ac_cv_prog_ac_ct_CC+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$ac_ct_CC"; then 3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3098else 3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH 3101do 3102 IFS=$as_save_IFS 3103 test -z "$as_dir" && as_dir=. 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3106 ac_cv_prog_ac_ct_CC="gcc" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115fi 3116ac_ct_CC=$ac_cv_prog_ac_ct_CC 3117if test -n "$ac_ct_CC"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3119$as_echo "$ac_ct_CC" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 if test "x$ac_ct_CC" = x; then 3126 CC="" 3127 else 3128 case $cross_compiling:$ac_tool_warned in 3129yes:) 3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3132ac_tool_warned=yes ;; 3133esac 3134 CC=$ac_ct_CC 3135 fi 3136else 3137 CC="$ac_cv_prog_CC" 3138fi 3139 3140if test -z "$CC"; then 3141 if test -n "$ac_tool_prefix"; then 3142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3143set dummy ${ac_tool_prefix}cc; ac_word=$2 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3145$as_echo_n "checking for $ac_word... " >&6; } 3146if ${ac_cv_prog_CC+:} false; then : 3147 $as_echo_n "(cached) " >&6 3148else 3149 if test -n "$CC"; then 3150 ac_cv_prog_CC="$CC" # Let the user override the test. 3151else 3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153for as_dir in $PATH 3154do 3155 IFS=$as_save_IFS 3156 test -z "$as_dir" && as_dir=. 3157 for ac_exec_ext in '' $ac_executable_extensions; do 3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3159 ac_cv_prog_CC="${ac_tool_prefix}cc" 3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3161 break 2 3162 fi 3163done 3164 done 3165IFS=$as_save_IFS 3166 3167fi 3168fi 3169CC=$ac_cv_prog_CC 3170if test -n "$CC"; then 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3172$as_echo "$CC" >&6; } 3173else 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3175$as_echo "no" >&6; } 3176fi 3177 3178 3179 fi 3180fi 3181if test -z "$CC"; then 3182 # Extract the first word of "cc", so it can be a program name with args. 3183set dummy cc; ac_word=$2 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3185$as_echo_n "checking for $ac_word... " >&6; } 3186if ${ac_cv_prog_CC+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 if test -n "$CC"; then 3190 ac_cv_prog_CC="$CC" # Let the user override the test. 3191else 3192 ac_prog_rejected=no 3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3194for as_dir in $PATH 3195do 3196 IFS=$as_save_IFS 3197 test -z "$as_dir" && as_dir=. 3198 for ac_exec_ext in '' $ac_executable_extensions; do 3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3201 ac_prog_rejected=yes 3202 continue 3203 fi 3204 ac_cv_prog_CC="cc" 3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3206 break 2 3207 fi 3208done 3209 done 3210IFS=$as_save_IFS 3211 3212if test $ac_prog_rejected = yes; then 3213 # We found a bogon in the path, so make sure we never use it. 3214 set dummy $ac_cv_prog_CC 3215 shift 3216 if test $# != 0; then 3217 # We chose a different compiler from the bogus one. 3218 # However, it has the same basename, so the bogon will be chosen 3219 # first if we set CC to just the basename; use the full file name. 3220 shift 3221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3222 fi 3223fi 3224fi 3225fi 3226CC=$ac_cv_prog_CC 3227if test -n "$CC"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3229$as_echo "$CC" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236fi 3237if test -z "$CC"; then 3238 if test -n "$ac_tool_prefix"; then 3239 for ac_prog in cl.exe 3240 do 3241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3242set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244$as_echo_n "checking for $ac_word... " >&6; } 3245if ${ac_cv_prog_CC+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 if test -n "$CC"; then 3249 ac_cv_prog_CC="$CC" # Let the user override the test. 3250else 3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3252for as_dir in $PATH 3253do 3254 IFS=$as_save_IFS 3255 test -z "$as_dir" && as_dir=. 3256 for ac_exec_ext in '' $ac_executable_extensions; do 3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3260 break 2 3261 fi 3262done 3263 done 3264IFS=$as_save_IFS 3265 3266fi 3267fi 3268CC=$ac_cv_prog_CC 3269if test -n "$CC"; then 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3271$as_echo "$CC" >&6; } 3272else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3274$as_echo "no" >&6; } 3275fi 3276 3277 3278 test -n "$CC" && break 3279 done 3280fi 3281if test -z "$CC"; then 3282 ac_ct_CC=$CC 3283 for ac_prog in cl.exe 3284do 3285 # Extract the first word of "$ac_prog", so it can be a program name with args. 3286set dummy $ac_prog; ac_word=$2 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288$as_echo_n "checking for $ac_word... " >&6; } 3289if ${ac_cv_prog_ac_ct_CC+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 if test -n "$ac_ct_CC"; then 3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3294else 3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_ac_ct_CC="$ac_prog" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306done 3307 done 3308IFS=$as_save_IFS 3309 3310fi 3311fi 3312ac_ct_CC=$ac_cv_prog_ac_ct_CC 3313if test -n "$ac_ct_CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3315$as_echo "$ac_ct_CC" >&6; } 3316else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319fi 3320 3321 3322 test -n "$ac_ct_CC" && break 3323done 3324 3325 if test "x$ac_ct_CC" = x; then 3326 CC="" 3327 else 3328 case $cross_compiling:$ac_tool_warned in 3329yes:) 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3332ac_tool_warned=yes ;; 3333esac 3334 CC=$ac_ct_CC 3335 fi 3336fi 3337 3338fi 3339 3340 3341test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343as_fn_error $? "no acceptable C compiler found in \$PATH 3344See \`config.log' for more details" "$LINENO" 5; } 3345 3346# Provide some information about the compiler. 3347$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3348set X $ac_compile 3349ac_compiler=$2 3350for ac_option in --version -v -V -qversion; do 3351 { { ac_try="$ac_compiler $ac_option >&5" 3352case "(($ac_try" in 3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3354 *) ac_try_echo=$ac_try;; 3355esac 3356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3357$as_echo "$ac_try_echo"; } >&5 3358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3359 ac_status=$? 3360 if test -s conftest.err; then 3361 sed '10a\ 3362... rest of stderr output deleted ... 3363 10q' conftest.err >conftest.er1 3364 cat conftest.er1 >&5 3365 fi 3366 rm -f conftest.er1 conftest.err 3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; } 3369done 3370 3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372/* end confdefs.h. */ 3373 3374int 3375main () 3376{ 3377 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382ac_clean_files_save=$ac_clean_files 3383ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3384# Try to create an executable without -o first, disregard a.out. 3385# It will help us diagnose broken compilers, and finding out an intuition 3386# of exeext. 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3388$as_echo_n "checking whether the C compiler works... " >&6; } 3389ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3390 3391# The possible output files: 3392ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3393 3394ac_rmfiles= 3395for ac_file in $ac_files 3396do 3397 case $ac_file in 3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3400 esac 3401done 3402rm -f $ac_rmfiles 3403 3404if { { ac_try="$ac_link_default" 3405case "(($ac_try" in 3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *) ac_try_echo=$ac_try;; 3408esac 3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3410$as_echo "$ac_try_echo"; } >&5 3411 (eval "$ac_link_default") 2>&5 3412 ac_status=$? 3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3414 test $ac_status = 0; }; then : 3415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3416# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3417# in a Makefile. We should not override ac_cv_exeext if it was cached, 3418# so that the user can short-circuit this test for compilers unknown to 3419# Autoconf. 3420for ac_file in $ac_files '' 3421do 3422 test -f "$ac_file" || continue 3423 case $ac_file in 3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3425 ;; 3426 [ab].out ) 3427 # We found the default executable, but exeext='' is most 3428 # certainly right. 3429 break;; 3430 *.* ) 3431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3432 then :; else 3433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3434 fi 3435 # We set ac_cv_exeext here because the later test for it is not 3436 # safe: cross compilers may not add the suffix if given an `-o' 3437 # argument, so we may need to know it at that point already. 3438 # Even if this section looks crufty: it has the advantage of 3439 # actually working. 3440 break;; 3441 * ) 3442 break;; 3443 esac 3444done 3445test "$ac_cv_exeext" = no && ac_cv_exeext= 3446 3447else 3448 ac_file='' 3449fi 3450if test -z "$ac_file"; then : 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452$as_echo "no" >&6; } 3453$as_echo "$as_me: failed program was:" >&5 3454sed 's/^/| /' conftest.$ac_ext >&5 3455 3456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3458as_fn_error 77 "C compiler cannot create executables 3459See \`config.log' for more details" "$LINENO" 5; } 3460else 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3462$as_echo "yes" >&6; } 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3465$as_echo_n "checking for C compiler default output file name... " >&6; } 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3467$as_echo "$ac_file" >&6; } 3468ac_exeext=$ac_cv_exeext 3469 3470rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3471ac_clean_files=$ac_clean_files_save 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3473$as_echo_n "checking for suffix of executables... " >&6; } 3474if { { ac_try="$ac_link" 3475case "(($ac_try" in 3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3477 *) ac_try_echo=$ac_try;; 3478esac 3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3480$as_echo "$ac_try_echo"; } >&5 3481 (eval "$ac_link") 2>&5 3482 ac_status=$? 3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3484 test $ac_status = 0; }; then : 3485 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3486# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3487# work properly (i.e., refer to `conftest.exe'), while it won't with 3488# `rm'. 3489for ac_file in conftest.exe conftest conftest.*; do 3490 test -f "$ac_file" || continue 3491 case $ac_file in 3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3493 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3494 break;; 3495 * ) break;; 3496 esac 3497done 3498else 3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3501as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3502See \`config.log' for more details" "$LINENO" 5; } 3503fi 3504rm -f conftest conftest$ac_cv_exeext 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3506$as_echo "$ac_cv_exeext" >&6; } 3507 3508rm -f conftest.$ac_ext 3509EXEEXT=$ac_cv_exeext 3510ac_exeext=$EXEEXT 3511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3512/* end confdefs.h. */ 3513#include <stdio.h> 3514int 3515main () 3516{ 3517FILE *f = fopen ("conftest.out", "w"); 3518 return ferror (f) || fclose (f) != 0; 3519 3520 ; 3521 return 0; 3522} 3523_ACEOF 3524ac_clean_files="$ac_clean_files conftest.out" 3525# Check that the compiler produces executables we can run. If not, either 3526# the compiler is broken, or we cross compile. 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3528$as_echo_n "checking whether we are cross compiling... " >&6; } 3529if test "$cross_compiling" != yes; then 3530 { { ac_try="$ac_link" 3531case "(($ac_try" in 3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3533 *) ac_try_echo=$ac_try;; 3534esac 3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3536$as_echo "$ac_try_echo"; } >&5 3537 (eval "$ac_link") 2>&5 3538 ac_status=$? 3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3540 test $ac_status = 0; } 3541 if { ac_try='./conftest$ac_cv_exeext' 3542 { { case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_try") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; }; }; then 3552 cross_compiling=no 3553 else 3554 if test "$cross_compiling" = maybe; then 3555 cross_compiling=yes 3556 else 3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3559as_fn_error $? "cannot run C compiled programs. 3560If you meant to cross compile, use \`--host'. 3561See \`config.log' for more details" "$LINENO" 5; } 3562 fi 3563 fi 3564fi 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3566$as_echo "$cross_compiling" >&6; } 3567 3568rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3569ac_clean_files=$ac_clean_files_save 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3571$as_echo_n "checking for suffix of object files... " >&6; } 3572if ${ac_cv_objext+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578int 3579main () 3580{ 3581 3582 ; 3583 return 0; 3584} 3585_ACEOF 3586rm -f conftest.o conftest.obj 3587if { { ac_try="$ac_compile" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3593$as_echo "$ac_try_echo"; } >&5 3594 (eval "$ac_compile") 2>&5 3595 ac_status=$? 3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3597 test $ac_status = 0; }; then : 3598 for ac_file in conftest.o conftest.obj conftest.*; do 3599 test -f "$ac_file" || continue; 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3603 break;; 3604 esac 3605done 3606else 3607 $as_echo "$as_me: failed program was:" >&5 3608sed 's/^/| /' conftest.$ac_ext >&5 3609 3610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612as_fn_error $? "cannot compute suffix of object files: cannot compile 3613See \`config.log' for more details" "$LINENO" 5; } 3614fi 3615rm -f conftest.$ac_cv_objext conftest.$ac_ext 3616fi 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3618$as_echo "$ac_cv_objext" >&6; } 3619OBJEXT=$ac_cv_objext 3620ac_objext=$OBJEXT 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3623if ${ac_cv_c_compiler_gnu+:} false; then : 3624 $as_echo_n "(cached) " >&6 3625else 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629int 3630main () 3631{ 3632#ifndef __GNUC__ 3633 choke me 3634#endif 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640if ac_fn_c_try_compile "$LINENO"; then : 3641 ac_compiler_gnu=yes 3642else 3643 ac_compiler_gnu=no 3644fi 3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3646ac_cv_c_compiler_gnu=$ac_compiler_gnu 3647 3648fi 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3650$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3651if test $ac_compiler_gnu = yes; then 3652 GCC=yes 3653else 3654 GCC= 3655fi 3656ac_test_CFLAGS=${CFLAGS+set} 3657ac_save_CFLAGS=$CFLAGS 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3659$as_echo_n "checking whether $CC accepts -g... " >&6; } 3660if ${ac_cv_prog_cc_g+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 ac_save_c_werror_flag=$ac_c_werror_flag 3664 ac_c_werror_flag=yes 3665 ac_cv_prog_cc_g=no 3666 CFLAGS="-g" 3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3668/* end confdefs.h. */ 3669 3670int 3671main () 3672{ 3673 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678if ac_fn_c_try_compile "$LINENO"; then : 3679 ac_cv_prog_cc_g=yes 3680else 3681 CFLAGS="" 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683/* end confdefs.h. */ 3684 3685int 3686main () 3687{ 3688 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693if ac_fn_c_try_compile "$LINENO"; then : 3694 3695else 3696 ac_c_werror_flag=$ac_save_c_werror_flag 3697 CFLAGS="-g" 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709if ac_fn_c_try_compile "$LINENO"; then : 3710 ac_cv_prog_cc_g=yes 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713fi 3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715fi 3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3717 ac_c_werror_flag=$ac_save_c_werror_flag 3718fi 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3720$as_echo "$ac_cv_prog_cc_g" >&6; } 3721if test "$ac_test_CFLAGS" = set; then 3722 CFLAGS=$ac_save_CFLAGS 3723elif test $ac_cv_prog_cc_g = yes; then 3724 if test "$GCC" = yes; then 3725 CFLAGS="-g -O2" 3726 else 3727 CFLAGS="-g" 3728 fi 3729else 3730 if test "$GCC" = yes; then 3731 CFLAGS="-O2" 3732 else 3733 CFLAGS= 3734 fi 3735fi 3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3737$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3738if ${ac_cv_prog_cc_c89+:} false; then : 3739 $as_echo_n "(cached) " >&6 3740else 3741 ac_cv_prog_cc_c89=no 3742ac_save_CC=$CC 3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3744/* end confdefs.h. */ 3745#include <stdarg.h> 3746#include <stdio.h> 3747struct stat; 3748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3749struct buf { int x; }; 3750FILE * (*rcsopen) (struct buf *, struct stat *, int); 3751static char *e (p, i) 3752 char **p; 3753 int i; 3754{ 3755 return p[i]; 3756} 3757static char *f (char * (*g) (char **, int), char **p, ...) 3758{ 3759 char *s; 3760 va_list v; 3761 va_start (v,p); 3762 s = g (p, va_arg (v,int)); 3763 va_end (v); 3764 return s; 3765} 3766 3767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3768 function prototypes and stuff, but not '\xHH' hex character constants. 3769 These don't provoke an error unfortunately, instead are silently treated 3770 as 'x'. The following induces an error, until -std is added to get 3771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3772 array size at least. It's necessary to write '\x00'==0 to get something 3773 that's true only with -std. */ 3774int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3775 3776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3777 inside strings and character constants. */ 3778#define FOO(x) 'x' 3779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3780 3781int test (int i, double x); 3782struct s1 {int (*f) (int a);}; 3783struct s2 {int (*f) (double a);}; 3784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3785int argc; 3786char **argv; 3787int 3788main () 3789{ 3790return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3797do 3798 CC="$ac_save_CC $ac_arg" 3799 if ac_fn_c_try_compile "$LINENO"; then : 3800 ac_cv_prog_cc_c89=$ac_arg 3801fi 3802rm -f core conftest.err conftest.$ac_objext 3803 test "x$ac_cv_prog_cc_c89" != "xno" && break 3804done 3805rm -f conftest.$ac_ext 3806CC=$ac_save_CC 3807 3808fi 3809# AC_CACHE_VAL 3810case "x$ac_cv_prog_cc_c89" in 3811 x) 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3813$as_echo "none needed" >&6; } ;; 3814 xno) 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3816$as_echo "unsupported" >&6; } ;; 3817 *) 3818 CC="$CC $ac_cv_prog_cc_c89" 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3820$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3821esac 3822if test "x$ac_cv_prog_cc_c89" != xno; then : 3823 3824fi 3825 3826ac_ext=c 3827ac_cpp='$CPP $CPPFLAGS' 3828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3830ac_compiler_gnu=$ac_cv_c_compiler_gnu 3831 3832ac_ext=c 3833ac_cpp='$CPP $CPPFLAGS' 3834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3836ac_compiler_gnu=$ac_cv_c_compiler_gnu 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3838$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3839if ${am_cv_prog_cc_c_o+:} false; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853 # Make sure it works both with $CC and with simple cc. 3854 # Following AC_PROG_CC_C_O, we do the test twice because some 3855 # compilers refuse to overwrite an existing .o file with -o, 3856 # though they will create one. 3857 am_cv_prog_cc_c_o=yes 3858 for am_i in 1 2; do 3859 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3860 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3861 ac_status=$? 3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3863 (exit $ac_status); } \ 3864 && test -f conftest2.$ac_objext; then 3865 : OK 3866 else 3867 am_cv_prog_cc_c_o=no 3868 break 3869 fi 3870 done 3871 rm -f core conftest* 3872 unset am_i 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3875$as_echo "$am_cv_prog_cc_c_o" >&6; } 3876if test "$am_cv_prog_cc_c_o" != yes; then 3877 # Losing compiler, so override with the script. 3878 # FIXME: It is wrong to rewrite CC. 3879 # But if we don't then we get into trouble of one sort or another. 3880 # A longer-term fix would be to have automake use am__CC in this case, 3881 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3882 CC="$am_aux_dir/compile $CC" 3883fi 3884ac_ext=c 3885ac_cpp='$CPP $CPPFLAGS' 3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3888ac_compiler_gnu=$ac_cv_c_compiler_gnu 3889 3890 3891depcc="$CC" am_compiler_list= 3892 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3894$as_echo_n "checking dependency style of $depcc... " >&6; } 3895if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3896 $as_echo_n "(cached) " >&6 3897else 3898 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3899 # We make a subdir and do the tests there. Otherwise we can end up 3900 # making bogus files that we don't know about and never remove. For 3901 # instance it was reported that on HP-UX the gcc test will end up 3902 # making a dummy file named 'D' -- because '-MD' means "put the output 3903 # in D". 3904 rm -rf conftest.dir 3905 mkdir conftest.dir 3906 # Copy depcomp to subdir because otherwise we won't find it if we're 3907 # using a relative directory. 3908 cp "$am_depcomp" conftest.dir 3909 cd conftest.dir 3910 # We will build objects and dependencies in a subdirectory because 3911 # it helps to detect inapplicable dependency modes. For instance 3912 # both Tru64's cc and ICC support -MD to output dependencies as a 3913 # side effect of compilation, but ICC will put the dependencies in 3914 # the current directory while Tru64 will put them in the object 3915 # directory. 3916 mkdir sub 3917 3918 am_cv_CC_dependencies_compiler_type=none 3919 if test "$am_compiler_list" = ""; then 3920 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3921 fi 3922 am__universal=false 3923 case " $depcc " in #( 3924 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3925 esac 3926 3927 for depmode in $am_compiler_list; do 3928 # Setup a source with many dependencies, because some compilers 3929 # like to wrap large dependency lists on column 80 (with \), and 3930 # we should not choose a depcomp mode which is confused by this. 3931 # 3932 # We need to recreate these files for each test, as the compiler may 3933 # overwrite some of them when testing with obscure command lines. 3934 # This happens at least with the AIX C compiler. 3935 : > sub/conftest.c 3936 for i in 1 2 3 4 5 6; do 3937 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3938 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3939 # Solaris 10 /bin/sh. 3940 echo '/* dummy */' > sub/conftst$i.h 3941 done 3942 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3943 3944 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3945 # mode. It turns out that the SunPro C++ compiler does not properly 3946 # handle '-M -o', and we need to detect this. Also, some Intel 3947 # versions had trouble with output in subdirs. 3948 am__obj=sub/conftest.${OBJEXT-o} 3949 am__minus_obj="-o $am__obj" 3950 case $depmode in 3951 gcc) 3952 # This depmode causes a compiler race in universal mode. 3953 test "$am__universal" = false || continue 3954 ;; 3955 nosideeffect) 3956 # After this tag, mechanisms are not by side-effect, so they'll 3957 # only be used when explicitly requested. 3958 if test "x$enable_dependency_tracking" = xyes; then 3959 continue 3960 else 3961 break 3962 fi 3963 ;; 3964 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3965 # This compiler won't grok '-c -o', but also, the minuso test has 3966 # not run yet. These depmodes are late enough in the game, and 3967 # so weak that their functioning should not be impacted. 3968 am__obj=conftest.${OBJEXT-o} 3969 am__minus_obj= 3970 ;; 3971 none) break ;; 3972 esac 3973 if depmode=$depmode \ 3974 source=sub/conftest.c object=$am__obj \ 3975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3976 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3977 >/dev/null 2>conftest.err && 3978 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3979 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3980 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3981 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3982 # icc doesn't choke on unknown options, it will just issue warnings 3983 # or remarks (even with -Werror). So we grep stderr for any message 3984 # that says an option was ignored or not supported. 3985 # When given -MP, icc 7.0 and 7.1 complain thusly: 3986 # icc: Command line warning: ignoring option '-M'; no argument required 3987 # The diagnosis changed in icc 8.0: 3988 # icc: Command line remark: option '-MP' not supported 3989 if (grep 'ignoring option' conftest.err || 3990 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3991 am_cv_CC_dependencies_compiler_type=$depmode 3992 break 3993 fi 3994 fi 3995 done 3996 3997 cd .. 3998 rm -rf conftest.dir 3999else 4000 am_cv_CC_dependencies_compiler_type=none 4001fi 4002 4003fi 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4005$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4006CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4007 4008 if 4009 test "x$enable_dependency_tracking" != xno \ 4010 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4011 am__fastdepCC_TRUE= 4012 am__fastdepCC_FALSE='#' 4013else 4014 am__fastdepCC_TRUE='#' 4015 am__fastdepCC_FALSE= 4016fi 4017 4018 4019 4020ac_ext=c 4021ac_cpp='$CPP $CPPFLAGS' 4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4024ac_compiler_gnu=$ac_cv_c_compiler_gnu 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4026$as_echo_n "checking how to run the C preprocessor... " >&6; } 4027# On Suns, sometimes $CPP names a directory. 4028if test -n "$CPP" && test -d "$CPP"; then 4029 CPP= 4030fi 4031if test -z "$CPP"; then 4032 if ${ac_cv_prog_CPP+:} false; then : 4033 $as_echo_n "(cached) " >&6 4034else 4035 # Double quotes because CPP needs to be expanded 4036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4037 do 4038 ac_preproc_ok=false 4039for ac_c_preproc_warn_flag in '' yes 4040do 4041 # Use a header file that comes with gcc, so configuring glibc 4042 # with a fresh cross-compiler works. 4043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4044 # <limits.h> exists even on freestanding compilers. 4045 # On the NeXT, cc -E runs the code through the compiler's parser, 4046 # not just through cpp. "Syntax error" is here to catch this case. 4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048/* end confdefs.h. */ 4049#ifdef __STDC__ 4050# include <limits.h> 4051#else 4052# include <assert.h> 4053#endif 4054 Syntax error 4055_ACEOF 4056if ac_fn_c_try_cpp "$LINENO"; then : 4057 4058else 4059 # Broken: fails on valid input. 4060continue 4061fi 4062rm -f conftest.err conftest.i conftest.$ac_ext 4063 4064 # OK, works on sane cases. Now check whether nonexistent headers 4065 # can be detected and how. 4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4067/* end confdefs.h. */ 4068#include <ac_nonexistent.h> 4069_ACEOF 4070if ac_fn_c_try_cpp "$LINENO"; then : 4071 # Broken: success on invalid input. 4072continue 4073else 4074 # Passes both tests. 4075ac_preproc_ok=: 4076break 4077fi 4078rm -f conftest.err conftest.i conftest.$ac_ext 4079 4080done 4081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4082rm -f conftest.i conftest.err conftest.$ac_ext 4083if $ac_preproc_ok; then : 4084 break 4085fi 4086 4087 done 4088 ac_cv_prog_CPP=$CPP 4089 4090fi 4091 CPP=$ac_cv_prog_CPP 4092else 4093 ac_cv_prog_CPP=$CPP 4094fi 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4096$as_echo "$CPP" >&6; } 4097ac_preproc_ok=false 4098for ac_c_preproc_warn_flag in '' yes 4099do 4100 # Use a header file that comes with gcc, so configuring glibc 4101 # with a fresh cross-compiler works. 4102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4103 # <limits.h> exists even on freestanding compilers. 4104 # On the NeXT, cc -E runs the code through the compiler's parser, 4105 # not just through cpp. "Syntax error" is here to catch this case. 4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4107/* end confdefs.h. */ 4108#ifdef __STDC__ 4109# include <limits.h> 4110#else 4111# include <assert.h> 4112#endif 4113 Syntax error 4114_ACEOF 4115if ac_fn_c_try_cpp "$LINENO"; then : 4116 4117else 4118 # Broken: fails on valid input. 4119continue 4120fi 4121rm -f conftest.err conftest.i conftest.$ac_ext 4122 4123 # OK, works on sane cases. Now check whether nonexistent headers 4124 # can be detected and how. 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126/* end confdefs.h. */ 4127#include <ac_nonexistent.h> 4128_ACEOF 4129if ac_fn_c_try_cpp "$LINENO"; then : 4130 # Broken: success on invalid input. 4131continue 4132else 4133 # Passes both tests. 4134ac_preproc_ok=: 4135break 4136fi 4137rm -f conftest.err conftest.i conftest.$ac_ext 4138 4139done 4140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4141rm -f conftest.i conftest.err conftest.$ac_ext 4142if $ac_preproc_ok; then : 4143 4144else 4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4147as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4148See \`config.log' for more details" "$LINENO" 5; } 4149fi 4150 4151ac_ext=c 4152ac_cpp='$CPP $CPPFLAGS' 4153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4155ac_compiler_gnu=$ac_cv_c_compiler_gnu 4156 4157 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4159$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4160if ${ac_cv_path_GREP+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 if test -z "$GREP"; then 4164 ac_path_GREP_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_prog in grep ggrep; do 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4174 as_fn_executable_p "$ac_path_GREP" || continue 4175# Check for GNU ac_path_GREP and select it if it is found. 4176 # Check for GNU $ac_path_GREP 4177case `"$ac_path_GREP" --version 2>&1` in 4178*GNU*) 4179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4180*) 4181 ac_count=0 4182 $as_echo_n 0123456789 >"conftest.in" 4183 while : 4184 do 4185 cat "conftest.in" "conftest.in" >"conftest.tmp" 4186 mv "conftest.tmp" "conftest.in" 4187 cp "conftest.in" "conftest.nl" 4188 $as_echo 'GREP' >> "conftest.nl" 4189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4191 as_fn_arith $ac_count + 1 && ac_count=$as_val 4192 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4193 # Best one so far, save it but keep looking for a better one 4194 ac_cv_path_GREP="$ac_path_GREP" 4195 ac_path_GREP_max=$ac_count 4196 fi 4197 # 10*(2^10) chars as input seems more than enough 4198 test $ac_count -gt 10 && break 4199 done 4200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4201esac 4202 4203 $ac_path_GREP_found && break 3 4204 done 4205 done 4206 done 4207IFS=$as_save_IFS 4208 if test -z "$ac_cv_path_GREP"; then 4209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4210 fi 4211else 4212 ac_cv_path_GREP=$GREP 4213fi 4214 4215fi 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4217$as_echo "$ac_cv_path_GREP" >&6; } 4218 GREP="$ac_cv_path_GREP" 4219 4220 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4222$as_echo_n "checking for egrep... " >&6; } 4223if ${ac_cv_path_EGREP+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4227 then ac_cv_path_EGREP="$GREP -E" 4228 else 4229 if test -z "$EGREP"; then 4230 ac_path_EGREP_found=false 4231 # Loop through the user's path and test for each of PROGNAME-LIST 4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4233for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4234do 4235 IFS=$as_save_IFS 4236 test -z "$as_dir" && as_dir=. 4237 for ac_prog in egrep; do 4238 for ac_exec_ext in '' $ac_executable_extensions; do 4239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4240 as_fn_executable_p "$ac_path_EGREP" || continue 4241# Check for GNU ac_path_EGREP and select it if it is found. 4242 # Check for GNU $ac_path_EGREP 4243case `"$ac_path_EGREP" --version 2>&1` in 4244*GNU*) 4245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4246*) 4247 ac_count=0 4248 $as_echo_n 0123456789 >"conftest.in" 4249 while : 4250 do 4251 cat "conftest.in" "conftest.in" >"conftest.tmp" 4252 mv "conftest.tmp" "conftest.in" 4253 cp "conftest.in" "conftest.nl" 4254 $as_echo 'EGREP' >> "conftest.nl" 4255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4257 as_fn_arith $ac_count + 1 && ac_count=$as_val 4258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4259 # Best one so far, save it but keep looking for a better one 4260 ac_cv_path_EGREP="$ac_path_EGREP" 4261 ac_path_EGREP_max=$ac_count 4262 fi 4263 # 10*(2^10) chars as input seems more than enough 4264 test $ac_count -gt 10 && break 4265 done 4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4267esac 4268 4269 $ac_path_EGREP_found && break 3 4270 done 4271 done 4272 done 4273IFS=$as_save_IFS 4274 if test -z "$ac_cv_path_EGREP"; then 4275 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4276 fi 4277else 4278 ac_cv_path_EGREP=$EGREP 4279fi 4280 4281 fi 4282fi 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4284$as_echo "$ac_cv_path_EGREP" >&6; } 4285 EGREP="$ac_cv_path_EGREP" 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4289$as_echo_n "checking for ANSI C header files... " >&6; } 4290if ${ac_cv_header_stdc+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294/* end confdefs.h. */ 4295#include <stdlib.h> 4296#include <stdarg.h> 4297#include <string.h> 4298#include <float.h> 4299 4300int 4301main () 4302{ 4303 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308if ac_fn_c_try_compile "$LINENO"; then : 4309 ac_cv_header_stdc=yes 4310else 4311 ac_cv_header_stdc=no 4312fi 4313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4314 4315if test $ac_cv_header_stdc = yes; then 4316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4318/* end confdefs.h. */ 4319#include <string.h> 4320 4321_ACEOF 4322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4323 $EGREP "memchr" >/dev/null 2>&1; then : 4324 4325else 4326 ac_cv_header_stdc=no 4327fi 4328rm -f conftest* 4329 4330fi 4331 4332if test $ac_cv_header_stdc = yes; then 4333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335/* end confdefs.h. */ 4336#include <stdlib.h> 4337 4338_ACEOF 4339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4340 $EGREP "free" >/dev/null 2>&1; then : 4341 4342else 4343 ac_cv_header_stdc=no 4344fi 4345rm -f conftest* 4346 4347fi 4348 4349if test $ac_cv_header_stdc = yes; then 4350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4351 if test "$cross_compiling" = yes; then : 4352 : 4353else 4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356#include <ctype.h> 4357#include <stdlib.h> 4358#if ((' ' & 0x0FF) == 0x020) 4359# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4360# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4361#else 4362# define ISLOWER(c) \ 4363 (('a' <= (c) && (c) <= 'i') \ 4364 || ('j' <= (c) && (c) <= 'r') \ 4365 || ('s' <= (c) && (c) <= 'z')) 4366# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4367#endif 4368 4369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4370int 4371main () 4372{ 4373 int i; 4374 for (i = 0; i < 256; i++) 4375 if (XOR (islower (i), ISLOWER (i)) 4376 || toupper (i) != TOUPPER (i)) 4377 return 2; 4378 return 0; 4379} 4380_ACEOF 4381if ac_fn_c_try_run "$LINENO"; then : 4382 4383else 4384 ac_cv_header_stdc=no 4385fi 4386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4387 conftest.$ac_objext conftest.beam conftest.$ac_ext 4388fi 4389 4390fi 4391fi 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4393$as_echo "$ac_cv_header_stdc" >&6; } 4394if test $ac_cv_header_stdc = yes; then 4395 4396$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4397 4398fi 4399 4400# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4401for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4402 inttypes.h stdint.h unistd.h 4403do : 4404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4405ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4406" 4407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4408 cat >>confdefs.h <<_ACEOF 4409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4410_ACEOF 4411 4412fi 4413 4414done 4415 4416 4417 4418 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4419if test "x$ac_cv_header_minix_config_h" = xyes; then : 4420 MINIX=yes 4421else 4422 MINIX= 4423fi 4424 4425 4426 if test "$MINIX" = yes; then 4427 4428$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4429 4430 4431$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4432 4433 4434$as_echo "#define _MINIX 1" >>confdefs.h 4435 4436 fi 4437 4438 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4440$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4441if ${ac_cv_safe_to_define___extensions__+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445/* end confdefs.h. */ 4446 4447# define __EXTENSIONS__ 1 4448 $ac_includes_default 4449int 4450main () 4451{ 4452 4453 ; 4454 return 0; 4455} 4456_ACEOF 4457if ac_fn_c_try_compile "$LINENO"; then : 4458 ac_cv_safe_to_define___extensions__=yes 4459else 4460 ac_cv_safe_to_define___extensions__=no 4461fi 4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4463fi 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4465$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4466 test $ac_cv_safe_to_define___extensions__ = yes && 4467 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4468 4469 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4470 4471 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4472 4473 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4474 4475 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4476 4477 4478 4479# Initialize libtool 4480case `pwd` in 4481 *\ * | *\ *) 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4483$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4484esac 4485 4486 4487 4488macro_version='2.4.2' 4489macro_revision='1.3337' 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503ltmain="$ac_aux_dir/ltmain.sh" 4504 4505# Make sure we can run config.sub. 4506$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4507 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4510$as_echo_n "checking build system type... " >&6; } 4511if ${ac_cv_build+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 ac_build_alias=$build_alias 4515test "x$ac_build_alias" = x && 4516 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4517test "x$ac_build_alias" = x && 4518 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4519ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4521 4522fi 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4524$as_echo "$ac_cv_build" >&6; } 4525case $ac_cv_build in 4526*-*-*) ;; 4527*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4528esac 4529build=$ac_cv_build 4530ac_save_IFS=$IFS; IFS='-' 4531set x $ac_cv_build 4532shift 4533build_cpu=$1 4534build_vendor=$2 4535shift; shift 4536# Remember, the first character of IFS is used to create $*, 4537# except with old shells: 4538build_os=$* 4539IFS=$ac_save_IFS 4540case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4541 4542 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4544$as_echo_n "checking host system type... " >&6; } 4545if ${ac_cv_host+:} false; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if test "x$host_alias" = x; then 4549 ac_cv_host=$ac_cv_build 4550else 4551 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4553fi 4554 4555fi 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4557$as_echo "$ac_cv_host" >&6; } 4558case $ac_cv_host in 4559*-*-*) ;; 4560*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4561esac 4562host=$ac_cv_host 4563ac_save_IFS=$IFS; IFS='-' 4564set x $ac_cv_host 4565shift 4566host_cpu=$1 4567host_vendor=$2 4568shift; shift 4569# Remember, the first character of IFS is used to create $*, 4570# except with old shells: 4571host_os=$* 4572IFS=$ac_save_IFS 4573case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4574 4575 4576# Backslashify metacharacters that are still active within 4577# double-quoted strings. 4578sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4579 4580# Same as above, but do not quote variable references. 4581double_quote_subst='s/\(["`\\]\)/\\\1/g' 4582 4583# Sed substitution to delay expansion of an escaped shell variable in a 4584# double_quote_subst'ed string. 4585delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4586 4587# Sed substitution to delay expansion of an escaped single quote. 4588delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4589 4590# Sed substitution to avoid accidental globbing in evaled expressions 4591no_glob_subst='s/\*/\\\*/g' 4592 4593ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4594ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4595ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4596 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4598$as_echo_n "checking how to print strings... " >&6; } 4599# Test print first, because it will be a builtin if present. 4600if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4601 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4602 ECHO='print -r --' 4603elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4604 ECHO='printf %s\n' 4605else 4606 # Use this function as a fallback that always works. 4607 func_fallback_echo () 4608 { 4609 eval 'cat <<_LTECHO_EOF 4610$1 4611_LTECHO_EOF' 4612 } 4613 ECHO='func_fallback_echo' 4614fi 4615 4616# func_echo_all arg... 4617# Invoke $ECHO with all args, space-separated. 4618func_echo_all () 4619{ 4620 $ECHO "" 4621} 4622 4623case "$ECHO" in 4624 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4625$as_echo "printf" >&6; } ;; 4626 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4627$as_echo "print -r" >&6; } ;; 4628 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4629$as_echo "cat" >&6; } ;; 4630esac 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4646$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4647if ${ac_cv_path_SED+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4651 for ac_i in 1 2 3 4 5 6 7; do 4652 ac_script="$ac_script$as_nl$ac_script" 4653 done 4654 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4655 { ac_script=; unset ac_script;} 4656 if test -z "$SED"; then 4657 ac_path_SED_found=false 4658 # Loop through the user's path and test for each of PROGNAME-LIST 4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_prog in sed gsed; do 4665 for ac_exec_ext in '' $ac_executable_extensions; do 4666 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4667 as_fn_executable_p "$ac_path_SED" || continue 4668# Check for GNU ac_path_SED and select it if it is found. 4669 # Check for GNU $ac_path_SED 4670case `"$ac_path_SED" --version 2>&1` in 4671*GNU*) 4672 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4673*) 4674 ac_count=0 4675 $as_echo_n 0123456789 >"conftest.in" 4676 while : 4677 do 4678 cat "conftest.in" "conftest.in" >"conftest.tmp" 4679 mv "conftest.tmp" "conftest.in" 4680 cp "conftest.in" "conftest.nl" 4681 $as_echo '' >> "conftest.nl" 4682 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4684 as_fn_arith $ac_count + 1 && ac_count=$as_val 4685 if test $ac_count -gt ${ac_path_SED_max-0}; then 4686 # Best one so far, save it but keep looking for a better one 4687 ac_cv_path_SED="$ac_path_SED" 4688 ac_path_SED_max=$ac_count 4689 fi 4690 # 10*(2^10) chars as input seems more than enough 4691 test $ac_count -gt 10 && break 4692 done 4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4694esac 4695 4696 $ac_path_SED_found && break 3 4697 done 4698 done 4699 done 4700IFS=$as_save_IFS 4701 if test -z "$ac_cv_path_SED"; then 4702 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4703 fi 4704else 4705 ac_cv_path_SED=$SED 4706fi 4707 4708fi 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4710$as_echo "$ac_cv_path_SED" >&6; } 4711 SED="$ac_cv_path_SED" 4712 rm -f conftest.sed 4713 4714test -z "$SED" && SED=sed 4715Xsed="$SED -e 1s/^X//" 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4728$as_echo_n "checking for fgrep... " >&6; } 4729if ${ac_cv_path_FGREP+:} false; then : 4730 $as_echo_n "(cached) " >&6 4731else 4732 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4733 then ac_cv_path_FGREP="$GREP -F" 4734 else 4735 if test -z "$FGREP"; then 4736 ac_path_FGREP_found=false 4737 # Loop through the user's path and test for each of PROGNAME-LIST 4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4739for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4740do 4741 IFS=$as_save_IFS 4742 test -z "$as_dir" && as_dir=. 4743 for ac_prog in fgrep; do 4744 for ac_exec_ext in '' $ac_executable_extensions; do 4745 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4746 as_fn_executable_p "$ac_path_FGREP" || continue 4747# Check for GNU ac_path_FGREP and select it if it is found. 4748 # Check for GNU $ac_path_FGREP 4749case `"$ac_path_FGREP" --version 2>&1` in 4750*GNU*) 4751 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4752*) 4753 ac_count=0 4754 $as_echo_n 0123456789 >"conftest.in" 4755 while : 4756 do 4757 cat "conftest.in" "conftest.in" >"conftest.tmp" 4758 mv "conftest.tmp" "conftest.in" 4759 cp "conftest.in" "conftest.nl" 4760 $as_echo 'FGREP' >> "conftest.nl" 4761 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4763 as_fn_arith $ac_count + 1 && ac_count=$as_val 4764 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4765 # Best one so far, save it but keep looking for a better one 4766 ac_cv_path_FGREP="$ac_path_FGREP" 4767 ac_path_FGREP_max=$ac_count 4768 fi 4769 # 10*(2^10) chars as input seems more than enough 4770 test $ac_count -gt 10 && break 4771 done 4772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4773esac 4774 4775 $ac_path_FGREP_found && break 3 4776 done 4777 done 4778 done 4779IFS=$as_save_IFS 4780 if test -z "$ac_cv_path_FGREP"; then 4781 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4782 fi 4783else 4784 ac_cv_path_FGREP=$FGREP 4785fi 4786 4787 fi 4788fi 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4790$as_echo "$ac_cv_path_FGREP" >&6; } 4791 FGREP="$ac_cv_path_FGREP" 4792 4793 4794test -z "$GREP" && GREP=grep 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814# Check whether --with-gnu-ld was given. 4815if test "${with_gnu_ld+set}" = set; then : 4816 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4817else 4818 with_gnu_ld=no 4819fi 4820 4821ac_prog=ld 4822if test "$GCC" = yes; then 4823 # Check if gcc -print-prog-name=ld gives a path. 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4825$as_echo_n "checking for ld used by $CC... " >&6; } 4826 case $host in 4827 *-*-mingw*) 4828 # gcc leaves a trailing carriage return which upsets mingw 4829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4830 *) 4831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4832 esac 4833 case $ac_prog in 4834 # Accept absolute paths. 4835 [\\/]* | ?:[\\/]*) 4836 re_direlt='/[^/][^/]*/\.\./' 4837 # Canonicalize the pathname of ld 4838 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4839 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4840 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4841 done 4842 test -z "$LD" && LD="$ac_prog" 4843 ;; 4844 "") 4845 # If it fails, then pretend we aren't using GCC. 4846 ac_prog=ld 4847 ;; 4848 *) 4849 # If it is relative, then search for the first ld in PATH. 4850 with_gnu_ld=unknown 4851 ;; 4852 esac 4853elif test "$with_gnu_ld" = yes; then 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4855$as_echo_n "checking for GNU ld... " >&6; } 4856else 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4858$as_echo_n "checking for non-GNU ld... " >&6; } 4859fi 4860if ${lt_cv_path_LD+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862else 4863 if test -z "$LD"; then 4864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4865 for ac_dir in $PATH; do 4866 IFS="$lt_save_ifs" 4867 test -z "$ac_dir" && ac_dir=. 4868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4869 lt_cv_path_LD="$ac_dir/$ac_prog" 4870 # Check to see if the program is GNU ld. I'd rather use --version, 4871 # but apparently some variants of GNU ld only accept -v. 4872 # Break only if it was the GNU/non-GNU ld that we prefer. 4873 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4874 *GNU* | *'with BFD'*) 4875 test "$with_gnu_ld" != no && break 4876 ;; 4877 *) 4878 test "$with_gnu_ld" != yes && break 4879 ;; 4880 esac 4881 fi 4882 done 4883 IFS="$lt_save_ifs" 4884else 4885 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4886fi 4887fi 4888 4889LD="$lt_cv_path_LD" 4890if test -n "$LD"; then 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4892$as_echo "$LD" >&6; } 4893else 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895$as_echo "no" >&6; } 4896fi 4897test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4899$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4900if ${lt_cv_prog_gnu_ld+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4904case `$LD -v 2>&1 </dev/null` in 4905*GNU* | *'with BFD'*) 4906 lt_cv_prog_gnu_ld=yes 4907 ;; 4908*) 4909 lt_cv_prog_gnu_ld=no 4910 ;; 4911esac 4912fi 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4914$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4915with_gnu_ld=$lt_cv_prog_gnu_ld 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4926$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4927if ${lt_cv_path_NM+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 if test -n "$NM"; then 4931 # Let the user override the test. 4932 lt_cv_path_NM="$NM" 4933else 4934 lt_nm_to_check="${ac_tool_prefix}nm" 4935 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4936 lt_nm_to_check="$lt_nm_to_check nm" 4937 fi 4938 for lt_tmp_nm in $lt_nm_to_check; do 4939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4940 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4941 IFS="$lt_save_ifs" 4942 test -z "$ac_dir" && ac_dir=. 4943 tmp_nm="$ac_dir/$lt_tmp_nm" 4944 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4945 # Check to see if the nm accepts a BSD-compat flag. 4946 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4947 # nm: unknown option "B" ignored 4948 # Tru64's nm complains that /dev/null is an invalid object file 4949 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4950 */dev/null* | *'Invalid file or object type'*) 4951 lt_cv_path_NM="$tmp_nm -B" 4952 break 4953 ;; 4954 *) 4955 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4956 */dev/null*) 4957 lt_cv_path_NM="$tmp_nm -p" 4958 break 4959 ;; 4960 *) 4961 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4962 continue # so that we can try to find one that supports BSD flags 4963 ;; 4964 esac 4965 ;; 4966 esac 4967 fi 4968 done 4969 IFS="$lt_save_ifs" 4970 done 4971 : ${lt_cv_path_NM=no} 4972fi 4973fi 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4975$as_echo "$lt_cv_path_NM" >&6; } 4976if test "$lt_cv_path_NM" != "no"; then 4977 NM="$lt_cv_path_NM" 4978else 4979 # Didn't find any BSD compatible name lister, look for dumpbin. 4980 if test -n "$DUMPBIN"; then : 4981 # Let the user override the test. 4982 else 4983 if test -n "$ac_tool_prefix"; then 4984 for ac_prog in dumpbin "link -dump" 4985 do 4986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4987set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4989$as_echo_n "checking for $ac_word... " >&6; } 4990if ${ac_cv_prog_DUMPBIN+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 if test -n "$DUMPBIN"; then 4994 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4995else 4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997for as_dir in $PATH 4998do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5003 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007done 5008 done 5009IFS=$as_save_IFS 5010 5011fi 5012fi 5013DUMPBIN=$ac_cv_prog_DUMPBIN 5014if test -n "$DUMPBIN"; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5016$as_echo "$DUMPBIN" >&6; } 5017else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019$as_echo "no" >&6; } 5020fi 5021 5022 5023 test -n "$DUMPBIN" && break 5024 done 5025fi 5026if test -z "$DUMPBIN"; then 5027 ac_ct_DUMPBIN=$DUMPBIN 5028 for ac_prog in dumpbin "link -dump" 5029do 5030 # Extract the first word of "$ac_prog", so it can be a program name with args. 5031set dummy $ac_prog; ac_word=$2 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5033$as_echo_n "checking for $ac_word... " >&6; } 5034if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 if test -n "$ac_ct_DUMPBIN"; then 5038 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5039else 5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5041for as_dir in $PATH 5042do 5043 IFS=$as_save_IFS 5044 test -z "$as_dir" && as_dir=. 5045 for ac_exec_ext in '' $ac_executable_extensions; do 5046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5047 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5049 break 2 5050 fi 5051done 5052 done 5053IFS=$as_save_IFS 5054 5055fi 5056fi 5057ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5058if test -n "$ac_ct_DUMPBIN"; then 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5060$as_echo "$ac_ct_DUMPBIN" >&6; } 5061else 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5063$as_echo "no" >&6; } 5064fi 5065 5066 5067 test -n "$ac_ct_DUMPBIN" && break 5068done 5069 5070 if test "x$ac_ct_DUMPBIN" = x; then 5071 DUMPBIN=":" 5072 else 5073 case $cross_compiling:$ac_tool_warned in 5074yes:) 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5077ac_tool_warned=yes ;; 5078esac 5079 DUMPBIN=$ac_ct_DUMPBIN 5080 fi 5081fi 5082 5083 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5084 *COFF*) 5085 DUMPBIN="$DUMPBIN -symbols" 5086 ;; 5087 *) 5088 DUMPBIN=: 5089 ;; 5090 esac 5091 fi 5092 5093 if test "$DUMPBIN" != ":"; then 5094 NM="$DUMPBIN" 5095 fi 5096fi 5097test -z "$NM" && NM=nm 5098 5099 5100 5101 5102 5103 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5105$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5106if ${lt_cv_nm_interface+:} false; then : 5107 $as_echo_n "(cached) " >&6 5108else 5109 lt_cv_nm_interface="BSD nm" 5110 echo "int some_variable = 0;" > conftest.$ac_ext 5111 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5112 (eval "$ac_compile" 2>conftest.err) 5113 cat conftest.err >&5 5114 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5115 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5116 cat conftest.err >&5 5117 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5118 cat conftest.out >&5 5119 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5120 lt_cv_nm_interface="MS dumpbin" 5121 fi 5122 rm -f conftest* 5123fi 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5125$as_echo "$lt_cv_nm_interface" >&6; } 5126 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5128$as_echo_n "checking whether ln -s works... " >&6; } 5129LN_S=$as_ln_s 5130if test "$LN_S" = "ln -s"; then 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5132$as_echo "yes" >&6; } 5133else 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5135$as_echo "no, using $LN_S" >&6; } 5136fi 5137 5138# find the maximum length of command line arguments 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5140$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5141if ${lt_cv_sys_max_cmd_len+:} false; then : 5142 $as_echo_n "(cached) " >&6 5143else 5144 i=0 5145 teststring="ABCD" 5146 5147 case $build_os in 5148 msdosdjgpp*) 5149 # On DJGPP, this test can blow up pretty badly due to problems in libc 5150 # (any single argument exceeding 2000 bytes causes a buffer overrun 5151 # during glob expansion). Even if it were fixed, the result of this 5152 # check would be larger than it should be. 5153 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5154 ;; 5155 5156 gnu*) 5157 # Under GNU Hurd, this test is not required because there is 5158 # no limit to the length of command line arguments. 5159 # Libtool will interpret -1 as no limit whatsoever 5160 lt_cv_sys_max_cmd_len=-1; 5161 ;; 5162 5163 cygwin* | mingw* | cegcc*) 5164 # On Win9x/ME, this test blows up -- it succeeds, but takes 5165 # about 5 minutes as the teststring grows exponentially. 5166 # Worse, since 9x/ME are not pre-emptively multitasking, 5167 # you end up with a "frozen" computer, even though with patience 5168 # the test eventually succeeds (with a max line length of 256k). 5169 # Instead, let's just punt: use the minimum linelength reported by 5170 # all of the supported platforms: 8192 (on NT/2K/XP). 5171 lt_cv_sys_max_cmd_len=8192; 5172 ;; 5173 5174 mint*) 5175 # On MiNT this can take a long time and run out of memory. 5176 lt_cv_sys_max_cmd_len=8192; 5177 ;; 5178 5179 amigaos*) 5180 # On AmigaOS with pdksh, this test takes hours, literally. 5181 # So we just punt and use a minimum line length of 8192. 5182 lt_cv_sys_max_cmd_len=8192; 5183 ;; 5184 5185 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5186 # This has been around since 386BSD, at least. Likely further. 5187 if test -x /sbin/sysctl; then 5188 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5189 elif test -x /usr/sbin/sysctl; then 5190 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5191 else 5192 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5193 fi 5194 # And add a safety zone 5195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5197 ;; 5198 5199 interix*) 5200 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5201 lt_cv_sys_max_cmd_len=196608 5202 ;; 5203 5204 os2*) 5205 # The test takes a long time on OS/2. 5206 lt_cv_sys_max_cmd_len=8192 5207 ;; 5208 5209 osf*) 5210 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5211 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5212 # nice to cause kernel panics so lets avoid the loop below. 5213 # First set a reasonable default. 5214 lt_cv_sys_max_cmd_len=16384 5215 # 5216 if test -x /sbin/sysconfig; then 5217 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5218 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5219 esac 5220 fi 5221 ;; 5222 sco3.2v5*) 5223 lt_cv_sys_max_cmd_len=102400 5224 ;; 5225 sysv5* | sco5v6* | sysv4.2uw2*) 5226 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5227 if test -n "$kargmax"; then 5228 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5229 else 5230 lt_cv_sys_max_cmd_len=32768 5231 fi 5232 ;; 5233 *) 5234 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5235 if test -n "$lt_cv_sys_max_cmd_len"; then 5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5238 else 5239 # Make teststring a little bigger before we do anything with it. 5240 # a 1K string should be a reasonable start. 5241 for i in 1 2 3 4 5 6 7 8 ; do 5242 teststring=$teststring$teststring 5243 done 5244 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5245 # If test is not a shell built-in, we'll probably end up computing a 5246 # maximum length that is only half of the actual maximum length, but 5247 # we can't tell. 5248 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5249 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5250 test $i != 17 # 1/2 MB should be enough 5251 do 5252 i=`expr $i + 1` 5253 teststring=$teststring$teststring 5254 done 5255 # Only check the string length outside the loop. 5256 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5257 teststring= 5258 # Add a significant safety factor because C++ compilers can tack on 5259 # massive amounts of additional arguments before passing them to the 5260 # linker. It appears as though 1/2 is a usable value. 5261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5262 fi 5263 ;; 5264 esac 5265 5266fi 5267 5268if test -n $lt_cv_sys_max_cmd_len ; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5270$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5271else 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5273$as_echo "none" >&6; } 5274fi 5275max_cmd_len=$lt_cv_sys_max_cmd_len 5276 5277 5278 5279 5280 5281 5282: ${CP="cp -f"} 5283: ${MV="mv -f"} 5284: ${RM="rm -f"} 5285 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5287$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5288# Try some XSI features 5289xsi_shell=no 5290( _lt_dummy="a/b/c" 5291 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5292 = c,a/b,b/c, \ 5293 && eval 'test $(( 1 + 1 )) -eq 2 \ 5294 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5295 && xsi_shell=yes 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5297$as_echo "$xsi_shell" >&6; } 5298 5299 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5301$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5302lt_shell_append=no 5303( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5304 >/dev/null 2>&1 \ 5305 && lt_shell_append=yes 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5307$as_echo "$lt_shell_append" >&6; } 5308 5309 5310if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5311 lt_unset=unset 5312else 5313 lt_unset=false 5314fi 5315 5316 5317 5318 5319 5320# test EBCDIC or ASCII 5321case `echo X|tr X '\101'` in 5322 A) # ASCII based system 5323 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5324 lt_SP2NL='tr \040 \012' 5325 lt_NL2SP='tr \015\012 \040\040' 5326 ;; 5327 *) # EBCDIC based system 5328 lt_SP2NL='tr \100 \n' 5329 lt_NL2SP='tr \r\n \100\100' 5330 ;; 5331esac 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5342$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5343if ${lt_cv_to_host_file_cmd+:} false; then : 5344 $as_echo_n "(cached) " >&6 5345else 5346 case $host in 5347 *-*-mingw* ) 5348 case $build in 5349 *-*-mingw* ) # actually msys 5350 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5351 ;; 5352 *-*-cygwin* ) 5353 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5354 ;; 5355 * ) # otherwise, assume *nix 5356 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5357 ;; 5358 esac 5359 ;; 5360 *-*-cygwin* ) 5361 case $build in 5362 *-*-mingw* ) # actually msys 5363 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5364 ;; 5365 *-*-cygwin* ) 5366 lt_cv_to_host_file_cmd=func_convert_file_noop 5367 ;; 5368 * ) # otherwise, assume *nix 5369 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5370 ;; 5371 esac 5372 ;; 5373 * ) # unhandled hosts (and "normal" native builds) 5374 lt_cv_to_host_file_cmd=func_convert_file_noop 5375 ;; 5376esac 5377 5378fi 5379 5380to_host_file_cmd=$lt_cv_to_host_file_cmd 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5382$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5383 5384 5385 5386 5387 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5389$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5390if ${lt_cv_to_tool_file_cmd+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 #assume ordinary cross tools, or native build. 5394lt_cv_to_tool_file_cmd=func_convert_file_noop 5395case $host in 5396 *-*-mingw* ) 5397 case $build in 5398 *-*-mingw* ) # actually msys 5399 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5400 ;; 5401 esac 5402 ;; 5403esac 5404 5405fi 5406 5407to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5409$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5410 5411 5412 5413 5414 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5416$as_echo_n "checking for $LD option to reload object files... " >&6; } 5417if ${lt_cv_ld_reload_flag+:} false; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 lt_cv_ld_reload_flag='-r' 5421fi 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5423$as_echo "$lt_cv_ld_reload_flag" >&6; } 5424reload_flag=$lt_cv_ld_reload_flag 5425case $reload_flag in 5426"" | " "*) ;; 5427*) reload_flag=" $reload_flag" ;; 5428esac 5429reload_cmds='$LD$reload_flag -o $output$reload_objs' 5430case $host_os in 5431 cygwin* | mingw* | pw32* | cegcc*) 5432 if test "$GCC" != yes; then 5433 reload_cmds=false 5434 fi 5435 ;; 5436 darwin*) 5437 if test "$GCC" = yes; then 5438 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5439 else 5440 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5441 fi 5442 ;; 5443esac 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453if test -n "$ac_tool_prefix"; then 5454 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5455set dummy ${ac_tool_prefix}objdump; ac_word=$2 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5457$as_echo_n "checking for $ac_word... " >&6; } 5458if ${ac_cv_prog_OBJDUMP+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 if test -n "$OBJDUMP"; then 5462 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5463else 5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465for as_dir in $PATH 5466do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5471 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475done 5476 done 5477IFS=$as_save_IFS 5478 5479fi 5480fi 5481OBJDUMP=$ac_cv_prog_OBJDUMP 5482if test -n "$OBJDUMP"; then 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5484$as_echo "$OBJDUMP" >&6; } 5485else 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5487$as_echo "no" >&6; } 5488fi 5489 5490 5491fi 5492if test -z "$ac_cv_prog_OBJDUMP"; then 5493 ac_ct_OBJDUMP=$OBJDUMP 5494 # Extract the first word of "objdump", so it can be a program name with args. 5495set dummy objdump; ac_word=$2 5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5497$as_echo_n "checking for $ac_word... " >&6; } 5498if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5499 $as_echo_n "(cached) " >&6 5500else 5501 if test -n "$ac_ct_OBJDUMP"; then 5502 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5503else 5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5505for as_dir in $PATH 5506do 5507 IFS=$as_save_IFS 5508 test -z "$as_dir" && as_dir=. 5509 for ac_exec_ext in '' $ac_executable_extensions; do 5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5511 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5513 break 2 5514 fi 5515done 5516 done 5517IFS=$as_save_IFS 5518 5519fi 5520fi 5521ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5522if test -n "$ac_ct_OBJDUMP"; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5524$as_echo "$ac_ct_OBJDUMP" >&6; } 5525else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5527$as_echo "no" >&6; } 5528fi 5529 5530 if test "x$ac_ct_OBJDUMP" = x; then 5531 OBJDUMP="false" 5532 else 5533 case $cross_compiling:$ac_tool_warned in 5534yes:) 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5537ac_tool_warned=yes ;; 5538esac 5539 OBJDUMP=$ac_ct_OBJDUMP 5540 fi 5541else 5542 OBJDUMP="$ac_cv_prog_OBJDUMP" 5543fi 5544 5545test -z "$OBJDUMP" && OBJDUMP=objdump 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5556$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5557if ${lt_cv_deplibs_check_method+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 lt_cv_file_magic_cmd='$MAGIC_CMD' 5561lt_cv_file_magic_test_file= 5562lt_cv_deplibs_check_method='unknown' 5563# Need to set the preceding variable on all platforms that support 5564# interlibrary dependencies. 5565# 'none' -- dependencies not supported. 5566# `unknown' -- same as none, but documents that we really don't know. 5567# 'pass_all' -- all dependencies passed with no checks. 5568# 'test_compile' -- check by making test program. 5569# 'file_magic [[regex]]' -- check by looking for files in library path 5570# which responds to the $file_magic_cmd with a given extended regex. 5571# If you have `file' or equivalent on your system and you're not sure 5572# whether `pass_all' will *always* work, you probably want this one. 5573 5574case $host_os in 5575aix[4-9]*) 5576 lt_cv_deplibs_check_method=pass_all 5577 ;; 5578 5579beos*) 5580 lt_cv_deplibs_check_method=pass_all 5581 ;; 5582 5583bsdi[45]*) 5584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5585 lt_cv_file_magic_cmd='/usr/bin/file -L' 5586 lt_cv_file_magic_test_file=/shlib/libc.so 5587 ;; 5588 5589cygwin*) 5590 # func_win32_libid is a shell function defined in ltmain.sh 5591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5592 lt_cv_file_magic_cmd='func_win32_libid' 5593 ;; 5594 5595mingw* | pw32*) 5596 # Base MSYS/MinGW do not provide the 'file' command needed by 5597 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5598 # unless we find 'file', for example because we are cross-compiling. 5599 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5600 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5602 lt_cv_file_magic_cmd='func_win32_libid' 5603 else 5604 # Keep this pattern in sync with the one in func_win32_libid. 5605 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5606 lt_cv_file_magic_cmd='$OBJDUMP -f' 5607 fi 5608 ;; 5609 5610cegcc*) 5611 # use the weaker test based on 'objdump'. See mingw*. 5612 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5613 lt_cv_file_magic_cmd='$OBJDUMP -f' 5614 ;; 5615 5616darwin* | rhapsody*) 5617 lt_cv_deplibs_check_method=pass_all 5618 ;; 5619 5620freebsd* | dragonfly*) 5621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5622 case $host_cpu in 5623 i*86 ) 5624 # Not sure whether the presence of OpenBSD here was a mistake. 5625 # Let's accept both of them until this is cleared up. 5626 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5627 lt_cv_file_magic_cmd=/usr/bin/file 5628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5629 ;; 5630 esac 5631 else 5632 lt_cv_deplibs_check_method=pass_all 5633 fi 5634 ;; 5635 5636gnu*) 5637 lt_cv_deplibs_check_method=pass_all 5638 ;; 5639 5640haiku*) 5641 lt_cv_deplibs_check_method=pass_all 5642 ;; 5643 5644hpux10.20* | hpux11*) 5645 lt_cv_file_magic_cmd=/usr/bin/file 5646 case $host_cpu in 5647 ia64*) 5648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5649 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5650 ;; 5651 hppa*64*) 5652 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]' 5653 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5654 ;; 5655 *) 5656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5657 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5658 ;; 5659 esac 5660 ;; 5661 5662interix[3-9]*) 5663 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5665 ;; 5666 5667irix5* | irix6* | nonstopux*) 5668 case $LD in 5669 *-32|*"-32 ") libmagic=32-bit;; 5670 *-n32|*"-n32 ") libmagic=N32;; 5671 *-64|*"-64 ") libmagic=64-bit;; 5672 *) libmagic=never-match;; 5673 esac 5674 lt_cv_deplibs_check_method=pass_all 5675 ;; 5676 5677# This must be glibc/ELF. 5678linux* | k*bsd*-gnu | kopensolaris*-gnu) 5679 lt_cv_deplibs_check_method=pass_all 5680 ;; 5681 5682netbsd*) 5683 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5685 else 5686 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5687 fi 5688 ;; 5689 5690newos6*) 5691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5692 lt_cv_file_magic_cmd=/usr/bin/file 5693 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5694 ;; 5695 5696*nto* | *qnx*) 5697 lt_cv_deplibs_check_method=pass_all 5698 ;; 5699 5700openbsd*) 5701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5703 else 5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5705 fi 5706 ;; 5707 5708osf3* | osf4* | osf5*) 5709 lt_cv_deplibs_check_method=pass_all 5710 ;; 5711 5712rdos*) 5713 lt_cv_deplibs_check_method=pass_all 5714 ;; 5715 5716solaris*) 5717 lt_cv_deplibs_check_method=pass_all 5718 ;; 5719 5720sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5721 lt_cv_deplibs_check_method=pass_all 5722 ;; 5723 5724sysv4 | sysv4.3*) 5725 case $host_vendor in 5726 motorola) 5727 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]' 5728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5729 ;; 5730 ncr) 5731 lt_cv_deplibs_check_method=pass_all 5732 ;; 5733 sequent) 5734 lt_cv_file_magic_cmd='/bin/file' 5735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5736 ;; 5737 sni) 5738 lt_cv_file_magic_cmd='/bin/file' 5739 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5740 lt_cv_file_magic_test_file=/lib/libc.so 5741 ;; 5742 siemens) 5743 lt_cv_deplibs_check_method=pass_all 5744 ;; 5745 pc) 5746 lt_cv_deplibs_check_method=pass_all 5747 ;; 5748 esac 5749 ;; 5750 5751tpf*) 5752 lt_cv_deplibs_check_method=pass_all 5753 ;; 5754esac 5755 5756fi 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5758$as_echo "$lt_cv_deplibs_check_method" >&6; } 5759 5760file_magic_glob= 5761want_nocaseglob=no 5762if test "$build" = "$host"; then 5763 case $host_os in 5764 mingw* | pw32*) 5765 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5766 want_nocaseglob=yes 5767 else 5768 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5769 fi 5770 ;; 5771 esac 5772fi 5773 5774file_magic_cmd=$lt_cv_file_magic_cmd 5775deplibs_check_method=$lt_cv_deplibs_check_method 5776test -z "$deplibs_check_method" && deplibs_check_method=unknown 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799if test -n "$ac_tool_prefix"; then 5800 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5801set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5803$as_echo_n "checking for $ac_word... " >&6; } 5804if ${ac_cv_prog_DLLTOOL+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 if test -n "$DLLTOOL"; then 5808 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5809else 5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811for as_dir in $PATH 5812do 5813 IFS=$as_save_IFS 5814 test -z "$as_dir" && as_dir=. 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5817 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821done 5822 done 5823IFS=$as_save_IFS 5824 5825fi 5826fi 5827DLLTOOL=$ac_cv_prog_DLLTOOL 5828if test -n "$DLLTOOL"; then 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5830$as_echo "$DLLTOOL" >&6; } 5831else 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5833$as_echo "no" >&6; } 5834fi 5835 5836 5837fi 5838if test -z "$ac_cv_prog_DLLTOOL"; then 5839 ac_ct_DLLTOOL=$DLLTOOL 5840 # Extract the first word of "dlltool", so it can be a program name with args. 5841set dummy dlltool; ac_word=$2 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5843$as_echo_n "checking for $ac_word... " >&6; } 5844if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5845 $as_echo_n "(cached) " >&6 5846else 5847 if test -n "$ac_ct_DLLTOOL"; then 5848 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5849else 5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5851for as_dir in $PATH 5852do 5853 IFS=$as_save_IFS 5854 test -z "$as_dir" && as_dir=. 5855 for ac_exec_ext in '' $ac_executable_extensions; do 5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5857 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5859 break 2 5860 fi 5861done 5862 done 5863IFS=$as_save_IFS 5864 5865fi 5866fi 5867ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5868if test -n "$ac_ct_DLLTOOL"; then 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5870$as_echo "$ac_ct_DLLTOOL" >&6; } 5871else 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5873$as_echo "no" >&6; } 5874fi 5875 5876 if test "x$ac_ct_DLLTOOL" = x; then 5877 DLLTOOL="false" 5878 else 5879 case $cross_compiling:$ac_tool_warned in 5880yes:) 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5883ac_tool_warned=yes ;; 5884esac 5885 DLLTOOL=$ac_ct_DLLTOOL 5886 fi 5887else 5888 DLLTOOL="$ac_cv_prog_DLLTOOL" 5889fi 5890 5891test -z "$DLLTOOL" && DLLTOOL=dlltool 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5903$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5904if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5905 $as_echo_n "(cached) " >&6 5906else 5907 lt_cv_sharedlib_from_linklib_cmd='unknown' 5908 5909case $host_os in 5910cygwin* | mingw* | pw32* | cegcc*) 5911 # two different shell functions defined in ltmain.sh 5912 # decide which to use based on capabilities of $DLLTOOL 5913 case `$DLLTOOL --help 2>&1` in 5914 *--identify-strict*) 5915 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5916 ;; 5917 *) 5918 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5919 ;; 5920 esac 5921 ;; 5922*) 5923 # fallback: assume linklib IS sharedlib 5924 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5925 ;; 5926esac 5927 5928fi 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5930$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5931sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5932test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5933 5934 5935 5936 5937 5938 5939 5940if test -n "$ac_tool_prefix"; then 5941 for ac_prog in ar 5942 do 5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5944set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5946$as_echo_n "checking for $ac_word... " >&6; } 5947if ${ac_cv_prog_AR+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949else 5950 if test -n "$AR"; then 5951 ac_cv_prog_AR="$AR" # Let the user override the test. 5952else 5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5954for as_dir in $PATH 5955do 5956 IFS=$as_save_IFS 5957 test -z "$as_dir" && as_dir=. 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5962 break 2 5963 fi 5964done 5965 done 5966IFS=$as_save_IFS 5967 5968fi 5969fi 5970AR=$ac_cv_prog_AR 5971if test -n "$AR"; then 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5973$as_echo "$AR" >&6; } 5974else 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5976$as_echo "no" >&6; } 5977fi 5978 5979 5980 test -n "$AR" && break 5981 done 5982fi 5983if test -z "$AR"; then 5984 ac_ct_AR=$AR 5985 for ac_prog in ar 5986do 5987 # Extract the first word of "$ac_prog", so it can be a program name with args. 5988set dummy $ac_prog; ac_word=$2 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5990$as_echo_n "checking for $ac_word... " >&6; } 5991if ${ac_cv_prog_ac_ct_AR+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 if test -n "$ac_ct_AR"; then 5995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6004 ac_cv_prog_ac_ct_AR="$ac_prog" 6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009 done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014ac_ct_AR=$ac_cv_prog_ac_ct_AR 6015if test -n "$ac_ct_AR"; then 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6017$as_echo "$ac_ct_AR" >&6; } 6018else 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6020$as_echo "no" >&6; } 6021fi 6022 6023 6024 test -n "$ac_ct_AR" && break 6025done 6026 6027 if test "x$ac_ct_AR" = x; then 6028 AR="false" 6029 else 6030 case $cross_compiling:$ac_tool_warned in 6031yes:) 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6034ac_tool_warned=yes ;; 6035esac 6036 AR=$ac_ct_AR 6037 fi 6038fi 6039 6040: ${AR=ar} 6041: ${AR_FLAGS=cru} 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6054$as_echo_n "checking for archiver @FILE support... " >&6; } 6055if ${lt_cv_ar_at_file+:} false; then : 6056 $as_echo_n "(cached) " >&6 6057else 6058 lt_cv_ar_at_file=no 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061 6062int 6063main () 6064{ 6065 6066 ; 6067 return 0; 6068} 6069_ACEOF 6070if ac_fn_c_try_compile "$LINENO"; then : 6071 echo conftest.$ac_objext > conftest.lst 6072 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6074 (eval $lt_ar_try) 2>&5 6075 ac_status=$? 6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6077 test $ac_status = 0; } 6078 if test "$ac_status" -eq 0; then 6079 # Ensure the archiver fails upon bogus file names. 6080 rm -f conftest.$ac_objext libconftest.a 6081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6082 (eval $lt_ar_try) 2>&5 6083 ac_status=$? 6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6085 test $ac_status = 0; } 6086 if test "$ac_status" -ne 0; then 6087 lt_cv_ar_at_file=@ 6088 fi 6089 fi 6090 rm -f conftest.* libconftest.a 6091 6092fi 6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6094 6095fi 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6097$as_echo "$lt_cv_ar_at_file" >&6; } 6098 6099if test "x$lt_cv_ar_at_file" = xno; then 6100 archiver_list_spec= 6101else 6102 archiver_list_spec=$lt_cv_ar_at_file 6103fi 6104 6105 6106 6107 6108 6109 6110 6111if test -n "$ac_tool_prefix"; then 6112 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6113set dummy ${ac_tool_prefix}strip; ac_word=$2 6114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6115$as_echo_n "checking for $ac_word... " >&6; } 6116if ${ac_cv_prog_STRIP+:} false; then : 6117 $as_echo_n "(cached) " >&6 6118else 6119 if test -n "$STRIP"; then 6120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6121else 6122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6123for as_dir in $PATH 6124do 6125 IFS=$as_save_IFS 6126 test -z "$as_dir" && as_dir=. 6127 for ac_exec_ext in '' $ac_executable_extensions; do 6128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6129 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6131 break 2 6132 fi 6133done 6134 done 6135IFS=$as_save_IFS 6136 6137fi 6138fi 6139STRIP=$ac_cv_prog_STRIP 6140if test -n "$STRIP"; then 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6142$as_echo "$STRIP" >&6; } 6143else 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6145$as_echo "no" >&6; } 6146fi 6147 6148 6149fi 6150if test -z "$ac_cv_prog_STRIP"; then 6151 ac_ct_STRIP=$STRIP 6152 # Extract the first word of "strip", so it can be a program name with args. 6153set dummy strip; ac_word=$2 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6155$as_echo_n "checking for $ac_word... " >&6; } 6156if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6157 $as_echo_n "(cached) " >&6 6158else 6159 if test -n "$ac_ct_STRIP"; then 6160 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6161else 6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6163for as_dir in $PATH 6164do 6165 IFS=$as_save_IFS 6166 test -z "$as_dir" && as_dir=. 6167 for ac_exec_ext in '' $ac_executable_extensions; do 6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6169 ac_cv_prog_ac_ct_STRIP="strip" 6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6171 break 2 6172 fi 6173done 6174 done 6175IFS=$as_save_IFS 6176 6177fi 6178fi 6179ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6180if test -n "$ac_ct_STRIP"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6182$as_echo "$ac_ct_STRIP" >&6; } 6183else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185$as_echo "no" >&6; } 6186fi 6187 6188 if test "x$ac_ct_STRIP" = x; then 6189 STRIP=":" 6190 else 6191 case $cross_compiling:$ac_tool_warned in 6192yes:) 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6195ac_tool_warned=yes ;; 6196esac 6197 STRIP=$ac_ct_STRIP 6198 fi 6199else 6200 STRIP="$ac_cv_prog_STRIP" 6201fi 6202 6203test -z "$STRIP" && STRIP=: 6204 6205 6206 6207 6208 6209 6210if test -n "$ac_tool_prefix"; then 6211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6212set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6214$as_echo_n "checking for $ac_word... " >&6; } 6215if ${ac_cv_prog_RANLIB+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 if test -n "$RANLIB"; then 6219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6220else 6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6222for as_dir in $PATH 6223do 6224 IFS=$as_save_IFS 6225 test -z "$as_dir" && as_dir=. 6226 for ac_exec_ext in '' $ac_executable_extensions; do 6227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6230 break 2 6231 fi 6232done 6233 done 6234IFS=$as_save_IFS 6235 6236fi 6237fi 6238RANLIB=$ac_cv_prog_RANLIB 6239if test -n "$RANLIB"; then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6241$as_echo "$RANLIB" >&6; } 6242else 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6244$as_echo "no" >&6; } 6245fi 6246 6247 6248fi 6249if test -z "$ac_cv_prog_RANLIB"; then 6250 ac_ct_RANLIB=$RANLIB 6251 # Extract the first word of "ranlib", so it can be a program name with args. 6252set dummy ranlib; ac_word=$2 6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6254$as_echo_n "checking for $ac_word... " >&6; } 6255if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6256 $as_echo_n "(cached) " >&6 6257else 6258 if test -n "$ac_ct_RANLIB"; then 6259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6260else 6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6262for as_dir in $PATH 6263do 6264 IFS=$as_save_IFS 6265 test -z "$as_dir" && as_dir=. 6266 for ac_exec_ext in '' $ac_executable_extensions; do 6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6268 ac_cv_prog_ac_ct_RANLIB="ranlib" 6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6270 break 2 6271 fi 6272done 6273 done 6274IFS=$as_save_IFS 6275 6276fi 6277fi 6278ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6279if test -n "$ac_ct_RANLIB"; then 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6281$as_echo "$ac_ct_RANLIB" >&6; } 6282else 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6284$as_echo "no" >&6; } 6285fi 6286 6287 if test "x$ac_ct_RANLIB" = x; then 6288 RANLIB=":" 6289 else 6290 case $cross_compiling:$ac_tool_warned in 6291yes:) 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6294ac_tool_warned=yes ;; 6295esac 6296 RANLIB=$ac_ct_RANLIB 6297 fi 6298else 6299 RANLIB="$ac_cv_prog_RANLIB" 6300fi 6301 6302test -z "$RANLIB" && RANLIB=: 6303 6304 6305 6306 6307 6308 6309# Determine commands to create old-style static archives. 6310old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6311old_postinstall_cmds='chmod 644 $oldlib' 6312old_postuninstall_cmds= 6313 6314if test -n "$RANLIB"; then 6315 case $host_os in 6316 openbsd*) 6317 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6318 ;; 6319 *) 6320 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6321 ;; 6322 esac 6323 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6324fi 6325 6326case $host_os in 6327 darwin*) 6328 lock_old_archive_extraction=yes ;; 6329 *) 6330 lock_old_archive_extraction=no ;; 6331esac 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371# If no C compiler was specified, use CC. 6372LTCC=${LTCC-"$CC"} 6373 6374# If no C compiler flags were specified, use CFLAGS. 6375LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6376 6377# Allow CC to be a program name with arguments. 6378compiler=$CC 6379 6380 6381# Check for command to grab the raw symbol name followed by C symbol from nm. 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6383$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6384if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 6388# These are sane defaults that work on at least a few old systems. 6389# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6390 6391# Character class describing NM global symbol codes. 6392symcode='[BCDEGRST]' 6393 6394# Regexp to match symbols that can be accessed directly from C. 6395sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6396 6397# Define system-specific variables. 6398case $host_os in 6399aix*) 6400 symcode='[BCDT]' 6401 ;; 6402cygwin* | mingw* | pw32* | cegcc*) 6403 symcode='[ABCDGISTW]' 6404 ;; 6405hpux*) 6406 if test "$host_cpu" = ia64; then 6407 symcode='[ABCDEGRST]' 6408 fi 6409 ;; 6410irix* | nonstopux*) 6411 symcode='[BCDEGRST]' 6412 ;; 6413osf*) 6414 symcode='[BCDEGQRST]' 6415 ;; 6416solaris*) 6417 symcode='[BDRT]' 6418 ;; 6419sco3.2v5*) 6420 symcode='[DT]' 6421 ;; 6422sysv4.2uw2*) 6423 symcode='[DT]' 6424 ;; 6425sysv5* | sco5v6* | unixware* | OpenUNIX*) 6426 symcode='[ABDT]' 6427 ;; 6428sysv4) 6429 symcode='[DFNSTU]' 6430 ;; 6431esac 6432 6433# If we're using GNU nm, then use its standard symbol codes. 6434case `$NM -V 2>&1` in 6435*GNU* | *'with BFD'*) 6436 symcode='[ABCDGIRSTW]' ;; 6437esac 6438 6439# Transform an extracted symbol line into a proper C declaration. 6440# Some systems (esp. on ia64) link data and code symbols differently, 6441# so use this general approach. 6442lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6443 6444# Transform an extracted symbol line into symbol name and symbol address 6445lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6446lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6447 6448# Handle CRLF in mingw tool chain 6449opt_cr= 6450case $build_os in 6451mingw*) 6452 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6453 ;; 6454esac 6455 6456# Try without a prefix underscore, then with it. 6457for ac_symprfx in "" "_"; do 6458 6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6460 symxfrm="\\1 $ac_symprfx\\2 \\2" 6461 6462 # Write the raw and C identifiers. 6463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6464 # Fake it for dumpbin and say T for any non-static function 6465 # and D for any global variable. 6466 # Also find C++ and __fastcall symbols from MSVC++, 6467 # which start with @ or ?. 6468 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6469" {last_section=section; section=\$ 3};"\ 6470" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6471" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6472" \$ 0!~/External *\|/{next};"\ 6473" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6474" {if(hide[section]) next};"\ 6475" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6476" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6477" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6478" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6479" ' prfx=^$ac_symprfx" 6480 else 6481 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6482 fi 6483 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6484 6485 # Check to see that the pipe works correctly. 6486 pipe_works=no 6487 6488 rm -f conftest* 6489 cat > conftest.$ac_ext <<_LT_EOF 6490#ifdef __cplusplus 6491extern "C" { 6492#endif 6493char nm_test_var; 6494void nm_test_func(void); 6495void nm_test_func(void){} 6496#ifdef __cplusplus 6497} 6498#endif 6499int main(){nm_test_var='a';nm_test_func();return(0);} 6500_LT_EOF 6501 6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6503 (eval $ac_compile) 2>&5 6504 ac_status=$? 6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6506 test $ac_status = 0; }; then 6507 # Now try to grab the symbols. 6508 nlist=conftest.nm 6509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6510 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6511 ac_status=$? 6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6513 test $ac_status = 0; } && test -s "$nlist"; then 6514 # Try sorting and uniquifying the output. 6515 if sort "$nlist" | uniq > "$nlist"T; then 6516 mv -f "$nlist"T "$nlist" 6517 else 6518 rm -f "$nlist"T 6519 fi 6520 6521 # Make sure that we snagged all the symbols we need. 6522 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6523 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6524 cat <<_LT_EOF > conftest.$ac_ext 6525/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6526#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6527/* DATA imports from DLLs on WIN32 con't be const, because runtime 6528 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6529# define LT_DLSYM_CONST 6530#elif defined(__osf__) 6531/* This system does not cope well with relocations in const data. */ 6532# define LT_DLSYM_CONST 6533#else 6534# define LT_DLSYM_CONST const 6535#endif 6536 6537#ifdef __cplusplus 6538extern "C" { 6539#endif 6540 6541_LT_EOF 6542 # Now generate the symbol file. 6543 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6544 6545 cat <<_LT_EOF >> conftest.$ac_ext 6546 6547/* The mapping between symbol names and symbols. */ 6548LT_DLSYM_CONST struct { 6549 const char *name; 6550 void *address; 6551} 6552lt__PROGRAM__LTX_preloaded_symbols[] = 6553{ 6554 { "@PROGRAM@", (void *) 0 }, 6555_LT_EOF 6556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6557 cat <<\_LT_EOF >> conftest.$ac_ext 6558 {0, (void *) 0} 6559}; 6560 6561/* This works around a problem in FreeBSD linker */ 6562#ifdef FREEBSD_WORKAROUND 6563static const void *lt_preloaded_setup() { 6564 return lt__PROGRAM__LTX_preloaded_symbols; 6565} 6566#endif 6567 6568#ifdef __cplusplus 6569} 6570#endif 6571_LT_EOF 6572 # Now try linking the two files. 6573 mv conftest.$ac_objext conftstm.$ac_objext 6574 lt_globsym_save_LIBS=$LIBS 6575 lt_globsym_save_CFLAGS=$CFLAGS 6576 LIBS="conftstm.$ac_objext" 6577 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6579 (eval $ac_link) 2>&5 6580 ac_status=$? 6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6582 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6583 pipe_works=yes 6584 fi 6585 LIBS=$lt_globsym_save_LIBS 6586 CFLAGS=$lt_globsym_save_CFLAGS 6587 else 6588 echo "cannot find nm_test_func in $nlist" >&5 6589 fi 6590 else 6591 echo "cannot find nm_test_var in $nlist" >&5 6592 fi 6593 else 6594 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6595 fi 6596 else 6597 echo "$progname: failed program was:" >&5 6598 cat conftest.$ac_ext >&5 6599 fi 6600 rm -rf conftest* conftst* 6601 6602 # Do not use the global_symbol_pipe unless it works. 6603 if test "$pipe_works" = yes; then 6604 break 6605 else 6606 lt_cv_sys_global_symbol_pipe= 6607 fi 6608done 6609 6610fi 6611 6612if test -z "$lt_cv_sys_global_symbol_pipe"; then 6613 lt_cv_sys_global_symbol_to_cdecl= 6614fi 6615if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6617$as_echo "failed" >&6; } 6618else 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6620$as_echo "ok" >&6; } 6621fi 6622 6623# Response file support. 6624if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6625 nm_file_list_spec='@' 6626elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6627 nm_file_list_spec='@' 6628fi 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6657$as_echo_n "checking for sysroot... " >&6; } 6658 6659# Check whether --with-sysroot was given. 6660if test "${with_sysroot+set}" = set; then : 6661 withval=$with_sysroot; 6662else 6663 with_sysroot=no 6664fi 6665 6666 6667lt_sysroot= 6668case ${with_sysroot} in #( 6669 yes) 6670 if test "$GCC" = yes; then 6671 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6672 fi 6673 ;; #( 6674 /*) 6675 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6676 ;; #( 6677 no|'') 6678 ;; #( 6679 *) 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6681$as_echo "${with_sysroot}" >&6; } 6682 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6683 ;; 6684esac 6685 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6687$as_echo "${lt_sysroot:-no}" >&6; } 6688 6689 6690 6691 6692 6693# Check whether --enable-libtool-lock was given. 6694if test "${enable_libtool_lock+set}" = set; then : 6695 enableval=$enable_libtool_lock; 6696fi 6697 6698test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6699 6700# Some flags need to be propagated to the compiler or linker for good 6701# libtool support. 6702case $host in 6703ia64-*-hpux*) 6704 # Find out which ABI we are using. 6705 echo 'int i;' > conftest.$ac_ext 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6707 (eval $ac_compile) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; }; then 6711 case `/usr/bin/file conftest.$ac_objext` in 6712 *ELF-32*) 6713 HPUX_IA64_MODE="32" 6714 ;; 6715 *ELF-64*) 6716 HPUX_IA64_MODE="64" 6717 ;; 6718 esac 6719 fi 6720 rm -rf conftest* 6721 ;; 6722*-*-irix6*) 6723 # Find out which ABI we are using. 6724 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6726 (eval $ac_compile) 2>&5 6727 ac_status=$? 6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6729 test $ac_status = 0; }; then 6730 if test "$lt_cv_prog_gnu_ld" = yes; then 6731 case `/usr/bin/file conftest.$ac_objext` in 6732 *32-bit*) 6733 LD="${LD-ld} -melf32bsmip" 6734 ;; 6735 *N32*) 6736 LD="${LD-ld} -melf32bmipn32" 6737 ;; 6738 *64-bit*) 6739 LD="${LD-ld} -melf64bmip" 6740 ;; 6741 esac 6742 else 6743 case `/usr/bin/file conftest.$ac_objext` in 6744 *32-bit*) 6745 LD="${LD-ld} -32" 6746 ;; 6747 *N32*) 6748 LD="${LD-ld} -n32" 6749 ;; 6750 *64-bit*) 6751 LD="${LD-ld} -64" 6752 ;; 6753 esac 6754 fi 6755 fi 6756 rm -rf conftest* 6757 ;; 6758 6759x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6760s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6761 # Find out which ABI we are using. 6762 echo 'int i;' > conftest.$ac_ext 6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6764 (eval $ac_compile) 2>&5 6765 ac_status=$? 6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6767 test $ac_status = 0; }; then 6768 case `/usr/bin/file conftest.o` in 6769 *32-bit*) 6770 case $host in 6771 x86_64-*kfreebsd*-gnu) 6772 LD="${LD-ld} -m elf_i386_fbsd" 6773 ;; 6774 x86_64-*linux*) 6775 LD="${LD-ld} -m elf_i386" 6776 ;; 6777 ppc64-*linux*|powerpc64-*linux*) 6778 LD="${LD-ld} -m elf32ppclinux" 6779 ;; 6780 s390x-*linux*) 6781 LD="${LD-ld} -m elf_s390" 6782 ;; 6783 sparc64-*linux*) 6784 LD="${LD-ld} -m elf32_sparc" 6785 ;; 6786 esac 6787 ;; 6788 *64-bit*) 6789 case $host in 6790 x86_64-*kfreebsd*-gnu) 6791 LD="${LD-ld} -m elf_x86_64_fbsd" 6792 ;; 6793 x86_64-*linux*) 6794 LD="${LD-ld} -m elf_x86_64" 6795 ;; 6796 ppc*-*linux*|powerpc*-*linux*) 6797 LD="${LD-ld} -m elf64ppc" 6798 ;; 6799 s390*-*linux*|s390*-*tpf*) 6800 LD="${LD-ld} -m elf64_s390" 6801 ;; 6802 sparc*-*linux*) 6803 LD="${LD-ld} -m elf64_sparc" 6804 ;; 6805 esac 6806 ;; 6807 esac 6808 fi 6809 rm -rf conftest* 6810 ;; 6811 6812*-*-sco3.2v5*) 6813 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6814 SAVE_CFLAGS="$CFLAGS" 6815 CFLAGS="$CFLAGS -belf" 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6817$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6818if ${lt_cv_cc_needs_belf+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 ac_ext=c 6822ac_cpp='$CPP $CPPFLAGS' 6823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6825ac_compiler_gnu=$ac_cv_c_compiler_gnu 6826 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6828/* end confdefs.h. */ 6829 6830int 6831main () 6832{ 6833 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838if ac_fn_c_try_link "$LINENO"; then : 6839 lt_cv_cc_needs_belf=yes 6840else 6841 lt_cv_cc_needs_belf=no 6842fi 6843rm -f core conftest.err conftest.$ac_objext \ 6844 conftest$ac_exeext conftest.$ac_ext 6845 ac_ext=c 6846ac_cpp='$CPP $CPPFLAGS' 6847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6849ac_compiler_gnu=$ac_cv_c_compiler_gnu 6850 6851fi 6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6853$as_echo "$lt_cv_cc_needs_belf" >&6; } 6854 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6855 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6856 CFLAGS="$SAVE_CFLAGS" 6857 fi 6858 ;; 6859*-*solaris*) 6860 # Find out which ABI we are using. 6861 echo 'int i;' > conftest.$ac_ext 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6863 (eval $ac_compile) 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6866 test $ac_status = 0; }; then 6867 case `/usr/bin/file conftest.o` in 6868 *64-bit*) 6869 case $lt_cv_prog_gnu_ld in 6870 yes*) 6871 case $host in 6872 i?86-*-solaris*) 6873 LD="${LD-ld} -m elf_x86_64" 6874 ;; 6875 sparc*-*-solaris*) 6876 LD="${LD-ld} -m elf64_sparc" 6877 ;; 6878 esac 6879 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6880 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6881 LD="${LD-ld}_sol2" 6882 fi 6883 ;; 6884 *) 6885 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6886 LD="${LD-ld} -64" 6887 fi 6888 ;; 6889 esac 6890 ;; 6891 esac 6892 fi 6893 rm -rf conftest* 6894 ;; 6895esac 6896 6897need_locks="$enable_libtool_lock" 6898 6899if test -n "$ac_tool_prefix"; then 6900 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6901set dummy ${ac_tool_prefix}mt; ac_word=$2 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6903$as_echo_n "checking for $ac_word... " >&6; } 6904if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6905 $as_echo_n "(cached) " >&6 6906else 6907 if test -n "$MANIFEST_TOOL"; then 6908 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6909else 6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6911for as_dir in $PATH 6912do 6913 IFS=$as_save_IFS 6914 test -z "$as_dir" && as_dir=. 6915 for ac_exec_ext in '' $ac_executable_extensions; do 6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6917 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6919 break 2 6920 fi 6921done 6922 done 6923IFS=$as_save_IFS 6924 6925fi 6926fi 6927MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6928if test -n "$MANIFEST_TOOL"; then 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6930$as_echo "$MANIFEST_TOOL" >&6; } 6931else 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6933$as_echo "no" >&6; } 6934fi 6935 6936 6937fi 6938if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6939 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6940 # Extract the first word of "mt", so it can be a program name with args. 6941set dummy mt; ac_word=$2 6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943$as_echo_n "checking for $ac_word... " >&6; } 6944if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946else 6947 if test -n "$ac_ct_MANIFEST_TOOL"; then 6948 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6949else 6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 for ac_exec_ext in '' $ac_executable_extensions; do 6956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6957 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6959 break 2 6960 fi 6961done 6962 done 6963IFS=$as_save_IFS 6964 6965fi 6966fi 6967ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6968if test -n "$ac_ct_MANIFEST_TOOL"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6970$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6971else 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6973$as_echo "no" >&6; } 6974fi 6975 6976 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6977 MANIFEST_TOOL=":" 6978 else 6979 case $cross_compiling:$ac_tool_warned in 6980yes:) 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6983ac_tool_warned=yes ;; 6984esac 6985 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6986 fi 6987else 6988 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6989fi 6990 6991test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6993$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6994if ${lt_cv_path_mainfest_tool+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 lt_cv_path_mainfest_tool=no 6998 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6999 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7000 cat conftest.err >&5 7001 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7002 lt_cv_path_mainfest_tool=yes 7003 fi 7004 rm -f conftest* 7005fi 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7007$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7008if test "x$lt_cv_path_mainfest_tool" != xyes; then 7009 MANIFEST_TOOL=: 7010fi 7011 7012 7013 7014 7015 7016 7017 case $host_os in 7018 rhapsody* | darwin*) 7019 if test -n "$ac_tool_prefix"; then 7020 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7021set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7023$as_echo_n "checking for $ac_word... " >&6; } 7024if ${ac_cv_prog_DSYMUTIL+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 if test -n "$DSYMUTIL"; then 7028 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7029else 7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7031for as_dir in $PATH 7032do 7033 IFS=$as_save_IFS 7034 test -z "$as_dir" && as_dir=. 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7037 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041done 7042 done 7043IFS=$as_save_IFS 7044 7045fi 7046fi 7047DSYMUTIL=$ac_cv_prog_DSYMUTIL 7048if test -n "$DSYMUTIL"; then 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7050$as_echo "$DSYMUTIL" >&6; } 7051else 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053$as_echo "no" >&6; } 7054fi 7055 7056 7057fi 7058if test -z "$ac_cv_prog_DSYMUTIL"; then 7059 ac_ct_DSYMUTIL=$DSYMUTIL 7060 # Extract the first word of "dsymutil", so it can be a program name with args. 7061set dummy dsymutil; ac_word=$2 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063$as_echo_n "checking for $ac_word... " >&6; } 7064if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 if test -n "$ac_ct_DSYMUTIL"; then 7068 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7069else 7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071for as_dir in $PATH 7072do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7077 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081done 7082 done 7083IFS=$as_save_IFS 7084 7085fi 7086fi 7087ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7088if test -n "$ac_ct_DSYMUTIL"; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7090$as_echo "$ac_ct_DSYMUTIL" >&6; } 7091else 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7093$as_echo "no" >&6; } 7094fi 7095 7096 if test "x$ac_ct_DSYMUTIL" = x; then 7097 DSYMUTIL=":" 7098 else 7099 case $cross_compiling:$ac_tool_warned in 7100yes:) 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7103ac_tool_warned=yes ;; 7104esac 7105 DSYMUTIL=$ac_ct_DSYMUTIL 7106 fi 7107else 7108 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7109fi 7110 7111 if test -n "$ac_tool_prefix"; then 7112 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7113set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7115$as_echo_n "checking for $ac_word... " >&6; } 7116if ${ac_cv_prog_NMEDIT+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 if test -n "$NMEDIT"; then 7120 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7121else 7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7123for as_dir in $PATH 7124do 7125 IFS=$as_save_IFS 7126 test -z "$as_dir" && as_dir=. 7127 for ac_exec_ext in '' $ac_executable_extensions; do 7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7129 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7131 break 2 7132 fi 7133done 7134 done 7135IFS=$as_save_IFS 7136 7137fi 7138fi 7139NMEDIT=$ac_cv_prog_NMEDIT 7140if test -n "$NMEDIT"; then 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7142$as_echo "$NMEDIT" >&6; } 7143else 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7145$as_echo "no" >&6; } 7146fi 7147 7148 7149fi 7150if test -z "$ac_cv_prog_NMEDIT"; then 7151 ac_ct_NMEDIT=$NMEDIT 7152 # Extract the first word of "nmedit", so it can be a program name with args. 7153set dummy nmedit; ac_word=$2 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7155$as_echo_n "checking for $ac_word... " >&6; } 7156if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 if test -n "$ac_ct_NMEDIT"; then 7160 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7161else 7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7163for as_dir in $PATH 7164do 7165 IFS=$as_save_IFS 7166 test -z "$as_dir" && as_dir=. 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7169 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7171 break 2 7172 fi 7173done 7174 done 7175IFS=$as_save_IFS 7176 7177fi 7178fi 7179ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7180if test -n "$ac_ct_NMEDIT"; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7182$as_echo "$ac_ct_NMEDIT" >&6; } 7183else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7185$as_echo "no" >&6; } 7186fi 7187 7188 if test "x$ac_ct_NMEDIT" = x; then 7189 NMEDIT=":" 7190 else 7191 case $cross_compiling:$ac_tool_warned in 7192yes:) 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7195ac_tool_warned=yes ;; 7196esac 7197 NMEDIT=$ac_ct_NMEDIT 7198 fi 7199else 7200 NMEDIT="$ac_cv_prog_NMEDIT" 7201fi 7202 7203 if test -n "$ac_tool_prefix"; then 7204 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7205set dummy ${ac_tool_prefix}lipo; ac_word=$2 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207$as_echo_n "checking for $ac_word... " >&6; } 7208if ${ac_cv_prog_LIPO+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 if test -n "$LIPO"; then 7212 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7213else 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7221 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229fi 7230fi 7231LIPO=$ac_cv_prog_LIPO 7232if test -n "$LIPO"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7234$as_echo "$LIPO" >&6; } 7235else 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237$as_echo "no" >&6; } 7238fi 7239 7240 7241fi 7242if test -z "$ac_cv_prog_LIPO"; then 7243 ac_ct_LIPO=$LIPO 7244 # Extract the first word of "lipo", so it can be a program name with args. 7245set dummy lipo; ac_word=$2 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7247$as_echo_n "checking for $ac_word... " >&6; } 7248if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test -n "$ac_ct_LIPO"; then 7252 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7253else 7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7255for as_dir in $PATH 7256do 7257 IFS=$as_save_IFS 7258 test -z "$as_dir" && as_dir=. 7259 for ac_exec_ext in '' $ac_executable_extensions; do 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7261 ac_cv_prog_ac_ct_LIPO="lipo" 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7263 break 2 7264 fi 7265done 7266 done 7267IFS=$as_save_IFS 7268 7269fi 7270fi 7271ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7272if test -n "$ac_ct_LIPO"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7274$as_echo "$ac_ct_LIPO" >&6; } 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279 7280 if test "x$ac_ct_LIPO" = x; then 7281 LIPO=":" 7282 else 7283 case $cross_compiling:$ac_tool_warned in 7284yes:) 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7287ac_tool_warned=yes ;; 7288esac 7289 LIPO=$ac_ct_LIPO 7290 fi 7291else 7292 LIPO="$ac_cv_prog_LIPO" 7293fi 7294 7295 if test -n "$ac_tool_prefix"; then 7296 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7297set dummy ${ac_tool_prefix}otool; ac_word=$2 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7299$as_echo_n "checking for $ac_word... " >&6; } 7300if ${ac_cv_prog_OTOOL+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 if test -n "$OTOOL"; then 7304 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7313 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317done 7318 done 7319IFS=$as_save_IFS 7320 7321fi 7322fi 7323OTOOL=$ac_cv_prog_OTOOL 7324if test -n "$OTOOL"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7326$as_echo "$OTOOL" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331 7332 7333fi 7334if test -z "$ac_cv_prog_OTOOL"; then 7335 ac_ct_OTOOL=$OTOOL 7336 # Extract the first word of "otool", so it can be a program name with args. 7337set dummy otool; ac_word=$2 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7339$as_echo_n "checking for $ac_word... " >&6; } 7340if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$ac_ct_OTOOL"; then 7344 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7345else 7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_exec_ext in '' $ac_executable_extensions; do 7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7353 ac_cv_prog_ac_ct_OTOOL="otool" 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7355 break 2 7356 fi 7357done 7358 done 7359IFS=$as_save_IFS 7360 7361fi 7362fi 7363ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7364if test -n "$ac_ct_OTOOL"; then 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7366$as_echo "$ac_ct_OTOOL" >&6; } 7367else 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7369$as_echo "no" >&6; } 7370fi 7371 7372 if test "x$ac_ct_OTOOL" = x; then 7373 OTOOL=":" 7374 else 7375 case $cross_compiling:$ac_tool_warned in 7376yes:) 7377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7379ac_tool_warned=yes ;; 7380esac 7381 OTOOL=$ac_ct_OTOOL 7382 fi 7383else 7384 OTOOL="$ac_cv_prog_OTOOL" 7385fi 7386 7387 if test -n "$ac_tool_prefix"; then 7388 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7389set dummy ${ac_tool_prefix}otool64; ac_word=$2 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7391$as_echo_n "checking for $ac_word... " >&6; } 7392if ${ac_cv_prog_OTOOL64+:} false; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 if test -n "$OTOOL64"; then 7396 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7397else 7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399for as_dir in $PATH 7400do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7405 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409done 7410 done 7411IFS=$as_save_IFS 7412 7413fi 7414fi 7415OTOOL64=$ac_cv_prog_OTOOL64 7416if test -n "$OTOOL64"; then 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7418$as_echo "$OTOOL64" >&6; } 7419else 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7421$as_echo "no" >&6; } 7422fi 7423 7424 7425fi 7426if test -z "$ac_cv_prog_OTOOL64"; then 7427 ac_ct_OTOOL64=$OTOOL64 7428 # Extract the first word of "otool64", so it can be a program name with args. 7429set dummy otool64; ac_word=$2 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7431$as_echo_n "checking for $ac_word... " >&6; } 7432if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7433 $as_echo_n "(cached) " >&6 7434else 7435 if test -n "$ac_ct_OTOOL64"; then 7436 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7437else 7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7439for as_dir in $PATH 7440do 7441 IFS=$as_save_IFS 7442 test -z "$as_dir" && as_dir=. 7443 for ac_exec_ext in '' $ac_executable_extensions; do 7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7445 ac_cv_prog_ac_ct_OTOOL64="otool64" 7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7447 break 2 7448 fi 7449done 7450 done 7451IFS=$as_save_IFS 7452 7453fi 7454fi 7455ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7456if test -n "$ac_ct_OTOOL64"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7458$as_echo "$ac_ct_OTOOL64" >&6; } 7459else 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7461$as_echo "no" >&6; } 7462fi 7463 7464 if test "x$ac_ct_OTOOL64" = x; then 7465 OTOOL64=":" 7466 else 7467 case $cross_compiling:$ac_tool_warned in 7468yes:) 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7471ac_tool_warned=yes ;; 7472esac 7473 OTOOL64=$ac_ct_OTOOL64 7474 fi 7475else 7476 OTOOL64="$ac_cv_prog_OTOOL64" 7477fi 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7506$as_echo_n "checking for -single_module linker flag... " >&6; } 7507if ${lt_cv_apple_cc_single_mod+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 lt_cv_apple_cc_single_mod=no 7511 if test -z "${LT_MULTI_MODULE}"; then 7512 # By default we will add the -single_module flag. You can override 7513 # by either setting the environment variable LT_MULTI_MODULE 7514 # non-empty at configure time, or by adding -multi_module to the 7515 # link flags. 7516 rm -rf libconftest.dylib* 7517 echo "int foo(void){return 1;}" > conftest.c 7518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7519-dynamiclib -Wl,-single_module conftest.c" >&5 7520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7522 _lt_result=$? 7523 # If there is a non-empty error log, and "single_module" 7524 # appears in it, assume the flag caused a linker warning 7525 if test -s conftest.err && $GREP single_module conftest.err; then 7526 cat conftest.err >&5 7527 # Otherwise, if the output was created with a 0 exit code from 7528 # the compiler, it worked. 7529 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7530 lt_cv_apple_cc_single_mod=yes 7531 else 7532 cat conftest.err >&5 7533 fi 7534 rm -rf libconftest.dylib* 7535 rm -f conftest.* 7536 fi 7537fi 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7539$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7540 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7542$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7543if ${lt_cv_ld_exported_symbols_list+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 lt_cv_ld_exported_symbols_list=no 7547 save_LDFLAGS=$LDFLAGS 7548 echo "_main" > conftest.sym 7549 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552 7553int 7554main () 7555{ 7556 7557 ; 7558 return 0; 7559} 7560_ACEOF 7561if ac_fn_c_try_link "$LINENO"; then : 7562 lt_cv_ld_exported_symbols_list=yes 7563else 7564 lt_cv_ld_exported_symbols_list=no 7565fi 7566rm -f core conftest.err conftest.$ac_objext \ 7567 conftest$ac_exeext conftest.$ac_ext 7568 LDFLAGS="$save_LDFLAGS" 7569 7570fi 7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7572$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7573 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7575$as_echo_n "checking for -force_load linker flag... " >&6; } 7576if ${lt_cv_ld_force_load+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 lt_cv_ld_force_load=no 7580 cat > conftest.c << _LT_EOF 7581int forced_loaded() { return 2;} 7582_LT_EOF 7583 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7584 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7585 echo "$AR cru libconftest.a conftest.o" >&5 7586 $AR cru libconftest.a conftest.o 2>&5 7587 echo "$RANLIB libconftest.a" >&5 7588 $RANLIB libconftest.a 2>&5 7589 cat > conftest.c << _LT_EOF 7590int main() { return 0;} 7591_LT_EOF 7592 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7593 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7594 _lt_result=$? 7595 if test -s conftest.err && $GREP force_load conftest.err; then 7596 cat conftest.err >&5 7597 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7598 lt_cv_ld_force_load=yes 7599 else 7600 cat conftest.err >&5 7601 fi 7602 rm -f conftest.err libconftest.a conftest conftest.c 7603 rm -rf conftest.dSYM 7604 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7607$as_echo "$lt_cv_ld_force_load" >&6; } 7608 case $host_os in 7609 rhapsody* | darwin1.[012]) 7610 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7611 darwin1.*) 7612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7613 darwin*) # darwin 5.x on 7614 # if running on 10.5 or later, the deployment target defaults 7615 # to the OS version, if on x86, and 10.4, the deployment 7616 # target defaults to 10.4. Don't you love it? 7617 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7618 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7619 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7620 10.[012]*) 7621 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7622 10.*) 7623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7624 esac 7625 ;; 7626 esac 7627 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7628 _lt_dar_single_mod='$single_module' 7629 fi 7630 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7631 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7632 else 7633 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7634 fi 7635 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7636 _lt_dsymutil='~$DSYMUTIL $lib || :' 7637 else 7638 _lt_dsymutil= 7639 fi 7640 ;; 7641 esac 7642 7643for ac_header in dlfcn.h 7644do : 7645 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7646" 7647if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7648 cat >>confdefs.h <<_ACEOF 7649#define HAVE_DLFCN_H 1 7650_ACEOF 7651 7652fi 7653 7654done 7655 7656 7657 7658 7659 7660# Set options 7661 7662 7663 7664 enable_dlopen=no 7665 7666 7667 enable_win32_dll=no 7668 7669 7670 # Check whether --enable-shared was given. 7671if test "${enable_shared+set}" = set; then : 7672 enableval=$enable_shared; p=${PACKAGE-default} 7673 case $enableval in 7674 yes) enable_shared=yes ;; 7675 no) enable_shared=no ;; 7676 *) 7677 enable_shared=no 7678 # Look at the argument we got. We use all the common list separators. 7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7680 for pkg in $enableval; do 7681 IFS="$lt_save_ifs" 7682 if test "X$pkg" = "X$p"; then 7683 enable_shared=yes 7684 fi 7685 done 7686 IFS="$lt_save_ifs" 7687 ;; 7688 esac 7689else 7690 enable_shared=yes 7691fi 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 # Check whether --enable-static was given. 7702if test "${enable_static+set}" = set; then : 7703 enableval=$enable_static; p=${PACKAGE-default} 7704 case $enableval in 7705 yes) enable_static=yes ;; 7706 no) enable_static=no ;; 7707 *) 7708 enable_static=no 7709 # Look at the argument we got. We use all the common list separators. 7710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7711 for pkg in $enableval; do 7712 IFS="$lt_save_ifs" 7713 if test "X$pkg" = "X$p"; then 7714 enable_static=yes 7715 fi 7716 done 7717 IFS="$lt_save_ifs" 7718 ;; 7719 esac 7720else 7721 enable_static=yes 7722fi 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733# Check whether --with-pic was given. 7734if test "${with_pic+set}" = set; then : 7735 withval=$with_pic; lt_p=${PACKAGE-default} 7736 case $withval in 7737 yes|no) pic_mode=$withval ;; 7738 *) 7739 pic_mode=default 7740 # Look at the argument we got. We use all the common list separators. 7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7742 for lt_pkg in $withval; do 7743 IFS="$lt_save_ifs" 7744 if test "X$lt_pkg" = "X$lt_p"; then 7745 pic_mode=yes 7746 fi 7747 done 7748 IFS="$lt_save_ifs" 7749 ;; 7750 esac 7751else 7752 pic_mode=default 7753fi 7754 7755 7756test -z "$pic_mode" && pic_mode=default 7757 7758 7759 7760 7761 7762 7763 7764 # Check whether --enable-fast-install was given. 7765if test "${enable_fast_install+set}" = set; then : 7766 enableval=$enable_fast_install; p=${PACKAGE-default} 7767 case $enableval in 7768 yes) enable_fast_install=yes ;; 7769 no) enable_fast_install=no ;; 7770 *) 7771 enable_fast_install=no 7772 # Look at the argument we got. We use all the common list separators. 7773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7774 for pkg in $enableval; do 7775 IFS="$lt_save_ifs" 7776 if test "X$pkg" = "X$p"; then 7777 enable_fast_install=yes 7778 fi 7779 done 7780 IFS="$lt_save_ifs" 7781 ;; 7782 esac 7783else 7784 enable_fast_install=yes 7785fi 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797# This can be used to rebuild libtool when needed 7798LIBTOOL_DEPS="$ltmain" 7799 7800# Always use our own libtool. 7801LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832test -z "$LN_S" && LN_S="ln -s" 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847if test -n "${ZSH_VERSION+set}" ; then 7848 setopt NO_GLOB_SUBST 7849fi 7850 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7852$as_echo_n "checking for objdir... " >&6; } 7853if ${lt_cv_objdir+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 rm -f .libs 2>/dev/null 7857mkdir .libs 2>/dev/null 7858if test -d .libs; then 7859 lt_cv_objdir=.libs 7860else 7861 # MS-DOS does not allow filenames that begin with a dot. 7862 lt_cv_objdir=_libs 7863fi 7864rmdir .libs 2>/dev/null 7865fi 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7867$as_echo "$lt_cv_objdir" >&6; } 7868objdir=$lt_cv_objdir 7869 7870 7871 7872 7873 7874cat >>confdefs.h <<_ACEOF 7875#define LT_OBJDIR "$lt_cv_objdir/" 7876_ACEOF 7877 7878 7879 7880 7881case $host_os in 7882aix3*) 7883 # AIX sometimes has problems with the GCC collect2 program. For some 7884 # reason, if we set the COLLECT_NAMES environment variable, the problems 7885 # vanish in a puff of smoke. 7886 if test "X${COLLECT_NAMES+set}" != Xset; then 7887 COLLECT_NAMES= 7888 export COLLECT_NAMES 7889 fi 7890 ;; 7891esac 7892 7893# Global variables: 7894ofile=libtool 7895can_build_shared=yes 7896 7897# All known linkers require a `.a' archive for static linking (except MSVC, 7898# which needs '.lib'). 7899libext=a 7900 7901with_gnu_ld="$lt_cv_prog_gnu_ld" 7902 7903old_CC="$CC" 7904old_CFLAGS="$CFLAGS" 7905 7906# Set sane defaults for various variables 7907test -z "$CC" && CC=cc 7908test -z "$LTCC" && LTCC=$CC 7909test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7910test -z "$LD" && LD=ld 7911test -z "$ac_objext" && ac_objext=o 7912 7913for cc_temp in $compiler""; do 7914 case $cc_temp in 7915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7917 \-*) ;; 7918 *) break;; 7919 esac 7920done 7921cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7922 7923 7924# Only perform the check for file, if the check method requires it 7925test -z "$MAGIC_CMD" && MAGIC_CMD=file 7926case $deplibs_check_method in 7927file_magic*) 7928 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7930$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7931if ${lt_cv_path_MAGIC_CMD+:} false; then : 7932 $as_echo_n "(cached) " >&6 7933else 7934 case $MAGIC_CMD in 7935[\\/*] | ?:[\\/]*) 7936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7937 ;; 7938*) 7939 lt_save_MAGIC_CMD="$MAGIC_CMD" 7940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7942 for ac_dir in $ac_dummy; do 7943 IFS="$lt_save_ifs" 7944 test -z "$ac_dir" && ac_dir=. 7945 if test -f $ac_dir/${ac_tool_prefix}file; then 7946 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7947 if test -n "$file_magic_test_file"; then 7948 case $deplibs_check_method in 7949 "file_magic "*) 7950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7953 $EGREP "$file_magic_regex" > /dev/null; then 7954 : 7955 else 7956 cat <<_LT_EOF 1>&2 7957 7958*** Warning: the command libtool uses to detect shared libraries, 7959*** $file_magic_cmd, produces output that libtool cannot recognize. 7960*** The result is that libtool may fail to recognize shared libraries 7961*** as such. This will affect the creation of libtool libraries that 7962*** depend on shared libraries, but programs linked with such libtool 7963*** libraries will work regardless of this problem. Nevertheless, you 7964*** may want to report the problem to your system manager and/or to 7965*** bug-libtool@gnu.org 7966 7967_LT_EOF 7968 fi ;; 7969 esac 7970 fi 7971 break 7972 fi 7973 done 7974 IFS="$lt_save_ifs" 7975 MAGIC_CMD="$lt_save_MAGIC_CMD" 7976 ;; 7977esac 7978fi 7979 7980MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7981if test -n "$MAGIC_CMD"; then 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7983$as_echo "$MAGIC_CMD" >&6; } 7984else 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7986$as_echo "no" >&6; } 7987fi 7988 7989 7990 7991 7992 7993if test -z "$lt_cv_path_MAGIC_CMD"; then 7994 if test -n "$ac_tool_prefix"; then 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7996$as_echo_n "checking for file... " >&6; } 7997if ${lt_cv_path_MAGIC_CMD+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 case $MAGIC_CMD in 8001[\\/*] | ?:[\\/]*) 8002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8003 ;; 8004*) 8005 lt_save_MAGIC_CMD="$MAGIC_CMD" 8006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8008 for ac_dir in $ac_dummy; do 8009 IFS="$lt_save_ifs" 8010 test -z "$ac_dir" && ac_dir=. 8011 if test -f $ac_dir/file; then 8012 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8013 if test -n "$file_magic_test_file"; then 8014 case $deplibs_check_method in 8015 "file_magic "*) 8016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8019 $EGREP "$file_magic_regex" > /dev/null; then 8020 : 8021 else 8022 cat <<_LT_EOF 1>&2 8023 8024*** Warning: the command libtool uses to detect shared libraries, 8025*** $file_magic_cmd, produces output that libtool cannot recognize. 8026*** The result is that libtool may fail to recognize shared libraries 8027*** as such. This will affect the creation of libtool libraries that 8028*** depend on shared libraries, but programs linked with such libtool 8029*** libraries will work regardless of this problem. Nevertheless, you 8030*** may want to report the problem to your system manager and/or to 8031*** bug-libtool@gnu.org 8032 8033_LT_EOF 8034 fi ;; 8035 esac 8036 fi 8037 break 8038 fi 8039 done 8040 IFS="$lt_save_ifs" 8041 MAGIC_CMD="$lt_save_MAGIC_CMD" 8042 ;; 8043esac 8044fi 8045 8046MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8047if test -n "$MAGIC_CMD"; then 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8049$as_echo "$MAGIC_CMD" >&6; } 8050else 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8052$as_echo "no" >&6; } 8053fi 8054 8055 8056 else 8057 MAGIC_CMD=: 8058 fi 8059fi 8060 8061 fi 8062 ;; 8063esac 8064 8065# Use C for the default configuration in the libtool script 8066 8067lt_save_CC="$CC" 8068ac_ext=c 8069ac_cpp='$CPP $CPPFLAGS' 8070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8072ac_compiler_gnu=$ac_cv_c_compiler_gnu 8073 8074 8075# Source file extension for C test sources. 8076ac_ext=c 8077 8078# Object file extension for compiled C test sources. 8079objext=o 8080objext=$objext 8081 8082# Code to be used in simple compile tests 8083lt_simple_compile_test_code="int some_variable = 0;" 8084 8085# Code to be used in simple link tests 8086lt_simple_link_test_code='int main(){return(0);}' 8087 8088 8089 8090 8091 8092 8093 8094# If no C compiler was specified, use CC. 8095LTCC=${LTCC-"$CC"} 8096 8097# If no C compiler flags were specified, use CFLAGS. 8098LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8099 8100# Allow CC to be a program name with arguments. 8101compiler=$CC 8102 8103# Save the default compiler, since it gets overwritten when the other 8104# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8105compiler_DEFAULT=$CC 8106 8107# save warnings/boilerplate of simple test code 8108ac_outfile=conftest.$ac_objext 8109echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8110eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8111_lt_compiler_boilerplate=`cat conftest.err` 8112$RM conftest* 8113 8114ac_outfile=conftest.$ac_objext 8115echo "$lt_simple_link_test_code" >conftest.$ac_ext 8116eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8117_lt_linker_boilerplate=`cat conftest.err` 8118$RM -r conftest* 8119 8120 8121if test -n "$compiler"; then 8122 8123lt_prog_compiler_no_builtin_flag= 8124 8125if test "$GCC" = yes; then 8126 case $cc_basename in 8127 nvcc*) 8128 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8129 *) 8130 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8131 esac 8132 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8134$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8135if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8136 $as_echo_n "(cached) " >&6 8137else 8138 lt_cv_prog_compiler_rtti_exceptions=no 8139 ac_outfile=conftest.$ac_objext 8140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8141 lt_compiler_flag="-fno-rtti -fno-exceptions" 8142 # Insert the option either (1) after the last *FLAGS variable, or 8143 # (2) before a word containing "conftest.", or (3) at the end. 8144 # Note that $ac_compile itself does not contain backslashes and begins 8145 # with a dollar sign (not a hyphen), so the echo should work correctly. 8146 # The option is referenced via a variable to avoid confusing sed. 8147 lt_compile=`echo "$ac_compile" | $SED \ 8148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8150 -e 's:$: $lt_compiler_flag:'` 8151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8152 (eval "$lt_compile" 2>conftest.err) 8153 ac_status=$? 8154 cat conftest.err >&5 8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8156 if (exit $ac_status) && test -s "$ac_outfile"; then 8157 # The compiler can only warn and ignore the option if not recognized 8158 # So say no if there are warnings other than the usual output. 8159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8162 lt_cv_prog_compiler_rtti_exceptions=yes 8163 fi 8164 fi 8165 $RM conftest* 8166 8167fi 8168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8169$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8170 8171if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8172 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8173else 8174 : 8175fi 8176 8177fi 8178 8179 8180 8181 8182 8183 8184 lt_prog_compiler_wl= 8185lt_prog_compiler_pic= 8186lt_prog_compiler_static= 8187 8188 8189 if test "$GCC" = yes; then 8190 lt_prog_compiler_wl='-Wl,' 8191 lt_prog_compiler_static='-static' 8192 8193 case $host_os in 8194 aix*) 8195 # All AIX code is PIC. 8196 if test "$host_cpu" = ia64; then 8197 # AIX 5 now supports IA64 processor 8198 lt_prog_compiler_static='-Bstatic' 8199 fi 8200 ;; 8201 8202 amigaos*) 8203 case $host_cpu in 8204 powerpc) 8205 # see comment about AmigaOS4 .so support 8206 lt_prog_compiler_pic='-fPIC' 8207 ;; 8208 m68k) 8209 # FIXME: we need at least 68020 code to build shared libraries, but 8210 # adding the `-m68020' flag to GCC prevents building anything better, 8211 # like `-m68040'. 8212 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8213 ;; 8214 esac 8215 ;; 8216 8217 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8218 # PIC is the default for these OSes. 8219 ;; 8220 8221 mingw* | cygwin* | pw32* | os2* | cegcc*) 8222 # This hack is so that the source file can tell whether it is being 8223 # built for inclusion in a dll (and should export symbols for example). 8224 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8225 # (--disable-auto-import) libraries 8226 lt_prog_compiler_pic='-DDLL_EXPORT' 8227 ;; 8228 8229 darwin* | rhapsody*) 8230 # PIC is the default on this platform 8231 # Common symbols not allowed in MH_DYLIB files 8232 lt_prog_compiler_pic='-fno-common' 8233 ;; 8234 8235 haiku*) 8236 # PIC is the default for Haiku. 8237 # The "-static" flag exists, but is broken. 8238 lt_prog_compiler_static= 8239 ;; 8240 8241 hpux*) 8242 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8243 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8244 # sets the default TLS model and affects inlining. 8245 case $host_cpu in 8246 hppa*64*) 8247 # +Z the default 8248 ;; 8249 *) 8250 lt_prog_compiler_pic='-fPIC' 8251 ;; 8252 esac 8253 ;; 8254 8255 interix[3-9]*) 8256 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8257 # Instead, we relocate shared libraries at runtime. 8258 ;; 8259 8260 msdosdjgpp*) 8261 # Just because we use GCC doesn't mean we suddenly get shared libraries 8262 # on systems that don't support them. 8263 lt_prog_compiler_can_build_shared=no 8264 enable_shared=no 8265 ;; 8266 8267 *nto* | *qnx*) 8268 # QNX uses GNU C++, but need to define -shared option too, otherwise 8269 # it will coredump. 8270 lt_prog_compiler_pic='-fPIC -shared' 8271 ;; 8272 8273 sysv4*MP*) 8274 if test -d /usr/nec; then 8275 lt_prog_compiler_pic=-Kconform_pic 8276 fi 8277 ;; 8278 8279 *) 8280 lt_prog_compiler_pic='-fPIC' 8281 ;; 8282 esac 8283 8284 case $cc_basename in 8285 nvcc*) # Cuda Compiler Driver 2.2 8286 lt_prog_compiler_wl='-Xlinker ' 8287 if test -n "$lt_prog_compiler_pic"; then 8288 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8289 fi 8290 ;; 8291 esac 8292 else 8293 # PORTME Check for flag to pass linker flags through the system compiler. 8294 case $host_os in 8295 aix*) 8296 lt_prog_compiler_wl='-Wl,' 8297 if test "$host_cpu" = ia64; then 8298 # AIX 5 now supports IA64 processor 8299 lt_prog_compiler_static='-Bstatic' 8300 else 8301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8302 fi 8303 ;; 8304 8305 mingw* | cygwin* | pw32* | os2* | cegcc*) 8306 # This hack is so that the source file can tell whether it is being 8307 # built for inclusion in a dll (and should export symbols for example). 8308 lt_prog_compiler_pic='-DDLL_EXPORT' 8309 ;; 8310 8311 hpux9* | hpux10* | hpux11*) 8312 lt_prog_compiler_wl='-Wl,' 8313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8314 # not for PA HP-UX. 8315 case $host_cpu in 8316 hppa*64*|ia64*) 8317 # +Z the default 8318 ;; 8319 *) 8320 lt_prog_compiler_pic='+Z' 8321 ;; 8322 esac 8323 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8324 lt_prog_compiler_static='${wl}-a ${wl}archive' 8325 ;; 8326 8327 irix5* | irix6* | nonstopux*) 8328 lt_prog_compiler_wl='-Wl,' 8329 # PIC (with -KPIC) is the default. 8330 lt_prog_compiler_static='-non_shared' 8331 ;; 8332 8333 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8334 case $cc_basename in 8335 # old Intel for x86_64 which still supported -KPIC. 8336 ecc*) 8337 lt_prog_compiler_wl='-Wl,' 8338 lt_prog_compiler_pic='-KPIC' 8339 lt_prog_compiler_static='-static' 8340 ;; 8341 # icc used to be incompatible with GCC. 8342 # ICC 10 doesn't accept -KPIC any more. 8343 icc* | ifort*) 8344 lt_prog_compiler_wl='-Wl,' 8345 lt_prog_compiler_pic='-fPIC' 8346 lt_prog_compiler_static='-static' 8347 ;; 8348 # Lahey Fortran 8.1. 8349 lf95*) 8350 lt_prog_compiler_wl='-Wl,' 8351 lt_prog_compiler_pic='--shared' 8352 lt_prog_compiler_static='--static' 8353 ;; 8354 nagfor*) 8355 # NAG Fortran compiler 8356 lt_prog_compiler_wl='-Wl,-Wl,,' 8357 lt_prog_compiler_pic='-PIC' 8358 lt_prog_compiler_static='-Bstatic' 8359 ;; 8360 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8361 # Portland Group compilers (*not* the Pentium gcc compiler, 8362 # which looks to be a dead project) 8363 lt_prog_compiler_wl='-Wl,' 8364 lt_prog_compiler_pic='-fpic' 8365 lt_prog_compiler_static='-Bstatic' 8366 ;; 8367 ccc*) 8368 lt_prog_compiler_wl='-Wl,' 8369 # All Alpha code is PIC. 8370 lt_prog_compiler_static='-non_shared' 8371 ;; 8372 xl* | bgxl* | bgf* | mpixl*) 8373 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8374 lt_prog_compiler_wl='-Wl,' 8375 lt_prog_compiler_pic='-qpic' 8376 lt_prog_compiler_static='-qstaticlink' 8377 ;; 8378 *) 8379 case `$CC -V 2>&1 | sed 5q` in 8380 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8381 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8382 lt_prog_compiler_pic='-KPIC' 8383 lt_prog_compiler_static='-Bstatic' 8384 lt_prog_compiler_wl='' 8385 ;; 8386 *Sun\ F* | *Sun*Fortran*) 8387 lt_prog_compiler_pic='-KPIC' 8388 lt_prog_compiler_static='-Bstatic' 8389 lt_prog_compiler_wl='-Qoption ld ' 8390 ;; 8391 *Sun\ C*) 8392 # Sun C 5.9 8393 lt_prog_compiler_pic='-KPIC' 8394 lt_prog_compiler_static='-Bstatic' 8395 lt_prog_compiler_wl='-Wl,' 8396 ;; 8397 *Intel*\ [CF]*Compiler*) 8398 lt_prog_compiler_wl='-Wl,' 8399 lt_prog_compiler_pic='-fPIC' 8400 lt_prog_compiler_static='-static' 8401 ;; 8402 *Portland\ Group*) 8403 lt_prog_compiler_wl='-Wl,' 8404 lt_prog_compiler_pic='-fpic' 8405 lt_prog_compiler_static='-Bstatic' 8406 ;; 8407 esac 8408 ;; 8409 esac 8410 ;; 8411 8412 newsos6) 8413 lt_prog_compiler_pic='-KPIC' 8414 lt_prog_compiler_static='-Bstatic' 8415 ;; 8416 8417 *nto* | *qnx*) 8418 # QNX uses GNU C++, but need to define -shared option too, otherwise 8419 # it will coredump. 8420 lt_prog_compiler_pic='-fPIC -shared' 8421 ;; 8422 8423 osf3* | osf4* | osf5*) 8424 lt_prog_compiler_wl='-Wl,' 8425 # All OSF/1 code is PIC. 8426 lt_prog_compiler_static='-non_shared' 8427 ;; 8428 8429 rdos*) 8430 lt_prog_compiler_static='-non_shared' 8431 ;; 8432 8433 solaris*) 8434 lt_prog_compiler_pic='-KPIC' 8435 lt_prog_compiler_static='-Bstatic' 8436 case $cc_basename in 8437 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8438 lt_prog_compiler_wl='-Qoption ld ';; 8439 *) 8440 lt_prog_compiler_wl='-Wl,';; 8441 esac 8442 ;; 8443 8444 sunos4*) 8445 lt_prog_compiler_wl='-Qoption ld ' 8446 lt_prog_compiler_pic='-PIC' 8447 lt_prog_compiler_static='-Bstatic' 8448 ;; 8449 8450 sysv4 | sysv4.2uw2* | sysv4.3*) 8451 lt_prog_compiler_wl='-Wl,' 8452 lt_prog_compiler_pic='-KPIC' 8453 lt_prog_compiler_static='-Bstatic' 8454 ;; 8455 8456 sysv4*MP*) 8457 if test -d /usr/nec ;then 8458 lt_prog_compiler_pic='-Kconform_pic' 8459 lt_prog_compiler_static='-Bstatic' 8460 fi 8461 ;; 8462 8463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8464 lt_prog_compiler_wl='-Wl,' 8465 lt_prog_compiler_pic='-KPIC' 8466 lt_prog_compiler_static='-Bstatic' 8467 ;; 8468 8469 unicos*) 8470 lt_prog_compiler_wl='-Wl,' 8471 lt_prog_compiler_can_build_shared=no 8472 ;; 8473 8474 uts4*) 8475 lt_prog_compiler_pic='-pic' 8476 lt_prog_compiler_static='-Bstatic' 8477 ;; 8478 8479 *) 8480 lt_prog_compiler_can_build_shared=no 8481 ;; 8482 esac 8483 fi 8484 8485case $host_os in 8486 # For platforms which do not support PIC, -DPIC is meaningless: 8487 *djgpp*) 8488 lt_prog_compiler_pic= 8489 ;; 8490 *) 8491 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8492 ;; 8493esac 8494 8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8496$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8497if ${lt_cv_prog_compiler_pic+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8501fi 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8503$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8504lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8505 8506# 8507# Check to make sure the PIC flag actually works. 8508# 8509if test -n "$lt_prog_compiler_pic"; then 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8511$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8512if ${lt_cv_prog_compiler_pic_works+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 lt_cv_prog_compiler_pic_works=no 8516 ac_outfile=conftest.$ac_objext 8517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8518 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8519 # Insert the option either (1) after the last *FLAGS variable, or 8520 # (2) before a word containing "conftest.", or (3) at the end. 8521 # Note that $ac_compile itself does not contain backslashes and begins 8522 # with a dollar sign (not a hyphen), so the echo should work correctly. 8523 # The option is referenced via a variable to avoid confusing sed. 8524 lt_compile=`echo "$ac_compile" | $SED \ 8525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8527 -e 's:$: $lt_compiler_flag:'` 8528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8529 (eval "$lt_compile" 2>conftest.err) 8530 ac_status=$? 8531 cat conftest.err >&5 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 if (exit $ac_status) && test -s "$ac_outfile"; then 8534 # The compiler can only warn and ignore the option if not recognized 8535 # So say no if there are warnings other than the usual output. 8536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8539 lt_cv_prog_compiler_pic_works=yes 8540 fi 8541 fi 8542 $RM conftest* 8543 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8546$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8547 8548if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8549 case $lt_prog_compiler_pic in 8550 "" | " "*) ;; 8551 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8552 esac 8553else 8554 lt_prog_compiler_pic= 8555 lt_prog_compiler_can_build_shared=no 8556fi 8557 8558fi 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570# 8571# Check to make sure the static flag actually works. 8572# 8573wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8575$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8576if ${lt_cv_prog_compiler_static_works+:} false; then : 8577 $as_echo_n "(cached) " >&6 8578else 8579 lt_cv_prog_compiler_static_works=no 8580 save_LDFLAGS="$LDFLAGS" 8581 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8582 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8583 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8584 # The linker can only warn and ignore the option if not recognized 8585 # So say no if there are warnings 8586 if test -s conftest.err; then 8587 # Append any errors to the config.log. 8588 cat conftest.err 1>&5 8589 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8591 if diff conftest.exp conftest.er2 >/dev/null; then 8592 lt_cv_prog_compiler_static_works=yes 8593 fi 8594 else 8595 lt_cv_prog_compiler_static_works=yes 8596 fi 8597 fi 8598 $RM -r conftest* 8599 LDFLAGS="$save_LDFLAGS" 8600 8601fi 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8603$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8604 8605if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8606 : 8607else 8608 lt_prog_compiler_static= 8609fi 8610 8611 8612 8613 8614 8615 8616 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8618$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8619if ${lt_cv_prog_compiler_c_o+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 lt_cv_prog_compiler_c_o=no 8623 $RM -r conftest 2>/dev/null 8624 mkdir conftest 8625 cd conftest 8626 mkdir out 8627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8628 8629 lt_compiler_flag="-o out/conftest2.$ac_objext" 8630 # Insert the option either (1) after the last *FLAGS variable, or 8631 # (2) before a word containing "conftest.", or (3) at the end. 8632 # Note that $ac_compile itself does not contain backslashes and begins 8633 # with a dollar sign (not a hyphen), so the echo should work correctly. 8634 lt_compile=`echo "$ac_compile" | $SED \ 8635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8637 -e 's:$: $lt_compiler_flag:'` 8638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8639 (eval "$lt_compile" 2>out/conftest.err) 8640 ac_status=$? 8641 cat out/conftest.err >&5 8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8643 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8644 then 8645 # The compiler can only warn and ignore the option if not recognized 8646 # So say no if there are warnings 8647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8650 lt_cv_prog_compiler_c_o=yes 8651 fi 8652 fi 8653 chmod u+w . 2>&5 8654 $RM conftest* 8655 # SGI C++ compiler will create directory out/ii_files/ for 8656 # template instantiation 8657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8658 $RM out/* && rmdir out 8659 cd .. 8660 $RM -r conftest 8661 $RM conftest* 8662 8663fi 8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8665$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8666 8667 8668 8669 8670 8671 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8674if ${lt_cv_prog_compiler_c_o+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 lt_cv_prog_compiler_c_o=no 8678 $RM -r conftest 2>/dev/null 8679 mkdir conftest 8680 cd conftest 8681 mkdir out 8682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8683 8684 lt_compiler_flag="-o out/conftest2.$ac_objext" 8685 # Insert the option either (1) after the last *FLAGS variable, or 8686 # (2) before a word containing "conftest.", or (3) at the end. 8687 # Note that $ac_compile itself does not contain backslashes and begins 8688 # with a dollar sign (not a hyphen), so the echo should work correctly. 8689 lt_compile=`echo "$ac_compile" | $SED \ 8690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8692 -e 's:$: $lt_compiler_flag:'` 8693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8694 (eval "$lt_compile" 2>out/conftest.err) 8695 ac_status=$? 8696 cat out/conftest.err >&5 8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8698 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8699 then 8700 # The compiler can only warn and ignore the option if not recognized 8701 # So say no if there are warnings 8702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8705 lt_cv_prog_compiler_c_o=yes 8706 fi 8707 fi 8708 chmod u+w . 2>&5 8709 $RM conftest* 8710 # SGI C++ compiler will create directory out/ii_files/ for 8711 # template instantiation 8712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8713 $RM out/* && rmdir out 8714 cd .. 8715 $RM -r conftest 8716 $RM conftest* 8717 8718fi 8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8720$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8721 8722 8723 8724 8725hard_links="nottested" 8726if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8727 # do not overwrite the value of need_locks provided by the user 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8729$as_echo_n "checking if we can lock with hard links... " >&6; } 8730 hard_links=yes 8731 $RM conftest* 8732 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8733 touch conftest.a 8734 ln conftest.a conftest.b 2>&5 || hard_links=no 8735 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8737$as_echo "$hard_links" >&6; } 8738 if test "$hard_links" = no; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8740$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8741 need_locks=warn 8742 fi 8743else 8744 need_locks=no 8745fi 8746 8747 8748 8749 8750 8751 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8753$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8754 8755 runpath_var= 8756 allow_undefined_flag= 8757 always_export_symbols=no 8758 archive_cmds= 8759 archive_expsym_cmds= 8760 compiler_needs_object=no 8761 enable_shared_with_static_runtimes=no 8762 export_dynamic_flag_spec= 8763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8764 hardcode_automatic=no 8765 hardcode_direct=no 8766 hardcode_direct_absolute=no 8767 hardcode_libdir_flag_spec= 8768 hardcode_libdir_separator= 8769 hardcode_minus_L=no 8770 hardcode_shlibpath_var=unsupported 8771 inherit_rpath=no 8772 link_all_deplibs=unknown 8773 module_cmds= 8774 module_expsym_cmds= 8775 old_archive_from_new_cmds= 8776 old_archive_from_expsyms_cmds= 8777 thread_safe_flag_spec= 8778 whole_archive_flag_spec= 8779 # include_expsyms should be a list of space-separated symbols to be *always* 8780 # included in the symbol list 8781 include_expsyms= 8782 # exclude_expsyms can be an extended regexp of symbols to exclude 8783 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8784 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8785 # as well as any symbol that contains `d'. 8786 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8788 # platforms (ab)use it in PIC code, but their linkers get confused if 8789 # the symbol is explicitly referenced. Since portable code cannot 8790 # rely on this symbol name, it's probably fine to never include it in 8791 # preloaded symbol tables. 8792 # Exclude shared library initialization/finalization symbols. 8793 extract_expsyms_cmds= 8794 8795 case $host_os in 8796 cygwin* | mingw* | pw32* | cegcc*) 8797 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8798 # When not using gcc, we currently assume that we are using 8799 # Microsoft Visual C++. 8800 if test "$GCC" != yes; then 8801 with_gnu_ld=no 8802 fi 8803 ;; 8804 interix*) 8805 # we just hope/assume this is gcc and not c89 (= MSVC++) 8806 with_gnu_ld=yes 8807 ;; 8808 openbsd*) 8809 with_gnu_ld=no 8810 ;; 8811 esac 8812 8813 ld_shlibs=yes 8814 8815 # On some targets, GNU ld is compatible enough with the native linker 8816 # that we're better off using the native interface for both. 8817 lt_use_gnu_ld_interface=no 8818 if test "$with_gnu_ld" = yes; then 8819 case $host_os in 8820 aix*) 8821 # The AIX port of GNU ld has always aspired to compatibility 8822 # with the native linker. However, as the warning in the GNU ld 8823 # block says, versions before 2.19.5* couldn't really create working 8824 # shared libraries, regardless of the interface used. 8825 case `$LD -v 2>&1` in 8826 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8827 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8828 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8829 *) 8830 lt_use_gnu_ld_interface=yes 8831 ;; 8832 esac 8833 ;; 8834 *) 8835 lt_use_gnu_ld_interface=yes 8836 ;; 8837 esac 8838 fi 8839 8840 if test "$lt_use_gnu_ld_interface" = yes; then 8841 # If archive_cmds runs LD, not CC, wlarc should be empty 8842 wlarc='${wl}' 8843 8844 # Set some defaults for GNU ld with shared library support. These 8845 # are reset later if shared libraries are not supported. Putting them 8846 # here allows them to be overridden if necessary. 8847 runpath_var=LD_RUN_PATH 8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8849 export_dynamic_flag_spec='${wl}--export-dynamic' 8850 # ancient GNU ld didn't support --whole-archive et. al. 8851 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8852 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8853 else 8854 whole_archive_flag_spec= 8855 fi 8856 supports_anon_versioning=no 8857 case `$LD -v 2>&1` in 8858 *GNU\ gold*) supports_anon_versioning=yes ;; 8859 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8860 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8861 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8862 *\ 2.11.*) ;; # other 2.11 versions 8863 *) supports_anon_versioning=yes ;; 8864 esac 8865 8866 # See if GNU ld supports shared libraries. 8867 case $host_os in 8868 aix[3-9]*) 8869 # On AIX/PPC, the GNU linker is very broken 8870 if test "$host_cpu" != ia64; then 8871 ld_shlibs=no 8872 cat <<_LT_EOF 1>&2 8873 8874*** Warning: the GNU linker, at least up to release 2.19, is reported 8875*** to be unable to reliably create shared libraries on AIX. 8876*** Therefore, libtool is disabling shared libraries support. If you 8877*** really care for shared libraries, you may want to install binutils 8878*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8879*** You will then need to restart the configuration process. 8880 8881_LT_EOF 8882 fi 8883 ;; 8884 8885 amigaos*) 8886 case $host_cpu in 8887 powerpc) 8888 # see comment about AmigaOS4 .so support 8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8890 archive_expsym_cmds='' 8891 ;; 8892 m68k) 8893 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)' 8894 hardcode_libdir_flag_spec='-L$libdir' 8895 hardcode_minus_L=yes 8896 ;; 8897 esac 8898 ;; 8899 8900 beos*) 8901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8902 allow_undefined_flag=unsupported 8903 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8904 # support --undefined. This deserves some investigation. FIXME 8905 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8906 else 8907 ld_shlibs=no 8908 fi 8909 ;; 8910 8911 cygwin* | mingw* | pw32* | cegcc*) 8912 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8913 # as there is no search path for DLLs. 8914 hardcode_libdir_flag_spec='-L$libdir' 8915 export_dynamic_flag_spec='${wl}--export-all-symbols' 8916 allow_undefined_flag=unsupported 8917 always_export_symbols=no 8918 enable_shared_with_static_runtimes=yes 8919 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' 8920 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8921 8922 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8924 # If the export-symbols file already is a .def file (1st line 8925 # is EXPORTS), use it as is; otherwise, prepend... 8926 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8927 cp $export_symbols $output_objdir/$soname.def; 8928 else 8929 echo EXPORTS > $output_objdir/$soname.def; 8930 cat $export_symbols >> $output_objdir/$soname.def; 8931 fi~ 8932 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8933 else 8934 ld_shlibs=no 8935 fi 8936 ;; 8937 8938 haiku*) 8939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8940 link_all_deplibs=yes 8941 ;; 8942 8943 interix[3-9]*) 8944 hardcode_direct=no 8945 hardcode_shlibpath_var=no 8946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8947 export_dynamic_flag_spec='${wl}-E' 8948 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8949 # Instead, shared libraries are loaded at an image base (0x10000000 by 8950 # default) and relocated if they conflict, which is a slow very memory 8951 # consuming and fragmenting process. To avoid this, we pick a random, 8952 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8953 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8954 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8955 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' 8956 ;; 8957 8958 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8959 tmp_diet=no 8960 if test "$host_os" = linux-dietlibc; then 8961 case $cc_basename in 8962 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8963 esac 8964 fi 8965 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8966 && test "$tmp_diet" = no 8967 then 8968 tmp_addflag=' $pic_flag' 8969 tmp_sharedflag='-shared' 8970 case $cc_basename,$host_cpu in 8971 pgcc*) # Portland Group C compiler 8972 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' 8973 tmp_addflag=' $pic_flag' 8974 ;; 8975 pgf77* | pgf90* | pgf95* | pgfortran*) 8976 # Portland Group f77 and f90 compilers 8977 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' 8978 tmp_addflag=' $pic_flag -Mnomain' ;; 8979 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8980 tmp_addflag=' -i_dynamic' ;; 8981 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8982 tmp_addflag=' -i_dynamic -nofor_main' ;; 8983 ifc* | ifort*) # Intel Fortran compiler 8984 tmp_addflag=' -nofor_main' ;; 8985 lf95*) # Lahey Fortran 8.1 8986 whole_archive_flag_spec= 8987 tmp_sharedflag='--shared' ;; 8988 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8989 tmp_sharedflag='-qmkshrobj' 8990 tmp_addflag= ;; 8991 nvcc*) # Cuda Compiler Driver 2.2 8992 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' 8993 compiler_needs_object=yes 8994 ;; 8995 esac 8996 case `$CC -V 2>&1 | sed 5q` in 8997 *Sun\ C*) # Sun C 5.9 8998 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' 8999 compiler_needs_object=yes 9000 tmp_sharedflag='-G' ;; 9001 *Sun\ F*) # Sun Fortran 8.3 9002 tmp_sharedflag='-G' ;; 9003 esac 9004 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9005 9006 if test "x$supports_anon_versioning" = xyes; then 9007 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9009 echo "local: *; };" >> $output_objdir/$libname.ver~ 9010 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9011 fi 9012 9013 case $cc_basename in 9014 xlf* | bgf* | bgxlf* | mpixlf*) 9015 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9016 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9018 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9019 if test "x$supports_anon_versioning" = xyes; then 9020 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9022 echo "local: *; };" >> $output_objdir/$libname.ver~ 9023 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9024 fi 9025 ;; 9026 esac 9027 else 9028 ld_shlibs=no 9029 fi 9030 ;; 9031 9032 netbsd*) 9033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9035 wlarc= 9036 else 9037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9039 fi 9040 ;; 9041 9042 solaris*) 9043 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9044 ld_shlibs=no 9045 cat <<_LT_EOF 1>&2 9046 9047*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9048*** create shared libraries on Solaris systems. Therefore, libtool 9049*** is disabling shared libraries support. We urge you to upgrade GNU 9050*** binutils to release 2.9.1 or newer. Another option is to modify 9051*** your PATH or compiler configuration so that the native linker is 9052*** used, and then restart. 9053 9054_LT_EOF 9055 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9057 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9058 else 9059 ld_shlibs=no 9060 fi 9061 ;; 9062 9063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9064 case `$LD -v 2>&1` in 9065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9066 ld_shlibs=no 9067 cat <<_LT_EOF 1>&2 9068 9069*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9070*** reliably create shared libraries on SCO systems. Therefore, libtool 9071*** is disabling shared libraries support. We urge you to upgrade GNU 9072*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9073*** your PATH or compiler configuration so that the native linker is 9074*** used, and then restart. 9075 9076_LT_EOF 9077 ;; 9078 *) 9079 # For security reasons, it is highly recommended that you always 9080 # use absolute paths for naming shared libraries, and exclude the 9081 # DT_RUNPATH tag from executables and libraries. But doing so 9082 # requires that you compile everything twice, which is a pain. 9083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9087 else 9088 ld_shlibs=no 9089 fi 9090 ;; 9091 esac 9092 ;; 9093 9094 sunos4*) 9095 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9096 wlarc= 9097 hardcode_direct=yes 9098 hardcode_shlibpath_var=no 9099 ;; 9100 9101 *) 9102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9104 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9105 else 9106 ld_shlibs=no 9107 fi 9108 ;; 9109 esac 9110 9111 if test "$ld_shlibs" = no; then 9112 runpath_var= 9113 hardcode_libdir_flag_spec= 9114 export_dynamic_flag_spec= 9115 whole_archive_flag_spec= 9116 fi 9117 else 9118 # PORTME fill in a description of your system's linker (not GNU ld) 9119 case $host_os in 9120 aix3*) 9121 allow_undefined_flag=unsupported 9122 always_export_symbols=yes 9123 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' 9124 # Note: this linker hardcodes the directories in LIBPATH if there 9125 # are no directories specified by -L. 9126 hardcode_minus_L=yes 9127 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9128 # Neither direct hardcoding nor static linking is supported with a 9129 # broken collect2. 9130 hardcode_direct=unsupported 9131 fi 9132 ;; 9133 9134 aix[4-9]*) 9135 if test "$host_cpu" = ia64; then 9136 # On IA64, the linker does run time linking by default, so we don't 9137 # have to do anything special. 9138 aix_use_runtimelinking=no 9139 exp_sym_flag='-Bexport' 9140 no_entry_flag="" 9141 else 9142 # If we're using GNU nm, then we don't want the "-C" option. 9143 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9144 # Also, AIX nm treats weak defined symbols like other global 9145 # defined symbols, whereas GNU nm marks them as "W". 9146 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9147 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9148 else 9149 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9150 fi 9151 aix_use_runtimelinking=no 9152 9153 # Test if we are trying to use run time linking or normal 9154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9155 # need to do runtime linking. 9156 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9157 for ld_flag in $LDFLAGS; do 9158 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9159 aix_use_runtimelinking=yes 9160 break 9161 fi 9162 done 9163 ;; 9164 esac 9165 9166 exp_sym_flag='-bexport' 9167 no_entry_flag='-bnoentry' 9168 fi 9169 9170 # When large executables or shared objects are built, AIX ld can 9171 # have problems creating the table of contents. If linking a library 9172 # or program results in "error TOC overflow" add -mminimal-toc to 9173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9175 9176 archive_cmds='' 9177 hardcode_direct=yes 9178 hardcode_direct_absolute=yes 9179 hardcode_libdir_separator=':' 9180 link_all_deplibs=yes 9181 file_list_spec='${wl}-f,' 9182 9183 if test "$GCC" = yes; then 9184 case $host_os in aix4.[012]|aix4.[012].*) 9185 # We only want to do this on AIX 4.2 and lower, the check 9186 # below for broken collect2 doesn't work under 4.3+ 9187 collect2name=`${CC} -print-prog-name=collect2` 9188 if test -f "$collect2name" && 9189 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9190 then 9191 # We have reworked collect2 9192 : 9193 else 9194 # We have old collect2 9195 hardcode_direct=unsupported 9196 # It fails to find uninstalled libraries when the uninstalled 9197 # path is not listed in the libpath. Setting hardcode_minus_L 9198 # to unsupported forces relinking 9199 hardcode_minus_L=yes 9200 hardcode_libdir_flag_spec='-L$libdir' 9201 hardcode_libdir_separator= 9202 fi 9203 ;; 9204 esac 9205 shared_flag='-shared' 9206 if test "$aix_use_runtimelinking" = yes; then 9207 shared_flag="$shared_flag "'${wl}-G' 9208 fi 9209 else 9210 # not using gcc 9211 if test "$host_cpu" = ia64; then 9212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9213 # chokes on -Wl,-G. The following line is correct: 9214 shared_flag='-G' 9215 else 9216 if test "$aix_use_runtimelinking" = yes; then 9217 shared_flag='${wl}-G' 9218 else 9219 shared_flag='${wl}-bM:SRE' 9220 fi 9221 fi 9222 fi 9223 9224 export_dynamic_flag_spec='${wl}-bexpall' 9225 # It seems that -bexpall does not export symbols beginning with 9226 # underscore (_), so it is better to generate a list of symbols to export. 9227 always_export_symbols=yes 9228 if test "$aix_use_runtimelinking" = yes; then 9229 # Warning - without using the other runtime loading flags (-brtl), 9230 # -berok will link without error, but may produce a broken library. 9231 allow_undefined_flag='-berok' 9232 # Determine the default libpath from the value encoded in an 9233 # empty executable. 9234 if test "${lt_cv_aix_libpath+set}" = set; then 9235 aix_libpath=$lt_cv_aix_libpath 9236else 9237 if ${lt_cv_aix_libpath_+:} false; then : 9238 $as_echo_n "(cached) " >&6 9239else 9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9241/* end confdefs.h. */ 9242 9243int 9244main () 9245{ 9246 9247 ; 9248 return 0; 9249} 9250_ACEOF 9251if ac_fn_c_try_link "$LINENO"; then : 9252 9253 lt_aix_libpath_sed=' 9254 /Import File Strings/,/^$/ { 9255 /^0/ { 9256 s/^0 *\([^ ]*\) *$/\1/ 9257 p 9258 } 9259 }' 9260 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9261 # Check for a 64-bit object if we didn't find anything. 9262 if test -z "$lt_cv_aix_libpath_"; then 9263 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9264 fi 9265fi 9266rm -f core conftest.err conftest.$ac_objext \ 9267 conftest$ac_exeext conftest.$ac_ext 9268 if test -z "$lt_cv_aix_libpath_"; then 9269 lt_cv_aix_libpath_="/usr/lib:/lib" 9270 fi 9271 9272fi 9273 9274 aix_libpath=$lt_cv_aix_libpath_ 9275fi 9276 9277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9278 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9279 else 9280 if test "$host_cpu" = ia64; then 9281 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9282 allow_undefined_flag="-z nodefs" 9283 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" 9284 else 9285 # Determine the default libpath from the value encoded in an 9286 # empty executable. 9287 if test "${lt_cv_aix_libpath+set}" = set; then 9288 aix_libpath=$lt_cv_aix_libpath 9289else 9290 if ${lt_cv_aix_libpath_+:} false; then : 9291 $as_echo_n "(cached) " >&6 9292else 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295 9296int 9297main () 9298{ 9299 9300 ; 9301 return 0; 9302} 9303_ACEOF 9304if ac_fn_c_try_link "$LINENO"; then : 9305 9306 lt_aix_libpath_sed=' 9307 /Import File Strings/,/^$/ { 9308 /^0/ { 9309 s/^0 *\([^ ]*\) *$/\1/ 9310 p 9311 } 9312 }' 9313 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9314 # Check for a 64-bit object if we didn't find anything. 9315 if test -z "$lt_cv_aix_libpath_"; then 9316 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9317 fi 9318fi 9319rm -f core conftest.err conftest.$ac_objext \ 9320 conftest$ac_exeext conftest.$ac_ext 9321 if test -z "$lt_cv_aix_libpath_"; then 9322 lt_cv_aix_libpath_="/usr/lib:/lib" 9323 fi 9324 9325fi 9326 9327 aix_libpath=$lt_cv_aix_libpath_ 9328fi 9329 9330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9331 # Warning - without using the other run time loading flags, 9332 # -berok will link without error, but may produce a broken library. 9333 no_undefined_flag=' ${wl}-bernotok' 9334 allow_undefined_flag=' ${wl}-berok' 9335 if test "$with_gnu_ld" = yes; then 9336 # We only use this code for GNU lds that support --whole-archive. 9337 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9338 else 9339 # Exported symbols can be pulled into shared objects from archives 9340 whole_archive_flag_spec='$convenience' 9341 fi 9342 archive_cmds_need_lc=yes 9343 # This is similar to how AIX traditionally builds its shared libraries. 9344 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9345 fi 9346 fi 9347 ;; 9348 9349 amigaos*) 9350 case $host_cpu in 9351 powerpc) 9352 # see comment about AmigaOS4 .so support 9353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9354 archive_expsym_cmds='' 9355 ;; 9356 m68k) 9357 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)' 9358 hardcode_libdir_flag_spec='-L$libdir' 9359 hardcode_minus_L=yes 9360 ;; 9361 esac 9362 ;; 9363 9364 bsdi[45]*) 9365 export_dynamic_flag_spec=-rdynamic 9366 ;; 9367 9368 cygwin* | mingw* | pw32* | cegcc*) 9369 # When not using gcc, we currently assume that we are using 9370 # Microsoft Visual C++. 9371 # hardcode_libdir_flag_spec is actually meaningless, as there is 9372 # no search path for DLLs. 9373 case $cc_basename in 9374 cl*) 9375 # Native MSVC 9376 hardcode_libdir_flag_spec=' ' 9377 allow_undefined_flag=unsupported 9378 always_export_symbols=yes 9379 file_list_spec='@' 9380 # Tell ltmain to make .lib files, not .a files. 9381 libext=lib 9382 # Tell ltmain to make .dll files, not .so files. 9383 shrext_cmds=".dll" 9384 # FIXME: Setting linknames here is a bad hack. 9385 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9386 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9387 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9388 else 9389 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9390 fi~ 9391 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9392 linknames=' 9393 # The linker will not automatically build a static lib if we build a DLL. 9394 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9395 enable_shared_with_static_runtimes=yes 9396 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9398 # Don't use ranlib 9399 old_postinstall_cmds='chmod 644 $oldlib' 9400 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9401 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9402 case $lt_outputfile in 9403 *.exe|*.EXE) ;; 9404 *) 9405 lt_outputfile="$lt_outputfile.exe" 9406 lt_tool_outputfile="$lt_tool_outputfile.exe" 9407 ;; 9408 esac~ 9409 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9410 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9411 $RM "$lt_outputfile.manifest"; 9412 fi' 9413 ;; 9414 *) 9415 # Assume MSVC wrapper 9416 hardcode_libdir_flag_spec=' ' 9417 allow_undefined_flag=unsupported 9418 # Tell ltmain to make .lib files, not .a files. 9419 libext=lib 9420 # Tell ltmain to make .dll files, not .so files. 9421 shrext_cmds=".dll" 9422 # FIXME: Setting linknames here is a bad hack. 9423 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9424 # The linker will automatically build a .lib file if we build a DLL. 9425 old_archive_from_new_cmds='true' 9426 # FIXME: Should let the user specify the lib program. 9427 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9428 enable_shared_with_static_runtimes=yes 9429 ;; 9430 esac 9431 ;; 9432 9433 darwin* | rhapsody*) 9434 9435 9436 archive_cmds_need_lc=no 9437 hardcode_direct=no 9438 hardcode_automatic=yes 9439 hardcode_shlibpath_var=unsupported 9440 if test "$lt_cv_ld_force_load" = "yes"; then 9441 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\"`' 9442 9443 else 9444 whole_archive_flag_spec='' 9445 fi 9446 link_all_deplibs=yes 9447 allow_undefined_flag="$_lt_dar_allow_undefined" 9448 case $cc_basename in 9449 ifort*) _lt_dar_can_shared=yes ;; 9450 *) _lt_dar_can_shared=$GCC ;; 9451 esac 9452 if test "$_lt_dar_can_shared" = "yes"; then 9453 output_verbose_link_cmd=func_echo_all 9454 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9455 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9456 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}" 9457 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}" 9458 9459 else 9460 ld_shlibs=no 9461 fi 9462 9463 ;; 9464 9465 dgux*) 9466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9467 hardcode_libdir_flag_spec='-L$libdir' 9468 hardcode_shlibpath_var=no 9469 ;; 9470 9471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9472 # support. Future versions do this automatically, but an explicit c++rt0.o 9473 # does not break anything, and helps significantly (at the cost of a little 9474 # extra space). 9475 freebsd2.2*) 9476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9477 hardcode_libdir_flag_spec='-R$libdir' 9478 hardcode_direct=yes 9479 hardcode_shlibpath_var=no 9480 ;; 9481 9482 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9483 freebsd2.*) 9484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9485 hardcode_direct=yes 9486 hardcode_minus_L=yes 9487 hardcode_shlibpath_var=no 9488 ;; 9489 9490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9491 freebsd* | dragonfly*) 9492 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9493 hardcode_libdir_flag_spec='-R$libdir' 9494 hardcode_direct=yes 9495 hardcode_shlibpath_var=no 9496 ;; 9497 9498 hpux9*) 9499 if test "$GCC" = yes; then 9500 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9501 else 9502 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9503 fi 9504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9505 hardcode_libdir_separator=: 9506 hardcode_direct=yes 9507 9508 # hardcode_minus_L: Not really in the search PATH, 9509 # but as the default location of the library. 9510 hardcode_minus_L=yes 9511 export_dynamic_flag_spec='${wl}-E' 9512 ;; 9513 9514 hpux10*) 9515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9516 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9517 else 9518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9519 fi 9520 if test "$with_gnu_ld" = no; then 9521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9522 hardcode_libdir_separator=: 9523 hardcode_direct=yes 9524 hardcode_direct_absolute=yes 9525 export_dynamic_flag_spec='${wl}-E' 9526 # hardcode_minus_L: Not really in the search PATH, 9527 # but as the default location of the library. 9528 hardcode_minus_L=yes 9529 fi 9530 ;; 9531 9532 hpux11*) 9533 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9534 case $host_cpu in 9535 hppa*64*) 9536 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9537 ;; 9538 ia64*) 9539 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9540 ;; 9541 *) 9542 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9543 ;; 9544 esac 9545 else 9546 case $host_cpu in 9547 hppa*64*) 9548 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9549 ;; 9550 ia64*) 9551 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9552 ;; 9553 *) 9554 9555 # Older versions of the 11.00 compiler do not understand -b yet 9556 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9558$as_echo_n "checking if $CC understands -b... " >&6; } 9559if ${lt_cv_prog_compiler__b+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561else 9562 lt_cv_prog_compiler__b=no 9563 save_LDFLAGS="$LDFLAGS" 9564 LDFLAGS="$LDFLAGS -b" 9565 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9567 # The linker can only warn and ignore the option if not recognized 9568 # So say no if there are warnings 9569 if test -s conftest.err; then 9570 # Append any errors to the config.log. 9571 cat conftest.err 1>&5 9572 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9574 if diff conftest.exp conftest.er2 >/dev/null; then 9575 lt_cv_prog_compiler__b=yes 9576 fi 9577 else 9578 lt_cv_prog_compiler__b=yes 9579 fi 9580 fi 9581 $RM -r conftest* 9582 LDFLAGS="$save_LDFLAGS" 9583 9584fi 9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9586$as_echo "$lt_cv_prog_compiler__b" >&6; } 9587 9588if test x"$lt_cv_prog_compiler__b" = xyes; then 9589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9590else 9591 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9592fi 9593 9594 ;; 9595 esac 9596 fi 9597 if test "$with_gnu_ld" = no; then 9598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9599 hardcode_libdir_separator=: 9600 9601 case $host_cpu in 9602 hppa*64*|ia64*) 9603 hardcode_direct=no 9604 hardcode_shlibpath_var=no 9605 ;; 9606 *) 9607 hardcode_direct=yes 9608 hardcode_direct_absolute=yes 9609 export_dynamic_flag_spec='${wl}-E' 9610 9611 # hardcode_minus_L: Not really in the search PATH, 9612 # but as the default location of the library. 9613 hardcode_minus_L=yes 9614 ;; 9615 esac 9616 fi 9617 ;; 9618 9619 irix5* | irix6* | nonstopux*) 9620 if test "$GCC" = yes; then 9621 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' 9622 # Try to use the -exported_symbol ld option, if it does not 9623 # work, assume that -exports_file does not work either and 9624 # implicitly export all symbols. 9625 # This should be the same for all languages, so no per-tag cache variable. 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9627$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9628if ${lt_cv_irix_exported_symbol+:} false; then : 9629 $as_echo_n "(cached) " >&6 9630else 9631 save_LDFLAGS="$LDFLAGS" 9632 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int foo (void) { return 0; } 9636_ACEOF 9637if ac_fn_c_try_link "$LINENO"; then : 9638 lt_cv_irix_exported_symbol=yes 9639else 9640 lt_cv_irix_exported_symbol=no 9641fi 9642rm -f core conftest.err conftest.$ac_objext \ 9643 conftest$ac_exeext conftest.$ac_ext 9644 LDFLAGS="$save_LDFLAGS" 9645fi 9646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9647$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9648 if test "$lt_cv_irix_exported_symbol" = yes; then 9649 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' 9650 fi 9651 else 9652 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' 9653 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' 9654 fi 9655 archive_cmds_need_lc='no' 9656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9657 hardcode_libdir_separator=: 9658 inherit_rpath=yes 9659 link_all_deplibs=yes 9660 ;; 9661 9662 netbsd*) 9663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9665 else 9666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9667 fi 9668 hardcode_libdir_flag_spec='-R$libdir' 9669 hardcode_direct=yes 9670 hardcode_shlibpath_var=no 9671 ;; 9672 9673 newsos6) 9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9675 hardcode_direct=yes 9676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9677 hardcode_libdir_separator=: 9678 hardcode_shlibpath_var=no 9679 ;; 9680 9681 *nto* | *qnx*) 9682 ;; 9683 9684 openbsd*) 9685 if test -f /usr/libexec/ld.so; then 9686 hardcode_direct=yes 9687 hardcode_shlibpath_var=no 9688 hardcode_direct_absolute=yes 9689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9691 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9692 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9693 export_dynamic_flag_spec='${wl}-E' 9694 else 9695 case $host_os in 9696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9698 hardcode_libdir_flag_spec='-R$libdir' 9699 ;; 9700 *) 9701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9702 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9703 ;; 9704 esac 9705 fi 9706 else 9707 ld_shlibs=no 9708 fi 9709 ;; 9710 9711 os2*) 9712 hardcode_libdir_flag_spec='-L$libdir' 9713 hardcode_minus_L=yes 9714 allow_undefined_flag=unsupported 9715 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9716 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9717 ;; 9718 9719 osf3*) 9720 if test "$GCC" = yes; then 9721 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9722 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' 9723 else 9724 allow_undefined_flag=' -expect_unresolved \*' 9725 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' 9726 fi 9727 archive_cmds_need_lc='no' 9728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9729 hardcode_libdir_separator=: 9730 ;; 9731 9732 osf4* | osf5*) # as osf3* with the addition of -msym flag 9733 if test "$GCC" = yes; then 9734 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9735 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' 9736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9737 else 9738 allow_undefined_flag=' -expect_unresolved \*' 9739 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' 9740 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~ 9741 $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' 9742 9743 # Both c and cxx compiler support -rpath directly 9744 hardcode_libdir_flag_spec='-rpath $libdir' 9745 fi 9746 archive_cmds_need_lc='no' 9747 hardcode_libdir_separator=: 9748 ;; 9749 9750 solaris*) 9751 no_undefined_flag=' -z defs' 9752 if test "$GCC" = yes; then 9753 wlarc='${wl}' 9754 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9755 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9756 $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' 9757 else 9758 case `$CC -V 2>&1` in 9759 *"Compilers 5.0"*) 9760 wlarc='' 9761 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9762 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9764 ;; 9765 *) 9766 wlarc='${wl}' 9767 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9768 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9769 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9770 ;; 9771 esac 9772 fi 9773 hardcode_libdir_flag_spec='-R$libdir' 9774 hardcode_shlibpath_var=no 9775 case $host_os in 9776 solaris2.[0-5] | solaris2.[0-5].*) ;; 9777 *) 9778 # The compiler driver will combine and reorder linker options, 9779 # but understands `-z linker_flag'. GCC discards it without `$wl', 9780 # but is careful enough not to reorder. 9781 # Supported since Solaris 2.6 (maybe 2.5.1?) 9782 if test "$GCC" = yes; then 9783 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9784 else 9785 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9786 fi 9787 ;; 9788 esac 9789 link_all_deplibs=yes 9790 ;; 9791 9792 sunos4*) 9793 if test "x$host_vendor" = xsequent; then 9794 # Use $CC to link under sequent, because it throws in some extra .o 9795 # files that make .init and .fini sections work. 9796 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9797 else 9798 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9799 fi 9800 hardcode_libdir_flag_spec='-L$libdir' 9801 hardcode_direct=yes 9802 hardcode_minus_L=yes 9803 hardcode_shlibpath_var=no 9804 ;; 9805 9806 sysv4) 9807 case $host_vendor in 9808 sni) 9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9810 hardcode_direct=yes # is this really true??? 9811 ;; 9812 siemens) 9813 ## LD is ld it makes a PLAMLIB 9814 ## CC just makes a GrossModule. 9815 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9816 reload_cmds='$CC -r -o $output$reload_objs' 9817 hardcode_direct=no 9818 ;; 9819 motorola) 9820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9821 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9822 ;; 9823 esac 9824 runpath_var='LD_RUN_PATH' 9825 hardcode_shlibpath_var=no 9826 ;; 9827 9828 sysv4.3*) 9829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9830 hardcode_shlibpath_var=no 9831 export_dynamic_flag_spec='-Bexport' 9832 ;; 9833 9834 sysv4*MP*) 9835 if test -d /usr/nec; then 9836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9837 hardcode_shlibpath_var=no 9838 runpath_var=LD_RUN_PATH 9839 hardcode_runpath_var=yes 9840 ld_shlibs=yes 9841 fi 9842 ;; 9843 9844 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9845 no_undefined_flag='${wl}-z,text' 9846 archive_cmds_need_lc=no 9847 hardcode_shlibpath_var=no 9848 runpath_var='LD_RUN_PATH' 9849 9850 if test "$GCC" = yes; then 9851 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9852 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9853 else 9854 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9855 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9856 fi 9857 ;; 9858 9859 sysv5* | sco3.2v5* | sco5v6*) 9860 # Note: We can NOT use -z defs as we might desire, because we do not 9861 # link with -lc, and that would cause any symbols used from libc to 9862 # always be unresolved, which means just about no library would 9863 # ever link correctly. If we're not using GNU ld we use -z text 9864 # though, which does catch some bad symbols but isn't as heavy-handed 9865 # as -z defs. 9866 no_undefined_flag='${wl}-z,text' 9867 allow_undefined_flag='${wl}-z,nodefs' 9868 archive_cmds_need_lc=no 9869 hardcode_shlibpath_var=no 9870 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9871 hardcode_libdir_separator=':' 9872 link_all_deplibs=yes 9873 export_dynamic_flag_spec='${wl}-Bexport' 9874 runpath_var='LD_RUN_PATH' 9875 9876 if test "$GCC" = yes; then 9877 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9878 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9879 else 9880 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9881 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9882 fi 9883 ;; 9884 9885 uts4*) 9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9887 hardcode_libdir_flag_spec='-L$libdir' 9888 hardcode_shlibpath_var=no 9889 ;; 9890 9891 *) 9892 ld_shlibs=no 9893 ;; 9894 esac 9895 9896 if test x$host_vendor = xsni; then 9897 case $host in 9898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9899 export_dynamic_flag_spec='${wl}-Blargedynsym' 9900 ;; 9901 esac 9902 fi 9903 fi 9904 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9906$as_echo "$ld_shlibs" >&6; } 9907test "$ld_shlibs" = no && can_build_shared=no 9908 9909with_gnu_ld=$with_gnu_ld 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925# 9926# Do we need to explicitly link libc? 9927# 9928case "x$archive_cmds_need_lc" in 9929x|xyes) 9930 # Assume -lc should be added 9931 archive_cmds_need_lc=yes 9932 9933 if test "$enable_shared" = yes && test "$GCC" = yes; then 9934 case $archive_cmds in 9935 *'~'*) 9936 # FIXME: we may have to deal with multi-command sequences. 9937 ;; 9938 '$CC '*) 9939 # Test whether the compiler implicitly links with -lc since on some 9940 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9941 # to ld, don't add -lc before -lgcc. 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9943$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9944if ${lt_cv_archive_cmds_need_lc+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 $RM conftest* 9948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9949 9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9951 (eval $ac_compile) 2>&5 9952 ac_status=$? 9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9954 test $ac_status = 0; } 2>conftest.err; then 9955 soname=conftest 9956 lib=conftest 9957 libobjs=conftest.$ac_objext 9958 deplibs= 9959 wl=$lt_prog_compiler_wl 9960 pic_flag=$lt_prog_compiler_pic 9961 compiler_flags=-v 9962 linker_flags=-v 9963 verstring= 9964 output_objdir=. 9965 libname=conftest 9966 lt_save_allow_undefined_flag=$allow_undefined_flag 9967 allow_undefined_flag= 9968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9969 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9970 ac_status=$? 9971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9972 test $ac_status = 0; } 9973 then 9974 lt_cv_archive_cmds_need_lc=no 9975 else 9976 lt_cv_archive_cmds_need_lc=yes 9977 fi 9978 allow_undefined_flag=$lt_save_allow_undefined_flag 9979 else 9980 cat conftest.err 1>&5 9981 fi 9982 $RM conftest* 9983 9984fi 9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9986$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9987 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9988 ;; 9989 esac 9990 fi 9991 ;; 9992esac 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10146$as_echo_n "checking dynamic linker characteristics... " >&6; } 10147 10148if test "$GCC" = yes; then 10149 case $host_os in 10150 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10151 *) lt_awk_arg="/^libraries:/" ;; 10152 esac 10153 case $host_os in 10154 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10155 *) lt_sed_strip_eq="s,=/,/,g" ;; 10156 esac 10157 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10158 case $lt_search_path_spec in 10159 *\;*) 10160 # if the path contains ";" then we assume it to be the separator 10161 # otherwise default to the standard path separator (i.e. ":") - it is 10162 # assumed that no part of a normal pathname contains ";" but that should 10163 # okay in the real world where ";" in dirpaths is itself problematic. 10164 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10165 ;; 10166 *) 10167 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10168 ;; 10169 esac 10170 # Ok, now we have the path, separated by spaces, we can step through it 10171 # and add multilib dir if necessary. 10172 lt_tmp_lt_search_path_spec= 10173 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10174 for lt_sys_path in $lt_search_path_spec; do 10175 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10176 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10177 else 10178 test -d "$lt_sys_path" && \ 10179 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10180 fi 10181 done 10182 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10183BEGIN {RS=" "; FS="/|\n";} { 10184 lt_foo=""; 10185 lt_count=0; 10186 for (lt_i = NF; lt_i > 0; lt_i--) { 10187 if ($lt_i != "" && $lt_i != ".") { 10188 if ($lt_i == "..") { 10189 lt_count++; 10190 } else { 10191 if (lt_count == 0) { 10192 lt_foo="/" $lt_i lt_foo; 10193 } else { 10194 lt_count--; 10195 } 10196 } 10197 } 10198 } 10199 if (lt_foo != "") { lt_freq[lt_foo]++; } 10200 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10201}'` 10202 # AWK program above erroneously prepends '/' to C:/dos/paths 10203 # for these hosts. 10204 case $host_os in 10205 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10206 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10207 esac 10208 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10209else 10210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10211fi 10212library_names_spec= 10213libname_spec='lib$name' 10214soname_spec= 10215shrext_cmds=".so" 10216postinstall_cmds= 10217postuninstall_cmds= 10218finish_cmds= 10219finish_eval= 10220shlibpath_var= 10221shlibpath_overrides_runpath=unknown 10222version_type=none 10223dynamic_linker="$host_os ld.so" 10224sys_lib_dlsearch_path_spec="/lib /usr/lib" 10225need_lib_prefix=unknown 10226hardcode_into_libs=no 10227 10228# when you set need_version to no, make sure it does not cause -set_version 10229# flags to be left without arguments 10230need_version=unknown 10231 10232case $host_os in 10233aix3*) 10234 version_type=linux # correct to gnu/linux during the next big refactor 10235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10236 shlibpath_var=LIBPATH 10237 10238 # AIX 3 has no versioning support, so we append a major version to the name. 10239 soname_spec='${libname}${release}${shared_ext}$major' 10240 ;; 10241 10242aix[4-9]*) 10243 version_type=linux # correct to gnu/linux during the next big refactor 10244 need_lib_prefix=no 10245 need_version=no 10246 hardcode_into_libs=yes 10247 if test "$host_cpu" = ia64; then 10248 # AIX 5 supports IA64 10249 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10250 shlibpath_var=LD_LIBRARY_PATH 10251 else 10252 # With GCC up to 2.95.x, collect2 would create an import file 10253 # for dependence libraries. The import file would start with 10254 # the line `#! .'. This would cause the generated library to 10255 # depend on `.', always an invalid library. This was fixed in 10256 # development snapshots of GCC prior to 3.0. 10257 case $host_os in 10258 aix4 | aix4.[01] | aix4.[01].*) 10259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10260 echo ' yes ' 10261 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10262 : 10263 else 10264 can_build_shared=no 10265 fi 10266 ;; 10267 esac 10268 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10269 # soname into executable. Probably we can add versioning support to 10270 # collect2, so additional links can be useful in future. 10271 if test "$aix_use_runtimelinking" = yes; then 10272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10273 # instead of lib<name>.a to let people know that these are not 10274 # typical AIX shared libraries. 10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10276 else 10277 # We preserve .a as extension for shared libraries through AIX4.2 10278 # and later when we are not doing run time linking. 10279 library_names_spec='${libname}${release}.a $libname.a' 10280 soname_spec='${libname}${release}${shared_ext}$major' 10281 fi 10282 shlibpath_var=LIBPATH 10283 fi 10284 ;; 10285 10286amigaos*) 10287 case $host_cpu in 10288 powerpc) 10289 # Since July 2007 AmigaOS4 officially supports .so libraries. 10290 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10292 ;; 10293 m68k) 10294 library_names_spec='$libname.ixlibrary $libname.a' 10295 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10296 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10297 ;; 10298 esac 10299 ;; 10300 10301beos*) 10302 library_names_spec='${libname}${shared_ext}' 10303 dynamic_linker="$host_os ld.so" 10304 shlibpath_var=LIBRARY_PATH 10305 ;; 10306 10307bsdi[45]*) 10308 version_type=linux # correct to gnu/linux during the next big refactor 10309 need_version=no 10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10311 soname_spec='${libname}${release}${shared_ext}$major' 10312 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10313 shlibpath_var=LD_LIBRARY_PATH 10314 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10315 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10316 # the default ld.so.conf also contains /usr/contrib/lib and 10317 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10318 # libtool to hard-code these into programs 10319 ;; 10320 10321cygwin* | mingw* | pw32* | cegcc*) 10322 version_type=windows 10323 shrext_cmds=".dll" 10324 need_version=no 10325 need_lib_prefix=no 10326 10327 case $GCC,$cc_basename in 10328 yes,*) 10329 # gcc 10330 library_names_spec='$libname.dll.a' 10331 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10332 postinstall_cmds='base_file=`basename \${file}`~ 10333 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10334 dldir=$destdir/`dirname \$dlpath`~ 10335 test -d \$dldir || mkdir -p \$dldir~ 10336 $install_prog $dir/$dlname \$dldir/$dlname~ 10337 chmod a+x \$dldir/$dlname~ 10338 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10339 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10340 fi' 10341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10342 dlpath=$dir/\$dldll~ 10343 $RM \$dlpath' 10344 shlibpath_overrides_runpath=yes 10345 10346 case $host_os in 10347 cygwin*) 10348 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10350 10351 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10352 ;; 10353 mingw* | cegcc*) 10354 # MinGW DLLs use traditional 'lib' prefix 10355 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10356 ;; 10357 pw32*) 10358 # pw32 DLLs use 'pw' prefix rather than 'lib' 10359 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10360 ;; 10361 esac 10362 dynamic_linker='Win32 ld.exe' 10363 ;; 10364 10365 *,cl*) 10366 # Native MSVC 10367 libname_spec='$name' 10368 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10369 library_names_spec='${libname}.dll.lib' 10370 10371 case $build_os in 10372 mingw*) 10373 sys_lib_search_path_spec= 10374 lt_save_ifs=$IFS 10375 IFS=';' 10376 for lt_path in $LIB 10377 do 10378 IFS=$lt_save_ifs 10379 # Let DOS variable expansion print the short 8.3 style file name. 10380 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10381 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10382 done 10383 IFS=$lt_save_ifs 10384 # Convert to MSYS style. 10385 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10386 ;; 10387 cygwin*) 10388 # Convert to unix form, then to dos form, then back to unix form 10389 # but this time dos style (no spaces!) so that the unix form looks 10390 # like /cygdrive/c/PROGRA~1:/cygdr... 10391 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10392 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10393 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10394 ;; 10395 *) 10396 sys_lib_search_path_spec="$LIB" 10397 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10398 # It is most probably a Windows format PATH. 10399 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10400 else 10401 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10402 fi 10403 # FIXME: find the short name or the path components, as spaces are 10404 # common. (e.g. "Program Files" -> "PROGRA~1") 10405 ;; 10406 esac 10407 10408 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10409 postinstall_cmds='base_file=`basename \${file}`~ 10410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10411 dldir=$destdir/`dirname \$dlpath`~ 10412 test -d \$dldir || mkdir -p \$dldir~ 10413 $install_prog $dir/$dlname \$dldir/$dlname' 10414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10415 dlpath=$dir/\$dldll~ 10416 $RM \$dlpath' 10417 shlibpath_overrides_runpath=yes 10418 dynamic_linker='Win32 link.exe' 10419 ;; 10420 10421 *) 10422 # Assume MSVC wrapper 10423 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10424 dynamic_linker='Win32 ld.exe' 10425 ;; 10426 esac 10427 # FIXME: first we should search . and the directory the executable is in 10428 shlibpath_var=PATH 10429 ;; 10430 10431darwin* | rhapsody*) 10432 dynamic_linker="$host_os dyld" 10433 version_type=darwin 10434 need_lib_prefix=no 10435 need_version=no 10436 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10437 soname_spec='${libname}${release}${major}$shared_ext' 10438 shlibpath_overrides_runpath=yes 10439 shlibpath_var=DYLD_LIBRARY_PATH 10440 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10441 10442 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10443 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10444 ;; 10445 10446dgux*) 10447 version_type=linux # correct to gnu/linux during the next big refactor 10448 need_lib_prefix=no 10449 need_version=no 10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10451 soname_spec='${libname}${release}${shared_ext}$major' 10452 shlibpath_var=LD_LIBRARY_PATH 10453 ;; 10454 10455freebsd* | dragonfly*) 10456 # DragonFly does not have aout. When/if they implement a new 10457 # versioning mechanism, adjust this. 10458 if test -x /usr/bin/objformat; then 10459 objformat=`/usr/bin/objformat` 10460 else 10461 case $host_os in 10462 freebsd[23].*) objformat=aout ;; 10463 *) objformat=elf ;; 10464 esac 10465 fi 10466 version_type=freebsd-$objformat 10467 case $version_type in 10468 freebsd-elf*) 10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10470 need_version=no 10471 need_lib_prefix=no 10472 ;; 10473 freebsd-*) 10474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10475 need_version=yes 10476 ;; 10477 esac 10478 shlibpath_var=LD_LIBRARY_PATH 10479 case $host_os in 10480 freebsd2.*) 10481 shlibpath_overrides_runpath=yes 10482 ;; 10483 freebsd3.[01]* | freebsdelf3.[01]*) 10484 shlibpath_overrides_runpath=yes 10485 hardcode_into_libs=yes 10486 ;; 10487 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10488 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10489 shlibpath_overrides_runpath=no 10490 hardcode_into_libs=yes 10491 ;; 10492 *) # from 4.6 on, and DragonFly 10493 shlibpath_overrides_runpath=yes 10494 hardcode_into_libs=yes 10495 ;; 10496 esac 10497 ;; 10498 10499gnu*) 10500 version_type=linux # correct to gnu/linux during the next big refactor 10501 need_lib_prefix=no 10502 need_version=no 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10504 soname_spec='${libname}${release}${shared_ext}$major' 10505 shlibpath_var=LD_LIBRARY_PATH 10506 shlibpath_overrides_runpath=no 10507 hardcode_into_libs=yes 10508 ;; 10509 10510haiku*) 10511 version_type=linux # correct to gnu/linux during the next big refactor 10512 need_lib_prefix=no 10513 need_version=no 10514 dynamic_linker="$host_os runtime_loader" 10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10516 soname_spec='${libname}${release}${shared_ext}$major' 10517 shlibpath_var=LIBRARY_PATH 10518 shlibpath_overrides_runpath=yes 10519 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10520 hardcode_into_libs=yes 10521 ;; 10522 10523hpux9* | hpux10* | hpux11*) 10524 # Give a soname corresponding to the major version so that dld.sl refuses to 10525 # link against other versions. 10526 version_type=sunos 10527 need_lib_prefix=no 10528 need_version=no 10529 case $host_cpu in 10530 ia64*) 10531 shrext_cmds='.so' 10532 hardcode_into_libs=yes 10533 dynamic_linker="$host_os dld.so" 10534 shlibpath_var=LD_LIBRARY_PATH 10535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10537 soname_spec='${libname}${release}${shared_ext}$major' 10538 if test "X$HPUX_IA64_MODE" = X32; then 10539 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10540 else 10541 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10542 fi 10543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10544 ;; 10545 hppa*64*) 10546 shrext_cmds='.sl' 10547 hardcode_into_libs=yes 10548 dynamic_linker="$host_os dld.sl" 10549 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10552 soname_spec='${libname}${release}${shared_ext}$major' 10553 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10555 ;; 10556 *) 10557 shrext_cmds='.sl' 10558 dynamic_linker="$host_os dld.sl" 10559 shlibpath_var=SHLIB_PATH 10560 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10562 soname_spec='${libname}${release}${shared_ext}$major' 10563 ;; 10564 esac 10565 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10566 postinstall_cmds='chmod 555 $lib' 10567 # or fails outright, so override atomically: 10568 install_override_mode=555 10569 ;; 10570 10571interix[3-9]*) 10572 version_type=linux # correct to gnu/linux during the next big refactor 10573 need_lib_prefix=no 10574 need_version=no 10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10576 soname_spec='${libname}${release}${shared_ext}$major' 10577 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10578 shlibpath_var=LD_LIBRARY_PATH 10579 shlibpath_overrides_runpath=no 10580 hardcode_into_libs=yes 10581 ;; 10582 10583irix5* | irix6* | nonstopux*) 10584 case $host_os in 10585 nonstopux*) version_type=nonstopux ;; 10586 *) 10587 if test "$lt_cv_prog_gnu_ld" = yes; then 10588 version_type=linux # correct to gnu/linux during the next big refactor 10589 else 10590 version_type=irix 10591 fi ;; 10592 esac 10593 need_lib_prefix=no 10594 need_version=no 10595 soname_spec='${libname}${release}${shared_ext}$major' 10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10597 case $host_os in 10598 irix5* | nonstopux*) 10599 libsuff= shlibsuff= 10600 ;; 10601 *) 10602 case $LD in # libtool.m4 will add one of these switches to LD 10603 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10604 libsuff= shlibsuff= libmagic=32-bit;; 10605 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10606 libsuff=32 shlibsuff=N32 libmagic=N32;; 10607 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10608 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10609 *) libsuff= shlibsuff= libmagic=never-match;; 10610 esac 10611 ;; 10612 esac 10613 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10614 shlibpath_overrides_runpath=no 10615 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10616 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10617 hardcode_into_libs=yes 10618 ;; 10619 10620# No shared lib support for Linux oldld, aout, or coff. 10621linux*oldld* | linux*aout* | linux*coff*) 10622 dynamic_linker=no 10623 ;; 10624 10625# This must be glibc/ELF. 10626linux* | k*bsd*-gnu | kopensolaris*-gnu) 10627 version_type=linux # correct to gnu/linux during the next big refactor 10628 need_lib_prefix=no 10629 need_version=no 10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10631 soname_spec='${libname}${release}${shared_ext}$major' 10632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 shlibpath_overrides_runpath=no 10635 10636 # Some binutils ld are patched to set DT_RUNPATH 10637 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10638 $as_echo_n "(cached) " >&6 10639else 10640 lt_cv_shlibpath_overrides_runpath=no 10641 save_LDFLAGS=$LDFLAGS 10642 save_libdir=$libdir 10643 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10644 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10646/* end confdefs.h. */ 10647 10648int 10649main () 10650{ 10651 10652 ; 10653 return 0; 10654} 10655_ACEOF 10656if ac_fn_c_try_link "$LINENO"; then : 10657 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10658 lt_cv_shlibpath_overrides_runpath=yes 10659fi 10660fi 10661rm -f core conftest.err conftest.$ac_objext \ 10662 conftest$ac_exeext conftest.$ac_ext 10663 LDFLAGS=$save_LDFLAGS 10664 libdir=$save_libdir 10665 10666fi 10667 10668 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10669 10670 # This implies no fast_install, which is unacceptable. 10671 # Some rework will be needed to allow for fast_install 10672 # before this can be enabled. 10673 hardcode_into_libs=yes 10674 10675 # Append ld.so.conf contents to the search path 10676 if test -f /etc/ld.so.conf; then 10677 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' ' '` 10678 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10679 fi 10680 10681 # We used to test for /lib/ld.so.1 and disable shared libraries on 10682 # powerpc, because MkLinux only supported shared libraries with the 10683 # GNU dynamic linker. Since this was broken with cross compilers, 10684 # most powerpc-linux boxes support dynamic linking these days and 10685 # people can always --disable-shared, the test was removed, and we 10686 # assume the GNU/Linux dynamic linker is in use. 10687 dynamic_linker='GNU/Linux ld.so' 10688 ;; 10689 10690netbsd*) 10691 version_type=sunos 10692 need_lib_prefix=no 10693 need_version=no 10694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10697 dynamic_linker='NetBSD (a.out) ld.so' 10698 else 10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10700 soname_spec='${libname}${release}${shared_ext}$major' 10701 dynamic_linker='NetBSD ld.elf_so' 10702 fi 10703 shlibpath_var=LD_LIBRARY_PATH 10704 shlibpath_overrides_runpath=yes 10705 hardcode_into_libs=yes 10706 ;; 10707 10708newsos6) 10709 version_type=linux # correct to gnu/linux during the next big refactor 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10711 shlibpath_var=LD_LIBRARY_PATH 10712 shlibpath_overrides_runpath=yes 10713 ;; 10714 10715*nto* | *qnx*) 10716 version_type=qnx 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10720 soname_spec='${libname}${release}${shared_ext}$major' 10721 shlibpath_var=LD_LIBRARY_PATH 10722 shlibpath_overrides_runpath=no 10723 hardcode_into_libs=yes 10724 dynamic_linker='ldqnx.so' 10725 ;; 10726 10727openbsd*) 10728 version_type=sunos 10729 sys_lib_dlsearch_path_spec="/usr/lib" 10730 need_lib_prefix=no 10731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10732 case $host_os in 10733 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10734 *) need_version=no ;; 10735 esac 10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10738 shlibpath_var=LD_LIBRARY_PATH 10739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10740 case $host_os in 10741 openbsd2.[89] | openbsd2.[89].*) 10742 shlibpath_overrides_runpath=no 10743 ;; 10744 *) 10745 shlibpath_overrides_runpath=yes 10746 ;; 10747 esac 10748 else 10749 shlibpath_overrides_runpath=yes 10750 fi 10751 ;; 10752 10753os2*) 10754 libname_spec='$name' 10755 shrext_cmds=".dll" 10756 need_lib_prefix=no 10757 library_names_spec='$libname${shared_ext} $libname.a' 10758 dynamic_linker='OS/2 ld.exe' 10759 shlibpath_var=LIBPATH 10760 ;; 10761 10762osf3* | osf4* | osf5*) 10763 version_type=osf 10764 need_lib_prefix=no 10765 need_version=no 10766 soname_spec='${libname}${release}${shared_ext}$major' 10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10768 shlibpath_var=LD_LIBRARY_PATH 10769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10771 ;; 10772 10773rdos*) 10774 dynamic_linker=no 10775 ;; 10776 10777solaris*) 10778 version_type=linux # correct to gnu/linux during the next big refactor 10779 need_lib_prefix=no 10780 need_version=no 10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10782 soname_spec='${libname}${release}${shared_ext}$major' 10783 shlibpath_var=LD_LIBRARY_PATH 10784 shlibpath_overrides_runpath=yes 10785 hardcode_into_libs=yes 10786 # ldd complains unless libraries are executable 10787 postinstall_cmds='chmod +x $lib' 10788 ;; 10789 10790sunos4*) 10791 version_type=sunos 10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10793 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10794 shlibpath_var=LD_LIBRARY_PATH 10795 shlibpath_overrides_runpath=yes 10796 if test "$with_gnu_ld" = yes; then 10797 need_lib_prefix=no 10798 fi 10799 need_version=yes 10800 ;; 10801 10802sysv4 | sysv4.3*) 10803 version_type=linux # correct to gnu/linux during the next big refactor 10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10805 soname_spec='${libname}${release}${shared_ext}$major' 10806 shlibpath_var=LD_LIBRARY_PATH 10807 case $host_vendor in 10808 sni) 10809 shlibpath_overrides_runpath=no 10810 need_lib_prefix=no 10811 runpath_var=LD_RUN_PATH 10812 ;; 10813 siemens) 10814 need_lib_prefix=no 10815 ;; 10816 motorola) 10817 need_lib_prefix=no 10818 need_version=no 10819 shlibpath_overrides_runpath=no 10820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10821 ;; 10822 esac 10823 ;; 10824 10825sysv4*MP*) 10826 if test -d /usr/nec ;then 10827 version_type=linux # correct to gnu/linux during the next big refactor 10828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10829 soname_spec='$libname${shared_ext}.$major' 10830 shlibpath_var=LD_LIBRARY_PATH 10831 fi 10832 ;; 10833 10834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10835 version_type=freebsd-elf 10836 need_lib_prefix=no 10837 need_version=no 10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10839 soname_spec='${libname}${release}${shared_ext}$major' 10840 shlibpath_var=LD_LIBRARY_PATH 10841 shlibpath_overrides_runpath=yes 10842 hardcode_into_libs=yes 10843 if test "$with_gnu_ld" = yes; then 10844 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10845 else 10846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10847 case $host_os in 10848 sco3.2v5*) 10849 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10850 ;; 10851 esac 10852 fi 10853 sys_lib_dlsearch_path_spec='/usr/lib' 10854 ;; 10855 10856tpf*) 10857 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10858 version_type=linux # correct to gnu/linux during the next big refactor 10859 need_lib_prefix=no 10860 need_version=no 10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10862 shlibpath_var=LD_LIBRARY_PATH 10863 shlibpath_overrides_runpath=no 10864 hardcode_into_libs=yes 10865 ;; 10866 10867uts4*) 10868 version_type=linux # correct to gnu/linux during the next big refactor 10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10870 soname_spec='${libname}${release}${shared_ext}$major' 10871 shlibpath_var=LD_LIBRARY_PATH 10872 ;; 10873 10874*) 10875 dynamic_linker=no 10876 ;; 10877esac 10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10879$as_echo "$dynamic_linker" >&6; } 10880test "$dynamic_linker" = no && can_build_shared=no 10881 10882variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10883if test "$GCC" = yes; then 10884 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10885fi 10886 10887if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10888 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10889fi 10890if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10891 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10892fi 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10986$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10987hardcode_action= 10988if test -n "$hardcode_libdir_flag_spec" || 10989 test -n "$runpath_var" || 10990 test "X$hardcode_automatic" = "Xyes" ; then 10991 10992 # We can hardcode non-existent directories. 10993 if test "$hardcode_direct" != no && 10994 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10995 # have to relink, otherwise we might link with an installed library 10996 # when we should be linking with a yet-to-be-installed one 10997 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10998 test "$hardcode_minus_L" != no; then 10999 # Linking always hardcodes the temporary library directory. 11000 hardcode_action=relink 11001 else 11002 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11003 hardcode_action=immediate 11004 fi 11005else 11006 # We cannot hardcode anything, or else we can only hardcode existing 11007 # directories. 11008 hardcode_action=unsupported 11009fi 11010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11011$as_echo "$hardcode_action" >&6; } 11012 11013if test "$hardcode_action" = relink || 11014 test "$inherit_rpath" = yes; then 11015 # Fast installation is not supported 11016 enable_fast_install=no 11017elif test "$shlibpath_overrides_runpath" = yes || 11018 test "$enable_shared" = no; then 11019 # Fast installation is not necessary 11020 enable_fast_install=needless 11021fi 11022 11023 11024 11025 11026 11027 11028 if test "x$enable_dlopen" != xyes; then 11029 enable_dlopen=unknown 11030 enable_dlopen_self=unknown 11031 enable_dlopen_self_static=unknown 11032else 11033 lt_cv_dlopen=no 11034 lt_cv_dlopen_libs= 11035 11036 case $host_os in 11037 beos*) 11038 lt_cv_dlopen="load_add_on" 11039 lt_cv_dlopen_libs= 11040 lt_cv_dlopen_self=yes 11041 ;; 11042 11043 mingw* | pw32* | cegcc*) 11044 lt_cv_dlopen="LoadLibrary" 11045 lt_cv_dlopen_libs= 11046 ;; 11047 11048 cygwin*) 11049 lt_cv_dlopen="dlopen" 11050 lt_cv_dlopen_libs= 11051 ;; 11052 11053 darwin*) 11054 # if libdl is installed we need to link against it 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11056$as_echo_n "checking for dlopen in -ldl... " >&6; } 11057if ${ac_cv_lib_dl_dlopen+:} false; then : 11058 $as_echo_n "(cached) " >&6 11059else 11060 ac_check_lib_save_LIBS=$LIBS 11061LIBS="-ldl $LIBS" 11062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11063/* end confdefs.h. */ 11064 11065/* Override any GCC internal prototype to avoid an error. 11066 Use char because int might match the return type of a GCC 11067 builtin and then its argument prototype would still apply. */ 11068#ifdef __cplusplus 11069extern "C" 11070#endif 11071char dlopen (); 11072int 11073main () 11074{ 11075return dlopen (); 11076 ; 11077 return 0; 11078} 11079_ACEOF 11080if ac_fn_c_try_link "$LINENO"; then : 11081 ac_cv_lib_dl_dlopen=yes 11082else 11083 ac_cv_lib_dl_dlopen=no 11084fi 11085rm -f core conftest.err conftest.$ac_objext \ 11086 conftest$ac_exeext conftest.$ac_ext 11087LIBS=$ac_check_lib_save_LIBS 11088fi 11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11090$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11091if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11092 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11093else 11094 11095 lt_cv_dlopen="dyld" 11096 lt_cv_dlopen_libs= 11097 lt_cv_dlopen_self=yes 11098 11099fi 11100 11101 ;; 11102 11103 *) 11104 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11105if test "x$ac_cv_func_shl_load" = xyes; then : 11106 lt_cv_dlopen="shl_load" 11107else 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11109$as_echo_n "checking for shl_load in -ldld... " >&6; } 11110if ${ac_cv_lib_dld_shl_load+:} false; then : 11111 $as_echo_n "(cached) " >&6 11112else 11113 ac_check_lib_save_LIBS=$LIBS 11114LIBS="-ldld $LIBS" 11115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11116/* end confdefs.h. */ 11117 11118/* Override any GCC internal prototype to avoid an error. 11119 Use char because int might match the return type of a GCC 11120 builtin and then its argument prototype would still apply. */ 11121#ifdef __cplusplus 11122extern "C" 11123#endif 11124char shl_load (); 11125int 11126main () 11127{ 11128return shl_load (); 11129 ; 11130 return 0; 11131} 11132_ACEOF 11133if ac_fn_c_try_link "$LINENO"; then : 11134 ac_cv_lib_dld_shl_load=yes 11135else 11136 ac_cv_lib_dld_shl_load=no 11137fi 11138rm -f core conftest.err conftest.$ac_objext \ 11139 conftest$ac_exeext conftest.$ac_ext 11140LIBS=$ac_check_lib_save_LIBS 11141fi 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11143$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11144if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11145 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11146else 11147 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11148if test "x$ac_cv_func_dlopen" = xyes; then : 11149 lt_cv_dlopen="dlopen" 11150else 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11152$as_echo_n "checking for dlopen in -ldl... " >&6; } 11153if ${ac_cv_lib_dl_dlopen+:} false; then : 11154 $as_echo_n "(cached) " >&6 11155else 11156 ac_check_lib_save_LIBS=$LIBS 11157LIBS="-ldl $LIBS" 11158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159/* end confdefs.h. */ 11160 11161/* Override any GCC internal prototype to avoid an error. 11162 Use char because int might match the return type of a GCC 11163 builtin and then its argument prototype would still apply. */ 11164#ifdef __cplusplus 11165extern "C" 11166#endif 11167char dlopen (); 11168int 11169main () 11170{ 11171return dlopen (); 11172 ; 11173 return 0; 11174} 11175_ACEOF 11176if ac_fn_c_try_link "$LINENO"; then : 11177 ac_cv_lib_dl_dlopen=yes 11178else 11179 ac_cv_lib_dl_dlopen=no 11180fi 11181rm -f core conftest.err conftest.$ac_objext \ 11182 conftest$ac_exeext conftest.$ac_ext 11183LIBS=$ac_check_lib_save_LIBS 11184fi 11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11186$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11187if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11189else 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11191$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11192if ${ac_cv_lib_svld_dlopen+:} false; then : 11193 $as_echo_n "(cached) " >&6 11194else 11195 ac_check_lib_save_LIBS=$LIBS 11196LIBS="-lsvld $LIBS" 11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11198/* end confdefs.h. */ 11199 11200/* Override any GCC internal prototype to avoid an error. 11201 Use char because int might match the return type of a GCC 11202 builtin and then its argument prototype would still apply. */ 11203#ifdef __cplusplus 11204extern "C" 11205#endif 11206char dlopen (); 11207int 11208main () 11209{ 11210return dlopen (); 11211 ; 11212 return 0; 11213} 11214_ACEOF 11215if ac_fn_c_try_link "$LINENO"; then : 11216 ac_cv_lib_svld_dlopen=yes 11217else 11218 ac_cv_lib_svld_dlopen=no 11219fi 11220rm -f core conftest.err conftest.$ac_objext \ 11221 conftest$ac_exeext conftest.$ac_ext 11222LIBS=$ac_check_lib_save_LIBS 11223fi 11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11225$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11226if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11227 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11228else 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11230$as_echo_n "checking for dld_link in -ldld... " >&6; } 11231if ${ac_cv_lib_dld_dld_link+:} false; then : 11232 $as_echo_n "(cached) " >&6 11233else 11234 ac_check_lib_save_LIBS=$LIBS 11235LIBS="-ldld $LIBS" 11236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11237/* end confdefs.h. */ 11238 11239/* Override any GCC internal prototype to avoid an error. 11240 Use char because int might match the return type of a GCC 11241 builtin and then its argument prototype would still apply. */ 11242#ifdef __cplusplus 11243extern "C" 11244#endif 11245char dld_link (); 11246int 11247main () 11248{ 11249return dld_link (); 11250 ; 11251 return 0; 11252} 11253_ACEOF 11254if ac_fn_c_try_link "$LINENO"; then : 11255 ac_cv_lib_dld_dld_link=yes 11256else 11257 ac_cv_lib_dld_dld_link=no 11258fi 11259rm -f core conftest.err conftest.$ac_objext \ 11260 conftest$ac_exeext conftest.$ac_ext 11261LIBS=$ac_check_lib_save_LIBS 11262fi 11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11264$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11265if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11266 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11267fi 11268 11269 11270fi 11271 11272 11273fi 11274 11275 11276fi 11277 11278 11279fi 11280 11281 11282fi 11283 11284 ;; 11285 esac 11286 11287 if test "x$lt_cv_dlopen" != xno; then 11288 enable_dlopen=yes 11289 else 11290 enable_dlopen=no 11291 fi 11292 11293 case $lt_cv_dlopen in 11294 dlopen) 11295 save_CPPFLAGS="$CPPFLAGS" 11296 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11297 11298 save_LDFLAGS="$LDFLAGS" 11299 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11300 11301 save_LIBS="$LIBS" 11302 LIBS="$lt_cv_dlopen_libs $LIBS" 11303 11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11305$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11306if ${lt_cv_dlopen_self+:} false; then : 11307 $as_echo_n "(cached) " >&6 11308else 11309 if test "$cross_compiling" = yes; then : 11310 lt_cv_dlopen_self=cross 11311else 11312 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11313 lt_status=$lt_dlunknown 11314 cat > conftest.$ac_ext <<_LT_EOF 11315#line $LINENO "configure" 11316#include "confdefs.h" 11317 11318#if HAVE_DLFCN_H 11319#include <dlfcn.h> 11320#endif 11321 11322#include <stdio.h> 11323 11324#ifdef RTLD_GLOBAL 11325# define LT_DLGLOBAL RTLD_GLOBAL 11326#else 11327# ifdef DL_GLOBAL 11328# define LT_DLGLOBAL DL_GLOBAL 11329# else 11330# define LT_DLGLOBAL 0 11331# endif 11332#endif 11333 11334/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11335 find out it does not work in some platform. */ 11336#ifndef LT_DLLAZY_OR_NOW 11337# ifdef RTLD_LAZY 11338# define LT_DLLAZY_OR_NOW RTLD_LAZY 11339# else 11340# ifdef DL_LAZY 11341# define LT_DLLAZY_OR_NOW DL_LAZY 11342# else 11343# ifdef RTLD_NOW 11344# define LT_DLLAZY_OR_NOW RTLD_NOW 11345# else 11346# ifdef DL_NOW 11347# define LT_DLLAZY_OR_NOW DL_NOW 11348# else 11349# define LT_DLLAZY_OR_NOW 0 11350# endif 11351# endif 11352# endif 11353# endif 11354#endif 11355 11356/* When -fvisbility=hidden is used, assume the code has been annotated 11357 correspondingly for the symbols needed. */ 11358#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11359int fnord () __attribute__((visibility("default"))); 11360#endif 11361 11362int fnord () { return 42; } 11363int main () 11364{ 11365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11366 int status = $lt_dlunknown; 11367 11368 if (self) 11369 { 11370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11371 else 11372 { 11373 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11374 else puts (dlerror ()); 11375 } 11376 /* dlclose (self); */ 11377 } 11378 else 11379 puts (dlerror ()); 11380 11381 return status; 11382} 11383_LT_EOF 11384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11385 (eval $ac_link) 2>&5 11386 ac_status=$? 11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11388 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11389 (./conftest; exit; ) >&5 2>/dev/null 11390 lt_status=$? 11391 case x$lt_status in 11392 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11393 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11394 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11395 esac 11396 else : 11397 # compilation failed 11398 lt_cv_dlopen_self=no 11399 fi 11400fi 11401rm -fr conftest* 11402 11403 11404fi 11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11406$as_echo "$lt_cv_dlopen_self" >&6; } 11407 11408 if test "x$lt_cv_dlopen_self" = xyes; then 11409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11411$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11412if ${lt_cv_dlopen_self_static+:} false; then : 11413 $as_echo_n "(cached) " >&6 11414else 11415 if test "$cross_compiling" = yes; then : 11416 lt_cv_dlopen_self_static=cross 11417else 11418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11419 lt_status=$lt_dlunknown 11420 cat > conftest.$ac_ext <<_LT_EOF 11421#line $LINENO "configure" 11422#include "confdefs.h" 11423 11424#if HAVE_DLFCN_H 11425#include <dlfcn.h> 11426#endif 11427 11428#include <stdio.h> 11429 11430#ifdef RTLD_GLOBAL 11431# define LT_DLGLOBAL RTLD_GLOBAL 11432#else 11433# ifdef DL_GLOBAL 11434# define LT_DLGLOBAL DL_GLOBAL 11435# else 11436# define LT_DLGLOBAL 0 11437# endif 11438#endif 11439 11440/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11441 find out it does not work in some platform. */ 11442#ifndef LT_DLLAZY_OR_NOW 11443# ifdef RTLD_LAZY 11444# define LT_DLLAZY_OR_NOW RTLD_LAZY 11445# else 11446# ifdef DL_LAZY 11447# define LT_DLLAZY_OR_NOW DL_LAZY 11448# else 11449# ifdef RTLD_NOW 11450# define LT_DLLAZY_OR_NOW RTLD_NOW 11451# else 11452# ifdef DL_NOW 11453# define LT_DLLAZY_OR_NOW DL_NOW 11454# else 11455# define LT_DLLAZY_OR_NOW 0 11456# endif 11457# endif 11458# endif 11459# endif 11460#endif 11461 11462/* When -fvisbility=hidden is used, assume the code has been annotated 11463 correspondingly for the symbols needed. */ 11464#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11465int fnord () __attribute__((visibility("default"))); 11466#endif 11467 11468int fnord () { return 42; } 11469int main () 11470{ 11471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11472 int status = $lt_dlunknown; 11473 11474 if (self) 11475 { 11476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11477 else 11478 { 11479 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11480 else puts (dlerror ()); 11481 } 11482 /* dlclose (self); */ 11483 } 11484 else 11485 puts (dlerror ()); 11486 11487 return status; 11488} 11489_LT_EOF 11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11491 (eval $ac_link) 2>&5 11492 ac_status=$? 11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11495 (./conftest; exit; ) >&5 2>/dev/null 11496 lt_status=$? 11497 case x$lt_status in 11498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11500 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11501 esac 11502 else : 11503 # compilation failed 11504 lt_cv_dlopen_self_static=no 11505 fi 11506fi 11507rm -fr conftest* 11508 11509 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11512$as_echo "$lt_cv_dlopen_self_static" >&6; } 11513 fi 11514 11515 CPPFLAGS="$save_CPPFLAGS" 11516 LDFLAGS="$save_LDFLAGS" 11517 LIBS="$save_LIBS" 11518 ;; 11519 esac 11520 11521 case $lt_cv_dlopen_self in 11522 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11523 *) enable_dlopen_self=unknown ;; 11524 esac 11525 11526 case $lt_cv_dlopen_self_static in 11527 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11528 *) enable_dlopen_self_static=unknown ;; 11529 esac 11530fi 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548striplib= 11549old_striplib= 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11551$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11552if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11553 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11554 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11556$as_echo "yes" >&6; } 11557else 11558# FIXME - insert some real tests, host_os isn't really good enough 11559 case $host_os in 11560 darwin*) 11561 if test -n "$STRIP" ; then 11562 striplib="$STRIP -x" 11563 old_striplib="$STRIP -S" 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11565$as_echo "yes" >&6; } 11566 else 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11568$as_echo "no" >&6; } 11569 fi 11570 ;; 11571 *) 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11573$as_echo "no" >&6; } 11574 ;; 11575 esac 11576fi 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 # Report which library types will actually be built 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11591$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11593$as_echo "$can_build_shared" >&6; } 11594 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11596$as_echo_n "checking whether to build shared libraries... " >&6; } 11597 test "$can_build_shared" = "no" && enable_shared=no 11598 11599 # On AIX, shared libraries and static libraries use the same namespace, and 11600 # are all built from PIC. 11601 case $host_os in 11602 aix3*) 11603 test "$enable_shared" = yes && enable_static=no 11604 if test -n "$RANLIB"; then 11605 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11606 postinstall_cmds='$RANLIB $lib' 11607 fi 11608 ;; 11609 11610 aix[4-9]*) 11611 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11612 test "$enable_shared" = yes && enable_static=no 11613 fi 11614 ;; 11615 esac 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11617$as_echo "$enable_shared" >&6; } 11618 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11620$as_echo_n "checking whether to build static libraries... " >&6; } 11621 # Make sure either enable_shared or enable_static is yes. 11622 test "$enable_shared" = yes || enable_static=yes 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11624$as_echo "$enable_static" >&6; } 11625 11626 11627 11628 11629fi 11630ac_ext=c 11631ac_cpp='$CPP $CPPFLAGS' 11632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11634ac_compiler_gnu=$ac_cv_c_compiler_gnu 11635 11636CC="$lt_save_CC" 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 ac_config_commands="$ac_config_commands libtool" 11653 11654 11655 11656 11657# Only expand once: 11658 11659 11660 11661# Require X.Org macros 1.8 or later 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11674$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11675if ${ac_cv_prog_cc_c99+:} false; then : 11676 $as_echo_n "(cached) " >&6 11677else 11678 ac_cv_prog_cc_c99=no 11679ac_save_CC=$CC 11680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11681/* end confdefs.h. */ 11682#include <stdarg.h> 11683#include <stdbool.h> 11684#include <stdlib.h> 11685#include <wchar.h> 11686#include <stdio.h> 11687 11688// Check varargs macros. These examples are taken from C99 6.10.3.5. 11689#define debug(...) fprintf (stderr, __VA_ARGS__) 11690#define showlist(...) puts (#__VA_ARGS__) 11691#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11692static void 11693test_varargs_macros (void) 11694{ 11695 int x = 1234; 11696 int y = 5678; 11697 debug ("Flag"); 11698 debug ("X = %d\n", x); 11699 showlist (The first, second, and third items.); 11700 report (x>y, "x is %d but y is %d", x, y); 11701} 11702 11703// Check long long types. 11704#define BIG64 18446744073709551615ull 11705#define BIG32 4294967295ul 11706#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11707#if !BIG_OK 11708 your preprocessor is broken; 11709#endif 11710#if BIG_OK 11711#else 11712 your preprocessor is broken; 11713#endif 11714static long long int bignum = -9223372036854775807LL; 11715static unsigned long long int ubignum = BIG64; 11716 11717struct incomplete_array 11718{ 11719 int datasize; 11720 double data[]; 11721}; 11722 11723struct named_init { 11724 int number; 11725 const wchar_t *name; 11726 double average; 11727}; 11728 11729typedef const char *ccp; 11730 11731static inline int 11732test_restrict (ccp restrict text) 11733{ 11734 // See if C++-style comments work. 11735 // Iterate through items via the restricted pointer. 11736 // Also check for declarations in for loops. 11737 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11738 continue; 11739 return 0; 11740} 11741 11742// Check varargs and va_copy. 11743static void 11744test_varargs (const char *format, ...) 11745{ 11746 va_list args; 11747 va_start (args, format); 11748 va_list args_copy; 11749 va_copy (args_copy, args); 11750 11751 const char *str; 11752 int number; 11753 float fnumber; 11754 11755 while (*format) 11756 { 11757 switch (*format++) 11758 { 11759 case 's': // string 11760 str = va_arg (args_copy, const char *); 11761 break; 11762 case 'd': // int 11763 number = va_arg (args_copy, int); 11764 break; 11765 case 'f': // float 11766 fnumber = va_arg (args_copy, double); 11767 break; 11768 default: 11769 break; 11770 } 11771 } 11772 va_end (args_copy); 11773 va_end (args); 11774} 11775 11776int 11777main () 11778{ 11779 11780 // Check bool. 11781 _Bool success = false; 11782 11783 // Check restrict. 11784 if (test_restrict ("String literal") == 0) 11785 success = true; 11786 char *restrict newvar = "Another string"; 11787 11788 // Check varargs. 11789 test_varargs ("s, d' f .", "string", 65, 34.234); 11790 test_varargs_macros (); 11791 11792 // Check flexible array members. 11793 struct incomplete_array *ia = 11794 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11795 ia->datasize = 10; 11796 for (int i = 0; i < ia->datasize; ++i) 11797 ia->data[i] = i * 1.234; 11798 11799 // Check named initializers. 11800 struct named_init ni = { 11801 .number = 34, 11802 .name = L"Test wide string", 11803 .average = 543.34343, 11804 }; 11805 11806 ni.number = 58; 11807 11808 int dynamic_array[ni.number]; 11809 dynamic_array[ni.number - 1] = 543; 11810 11811 // work around unused variable warnings 11812 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11813 || dynamic_array[ni.number - 1] != 543); 11814 11815 ; 11816 return 0; 11817} 11818_ACEOF 11819for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11820do 11821 CC="$ac_save_CC $ac_arg" 11822 if ac_fn_c_try_compile "$LINENO"; then : 11823 ac_cv_prog_cc_c99=$ac_arg 11824fi 11825rm -f core conftest.err conftest.$ac_objext 11826 test "x$ac_cv_prog_cc_c99" != "xno" && break 11827done 11828rm -f conftest.$ac_ext 11829CC=$ac_save_CC 11830 11831fi 11832# AC_CACHE_VAL 11833case "x$ac_cv_prog_cc_c99" in 11834 x) 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11836$as_echo "none needed" >&6; } ;; 11837 xno) 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11839$as_echo "unsupported" >&6; } ;; 11840 *) 11841 CC="$CC $ac_cv_prog_cc_c99" 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11843$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11844esac 11845if test "x$ac_cv_prog_cc_c99" != xno; then : 11846 11847fi 11848 11849 11850 11851 11852 11853 11854ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11855if test "x$ac_cv_have_decl___clang__" = xyes; then : 11856 CLANGCC="yes" 11857else 11858 CLANGCC="no" 11859fi 11860 11861ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11862if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11863 INTELCC="yes" 11864else 11865 INTELCC="no" 11866fi 11867 11868ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11869if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11870 SUNCC="yes" 11871else 11872 SUNCC="no" 11873fi 11874 11875 11876 11877 11878if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11879 if test -n "$ac_tool_prefix"; then 11880 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11881set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11883$as_echo_n "checking for $ac_word... " >&6; } 11884if ${ac_cv_path_PKG_CONFIG+:} false; then : 11885 $as_echo_n "(cached) " >&6 11886else 11887 case $PKG_CONFIG in 11888 [\\/]* | ?:[\\/]*) 11889 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11890 ;; 11891 *) 11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11893for as_dir in $PATH 11894do 11895 IFS=$as_save_IFS 11896 test -z "$as_dir" && as_dir=. 11897 for ac_exec_ext in '' $ac_executable_extensions; do 11898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11899 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11901 break 2 11902 fi 11903done 11904 done 11905IFS=$as_save_IFS 11906 11907 ;; 11908esac 11909fi 11910PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11911if test -n "$PKG_CONFIG"; then 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11913$as_echo "$PKG_CONFIG" >&6; } 11914else 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11916$as_echo "no" >&6; } 11917fi 11918 11919 11920fi 11921if test -z "$ac_cv_path_PKG_CONFIG"; then 11922 ac_pt_PKG_CONFIG=$PKG_CONFIG 11923 # Extract the first word of "pkg-config", so it can be a program name with args. 11924set dummy pkg-config; ac_word=$2 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11926$as_echo_n "checking for $ac_word... " >&6; } 11927if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11928 $as_echo_n "(cached) " >&6 11929else 11930 case $ac_pt_PKG_CONFIG in 11931 [\\/]* | ?:[\\/]*) 11932 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11933 ;; 11934 *) 11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11936for as_dir in $PATH 11937do 11938 IFS=$as_save_IFS 11939 test -z "$as_dir" && as_dir=. 11940 for ac_exec_ext in '' $ac_executable_extensions; do 11941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11942 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11944 break 2 11945 fi 11946done 11947 done 11948IFS=$as_save_IFS 11949 11950 ;; 11951esac 11952fi 11953ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11954if test -n "$ac_pt_PKG_CONFIG"; then 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11956$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11957else 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11959$as_echo "no" >&6; } 11960fi 11961 11962 if test "x$ac_pt_PKG_CONFIG" = x; then 11963 PKG_CONFIG="" 11964 else 11965 case $cross_compiling:$ac_tool_warned in 11966yes:) 11967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11969ac_tool_warned=yes ;; 11970esac 11971 PKG_CONFIG=$ac_pt_PKG_CONFIG 11972 fi 11973else 11974 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11975fi 11976 11977fi 11978if test -n "$PKG_CONFIG"; then 11979 _pkg_min_version=0.9.0 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11981$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11982 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11984$as_echo "yes" >&6; } 11985 else 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11987$as_echo "no" >&6; } 11988 PKG_CONFIG="" 11989 fi 11990 11991fi 11992 11993 11994 11995 11996 11997# Check whether --enable-selective-werror was given. 11998if test "${enable_selective_werror+set}" = set; then : 11999 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12000else 12001 SELECTIVE_WERROR=yes 12002fi 12003 12004 12005 12006 12007 12008# -v is too short to test reliably with XORG_TESTSET_CFLAG 12009if test "x$SUNCC" = "xyes"; then 12010 BASE_CFLAGS="-v" 12011else 12012 BASE_CFLAGS="" 12013fi 12014 12015# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029xorg_testset_save_CFLAGS="$CFLAGS" 12030 12031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12036 $as_echo_n "(cached) " >&6 12037else 12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12039/* end confdefs.h. */ 12040int i; 12041_ACEOF 12042if ac_fn_c_try_compile "$LINENO"; then : 12043 xorg_cv_cc_flag_unknown_warning_option=yes 12044else 12045 xorg_cv_cc_flag_unknown_warning_option=no 12046fi 12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12048fi 12049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12052 CFLAGS="$xorg_testset_save_CFLAGS" 12053fi 12054 12055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12058 fi 12059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12063 $as_echo_n "(cached) " >&6 12064else 12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12066/* end confdefs.h. */ 12067int i; 12068_ACEOF 12069if ac_fn_c_try_compile "$LINENO"; then : 12070 xorg_cv_cc_flag_unused_command_line_argument=yes 12071else 12072 xorg_cv_cc_flag_unused_command_line_argument=no 12073fi 12074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12075fi 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12079 CFLAGS="$xorg_testset_save_CFLAGS" 12080fi 12081 12082found="no" 12083 12084 if test $found = "no" ; then 12085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12087 fi 12088 12089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12091 fi 12092 12093 CFLAGS="$CFLAGS -Wall" 12094 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12096$as_echo_n "checking if $CC supports -Wall... " >&6; } 12097 cacheid=xorg_cv_cc_flag__Wall 12098 if eval \${$cacheid+:} false; then : 12099 $as_echo_n "(cached) " >&6 12100else 12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12102/* end confdefs.h. */ 12103int i; 12104int 12105main () 12106{ 12107 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112if ac_fn_c_try_link "$LINENO"; then : 12113 eval $cacheid=yes 12114else 12115 eval $cacheid=no 12116fi 12117rm -f core conftest.err conftest.$ac_objext \ 12118 conftest$ac_exeext conftest.$ac_ext 12119fi 12120 12121 12122 CFLAGS="$xorg_testset_save_CFLAGS" 12123 12124 eval supported=\$$cacheid 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12126$as_echo "$supported" >&6; } 12127 if test "$supported" = "yes" ; then 12128 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12129 found="yes" 12130 fi 12131 fi 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147xorg_testset_save_CFLAGS="$CFLAGS" 12148 12149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12154 $as_echo_n "(cached) " >&6 12155else 12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12157/* end confdefs.h. */ 12158int i; 12159_ACEOF 12160if ac_fn_c_try_compile "$LINENO"; then : 12161 xorg_cv_cc_flag_unknown_warning_option=yes 12162else 12163 xorg_cv_cc_flag_unknown_warning_option=no 12164fi 12165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12166fi 12167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12170 CFLAGS="$xorg_testset_save_CFLAGS" 12171fi 12172 12173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12176 fi 12177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12181 $as_echo_n "(cached) " >&6 12182else 12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12184/* end confdefs.h. */ 12185int i; 12186_ACEOF 12187if ac_fn_c_try_compile "$LINENO"; then : 12188 xorg_cv_cc_flag_unused_command_line_argument=yes 12189else 12190 xorg_cv_cc_flag_unused_command_line_argument=no 12191fi 12192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12193fi 12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12197 CFLAGS="$xorg_testset_save_CFLAGS" 12198fi 12199 12200found="no" 12201 12202 if test $found = "no" ; then 12203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12205 fi 12206 12207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12209 fi 12210 12211 CFLAGS="$CFLAGS -Wpointer-arith" 12212 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12214$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12215 cacheid=xorg_cv_cc_flag__Wpointer_arith 12216 if eval \${$cacheid+:} false; then : 12217 $as_echo_n "(cached) " >&6 12218else 12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12220/* end confdefs.h. */ 12221int i; 12222int 12223main () 12224{ 12225 12226 ; 12227 return 0; 12228} 12229_ACEOF 12230if ac_fn_c_try_link "$LINENO"; then : 12231 eval $cacheid=yes 12232else 12233 eval $cacheid=no 12234fi 12235rm -f core conftest.err conftest.$ac_objext \ 12236 conftest$ac_exeext conftest.$ac_ext 12237fi 12238 12239 12240 CFLAGS="$xorg_testset_save_CFLAGS" 12241 12242 eval supported=\$$cacheid 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12244$as_echo "$supported" >&6; } 12245 if test "$supported" = "yes" ; then 12246 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12247 found="yes" 12248 fi 12249 fi 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265xorg_testset_save_CFLAGS="$CFLAGS" 12266 12267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12272 $as_echo_n "(cached) " >&6 12273else 12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12275/* end confdefs.h. */ 12276int i; 12277_ACEOF 12278if ac_fn_c_try_compile "$LINENO"; then : 12279 xorg_cv_cc_flag_unknown_warning_option=yes 12280else 12281 xorg_cv_cc_flag_unknown_warning_option=no 12282fi 12283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12284fi 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12288 CFLAGS="$xorg_testset_save_CFLAGS" 12289fi 12290 12291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12294 fi 12295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12299 $as_echo_n "(cached) " >&6 12300else 12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12302/* end confdefs.h. */ 12303int i; 12304_ACEOF 12305if ac_fn_c_try_compile "$LINENO"; then : 12306 xorg_cv_cc_flag_unused_command_line_argument=yes 12307else 12308 xorg_cv_cc_flag_unused_command_line_argument=no 12309fi 12310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12311fi 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12315 CFLAGS="$xorg_testset_save_CFLAGS" 12316fi 12317 12318found="no" 12319 12320 if test $found = "no" ; then 12321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12323 fi 12324 12325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12327 fi 12328 12329 CFLAGS="$CFLAGS -Wmissing-declarations" 12330 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12332$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12333 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12334 if eval \${$cacheid+:} false; then : 12335 $as_echo_n "(cached) " >&6 12336else 12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12338/* end confdefs.h. */ 12339int i; 12340int 12341main () 12342{ 12343 12344 ; 12345 return 0; 12346} 12347_ACEOF 12348if ac_fn_c_try_link "$LINENO"; then : 12349 eval $cacheid=yes 12350else 12351 eval $cacheid=no 12352fi 12353rm -f core conftest.err conftest.$ac_objext \ 12354 conftest$ac_exeext conftest.$ac_ext 12355fi 12356 12357 12358 CFLAGS="$xorg_testset_save_CFLAGS" 12359 12360 eval supported=\$$cacheid 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12362$as_echo "$supported" >&6; } 12363 if test "$supported" = "yes" ; then 12364 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12365 found="yes" 12366 fi 12367 fi 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383xorg_testset_save_CFLAGS="$CFLAGS" 12384 12385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12393/* end confdefs.h. */ 12394int i; 12395_ACEOF 12396if ac_fn_c_try_compile "$LINENO"; then : 12397 xorg_cv_cc_flag_unknown_warning_option=yes 12398else 12399 xorg_cv_cc_flag_unknown_warning_option=no 12400fi 12401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12402fi 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12406 CFLAGS="$xorg_testset_save_CFLAGS" 12407fi 12408 12409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12412 fi 12413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12417 $as_echo_n "(cached) " >&6 12418else 12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12420/* end confdefs.h. */ 12421int i; 12422_ACEOF 12423if ac_fn_c_try_compile "$LINENO"; then : 12424 xorg_cv_cc_flag_unused_command_line_argument=yes 12425else 12426 xorg_cv_cc_flag_unused_command_line_argument=no 12427fi 12428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12429fi 12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12433 CFLAGS="$xorg_testset_save_CFLAGS" 12434fi 12435 12436found="no" 12437 12438 if test $found = "no" ; then 12439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12441 fi 12442 12443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12445 fi 12446 12447 CFLAGS="$CFLAGS -Wformat=2" 12448 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12450$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12451 cacheid=xorg_cv_cc_flag__Wformat_2 12452 if eval \${$cacheid+:} false; then : 12453 $as_echo_n "(cached) " >&6 12454else 12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12456/* end confdefs.h. */ 12457int i; 12458int 12459main () 12460{ 12461 12462 ; 12463 return 0; 12464} 12465_ACEOF 12466if ac_fn_c_try_link "$LINENO"; then : 12467 eval $cacheid=yes 12468else 12469 eval $cacheid=no 12470fi 12471rm -f core conftest.err conftest.$ac_objext \ 12472 conftest$ac_exeext conftest.$ac_ext 12473fi 12474 12475 12476 CFLAGS="$xorg_testset_save_CFLAGS" 12477 12478 eval supported=\$$cacheid 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12480$as_echo "$supported" >&6; } 12481 if test "$supported" = "yes" ; then 12482 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12483 found="yes" 12484 fi 12485 fi 12486 12487 if test $found = "no" ; then 12488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12490 fi 12491 12492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12494 fi 12495 12496 CFLAGS="$CFLAGS -Wformat" 12497 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12499$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12500 cacheid=xorg_cv_cc_flag__Wformat 12501 if eval \${$cacheid+:} false; then : 12502 $as_echo_n "(cached) " >&6 12503else 12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12505/* end confdefs.h. */ 12506int i; 12507int 12508main () 12509{ 12510 12511 ; 12512 return 0; 12513} 12514_ACEOF 12515if ac_fn_c_try_link "$LINENO"; then : 12516 eval $cacheid=yes 12517else 12518 eval $cacheid=no 12519fi 12520rm -f core conftest.err conftest.$ac_objext \ 12521 conftest$ac_exeext conftest.$ac_ext 12522fi 12523 12524 12525 CFLAGS="$xorg_testset_save_CFLAGS" 12526 12527 eval supported=\$$cacheid 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12529$as_echo "$supported" >&6; } 12530 if test "$supported" = "yes" ; then 12531 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12532 found="yes" 12533 fi 12534 fi 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552xorg_testset_save_CFLAGS="$CFLAGS" 12553 12554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12559 $as_echo_n "(cached) " >&6 12560else 12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12562/* end confdefs.h. */ 12563int i; 12564_ACEOF 12565if ac_fn_c_try_compile "$LINENO"; then : 12566 xorg_cv_cc_flag_unknown_warning_option=yes 12567else 12568 xorg_cv_cc_flag_unknown_warning_option=no 12569fi 12570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12571fi 12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12575 CFLAGS="$xorg_testset_save_CFLAGS" 12576fi 12577 12578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12581 fi 12582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12586 $as_echo_n "(cached) " >&6 12587else 12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12589/* end confdefs.h. */ 12590int i; 12591_ACEOF 12592if ac_fn_c_try_compile "$LINENO"; then : 12593 xorg_cv_cc_flag_unused_command_line_argument=yes 12594else 12595 xorg_cv_cc_flag_unused_command_line_argument=no 12596fi 12597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12598fi 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12602 CFLAGS="$xorg_testset_save_CFLAGS" 12603fi 12604 12605found="no" 12606 12607 if test $found = "no" ; then 12608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12610 fi 12611 12612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12614 fi 12615 12616 CFLAGS="$CFLAGS -Wstrict-prototypes" 12617 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12619$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12620 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12621 if eval \${$cacheid+:} false; then : 12622 $as_echo_n "(cached) " >&6 12623else 12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12625/* end confdefs.h. */ 12626int i; 12627int 12628main () 12629{ 12630 12631 ; 12632 return 0; 12633} 12634_ACEOF 12635if ac_fn_c_try_link "$LINENO"; then : 12636 eval $cacheid=yes 12637else 12638 eval $cacheid=no 12639fi 12640rm -f core conftest.err conftest.$ac_objext \ 12641 conftest$ac_exeext conftest.$ac_ext 12642fi 12643 12644 12645 CFLAGS="$xorg_testset_save_CFLAGS" 12646 12647 eval supported=\$$cacheid 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12649$as_echo "$supported" >&6; } 12650 if test "$supported" = "yes" ; then 12651 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12652 found="yes" 12653 fi 12654 fi 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670xorg_testset_save_CFLAGS="$CFLAGS" 12671 12672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12677 $as_echo_n "(cached) " >&6 12678else 12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12680/* end confdefs.h. */ 12681int i; 12682_ACEOF 12683if ac_fn_c_try_compile "$LINENO"; then : 12684 xorg_cv_cc_flag_unknown_warning_option=yes 12685else 12686 xorg_cv_cc_flag_unknown_warning_option=no 12687fi 12688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12689fi 12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12693 CFLAGS="$xorg_testset_save_CFLAGS" 12694fi 12695 12696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12699 fi 12700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12704 $as_echo_n "(cached) " >&6 12705else 12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12707/* end confdefs.h. */ 12708int i; 12709_ACEOF 12710if ac_fn_c_try_compile "$LINENO"; then : 12711 xorg_cv_cc_flag_unused_command_line_argument=yes 12712else 12713 xorg_cv_cc_flag_unused_command_line_argument=no 12714fi 12715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12716fi 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12720 CFLAGS="$xorg_testset_save_CFLAGS" 12721fi 12722 12723found="no" 12724 12725 if test $found = "no" ; then 12726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12728 fi 12729 12730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12732 fi 12733 12734 CFLAGS="$CFLAGS -Wmissing-prototypes" 12735 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12737$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12738 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12739 if eval \${$cacheid+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741else 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744int i; 12745int 12746main () 12747{ 12748 12749 ; 12750 return 0; 12751} 12752_ACEOF 12753if ac_fn_c_try_link "$LINENO"; then : 12754 eval $cacheid=yes 12755else 12756 eval $cacheid=no 12757fi 12758rm -f core conftest.err conftest.$ac_objext \ 12759 conftest$ac_exeext conftest.$ac_ext 12760fi 12761 12762 12763 CFLAGS="$xorg_testset_save_CFLAGS" 12764 12765 eval supported=\$$cacheid 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12767$as_echo "$supported" >&6; } 12768 if test "$supported" = "yes" ; then 12769 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12770 found="yes" 12771 fi 12772 fi 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788xorg_testset_save_CFLAGS="$CFLAGS" 12789 12790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12795 $as_echo_n "(cached) " >&6 12796else 12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12798/* end confdefs.h. */ 12799int i; 12800_ACEOF 12801if ac_fn_c_try_compile "$LINENO"; then : 12802 xorg_cv_cc_flag_unknown_warning_option=yes 12803else 12804 xorg_cv_cc_flag_unknown_warning_option=no 12805fi 12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12807fi 12808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12811 CFLAGS="$xorg_testset_save_CFLAGS" 12812fi 12813 12814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12817 fi 12818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12822 $as_echo_n "(cached) " >&6 12823else 12824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12825/* end confdefs.h. */ 12826int i; 12827_ACEOF 12828if ac_fn_c_try_compile "$LINENO"; then : 12829 xorg_cv_cc_flag_unused_command_line_argument=yes 12830else 12831 xorg_cv_cc_flag_unused_command_line_argument=no 12832fi 12833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12834fi 12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12838 CFLAGS="$xorg_testset_save_CFLAGS" 12839fi 12840 12841found="no" 12842 12843 if test $found = "no" ; then 12844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12846 fi 12847 12848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12850 fi 12851 12852 CFLAGS="$CFLAGS -Wnested-externs" 12853 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12855$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12856 cacheid=xorg_cv_cc_flag__Wnested_externs 12857 if eval \${$cacheid+:} false; then : 12858 $as_echo_n "(cached) " >&6 12859else 12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12861/* end confdefs.h. */ 12862int i; 12863int 12864main () 12865{ 12866 12867 ; 12868 return 0; 12869} 12870_ACEOF 12871if ac_fn_c_try_link "$LINENO"; then : 12872 eval $cacheid=yes 12873else 12874 eval $cacheid=no 12875fi 12876rm -f core conftest.err conftest.$ac_objext \ 12877 conftest$ac_exeext conftest.$ac_ext 12878fi 12879 12880 12881 CFLAGS="$xorg_testset_save_CFLAGS" 12882 12883 eval supported=\$$cacheid 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12885$as_echo "$supported" >&6; } 12886 if test "$supported" = "yes" ; then 12887 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12888 found="yes" 12889 fi 12890 fi 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906xorg_testset_save_CFLAGS="$CFLAGS" 12907 12908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12913 $as_echo_n "(cached) " >&6 12914else 12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12916/* end confdefs.h. */ 12917int i; 12918_ACEOF 12919if ac_fn_c_try_compile "$LINENO"; then : 12920 xorg_cv_cc_flag_unknown_warning_option=yes 12921else 12922 xorg_cv_cc_flag_unknown_warning_option=no 12923fi 12924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12925fi 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12929 CFLAGS="$xorg_testset_save_CFLAGS" 12930fi 12931 12932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12935 fi 12936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12940 $as_echo_n "(cached) " >&6 12941else 12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12943/* end confdefs.h. */ 12944int i; 12945_ACEOF 12946if ac_fn_c_try_compile "$LINENO"; then : 12947 xorg_cv_cc_flag_unused_command_line_argument=yes 12948else 12949 xorg_cv_cc_flag_unused_command_line_argument=no 12950fi 12951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12952fi 12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12956 CFLAGS="$xorg_testset_save_CFLAGS" 12957fi 12958 12959found="no" 12960 12961 if test $found = "no" ; then 12962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12964 fi 12965 12966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12968 fi 12969 12970 CFLAGS="$CFLAGS -Wbad-function-cast" 12971 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12973$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12974 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12975 if eval \${$cacheid+:} false; then : 12976 $as_echo_n "(cached) " >&6 12977else 12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12979/* end confdefs.h. */ 12980int i; 12981int 12982main () 12983{ 12984 12985 ; 12986 return 0; 12987} 12988_ACEOF 12989if ac_fn_c_try_link "$LINENO"; then : 12990 eval $cacheid=yes 12991else 12992 eval $cacheid=no 12993fi 12994rm -f core conftest.err conftest.$ac_objext \ 12995 conftest$ac_exeext conftest.$ac_ext 12996fi 12997 12998 12999 CFLAGS="$xorg_testset_save_CFLAGS" 13000 13001 eval supported=\$$cacheid 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13003$as_echo "$supported" >&6; } 13004 if test "$supported" = "yes" ; then 13005 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13006 found="yes" 13007 fi 13008 fi 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024xorg_testset_save_CFLAGS="$CFLAGS" 13025 13026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13031 $as_echo_n "(cached) " >&6 13032else 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034/* end confdefs.h. */ 13035int i; 13036_ACEOF 13037if ac_fn_c_try_compile "$LINENO"; then : 13038 xorg_cv_cc_flag_unknown_warning_option=yes 13039else 13040 xorg_cv_cc_flag_unknown_warning_option=no 13041fi 13042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13043fi 13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13047 CFLAGS="$xorg_testset_save_CFLAGS" 13048fi 13049 13050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13053 fi 13054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13058 $as_echo_n "(cached) " >&6 13059else 13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13061/* end confdefs.h. */ 13062int i; 13063_ACEOF 13064if ac_fn_c_try_compile "$LINENO"; then : 13065 xorg_cv_cc_flag_unused_command_line_argument=yes 13066else 13067 xorg_cv_cc_flag_unused_command_line_argument=no 13068fi 13069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13070fi 13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13074 CFLAGS="$xorg_testset_save_CFLAGS" 13075fi 13076 13077found="no" 13078 13079 if test $found = "no" ; then 13080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13082 fi 13083 13084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13086 fi 13087 13088 CFLAGS="$CFLAGS -Wold-style-definition" 13089 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13091$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13092 cacheid=xorg_cv_cc_flag__Wold_style_definition 13093 if eval \${$cacheid+:} false; then : 13094 $as_echo_n "(cached) " >&6 13095else 13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13097/* end confdefs.h. */ 13098int i; 13099int 13100main () 13101{ 13102 13103 ; 13104 return 0; 13105} 13106_ACEOF 13107if ac_fn_c_try_link "$LINENO"; then : 13108 eval $cacheid=yes 13109else 13110 eval $cacheid=no 13111fi 13112rm -f core conftest.err conftest.$ac_objext \ 13113 conftest$ac_exeext conftest.$ac_ext 13114fi 13115 13116 13117 CFLAGS="$xorg_testset_save_CFLAGS" 13118 13119 eval supported=\$$cacheid 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13121$as_echo "$supported" >&6; } 13122 if test "$supported" = "yes" ; then 13123 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13124 found="yes" 13125 fi 13126 fi 13127 13128 if test $found = "no" ; then 13129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13131 fi 13132 13133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13135 fi 13136 13137 CFLAGS="$CFLAGS -fd" 13138 13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13140$as_echo_n "checking if $CC supports -fd... " >&6; } 13141 cacheid=xorg_cv_cc_flag__fd 13142 if eval \${$cacheid+:} false; then : 13143 $as_echo_n "(cached) " >&6 13144else 13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13146/* end confdefs.h. */ 13147int i; 13148int 13149main () 13150{ 13151 13152 ; 13153 return 0; 13154} 13155_ACEOF 13156if ac_fn_c_try_link "$LINENO"; then : 13157 eval $cacheid=yes 13158else 13159 eval $cacheid=no 13160fi 13161rm -f core conftest.err conftest.$ac_objext \ 13162 conftest$ac_exeext conftest.$ac_ext 13163fi 13164 13165 13166 CFLAGS="$xorg_testset_save_CFLAGS" 13167 13168 eval supported=\$$cacheid 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13170$as_echo "$supported" >&6; } 13171 if test "$supported" = "yes" ; then 13172 BASE_CFLAGS="$BASE_CFLAGS -fd" 13173 found="yes" 13174 fi 13175 fi 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191xorg_testset_save_CFLAGS="$CFLAGS" 13192 13193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13198 $as_echo_n "(cached) " >&6 13199else 13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13201/* end confdefs.h. */ 13202int i; 13203_ACEOF 13204if ac_fn_c_try_compile "$LINENO"; then : 13205 xorg_cv_cc_flag_unknown_warning_option=yes 13206else 13207 xorg_cv_cc_flag_unknown_warning_option=no 13208fi 13209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13210fi 13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13214 CFLAGS="$xorg_testset_save_CFLAGS" 13215fi 13216 13217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13220 fi 13221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13225 $as_echo_n "(cached) " >&6 13226else 13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13228/* end confdefs.h. */ 13229int i; 13230_ACEOF 13231if ac_fn_c_try_compile "$LINENO"; then : 13232 xorg_cv_cc_flag_unused_command_line_argument=yes 13233else 13234 xorg_cv_cc_flag_unused_command_line_argument=no 13235fi 13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13237fi 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13241 CFLAGS="$xorg_testset_save_CFLAGS" 13242fi 13243 13244found="no" 13245 13246 if test $found = "no" ; then 13247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13249 fi 13250 13251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13253 fi 13254 13255 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13256 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13258$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13259 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13260 if eval \${$cacheid+:} false; then : 13261 $as_echo_n "(cached) " >&6 13262else 13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13264/* end confdefs.h. */ 13265int i; 13266int 13267main () 13268{ 13269 13270 ; 13271 return 0; 13272} 13273_ACEOF 13274if ac_fn_c_try_link "$LINENO"; then : 13275 eval $cacheid=yes 13276else 13277 eval $cacheid=no 13278fi 13279rm -f core conftest.err conftest.$ac_objext \ 13280 conftest$ac_exeext conftest.$ac_ext 13281fi 13282 13283 13284 CFLAGS="$xorg_testset_save_CFLAGS" 13285 13286 eval supported=\$$cacheid 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13288$as_echo "$supported" >&6; } 13289 if test "$supported" = "yes" ; then 13290 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13291 found="yes" 13292 fi 13293 fi 13294 13295 13296 13297 13298 13299# This chunk adds additional warnings that could catch undesired effects. 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313xorg_testset_save_CFLAGS="$CFLAGS" 13314 13315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13320 $as_echo_n "(cached) " >&6 13321else 13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13323/* end confdefs.h. */ 13324int i; 13325_ACEOF 13326if ac_fn_c_try_compile "$LINENO"; then : 13327 xorg_cv_cc_flag_unknown_warning_option=yes 13328else 13329 xorg_cv_cc_flag_unknown_warning_option=no 13330fi 13331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13332fi 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13336 CFLAGS="$xorg_testset_save_CFLAGS" 13337fi 13338 13339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13342 fi 13343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13347 $as_echo_n "(cached) " >&6 13348else 13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13350/* end confdefs.h. */ 13351int i; 13352_ACEOF 13353if ac_fn_c_try_compile "$LINENO"; then : 13354 xorg_cv_cc_flag_unused_command_line_argument=yes 13355else 13356 xorg_cv_cc_flag_unused_command_line_argument=no 13357fi 13358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13359fi 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13363 CFLAGS="$xorg_testset_save_CFLAGS" 13364fi 13365 13366found="no" 13367 13368 if test $found = "no" ; then 13369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13371 fi 13372 13373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13375 fi 13376 13377 CFLAGS="$CFLAGS -Wunused" 13378 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13380$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13381 cacheid=xorg_cv_cc_flag__Wunused 13382 if eval \${$cacheid+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384else 13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13386/* end confdefs.h. */ 13387int i; 13388int 13389main () 13390{ 13391 13392 ; 13393 return 0; 13394} 13395_ACEOF 13396if ac_fn_c_try_link "$LINENO"; then : 13397 eval $cacheid=yes 13398else 13399 eval $cacheid=no 13400fi 13401rm -f core conftest.err conftest.$ac_objext \ 13402 conftest$ac_exeext conftest.$ac_ext 13403fi 13404 13405 13406 CFLAGS="$xorg_testset_save_CFLAGS" 13407 13408 eval supported=\$$cacheid 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13410$as_echo "$supported" >&6; } 13411 if test "$supported" = "yes" ; then 13412 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13413 found="yes" 13414 fi 13415 fi 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431xorg_testset_save_CFLAGS="$CFLAGS" 13432 13433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13438 $as_echo_n "(cached) " >&6 13439else 13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13441/* end confdefs.h. */ 13442int i; 13443_ACEOF 13444if ac_fn_c_try_compile "$LINENO"; then : 13445 xorg_cv_cc_flag_unknown_warning_option=yes 13446else 13447 xorg_cv_cc_flag_unknown_warning_option=no 13448fi 13449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13450fi 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13454 CFLAGS="$xorg_testset_save_CFLAGS" 13455fi 13456 13457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13460 fi 13461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13468/* end confdefs.h. */ 13469int i; 13470_ACEOF 13471if ac_fn_c_try_compile "$LINENO"; then : 13472 xorg_cv_cc_flag_unused_command_line_argument=yes 13473else 13474 xorg_cv_cc_flag_unused_command_line_argument=no 13475fi 13476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13477fi 13478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13481 CFLAGS="$xorg_testset_save_CFLAGS" 13482fi 13483 13484found="no" 13485 13486 if test $found = "no" ; then 13487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13489 fi 13490 13491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13493 fi 13494 13495 CFLAGS="$CFLAGS -Wuninitialized" 13496 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13498$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13499 cacheid=xorg_cv_cc_flag__Wuninitialized 13500 if eval \${$cacheid+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505int i; 13506int 13507main () 13508{ 13509 13510 ; 13511 return 0; 13512} 13513_ACEOF 13514if ac_fn_c_try_link "$LINENO"; then : 13515 eval $cacheid=yes 13516else 13517 eval $cacheid=no 13518fi 13519rm -f core conftest.err conftest.$ac_objext \ 13520 conftest$ac_exeext conftest.$ac_ext 13521fi 13522 13523 13524 CFLAGS="$xorg_testset_save_CFLAGS" 13525 13526 eval supported=\$$cacheid 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13528$as_echo "$supported" >&6; } 13529 if test "$supported" = "yes" ; then 13530 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13531 found="yes" 13532 fi 13533 fi 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549xorg_testset_save_CFLAGS="$CFLAGS" 13550 13551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13556 $as_echo_n "(cached) " >&6 13557else 13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13559/* end confdefs.h. */ 13560int i; 13561_ACEOF 13562if ac_fn_c_try_compile "$LINENO"; then : 13563 xorg_cv_cc_flag_unknown_warning_option=yes 13564else 13565 xorg_cv_cc_flag_unknown_warning_option=no 13566fi 13567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13568fi 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573fi 13574 13575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13578 fi 13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13583 $as_echo_n "(cached) " >&6 13584else 13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13586/* end confdefs.h. */ 13587int i; 13588_ACEOF 13589if ac_fn_c_try_compile "$LINENO"; then : 13590 xorg_cv_cc_flag_unused_command_line_argument=yes 13591else 13592 xorg_cv_cc_flag_unused_command_line_argument=no 13593fi 13594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13595fi 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13599 CFLAGS="$xorg_testset_save_CFLAGS" 13600fi 13601 13602found="no" 13603 13604 if test $found = "no" ; then 13605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13607 fi 13608 13609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13611 fi 13612 13613 CFLAGS="$CFLAGS -Wshadow" 13614 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13616$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13617 cacheid=xorg_cv_cc_flag__Wshadow 13618 if eval \${$cacheid+:} false; then : 13619 $as_echo_n "(cached) " >&6 13620else 13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13622/* end confdefs.h. */ 13623int i; 13624int 13625main () 13626{ 13627 13628 ; 13629 return 0; 13630} 13631_ACEOF 13632if ac_fn_c_try_link "$LINENO"; then : 13633 eval $cacheid=yes 13634else 13635 eval $cacheid=no 13636fi 13637rm -f core conftest.err conftest.$ac_objext \ 13638 conftest$ac_exeext conftest.$ac_ext 13639fi 13640 13641 13642 CFLAGS="$xorg_testset_save_CFLAGS" 13643 13644 eval supported=\$$cacheid 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13646$as_echo "$supported" >&6; } 13647 if test "$supported" = "yes" ; then 13648 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13649 found="yes" 13650 fi 13651 fi 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667xorg_testset_save_CFLAGS="$CFLAGS" 13668 13669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13674 $as_echo_n "(cached) " >&6 13675else 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13677/* end confdefs.h. */ 13678int i; 13679_ACEOF 13680if ac_fn_c_try_compile "$LINENO"; then : 13681 xorg_cv_cc_flag_unknown_warning_option=yes 13682else 13683 xorg_cv_cc_flag_unknown_warning_option=no 13684fi 13685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13686fi 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13690 CFLAGS="$xorg_testset_save_CFLAGS" 13691fi 13692 13693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13696 fi 13697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13701 $as_echo_n "(cached) " >&6 13702else 13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13704/* end confdefs.h. */ 13705int i; 13706_ACEOF 13707if ac_fn_c_try_compile "$LINENO"; then : 13708 xorg_cv_cc_flag_unused_command_line_argument=yes 13709else 13710 xorg_cv_cc_flag_unused_command_line_argument=no 13711fi 13712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13713fi 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13717 CFLAGS="$xorg_testset_save_CFLAGS" 13718fi 13719 13720found="no" 13721 13722 if test $found = "no" ; then 13723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13725 fi 13726 13727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13729 fi 13730 13731 CFLAGS="$CFLAGS -Wmissing-noreturn" 13732 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13734$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13735 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13736 if eval \${$cacheid+:} false; then : 13737 $as_echo_n "(cached) " >&6 13738else 13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740/* end confdefs.h. */ 13741int i; 13742int 13743main () 13744{ 13745 13746 ; 13747 return 0; 13748} 13749_ACEOF 13750if ac_fn_c_try_link "$LINENO"; then : 13751 eval $cacheid=yes 13752else 13753 eval $cacheid=no 13754fi 13755rm -f core conftest.err conftest.$ac_objext \ 13756 conftest$ac_exeext conftest.$ac_ext 13757fi 13758 13759 13760 CFLAGS="$xorg_testset_save_CFLAGS" 13761 13762 eval supported=\$$cacheid 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13764$as_echo "$supported" >&6; } 13765 if test "$supported" = "yes" ; then 13766 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13767 found="yes" 13768 fi 13769 fi 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785xorg_testset_save_CFLAGS="$CFLAGS" 13786 13787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13792 $as_echo_n "(cached) " >&6 13793else 13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13795/* end confdefs.h. */ 13796int i; 13797_ACEOF 13798if ac_fn_c_try_compile "$LINENO"; then : 13799 xorg_cv_cc_flag_unknown_warning_option=yes 13800else 13801 xorg_cv_cc_flag_unknown_warning_option=no 13802fi 13803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13804fi 13805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13808 CFLAGS="$xorg_testset_save_CFLAGS" 13809fi 13810 13811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13814 fi 13815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13819 $as_echo_n "(cached) " >&6 13820else 13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13822/* end confdefs.h. */ 13823int i; 13824_ACEOF 13825if ac_fn_c_try_compile "$LINENO"; then : 13826 xorg_cv_cc_flag_unused_command_line_argument=yes 13827else 13828 xorg_cv_cc_flag_unused_command_line_argument=no 13829fi 13830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13831fi 13832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13835 CFLAGS="$xorg_testset_save_CFLAGS" 13836fi 13837 13838found="no" 13839 13840 if test $found = "no" ; then 13841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13843 fi 13844 13845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13847 fi 13848 13849 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13850 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13852$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13853 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13854 if eval \${$cacheid+:} false; then : 13855 $as_echo_n "(cached) " >&6 13856else 13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13858/* end confdefs.h. */ 13859int i; 13860int 13861main () 13862{ 13863 13864 ; 13865 return 0; 13866} 13867_ACEOF 13868if ac_fn_c_try_link "$LINENO"; then : 13869 eval $cacheid=yes 13870else 13871 eval $cacheid=no 13872fi 13873rm -f core conftest.err conftest.$ac_objext \ 13874 conftest$ac_exeext conftest.$ac_ext 13875fi 13876 13877 13878 CFLAGS="$xorg_testset_save_CFLAGS" 13879 13880 eval supported=\$$cacheid 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13882$as_echo "$supported" >&6; } 13883 if test "$supported" = "yes" ; then 13884 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13885 found="yes" 13886 fi 13887 fi 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903xorg_testset_save_CFLAGS="$CFLAGS" 13904 13905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13910 $as_echo_n "(cached) " >&6 13911else 13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13913/* end confdefs.h. */ 13914int i; 13915_ACEOF 13916if ac_fn_c_try_compile "$LINENO"; then : 13917 xorg_cv_cc_flag_unknown_warning_option=yes 13918else 13919 xorg_cv_cc_flag_unknown_warning_option=no 13920fi 13921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13922fi 13923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13926 CFLAGS="$xorg_testset_save_CFLAGS" 13927fi 13928 13929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13932 fi 13933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13937 $as_echo_n "(cached) " >&6 13938else 13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13940/* end confdefs.h. */ 13941int i; 13942_ACEOF 13943if ac_fn_c_try_compile "$LINENO"; then : 13944 xorg_cv_cc_flag_unused_command_line_argument=yes 13945else 13946 xorg_cv_cc_flag_unused_command_line_argument=no 13947fi 13948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13949fi 13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13953 CFLAGS="$xorg_testset_save_CFLAGS" 13954fi 13955 13956found="no" 13957 13958 if test $found = "no" ; then 13959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13961 fi 13962 13963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13965 fi 13966 13967 CFLAGS="$CFLAGS -Wredundant-decls" 13968 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13970$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13971 cacheid=xorg_cv_cc_flag__Wredundant_decls 13972 if eval \${$cacheid+:} false; then : 13973 $as_echo_n "(cached) " >&6 13974else 13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13976/* end confdefs.h. */ 13977int i; 13978int 13979main () 13980{ 13981 13982 ; 13983 return 0; 13984} 13985_ACEOF 13986if ac_fn_c_try_link "$LINENO"; then : 13987 eval $cacheid=yes 13988else 13989 eval $cacheid=no 13990fi 13991rm -f core conftest.err conftest.$ac_objext \ 13992 conftest$ac_exeext conftest.$ac_ext 13993fi 13994 13995 13996 CFLAGS="$xorg_testset_save_CFLAGS" 13997 13998 eval supported=\$$cacheid 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14000$as_echo "$supported" >&6; } 14001 if test "$supported" = "yes" ; then 14002 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14003 found="yes" 14004 fi 14005 fi 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021xorg_testset_save_CFLAGS="$CFLAGS" 14022 14023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14028 $as_echo_n "(cached) " >&6 14029else 14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14031/* end confdefs.h. */ 14032int i; 14033_ACEOF 14034if ac_fn_c_try_compile "$LINENO"; then : 14035 xorg_cv_cc_flag_unknown_warning_option=yes 14036else 14037 xorg_cv_cc_flag_unknown_warning_option=no 14038fi 14039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14040fi 14041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14044 CFLAGS="$xorg_testset_save_CFLAGS" 14045fi 14046 14047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14050 fi 14051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14055 $as_echo_n "(cached) " >&6 14056else 14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14058/* end confdefs.h. */ 14059int i; 14060_ACEOF 14061if ac_fn_c_try_compile "$LINENO"; then : 14062 xorg_cv_cc_flag_unused_command_line_argument=yes 14063else 14064 xorg_cv_cc_flag_unused_command_line_argument=no 14065fi 14066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14067fi 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14071 CFLAGS="$xorg_testset_save_CFLAGS" 14072fi 14073 14074found="no" 14075 14076 if test $found = "no" ; then 14077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14079 fi 14080 14081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14083 fi 14084 14085 CFLAGS="$CFLAGS -Wlogical-op" 14086 14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14088$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14089 cacheid=xorg_cv_cc_flag__Wlogical_op 14090 if eval \${$cacheid+:} false; then : 14091 $as_echo_n "(cached) " >&6 14092else 14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14094/* end confdefs.h. */ 14095int i; 14096int 14097main () 14098{ 14099 14100 ; 14101 return 0; 14102} 14103_ACEOF 14104if ac_fn_c_try_link "$LINENO"; then : 14105 eval $cacheid=yes 14106else 14107 eval $cacheid=no 14108fi 14109rm -f core conftest.err conftest.$ac_objext \ 14110 conftest$ac_exeext conftest.$ac_ext 14111fi 14112 14113 14114 CFLAGS="$xorg_testset_save_CFLAGS" 14115 14116 eval supported=\$$cacheid 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14118$as_echo "$supported" >&6; } 14119 if test "$supported" = "yes" ; then 14120 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14121 found="yes" 14122 fi 14123 fi 14124 14125 14126 14127# These are currently disabled because they are noisy. They will be enabled 14128# in the future once the codebase is sufficiently modernized to silence 14129# them. For now, I don't want them to drown out the other warnings. 14130# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14131# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14132# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14133 14134# Turn some warnings into errors, so we don't accidently get successful builds 14135# when there are problems that should be fixed. 14136 14137if test "x$SELECTIVE_WERROR" = "xyes" ; then 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151xorg_testset_save_CFLAGS="$CFLAGS" 14152 14153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159else 14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14161/* end confdefs.h. */ 14162int i; 14163_ACEOF 14164if ac_fn_c_try_compile "$LINENO"; then : 14165 xorg_cv_cc_flag_unknown_warning_option=yes 14166else 14167 xorg_cv_cc_flag_unknown_warning_option=no 14168fi 14169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14170fi 14171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14174 CFLAGS="$xorg_testset_save_CFLAGS" 14175fi 14176 14177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14180 fi 14181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14185 $as_echo_n "(cached) " >&6 14186else 14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14188/* end confdefs.h. */ 14189int i; 14190_ACEOF 14191if ac_fn_c_try_compile "$LINENO"; then : 14192 xorg_cv_cc_flag_unused_command_line_argument=yes 14193else 14194 xorg_cv_cc_flag_unused_command_line_argument=no 14195fi 14196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14197fi 14198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14201 CFLAGS="$xorg_testset_save_CFLAGS" 14202fi 14203 14204found="no" 14205 14206 if test $found = "no" ; then 14207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14209 fi 14210 14211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14213 fi 14214 14215 CFLAGS="$CFLAGS -Werror=implicit" 14216 14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14218$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14219 cacheid=xorg_cv_cc_flag__Werror_implicit 14220 if eval \${$cacheid+:} false; then : 14221 $as_echo_n "(cached) " >&6 14222else 14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14224/* end confdefs.h. */ 14225int i; 14226int 14227main () 14228{ 14229 14230 ; 14231 return 0; 14232} 14233_ACEOF 14234if ac_fn_c_try_link "$LINENO"; then : 14235 eval $cacheid=yes 14236else 14237 eval $cacheid=no 14238fi 14239rm -f core conftest.err conftest.$ac_objext \ 14240 conftest$ac_exeext conftest.$ac_ext 14241fi 14242 14243 14244 CFLAGS="$xorg_testset_save_CFLAGS" 14245 14246 eval supported=\$$cacheid 14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14248$as_echo "$supported" >&6; } 14249 if test "$supported" = "yes" ; then 14250 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14251 found="yes" 14252 fi 14253 fi 14254 14255 if test $found = "no" ; then 14256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14258 fi 14259 14260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14262 fi 14263 14264 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14265 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14267$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14268 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14269 if eval \${$cacheid+:} false; then : 14270 $as_echo_n "(cached) " >&6 14271else 14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14273/* end confdefs.h. */ 14274int i; 14275int 14276main () 14277{ 14278 14279 ; 14280 return 0; 14281} 14282_ACEOF 14283if ac_fn_c_try_link "$LINENO"; then : 14284 eval $cacheid=yes 14285else 14286 eval $cacheid=no 14287fi 14288rm -f core conftest.err conftest.$ac_objext \ 14289 conftest$ac_exeext conftest.$ac_ext 14290fi 14291 14292 14293 CFLAGS="$xorg_testset_save_CFLAGS" 14294 14295 eval supported=\$$cacheid 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14297$as_echo "$supported" >&6; } 14298 if test "$supported" = "yes" ; then 14299 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14300 found="yes" 14301 fi 14302 fi 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318xorg_testset_save_CFLAGS="$CFLAGS" 14319 14320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14325 $as_echo_n "(cached) " >&6 14326else 14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329int i; 14330_ACEOF 14331if ac_fn_c_try_compile "$LINENO"; then : 14332 xorg_cv_cc_flag_unknown_warning_option=yes 14333else 14334 xorg_cv_cc_flag_unknown_warning_option=no 14335fi 14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14337fi 14338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14341 CFLAGS="$xorg_testset_save_CFLAGS" 14342fi 14343 14344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14347 fi 14348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14352 $as_echo_n "(cached) " >&6 14353else 14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355/* end confdefs.h. */ 14356int i; 14357_ACEOF 14358if ac_fn_c_try_compile "$LINENO"; then : 14359 xorg_cv_cc_flag_unused_command_line_argument=yes 14360else 14361 xorg_cv_cc_flag_unused_command_line_argument=no 14362fi 14363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14364fi 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14368 CFLAGS="$xorg_testset_save_CFLAGS" 14369fi 14370 14371found="no" 14372 14373 if test $found = "no" ; then 14374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14376 fi 14377 14378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14380 fi 14381 14382 CFLAGS="$CFLAGS -Werror=nonnull" 14383 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14385$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14386 cacheid=xorg_cv_cc_flag__Werror_nonnull 14387 if eval \${$cacheid+:} false; then : 14388 $as_echo_n "(cached) " >&6 14389else 14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14391/* end confdefs.h. */ 14392int i; 14393int 14394main () 14395{ 14396 14397 ; 14398 return 0; 14399} 14400_ACEOF 14401if ac_fn_c_try_link "$LINENO"; then : 14402 eval $cacheid=yes 14403else 14404 eval $cacheid=no 14405fi 14406rm -f core conftest.err conftest.$ac_objext \ 14407 conftest$ac_exeext conftest.$ac_ext 14408fi 14409 14410 14411 CFLAGS="$xorg_testset_save_CFLAGS" 14412 14413 eval supported=\$$cacheid 14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14415$as_echo "$supported" >&6; } 14416 if test "$supported" = "yes" ; then 14417 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14418 found="yes" 14419 fi 14420 fi 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436xorg_testset_save_CFLAGS="$CFLAGS" 14437 14438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14443 $as_echo_n "(cached) " >&6 14444else 14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14446/* end confdefs.h. */ 14447int i; 14448_ACEOF 14449if ac_fn_c_try_compile "$LINENO"; then : 14450 xorg_cv_cc_flag_unknown_warning_option=yes 14451else 14452 xorg_cv_cc_flag_unknown_warning_option=no 14453fi 14454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14455fi 14456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14459 CFLAGS="$xorg_testset_save_CFLAGS" 14460fi 14461 14462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14465 fi 14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14470 $as_echo_n "(cached) " >&6 14471else 14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14473/* end confdefs.h. */ 14474int i; 14475_ACEOF 14476if ac_fn_c_try_compile "$LINENO"; then : 14477 xorg_cv_cc_flag_unused_command_line_argument=yes 14478else 14479 xorg_cv_cc_flag_unused_command_line_argument=no 14480fi 14481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14482fi 14483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14486 CFLAGS="$xorg_testset_save_CFLAGS" 14487fi 14488 14489found="no" 14490 14491 if test $found = "no" ; then 14492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14494 fi 14495 14496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14498 fi 14499 14500 CFLAGS="$CFLAGS -Werror=init-self" 14501 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14503$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14504 cacheid=xorg_cv_cc_flag__Werror_init_self 14505 if eval \${$cacheid+:} false; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510int i; 14511int 14512main () 14513{ 14514 14515 ; 14516 return 0; 14517} 14518_ACEOF 14519if ac_fn_c_try_link "$LINENO"; then : 14520 eval $cacheid=yes 14521else 14522 eval $cacheid=no 14523fi 14524rm -f core conftest.err conftest.$ac_objext \ 14525 conftest$ac_exeext conftest.$ac_ext 14526fi 14527 14528 14529 CFLAGS="$xorg_testset_save_CFLAGS" 14530 14531 eval supported=\$$cacheid 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14533$as_echo "$supported" >&6; } 14534 if test "$supported" = "yes" ; then 14535 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14536 found="yes" 14537 fi 14538 fi 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554xorg_testset_save_CFLAGS="$CFLAGS" 14555 14556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14561 $as_echo_n "(cached) " >&6 14562else 14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564/* end confdefs.h. */ 14565int i; 14566_ACEOF 14567if ac_fn_c_try_compile "$LINENO"; then : 14568 xorg_cv_cc_flag_unknown_warning_option=yes 14569else 14570 xorg_cv_cc_flag_unknown_warning_option=no 14571fi 14572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14573fi 14574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14577 CFLAGS="$xorg_testset_save_CFLAGS" 14578fi 14579 14580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14583 fi 14584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14588 $as_echo_n "(cached) " >&6 14589else 14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14591/* end confdefs.h. */ 14592int i; 14593_ACEOF 14594if ac_fn_c_try_compile "$LINENO"; then : 14595 xorg_cv_cc_flag_unused_command_line_argument=yes 14596else 14597 xorg_cv_cc_flag_unused_command_line_argument=no 14598fi 14599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14600fi 14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14604 CFLAGS="$xorg_testset_save_CFLAGS" 14605fi 14606 14607found="no" 14608 14609 if test $found = "no" ; then 14610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14612 fi 14613 14614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14616 fi 14617 14618 CFLAGS="$CFLAGS -Werror=main" 14619 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14621$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14622 cacheid=xorg_cv_cc_flag__Werror_main 14623 if eval \${$cacheid+:} false; then : 14624 $as_echo_n "(cached) " >&6 14625else 14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14627/* end confdefs.h. */ 14628int i; 14629int 14630main () 14631{ 14632 14633 ; 14634 return 0; 14635} 14636_ACEOF 14637if ac_fn_c_try_link "$LINENO"; then : 14638 eval $cacheid=yes 14639else 14640 eval $cacheid=no 14641fi 14642rm -f core conftest.err conftest.$ac_objext \ 14643 conftest$ac_exeext conftest.$ac_ext 14644fi 14645 14646 14647 CFLAGS="$xorg_testset_save_CFLAGS" 14648 14649 eval supported=\$$cacheid 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14651$as_echo "$supported" >&6; } 14652 if test "$supported" = "yes" ; then 14653 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14654 found="yes" 14655 fi 14656 fi 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672xorg_testset_save_CFLAGS="$CFLAGS" 14673 14674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14679 $as_echo_n "(cached) " >&6 14680else 14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14682/* end confdefs.h. */ 14683int i; 14684_ACEOF 14685if ac_fn_c_try_compile "$LINENO"; then : 14686 xorg_cv_cc_flag_unknown_warning_option=yes 14687else 14688 xorg_cv_cc_flag_unknown_warning_option=no 14689fi 14690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14691fi 14692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14695 CFLAGS="$xorg_testset_save_CFLAGS" 14696fi 14697 14698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14701 fi 14702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14709/* end confdefs.h. */ 14710int i; 14711_ACEOF 14712if ac_fn_c_try_compile "$LINENO"; then : 14713 xorg_cv_cc_flag_unused_command_line_argument=yes 14714else 14715 xorg_cv_cc_flag_unused_command_line_argument=no 14716fi 14717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14718fi 14719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14722 CFLAGS="$xorg_testset_save_CFLAGS" 14723fi 14724 14725found="no" 14726 14727 if test $found = "no" ; then 14728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14730 fi 14731 14732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14734 fi 14735 14736 CFLAGS="$CFLAGS -Werror=missing-braces" 14737 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14739$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14740 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14741 if eval \${$cacheid+:} false; then : 14742 $as_echo_n "(cached) " >&6 14743else 14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14745/* end confdefs.h. */ 14746int i; 14747int 14748main () 14749{ 14750 14751 ; 14752 return 0; 14753} 14754_ACEOF 14755if ac_fn_c_try_link "$LINENO"; then : 14756 eval $cacheid=yes 14757else 14758 eval $cacheid=no 14759fi 14760rm -f core conftest.err conftest.$ac_objext \ 14761 conftest$ac_exeext conftest.$ac_ext 14762fi 14763 14764 14765 CFLAGS="$xorg_testset_save_CFLAGS" 14766 14767 eval supported=\$$cacheid 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14769$as_echo "$supported" >&6; } 14770 if test "$supported" = "yes" ; then 14771 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14772 found="yes" 14773 fi 14774 fi 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790xorg_testset_save_CFLAGS="$CFLAGS" 14791 14792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14797 $as_echo_n "(cached) " >&6 14798else 14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801int i; 14802_ACEOF 14803if ac_fn_c_try_compile "$LINENO"; then : 14804 xorg_cv_cc_flag_unknown_warning_option=yes 14805else 14806 xorg_cv_cc_flag_unknown_warning_option=no 14807fi 14808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14809fi 14810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14813 CFLAGS="$xorg_testset_save_CFLAGS" 14814fi 14815 14816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14819 fi 14820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14824 $as_echo_n "(cached) " >&6 14825else 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827/* end confdefs.h. */ 14828int i; 14829_ACEOF 14830if ac_fn_c_try_compile "$LINENO"; then : 14831 xorg_cv_cc_flag_unused_command_line_argument=yes 14832else 14833 xorg_cv_cc_flag_unused_command_line_argument=no 14834fi 14835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14836fi 14837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14840 CFLAGS="$xorg_testset_save_CFLAGS" 14841fi 14842 14843found="no" 14844 14845 if test $found = "no" ; then 14846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14848 fi 14849 14850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14852 fi 14853 14854 CFLAGS="$CFLAGS -Werror=sequence-point" 14855 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14857$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14858 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14859 if eval \${$cacheid+:} false; then : 14860 $as_echo_n "(cached) " >&6 14861else 14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14863/* end confdefs.h. */ 14864int i; 14865int 14866main () 14867{ 14868 14869 ; 14870 return 0; 14871} 14872_ACEOF 14873if ac_fn_c_try_link "$LINENO"; then : 14874 eval $cacheid=yes 14875else 14876 eval $cacheid=no 14877fi 14878rm -f core conftest.err conftest.$ac_objext \ 14879 conftest$ac_exeext conftest.$ac_ext 14880fi 14881 14882 14883 CFLAGS="$xorg_testset_save_CFLAGS" 14884 14885 eval supported=\$$cacheid 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14887$as_echo "$supported" >&6; } 14888 if test "$supported" = "yes" ; then 14889 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14890 found="yes" 14891 fi 14892 fi 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908xorg_testset_save_CFLAGS="$CFLAGS" 14909 14910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14915 $as_echo_n "(cached) " >&6 14916else 14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14918/* end confdefs.h. */ 14919int i; 14920_ACEOF 14921if ac_fn_c_try_compile "$LINENO"; then : 14922 xorg_cv_cc_flag_unknown_warning_option=yes 14923else 14924 xorg_cv_cc_flag_unknown_warning_option=no 14925fi 14926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14927fi 14928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14931 CFLAGS="$xorg_testset_save_CFLAGS" 14932fi 14933 14934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14937 fi 14938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14942 $as_echo_n "(cached) " >&6 14943else 14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14945/* end confdefs.h. */ 14946int i; 14947_ACEOF 14948if ac_fn_c_try_compile "$LINENO"; then : 14949 xorg_cv_cc_flag_unused_command_line_argument=yes 14950else 14951 xorg_cv_cc_flag_unused_command_line_argument=no 14952fi 14953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14954fi 14955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14958 CFLAGS="$xorg_testset_save_CFLAGS" 14959fi 14960 14961found="no" 14962 14963 if test $found = "no" ; then 14964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14966 fi 14967 14968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14970 fi 14971 14972 CFLAGS="$CFLAGS -Werror=return-type" 14973 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14975$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14976 cacheid=xorg_cv_cc_flag__Werror_return_type 14977 if eval \${$cacheid+:} false; then : 14978 $as_echo_n "(cached) " >&6 14979else 14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14981/* end confdefs.h. */ 14982int i; 14983int 14984main () 14985{ 14986 14987 ; 14988 return 0; 14989} 14990_ACEOF 14991if ac_fn_c_try_link "$LINENO"; then : 14992 eval $cacheid=yes 14993else 14994 eval $cacheid=no 14995fi 14996rm -f core conftest.err conftest.$ac_objext \ 14997 conftest$ac_exeext conftest.$ac_ext 14998fi 14999 15000 15001 CFLAGS="$xorg_testset_save_CFLAGS" 15002 15003 eval supported=\$$cacheid 15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15005$as_echo "$supported" >&6; } 15006 if test "$supported" = "yes" ; then 15007 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15008 found="yes" 15009 fi 15010 fi 15011 15012 if test $found = "no" ; then 15013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15015 fi 15016 15017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15019 fi 15020 15021 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15022 15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15024$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15025 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15026 if eval \${$cacheid+:} false; then : 15027 $as_echo_n "(cached) " >&6 15028else 15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15030/* end confdefs.h. */ 15031int i; 15032int 15033main () 15034{ 15035 15036 ; 15037 return 0; 15038} 15039_ACEOF 15040if ac_fn_c_try_link "$LINENO"; then : 15041 eval $cacheid=yes 15042else 15043 eval $cacheid=no 15044fi 15045rm -f core conftest.err conftest.$ac_objext \ 15046 conftest$ac_exeext conftest.$ac_ext 15047fi 15048 15049 15050 CFLAGS="$xorg_testset_save_CFLAGS" 15051 15052 eval supported=\$$cacheid 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15054$as_echo "$supported" >&6; } 15055 if test "$supported" = "yes" ; then 15056 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15057 found="yes" 15058 fi 15059 fi 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075xorg_testset_save_CFLAGS="$CFLAGS" 15076 15077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083else 15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085/* end confdefs.h. */ 15086int i; 15087_ACEOF 15088if ac_fn_c_try_compile "$LINENO"; then : 15089 xorg_cv_cc_flag_unknown_warning_option=yes 15090else 15091 xorg_cv_cc_flag_unknown_warning_option=no 15092fi 15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15094fi 15095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15098 CFLAGS="$xorg_testset_save_CFLAGS" 15099fi 15100 15101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15104 fi 15105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15109 $as_echo_n "(cached) " >&6 15110else 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112/* end confdefs.h. */ 15113int i; 15114_ACEOF 15115if ac_fn_c_try_compile "$LINENO"; then : 15116 xorg_cv_cc_flag_unused_command_line_argument=yes 15117else 15118 xorg_cv_cc_flag_unused_command_line_argument=no 15119fi 15120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15121fi 15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15125 CFLAGS="$xorg_testset_save_CFLAGS" 15126fi 15127 15128found="no" 15129 15130 if test $found = "no" ; then 15131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15133 fi 15134 15135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15137 fi 15138 15139 CFLAGS="$CFLAGS -Werror=trigraphs" 15140 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15142$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15143 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15144 if eval \${$cacheid+:} false; then : 15145 $as_echo_n "(cached) " >&6 15146else 15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15148/* end confdefs.h. */ 15149int i; 15150int 15151main () 15152{ 15153 15154 ; 15155 return 0; 15156} 15157_ACEOF 15158if ac_fn_c_try_link "$LINENO"; then : 15159 eval $cacheid=yes 15160else 15161 eval $cacheid=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext \ 15164 conftest$ac_exeext conftest.$ac_ext 15165fi 15166 15167 15168 CFLAGS="$xorg_testset_save_CFLAGS" 15169 15170 eval supported=\$$cacheid 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15172$as_echo "$supported" >&6; } 15173 if test "$supported" = "yes" ; then 15174 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15200 $as_echo_n "(cached) " >&6 15201else 15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203/* end confdefs.h. */ 15204int i; 15205_ACEOF 15206if ac_fn_c_try_compile "$LINENO"; then : 15207 xorg_cv_cc_flag_unknown_warning_option=yes 15208else 15209 xorg_cv_cc_flag_unknown_warning_option=no 15210fi 15211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15212fi 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15216 CFLAGS="$xorg_testset_save_CFLAGS" 15217fi 15218 15219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15222 fi 15223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15227 $as_echo_n "(cached) " >&6 15228else 15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15230/* end confdefs.h. */ 15231int i; 15232_ACEOF 15233if ac_fn_c_try_compile "$LINENO"; then : 15234 xorg_cv_cc_flag_unused_command_line_argument=yes 15235else 15236 xorg_cv_cc_flag_unused_command_line_argument=no 15237fi 15238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15239fi 15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15243 CFLAGS="$xorg_testset_save_CFLAGS" 15244fi 15245 15246found="no" 15247 15248 if test $found = "no" ; then 15249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15251 fi 15252 15253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15255 fi 15256 15257 CFLAGS="$CFLAGS -Werror=array-bounds" 15258 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15260$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15261 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15262 if eval \${$cacheid+:} false; then : 15263 $as_echo_n "(cached) " >&6 15264else 15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15266/* end confdefs.h. */ 15267int i; 15268int 15269main () 15270{ 15271 15272 ; 15273 return 0; 15274} 15275_ACEOF 15276if ac_fn_c_try_link "$LINENO"; then : 15277 eval $cacheid=yes 15278else 15279 eval $cacheid=no 15280fi 15281rm -f core conftest.err conftest.$ac_objext \ 15282 conftest$ac_exeext conftest.$ac_ext 15283fi 15284 15285 15286 CFLAGS="$xorg_testset_save_CFLAGS" 15287 15288 eval supported=\$$cacheid 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15290$as_echo "$supported" >&6; } 15291 if test "$supported" = "yes" ; then 15292 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15293 found="yes" 15294 fi 15295 fi 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311xorg_testset_save_CFLAGS="$CFLAGS" 15312 15313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15318 $as_echo_n "(cached) " >&6 15319else 15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15321/* end confdefs.h. */ 15322int i; 15323_ACEOF 15324if ac_fn_c_try_compile "$LINENO"; then : 15325 xorg_cv_cc_flag_unknown_warning_option=yes 15326else 15327 xorg_cv_cc_flag_unknown_warning_option=no 15328fi 15329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15330fi 15331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15334 CFLAGS="$xorg_testset_save_CFLAGS" 15335fi 15336 15337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15340 fi 15341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15345 $as_echo_n "(cached) " >&6 15346else 15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348/* end confdefs.h. */ 15349int i; 15350_ACEOF 15351if ac_fn_c_try_compile "$LINENO"; then : 15352 xorg_cv_cc_flag_unused_command_line_argument=yes 15353else 15354 xorg_cv_cc_flag_unused_command_line_argument=no 15355fi 15356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15357fi 15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15361 CFLAGS="$xorg_testset_save_CFLAGS" 15362fi 15363 15364found="no" 15365 15366 if test $found = "no" ; then 15367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15369 fi 15370 15371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15373 fi 15374 15375 CFLAGS="$CFLAGS -Werror=write-strings" 15376 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15378$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15379 cacheid=xorg_cv_cc_flag__Werror_write_strings 15380 if eval \${$cacheid+:} false; then : 15381 $as_echo_n "(cached) " >&6 15382else 15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15384/* end confdefs.h. */ 15385int i; 15386int 15387main () 15388{ 15389 15390 ; 15391 return 0; 15392} 15393_ACEOF 15394if ac_fn_c_try_link "$LINENO"; then : 15395 eval $cacheid=yes 15396else 15397 eval $cacheid=no 15398fi 15399rm -f core conftest.err conftest.$ac_objext \ 15400 conftest$ac_exeext conftest.$ac_ext 15401fi 15402 15403 15404 CFLAGS="$xorg_testset_save_CFLAGS" 15405 15406 eval supported=\$$cacheid 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15408$as_echo "$supported" >&6; } 15409 if test "$supported" = "yes" ; then 15410 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15411 found="yes" 15412 fi 15413 fi 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429xorg_testset_save_CFLAGS="$CFLAGS" 15430 15431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15436 $as_echo_n "(cached) " >&6 15437else 15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15439/* end confdefs.h. */ 15440int i; 15441_ACEOF 15442if ac_fn_c_try_compile "$LINENO"; then : 15443 xorg_cv_cc_flag_unknown_warning_option=yes 15444else 15445 xorg_cv_cc_flag_unknown_warning_option=no 15446fi 15447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15448fi 15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15452 CFLAGS="$xorg_testset_save_CFLAGS" 15453fi 15454 15455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15458 fi 15459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15463 $as_echo_n "(cached) " >&6 15464else 15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15466/* end confdefs.h. */ 15467int i; 15468_ACEOF 15469if ac_fn_c_try_compile "$LINENO"; then : 15470 xorg_cv_cc_flag_unused_command_line_argument=yes 15471else 15472 xorg_cv_cc_flag_unused_command_line_argument=no 15473fi 15474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15475fi 15476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480fi 15481 15482found="no" 15483 15484 if test $found = "no" ; then 15485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15487 fi 15488 15489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15491 fi 15492 15493 CFLAGS="$CFLAGS -Werror=address" 15494 15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15496$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15497 cacheid=xorg_cv_cc_flag__Werror_address 15498 if eval \${$cacheid+:} false; then : 15499 $as_echo_n "(cached) " >&6 15500else 15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15502/* end confdefs.h. */ 15503int i; 15504int 15505main () 15506{ 15507 15508 ; 15509 return 0; 15510} 15511_ACEOF 15512if ac_fn_c_try_link "$LINENO"; then : 15513 eval $cacheid=yes 15514else 15515 eval $cacheid=no 15516fi 15517rm -f core conftest.err conftest.$ac_objext \ 15518 conftest$ac_exeext conftest.$ac_ext 15519fi 15520 15521 15522 CFLAGS="$xorg_testset_save_CFLAGS" 15523 15524 eval supported=\$$cacheid 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15526$as_echo "$supported" >&6; } 15527 if test "$supported" = "yes" ; then 15528 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15529 found="yes" 15530 fi 15531 fi 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547xorg_testset_save_CFLAGS="$CFLAGS" 15548 15549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15554 $as_echo_n "(cached) " >&6 15555else 15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15557/* end confdefs.h. */ 15558int i; 15559_ACEOF 15560if ac_fn_c_try_compile "$LINENO"; then : 15561 xorg_cv_cc_flag_unknown_warning_option=yes 15562else 15563 xorg_cv_cc_flag_unknown_warning_option=no 15564fi 15565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15566fi 15567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15570 CFLAGS="$xorg_testset_save_CFLAGS" 15571fi 15572 15573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15576 fi 15577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15581 $as_echo_n "(cached) " >&6 15582else 15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15584/* end confdefs.h. */ 15585int i; 15586_ACEOF 15587if ac_fn_c_try_compile "$LINENO"; then : 15588 xorg_cv_cc_flag_unused_command_line_argument=yes 15589else 15590 xorg_cv_cc_flag_unused_command_line_argument=no 15591fi 15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15593fi 15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15597 CFLAGS="$xorg_testset_save_CFLAGS" 15598fi 15599 15600found="no" 15601 15602 if test $found = "no" ; then 15603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15605 fi 15606 15607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15609 fi 15610 15611 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15612 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15614$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15615 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15616 if eval \${$cacheid+:} false; then : 15617 $as_echo_n "(cached) " >&6 15618else 15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620/* end confdefs.h. */ 15621int i; 15622int 15623main () 15624{ 15625 15626 ; 15627 return 0; 15628} 15629_ACEOF 15630if ac_fn_c_try_link "$LINENO"; then : 15631 eval $cacheid=yes 15632else 15633 eval $cacheid=no 15634fi 15635rm -f core conftest.err conftest.$ac_objext \ 15636 conftest$ac_exeext conftest.$ac_ext 15637fi 15638 15639 15640 CFLAGS="$xorg_testset_save_CFLAGS" 15641 15642 eval supported=\$$cacheid 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15644$as_echo "$supported" >&6; } 15645 if test "$supported" = "yes" ; then 15646 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15647 found="yes" 15648 fi 15649 fi 15650 15651 if test $found = "no" ; then 15652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15654 fi 15655 15656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15658 fi 15659 15660 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15661 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15663$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15664 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15665 if eval \${$cacheid+:} false; then : 15666 $as_echo_n "(cached) " >&6 15667else 15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15669/* end confdefs.h. */ 15670int i; 15671int 15672main () 15673{ 15674 15675 ; 15676 return 0; 15677} 15678_ACEOF 15679if ac_fn_c_try_link "$LINENO"; then : 15680 eval $cacheid=yes 15681else 15682 eval $cacheid=no 15683fi 15684rm -f core conftest.err conftest.$ac_objext \ 15685 conftest$ac_exeext conftest.$ac_ext 15686fi 15687 15688 15689 CFLAGS="$xorg_testset_save_CFLAGS" 15690 15691 eval supported=\$$cacheid 15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15693$as_echo "$supported" >&6; } 15694 if test "$supported" = "yes" ; then 15695 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15696 found="yes" 15697 fi 15698 fi 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714xorg_testset_save_CFLAGS="$CFLAGS" 15715 15716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15721 $as_echo_n "(cached) " >&6 15722else 15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15724/* end confdefs.h. */ 15725int i; 15726_ACEOF 15727if ac_fn_c_try_compile "$LINENO"; then : 15728 xorg_cv_cc_flag_unknown_warning_option=yes 15729else 15730 xorg_cv_cc_flag_unknown_warning_option=no 15731fi 15732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15733fi 15734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15737 CFLAGS="$xorg_testset_save_CFLAGS" 15738fi 15739 15740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15743 fi 15744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15748 $as_echo_n "(cached) " >&6 15749else 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752int i; 15753_ACEOF 15754if ac_fn_c_try_compile "$LINENO"; then : 15755 xorg_cv_cc_flag_unused_command_line_argument=yes 15756else 15757 xorg_cv_cc_flag_unused_command_line_argument=no 15758fi 15759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15760fi 15761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15764 CFLAGS="$xorg_testset_save_CFLAGS" 15765fi 15766 15767found="no" 15768 15769 if test $found = "no" ; then 15770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15772 fi 15773 15774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15776 fi 15777 15778 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15779 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15781$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15782 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15783 if eval \${$cacheid+:} false; then : 15784 $as_echo_n "(cached) " >&6 15785else 15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15787/* end confdefs.h. */ 15788int i; 15789int 15790main () 15791{ 15792 15793 ; 15794 return 0; 15795} 15796_ACEOF 15797if ac_fn_c_try_link "$LINENO"; then : 15798 eval $cacheid=yes 15799else 15800 eval $cacheid=no 15801fi 15802rm -f core conftest.err conftest.$ac_objext \ 15803 conftest$ac_exeext conftest.$ac_ext 15804fi 15805 15806 15807 CFLAGS="$xorg_testset_save_CFLAGS" 15808 15809 eval supported=\$$cacheid 15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15811$as_echo "$supported" >&6; } 15812 if test "$supported" = "yes" ; then 15813 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15814 found="yes" 15815 fi 15816 fi 15817 15818 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15819else 15820{ $as_echo "$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 15821$as_echo "$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;} 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835xorg_testset_save_CFLAGS="$CFLAGS" 15836 15837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15842 $as_echo_n "(cached) " >&6 15843else 15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15845/* end confdefs.h. */ 15846int i; 15847_ACEOF 15848if ac_fn_c_try_compile "$LINENO"; then : 15849 xorg_cv_cc_flag_unknown_warning_option=yes 15850else 15851 xorg_cv_cc_flag_unknown_warning_option=no 15852fi 15853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15854fi 15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15858 CFLAGS="$xorg_testset_save_CFLAGS" 15859fi 15860 15861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15864 fi 15865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15869 $as_echo_n "(cached) " >&6 15870else 15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15872/* end confdefs.h. */ 15873int i; 15874_ACEOF 15875if ac_fn_c_try_compile "$LINENO"; then : 15876 xorg_cv_cc_flag_unused_command_line_argument=yes 15877else 15878 xorg_cv_cc_flag_unused_command_line_argument=no 15879fi 15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15881fi 15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15885 CFLAGS="$xorg_testset_save_CFLAGS" 15886fi 15887 15888found="no" 15889 15890 if test $found = "no" ; then 15891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15893 fi 15894 15895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15897 fi 15898 15899 CFLAGS="$CFLAGS -Wimplicit" 15900 15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15902$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15903 cacheid=xorg_cv_cc_flag__Wimplicit 15904 if eval \${$cacheid+:} false; then : 15905 $as_echo_n "(cached) " >&6 15906else 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908/* end confdefs.h. */ 15909int i; 15910int 15911main () 15912{ 15913 15914 ; 15915 return 0; 15916} 15917_ACEOF 15918if ac_fn_c_try_link "$LINENO"; then : 15919 eval $cacheid=yes 15920else 15921 eval $cacheid=no 15922fi 15923rm -f core conftest.err conftest.$ac_objext \ 15924 conftest$ac_exeext conftest.$ac_ext 15925fi 15926 15927 15928 CFLAGS="$xorg_testset_save_CFLAGS" 15929 15930 eval supported=\$$cacheid 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15932$as_echo "$supported" >&6; } 15933 if test "$supported" = "yes" ; then 15934 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15935 found="yes" 15936 fi 15937 fi 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953xorg_testset_save_CFLAGS="$CFLAGS" 15954 15955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15960 $as_echo_n "(cached) " >&6 15961else 15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15963/* end confdefs.h. */ 15964int i; 15965_ACEOF 15966if ac_fn_c_try_compile "$LINENO"; then : 15967 xorg_cv_cc_flag_unknown_warning_option=yes 15968else 15969 xorg_cv_cc_flag_unknown_warning_option=no 15970fi 15971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15972fi 15973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15976 CFLAGS="$xorg_testset_save_CFLAGS" 15977fi 15978 15979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15982 fi 15983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15987 $as_echo_n "(cached) " >&6 15988else 15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15990/* end confdefs.h. */ 15991int i; 15992_ACEOF 15993if ac_fn_c_try_compile "$LINENO"; then : 15994 xorg_cv_cc_flag_unused_command_line_argument=yes 15995else 15996 xorg_cv_cc_flag_unused_command_line_argument=no 15997fi 15998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15999fi 16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16003 CFLAGS="$xorg_testset_save_CFLAGS" 16004fi 16005 16006found="no" 16007 16008 if test $found = "no" ; then 16009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16011 fi 16012 16013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16015 fi 16016 16017 CFLAGS="$CFLAGS -Wnonnull" 16018 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16020$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16021 cacheid=xorg_cv_cc_flag__Wnonnull 16022 if eval \${$cacheid+:} false; then : 16023 $as_echo_n "(cached) " >&6 16024else 16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16026/* end confdefs.h. */ 16027int i; 16028int 16029main () 16030{ 16031 16032 ; 16033 return 0; 16034} 16035_ACEOF 16036if ac_fn_c_try_link "$LINENO"; then : 16037 eval $cacheid=yes 16038else 16039 eval $cacheid=no 16040fi 16041rm -f core conftest.err conftest.$ac_objext \ 16042 conftest$ac_exeext conftest.$ac_ext 16043fi 16044 16045 16046 CFLAGS="$xorg_testset_save_CFLAGS" 16047 16048 eval supported=\$$cacheid 16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16050$as_echo "$supported" >&6; } 16051 if test "$supported" = "yes" ; then 16052 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16053 found="yes" 16054 fi 16055 fi 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071xorg_testset_save_CFLAGS="$CFLAGS" 16072 16073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16078 $as_echo_n "(cached) " >&6 16079else 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082int i; 16083_ACEOF 16084if ac_fn_c_try_compile "$LINENO"; then : 16085 xorg_cv_cc_flag_unknown_warning_option=yes 16086else 16087 xorg_cv_cc_flag_unknown_warning_option=no 16088fi 16089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16090fi 16091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16094 CFLAGS="$xorg_testset_save_CFLAGS" 16095fi 16096 16097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16100 fi 16101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16105 $as_echo_n "(cached) " >&6 16106else 16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108/* end confdefs.h. */ 16109int i; 16110_ACEOF 16111if ac_fn_c_try_compile "$LINENO"; then : 16112 xorg_cv_cc_flag_unused_command_line_argument=yes 16113else 16114 xorg_cv_cc_flag_unused_command_line_argument=no 16115fi 16116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16117fi 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16121 CFLAGS="$xorg_testset_save_CFLAGS" 16122fi 16123 16124found="no" 16125 16126 if test $found = "no" ; then 16127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16129 fi 16130 16131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16133 fi 16134 16135 CFLAGS="$CFLAGS -Winit-self" 16136 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16138$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16139 cacheid=xorg_cv_cc_flag__Winit_self 16140 if eval \${$cacheid+:} false; then : 16141 $as_echo_n "(cached) " >&6 16142else 16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16144/* end confdefs.h. */ 16145int i; 16146int 16147main () 16148{ 16149 16150 ; 16151 return 0; 16152} 16153_ACEOF 16154if ac_fn_c_try_link "$LINENO"; then : 16155 eval $cacheid=yes 16156else 16157 eval $cacheid=no 16158fi 16159rm -f core conftest.err conftest.$ac_objext \ 16160 conftest$ac_exeext conftest.$ac_ext 16161fi 16162 16163 16164 CFLAGS="$xorg_testset_save_CFLAGS" 16165 16166 eval supported=\$$cacheid 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16168$as_echo "$supported" >&6; } 16169 if test "$supported" = "yes" ; then 16170 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16171 found="yes" 16172 fi 16173 fi 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189xorg_testset_save_CFLAGS="$CFLAGS" 16190 16191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16196 $as_echo_n "(cached) " >&6 16197else 16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16199/* end confdefs.h. */ 16200int i; 16201_ACEOF 16202if ac_fn_c_try_compile "$LINENO"; then : 16203 xorg_cv_cc_flag_unknown_warning_option=yes 16204else 16205 xorg_cv_cc_flag_unknown_warning_option=no 16206fi 16207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16208fi 16209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16212 CFLAGS="$xorg_testset_save_CFLAGS" 16213fi 16214 16215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16218 fi 16219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16223 $as_echo_n "(cached) " >&6 16224else 16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16226/* end confdefs.h. */ 16227int i; 16228_ACEOF 16229if ac_fn_c_try_compile "$LINENO"; then : 16230 xorg_cv_cc_flag_unused_command_line_argument=yes 16231else 16232 xorg_cv_cc_flag_unused_command_line_argument=no 16233fi 16234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16235fi 16236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16239 CFLAGS="$xorg_testset_save_CFLAGS" 16240fi 16241 16242found="no" 16243 16244 if test $found = "no" ; then 16245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16247 fi 16248 16249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16251 fi 16252 16253 CFLAGS="$CFLAGS -Wmain" 16254 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16256$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16257 cacheid=xorg_cv_cc_flag__Wmain 16258 if eval \${$cacheid+:} false; then : 16259 $as_echo_n "(cached) " >&6 16260else 16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262/* end confdefs.h. */ 16263int i; 16264int 16265main () 16266{ 16267 16268 ; 16269 return 0; 16270} 16271_ACEOF 16272if ac_fn_c_try_link "$LINENO"; then : 16273 eval $cacheid=yes 16274else 16275 eval $cacheid=no 16276fi 16277rm -f core conftest.err conftest.$ac_objext \ 16278 conftest$ac_exeext conftest.$ac_ext 16279fi 16280 16281 16282 CFLAGS="$xorg_testset_save_CFLAGS" 16283 16284 eval supported=\$$cacheid 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16286$as_echo "$supported" >&6; } 16287 if test "$supported" = "yes" ; then 16288 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16289 found="yes" 16290 fi 16291 fi 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307xorg_testset_save_CFLAGS="$CFLAGS" 16308 16309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16314 $as_echo_n "(cached) " >&6 16315else 16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16317/* end confdefs.h. */ 16318int i; 16319_ACEOF 16320if ac_fn_c_try_compile "$LINENO"; then : 16321 xorg_cv_cc_flag_unknown_warning_option=yes 16322else 16323 xorg_cv_cc_flag_unknown_warning_option=no 16324fi 16325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16326fi 16327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16330 CFLAGS="$xorg_testset_save_CFLAGS" 16331fi 16332 16333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16336 fi 16337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16341 $as_echo_n "(cached) " >&6 16342else 16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16344/* end confdefs.h. */ 16345int i; 16346_ACEOF 16347if ac_fn_c_try_compile "$LINENO"; then : 16348 xorg_cv_cc_flag_unused_command_line_argument=yes 16349else 16350 xorg_cv_cc_flag_unused_command_line_argument=no 16351fi 16352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16353fi 16354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16357 CFLAGS="$xorg_testset_save_CFLAGS" 16358fi 16359 16360found="no" 16361 16362 if test $found = "no" ; then 16363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16365 fi 16366 16367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16369 fi 16370 16371 CFLAGS="$CFLAGS -Wmissing-braces" 16372 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16374$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16375 cacheid=xorg_cv_cc_flag__Wmissing_braces 16376 if eval \${$cacheid+:} false; then : 16377 $as_echo_n "(cached) " >&6 16378else 16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16380/* end confdefs.h. */ 16381int i; 16382int 16383main () 16384{ 16385 16386 ; 16387 return 0; 16388} 16389_ACEOF 16390if ac_fn_c_try_link "$LINENO"; then : 16391 eval $cacheid=yes 16392else 16393 eval $cacheid=no 16394fi 16395rm -f core conftest.err conftest.$ac_objext \ 16396 conftest$ac_exeext conftest.$ac_ext 16397fi 16398 16399 16400 CFLAGS="$xorg_testset_save_CFLAGS" 16401 16402 eval supported=\$$cacheid 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16404$as_echo "$supported" >&6; } 16405 if test "$supported" = "yes" ; then 16406 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16407 found="yes" 16408 fi 16409 fi 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425xorg_testset_save_CFLAGS="$CFLAGS" 16426 16427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16432 $as_echo_n "(cached) " >&6 16433else 16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435/* end confdefs.h. */ 16436int i; 16437_ACEOF 16438if ac_fn_c_try_compile "$LINENO"; then : 16439 xorg_cv_cc_flag_unknown_warning_option=yes 16440else 16441 xorg_cv_cc_flag_unknown_warning_option=no 16442fi 16443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16444fi 16445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16446$as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16459 $as_echo_n "(cached) " >&6 16460else 16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462/* end confdefs.h. */ 16463int i; 16464_ACEOF 16465if ac_fn_c_try_compile "$LINENO"; then : 16466 xorg_cv_cc_flag_unused_command_line_argument=yes 16467else 16468 xorg_cv_cc_flag_unused_command_line_argument=no 16469fi 16470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16471fi 16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16475 CFLAGS="$xorg_testset_save_CFLAGS" 16476fi 16477 16478found="no" 16479 16480 if test $found = "no" ; then 16481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16483 fi 16484 16485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16487 fi 16488 16489 CFLAGS="$CFLAGS -Wsequence-point" 16490 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16492$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16493 cacheid=xorg_cv_cc_flag__Wsequence_point 16494 if eval \${$cacheid+:} false; then : 16495 $as_echo_n "(cached) " >&6 16496else 16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16498/* end confdefs.h. */ 16499int i; 16500int 16501main () 16502{ 16503 16504 ; 16505 return 0; 16506} 16507_ACEOF 16508if ac_fn_c_try_link "$LINENO"; then : 16509 eval $cacheid=yes 16510else 16511 eval $cacheid=no 16512fi 16513rm -f core conftest.err conftest.$ac_objext \ 16514 conftest$ac_exeext conftest.$ac_ext 16515fi 16516 16517 16518 CFLAGS="$xorg_testset_save_CFLAGS" 16519 16520 eval supported=\$$cacheid 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16522$as_echo "$supported" >&6; } 16523 if test "$supported" = "yes" ; then 16524 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16525 found="yes" 16526 fi 16527 fi 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543xorg_testset_save_CFLAGS="$CFLAGS" 16544 16545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16550 $as_echo_n "(cached) " >&6 16551else 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553/* end confdefs.h. */ 16554int i; 16555_ACEOF 16556if ac_fn_c_try_compile "$LINENO"; then : 16557 xorg_cv_cc_flag_unknown_warning_option=yes 16558else 16559 xorg_cv_cc_flag_unknown_warning_option=no 16560fi 16561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16562fi 16563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16566 CFLAGS="$xorg_testset_save_CFLAGS" 16567fi 16568 16569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16572 fi 16573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16577 $as_echo_n "(cached) " >&6 16578else 16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16580/* end confdefs.h. */ 16581int i; 16582_ACEOF 16583if ac_fn_c_try_compile "$LINENO"; then : 16584 xorg_cv_cc_flag_unused_command_line_argument=yes 16585else 16586 xorg_cv_cc_flag_unused_command_line_argument=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16589fi 16590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16593 CFLAGS="$xorg_testset_save_CFLAGS" 16594fi 16595 16596found="no" 16597 16598 if test $found = "no" ; then 16599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16601 fi 16602 16603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16605 fi 16606 16607 CFLAGS="$CFLAGS -Wreturn-type" 16608 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16610$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16611 cacheid=xorg_cv_cc_flag__Wreturn_type 16612 if eval \${$cacheid+:} false; then : 16613 $as_echo_n "(cached) " >&6 16614else 16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16616/* end confdefs.h. */ 16617int i; 16618int 16619main () 16620{ 16621 16622 ; 16623 return 0; 16624} 16625_ACEOF 16626if ac_fn_c_try_link "$LINENO"; then : 16627 eval $cacheid=yes 16628else 16629 eval $cacheid=no 16630fi 16631rm -f core conftest.err conftest.$ac_objext \ 16632 conftest$ac_exeext conftest.$ac_ext 16633fi 16634 16635 16636 CFLAGS="$xorg_testset_save_CFLAGS" 16637 16638 eval supported=\$$cacheid 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16640$as_echo "$supported" >&6; } 16641 if test "$supported" = "yes" ; then 16642 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16643 found="yes" 16644 fi 16645 fi 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661xorg_testset_save_CFLAGS="$CFLAGS" 16662 16663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16668 $as_echo_n "(cached) " >&6 16669else 16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16671/* end confdefs.h. */ 16672int i; 16673_ACEOF 16674if ac_fn_c_try_compile "$LINENO"; then : 16675 xorg_cv_cc_flag_unknown_warning_option=yes 16676else 16677 xorg_cv_cc_flag_unknown_warning_option=no 16678fi 16679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16680fi 16681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16684 CFLAGS="$xorg_testset_save_CFLAGS" 16685fi 16686 16687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16690 fi 16691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16695 $as_echo_n "(cached) " >&6 16696else 16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16698/* end confdefs.h. */ 16699int i; 16700_ACEOF 16701if ac_fn_c_try_compile "$LINENO"; then : 16702 xorg_cv_cc_flag_unused_command_line_argument=yes 16703else 16704 xorg_cv_cc_flag_unused_command_line_argument=no 16705fi 16706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16707fi 16708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16711 CFLAGS="$xorg_testset_save_CFLAGS" 16712fi 16713 16714found="no" 16715 16716 if test $found = "no" ; then 16717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16719 fi 16720 16721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16723 fi 16724 16725 CFLAGS="$CFLAGS -Wtrigraphs" 16726 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16728$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16729 cacheid=xorg_cv_cc_flag__Wtrigraphs 16730 if eval \${$cacheid+:} false; then : 16731 $as_echo_n "(cached) " >&6 16732else 16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16734/* end confdefs.h. */ 16735int i; 16736int 16737main () 16738{ 16739 16740 ; 16741 return 0; 16742} 16743_ACEOF 16744if ac_fn_c_try_link "$LINENO"; then : 16745 eval $cacheid=yes 16746else 16747 eval $cacheid=no 16748fi 16749rm -f core conftest.err conftest.$ac_objext \ 16750 conftest$ac_exeext conftest.$ac_ext 16751fi 16752 16753 16754 CFLAGS="$xorg_testset_save_CFLAGS" 16755 16756 eval supported=\$$cacheid 16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16758$as_echo "$supported" >&6; } 16759 if test "$supported" = "yes" ; then 16760 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16761 found="yes" 16762 fi 16763 fi 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779xorg_testset_save_CFLAGS="$CFLAGS" 16780 16781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16786 $as_echo_n "(cached) " >&6 16787else 16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16789/* end confdefs.h. */ 16790int i; 16791_ACEOF 16792if ac_fn_c_try_compile "$LINENO"; then : 16793 xorg_cv_cc_flag_unknown_warning_option=yes 16794else 16795 xorg_cv_cc_flag_unknown_warning_option=no 16796fi 16797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16798fi 16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16802 CFLAGS="$xorg_testset_save_CFLAGS" 16803fi 16804 16805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16808 fi 16809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16813 $as_echo_n "(cached) " >&6 16814else 16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16816/* end confdefs.h. */ 16817int i; 16818_ACEOF 16819if ac_fn_c_try_compile "$LINENO"; then : 16820 xorg_cv_cc_flag_unused_command_line_argument=yes 16821else 16822 xorg_cv_cc_flag_unused_command_line_argument=no 16823fi 16824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16825fi 16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16829 CFLAGS="$xorg_testset_save_CFLAGS" 16830fi 16831 16832found="no" 16833 16834 if test $found = "no" ; then 16835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16837 fi 16838 16839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16841 fi 16842 16843 CFLAGS="$CFLAGS -Warray-bounds" 16844 16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16846$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16847 cacheid=xorg_cv_cc_flag__Warray_bounds 16848 if eval \${$cacheid+:} false; then : 16849 $as_echo_n "(cached) " >&6 16850else 16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16852/* end confdefs.h. */ 16853int i; 16854int 16855main () 16856{ 16857 16858 ; 16859 return 0; 16860} 16861_ACEOF 16862if ac_fn_c_try_link "$LINENO"; then : 16863 eval $cacheid=yes 16864else 16865 eval $cacheid=no 16866fi 16867rm -f core conftest.err conftest.$ac_objext \ 16868 conftest$ac_exeext conftest.$ac_ext 16869fi 16870 16871 16872 CFLAGS="$xorg_testset_save_CFLAGS" 16873 16874 eval supported=\$$cacheid 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16876$as_echo "$supported" >&6; } 16877 if test "$supported" = "yes" ; then 16878 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16879 found="yes" 16880 fi 16881 fi 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897xorg_testset_save_CFLAGS="$CFLAGS" 16898 16899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16904 $as_echo_n "(cached) " >&6 16905else 16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16907/* end confdefs.h. */ 16908int i; 16909_ACEOF 16910if ac_fn_c_try_compile "$LINENO"; then : 16911 xorg_cv_cc_flag_unknown_warning_option=yes 16912else 16913 xorg_cv_cc_flag_unknown_warning_option=no 16914fi 16915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16916fi 16917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16920 CFLAGS="$xorg_testset_save_CFLAGS" 16921fi 16922 16923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16926 fi 16927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16931 $as_echo_n "(cached) " >&6 16932else 16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16934/* end confdefs.h. */ 16935int i; 16936_ACEOF 16937if ac_fn_c_try_compile "$LINENO"; then : 16938 xorg_cv_cc_flag_unused_command_line_argument=yes 16939else 16940 xorg_cv_cc_flag_unused_command_line_argument=no 16941fi 16942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16943fi 16944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16947 CFLAGS="$xorg_testset_save_CFLAGS" 16948fi 16949 16950found="no" 16951 16952 if test $found = "no" ; then 16953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16955 fi 16956 16957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16959 fi 16960 16961 CFLAGS="$CFLAGS -Wwrite-strings" 16962 16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16964$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16965 cacheid=xorg_cv_cc_flag__Wwrite_strings 16966 if eval \${$cacheid+:} false; then : 16967 $as_echo_n "(cached) " >&6 16968else 16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970/* end confdefs.h. */ 16971int i; 16972int 16973main () 16974{ 16975 16976 ; 16977 return 0; 16978} 16979_ACEOF 16980if ac_fn_c_try_link "$LINENO"; then : 16981 eval $cacheid=yes 16982else 16983 eval $cacheid=no 16984fi 16985rm -f core conftest.err conftest.$ac_objext \ 16986 conftest$ac_exeext conftest.$ac_ext 16987fi 16988 16989 16990 CFLAGS="$xorg_testset_save_CFLAGS" 16991 16992 eval supported=\$$cacheid 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16994$as_echo "$supported" >&6; } 16995 if test "$supported" = "yes" ; then 16996 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16997 found="yes" 16998 fi 16999 fi 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015xorg_testset_save_CFLAGS="$CFLAGS" 17016 17017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17022 $as_echo_n "(cached) " >&6 17023else 17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17025/* end confdefs.h. */ 17026int i; 17027_ACEOF 17028if ac_fn_c_try_compile "$LINENO"; then : 17029 xorg_cv_cc_flag_unknown_warning_option=yes 17030else 17031 xorg_cv_cc_flag_unknown_warning_option=no 17032fi 17033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17034fi 17035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17038 CFLAGS="$xorg_testset_save_CFLAGS" 17039fi 17040 17041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17044 fi 17045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17049 $as_echo_n "(cached) " >&6 17050else 17051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17052/* end confdefs.h. */ 17053int i; 17054_ACEOF 17055if ac_fn_c_try_compile "$LINENO"; then : 17056 xorg_cv_cc_flag_unused_command_line_argument=yes 17057else 17058 xorg_cv_cc_flag_unused_command_line_argument=no 17059fi 17060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17061fi 17062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17065 CFLAGS="$xorg_testset_save_CFLAGS" 17066fi 17067 17068found="no" 17069 17070 if test $found = "no" ; then 17071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17073 fi 17074 17075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17077 fi 17078 17079 CFLAGS="$CFLAGS -Waddress" 17080 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17082$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17083 cacheid=xorg_cv_cc_flag__Waddress 17084 if eval \${$cacheid+:} false; then : 17085 $as_echo_n "(cached) " >&6 17086else 17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17088/* end confdefs.h. */ 17089int i; 17090int 17091main () 17092{ 17093 17094 ; 17095 return 0; 17096} 17097_ACEOF 17098if ac_fn_c_try_link "$LINENO"; then : 17099 eval $cacheid=yes 17100else 17101 eval $cacheid=no 17102fi 17103rm -f core conftest.err conftest.$ac_objext \ 17104 conftest$ac_exeext conftest.$ac_ext 17105fi 17106 17107 17108 CFLAGS="$xorg_testset_save_CFLAGS" 17109 17110 eval supported=\$$cacheid 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17112$as_echo "$supported" >&6; } 17113 if test "$supported" = "yes" ; then 17114 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17115 found="yes" 17116 fi 17117 fi 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133xorg_testset_save_CFLAGS="$CFLAGS" 17134 17135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17140 $as_echo_n "(cached) " >&6 17141else 17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17143/* end confdefs.h. */ 17144int i; 17145_ACEOF 17146if ac_fn_c_try_compile "$LINENO"; then : 17147 xorg_cv_cc_flag_unknown_warning_option=yes 17148else 17149 xorg_cv_cc_flag_unknown_warning_option=no 17150fi 17151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17152fi 17153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17156 CFLAGS="$xorg_testset_save_CFLAGS" 17157fi 17158 17159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17162 fi 17163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17167 $as_echo_n "(cached) " >&6 17168else 17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17170/* end confdefs.h. */ 17171int i; 17172_ACEOF 17173if ac_fn_c_try_compile "$LINENO"; then : 17174 xorg_cv_cc_flag_unused_command_line_argument=yes 17175else 17176 xorg_cv_cc_flag_unused_command_line_argument=no 17177fi 17178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17179fi 17180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17183 CFLAGS="$xorg_testset_save_CFLAGS" 17184fi 17185 17186found="no" 17187 17188 if test $found = "no" ; then 17189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17191 fi 17192 17193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17195 fi 17196 17197 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17198 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17200$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17201 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17202 if eval \${$cacheid+:} false; then : 17203 $as_echo_n "(cached) " >&6 17204else 17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17206/* end confdefs.h. */ 17207int i; 17208int 17209main () 17210{ 17211 17212 ; 17213 return 0; 17214} 17215_ACEOF 17216if ac_fn_c_try_link "$LINENO"; then : 17217 eval $cacheid=yes 17218else 17219 eval $cacheid=no 17220fi 17221rm -f core conftest.err conftest.$ac_objext \ 17222 conftest$ac_exeext conftest.$ac_ext 17223fi 17224 17225 17226 CFLAGS="$xorg_testset_save_CFLAGS" 17227 17228 eval supported=\$$cacheid 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17230$as_echo "$supported" >&6; } 17231 if test "$supported" = "yes" ; then 17232 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17233 found="yes" 17234 fi 17235 fi 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251xorg_testset_save_CFLAGS="$CFLAGS" 17252 17253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17258 $as_echo_n "(cached) " >&6 17259else 17260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17261/* end confdefs.h. */ 17262int i; 17263_ACEOF 17264if ac_fn_c_try_compile "$LINENO"; then : 17265 xorg_cv_cc_flag_unknown_warning_option=yes 17266else 17267 xorg_cv_cc_flag_unknown_warning_option=no 17268fi 17269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17270fi 17271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17274 CFLAGS="$xorg_testset_save_CFLAGS" 17275fi 17276 17277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17280 fi 17281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17285 $as_echo_n "(cached) " >&6 17286else 17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17288/* end confdefs.h. */ 17289int i; 17290_ACEOF 17291if ac_fn_c_try_compile "$LINENO"; then : 17292 xorg_cv_cc_flag_unused_command_line_argument=yes 17293else 17294 xorg_cv_cc_flag_unused_command_line_argument=no 17295fi 17296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17297fi 17298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17301 CFLAGS="$xorg_testset_save_CFLAGS" 17302fi 17303 17304found="no" 17305 17306 if test $found = "no" ; then 17307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17309 fi 17310 17311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17313 fi 17314 17315 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17316 17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17318$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17319 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17320 if eval \${$cacheid+:} false; then : 17321 $as_echo_n "(cached) " >&6 17322else 17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17324/* end confdefs.h. */ 17325int i; 17326int 17327main () 17328{ 17329 17330 ; 17331 return 0; 17332} 17333_ACEOF 17334if ac_fn_c_try_link "$LINENO"; then : 17335 eval $cacheid=yes 17336else 17337 eval $cacheid=no 17338fi 17339rm -f core conftest.err conftest.$ac_objext \ 17340 conftest$ac_exeext conftest.$ac_ext 17341fi 17342 17343 17344 CFLAGS="$xorg_testset_save_CFLAGS" 17345 17346 eval supported=\$$cacheid 17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17348$as_echo "$supported" >&6; } 17349 if test "$supported" = "yes" ; then 17350 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17351 found="yes" 17352 fi 17353 fi 17354 17355 17356fi 17357 17358 17359 17360 17361 17362 17363 17364 CWARNFLAGS="$BASE_CFLAGS" 17365 if test "x$GCC" = xyes ; then 17366 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17367 fi 17368 17369 17370 17371 17372 17373 17374 17375 17376# Check whether --enable-strict-compilation was given. 17377if test "${enable_strict_compilation+set}" = set; then : 17378 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17379else 17380 STRICT_COMPILE=no 17381fi 17382 17383 17384 17385 17386 17387 17388STRICT_CFLAGS="" 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402xorg_testset_save_CFLAGS="$CFLAGS" 17403 17404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17409 $as_echo_n "(cached) " >&6 17410else 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413int i; 17414_ACEOF 17415if ac_fn_c_try_compile "$LINENO"; then : 17416 xorg_cv_cc_flag_unknown_warning_option=yes 17417else 17418 xorg_cv_cc_flag_unknown_warning_option=no 17419fi 17420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17421fi 17422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17425 CFLAGS="$xorg_testset_save_CFLAGS" 17426fi 17427 17428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17431 fi 17432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17436 $as_echo_n "(cached) " >&6 17437else 17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17439/* end confdefs.h. */ 17440int i; 17441_ACEOF 17442if ac_fn_c_try_compile "$LINENO"; then : 17443 xorg_cv_cc_flag_unused_command_line_argument=yes 17444else 17445 xorg_cv_cc_flag_unused_command_line_argument=no 17446fi 17447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17448fi 17449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17452 CFLAGS="$xorg_testset_save_CFLAGS" 17453fi 17454 17455found="no" 17456 17457 if test $found = "no" ; then 17458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17460 fi 17461 17462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17464 fi 17465 17466 CFLAGS="$CFLAGS -pedantic" 17467 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17469$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17470 cacheid=xorg_cv_cc_flag__pedantic 17471 if eval \${$cacheid+:} false; then : 17472 $as_echo_n "(cached) " >&6 17473else 17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17475/* end confdefs.h. */ 17476int i; 17477int 17478main () 17479{ 17480 17481 ; 17482 return 0; 17483} 17484_ACEOF 17485if ac_fn_c_try_link "$LINENO"; then : 17486 eval $cacheid=yes 17487else 17488 eval $cacheid=no 17489fi 17490rm -f core conftest.err conftest.$ac_objext \ 17491 conftest$ac_exeext conftest.$ac_ext 17492fi 17493 17494 17495 CFLAGS="$xorg_testset_save_CFLAGS" 17496 17497 eval supported=\$$cacheid 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17499$as_echo "$supported" >&6; } 17500 if test "$supported" = "yes" ; then 17501 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17502 found="yes" 17503 fi 17504 fi 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520xorg_testset_save_CFLAGS="$CFLAGS" 17521 17522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17527 $as_echo_n "(cached) " >&6 17528else 17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530/* end confdefs.h. */ 17531int i; 17532_ACEOF 17533if ac_fn_c_try_compile "$LINENO"; then : 17534 xorg_cv_cc_flag_unknown_warning_option=yes 17535else 17536 xorg_cv_cc_flag_unknown_warning_option=no 17537fi 17538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17539fi 17540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17543 CFLAGS="$xorg_testset_save_CFLAGS" 17544fi 17545 17546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17549 fi 17550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17554 $as_echo_n "(cached) " >&6 17555else 17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17557/* end confdefs.h. */ 17558int i; 17559_ACEOF 17560if ac_fn_c_try_compile "$LINENO"; then : 17561 xorg_cv_cc_flag_unused_command_line_argument=yes 17562else 17563 xorg_cv_cc_flag_unused_command_line_argument=no 17564fi 17565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17566fi 17567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17570 CFLAGS="$xorg_testset_save_CFLAGS" 17571fi 17572 17573found="no" 17574 17575 if test $found = "no" ; then 17576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17578 fi 17579 17580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17582 fi 17583 17584 CFLAGS="$CFLAGS -Werror" 17585 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17587$as_echo_n "checking if $CC supports -Werror... " >&6; } 17588 cacheid=xorg_cv_cc_flag__Werror 17589 if eval \${$cacheid+:} false; then : 17590 $as_echo_n "(cached) " >&6 17591else 17592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17593/* end confdefs.h. */ 17594int i; 17595int 17596main () 17597{ 17598 17599 ; 17600 return 0; 17601} 17602_ACEOF 17603if ac_fn_c_try_link "$LINENO"; then : 17604 eval $cacheid=yes 17605else 17606 eval $cacheid=no 17607fi 17608rm -f core conftest.err conftest.$ac_objext \ 17609 conftest$ac_exeext conftest.$ac_ext 17610fi 17611 17612 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614 17615 eval supported=\$$cacheid 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17617$as_echo "$supported" >&6; } 17618 if test "$supported" = "yes" ; then 17619 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17620 found="yes" 17621 fi 17622 fi 17623 17624 if test $found = "no" ; then 17625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17627 fi 17628 17629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17631 fi 17632 17633 CFLAGS="$CFLAGS -errwarn" 17634 17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17636$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17637 cacheid=xorg_cv_cc_flag__errwarn 17638 if eval \${$cacheid+:} false; then : 17639 $as_echo_n "(cached) " >&6 17640else 17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17642/* end confdefs.h. */ 17643int i; 17644int 17645main () 17646{ 17647 17648 ; 17649 return 0; 17650} 17651_ACEOF 17652if ac_fn_c_try_link "$LINENO"; then : 17653 eval $cacheid=yes 17654else 17655 eval $cacheid=no 17656fi 17657rm -f core conftest.err conftest.$ac_objext \ 17658 conftest$ac_exeext conftest.$ac_ext 17659fi 17660 17661 17662 CFLAGS="$xorg_testset_save_CFLAGS" 17663 17664 eval supported=\$$cacheid 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17666$as_echo "$supported" >&6; } 17667 if test "$supported" = "yes" ; then 17668 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17669 found="yes" 17670 fi 17671 fi 17672 17673 17674 17675# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17676# activate it with -Werror, so we add it here explicitly. 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690xorg_testset_save_CFLAGS="$CFLAGS" 17691 17692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17697 $as_echo_n "(cached) " >&6 17698else 17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17700/* end confdefs.h. */ 17701int i; 17702_ACEOF 17703if ac_fn_c_try_compile "$LINENO"; then : 17704 xorg_cv_cc_flag_unknown_warning_option=yes 17705else 17706 xorg_cv_cc_flag_unknown_warning_option=no 17707fi 17708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17709fi 17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17713 CFLAGS="$xorg_testset_save_CFLAGS" 17714fi 17715 17716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17719 fi 17720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17724 $as_echo_n "(cached) " >&6 17725else 17726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17727/* end confdefs.h. */ 17728int i; 17729_ACEOF 17730if ac_fn_c_try_compile "$LINENO"; then : 17731 xorg_cv_cc_flag_unused_command_line_argument=yes 17732else 17733 xorg_cv_cc_flag_unused_command_line_argument=no 17734fi 17735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17736fi 17737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17740 CFLAGS="$xorg_testset_save_CFLAGS" 17741fi 17742 17743found="no" 17744 17745 if test $found = "no" ; then 17746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17748 fi 17749 17750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17752 fi 17753 17754 CFLAGS="$CFLAGS -Werror=attributes" 17755 17756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17757$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17758 cacheid=xorg_cv_cc_flag__Werror_attributes 17759 if eval \${$cacheid+:} false; then : 17760 $as_echo_n "(cached) " >&6 17761else 17762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17763/* end confdefs.h. */ 17764int i; 17765int 17766main () 17767{ 17768 17769 ; 17770 return 0; 17771} 17772_ACEOF 17773if ac_fn_c_try_link "$LINENO"; then : 17774 eval $cacheid=yes 17775else 17776 eval $cacheid=no 17777fi 17778rm -f core conftest.err conftest.$ac_objext \ 17779 conftest$ac_exeext conftest.$ac_ext 17780fi 17781 17782 17783 CFLAGS="$xorg_testset_save_CFLAGS" 17784 17785 eval supported=\$$cacheid 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17787$as_echo "$supported" >&6; } 17788 if test "$supported" = "yes" ; then 17789 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17790 found="yes" 17791 fi 17792 fi 17793 17794 17795 17796if test "x$STRICT_COMPILE" = "xyes"; then 17797 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17798 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17799fi 17800 17801 17802 17803 17804 17805 17806cat >>confdefs.h <<_ACEOF 17807#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17808_ACEOF 17809 17810 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17811 if test "x$PVM" = "x"; then 17812 PVM="0" 17813 fi 17814 17815cat >>confdefs.h <<_ACEOF 17816#define PACKAGE_VERSION_MINOR $PVM 17817_ACEOF 17818 17819 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17820 if test "x$PVP" = "x"; then 17821 PVP="0" 17822 fi 17823 17824cat >>confdefs.h <<_ACEOF 17825#define PACKAGE_VERSION_PATCHLEVEL $PVP 17826_ACEOF 17827 17828 17829 17830CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17831mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17832|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17833echo 'git directory not found: installing possibly empty changelog.' >&2)" 17834 17835 17836 17837 17838macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17839INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17840mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17841|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17842echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17843 17844 17845 17846 17847 17848 17849if test x$APP_MAN_SUFFIX = x ; then 17850 APP_MAN_SUFFIX=1 17851fi 17852if test x$APP_MAN_DIR = x ; then 17853 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17854fi 17855 17856if test x$LIB_MAN_SUFFIX = x ; then 17857 LIB_MAN_SUFFIX=3 17858fi 17859if test x$LIB_MAN_DIR = x ; then 17860 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17861fi 17862 17863if test x$FILE_MAN_SUFFIX = x ; then 17864 case $host_os in 17865 solaris*) FILE_MAN_SUFFIX=4 ;; 17866 *) FILE_MAN_SUFFIX=5 ;; 17867 esac 17868fi 17869if test x$FILE_MAN_DIR = x ; then 17870 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17871fi 17872 17873if test x$MISC_MAN_SUFFIX = x ; then 17874 case $host_os in 17875 solaris*) MISC_MAN_SUFFIX=5 ;; 17876 *) MISC_MAN_SUFFIX=7 ;; 17877 esac 17878fi 17879if test x$MISC_MAN_DIR = x ; then 17880 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17881fi 17882 17883if test x$DRIVER_MAN_SUFFIX = x ; then 17884 case $host_os in 17885 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17886 *) DRIVER_MAN_SUFFIX=4 ;; 17887 esac 17888fi 17889if test x$DRIVER_MAN_DIR = x ; then 17890 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17891fi 17892 17893if test x$ADMIN_MAN_SUFFIX = x ; then 17894 case $host_os in 17895 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17896 *) ADMIN_MAN_SUFFIX=8 ;; 17897 esac 17898fi 17899if test x$ADMIN_MAN_DIR = x ; then 17900 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17901fi 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917XORG_MAN_PAGE="X Version 11" 17918 17919MAN_SUBSTS="\ 17920 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17921 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17922 -e 's|__xservername__|Xorg|g' \ 17923 -e 's|__xconfigfile__|xorg.conf|g' \ 17924 -e 's|__projectroot__|\$(prefix)|g' \ 17925 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17926 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17927 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17928 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17929 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17930 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17931 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17932 17933 17934 17935# Check whether --enable-silent-rules was given. 17936if test "${enable_silent_rules+set}" = set; then : 17937 enableval=$enable_silent_rules; 17938fi 17939 17940case $enable_silent_rules in # ((( 17941 yes) AM_DEFAULT_VERBOSITY=0;; 17942 no) AM_DEFAULT_VERBOSITY=1;; 17943 *) AM_DEFAULT_VERBOSITY=0;; 17944esac 17945am_make=${MAKE-make} 17946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17947$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17948if ${am_cv_make_support_nested_variables+:} false; then : 17949 $as_echo_n "(cached) " >&6 17950else 17951 if $as_echo 'TRUE=$(BAR$(V)) 17952BAR0=false 17953BAR1=true 17954V=1 17955am__doit: 17956 @$(TRUE) 17957.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17958 am_cv_make_support_nested_variables=yes 17959else 17960 am_cv_make_support_nested_variables=no 17961fi 17962fi 17963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17964$as_echo "$am_cv_make_support_nested_variables" >&6; } 17965if test $am_cv_make_support_nested_variables = yes; then 17966 AM_V='$(V)' 17967 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17968else 17969 AM_V=$AM_DEFAULT_VERBOSITY 17970 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17971fi 17972AM_BACKSLASH='\' 17973 17974 17975 17976pciids_path=/usr/share/hwdata 17977 17978# Check whether --with-pciids-path was given. 17979if test "${with_pciids_path+set}" = set; then : 17980 withval=$with_pciids_path; pciids_path="$withval" 17981fi 17982 17983 17984 prefix_NONE= 17985 exec_prefix_NONE= 17986 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 17987 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 17988 eval ax_define_dir="\"$pciids_path\"" 17989 eval ax_define_dir="\"$ax_define_dir\"" 17990 PCIIDS_PATH="$ax_define_dir" 17991 17992 17993cat >>confdefs.h <<_ACEOF 17994#define PCIIDS_PATH "$ax_define_dir" 17995_ACEOF 17996 17997 test "$prefix_NONE" && prefix=NONE 17998 test "$exec_prefix_NONE" && exec_prefix=NONE 17999 18000 18001# Check whether --enable-linux-rom-fallback was given. 18002if test "${enable_linux_rom_fallback+set}" = set; then : 18003 enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval 18004else 18005 LINUX_ROM=no 18006fi 18007 18008 18009if test "x$LINUX_ROM" = xyes; then 18010 18011$as_echo "#define LINUX_ROM 1" >>confdefs.h 18012 18013fi 18014 18015use_zlib=no 18016 18017# Check whether --with-zlib was given. 18018if test "${with_zlib+set}" = set; then : 18019 withval=$with_zlib; use_zlib="$withval" 18020fi 18021 18022if test "x$use_zlib" = xyes; then 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 18024$as_echo_n "checking for gzopen in -lz... " >&6; } 18025if ${ac_cv_lib_z_gzopen+:} false; then : 18026 $as_echo_n "(cached) " >&6 18027else 18028 ac_check_lib_save_LIBS=$LIBS 18029LIBS="-lz $LIBS" 18030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18031/* end confdefs.h. */ 18032 18033/* Override any GCC internal prototype to avoid an error. 18034 Use char because int might match the return type of a GCC 18035 builtin and then its argument prototype would still apply. */ 18036#ifdef __cplusplus 18037extern "C" 18038#endif 18039char gzopen (); 18040int 18041main () 18042{ 18043return gzopen (); 18044 ; 18045 return 0; 18046} 18047_ACEOF 18048if ac_fn_c_try_link "$LINENO"; then : 18049 ac_cv_lib_z_gzopen=yes 18050else 18051 ac_cv_lib_z_gzopen=no 18052fi 18053rm -f core conftest.err conftest.$ac_objext \ 18054 conftest$ac_exeext conftest.$ac_ext 18055LIBS=$ac_check_lib_save_LIBS 18056fi 18057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 18058$as_echo "$ac_cv_lib_z_gzopen" >&6; } 18059if test "x$ac_cv_lib_z_gzopen" = xyes; then : 18060 PCIACCESS_LIBS="$PCIACCESS_LIBS -lz" 18061else 18062 as_fn_error $? "Check for zlib library failed" "$LINENO" 5 18063fi 18064 18065 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 18066if test "x$ac_cv_header_zlib_h" = xyes; then : 18067 18068$as_echo "#define HAVE_ZLIB 1" >>confdefs.h 18069 18070else 18071 as_fn_error $? "Check for zlib.h header file failed" "$LINENO" 5 18072fi 18073 18074 18075fi 18076 18077case $host_os in 18078 *freebsd* | *dragonfly*) 18079 freebsd=yes 18080 ;; 18081 *linux*) 18082 linux=yes 18083 ;; 18084 *netbsd*) 18085 case $host in 18086 *i3-986*) 18087 PCIACCESS_LIBS="$PCIACCESS_LIBS -li386" 18088 ;; 18089 *x86_64*|*amd64*) 18090 PCIACCESS_LIBS="$PCIACCESS_LIBS -lx86_64" 18091 ;; 18092 *alpha*) 18093 PCIACCESS_LIBS="$PCIACCESS_LIBS -lalpha" 18094 ;; 18095 esac 18096 PCIACCESS_LIBS="$PCIACCESS_LIBS -lpci" 18097 netbsd=yes 18098 ;; 18099 *openbsd*) 18100 openbsd=yes 18101 ;; 18102 *solaris*) 18103 solaris=yes 18104 PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo" 18105 ;; 18106 gnu*) 18107 gnu=yes 18108 ;; 18109 *cygwin*) 18110 cygwin=yes 18111 PCIACCESS_LIBS="$PCIACCESS_LIBS" 18112 ;; 18113esac 18114 18115 if test "x$linux" = xyes; then 18116 LINUX_TRUE= 18117 LINUX_FALSE='#' 18118else 18119 LINUX_TRUE='#' 18120 LINUX_FALSE= 18121fi 18122 18123 if test "x$freebsd" = xyes; then 18124 FREEBSD_TRUE= 18125 FREEBSD_FALSE='#' 18126else 18127 FREEBSD_TRUE='#' 18128 FREEBSD_FALSE= 18129fi 18130 18131 if test "x$netbsd" = xyes; then 18132 NETBSD_TRUE= 18133 NETBSD_FALSE='#' 18134else 18135 NETBSD_TRUE='#' 18136 NETBSD_FALSE= 18137fi 18138 18139 if test "x$openbsd" = xyes; then 18140 OPENBSD_TRUE= 18141 OPENBSD_FALSE='#' 18142else 18143 OPENBSD_TRUE='#' 18144 OPENBSD_FALSE= 18145fi 18146 18147 if test "x$solaris" = xyes; then 18148 SOLARIS_TRUE= 18149 SOLARIS_FALSE='#' 18150else 18151 SOLARIS_TRUE='#' 18152 SOLARIS_FALSE= 18153fi 18154 18155 if test "x$gnu" = xyes; then 18156 GNU_TRUE= 18157 GNU_FALSE='#' 18158else 18159 GNU_TRUE='#' 18160 GNU_FALSE= 18161fi 18162 18163 if test "x$cygwin" = xyes; then 18164 CYGWIN_TRUE= 18165 CYGWIN_FALSE='#' 18166else 18167 CYGWIN_TRUE='#' 18168 CYGWIN_FALSE= 18169fi 18170 18171 18172# Check whether --enable-largefile was given. 18173if test "${enable_largefile+set}" = set; then : 18174 enableval=$enable_largefile; 18175fi 18176 18177if test "$enable_largefile" != no; then 18178 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 18180$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 18181if ${ac_cv_sys_largefile_CC+:} false; then : 18182 $as_echo_n "(cached) " >&6 18183else 18184 ac_cv_sys_largefile_CC=no 18185 if test "$GCC" != yes; then 18186 ac_save_CC=$CC 18187 while :; do 18188 # IRIX 6.2 and later do not support large files by default, 18189 # so use the C compiler's -n32 option if that helps. 18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18191/* end confdefs.h. */ 18192#include <sys/types.h> 18193 /* Check that off_t can represent 2**63 - 1 correctly. 18194 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18195 since some C++ compilers masquerading as C compilers 18196 incorrectly reject 9223372036854775807. */ 18197#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18199 && LARGE_OFF_T % 2147483647 == 1) 18200 ? 1 : -1]; 18201int 18202main () 18203{ 18204 18205 ; 18206 return 0; 18207} 18208_ACEOF 18209 if ac_fn_c_try_compile "$LINENO"; then : 18210 break 18211fi 18212rm -f core conftest.err conftest.$ac_objext 18213 CC="$CC -n32" 18214 if ac_fn_c_try_compile "$LINENO"; then : 18215 ac_cv_sys_largefile_CC=' -n32'; break 18216fi 18217rm -f core conftest.err conftest.$ac_objext 18218 break 18219 done 18220 CC=$ac_save_CC 18221 rm -f conftest.$ac_ext 18222 fi 18223fi 18224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18225$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18226 if test "$ac_cv_sys_largefile_CC" != no; then 18227 CC=$CC$ac_cv_sys_largefile_CC 18228 fi 18229 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18231$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18232if ${ac_cv_sys_file_offset_bits+:} false; then : 18233 $as_echo_n "(cached) " >&6 18234else 18235 while :; do 18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18237/* end confdefs.h. */ 18238#include <sys/types.h> 18239 /* Check that off_t can represent 2**63 - 1 correctly. 18240 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18241 since some C++ compilers masquerading as C compilers 18242 incorrectly reject 9223372036854775807. */ 18243#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18245 && LARGE_OFF_T % 2147483647 == 1) 18246 ? 1 : -1]; 18247int 18248main () 18249{ 18250 18251 ; 18252 return 0; 18253} 18254_ACEOF 18255if ac_fn_c_try_compile "$LINENO"; then : 18256 ac_cv_sys_file_offset_bits=no; break 18257fi 18258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18260/* end confdefs.h. */ 18261#define _FILE_OFFSET_BITS 64 18262#include <sys/types.h> 18263 /* Check that off_t can represent 2**63 - 1 correctly. 18264 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18265 since some C++ compilers masquerading as C compilers 18266 incorrectly reject 9223372036854775807. */ 18267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18269 && LARGE_OFF_T % 2147483647 == 1) 18270 ? 1 : -1]; 18271int 18272main () 18273{ 18274 18275 ; 18276 return 0; 18277} 18278_ACEOF 18279if ac_fn_c_try_compile "$LINENO"; then : 18280 ac_cv_sys_file_offset_bits=64; break 18281fi 18282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18283 ac_cv_sys_file_offset_bits=unknown 18284 break 18285done 18286fi 18287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18288$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18289case $ac_cv_sys_file_offset_bits in #( 18290 no | unknown) ;; 18291 *) 18292cat >>confdefs.h <<_ACEOF 18293#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18294_ACEOF 18295;; 18296esac 18297rm -rf conftest* 18298 if test $ac_cv_sys_file_offset_bits = unknown; then 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18300$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18301if ${ac_cv_sys_large_files+:} false; then : 18302 $as_echo_n "(cached) " >&6 18303else 18304 while :; do 18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18306/* end confdefs.h. */ 18307#include <sys/types.h> 18308 /* Check that off_t can represent 2**63 - 1 correctly. 18309 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18310 since some C++ compilers masquerading as C compilers 18311 incorrectly reject 9223372036854775807. */ 18312#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18314 && LARGE_OFF_T % 2147483647 == 1) 18315 ? 1 : -1]; 18316int 18317main () 18318{ 18319 18320 ; 18321 return 0; 18322} 18323_ACEOF 18324if ac_fn_c_try_compile "$LINENO"; then : 18325 ac_cv_sys_large_files=no; break 18326fi 18327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18329/* end confdefs.h. */ 18330#define _LARGE_FILES 1 18331#include <sys/types.h> 18332 /* Check that off_t can represent 2**63 - 1 correctly. 18333 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18334 since some C++ compilers masquerading as C compilers 18335 incorrectly reject 9223372036854775807. */ 18336#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18337 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18338 && LARGE_OFF_T % 2147483647 == 1) 18339 ? 1 : -1]; 18340int 18341main () 18342{ 18343 18344 ; 18345 return 0; 18346} 18347_ACEOF 18348if ac_fn_c_try_compile "$LINENO"; then : 18349 ac_cv_sys_large_files=1; break 18350fi 18351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18352 ac_cv_sys_large_files=unknown 18353 break 18354done 18355fi 18356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18357$as_echo "$ac_cv_sys_large_files" >&6; } 18358case $ac_cv_sys_large_files in #( 18359 no | unknown) ;; 18360 *) 18361cat >>confdefs.h <<_ACEOF 18362#define _LARGE_FILES $ac_cv_sys_large_files 18363_ACEOF 18364;; 18365esac 18366rm -rf conftest* 18367 fi 18368 18369 18370fi 18371 18372 18373for ac_header in err.h 18374do : 18375 ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 18376if test "x$ac_cv_header_err_h" = xyes; then : 18377 cat >>confdefs.h <<_ACEOF 18378#define HAVE_ERR_H 1 18379_ACEOF 18380 18381fi 18382 18383done 18384 18385 18386if test "x$netbsd" = xyes; then 18387for ac_header in machine/sysarch.h 18388do : 18389 ac_fn_c_check_header_mongrel "$LINENO" "machine/sysarch.h" "ac_cv_header_machine_sysarch_h" "$ac_includes_default" 18390if test "x$ac_cv_header_machine_sysarch_h" = xyes; then : 18391 cat >>confdefs.h <<_ACEOF 18392#define HAVE_MACHINE_SYSARCH_H 1 18393_ACEOF 18394 18395fi 18396 18397done 18398 18399for ac_header in machine/mtrr.h 18400do : 18401 ac_fn_c_check_header_compile "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "#ifdef HAVE_MACHINE_SYSARCH_H 18402#include <sys/types.h> 18403#include <machine/sysarch.h> 18404#endif 18405 18406" 18407if test "x$ac_cv_header_machine_mtrr_h" = xyes; then : 18408 cat >>confdefs.h <<_ACEOF 18409#define HAVE_MACHINE_MTRR_H 1 18410_ACEOF 18411 have_mtrr_h="yes" 18412else 18413 have_mtrr_h="no" 18414fi 18415 18416done 18417 18418else 18419ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default" 18420if test "x$ac_cv_header_asm_mtrr_h" = xyes; then : 18421 have_mtrr_h="yes" 18422else 18423 have_mtrr_h="no" 18424fi 18425 18426 18427fi 18428 18429if test "x$have_mtrr_h" = xyes; then 18430 18431$as_echo "#define HAVE_MTRR 1" >>confdefs.h 18432 18433fi 18434 18435# check for the pci_io.pi_sel.pc_domain 18436ac_fn_c_check_member "$LINENO" "struct pci_io" "pi_sel.pc_domain" "ac_cv_member_struct_pci_io_pi_sel_pc_domain" " #include <sys/types.h> 18437 #include <sys/pciio.h> 18438 18439" 18440if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = xyes; then : 18441 18442$as_echo "#define HAVE_PCI_IO_PC_DOMAIN 1" >>confdefs.h 18443 18444fi 18445 18446 18447 18448 18449 18450ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc" 18451 18452cat >confcache <<\_ACEOF 18453# This file is a shell script that caches the results of configure 18454# tests run on this system so they can be shared between configure 18455# scripts and configure runs, see configure's option --config-cache. 18456# It is not useful on other systems. If it contains results you don't 18457# want to keep, you may remove or edit it. 18458# 18459# config.status only pays attention to the cache file if you give it 18460# the --recheck option to rerun configure. 18461# 18462# `ac_cv_env_foo' variables (set or unset) will be overridden when 18463# loading this file, other *unset* `ac_cv_foo' will be assigned the 18464# following values. 18465 18466_ACEOF 18467 18468# The following way of writing the cache mishandles newlines in values, 18469# but we know of no workaround that is simple, portable, and efficient. 18470# So, we kill variables containing newlines. 18471# Ultrix sh set writes to stderr and can't be redirected directly, 18472# and sets the high bit in the cache file unless we assign to the vars. 18473( 18474 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18475 eval ac_val=\$$ac_var 18476 case $ac_val in #( 18477 *${as_nl}*) 18478 case $ac_var in #( 18479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18481 esac 18482 case $ac_var in #( 18483 _ | IFS | as_nl) ;; #( 18484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18485 *) { eval $ac_var=; unset $ac_var;} ;; 18486 esac ;; 18487 esac 18488 done 18489 18490 (set) 2>&1 | 18491 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18492 *${as_nl}ac_space=\ *) 18493 # `set' does not quote correctly, so add quotes: double-quote 18494 # substitution turns \\\\ into \\, and sed turns \\ into \. 18495 sed -n \ 18496 "s/'/'\\\\''/g; 18497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18498 ;; #( 18499 *) 18500 # `set' quotes correctly as required by POSIX, so do not add quotes. 18501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18502 ;; 18503 esac | 18504 sort 18505) | 18506 sed ' 18507 /^ac_cv_env_/b end 18508 t clear 18509 :clear 18510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18511 t end 18512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18513 :end' >>confcache 18514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18515 if test -w "$cache_file"; then 18516 if test "x$cache_file" != "x/dev/null"; then 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18518$as_echo "$as_me: updating cache $cache_file" >&6;} 18519 if test ! -f "$cache_file" || test -h "$cache_file"; then 18520 cat confcache >"$cache_file" 18521 else 18522 case $cache_file in #( 18523 */* | ?:*) 18524 mv -f confcache "$cache_file"$$ && 18525 mv -f "$cache_file"$$ "$cache_file" ;; #( 18526 *) 18527 mv -f confcache "$cache_file" ;; 18528 esac 18529 fi 18530 fi 18531 else 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18533$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18534 fi 18535fi 18536rm -f confcache 18537 18538test "x$prefix" = xNONE && prefix=$ac_default_prefix 18539# Let make expand exec_prefix. 18540test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18541 18542DEFS=-DHAVE_CONFIG_H 18543 18544ac_libobjs= 18545ac_ltlibobjs= 18546U= 18547for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18548 # 1. Remove the extension, and $U if already installed. 18549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18550 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18552 # will be set to the directory where LIBOBJS objects are built. 18553 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18554 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18555done 18556LIBOBJS=$ac_libobjs 18557 18558LTLIBOBJS=$ac_ltlibobjs 18559 18560 18561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18562$as_echo_n "checking that generated files are newer than configure... " >&6; } 18563 if test -n "$am_sleep_pid"; then 18564 # Hide warnings about reused PIDs. 18565 wait $am_sleep_pid 2>/dev/null 18566 fi 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18568$as_echo "done" >&6; } 18569 if test -n "$EXEEXT"; then 18570 am__EXEEXT_TRUE= 18571 am__EXEEXT_FALSE='#' 18572else 18573 am__EXEEXT_TRUE='#' 18574 am__EXEEXT_FALSE= 18575fi 18576 18577if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18578 as_fn_error $? "conditional \"AMDEP\" was never defined. 18579Usually this means the macro was only invoked conditionally." "$LINENO" 5 18580fi 18581if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18582 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18583Usually this means the macro was only invoked conditionally." "$LINENO" 5 18584fi 18585if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 18586 as_fn_error $? "conditional \"LINUX\" was never defined. 18587Usually this means the macro was only invoked conditionally." "$LINENO" 5 18588fi 18589if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 18590 as_fn_error $? "conditional \"FREEBSD\" was never defined. 18591Usually this means the macro was only invoked conditionally." "$LINENO" 5 18592fi 18593if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 18594 as_fn_error $? "conditional \"NETBSD\" was never defined. 18595Usually this means the macro was only invoked conditionally." "$LINENO" 5 18596fi 18597if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then 18598 as_fn_error $? "conditional \"OPENBSD\" was never defined. 18599Usually this means the macro was only invoked conditionally." "$LINENO" 5 18600fi 18601if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 18602 as_fn_error $? "conditional \"SOLARIS\" was never defined. 18603Usually this means the macro was only invoked conditionally." "$LINENO" 5 18604fi 18605if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then 18606 as_fn_error $? "conditional \"GNU\" was never defined. 18607Usually this means the macro was only invoked conditionally." "$LINENO" 5 18608fi 18609if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 18610 as_fn_error $? "conditional \"CYGWIN\" was never defined. 18611Usually this means the macro was only invoked conditionally." "$LINENO" 5 18612fi 18613 18614: "${CONFIG_STATUS=./config.status}" 18615ac_write_fail=0 18616ac_clean_files_save=$ac_clean_files 18617ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18618{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18619$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18620as_write_fail=0 18621cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18622#! $SHELL 18623# Generated by $as_me. 18624# Run this file to recreate the current configuration. 18625# Compiler output produced by configure, useful for debugging 18626# configure, is in config.log if it exists. 18627 18628debug=false 18629ac_cs_recheck=false 18630ac_cs_silent=false 18631 18632SHELL=\${CONFIG_SHELL-$SHELL} 18633export SHELL 18634_ASEOF 18635cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18636## -------------------- ## 18637## M4sh Initialization. ## 18638## -------------------- ## 18639 18640# Be more Bourne compatible 18641DUALCASE=1; export DUALCASE # for MKS sh 18642if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18643 emulate sh 18644 NULLCMD=: 18645 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18646 # is contrary to our usage. Disable this feature. 18647 alias -g '${1+"$@"}'='"$@"' 18648 setopt NO_GLOB_SUBST 18649else 18650 case `(set -o) 2>/dev/null` in #( 18651 *posix*) : 18652 set -o posix ;; #( 18653 *) : 18654 ;; 18655esac 18656fi 18657 18658 18659as_nl=' 18660' 18661export as_nl 18662# Printing a long string crashes Solaris 7 /usr/bin/printf. 18663as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18664as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18665as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18666# Prefer a ksh shell builtin over an external printf program on Solaris, 18667# but without wasting forks for bash or zsh. 18668if test -z "$BASH_VERSION$ZSH_VERSION" \ 18669 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18670 as_echo='print -r --' 18671 as_echo_n='print -rn --' 18672elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18673 as_echo='printf %s\n' 18674 as_echo_n='printf %s' 18675else 18676 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18677 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18678 as_echo_n='/usr/ucb/echo -n' 18679 else 18680 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18681 as_echo_n_body='eval 18682 arg=$1; 18683 case $arg in #( 18684 *"$as_nl"*) 18685 expr "X$arg" : "X\\(.*\\)$as_nl"; 18686 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18687 esac; 18688 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18689 ' 18690 export as_echo_n_body 18691 as_echo_n='sh -c $as_echo_n_body as_echo' 18692 fi 18693 export as_echo_body 18694 as_echo='sh -c $as_echo_body as_echo' 18695fi 18696 18697# The user is always right. 18698if test "${PATH_SEPARATOR+set}" != set; then 18699 PATH_SEPARATOR=: 18700 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18701 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18702 PATH_SEPARATOR=';' 18703 } 18704fi 18705 18706 18707# IFS 18708# We need space, tab and new line, in precisely that order. Quoting is 18709# there to prevent editors from complaining about space-tab. 18710# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18711# splitting by setting IFS to empty value.) 18712IFS=" "" $as_nl" 18713 18714# Find who we are. Look in the path if we contain no directory separator. 18715as_myself= 18716case $0 in #(( 18717 *[\\/]* ) as_myself=$0 ;; 18718 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18719for as_dir in $PATH 18720do 18721 IFS=$as_save_IFS 18722 test -z "$as_dir" && as_dir=. 18723 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18724 done 18725IFS=$as_save_IFS 18726 18727 ;; 18728esac 18729# We did not find ourselves, most probably we were run as `sh COMMAND' 18730# in which case we are not to be found in the path. 18731if test "x$as_myself" = x; then 18732 as_myself=$0 18733fi 18734if test ! -f "$as_myself"; then 18735 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18736 exit 1 18737fi 18738 18739# Unset variables that we do not need and which cause bugs (e.g. in 18740# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18741# suppresses any "Segmentation fault" message there. '((' could 18742# trigger a bug in pdksh 5.2.14. 18743for as_var in BASH_ENV ENV MAIL MAILPATH 18744do eval test x\${$as_var+set} = xset \ 18745 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18746done 18747PS1='$ ' 18748PS2='> ' 18749PS4='+ ' 18750 18751# NLS nuisances. 18752LC_ALL=C 18753export LC_ALL 18754LANGUAGE=C 18755export LANGUAGE 18756 18757# CDPATH. 18758(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18759 18760 18761# as_fn_error STATUS ERROR [LINENO LOG_FD] 18762# ---------------------------------------- 18763# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18764# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18765# script with STATUS, using 1 if that was 0. 18766as_fn_error () 18767{ 18768 as_status=$1; test $as_status -eq 0 && as_status=1 18769 if test "$4"; then 18770 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18771 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18772 fi 18773 $as_echo "$as_me: error: $2" >&2 18774 as_fn_exit $as_status 18775} # as_fn_error 18776 18777 18778# as_fn_set_status STATUS 18779# ----------------------- 18780# Set $? to STATUS, without forking. 18781as_fn_set_status () 18782{ 18783 return $1 18784} # as_fn_set_status 18785 18786# as_fn_exit STATUS 18787# ----------------- 18788# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18789as_fn_exit () 18790{ 18791 set +e 18792 as_fn_set_status $1 18793 exit $1 18794} # as_fn_exit 18795 18796# as_fn_unset VAR 18797# --------------- 18798# Portably unset VAR. 18799as_fn_unset () 18800{ 18801 { eval $1=; unset $1;} 18802} 18803as_unset=as_fn_unset 18804# as_fn_append VAR VALUE 18805# ---------------------- 18806# Append the text in VALUE to the end of the definition contained in VAR. Take 18807# advantage of any shell optimizations that allow amortized linear growth over 18808# repeated appends, instead of the typical quadratic growth present in naive 18809# implementations. 18810if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18811 eval 'as_fn_append () 18812 { 18813 eval $1+=\$2 18814 }' 18815else 18816 as_fn_append () 18817 { 18818 eval $1=\$$1\$2 18819 } 18820fi # as_fn_append 18821 18822# as_fn_arith ARG... 18823# ------------------ 18824# Perform arithmetic evaluation on the ARGs, and store the result in the 18825# global $as_val. Take advantage of shells that can avoid forks. The arguments 18826# must be portable across $(()) and expr. 18827if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18828 eval 'as_fn_arith () 18829 { 18830 as_val=$(( $* )) 18831 }' 18832else 18833 as_fn_arith () 18834 { 18835 as_val=`expr "$@" || test $? -eq 1` 18836 } 18837fi # as_fn_arith 18838 18839 18840if expr a : '\(a\)' >/dev/null 2>&1 && 18841 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18842 as_expr=expr 18843else 18844 as_expr=false 18845fi 18846 18847if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18848 as_basename=basename 18849else 18850 as_basename=false 18851fi 18852 18853if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18854 as_dirname=dirname 18855else 18856 as_dirname=false 18857fi 18858 18859as_me=`$as_basename -- "$0" || 18860$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18861 X"$0" : 'X\(//\)$' \| \ 18862 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18863$as_echo X/"$0" | 18864 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18865 s//\1/ 18866 q 18867 } 18868 /^X\/\(\/\/\)$/{ 18869 s//\1/ 18870 q 18871 } 18872 /^X\/\(\/\).*/{ 18873 s//\1/ 18874 q 18875 } 18876 s/.*/./; q'` 18877 18878# Avoid depending upon Character Ranges. 18879as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18880as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18881as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18882as_cr_digits='0123456789' 18883as_cr_alnum=$as_cr_Letters$as_cr_digits 18884 18885ECHO_C= ECHO_N= ECHO_T= 18886case `echo -n x` in #((((( 18887-n*) 18888 case `echo 'xy\c'` in 18889 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18890 xy) ECHO_C='\c';; 18891 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18892 ECHO_T=' ';; 18893 esac;; 18894*) 18895 ECHO_N='-n';; 18896esac 18897 18898rm -f conf$$ conf$$.exe conf$$.file 18899if test -d conf$$.dir; then 18900 rm -f conf$$.dir/conf$$.file 18901else 18902 rm -f conf$$.dir 18903 mkdir conf$$.dir 2>/dev/null 18904fi 18905if (echo >conf$$.file) 2>/dev/null; then 18906 if ln -s conf$$.file conf$$ 2>/dev/null; then 18907 as_ln_s='ln -s' 18908 # ... but there are two gotchas: 18909 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18910 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18911 # In both cases, we have to default to `cp -pR'. 18912 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18913 as_ln_s='cp -pR' 18914 elif ln conf$$.file conf$$ 2>/dev/null; then 18915 as_ln_s=ln 18916 else 18917 as_ln_s='cp -pR' 18918 fi 18919else 18920 as_ln_s='cp -pR' 18921fi 18922rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18923rmdir conf$$.dir 2>/dev/null 18924 18925 18926# as_fn_mkdir_p 18927# ------------- 18928# Create "$as_dir" as a directory, including parents if necessary. 18929as_fn_mkdir_p () 18930{ 18931 18932 case $as_dir in #( 18933 -*) as_dir=./$as_dir;; 18934 esac 18935 test -d "$as_dir" || eval $as_mkdir_p || { 18936 as_dirs= 18937 while :; do 18938 case $as_dir in #( 18939 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18940 *) as_qdir=$as_dir;; 18941 esac 18942 as_dirs="'$as_qdir' $as_dirs" 18943 as_dir=`$as_dirname -- "$as_dir" || 18944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18945 X"$as_dir" : 'X\(//\)[^/]' \| \ 18946 X"$as_dir" : 'X\(//\)$' \| \ 18947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18948$as_echo X"$as_dir" | 18949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18950 s//\1/ 18951 q 18952 } 18953 /^X\(\/\/\)[^/].*/{ 18954 s//\1/ 18955 q 18956 } 18957 /^X\(\/\/\)$/{ 18958 s//\1/ 18959 q 18960 } 18961 /^X\(\/\).*/{ 18962 s//\1/ 18963 q 18964 } 18965 s/.*/./; q'` 18966 test -d "$as_dir" && break 18967 done 18968 test -z "$as_dirs" || eval "mkdir $as_dirs" 18969 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18970 18971 18972} # as_fn_mkdir_p 18973if mkdir -p . 2>/dev/null; then 18974 as_mkdir_p='mkdir -p "$as_dir"' 18975else 18976 test -d ./-p && rmdir ./-p 18977 as_mkdir_p=false 18978fi 18979 18980 18981# as_fn_executable_p FILE 18982# ----------------------- 18983# Test if FILE is an executable regular file. 18984as_fn_executable_p () 18985{ 18986 test -f "$1" && test -x "$1" 18987} # as_fn_executable_p 18988as_test_x='test -x' 18989as_executable_p=as_fn_executable_p 18990 18991# Sed expression to map a string onto a valid CPP name. 18992as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18993 18994# Sed expression to map a string onto a valid variable name. 18995as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18996 18997 18998exec 6>&1 18999## ----------------------------------- ## 19000## Main body of $CONFIG_STATUS script. ## 19001## ----------------------------------- ## 19002_ASEOF 19003test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19004 19005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19006# Save the log message, to keep $0 and so on meaningful, and to 19007# report actual input values of CONFIG_FILES etc. instead of their 19008# values after options handling. 19009ac_log=" 19010This file was extended by libpciaccess $as_me 0.13.4, which was 19011generated by GNU Autoconf 2.69. Invocation command line was 19012 19013 CONFIG_FILES = $CONFIG_FILES 19014 CONFIG_HEADERS = $CONFIG_HEADERS 19015 CONFIG_LINKS = $CONFIG_LINKS 19016 CONFIG_COMMANDS = $CONFIG_COMMANDS 19017 $ $0 $@ 19018 19019on `(hostname || uname -n) 2>/dev/null | sed 1q` 19020" 19021 19022_ACEOF 19023 19024case $ac_config_files in *" 19025"*) set x $ac_config_files; shift; ac_config_files=$*;; 19026esac 19027 19028case $ac_config_headers in *" 19029"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19030esac 19031 19032 19033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19034# Files that config.status was made for. 19035config_files="$ac_config_files" 19036config_headers="$ac_config_headers" 19037config_commands="$ac_config_commands" 19038 19039_ACEOF 19040 19041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19042ac_cs_usage="\ 19043\`$as_me' instantiates files and other configuration actions 19044from templates according to the current configuration. Unless the files 19045and actions are specified as TAGs, all are instantiated by default. 19046 19047Usage: $0 [OPTION]... [TAG]... 19048 19049 -h, --help print this help, then exit 19050 -V, --version print version number and configuration settings, then exit 19051 --config print configuration, then exit 19052 -q, --quiet, --silent 19053 do not print progress messages 19054 -d, --debug don't remove temporary files 19055 --recheck update $as_me by reconfiguring in the same conditions 19056 --file=FILE[:TEMPLATE] 19057 instantiate the configuration file FILE 19058 --header=FILE[:TEMPLATE] 19059 instantiate the configuration header FILE 19060 19061Configuration files: 19062$config_files 19063 19064Configuration headers: 19065$config_headers 19066 19067Configuration commands: 19068$config_commands 19069 19070Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>." 19071 19072_ACEOF 19073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19074ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19075ac_cs_version="\\ 19076libpciaccess config.status 0.13.4 19077configured by $0, generated by GNU Autoconf 2.69, 19078 with options \\"\$ac_cs_config\\" 19079 19080Copyright (C) 2012 Free Software Foundation, Inc. 19081This config.status script is free software; the Free Software Foundation 19082gives unlimited permission to copy, distribute and modify it." 19083 19084ac_pwd='$ac_pwd' 19085srcdir='$srcdir' 19086INSTALL='$INSTALL' 19087MKDIR_P='$MKDIR_P' 19088AWK='$AWK' 19089test -n "\$AWK" || AWK=awk 19090_ACEOF 19091 19092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19093# The default lists apply if the user does not specify any file. 19094ac_need_defaults=: 19095while test $# != 0 19096do 19097 case $1 in 19098 --*=?*) 19099 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19101 ac_shift=: 19102 ;; 19103 --*=) 19104 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19105 ac_optarg= 19106 ac_shift=: 19107 ;; 19108 *) 19109 ac_option=$1 19110 ac_optarg=$2 19111 ac_shift=shift 19112 ;; 19113 esac 19114 19115 case $ac_option in 19116 # Handling of the options. 19117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19118 ac_cs_recheck=: ;; 19119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19120 $as_echo "$ac_cs_version"; exit ;; 19121 --config | --confi | --conf | --con | --co | --c ) 19122 $as_echo "$ac_cs_config"; exit ;; 19123 --debug | --debu | --deb | --de | --d | -d ) 19124 debug=: ;; 19125 --file | --fil | --fi | --f ) 19126 $ac_shift 19127 case $ac_optarg in 19128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19129 '') as_fn_error $? "missing file argument" ;; 19130 esac 19131 as_fn_append CONFIG_FILES " '$ac_optarg'" 19132 ac_need_defaults=false;; 19133 --header | --heade | --head | --hea ) 19134 $ac_shift 19135 case $ac_optarg in 19136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19137 esac 19138 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19139 ac_need_defaults=false;; 19140 --he | --h) 19141 # Conflict between --help and --header 19142 as_fn_error $? "ambiguous option: \`$1' 19143Try \`$0 --help' for more information.";; 19144 --help | --hel | -h ) 19145 $as_echo "$ac_cs_usage"; exit ;; 19146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19147 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19148 ac_cs_silent=: ;; 19149 19150 # This is an error. 19151 -*) as_fn_error $? "unrecognized option: \`$1' 19152Try \`$0 --help' for more information." ;; 19153 19154 *) as_fn_append ac_config_targets " $1" 19155 ac_need_defaults=false ;; 19156 19157 esac 19158 shift 19159done 19160 19161ac_configure_extra_args= 19162 19163if $ac_cs_silent; then 19164 exec 6>/dev/null 19165 ac_configure_extra_args="$ac_configure_extra_args --silent" 19166fi 19167 19168_ACEOF 19169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19170if \$ac_cs_recheck; then 19171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19172 shift 19173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19174 CONFIG_SHELL='$SHELL' 19175 export CONFIG_SHELL 19176 exec "\$@" 19177fi 19178 19179_ACEOF 19180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19181exec 5>>config.log 19182{ 19183 echo 19184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19185## Running $as_me. ## 19186_ASBOX 19187 $as_echo "$ac_log" 19188} >&5 19189 19190_ACEOF 19191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19192# 19193# INIT-COMMANDS 19194# 19195AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19196 19197 19198# The HP-UX ksh and POSIX shell print the target directory to stdout 19199# if CDPATH is set. 19200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19201 19202sed_quote_subst='$sed_quote_subst' 19203double_quote_subst='$double_quote_subst' 19204delay_variable_subst='$delay_variable_subst' 19205macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19206macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19207enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19208enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19209pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19210enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19211SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19212ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19213PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19214host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19215host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19216host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19217build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19218build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19219build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19220SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19221Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19222GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19223EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19224FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19225LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19226NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19227LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19228max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19229ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19230exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19231lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19232lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19233lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19234lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19235lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19236reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19237reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19238OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19239deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19240file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19241file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19242want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19243DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19244sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19245AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19246AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19247archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19248STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19249RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19250old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19251old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19252old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19253lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19254CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19255CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19256compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19257GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19258lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19259lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19260lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19261lt_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"`' 19262nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19263lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19264objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19265MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19266lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19267lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19268lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19269lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19270lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19271need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19272MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19273DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19274NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19275LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19276OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19277OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19278libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19279shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19280extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19281archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19282enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19283export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19284whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19285compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19286old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19287old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19288archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19289archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19290module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19291module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19292with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19293allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19294no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19295hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19296hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19297hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19298hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19299hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19300hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19301hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19302inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19303link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19304always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19305export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19306exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19307include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19308prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19309postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19310file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19311variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19312need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19313need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19314version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19315runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19316shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19317shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19318libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19319library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19320soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19321install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19322postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19323postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19324finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19325finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19326hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19327sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19328sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19329hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19330enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19331enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19332enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19333old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19334striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19335 19336LTCC='$LTCC' 19337LTCFLAGS='$LTCFLAGS' 19338compiler='$compiler_DEFAULT' 19339 19340# A function that is used when there is no print builtin or printf. 19341func_fallback_echo () 19342{ 19343 eval 'cat <<_LTECHO_EOF 19344\$1 19345_LTECHO_EOF' 19346} 19347 19348# Quote evaled strings. 19349for var in SHELL \ 19350ECHO \ 19351PATH_SEPARATOR \ 19352SED \ 19353GREP \ 19354EGREP \ 19355FGREP \ 19356LD \ 19357NM \ 19358LN_S \ 19359lt_SP2NL \ 19360lt_NL2SP \ 19361reload_flag \ 19362OBJDUMP \ 19363deplibs_check_method \ 19364file_magic_cmd \ 19365file_magic_glob \ 19366want_nocaseglob \ 19367DLLTOOL \ 19368sharedlib_from_linklib_cmd \ 19369AR \ 19370AR_FLAGS \ 19371archiver_list_spec \ 19372STRIP \ 19373RANLIB \ 19374CC \ 19375CFLAGS \ 19376compiler \ 19377lt_cv_sys_global_symbol_pipe \ 19378lt_cv_sys_global_symbol_to_cdecl \ 19379lt_cv_sys_global_symbol_to_c_name_address \ 19380lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19381nm_file_list_spec \ 19382lt_prog_compiler_no_builtin_flag \ 19383lt_prog_compiler_pic \ 19384lt_prog_compiler_wl \ 19385lt_prog_compiler_static \ 19386lt_cv_prog_compiler_c_o \ 19387need_locks \ 19388MANIFEST_TOOL \ 19389DSYMUTIL \ 19390NMEDIT \ 19391LIPO \ 19392OTOOL \ 19393OTOOL64 \ 19394shrext_cmds \ 19395export_dynamic_flag_spec \ 19396whole_archive_flag_spec \ 19397compiler_needs_object \ 19398with_gnu_ld \ 19399allow_undefined_flag \ 19400no_undefined_flag \ 19401hardcode_libdir_flag_spec \ 19402hardcode_libdir_separator \ 19403exclude_expsyms \ 19404include_expsyms \ 19405file_list_spec \ 19406variables_saved_for_relink \ 19407libname_spec \ 19408library_names_spec \ 19409soname_spec \ 19410install_override_mode \ 19411finish_eval \ 19412old_striplib \ 19413striplib; do 19414 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19415 *[\\\\\\\`\\"\\\$]*) 19416 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19417 ;; 19418 *) 19419 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19420 ;; 19421 esac 19422done 19423 19424# Double-quote double-evaled strings. 19425for var in reload_cmds \ 19426old_postinstall_cmds \ 19427old_postuninstall_cmds \ 19428old_archive_cmds \ 19429extract_expsyms_cmds \ 19430old_archive_from_new_cmds \ 19431old_archive_from_expsyms_cmds \ 19432archive_cmds \ 19433archive_expsym_cmds \ 19434module_cmds \ 19435module_expsym_cmds \ 19436export_symbols_cmds \ 19437prelink_cmds \ 19438postlink_cmds \ 19439postinstall_cmds \ 19440postuninstall_cmds \ 19441finish_cmds \ 19442sys_lib_search_path_spec \ 19443sys_lib_dlsearch_path_spec; do 19444 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19445 *[\\\\\\\`\\"\\\$]*) 19446 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19447 ;; 19448 *) 19449 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19450 ;; 19451 esac 19452done 19453 19454ac_aux_dir='$ac_aux_dir' 19455xsi_shell='$xsi_shell' 19456lt_shell_append='$lt_shell_append' 19457 19458# See if we are running on zsh, and set the options which allow our 19459# commands through without removal of \ escapes INIT. 19460if test -n "\${ZSH_VERSION+set}" ; then 19461 setopt NO_GLOB_SUBST 19462fi 19463 19464 19465 PACKAGE='$PACKAGE' 19466 VERSION='$VERSION' 19467 TIMESTAMP='$TIMESTAMP' 19468 RM='$RM' 19469 ofile='$ofile' 19470 19471 19472 19473 19474_ACEOF 19475 19476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19477 19478# Handling of arguments. 19479for ac_config_target in $ac_config_targets 19480do 19481 case $ac_config_target in 19482 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19483 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19484 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19485 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19486 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19487 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19488 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19489 "scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES scanpci/Makefile" ;; 19490 "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;; 19491 19492 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19493 esac 19494done 19495 19496 19497# If the user did not use the arguments to specify the items to instantiate, 19498# then the envvar interface is used. Set only those that are not. 19499# We use the long form for the default assignment because of an extremely 19500# bizarre bug on SunOS 4.1.3. 19501if $ac_need_defaults; then 19502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19504 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19505fi 19506 19507# Have a temporary directory for convenience. Make it in the build tree 19508# simply because there is no reason against having it here, and in addition, 19509# creating and moving files from /tmp can sometimes cause problems. 19510# Hook for its removal unless debugging. 19511# Note that there is a small window in which the directory will not be cleaned: 19512# after its creation but before its name has been assigned to `$tmp'. 19513$debug || 19514{ 19515 tmp= ac_tmp= 19516 trap 'exit_status=$? 19517 : "${ac_tmp:=$tmp}" 19518 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19519' 0 19520 trap 'as_fn_exit 1' 1 2 13 15 19521} 19522# Create a (secure) tmp directory for tmp files. 19523 19524{ 19525 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19526 test -d "$tmp" 19527} || 19528{ 19529 tmp=./conf$$-$RANDOM 19530 (umask 077 && mkdir "$tmp") 19531} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19532ac_tmp=$tmp 19533 19534# Set up the scripts for CONFIG_FILES section. 19535# No need to generate them if there are no CONFIG_FILES. 19536# This happens for instance with `./config.status config.h'. 19537if test -n "$CONFIG_FILES"; then 19538 19539 19540ac_cr=`echo X | tr X '\015'` 19541# On cygwin, bash can eat \r inside `` if the user requested igncr. 19542# But we know of no other shell where ac_cr would be empty at this 19543# point, so we can use a bashism as a fallback. 19544if test "x$ac_cr" = x; then 19545 eval ac_cr=\$\'\\r\' 19546fi 19547ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19548if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19549 ac_cs_awk_cr='\\r' 19550else 19551 ac_cs_awk_cr=$ac_cr 19552fi 19553 19554echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19555_ACEOF 19556 19557 19558{ 19559 echo "cat >conf$$subs.awk <<_ACEOF" && 19560 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19561 echo "_ACEOF" 19562} >conf$$subs.sh || 19563 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19564ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19565ac_delim='%!_!# ' 19566for ac_last_try in false false false false false :; do 19567 . ./conf$$subs.sh || 19568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19569 19570 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19571 if test $ac_delim_n = $ac_delim_num; then 19572 break 19573 elif $ac_last_try; then 19574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19575 else 19576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19577 fi 19578done 19579rm -f conf$$subs.sh 19580 19581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19582cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19583_ACEOF 19584sed -n ' 19585h 19586s/^/S["/; s/!.*/"]=/ 19587p 19588g 19589s/^[^!]*!// 19590:repl 19591t repl 19592s/'"$ac_delim"'$// 19593t delim 19594:nl 19595h 19596s/\(.\{148\}\)..*/\1/ 19597t more1 19598s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19599p 19600n 19601b repl 19602:more1 19603s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19604p 19605g 19606s/.\{148\}// 19607t nl 19608:delim 19609h 19610s/\(.\{148\}\)..*/\1/ 19611t more2 19612s/["\\]/\\&/g; s/^/"/; s/$/"/ 19613p 19614b 19615:more2 19616s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19617p 19618g 19619s/.\{148\}// 19620t delim 19621' <conf$$subs.awk | sed ' 19622/^[^""]/{ 19623 N 19624 s/\n// 19625} 19626' >>$CONFIG_STATUS || ac_write_fail=1 19627rm -f conf$$subs.awk 19628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19629_ACAWK 19630cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19631 for (key in S) S_is_set[key] = 1 19632 FS = "" 19633 19634} 19635{ 19636 line = $ 0 19637 nfields = split(line, field, "@") 19638 substed = 0 19639 len = length(field[1]) 19640 for (i = 2; i < nfields; i++) { 19641 key = field[i] 19642 keylen = length(key) 19643 if (S_is_set[key]) { 19644 value = S[key] 19645 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19646 len += length(value) + length(field[++i]) 19647 substed = 1 19648 } else 19649 len += 1 + keylen 19650 } 19651 19652 print line 19653} 19654 19655_ACAWK 19656_ACEOF 19657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19658if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19659 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19660else 19661 cat 19662fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19663 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19664_ACEOF 19665 19666# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19667# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19668# trailing colons and then remove the whole line if VPATH becomes empty 19669# (actually we leave an empty line to preserve line numbers). 19670if test "x$srcdir" = x.; then 19671 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19672h 19673s/// 19674s/^/:/ 19675s/[ ]*$/:/ 19676s/:\$(srcdir):/:/g 19677s/:\${srcdir}:/:/g 19678s/:@srcdir@:/:/g 19679s/^:*// 19680s/:*$// 19681x 19682s/\(=[ ]*\).*/\1/ 19683G 19684s/\n// 19685s/^[^=]*=[ ]*$// 19686}' 19687fi 19688 19689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19690fi # test -n "$CONFIG_FILES" 19691 19692# Set up the scripts for CONFIG_HEADERS section. 19693# No need to generate them if there are no CONFIG_HEADERS. 19694# This happens for instance with `./config.status Makefile'. 19695if test -n "$CONFIG_HEADERS"; then 19696cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19697BEGIN { 19698_ACEOF 19699 19700# Transform confdefs.h into an awk script `defines.awk', embedded as 19701# here-document in config.status, that substitutes the proper values into 19702# config.h.in to produce config.h. 19703 19704# Create a delimiter string that does not exist in confdefs.h, to ease 19705# handling of long lines. 19706ac_delim='%!_!# ' 19707for ac_last_try in false false :; do 19708 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19709 if test -z "$ac_tt"; then 19710 break 19711 elif $ac_last_try; then 19712 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19713 else 19714 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19715 fi 19716done 19717 19718# For the awk script, D is an array of macro values keyed by name, 19719# likewise P contains macro parameters if any. Preserve backslash 19720# newline sequences. 19721 19722ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19723sed -n ' 19724s/.\{148\}/&'"$ac_delim"'/g 19725t rset 19726:rset 19727s/^[ ]*#[ ]*define[ ][ ]*/ / 19728t def 19729d 19730:def 19731s/\\$// 19732t bsnl 19733s/["\\]/\\&/g 19734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19735D["\1"]=" \3"/p 19736s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19737d 19738:bsnl 19739s/["\\]/\\&/g 19740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19741D["\1"]=" \3\\\\\\n"\\/p 19742t cont 19743s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19744t cont 19745d 19746:cont 19747n 19748s/.\{148\}/&'"$ac_delim"'/g 19749t clear 19750:clear 19751s/\\$// 19752t bsnlc 19753s/["\\]/\\&/g; s/^/"/; s/$/"/p 19754d 19755:bsnlc 19756s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19757b cont 19758' <confdefs.h | sed ' 19759s/'"$ac_delim"'/"\\\ 19760"/g' >>$CONFIG_STATUS || ac_write_fail=1 19761 19762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19763 for (key in D) D_is_set[key] = 1 19764 FS = "" 19765} 19766/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19767 line = \$ 0 19768 split(line, arg, " ") 19769 if (arg[1] == "#") { 19770 defundef = arg[2] 19771 mac1 = arg[3] 19772 } else { 19773 defundef = substr(arg[1], 2) 19774 mac1 = arg[2] 19775 } 19776 split(mac1, mac2, "(") #) 19777 macro = mac2[1] 19778 prefix = substr(line, 1, index(line, defundef) - 1) 19779 if (D_is_set[macro]) { 19780 # Preserve the white space surrounding the "#". 19781 print prefix "define", macro P[macro] D[macro] 19782 next 19783 } else { 19784 # Replace #undef with comments. This is necessary, for example, 19785 # in the case of _POSIX_SOURCE, which is predefined and required 19786 # on some systems where configure will not decide to define it. 19787 if (defundef == "undef") { 19788 print "/*", prefix defundef, macro, "*/" 19789 next 19790 } 19791 } 19792} 19793{ print } 19794_ACAWK 19795_ACEOF 19796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19797 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19798fi # test -n "$CONFIG_HEADERS" 19799 19800 19801eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19802shift 19803for ac_tag 19804do 19805 case $ac_tag in 19806 :[FHLC]) ac_mode=$ac_tag; continue;; 19807 esac 19808 case $ac_mode$ac_tag in 19809 :[FHL]*:*);; 19810 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19811 :[FH]-) ac_tag=-:-;; 19812 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19813 esac 19814 ac_save_IFS=$IFS 19815 IFS=: 19816 set x $ac_tag 19817 IFS=$ac_save_IFS 19818 shift 19819 ac_file=$1 19820 shift 19821 19822 case $ac_mode in 19823 :L) ac_source=$1;; 19824 :[FH]) 19825 ac_file_inputs= 19826 for ac_f 19827 do 19828 case $ac_f in 19829 -) ac_f="$ac_tmp/stdin";; 19830 *) # Look for the file first in the build tree, then in the source tree 19831 # (if the path is not absolute). The absolute path cannot be DOS-style, 19832 # because $ac_f cannot contain `:'. 19833 test -f "$ac_f" || 19834 case $ac_f in 19835 [\\/$]*) false;; 19836 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19837 esac || 19838 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19839 esac 19840 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19841 as_fn_append ac_file_inputs " '$ac_f'" 19842 done 19843 19844 # Let's still pretend it is `configure' which instantiates (i.e., don't 19845 # use $as_me), people would be surprised to read: 19846 # /* config.h. Generated by config.status. */ 19847 configure_input='Generated from '` 19848 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19849 `' by configure.' 19850 if test x"$ac_file" != x-; then 19851 configure_input="$ac_file. $configure_input" 19852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19853$as_echo "$as_me: creating $ac_file" >&6;} 19854 fi 19855 # Neutralize special characters interpreted by sed in replacement strings. 19856 case $configure_input in #( 19857 *\&* | *\|* | *\\* ) 19858 ac_sed_conf_input=`$as_echo "$configure_input" | 19859 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19860 *) ac_sed_conf_input=$configure_input;; 19861 esac 19862 19863 case $ac_tag in 19864 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19866 esac 19867 ;; 19868 esac 19869 19870 ac_dir=`$as_dirname -- "$ac_file" || 19871$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19872 X"$ac_file" : 'X\(//\)[^/]' \| \ 19873 X"$ac_file" : 'X\(//\)$' \| \ 19874 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19875$as_echo X"$ac_file" | 19876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19877 s//\1/ 19878 q 19879 } 19880 /^X\(\/\/\)[^/].*/{ 19881 s//\1/ 19882 q 19883 } 19884 /^X\(\/\/\)$/{ 19885 s//\1/ 19886 q 19887 } 19888 /^X\(\/\).*/{ 19889 s//\1/ 19890 q 19891 } 19892 s/.*/./; q'` 19893 as_dir="$ac_dir"; as_fn_mkdir_p 19894 ac_builddir=. 19895 19896case "$ac_dir" in 19897.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19898*) 19899 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19900 # A ".." for each directory in $ac_dir_suffix. 19901 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19902 case $ac_top_builddir_sub in 19903 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19904 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19905 esac ;; 19906esac 19907ac_abs_top_builddir=$ac_pwd 19908ac_abs_builddir=$ac_pwd$ac_dir_suffix 19909# for backward compatibility: 19910ac_top_builddir=$ac_top_build_prefix 19911 19912case $srcdir in 19913 .) # We are building in place. 19914 ac_srcdir=. 19915 ac_top_srcdir=$ac_top_builddir_sub 19916 ac_abs_top_srcdir=$ac_pwd ;; 19917 [\\/]* | ?:[\\/]* ) # Absolute name. 19918 ac_srcdir=$srcdir$ac_dir_suffix; 19919 ac_top_srcdir=$srcdir 19920 ac_abs_top_srcdir=$srcdir ;; 19921 *) # Relative name. 19922 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19923 ac_top_srcdir=$ac_top_build_prefix$srcdir 19924 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19925esac 19926ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19927 19928 19929 case $ac_mode in 19930 :F) 19931 # 19932 # CONFIG_FILE 19933 # 19934 19935 case $INSTALL in 19936 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19937 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19938 esac 19939 ac_MKDIR_P=$MKDIR_P 19940 case $MKDIR_P in 19941 [\\/$]* | ?:[\\/]* ) ;; 19942 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19943 esac 19944_ACEOF 19945 19946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19947# If the template does not know about datarootdir, expand it. 19948# FIXME: This hack should be removed a few years after 2.60. 19949ac_datarootdir_hack=; ac_datarootdir_seen= 19950ac_sed_dataroot=' 19951/datarootdir/ { 19952 p 19953 q 19954} 19955/@datadir@/p 19956/@docdir@/p 19957/@infodir@/p 19958/@localedir@/p 19959/@mandir@/p' 19960case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19961*datarootdir*) ac_datarootdir_seen=yes;; 19962*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19964$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19965_ACEOF 19966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19967 ac_datarootdir_hack=' 19968 s&@datadir@&$datadir&g 19969 s&@docdir@&$docdir&g 19970 s&@infodir@&$infodir&g 19971 s&@localedir@&$localedir&g 19972 s&@mandir@&$mandir&g 19973 s&\\\${datarootdir}&$datarootdir&g' ;; 19974esac 19975_ACEOF 19976 19977# Neutralize VPATH when `$srcdir' = `.'. 19978# Shell code in configure.ac might set extrasub. 19979# FIXME: do we really want to maintain this feature? 19980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19981ac_sed_extra="$ac_vpsub 19982$extrasub 19983_ACEOF 19984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19985:t 19986/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19987s|@configure_input@|$ac_sed_conf_input|;t t 19988s&@top_builddir@&$ac_top_builddir_sub&;t t 19989s&@top_build_prefix@&$ac_top_build_prefix&;t t 19990s&@srcdir@&$ac_srcdir&;t t 19991s&@abs_srcdir@&$ac_abs_srcdir&;t t 19992s&@top_srcdir@&$ac_top_srcdir&;t t 19993s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19994s&@builddir@&$ac_builddir&;t t 19995s&@abs_builddir@&$ac_abs_builddir&;t t 19996s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19997s&@INSTALL@&$ac_INSTALL&;t t 19998s&@MKDIR_P@&$ac_MKDIR_P&;t t 19999$ac_datarootdir_hack 20000" 20001eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20002 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20003 20004test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20005 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20006 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20007 "$ac_tmp/out"`; test -z "$ac_out"; } && 20008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20009which seems to be undefined. Please make sure it is defined" >&5 20010$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20011which seems to be undefined. Please make sure it is defined" >&2;} 20012 20013 rm -f "$ac_tmp/stdin" 20014 case $ac_file in 20015 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20016 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20017 esac \ 20018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20019 ;; 20020 :H) 20021 # 20022 # CONFIG_HEADER 20023 # 20024 if test x"$ac_file" != x-; then 20025 { 20026 $as_echo "/* $configure_input */" \ 20027 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20028 } >"$ac_tmp/config.h" \ 20029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20030 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20031 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20032$as_echo "$as_me: $ac_file is unchanged" >&6;} 20033 else 20034 rm -f "$ac_file" 20035 mv "$ac_tmp/config.h" "$ac_file" \ 20036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20037 fi 20038 else 20039 $as_echo "/* $configure_input */" \ 20040 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20041 || as_fn_error $? "could not create -" "$LINENO" 5 20042 fi 20043# Compute "$ac_file"'s index in $config_headers. 20044_am_arg="$ac_file" 20045_am_stamp_count=1 20046for _am_header in $config_headers :; do 20047 case $_am_header in 20048 $_am_arg | $_am_arg:* ) 20049 break ;; 20050 * ) 20051 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20052 esac 20053done 20054echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20055$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20056 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20057 X"$_am_arg" : 'X\(//\)$' \| \ 20058 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20059$as_echo X"$_am_arg" | 20060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20061 s//\1/ 20062 q 20063 } 20064 /^X\(\/\/\)[^/].*/{ 20065 s//\1/ 20066 q 20067 } 20068 /^X\(\/\/\)$/{ 20069 s//\1/ 20070 q 20071 } 20072 /^X\(\/\).*/{ 20073 s//\1/ 20074 q 20075 } 20076 s/.*/./; q'`/stamp-h$_am_stamp_count 20077 ;; 20078 20079 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20080$as_echo "$as_me: executing $ac_file commands" >&6;} 20081 ;; 20082 esac 20083 20084 20085 case $ac_file$ac_mode in 20086 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20087 # Older Autoconf quotes --file arguments for eval, but not when files 20088 # are listed without --file. Let's play safe and only enable the eval 20089 # if we detect the quoting. 20090 case $CONFIG_FILES in 20091 *\'*) eval set x "$CONFIG_FILES" ;; 20092 *) set x $CONFIG_FILES ;; 20093 esac 20094 shift 20095 for mf 20096 do 20097 # Strip MF so we end up with the name of the file. 20098 mf=`echo "$mf" | sed -e 's/:.*$//'` 20099 # Check whether this is an Automake generated Makefile or not. 20100 # We used to match only the files named 'Makefile.in', but 20101 # some people rename them; so instead we look at the file content. 20102 # Grep'ing the first line is not enough: some people post-process 20103 # each Makefile.in and add a new line on top of each file to say so. 20104 # Grep'ing the whole file is not good either: AIX grep has a line 20105 # limit of 2048, but all sed's we know have understand at least 4000. 20106 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20107 dirpart=`$as_dirname -- "$mf" || 20108$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20109 X"$mf" : 'X\(//\)[^/]' \| \ 20110 X"$mf" : 'X\(//\)$' \| \ 20111 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20112$as_echo X"$mf" | 20113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20114 s//\1/ 20115 q 20116 } 20117 /^X\(\/\/\)[^/].*/{ 20118 s//\1/ 20119 q 20120 } 20121 /^X\(\/\/\)$/{ 20122 s//\1/ 20123 q 20124 } 20125 /^X\(\/\).*/{ 20126 s//\1/ 20127 q 20128 } 20129 s/.*/./; q'` 20130 else 20131 continue 20132 fi 20133 # Extract the definition of DEPDIR, am__include, and am__quote 20134 # from the Makefile without running 'make'. 20135 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20136 test -z "$DEPDIR" && continue 20137 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20138 test -z "$am__include" && continue 20139 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20140 # Find all dependency output files, they are included files with 20141 # $(DEPDIR) in their names. We invoke sed twice because it is the 20142 # simplest approach to changing $(DEPDIR) to its actual value in the 20143 # expansion. 20144 for file in `sed -n " 20145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20147 # Make sure the directory exists. 20148 test -f "$dirpart/$file" && continue 20149 fdir=`$as_dirname -- "$file" || 20150$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20151 X"$file" : 'X\(//\)[^/]' \| \ 20152 X"$file" : 'X\(//\)$' \| \ 20153 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20154$as_echo X"$file" | 20155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20156 s//\1/ 20157 q 20158 } 20159 /^X\(\/\/\)[^/].*/{ 20160 s//\1/ 20161 q 20162 } 20163 /^X\(\/\/\)$/{ 20164 s//\1/ 20165 q 20166 } 20167 /^X\(\/\).*/{ 20168 s//\1/ 20169 q 20170 } 20171 s/.*/./; q'` 20172 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20173 # echo "creating $dirpart/$file" 20174 echo '# dummy' > "$dirpart/$file" 20175 done 20176 done 20177} 20178 ;; 20179 "libtool":C) 20180 20181 # See if we are running on zsh, and set the options which allow our 20182 # commands through without removal of \ escapes. 20183 if test -n "${ZSH_VERSION+set}" ; then 20184 setopt NO_GLOB_SUBST 20185 fi 20186 20187 cfgfile="${ofile}T" 20188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20189 $RM "$cfgfile" 20190 20191 cat <<_LT_EOF >> "$cfgfile" 20192#! $SHELL 20193 20194# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20195# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20197# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20198# 20199# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20200# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20201# Foundation, Inc. 20202# Written by Gordon Matzigkeit, 1996 20203# 20204# This file is part of GNU Libtool. 20205# 20206# GNU Libtool is free software; you can redistribute it and/or 20207# modify it under the terms of the GNU General Public License as 20208# published by the Free Software Foundation; either version 2 of 20209# the License, or (at your option) any later version. 20210# 20211# As a special exception to the GNU General Public License, 20212# if you distribute this file as part of a program or library that 20213# is built using GNU Libtool, you may include this file under the 20214# same distribution terms that you use for the rest of that program. 20215# 20216# GNU Libtool is distributed in the hope that it will be useful, 20217# but WITHOUT ANY WARRANTY; without even the implied warranty of 20218# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20219# GNU General Public License for more details. 20220# 20221# You should have received a copy of the GNU General Public License 20222# along with GNU Libtool; see the file COPYING. If not, a copy 20223# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20224# obtained by writing to the Free Software Foundation, Inc., 20225# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20226 20227 20228# The names of the tagged configurations supported by this script. 20229available_tags="" 20230 20231# ### BEGIN LIBTOOL CONFIG 20232 20233# Which release of libtool.m4 was used? 20234macro_version=$macro_version 20235macro_revision=$macro_revision 20236 20237# Whether or not to build shared libraries. 20238build_libtool_libs=$enable_shared 20239 20240# Whether or not to build static libraries. 20241build_old_libs=$enable_static 20242 20243# What type of objects to build. 20244pic_mode=$pic_mode 20245 20246# Whether or not to optimize for fast installation. 20247fast_install=$enable_fast_install 20248 20249# Shell to use when invoking shell scripts. 20250SHELL=$lt_SHELL 20251 20252# An echo program that protects backslashes. 20253ECHO=$lt_ECHO 20254 20255# The PATH separator for the build system. 20256PATH_SEPARATOR=$lt_PATH_SEPARATOR 20257 20258# The host system. 20259host_alias=$host_alias 20260host=$host 20261host_os=$host_os 20262 20263# The build system. 20264build_alias=$build_alias 20265build=$build 20266build_os=$build_os 20267 20268# A sed program that does not truncate output. 20269SED=$lt_SED 20270 20271# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20272Xsed="\$SED -e 1s/^X//" 20273 20274# A grep program that handles long lines. 20275GREP=$lt_GREP 20276 20277# An ERE matcher. 20278EGREP=$lt_EGREP 20279 20280# A literal string matcher. 20281FGREP=$lt_FGREP 20282 20283# A BSD- or MS-compatible name lister. 20284NM=$lt_NM 20285 20286# Whether we need soft or hard links. 20287LN_S=$lt_LN_S 20288 20289# What is the maximum length of a command? 20290max_cmd_len=$max_cmd_len 20291 20292# Object file suffix (normally "o"). 20293objext=$ac_objext 20294 20295# Executable file suffix (normally ""). 20296exeext=$exeext 20297 20298# whether the shell understands "unset". 20299lt_unset=$lt_unset 20300 20301# turn spaces into newlines. 20302SP2NL=$lt_lt_SP2NL 20303 20304# turn newlines into spaces. 20305NL2SP=$lt_lt_NL2SP 20306 20307# convert \$build file names to \$host format. 20308to_host_file_cmd=$lt_cv_to_host_file_cmd 20309 20310# convert \$build files to toolchain format. 20311to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20312 20313# An object symbol dumper. 20314OBJDUMP=$lt_OBJDUMP 20315 20316# Method to check whether dependent libraries are shared objects. 20317deplibs_check_method=$lt_deplibs_check_method 20318 20319# Command to use when deplibs_check_method = "file_magic". 20320file_magic_cmd=$lt_file_magic_cmd 20321 20322# How to find potential files when deplibs_check_method = "file_magic". 20323file_magic_glob=$lt_file_magic_glob 20324 20325# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20326want_nocaseglob=$lt_want_nocaseglob 20327 20328# DLL creation program. 20329DLLTOOL=$lt_DLLTOOL 20330 20331# Command to associate shared and link libraries. 20332sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20333 20334# The archiver. 20335AR=$lt_AR 20336 20337# Flags to create an archive. 20338AR_FLAGS=$lt_AR_FLAGS 20339 20340# How to feed a file listing to the archiver. 20341archiver_list_spec=$lt_archiver_list_spec 20342 20343# A symbol stripping program. 20344STRIP=$lt_STRIP 20345 20346# Commands used to install an old-style archive. 20347RANLIB=$lt_RANLIB 20348old_postinstall_cmds=$lt_old_postinstall_cmds 20349old_postuninstall_cmds=$lt_old_postuninstall_cmds 20350 20351# Whether to use a lock for old archive extraction. 20352lock_old_archive_extraction=$lock_old_archive_extraction 20353 20354# A C compiler. 20355LTCC=$lt_CC 20356 20357# LTCC compiler flags. 20358LTCFLAGS=$lt_CFLAGS 20359 20360# Take the output of nm and produce a listing of raw symbols and C names. 20361global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20362 20363# Transform the output of nm in a proper C declaration. 20364global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20365 20366# Transform the output of nm in a C name address pair. 20367global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20368 20369# Transform the output of nm in a C name address pair when lib prefix is needed. 20370global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20371 20372# Specify filename containing input files for \$NM. 20373nm_file_list_spec=$lt_nm_file_list_spec 20374 20375# The root where to search for dependent libraries,and in which our libraries should be installed. 20376lt_sysroot=$lt_sysroot 20377 20378# The name of the directory that contains temporary libtool files. 20379objdir=$objdir 20380 20381# Used to examine libraries when file_magic_cmd begins with "file". 20382MAGIC_CMD=$MAGIC_CMD 20383 20384# Must we lock files when doing compilation? 20385need_locks=$lt_need_locks 20386 20387# Manifest tool. 20388MANIFEST_TOOL=$lt_MANIFEST_TOOL 20389 20390# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20391DSYMUTIL=$lt_DSYMUTIL 20392 20393# Tool to change global to local symbols on Mac OS X. 20394NMEDIT=$lt_NMEDIT 20395 20396# Tool to manipulate fat objects and archives on Mac OS X. 20397LIPO=$lt_LIPO 20398 20399# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20400OTOOL=$lt_OTOOL 20401 20402# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20403OTOOL64=$lt_OTOOL64 20404 20405# Old archive suffix (normally "a"). 20406libext=$libext 20407 20408# Shared library suffix (normally ".so"). 20409shrext_cmds=$lt_shrext_cmds 20410 20411# The commands to extract the exported symbol list from a shared archive. 20412extract_expsyms_cmds=$lt_extract_expsyms_cmds 20413 20414# Variables whose values should be saved in libtool wrapper scripts and 20415# restored at link time. 20416variables_saved_for_relink=$lt_variables_saved_for_relink 20417 20418# Do we need the "lib" prefix for modules? 20419need_lib_prefix=$need_lib_prefix 20420 20421# Do we need a version for libraries? 20422need_version=$need_version 20423 20424# Library versioning type. 20425version_type=$version_type 20426 20427# Shared library runtime path variable. 20428runpath_var=$runpath_var 20429 20430# Shared library path variable. 20431shlibpath_var=$shlibpath_var 20432 20433# Is shlibpath searched before the hard-coded library search path? 20434shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20435 20436# Format of library name prefix. 20437libname_spec=$lt_libname_spec 20438 20439# List of archive names. First name is the real one, the rest are links. 20440# The last name is the one that the linker finds with -lNAME 20441library_names_spec=$lt_library_names_spec 20442 20443# The coded name of the library, if different from the real name. 20444soname_spec=$lt_soname_spec 20445 20446# Permission mode override for installation of shared libraries. 20447install_override_mode=$lt_install_override_mode 20448 20449# Command to use after installation of a shared archive. 20450postinstall_cmds=$lt_postinstall_cmds 20451 20452# Command to use after uninstallation of a shared archive. 20453postuninstall_cmds=$lt_postuninstall_cmds 20454 20455# Commands used to finish a libtool library installation in a directory. 20456finish_cmds=$lt_finish_cmds 20457 20458# As "finish_cmds", except a single script fragment to be evaled but 20459# not shown. 20460finish_eval=$lt_finish_eval 20461 20462# Whether we should hardcode library paths into libraries. 20463hardcode_into_libs=$hardcode_into_libs 20464 20465# Compile-time system search path for libraries. 20466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20467 20468# Run-time system search path for libraries. 20469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20470 20471# Whether dlopen is supported. 20472dlopen_support=$enable_dlopen 20473 20474# Whether dlopen of programs is supported. 20475dlopen_self=$enable_dlopen_self 20476 20477# Whether dlopen of statically linked programs is supported. 20478dlopen_self_static=$enable_dlopen_self_static 20479 20480# Commands to strip libraries. 20481old_striplib=$lt_old_striplib 20482striplib=$lt_striplib 20483 20484 20485# The linker used to build libraries. 20486LD=$lt_LD 20487 20488# How to create reloadable object files. 20489reload_flag=$lt_reload_flag 20490reload_cmds=$lt_reload_cmds 20491 20492# Commands used to build an old-style archive. 20493old_archive_cmds=$lt_old_archive_cmds 20494 20495# A language specific compiler. 20496CC=$lt_compiler 20497 20498# Is the compiler the GNU compiler? 20499with_gcc=$GCC 20500 20501# Compiler flag to turn off builtin functions. 20502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20503 20504# Additional compiler flags for building library objects. 20505pic_flag=$lt_lt_prog_compiler_pic 20506 20507# How to pass a linker flag through the compiler. 20508wl=$lt_lt_prog_compiler_wl 20509 20510# Compiler flag to prevent dynamic linking. 20511link_static_flag=$lt_lt_prog_compiler_static 20512 20513# Does compiler simultaneously support -c and -o options? 20514compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20515 20516# Whether or not to add -lc for building shared libraries. 20517build_libtool_need_lc=$archive_cmds_need_lc 20518 20519# Whether or not to disallow shared libs when runtime libs are static. 20520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20521 20522# Compiler flag to allow reflexive dlopens. 20523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20524 20525# Compiler flag to generate shared objects directly from archives. 20526whole_archive_flag_spec=$lt_whole_archive_flag_spec 20527 20528# Whether the compiler copes with passing no objects directly. 20529compiler_needs_object=$lt_compiler_needs_object 20530 20531# Create an old-style archive from a shared archive. 20532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20533 20534# Create a temporary old-style archive to link instead of a shared archive. 20535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20536 20537# Commands used to build a shared archive. 20538archive_cmds=$lt_archive_cmds 20539archive_expsym_cmds=$lt_archive_expsym_cmds 20540 20541# Commands used to build a loadable module if different from building 20542# a shared archive. 20543module_cmds=$lt_module_cmds 20544module_expsym_cmds=$lt_module_expsym_cmds 20545 20546# Whether we are building with GNU ld or not. 20547with_gnu_ld=$lt_with_gnu_ld 20548 20549# Flag that allows shared libraries with undefined symbols to be built. 20550allow_undefined_flag=$lt_allow_undefined_flag 20551 20552# Flag that enforces no undefined symbols. 20553no_undefined_flag=$lt_no_undefined_flag 20554 20555# Flag to hardcode \$libdir into a binary during linking. 20556# This must work even if \$libdir does not exist 20557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20558 20559# Whether we need a single "-rpath" flag with a separated argument. 20560hardcode_libdir_separator=$lt_hardcode_libdir_separator 20561 20562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20563# DIR into the resulting binary. 20564hardcode_direct=$hardcode_direct 20565 20566# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20567# DIR into the resulting binary and the resulting library dependency is 20568# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20569# library is relocated. 20570hardcode_direct_absolute=$hardcode_direct_absolute 20571 20572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20573# into the resulting binary. 20574hardcode_minus_L=$hardcode_minus_L 20575 20576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20577# into the resulting binary. 20578hardcode_shlibpath_var=$hardcode_shlibpath_var 20579 20580# Set to "yes" if building a shared library automatically hardcodes DIR 20581# into the library and all subsequent libraries and executables linked 20582# against it. 20583hardcode_automatic=$hardcode_automatic 20584 20585# Set to yes if linker adds runtime paths of dependent libraries 20586# to runtime path list. 20587inherit_rpath=$inherit_rpath 20588 20589# Whether libtool must link a program against all its dependency libraries. 20590link_all_deplibs=$link_all_deplibs 20591 20592# Set to "yes" if exported symbols are required. 20593always_export_symbols=$always_export_symbols 20594 20595# The commands to list exported symbols. 20596export_symbols_cmds=$lt_export_symbols_cmds 20597 20598# Symbols that should not be listed in the preloaded symbols. 20599exclude_expsyms=$lt_exclude_expsyms 20600 20601# Symbols that must always be exported. 20602include_expsyms=$lt_include_expsyms 20603 20604# Commands necessary for linking programs (against libraries) with templates. 20605prelink_cmds=$lt_prelink_cmds 20606 20607# Commands necessary for finishing linking programs. 20608postlink_cmds=$lt_postlink_cmds 20609 20610# Specify filename containing input files. 20611file_list_spec=$lt_file_list_spec 20612 20613# How to hardcode a shared library path into an executable. 20614hardcode_action=$hardcode_action 20615 20616# ### END LIBTOOL CONFIG 20617 20618_LT_EOF 20619 20620 case $host_os in 20621 aix3*) 20622 cat <<\_LT_EOF >> "$cfgfile" 20623# AIX sometimes has problems with the GCC collect2 program. For some 20624# reason, if we set the COLLECT_NAMES environment variable, the problems 20625# vanish in a puff of smoke. 20626if test "X${COLLECT_NAMES+set}" != Xset; then 20627 COLLECT_NAMES= 20628 export COLLECT_NAMES 20629fi 20630_LT_EOF 20631 ;; 20632 esac 20633 20634 20635ltmain="$ac_aux_dir/ltmain.sh" 20636 20637 20638 # We use sed instead of cat because bash on DJGPP gets confused if 20639 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20640 # text mode, it properly converts lines to CR/LF. This bash problem 20641 # is reportedly fixed, but why not run on old versions too? 20642 sed '$q' "$ltmain" >> "$cfgfile" \ 20643 || (rm -f "$cfgfile"; exit 1) 20644 20645 if test x"$xsi_shell" = xyes; then 20646 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20647func_dirname ()\ 20648{\ 20649\ case ${1} in\ 20650\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20651\ * ) func_dirname_result="${3}" ;;\ 20652\ esac\ 20653} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20654 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20656test 0 -eq $? || _lt_function_replace_fail=: 20657 20658 20659 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20660func_basename ()\ 20661{\ 20662\ func_basename_result="${1##*/}"\ 20663} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20664 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20666test 0 -eq $? || _lt_function_replace_fail=: 20667 20668 20669 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20670func_dirname_and_basename ()\ 20671{\ 20672\ case ${1} in\ 20673\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20674\ * ) func_dirname_result="${3}" ;;\ 20675\ esac\ 20676\ func_basename_result="${1##*/}"\ 20677} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20678 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20680test 0 -eq $? || _lt_function_replace_fail=: 20681 20682 20683 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20684func_stripname ()\ 20685{\ 20686\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20687\ # positional parameters, so assign one to ordinary parameter first.\ 20688\ func_stripname_result=${3}\ 20689\ func_stripname_result=${func_stripname_result#"${1}"}\ 20690\ func_stripname_result=${func_stripname_result%"${2}"}\ 20691} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20692 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20694test 0 -eq $? || _lt_function_replace_fail=: 20695 20696 20697 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20698func_split_long_opt ()\ 20699{\ 20700\ func_split_long_opt_name=${1%%=*}\ 20701\ func_split_long_opt_arg=${1#*=}\ 20702} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20703 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20705test 0 -eq $? || _lt_function_replace_fail=: 20706 20707 20708 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20709func_split_short_opt ()\ 20710{\ 20711\ func_split_short_opt_arg=${1#??}\ 20712\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20713} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20714 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20716test 0 -eq $? || _lt_function_replace_fail=: 20717 20718 20719 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20720func_lo2o ()\ 20721{\ 20722\ case ${1} in\ 20723\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20724\ *) func_lo2o_result=${1} ;;\ 20725\ esac\ 20726} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20727 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20729test 0 -eq $? || _lt_function_replace_fail=: 20730 20731 20732 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20733func_xform ()\ 20734{\ 20735 func_xform_result=${1%.*}.lo\ 20736} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20737 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20739test 0 -eq $? || _lt_function_replace_fail=: 20740 20741 20742 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20743func_arith ()\ 20744{\ 20745 func_arith_result=$(( $* ))\ 20746} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20747 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20749test 0 -eq $? || _lt_function_replace_fail=: 20750 20751 20752 sed -e '/^func_len ()$/,/^} # func_len /c\ 20753func_len ()\ 20754{\ 20755 func_len_result=${#1}\ 20756} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20757 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20759test 0 -eq $? || _lt_function_replace_fail=: 20760 20761fi 20762 20763if test x"$lt_shell_append" = xyes; then 20764 sed -e '/^func_append ()$/,/^} # func_append /c\ 20765func_append ()\ 20766{\ 20767 eval "${1}+=\\${2}"\ 20768} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20769 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20771test 0 -eq $? || _lt_function_replace_fail=: 20772 20773 20774 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20775func_append_quoted ()\ 20776{\ 20777\ func_quote_for_eval "${2}"\ 20778\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20779} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20780 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20782test 0 -eq $? || _lt_function_replace_fail=: 20783 20784 20785 # Save a `func_append' function call where possible by direct use of '+=' 20786 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20787 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20789 test 0 -eq $? || _lt_function_replace_fail=: 20790else 20791 # Save a `func_append' function call even when '+=' is not available 20792 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20793 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20795 test 0 -eq $? || _lt_function_replace_fail=: 20796fi 20797 20798if test x"$_lt_function_replace_fail" = x":"; then 20799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20800$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20801fi 20802 20803 20804 mv -f "$cfgfile" "$ofile" || 20805 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20806 chmod +x "$ofile" 20807 20808 ;; 20809 20810 esac 20811done # for ac_tag 20812 20813 20814as_fn_exit 0 20815_ACEOF 20816ac_clean_files=$ac_clean_files_save 20817 20818test $ac_write_fail = 0 || 20819 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20820 20821 20822# configure is writing to config.log, and then calls config.status. 20823# config.status does its own redirection, appending to config.log. 20824# Unfortunately, on DOS this fails, as config.log is still kept open 20825# by configure, so config.status won't be able to write to it; its 20826# output is simply discarded. So we exec the FD to /dev/null, 20827# effectively closing config.log, so it can be properly (re)opened and 20828# appended to by config.status. When coming back to configure, we 20829# need to make the FD available again. 20830if test "$no_create" != yes; then 20831 ac_cs_success=: 20832 ac_config_status_args= 20833 test "$silent" = yes && 20834 ac_config_status_args="$ac_config_status_args --quiet" 20835 exec 5>/dev/null 20836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20837 exec 5>>config.log 20838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20839 # would make configure fail if this is the last instruction. 20840 $ac_cs_success || as_fn_exit 1 20841fi 20842if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20844$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20845fi 20846 20847