configure revision 79bbd9e8
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xdpyinfo 1.3.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xdpyinfo' 583PACKAGE_TARNAME='xdpyinfo' 584PACKAGE_VERSION='1.3.2' 585PACKAGE_STRING='xdpyinfo 1.3.2' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630LINT_FALSE 631LINT_TRUE 632LINT_FLAGS 633LINT 634DPY_XTST_LIBS 635DPY_XTST_CFLAGS 636DPY_DMX_LIBS 637DPY_DMX_CFLAGS 638DPY_XINERAMA_LIBS 639DPY_XINERAMA_CFLAGS 640DPY_XCOMPOSITE_LIBS 641DPY_XCOMPOSITE_CFLAGS 642DPY_XRENDER_LIBS 643DPY_XRENDER_CFLAGS 644DPY_XINPUT_LIBS 645DPY_XINPUT_CFLAGS 646DPY_XF86MISC_LIBS 647DPY_XF86MISC_CFLAGS 648DPY_XF86DGA_LIBS 649DPY_XF86DGA_CFLAGS 650DPY_XF86VIDMODE_LIBS 651DPY_XF86VIDMODE_CFLAGS 652DPY_XKB_LIBS 653DPY_XKB_CFLAGS 654DPY_XEXT_LIBS 655DPY_XEXT_CFLAGS 656DPY_X11_LIBS 657DPY_X11_CFLAGS 658XDPYINFO_LIBS 659XDPYINFO_CFLAGS 660MAN_SUBSTS 661XORG_MAN_PAGE 662ADMIN_MAN_DIR 663DRIVER_MAN_DIR 664MISC_MAN_DIR 665FILE_MAN_DIR 666LIB_MAN_DIR 667APP_MAN_DIR 668ADMIN_MAN_SUFFIX 669DRIVER_MAN_SUFFIX 670MISC_MAN_SUFFIX 671FILE_MAN_SUFFIX 672LIB_MAN_SUFFIX 673APP_MAN_SUFFIX 674SED 675host_os 676host_vendor 677host_cpu 678host 679build_os 680build_vendor 681build_cpu 682build 683INSTALL_CMD 684PKG_CONFIG 685CHANGELOG_CMD 686STRICT_CFLAGS 687CWARNFLAGS 688BASE_CFLAGS 689EGREP 690GREP 691CPP 692am__fastdepCC_FALSE 693am__fastdepCC_TRUE 694CCDEPMODE 695am__nodep 696AMDEPBACKSLASH 697AMDEP_FALSE 698AMDEP_TRUE 699am__quote 700am__include 701DEPDIR 702OBJEXT 703EXEEXT 704ac_ct_CC 705CPPFLAGS 706LDFLAGS 707CFLAGS 708CC 709AM_BACKSLASH 710AM_DEFAULT_VERBOSITY 711AM_DEFAULT_V 712AM_V 713am__untar 714am__tar 715AMTAR 716am__leading_dot 717SET_MAKE 718AWK 719mkdir_p 720MKDIR_P 721INSTALL_STRIP_PROGRAM 722STRIP 723install_sh 724MAKEINFO 725AUTOHEADER 726AUTOMAKE 727AUTOCONF 728ACLOCAL 729VERSION 730PACKAGE 731CYGPATH_W 732am__isrc 733INSTALL_DATA 734INSTALL_SCRIPT 735INSTALL_PROGRAM 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_silent_rules 778enable_dependency_tracking 779enable_selective_werror 780enable_strict_compilation 781with_dga 782with_xf86misc 783with_xinerama 784with_dmx 785with_lint 786' 787 ac_precious_vars='build_alias 788host_alias 789target_alias 790CC 791CFLAGS 792LDFLAGS 793LIBS 794CPPFLAGS 795CPP 796PKG_CONFIG 797XDPYINFO_CFLAGS 798XDPYINFO_LIBS 799DPY_X11_CFLAGS 800DPY_X11_LIBS 801DPY_XEXT_CFLAGS 802DPY_XEXT_LIBS 803DPY_XKB_CFLAGS 804DPY_XKB_LIBS 805DPY_XF86VIDMODE_CFLAGS 806DPY_XF86VIDMODE_LIBS 807DPY_XF86DGA_CFLAGS 808DPY_XF86DGA_LIBS 809DPY_XF86MISC_CFLAGS 810DPY_XF86MISC_LIBS 811DPY_XINPUT_CFLAGS 812DPY_XINPUT_LIBS 813DPY_XRENDER_CFLAGS 814DPY_XRENDER_LIBS 815DPY_XCOMPOSITE_CFLAGS 816DPY_XCOMPOSITE_LIBS 817DPY_XINERAMA_CFLAGS 818DPY_XINERAMA_LIBS 819DPY_DMX_CFLAGS 820DPY_DMX_LIBS 821DPY_XTST_CFLAGS 822DPY_XTST_LIBS 823LINT 824LINT_FLAGS' 825 826 827# Initialize some variables set by options. 828ac_init_help= 829ac_init_version=false 830ac_unrecognized_opts= 831ac_unrecognized_sep= 832# The variables have the same names as the options, with 833# dashes changed to underlines. 834cache_file=/dev/null 835exec_prefix=NONE 836no_create= 837no_recursion= 838prefix=NONE 839program_prefix=NONE 840program_suffix=NONE 841program_transform_name=s,x,x, 842silent= 843site= 844srcdir= 845verbose= 846x_includes=NONE 847x_libraries=NONE 848 849# Installation directory options. 850# These are left unexpanded so users can "make install exec_prefix=/foo" 851# and all the variables that are supposed to be based on exec_prefix 852# by default will actually change. 853# Use braces instead of parens because sh, perl, etc. also accept them. 854# (The list follows the same order as the GNU Coding Standards.) 855bindir='${exec_prefix}/bin' 856sbindir='${exec_prefix}/sbin' 857libexecdir='${exec_prefix}/libexec' 858datarootdir='${prefix}/share' 859datadir='${datarootdir}' 860sysconfdir='${prefix}/etc' 861sharedstatedir='${prefix}/com' 862localstatedir='${prefix}/var' 863includedir='${prefix}/include' 864oldincludedir='/usr/include' 865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 866infodir='${datarootdir}/info' 867htmldir='${docdir}' 868dvidir='${docdir}' 869pdfdir='${docdir}' 870psdir='${docdir}' 871libdir='${exec_prefix}/lib' 872localedir='${datarootdir}/locale' 873mandir='${datarootdir}/man' 874 875ac_prev= 876ac_dashdash= 877for ac_option 878do 879 # If the previous option needs an argument, assign it. 880 if test -n "$ac_prev"; then 881 eval $ac_prev=\$ac_option 882 ac_prev= 883 continue 884 fi 885 886 case $ac_option in 887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 888 *=) ac_optarg= ;; 889 *) ac_optarg=yes ;; 890 esac 891 892 # Accept the important Cygnus configure options, so we can diagnose typos. 893 894 case $ac_dashdash$ac_option in 895 --) 896 ac_dashdash=yes ;; 897 898 -bindir | --bindir | --bindi | --bind | --bin | --bi) 899 ac_prev=bindir ;; 900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 901 bindir=$ac_optarg ;; 902 903 -build | --build | --buil | --bui | --bu) 904 ac_prev=build_alias ;; 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 906 build_alias=$ac_optarg ;; 907 908 -cache-file | --cache-file | --cache-fil | --cache-fi \ 909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 910 ac_prev=cache_file ;; 911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 913 cache_file=$ac_optarg ;; 914 915 --config-cache | -C) 916 cache_file=config.cache ;; 917 918 -datadir | --datadir | --datadi | --datad) 919 ac_prev=datadir ;; 920 -datadir=* | --datadir=* | --datadi=* | --datad=*) 921 datadir=$ac_optarg ;; 922 923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 924 | --dataroo | --dataro | --datar) 925 ac_prev=datarootdir ;; 926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 928 datarootdir=$ac_optarg ;; 929 930 -disable-* | --disable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=no ;; 945 946 -docdir | --docdir | --docdi | --doc | --do) 947 ac_prev=docdir ;; 948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 949 docdir=$ac_optarg ;; 950 951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 952 ac_prev=dvidir ;; 953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 954 dvidir=$ac_optarg ;; 955 956 -enable-* | --enable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=\$ac_optarg ;; 971 972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 974 | --exec | --exe | --ex) 975 ac_prev=exec_prefix ;; 976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 978 | --exec=* | --exe=* | --ex=*) 979 exec_prefix=$ac_optarg ;; 980 981 -gas | --gas | --ga | --g) 982 # Obsolete; use --with-gas. 983 with_gas=yes ;; 984 985 -help | --help | --hel | --he | -h) 986 ac_init_help=long ;; 987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 988 ac_init_help=recursive ;; 989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 990 ac_init_help=short ;; 991 992 -host | --host | --hos | --ho) 993 ac_prev=host_alias ;; 994 -host=* | --host=* | --hos=* | --ho=*) 995 host_alias=$ac_optarg ;; 996 997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 998 ac_prev=htmldir ;; 999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1000 | --ht=*) 1001 htmldir=$ac_optarg ;; 1002 1003 -includedir | --includedir | --includedi | --included | --include \ 1004 | --includ | --inclu | --incl | --inc) 1005 ac_prev=includedir ;; 1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1007 | --includ=* | --inclu=* | --incl=* | --inc=*) 1008 includedir=$ac_optarg ;; 1009 1010 -infodir | --infodir | --infodi | --infod | --info | --inf) 1011 ac_prev=infodir ;; 1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1013 infodir=$ac_optarg ;; 1014 1015 -libdir | --libdir | --libdi | --libd) 1016 ac_prev=libdir ;; 1017 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1018 libdir=$ac_optarg ;; 1019 1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1021 | --libexe | --libex | --libe) 1022 ac_prev=libexecdir ;; 1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1024 | --libexe=* | --libex=* | --libe=*) 1025 libexecdir=$ac_optarg ;; 1026 1027 -localedir | --localedir | --localedi | --localed | --locale) 1028 ac_prev=localedir ;; 1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1030 localedir=$ac_optarg ;; 1031 1032 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1033 | --localstate | --localstat | --localsta | --localst | --locals) 1034 ac_prev=localstatedir ;; 1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1037 localstatedir=$ac_optarg ;; 1038 1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1040 ac_prev=mandir ;; 1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1042 mandir=$ac_optarg ;; 1043 1044 -nfp | --nfp | --nf) 1045 # Obsolete; use --without-fp. 1046 with_fp=no ;; 1047 1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1049 | --no-cr | --no-c | -n) 1050 no_create=yes ;; 1051 1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1054 no_recursion=yes ;; 1055 1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1058 | --oldin | --oldi | --old | --ol | --o) 1059 ac_prev=oldincludedir ;; 1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1063 oldincludedir=$ac_optarg ;; 1064 1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1066 ac_prev=prefix ;; 1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1068 prefix=$ac_optarg ;; 1069 1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1071 | --program-pre | --program-pr | --program-p) 1072 ac_prev=program_prefix ;; 1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1075 program_prefix=$ac_optarg ;; 1076 1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1078 | --program-suf | --program-su | --program-s) 1079 ac_prev=program_suffix ;; 1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1082 program_suffix=$ac_optarg ;; 1083 1084 -program-transform-name | --program-transform-name \ 1085 | --program-transform-nam | --program-transform-na \ 1086 | --program-transform-n | --program-transform- \ 1087 | --program-transform | --program-transfor \ 1088 | --program-transfo | --program-transf \ 1089 | --program-trans | --program-tran \ 1090 | --progr-tra | --program-tr | --program-t) 1091 ac_prev=program_transform_name ;; 1092 -program-transform-name=* | --program-transform-name=* \ 1093 | --program-transform-nam=* | --program-transform-na=* \ 1094 | --program-transform-n=* | --program-transform-=* \ 1095 | --program-transform=* | --program-transfor=* \ 1096 | --program-transfo=* | --program-transf=* \ 1097 | --program-trans=* | --program-tran=* \ 1098 | --progr-tra=* | --program-tr=* | --program-t=*) 1099 program_transform_name=$ac_optarg ;; 1100 1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1102 ac_prev=pdfdir ;; 1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1104 pdfdir=$ac_optarg ;; 1105 1106 -psdir | --psdir | --psdi | --psd | --ps) 1107 ac_prev=psdir ;; 1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1109 psdir=$ac_optarg ;; 1110 1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1112 | -silent | --silent | --silen | --sile | --sil) 1113 silent=yes ;; 1114 1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1116 ac_prev=sbindir ;; 1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1118 | --sbi=* | --sb=*) 1119 sbindir=$ac_optarg ;; 1120 1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1123 | --sharedst | --shareds | --shared | --share | --shar \ 1124 | --sha | --sh) 1125 ac_prev=sharedstatedir ;; 1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1129 | --sha=* | --sh=*) 1130 sharedstatedir=$ac_optarg ;; 1131 1132 -site | --site | --sit) 1133 ac_prev=site ;; 1134 -site=* | --site=* | --sit=*) 1135 site=$ac_optarg ;; 1136 1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1138 ac_prev=srcdir ;; 1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1140 srcdir=$ac_optarg ;; 1141 1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1143 | --syscon | --sysco | --sysc | --sys | --sy) 1144 ac_prev=sysconfdir ;; 1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1147 sysconfdir=$ac_optarg ;; 1148 1149 -target | --target | --targe | --targ | --tar | --ta | --t) 1150 ac_prev=target_alias ;; 1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1152 target_alias=$ac_optarg ;; 1153 1154 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1155 verbose=yes ;; 1156 1157 -version | --version | --versio | --versi | --vers | -V) 1158 ac_init_version=: ;; 1159 1160 -with-* | --with-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=\$ac_optarg ;; 1175 1176 -without-* | --without-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=no ;; 1191 1192 --x) 1193 # Obsolete; use --with-x. 1194 with_x=yes ;; 1195 1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1197 | --x-incl | --x-inc | --x-in | --x-i) 1198 ac_prev=x_includes ;; 1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1201 x_includes=$ac_optarg ;; 1202 1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1205 ac_prev=x_libraries ;; 1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1208 x_libraries=$ac_optarg ;; 1209 1210 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1211Try \`$0 --help' for more information" 1212 ;; 1213 1214 *=*) 1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1216 # Reject names that are not valid shell variable names. 1217 case $ac_envvar in #( 1218 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1220 esac 1221 eval $ac_envvar=\$ac_optarg 1222 export $ac_envvar ;; 1223 1224 *) 1225 # FIXME: should be removed in autoconf 3.0. 1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1230 ;; 1231 1232 esac 1233done 1234 1235if test -n "$ac_prev"; then 1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1237 as_fn_error $? "missing argument to $ac_option" 1238fi 1239 1240if test -n "$ac_unrecognized_opts"; then 1241 case $enable_option_checking in 1242 no) ;; 1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1245 esac 1246fi 1247 1248# Check all directory arguments for consistency. 1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1250 datadir sysconfdir sharedstatedir localstatedir includedir \ 1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1252 libdir localedir mandir 1253do 1254 eval ac_val=\$$ac_var 1255 # Remove trailing slashes. 1256 case $ac_val in 1257 */ ) 1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1259 eval $ac_var=\$ac_val;; 1260 esac 1261 # Be sure to have absolute directory names. 1262 case $ac_val in 1263 [\\/$]* | ?:[\\/]* ) continue;; 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1265 esac 1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1267done 1268 1269# There might be people who depend on the old broken behavior: `$host' 1270# used to hold the argument of --host etc. 1271# FIXME: To remove some day. 1272build=$build_alias 1273host=$host_alias 1274target=$target_alias 1275 1276# FIXME: To remove some day. 1277if test "x$host_alias" != x; then 1278 if test "x$build_alias" = x; then 1279 cross_compiling=maybe 1280 elif test "x$build_alias" != "x$host_alias"; then 1281 cross_compiling=yes 1282 fi 1283fi 1284 1285ac_tool_prefix= 1286test -n "$host_alias" && ac_tool_prefix=$host_alias- 1287 1288test "$silent" = yes && exec 6>/dev/null 1289 1290 1291ac_pwd=`pwd` && test -n "$ac_pwd" && 1292ac_ls_di=`ls -di .` && 1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1294 as_fn_error $? "working directory cannot be determined" 1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1296 as_fn_error $? "pwd does not report name of working directory" 1297 1298 1299# Find the source files, if location was not specified. 1300if test -z "$srcdir"; then 1301 ac_srcdir_defaulted=yes 1302 # Try the directory containing this script, then the parent directory. 1303 ac_confdir=`$as_dirname -- "$as_myself" || 1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1305 X"$as_myself" : 'X\(//\)[^/]' \| \ 1306 X"$as_myself" : 'X\(//\)$' \| \ 1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1308$as_echo X"$as_myself" | 1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)[^/].*/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\).*/{ 1322 s//\1/ 1323 q 1324 } 1325 s/.*/./; q'` 1326 srcdir=$ac_confdir 1327 if test ! -r "$srcdir/$ac_unique_file"; then 1328 srcdir=.. 1329 fi 1330else 1331 ac_srcdir_defaulted=no 1332fi 1333if test ! -r "$srcdir/$ac_unique_file"; then 1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1336fi 1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1338ac_abs_confdir=`( 1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1340 pwd)` 1341# When building in place, set srcdir=. 1342if test "$ac_abs_confdir" = "$ac_pwd"; then 1343 srcdir=. 1344fi 1345# Remove unnecessary trailing slashes from srcdir. 1346# Double slashes in file names in object file debugging info 1347# mess up M-x gdb in Emacs. 1348case $srcdir in 1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1350esac 1351for ac_var in $ac_precious_vars; do 1352 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_env_${ac_var}_value=\$${ac_var} 1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1356done 1357 1358# 1359# Report the --help message. 1360# 1361if test "$ac_init_help" = "long"; then 1362 # Omit some internal or obsolete options to make the list less imposing. 1363 # This message is too long to be a string in the A/UX 3.1 sh. 1364 cat <<_ACEOF 1365\`configure' configures xdpyinfo 1.3.2 to adapt to many kinds of systems. 1366 1367Usage: $0 [OPTION]... [VAR=VALUE]... 1368 1369To assign environment variables (e.g., CC, CFLAGS...), specify them as 1370VAR=VALUE. See below for descriptions of some of the useful variables. 1371 1372Defaults for the options are specified in brackets. 1373 1374Configuration: 1375 -h, --help display this help and exit 1376 --help=short display options specific to this package 1377 --help=recursive display the short help of all the included packages 1378 -V, --version display version information and exit 1379 -q, --quiet, --silent do not print \`checking ...' messages 1380 --cache-file=FILE cache test results in FILE [disabled] 1381 -C, --config-cache alias for \`--cache-file=config.cache' 1382 -n, --no-create do not create output files 1383 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1384 1385Installation directories: 1386 --prefix=PREFIX install architecture-independent files in PREFIX 1387 [$ac_default_prefix] 1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1389 [PREFIX] 1390 1391By default, \`make install' will install all the files in 1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1393an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1394for instance \`--prefix=\$HOME'. 1395 1396For better control, use the options below. 1397 1398Fine tuning of the installation directories: 1399 --bindir=DIR user executables [EPREFIX/bin] 1400 --sbindir=DIR system admin executables [EPREFIX/sbin] 1401 --libexecdir=DIR program executables [EPREFIX/libexec] 1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/xdpyinfo] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418_ACEOF 1419 1420 cat <<\_ACEOF 1421 1422Program names: 1423 --program-prefix=PREFIX prepend PREFIX to installed program names 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1430_ACEOF 1431fi 1432 1433if test -n "$ac_init_help"; then 1434 case $ac_init_help in 1435 short | recursive ) echo "Configuration of xdpyinfo 1.3.2:";; 1436 esac 1437 cat <<\_ACEOF 1438 1439Optional Features: 1440 --disable-option-checking ignore unrecognized --enable/--with options 1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1443 --enable-silent-rules less verbose build output (undo: "make V=1") 1444 --disable-silent-rules verbose build output (undo: "make V=0") 1445 --enable-dependency-tracking 1446 do not reject slow dependency extractors 1447 --disable-dependency-tracking 1448 speeds up one-time build 1449 --disable-selective-werror 1450 Turn off selective compiler errors. (default: 1451 enabled) 1452 --enable-strict-compilation 1453 Enable all warnings from compiler and make them 1454 errors (default: disabled) 1455 1456Optional Packages: 1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1459 --without-dga Disable dga support. 1460 --without-xf86misc Disable xf86misc support. 1461 --without-xinerama Disable xinerama support. 1462 --without-dmx Disable dmx support. 1463 --with-lint Use a lint-style source code checker (default: 1464 disabled) 1465 1466Some influential environment variables: 1467 CC C compiler command 1468 CFLAGS C compiler flags 1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1470 nonstandard directory <lib dir> 1471 LIBS libraries to pass to the linker, e.g. -l<library> 1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1473 you have headers in a nonstandard directory <include dir> 1474 CPP C preprocessor 1475 PKG_CONFIG path to pkg-config utility 1476 XDPYINFO_CFLAGS 1477 C compiler flags for XDPYINFO, overriding pkg-config 1478 XDPYINFO_LIBS 1479 linker flags for XDPYINFO, overriding pkg-config 1480 DPY_X11_CFLAGS 1481 C compiler flags for DPY_X11, overriding pkg-config 1482 DPY_X11_LIBS 1483 linker flags for DPY_X11, overriding pkg-config 1484 DPY_XEXT_CFLAGS 1485 C compiler flags for DPY_XEXT, overriding pkg-config 1486 DPY_XEXT_LIBS 1487 linker flags for DPY_XEXT, overriding pkg-config 1488 DPY_XKB_CFLAGS 1489 C compiler flags for DPY_XKB, overriding pkg-config 1490 DPY_XKB_LIBS 1491 linker flags for DPY_XKB, overriding pkg-config 1492 DPY_XF86VIDMODE_CFLAGS 1493 C compiler flags for DPY_XF86VIDMODE, overriding pkg-config 1494 DPY_XF86VIDMODE_LIBS 1495 linker flags for DPY_XF86VIDMODE, overriding pkg-config 1496 DPY_XF86DGA_CFLAGS 1497 C compiler flags for DPY_XF86DGA, overriding pkg-config 1498 DPY_XF86DGA_LIBS 1499 linker flags for DPY_XF86DGA, overriding pkg-config 1500 DPY_XF86MISC_CFLAGS 1501 C compiler flags for DPY_XF86MISC, overriding pkg-config 1502 DPY_XF86MISC_LIBS 1503 linker flags for DPY_XF86MISC, overriding pkg-config 1504 DPY_XINPUT_CFLAGS 1505 C compiler flags for DPY_XINPUT, overriding pkg-config 1506 DPY_XINPUT_LIBS 1507 linker flags for DPY_XINPUT, overriding pkg-config 1508 DPY_XRENDER_CFLAGS 1509 C compiler flags for DPY_XRENDER, overriding pkg-config 1510 DPY_XRENDER_LIBS 1511 linker flags for DPY_XRENDER, overriding pkg-config 1512 DPY_XCOMPOSITE_CFLAGS 1513 C compiler flags for DPY_XCOMPOSITE, overriding pkg-config 1514 DPY_XCOMPOSITE_LIBS 1515 linker flags for DPY_XCOMPOSITE, overriding pkg-config 1516 DPY_XINERAMA_CFLAGS 1517 C compiler flags for DPY_XINERAMA, overriding pkg-config 1518 DPY_XINERAMA_LIBS 1519 linker flags for DPY_XINERAMA, overriding pkg-config 1520 DPY_DMX_CFLAGS 1521 C compiler flags for DPY_DMX, overriding pkg-config 1522 DPY_DMX_LIBS 1523 linker flags for DPY_DMX, overriding pkg-config 1524 DPY_XTST_CFLAGS 1525 C compiler flags for DPY_XTST, overriding pkg-config 1526 DPY_XTST_LIBS 1527 linker flags for DPY_XTST, overriding pkg-config 1528 LINT Path to a lint-style command 1529 LINT_FLAGS Flags for the lint-style command 1530 1531Use these variables to override the choices made by `configure' or to help 1532it to find libraries and programs with nonstandard names/locations. 1533 1534Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1535_ACEOF 1536ac_status=$? 1537fi 1538 1539if test "$ac_init_help" = "recursive"; then 1540 # If there are subdirs, report their specific --help. 1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1542 test -d "$ac_dir" || 1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1544 continue 1545 ac_builddir=. 1546 1547case "$ac_dir" in 1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549*) 1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1551 # A ".." for each directory in $ac_dir_suffix. 1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1553 case $ac_top_builddir_sub in 1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1556 esac ;; 1557esac 1558ac_abs_top_builddir=$ac_pwd 1559ac_abs_builddir=$ac_pwd$ac_dir_suffix 1560# for backward compatibility: 1561ac_top_builddir=$ac_top_build_prefix 1562 1563case $srcdir in 1564 .) # We are building in place. 1565 ac_srcdir=. 1566 ac_top_srcdir=$ac_top_builddir_sub 1567 ac_abs_top_srcdir=$ac_pwd ;; 1568 [\\/]* | ?:[\\/]* ) # Absolute name. 1569 ac_srcdir=$srcdir$ac_dir_suffix; 1570 ac_top_srcdir=$srcdir 1571 ac_abs_top_srcdir=$srcdir ;; 1572 *) # Relative name. 1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1574 ac_top_srcdir=$ac_top_build_prefix$srcdir 1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1576esac 1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1578 1579 cd "$ac_dir" || { ac_status=$?; continue; } 1580 # Check for guested configure. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597xdpyinfo configure 1.3.2 1598generated by GNU Autoconf 2.69 1599 1600Copyright (C) 2012 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606 1607## ------------------------ ## 1608## Autoconf initialization. ## 1609## ------------------------ ## 1610 1611# ac_fn_c_try_compile LINENO 1612# -------------------------- 1613# Try to compile conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_compile () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext 1618 if { { ac_try="$ac_compile" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624$as_echo "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext; then : 1637 ac_retval=0 1638else 1639 $as_echo "$as_me: failed program was:" >&5 1640sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 ac_retval=1 1643fi 1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1645 as_fn_set_status $ac_retval 1646 1647} # ac_fn_c_try_compile 1648 1649# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1650# --------------------------------------------- 1651# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1652# accordingly. 1653ac_fn_c_check_decl () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 as_decl_name=`echo $2|sed 's/ *(.*//'` 1657 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1659$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1660if eval \${$3+:} false; then : 1661 $as_echo_n "(cached) " >&6 1662else 1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1664/* end confdefs.h. */ 1665$4 1666int 1667main () 1668{ 1669#ifndef $as_decl_name 1670#ifdef __cplusplus 1671 (void) $as_decl_use; 1672#else 1673 (void) $as_decl_name; 1674#endif 1675#endif 1676 1677 ; 1678 return 0; 1679} 1680_ACEOF 1681if ac_fn_c_try_compile "$LINENO"; then : 1682 eval "$3=yes" 1683else 1684 eval "$3=no" 1685fi 1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1687fi 1688eval ac_res=\$$3 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1690$as_echo "$ac_res" >&6; } 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 1693} # ac_fn_c_check_decl 1694 1695# ac_fn_c_try_cpp LINENO 1696# ---------------------- 1697# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1698ac_fn_c_try_cpp () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 if { { ac_try="$ac_cpp conftest.$ac_ext" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } > conftest.i && { 1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 }; then : 1720 ac_retval=0 1721else 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=1 1726fi 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_cpp 1731 1732# ac_fn_c_try_run LINENO 1733# ---------------------- 1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1735# that executables *can* be run. 1736ac_fn_c_try_run () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_link" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1750 { { case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_try") 2>&5 1757 ac_status=$? 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; }; }; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: program exited with status $ac_status" >&5 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=$ac_status 1767fi 1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 as_fn_set_status $ac_retval 1771 1772} # ac_fn_c_try_run 1773 1774# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1775# ------------------------------------------------------- 1776# Tests whether HEADER exists and can be compiled using the include files in 1777# INCLUDES, setting the cache variable VAR accordingly. 1778ac_fn_c_check_header_compile () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1782$as_echo_n "checking for $2... " >&6; } 1783if eval \${$3+:} false; then : 1784 $as_echo_n "(cached) " >&6 1785else 1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787/* end confdefs.h. */ 1788$4 1789#include <$2> 1790_ACEOF 1791if ac_fn_c_try_compile "$LINENO"; then : 1792 eval "$3=yes" 1793else 1794 eval "$3=no" 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_header_compile 1804 1805# ac_fn_c_try_link LINENO 1806# ----------------------- 1807# Try to link conftest.$ac_ext, and return whether this succeeded. 1808ac_fn_c_try_link () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 rm -f conftest.$ac_objext conftest$ac_exeext 1812 if { { ac_try="$ac_link" 1813case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>conftest.err 1820 ac_status=$? 1821 if test -s conftest.err; then 1822 grep -v '^ *+' conftest.err >conftest.er1 1823 cat conftest.er1 >&5 1824 mv -f conftest.er1 conftest.err 1825 fi 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; } && { 1828 test -z "$ac_c_werror_flag" || 1829 test ! -s conftest.err 1830 } && test -s conftest$ac_exeext && { 1831 test "$cross_compiling" = yes || 1832 test -x conftest$ac_exeext 1833 }; then : 1834 ac_retval=0 1835else 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=1 1840fi 1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1843 # interfere with the next link command; also delete a directory that is 1844 # left behind by Apple's compiler. We do this before executing the actions. 1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_c_try_link 1850cat >config.log <<_ACEOF 1851This file contains any messages produced by compilers while 1852running configure, to aid debugging if configure makes a mistake. 1853 1854It was created by xdpyinfo $as_me 1.3.2, which was 1855generated by GNU Autoconf 2.69. Invocation command line was 1856 1857 $ $0 $@ 1858 1859_ACEOF 1860exec 5>>config.log 1861{ 1862cat <<_ASUNAME 1863## --------- ## 1864## Platform. ## 1865## --------- ## 1866 1867hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1868uname -m = `(uname -m) 2>/dev/null || echo unknown` 1869uname -r = `(uname -r) 2>/dev/null || echo unknown` 1870uname -s = `(uname -s) 2>/dev/null || echo unknown` 1871uname -v = `(uname -v) 2>/dev/null || echo unknown` 1872 1873/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1874/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1875 1876/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1877/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1878/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1879/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1880/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1881/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1882/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1883 1884_ASUNAME 1885 1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1887for as_dir in $PATH 1888do 1889 IFS=$as_save_IFS 1890 test -z "$as_dir" && as_dir=. 1891 $as_echo "PATH: $as_dir" 1892 done 1893IFS=$as_save_IFS 1894 1895} >&5 1896 1897cat >&5 <<_ACEOF 1898 1899 1900## ----------- ## 1901## Core tests. ## 1902## ----------- ## 1903 1904_ACEOF 1905 1906 1907# Keep a trace of the command line. 1908# Strip out --no-create and --no-recursion so they do not pile up. 1909# Strip out --silent because we don't want to record it for future runs. 1910# Also quote any args containing shell meta-characters. 1911# Make two passes to allow for proper duplicate-argument suppression. 1912ac_configure_args= 1913ac_configure_args0= 1914ac_configure_args1= 1915ac_must_keep_next=false 1916for ac_pass in 1 2 1917do 1918 for ac_arg 1919 do 1920 case $ac_arg in 1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1923 | -silent | --silent | --silen | --sile | --sil) 1924 continue ;; 1925 *\'*) 1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1927 esac 1928 case $ac_pass in 1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1930 2) 1931 as_fn_append ac_configure_args1 " '$ac_arg'" 1932 if test $ac_must_keep_next = true; then 1933 ac_must_keep_next=false # Got value, back to normal. 1934 else 1935 case $ac_arg in 1936 *=* | --config-cache | -C | -disable-* | --disable-* \ 1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1939 | -with-* | --with-* | -without-* | --without-* | --x) 1940 case "$ac_configure_args0 " in 1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1942 esac 1943 ;; 1944 -* ) ac_must_keep_next=true ;; 1945 esac 1946 fi 1947 as_fn_append ac_configure_args " '$ac_arg'" 1948 ;; 1949 esac 1950 done 1951done 1952{ ac_configure_args0=; unset ac_configure_args0;} 1953{ ac_configure_args1=; unset ac_configure_args1;} 1954 1955# When interrupted or exit'd, cleanup temporary files, and complete 1956# config.log. We remove comments because anyway the quotes in there 1957# would cause problems or look ugly. 1958# WARNING: Use '\'' to represent an apostrophe within the trap. 1959# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1960trap 'exit_status=$? 1961 # Save into config.log some information that might help in debugging. 1962 { 1963 echo 1964 1965 $as_echo "## ---------------- ## 1966## Cache variables. ## 1967## ---------------- ##" 1968 echo 1969 # The following way of writing the cache mishandles newlines in values, 1970( 1971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1972 eval ac_val=\$$ac_var 1973 case $ac_val in #( 1974 *${as_nl}*) 1975 case $ac_var in #( 1976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1977$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1978 esac 1979 case $ac_var in #( 1980 _ | IFS | as_nl) ;; #( 1981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1982 *) { eval $ac_var=; unset $ac_var;} ;; 1983 esac ;; 1984 esac 1985 done 1986 (set) 2>&1 | 1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1988 *${as_nl}ac_space=\ *) 1989 sed -n \ 1990 "s/'\''/'\''\\\\'\'''\''/g; 1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1992 ;; #( 1993 *) 1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1995 ;; 1996 esac | 1997 sort 1998) 1999 echo 2000 2001 $as_echo "## ----------------- ## 2002## Output variables. ## 2003## ----------------- ##" 2004 echo 2005 for ac_var in $ac_subst_vars 2006 do 2007 eval ac_val=\$$ac_var 2008 case $ac_val in 2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2010 esac 2011 $as_echo "$ac_var='\''$ac_val'\''" 2012 done | sort 2013 echo 2014 2015 if test -n "$ac_subst_files"; then 2016 $as_echo "## ------------------- ## 2017## File substitutions. ## 2018## ------------------- ##" 2019 echo 2020 for ac_var in $ac_subst_files 2021 do 2022 eval ac_val=\$$ac_var 2023 case $ac_val in 2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2025 esac 2026 $as_echo "$ac_var='\''$ac_val'\''" 2027 done | sort 2028 echo 2029 fi 2030 2031 if test -s confdefs.h; then 2032 $as_echo "## ----------- ## 2033## confdefs.h. ## 2034## ----------- ##" 2035 echo 2036 cat confdefs.h 2037 echo 2038 fi 2039 test "$ac_signal" != 0 && 2040 $as_echo "$as_me: caught signal $ac_signal" 2041 $as_echo "$as_me: exit $exit_status" 2042 } >&5 2043 rm -f core *.core core.conftest.* && 2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2045 exit $exit_status 2046' 0 2047for ac_signal in 1 2 13 15; do 2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2049done 2050ac_signal=0 2051 2052# confdefs.h avoids OS command line length limits that DEFS can exceed. 2053rm -f -r conftest* confdefs.h 2054 2055$as_echo "/* confdefs.h */" > confdefs.h 2056 2057# Predefined preprocessor variables. 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_NAME "$PACKAGE_NAME" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2065_ACEOF 2066 2067cat >>confdefs.h <<_ACEOF 2068#define PACKAGE_VERSION "$PACKAGE_VERSION" 2069_ACEOF 2070 2071cat >>confdefs.h <<_ACEOF 2072#define PACKAGE_STRING "$PACKAGE_STRING" 2073_ACEOF 2074 2075cat >>confdefs.h <<_ACEOF 2076#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2077_ACEOF 2078 2079cat >>confdefs.h <<_ACEOF 2080#define PACKAGE_URL "$PACKAGE_URL" 2081_ACEOF 2082 2083 2084# Let the site file select an alternate cache file if it wants to. 2085# Prefer an explicitly selected file to automatically selected ones. 2086ac_site_file1=NONE 2087ac_site_file2=NONE 2088if test -n "$CONFIG_SITE"; then 2089 # We do not want a PATH search for config.site. 2090 case $CONFIG_SITE in #(( 2091 -*) ac_site_file1=./$CONFIG_SITE;; 2092 */*) ac_site_file1=$CONFIG_SITE;; 2093 *) ac_site_file1=./$CONFIG_SITE;; 2094 esac 2095elif test "x$prefix" != xNONE; then 2096 ac_site_file1=$prefix/share/config.site 2097 ac_site_file2=$prefix/etc/config.site 2098else 2099 ac_site_file1=$ac_default_prefix/share/config.site 2100 ac_site_file2=$ac_default_prefix/etc/config.site 2101fi 2102for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2103do 2104 test "x$ac_site_file" = xNONE && continue 2105 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2107$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2108 sed 's/^/| /' "$ac_site_file" >&5 2109 . "$ac_site_file" \ 2110 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2112as_fn_error $? "failed to load site script $ac_site_file 2113See \`config.log' for more details" "$LINENO" 5; } 2114 fi 2115done 2116 2117if test -r "$cache_file"; then 2118 # Some versions of bash will fail to source /dev/null (special files 2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2122$as_echo "$as_me: loading cache $cache_file" >&6;} 2123 case $cache_file in 2124 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2125 *) . "./$cache_file";; 2126 esac 2127 fi 2128else 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2130$as_echo "$as_me: creating cache $cache_file" >&6;} 2131 >$cache_file 2132fi 2133 2134# Check that the precious variables saved in the cache have kept the same 2135# value. 2136ac_cache_corrupted=false 2137for ac_var in $ac_precious_vars; do 2138 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2139 eval ac_new_set=\$ac_env_${ac_var}_set 2140 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2141 eval ac_new_val=\$ac_env_${ac_var}_value 2142 case $ac_old_set,$ac_new_set in 2143 set,) 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2145$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2146 ac_cache_corrupted=: ;; 2147 ,set) 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2149$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2150 ac_cache_corrupted=: ;; 2151 ,);; 2152 *) 2153 if test "x$ac_old_val" != "x$ac_new_val"; then 2154 # differences in whitespace do not lead to failure. 2155 ac_old_val_w=`echo x $ac_old_val` 2156 ac_new_val_w=`echo x $ac_new_val` 2157 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2159$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2160 ac_cache_corrupted=: 2161 else 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2163$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2164 eval $ac_var=\$ac_old_val 2165 fi 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2167$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2169$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2170 fi;; 2171 esac 2172 # Pass precious variables to config.status. 2173 if test "$ac_new_set" = set; then 2174 case $ac_new_val in 2175 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2176 *) ac_arg=$ac_var=$ac_new_val ;; 2177 esac 2178 case " $ac_configure_args " in 2179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2180 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2181 esac 2182 fi 2183done 2184if $ac_cache_corrupted; then 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2188$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2189 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2190fi 2191## -------------------- ## 2192## Main body of script. ## 2193## -------------------- ## 2194 2195ac_ext=c 2196ac_cpp='$CPP $CPPFLAGS' 2197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2199ac_compiler_gnu=$ac_cv_c_compiler_gnu 2200 2201 2202 2203ac_config_headers="$ac_config_headers config.h" 2204 2205 2206# Initialize Automake 2207am__api_version='1.15' 2208 2209ac_aux_dir= 2210for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2211 if test -f "$ac_dir/install-sh"; then 2212 ac_aux_dir=$ac_dir 2213 ac_install_sh="$ac_aux_dir/install-sh -c" 2214 break 2215 elif test -f "$ac_dir/install.sh"; then 2216 ac_aux_dir=$ac_dir 2217 ac_install_sh="$ac_aux_dir/install.sh -c" 2218 break 2219 elif test -f "$ac_dir/shtool"; then 2220 ac_aux_dir=$ac_dir 2221 ac_install_sh="$ac_aux_dir/shtool install -c" 2222 break 2223 fi 2224done 2225if test -z "$ac_aux_dir"; then 2226 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2227fi 2228 2229# These three variables are undocumented and unsupported, 2230# and are intended to be withdrawn in a future Autoconf release. 2231# They can cause serious problems if a builder's source tree is in a directory 2232# whose full name contains unusual characters. 2233ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2234ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2235ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2236 2237 2238# Find a good install program. We prefer a C program (faster), 2239# so one script is as good as another. But avoid the broken or 2240# incompatible versions: 2241# SysV /etc/install, /usr/sbin/install 2242# SunOS /usr/etc/install 2243# IRIX /sbin/install 2244# AIX /bin/install 2245# AmigaOS /C/install, which installs bootblocks on floppy discs 2246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2247# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2248# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2249# OS/2's system install, which has a completely different semantic 2250# ./install, which can be erroneously created by make from ./install.sh. 2251# Reject install programs that cannot install multiple files. 2252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2253$as_echo_n "checking for a BSD-compatible install... " >&6; } 2254if test -z "$INSTALL"; then 2255if ${ac_cv_path_install+:} false; then : 2256 $as_echo_n "(cached) " >&6 2257else 2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259for as_dir in $PATH 2260do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 # Account for people who put trailing slashes in PATH elements. 2264case $as_dir/ in #(( 2265 ./ | .// | /[cC]/* | \ 2266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2267 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2268 /usr/ucb/* ) ;; 2269 *) 2270 # OSF1 and SCO ODT 3.0 have their own names for install. 2271 # Don't use installbsd from OSF since it installs stuff as root 2272 # by default. 2273 for ac_prog in ginstall scoinst install; do 2274 for ac_exec_ext in '' $ac_executable_extensions; do 2275 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2276 if test $ac_prog = install && 2277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2278 # AIX install. It has an incompatible calling convention. 2279 : 2280 elif test $ac_prog = install && 2281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2282 # program-specific install script used by HP pwplus--don't use. 2283 : 2284 else 2285 rm -rf conftest.one conftest.two conftest.dir 2286 echo one > conftest.one 2287 echo two > conftest.two 2288 mkdir conftest.dir 2289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2290 test -s conftest.one && test -s conftest.two && 2291 test -s conftest.dir/conftest.one && 2292 test -s conftest.dir/conftest.two 2293 then 2294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2295 break 3 2296 fi 2297 fi 2298 fi 2299 done 2300 done 2301 ;; 2302esac 2303 2304 done 2305IFS=$as_save_IFS 2306 2307rm -rf conftest.one conftest.two conftest.dir 2308 2309fi 2310 if test "${ac_cv_path_install+set}" = set; then 2311 INSTALL=$ac_cv_path_install 2312 else 2313 # As a last resort, use the slow shell script. Don't cache a 2314 # value for INSTALL within a source directory, because that will 2315 # break other packages using the cache if that directory is 2316 # removed, or if the value is a relative name. 2317 INSTALL=$ac_install_sh 2318 fi 2319fi 2320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2321$as_echo "$INSTALL" >&6; } 2322 2323# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2324# It thinks the first close brace ends the variable substitution. 2325test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2326 2327test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2328 2329test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2330 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2332$as_echo_n "checking whether build environment is sane... " >&6; } 2333# Reject unsafe characters in $srcdir or the absolute working directory 2334# name. Accept space and tab only in the latter. 2335am_lf=' 2336' 2337case `pwd` in 2338 *[\\\"\#\$\&\'\`$am_lf]*) 2339 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2340esac 2341case $srcdir in 2342 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2343 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2344esac 2345 2346# Do 'set' in a subshell so we don't clobber the current shell's 2347# arguments. Must try -L first in case configure is actually a 2348# symlink; some systems play weird games with the mod time of symlinks 2349# (eg FreeBSD returns the mod time of the symlink's containing 2350# directory). 2351if ( 2352 am_has_slept=no 2353 for am_try in 1 2; do 2354 echo "timestamp, slept: $am_has_slept" > conftest.file 2355 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2356 if test "$*" = "X"; then 2357 # -L didn't work. 2358 set X `ls -t "$srcdir/configure" conftest.file` 2359 fi 2360 if test "$*" != "X $srcdir/configure conftest.file" \ 2361 && test "$*" != "X conftest.file $srcdir/configure"; then 2362 2363 # If neither matched, then we have a broken ls. This can happen 2364 # if, for instance, CONFIG_SHELL is bash and it inherits a 2365 # broken ls alias from the environment. This has actually 2366 # happened. Such a system could not be considered "sane". 2367 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2368 alias in your environment" "$LINENO" 5 2369 fi 2370 if test "$2" = conftest.file || test $am_try -eq 2; then 2371 break 2372 fi 2373 # Just in case. 2374 sleep 1 2375 am_has_slept=yes 2376 done 2377 test "$2" = conftest.file 2378 ) 2379then 2380 # Ok. 2381 : 2382else 2383 as_fn_error $? "newly created file is older than distributed files! 2384Check your system clock" "$LINENO" 5 2385fi 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2387$as_echo "yes" >&6; } 2388# If we didn't sleep, we still need to ensure time stamps of config.status and 2389# generated files are strictly newer. 2390am_sleep_pid= 2391if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2392 ( sleep 1 ) & 2393 am_sleep_pid=$! 2394fi 2395 2396rm -f conftest.file 2397 2398test "$program_prefix" != NONE && 2399 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2400# Use a double $ so make ignores it. 2401test "$program_suffix" != NONE && 2402 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2403# Double any \ or $. 2404# By default was `s,x,x', remove it if useless. 2405ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2406program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2407 2408# Expand $ac_aux_dir to an absolute path. 2409am_aux_dir=`cd "$ac_aux_dir" && pwd` 2410 2411if test x"${MISSING+set}" != xset; then 2412 case $am_aux_dir in 2413 *\ * | *\ *) 2414 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2415 *) 2416 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2417 esac 2418fi 2419# Use eval to expand $SHELL 2420if eval "$MISSING --is-lightweight"; then 2421 am_missing_run="$MISSING " 2422else 2423 am_missing_run= 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2425$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2426fi 2427 2428if test x"${install_sh+set}" != xset; then 2429 case $am_aux_dir in 2430 *\ * | *\ *) 2431 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2432 *) 2433 install_sh="\${SHELL} $am_aux_dir/install-sh" 2434 esac 2435fi 2436 2437# Installed binaries are usually stripped using 'strip' when the user 2438# run "make install-strip". However 'strip' might not be the right 2439# tool to use in cross-compilation environments, therefore Automake 2440# will honor the 'STRIP' environment variable to overrule this program. 2441if test "$cross_compiling" != no; then 2442 if test -n "$ac_tool_prefix"; then 2443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2444set dummy ${ac_tool_prefix}strip; ac_word=$2 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2446$as_echo_n "checking for $ac_word... " >&6; } 2447if ${ac_cv_prog_STRIP+:} false; then : 2448 $as_echo_n "(cached) " >&6 2449else 2450 if test -n "$STRIP"; then 2451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2452else 2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2454for as_dir in $PATH 2455do 2456 IFS=$as_save_IFS 2457 test -z "$as_dir" && as_dir=. 2458 for ac_exec_ext in '' $ac_executable_extensions; do 2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2460 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2462 break 2 2463 fi 2464done 2465 done 2466IFS=$as_save_IFS 2467 2468fi 2469fi 2470STRIP=$ac_cv_prog_STRIP 2471if test -n "$STRIP"; then 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2473$as_echo "$STRIP" >&6; } 2474else 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2476$as_echo "no" >&6; } 2477fi 2478 2479 2480fi 2481if test -z "$ac_cv_prog_STRIP"; then 2482 ac_ct_STRIP=$STRIP 2483 # Extract the first word of "strip", so it can be a program name with args. 2484set dummy strip; ac_word=$2 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2486$as_echo_n "checking for $ac_word... " >&6; } 2487if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489else 2490 if test -n "$ac_ct_STRIP"; then 2491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2492else 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2500 ac_cv_prog_ac_ct_STRIP="strip" 2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2502 break 2 2503 fi 2504done 2505 done 2506IFS=$as_save_IFS 2507 2508fi 2509fi 2510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2511if test -n "$ac_ct_STRIP"; then 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2513$as_echo "$ac_ct_STRIP" >&6; } 2514else 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2516$as_echo "no" >&6; } 2517fi 2518 2519 if test "x$ac_ct_STRIP" = x; then 2520 STRIP=":" 2521 else 2522 case $cross_compiling:$ac_tool_warned in 2523yes:) 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2526ac_tool_warned=yes ;; 2527esac 2528 STRIP=$ac_ct_STRIP 2529 fi 2530else 2531 STRIP="$ac_cv_prog_STRIP" 2532fi 2533 2534fi 2535INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2536 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2538$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2539if test -z "$MKDIR_P"; then 2540 if ${ac_cv_path_mkdir+:} false; then : 2541 $as_echo_n "(cached) " >&6 2542else 2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2544for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2545do 2546 IFS=$as_save_IFS 2547 test -z "$as_dir" && as_dir=. 2548 for ac_prog in mkdir gmkdir; do 2549 for ac_exec_ext in '' $ac_executable_extensions; do 2550 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2551 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2552 'mkdir (GNU coreutils) '* | \ 2553 'mkdir (coreutils) '* | \ 2554 'mkdir (fileutils) '4.1*) 2555 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2556 break 3;; 2557 esac 2558 done 2559 done 2560 done 2561IFS=$as_save_IFS 2562 2563fi 2564 2565 test -d ./--version && rmdir ./--version 2566 if test "${ac_cv_path_mkdir+set}" = set; then 2567 MKDIR_P="$ac_cv_path_mkdir -p" 2568 else 2569 # As a last resort, use the slow shell script. Don't cache a 2570 # value for MKDIR_P within a source directory, because that will 2571 # break other packages using the cache if that directory is 2572 # removed, or if the value is a relative name. 2573 MKDIR_P="$ac_install_sh -d" 2574 fi 2575fi 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2577$as_echo "$MKDIR_P" >&6; } 2578 2579for ac_prog in gawk mawk nawk awk 2580do 2581 # Extract the first word of "$ac_prog", so it can be a program name with args. 2582set dummy $ac_prog; ac_word=$2 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2584$as_echo_n "checking for $ac_word... " >&6; } 2585if ${ac_cv_prog_AWK+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test -n "$AWK"; then 2589 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2598 ac_cv_prog_AWK="$ac_prog" 2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602done 2603 done 2604IFS=$as_save_IFS 2605 2606fi 2607fi 2608AWK=$ac_cv_prog_AWK 2609if test -n "$AWK"; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2611$as_echo "$AWK" >&6; } 2612else 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2614$as_echo "no" >&6; } 2615fi 2616 2617 2618 test -n "$AWK" && break 2619done 2620 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2622$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2623set x ${MAKE-make} 2624ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2625if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 cat >conftest.make <<\_ACEOF 2629SHELL = /bin/sh 2630all: 2631 @echo '@@@%%%=$(MAKE)=@@@%%%' 2632_ACEOF 2633# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2634case `${MAKE-make} -f conftest.make 2>/dev/null` in 2635 *@@@%%%=?*=@@@%%%*) 2636 eval ac_cv_prog_make_${ac_make}_set=yes;; 2637 *) 2638 eval ac_cv_prog_make_${ac_make}_set=no;; 2639esac 2640rm -f conftest.make 2641fi 2642if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2644$as_echo "yes" >&6; } 2645 SET_MAKE= 2646else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2648$as_echo "no" >&6; } 2649 SET_MAKE="MAKE=${MAKE-make}" 2650fi 2651 2652rm -rf .tst 2>/dev/null 2653mkdir .tst 2>/dev/null 2654if test -d .tst; then 2655 am__leading_dot=. 2656else 2657 am__leading_dot=_ 2658fi 2659rmdir .tst 2>/dev/null 2660 2661# Check whether --enable-silent-rules was given. 2662if test "${enable_silent_rules+set}" = set; then : 2663 enableval=$enable_silent_rules; 2664fi 2665 2666case $enable_silent_rules in # ((( 2667 yes) AM_DEFAULT_VERBOSITY=0;; 2668 no) AM_DEFAULT_VERBOSITY=1;; 2669 *) AM_DEFAULT_VERBOSITY=1;; 2670esac 2671am_make=${MAKE-make} 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2673$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2674if ${am_cv_make_support_nested_variables+:} false; then : 2675 $as_echo_n "(cached) " >&6 2676else 2677 if $as_echo 'TRUE=$(BAR$(V)) 2678BAR0=false 2679BAR1=true 2680V=1 2681am__doit: 2682 @$(TRUE) 2683.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2684 am_cv_make_support_nested_variables=yes 2685else 2686 am_cv_make_support_nested_variables=no 2687fi 2688fi 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2690$as_echo "$am_cv_make_support_nested_variables" >&6; } 2691if test $am_cv_make_support_nested_variables = yes; then 2692 AM_V='$(V)' 2693 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2694else 2695 AM_V=$AM_DEFAULT_VERBOSITY 2696 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2697fi 2698AM_BACKSLASH='\' 2699 2700if test "`cd $srcdir && pwd`" != "`pwd`"; then 2701 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2702 # is not polluted with repeated "-I." 2703 am__isrc=' -I$(srcdir)' 2704 # test to see if srcdir already configured 2705 if test -f $srcdir/config.status; then 2706 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2707 fi 2708fi 2709 2710# test whether we have cygpath 2711if test -z "$CYGPATH_W"; then 2712 if (cygpath --version) >/dev/null 2>/dev/null; then 2713 CYGPATH_W='cygpath -w' 2714 else 2715 CYGPATH_W=echo 2716 fi 2717fi 2718 2719 2720# Define the identity of the package. 2721 PACKAGE='xdpyinfo' 2722 VERSION='1.3.2' 2723 2724 2725cat >>confdefs.h <<_ACEOF 2726#define PACKAGE "$PACKAGE" 2727_ACEOF 2728 2729 2730cat >>confdefs.h <<_ACEOF 2731#define VERSION "$VERSION" 2732_ACEOF 2733 2734# Some tools Automake needs. 2735 2736ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2737 2738 2739AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2740 2741 2742AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2743 2744 2745AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2746 2747 2748MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2749 2750# For better backward compatibility. To be removed once Automake 1.9.x 2751# dies out for good. For more background, see: 2752# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2753# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2754mkdir_p='$(MKDIR_P)' 2755 2756# We need awk for the "check" target (and possibly the TAP driver). The 2757# system "awk" is bad on some platforms. 2758# Always define AMTAR for backward compatibility. Yes, it's still used 2759# in the wild :-( We should find a proper way to deprecate it ... 2760AMTAR='$${TAR-tar}' 2761 2762 2763# We'll loop over all known methods to create a tar archive until one works. 2764_am_tools='gnutar pax cpio none' 2765 2766am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2767 2768 2769 2770 2771 2772 2773# POSIX will say in a future version that running "rm -f" with no argument 2774# is OK; and we want to be able to make that assumption in our Makefile 2775# recipes. So use an aggressive probe to check that the usage we want is 2776# actually supported "in the wild" to an acceptable degree. 2777# See automake bug#10828. 2778# To make any issue more visible, cause the running configure to be aborted 2779# by default if the 'rm' program in use doesn't match our expectations; the 2780# user can still override this though. 2781if rm -f && rm -fr && rm -rf; then : OK; else 2782 cat >&2 <<'END' 2783Oops! 2784 2785Your 'rm' program seems unable to run without file operands specified 2786on the command line, even when the '-f' option is present. This is contrary 2787to the behaviour of most rm programs out there, and not conforming with 2788the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2789 2790Please tell bug-automake@gnu.org about your system, including the value 2791of your $PATH and any error possibly output before this message. This 2792can help us improve future automake versions. 2793 2794END 2795 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2796 echo 'Configuration will proceed anyway, since you have set the' >&2 2797 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2798 echo >&2 2799 else 2800 cat >&2 <<'END' 2801Aborting the configuration process, to ensure you take notice of the issue. 2802 2803You can download and install GNU coreutils to get an 'rm' implementation 2804that behaves properly: <http://www.gnu.org/software/coreutils/>. 2805 2806If you want to complete the configuration process using your problematic 2807'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2808to "yes", and re-run configure. 2809 2810END 2811 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2812 fi 2813fi 2814 2815 2816# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828DEPDIR="${am__leading_dot}deps" 2829 2830ac_config_commands="$ac_config_commands depfiles" 2831 2832 2833am_make=${MAKE-make} 2834cat > confinc << 'END' 2835am__doit: 2836 @echo this is the am__doit target 2837.PHONY: am__doit 2838END 2839# If we don't find an include directive, just comment out the code. 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2841$as_echo_n "checking for style of include used by $am_make... " >&6; } 2842am__include="#" 2843am__quote= 2844_am_result=none 2845# First try GNU make style include. 2846echo "include confinc" > confmf 2847# Ignore all kinds of additional output from 'make'. 2848case `$am_make -s -f confmf 2> /dev/null` in #( 2849*the\ am__doit\ target*) 2850 am__include=include 2851 am__quote= 2852 _am_result=GNU 2853 ;; 2854esac 2855# Now try BSD make style include. 2856if test "$am__include" = "#"; then 2857 echo '.include "confinc"' > confmf 2858 case `$am_make -s -f confmf 2> /dev/null` in #( 2859 *the\ am__doit\ target*) 2860 am__include=.include 2861 am__quote="\"" 2862 _am_result=BSD 2863 ;; 2864 esac 2865fi 2866 2867 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2869$as_echo "$_am_result" >&6; } 2870rm -f confinc confmf 2871 2872# Check whether --enable-dependency-tracking was given. 2873if test "${enable_dependency_tracking+set}" = set; then : 2874 enableval=$enable_dependency_tracking; 2875fi 2876 2877if test "x$enable_dependency_tracking" != xno; then 2878 am_depcomp="$ac_aux_dir/depcomp" 2879 AMDEPBACKSLASH='\' 2880 am__nodep='_no' 2881fi 2882 if test "x$enable_dependency_tracking" != xno; then 2883 AMDEP_TRUE= 2884 AMDEP_FALSE='#' 2885else 2886 AMDEP_TRUE='#' 2887 AMDEP_FALSE= 2888fi 2889 2890 2891ac_ext=c 2892ac_cpp='$CPP $CPPFLAGS' 2893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2895ac_compiler_gnu=$ac_cv_c_compiler_gnu 2896if test -n "$ac_tool_prefix"; then 2897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2898set dummy ${ac_tool_prefix}gcc; ac_word=$2 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2900$as_echo_n "checking for $ac_word... " >&6; } 2901if ${ac_cv_prog_CC+:} false; then : 2902 $as_echo_n "(cached) " >&6 2903else 2904 if test -n "$CC"; then 2905 ac_cv_prog_CC="$CC" # Let the user override the test. 2906else 2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2908for as_dir in $PATH 2909do 2910 IFS=$as_save_IFS 2911 test -z "$as_dir" && as_dir=. 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2914 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2916 break 2 2917 fi 2918done 2919 done 2920IFS=$as_save_IFS 2921 2922fi 2923fi 2924CC=$ac_cv_prog_CC 2925if test -n "$CC"; then 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2927$as_echo "$CC" >&6; } 2928else 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2930$as_echo "no" >&6; } 2931fi 2932 2933 2934fi 2935if test -z "$ac_cv_prog_CC"; then 2936 ac_ct_CC=$CC 2937 # Extract the first word of "gcc", so it can be a program name with args. 2938set dummy gcc; ac_word=$2 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2940$as_echo_n "checking for $ac_word... " >&6; } 2941if ${ac_cv_prog_ac_ct_CC+:} false; then : 2942 $as_echo_n "(cached) " >&6 2943else 2944 if test -n "$ac_ct_CC"; then 2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2946else 2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948for as_dir in $PATH 2949do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 for ac_exec_ext in '' $ac_executable_extensions; do 2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2954 ac_cv_prog_ac_ct_CC="gcc" 2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2956 break 2 2957 fi 2958done 2959 done 2960IFS=$as_save_IFS 2961 2962fi 2963fi 2964ac_ct_CC=$ac_cv_prog_ac_ct_CC 2965if test -n "$ac_ct_CC"; then 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2967$as_echo "$ac_ct_CC" >&6; } 2968else 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970$as_echo "no" >&6; } 2971fi 2972 2973 if test "x$ac_ct_CC" = x; then 2974 CC="" 2975 else 2976 case $cross_compiling:$ac_tool_warned in 2977yes:) 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2980ac_tool_warned=yes ;; 2981esac 2982 CC=$ac_ct_CC 2983 fi 2984else 2985 CC="$ac_cv_prog_CC" 2986fi 2987 2988if test -z "$CC"; then 2989 if test -n "$ac_tool_prefix"; then 2990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2991set dummy ${ac_tool_prefix}cc; ac_word=$2 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2993$as_echo_n "checking for $ac_word... " >&6; } 2994if ${ac_cv_prog_CC+:} false; then : 2995 $as_echo_n "(cached) " >&6 2996else 2997 if test -n "$CC"; then 2998 ac_cv_prog_CC="$CC" # Let the user override the test. 2999else 3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH 3002do 3003 IFS=$as_save_IFS 3004 test -z "$as_dir" && as_dir=. 3005 for ac_exec_ext in '' $ac_executable_extensions; do 3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3007 ac_cv_prog_CC="${ac_tool_prefix}cc" 3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3009 break 2 3010 fi 3011done 3012 done 3013IFS=$as_save_IFS 3014 3015fi 3016fi 3017CC=$ac_cv_prog_CC 3018if test -n "$CC"; then 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3020$as_echo "$CC" >&6; } 3021else 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3023$as_echo "no" >&6; } 3024fi 3025 3026 3027 fi 3028fi 3029if test -z "$CC"; then 3030 # Extract the first word of "cc", so it can be a program name with args. 3031set dummy cc; ac_word=$2 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033$as_echo_n "checking for $ac_word... " >&6; } 3034if ${ac_cv_prog_CC+:} false; then : 3035 $as_echo_n "(cached) " >&6 3036else 3037 if test -n "$CC"; then 3038 ac_cv_prog_CC="$CC" # Let the user override the test. 3039else 3040 ac_prog_rejected=no 3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042for as_dir in $PATH 3043do 3044 IFS=$as_save_IFS 3045 test -z "$as_dir" && as_dir=. 3046 for ac_exec_ext in '' $ac_executable_extensions; do 3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3049 ac_prog_rejected=yes 3050 continue 3051 fi 3052 ac_cv_prog_CC="cc" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057 done 3058IFS=$as_save_IFS 3059 3060if test $ac_prog_rejected = yes; then 3061 # We found a bogon in the path, so make sure we never use it. 3062 set dummy $ac_cv_prog_CC 3063 shift 3064 if test $# != 0; then 3065 # We chose a different compiler from the bogus one. 3066 # However, it has the same basename, so the bogon will be chosen 3067 # first if we set CC to just the basename; use the full file name. 3068 shift 3069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3070 fi 3071fi 3072fi 3073fi 3074CC=$ac_cv_prog_CC 3075if test -n "$CC"; then 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3077$as_echo "$CC" >&6; } 3078else 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080$as_echo "no" >&6; } 3081fi 3082 3083 3084fi 3085if test -z "$CC"; then 3086 if test -n "$ac_tool_prefix"; then 3087 for ac_prog in cl.exe 3088 do 3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3090set dummy $ac_tool_prefix$ac_prog; 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_CC+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$CC"; then 3097 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog" 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 3116CC=$ac_cv_prog_CC 3117if test -n "$CC"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3119$as_echo "$CC" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 3126 test -n "$CC" && break 3127 done 3128fi 3129if test -z "$CC"; then 3130 ac_ct_CC=$CC 3131 for ac_prog in cl.exe 3132do 3133 # Extract the first word of "$ac_prog", so it can be a program name with args. 3134set dummy $ac_prog; ac_word=$2 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136$as_echo_n "checking for $ac_word... " >&6; } 3137if ${ac_cv_prog_ac_ct_CC+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 if test -n "$ac_ct_CC"; then 3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3142else 3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144for as_dir in $PATH 3145do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_ac_ct_CC="$ac_prog" 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154done 3155 done 3156IFS=$as_save_IFS 3157 3158fi 3159fi 3160ac_ct_CC=$ac_cv_prog_ac_ct_CC 3161if test -n "$ac_ct_CC"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3163$as_echo "$ac_ct_CC" >&6; } 3164else 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166$as_echo "no" >&6; } 3167fi 3168 3169 3170 test -n "$ac_ct_CC" && break 3171done 3172 3173 if test "x$ac_ct_CC" = x; then 3174 CC="" 3175 else 3176 case $cross_compiling:$ac_tool_warned in 3177yes:) 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3180ac_tool_warned=yes ;; 3181esac 3182 CC=$ac_ct_CC 3183 fi 3184fi 3185 3186fi 3187 3188 3189test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3191as_fn_error $? "no acceptable C compiler found in \$PATH 3192See \`config.log' for more details" "$LINENO" 5; } 3193 3194# Provide some information about the compiler. 3195$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3196set X $ac_compile 3197ac_compiler=$2 3198for ac_option in --version -v -V -qversion; do 3199 { { ac_try="$ac_compiler $ac_option >&5" 3200case "(($ac_try" in 3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3202 *) ac_try_echo=$ac_try;; 3203esac 3204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3205$as_echo "$ac_try_echo"; } >&5 3206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3207 ac_status=$? 3208 if test -s conftest.err; then 3209 sed '10a\ 3210... rest of stderr output deleted ... 3211 10q' conftest.err >conftest.er1 3212 cat conftest.er1 >&5 3213 fi 3214 rm -f conftest.er1 conftest.err 3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3216 test $ac_status = 0; } 3217done 3218 3219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3220/* end confdefs.h. */ 3221 3222int 3223main () 3224{ 3225 3226 ; 3227 return 0; 3228} 3229_ACEOF 3230ac_clean_files_save=$ac_clean_files 3231ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3232# Try to create an executable without -o first, disregard a.out. 3233# It will help us diagnose broken compilers, and finding out an intuition 3234# of exeext. 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3236$as_echo_n "checking whether the C compiler works... " >&6; } 3237ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3238 3239# The possible output files: 3240ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3241 3242ac_rmfiles= 3243for ac_file in $ac_files 3244do 3245 case $ac_file in 3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3247 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3248 esac 3249done 3250rm -f $ac_rmfiles 3251 3252if { { ac_try="$ac_link_default" 3253case "(($ac_try" in 3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3255 *) ac_try_echo=$ac_try;; 3256esac 3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3258$as_echo "$ac_try_echo"; } >&5 3259 (eval "$ac_link_default") 2>&5 3260 ac_status=$? 3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3262 test $ac_status = 0; }; then : 3263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3264# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3265# in a Makefile. We should not override ac_cv_exeext if it was cached, 3266# so that the user can short-circuit this test for compilers unknown to 3267# Autoconf. 3268for ac_file in $ac_files '' 3269do 3270 test -f "$ac_file" || continue 3271 case $ac_file in 3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3273 ;; 3274 [ab].out ) 3275 # We found the default executable, but exeext='' is most 3276 # certainly right. 3277 break;; 3278 *.* ) 3279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3280 then :; else 3281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3282 fi 3283 # We set ac_cv_exeext here because the later test for it is not 3284 # safe: cross compilers may not add the suffix if given an `-o' 3285 # argument, so we may need to know it at that point already. 3286 # Even if this section looks crufty: it has the advantage of 3287 # actually working. 3288 break;; 3289 * ) 3290 break;; 3291 esac 3292done 3293test "$ac_cv_exeext" = no && ac_cv_exeext= 3294 3295else 3296 ac_file='' 3297fi 3298if test -z "$ac_file"; then : 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3300$as_echo "no" >&6; } 3301$as_echo "$as_me: failed program was:" >&5 3302sed 's/^/| /' conftest.$ac_ext >&5 3303 3304{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3306as_fn_error 77 "C compiler cannot create executables 3307See \`config.log' for more details" "$LINENO" 5; } 3308else 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3310$as_echo "yes" >&6; } 3311fi 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3313$as_echo_n "checking for C compiler default output file name... " >&6; } 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3315$as_echo "$ac_file" >&6; } 3316ac_exeext=$ac_cv_exeext 3317 3318rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3319ac_clean_files=$ac_clean_files_save 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3321$as_echo_n "checking for suffix of executables... " >&6; } 3322if { { ac_try="$ac_link" 3323case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3328$as_echo "$ac_try_echo"; } >&5 3329 (eval "$ac_link") 2>&5 3330 ac_status=$? 3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3332 test $ac_status = 0; }; then : 3333 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3334# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3335# work properly (i.e., refer to `conftest.exe'), while it won't with 3336# `rm'. 3337for ac_file in conftest.exe conftest conftest.*; do 3338 test -f "$ac_file" || continue 3339 case $ac_file in 3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3342 break;; 3343 * ) break;; 3344 esac 3345done 3346else 3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3349as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3350See \`config.log' for more details" "$LINENO" 5; } 3351fi 3352rm -f conftest conftest$ac_cv_exeext 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3354$as_echo "$ac_cv_exeext" >&6; } 3355 3356rm -f conftest.$ac_ext 3357EXEEXT=$ac_cv_exeext 3358ac_exeext=$EXEEXT 3359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360/* end confdefs.h. */ 3361#include <stdio.h> 3362int 3363main () 3364{ 3365FILE *f = fopen ("conftest.out", "w"); 3366 return ferror (f) || fclose (f) != 0; 3367 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372ac_clean_files="$ac_clean_files conftest.out" 3373# Check that the compiler produces executables we can run. If not, either 3374# the compiler is broken, or we cross compile. 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3376$as_echo_n "checking whether we are cross compiling... " >&6; } 3377if test "$cross_compiling" != yes; then 3378 { { ac_try="$ac_link" 3379case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3384$as_echo "$ac_try_echo"; } >&5 3385 (eval "$ac_link") 2>&5 3386 ac_status=$? 3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3388 test $ac_status = 0; } 3389 if { ac_try='./conftest$ac_cv_exeext' 3390 { { case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3395$as_echo "$ac_try_echo"; } >&5 3396 (eval "$ac_try") 2>&5 3397 ac_status=$? 3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; }; }; then 3400 cross_compiling=no 3401 else 3402 if test "$cross_compiling" = maybe; then 3403 cross_compiling=yes 3404 else 3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3407as_fn_error $? "cannot run C compiled programs. 3408If you meant to cross compile, use \`--host'. 3409See \`config.log' for more details" "$LINENO" 5; } 3410 fi 3411 fi 3412fi 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3414$as_echo "$cross_compiling" >&6; } 3415 3416rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3417ac_clean_files=$ac_clean_files_save 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3419$as_echo_n "checking for suffix of object files... " >&6; } 3420if ${ac_cv_objext+:} false; then : 3421 $as_echo_n "(cached) " >&6 3422else 3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3424/* end confdefs.h. */ 3425 3426int 3427main () 3428{ 3429 3430 ; 3431 return 0; 3432} 3433_ACEOF 3434rm -f conftest.o conftest.obj 3435if { { ac_try="$ac_compile" 3436case "(($ac_try" in 3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3438 *) ac_try_echo=$ac_try;; 3439esac 3440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3441$as_echo "$ac_try_echo"; } >&5 3442 (eval "$ac_compile") 2>&5 3443 ac_status=$? 3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3445 test $ac_status = 0; }; then : 3446 for ac_file in conftest.o conftest.obj conftest.*; do 3447 test -f "$ac_file" || continue; 3448 case $ac_file in 3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3451 break;; 3452 esac 3453done 3454else 3455 $as_echo "$as_me: failed program was:" >&5 3456sed 's/^/| /' conftest.$ac_ext >&5 3457 3458{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3460as_fn_error $? "cannot compute suffix of object files: cannot compile 3461See \`config.log' for more details" "$LINENO" 5; } 3462fi 3463rm -f conftest.$ac_cv_objext conftest.$ac_ext 3464fi 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3466$as_echo "$ac_cv_objext" >&6; } 3467OBJEXT=$ac_cv_objext 3468ac_objext=$OBJEXT 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3470$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3471if ${ac_cv_c_compiler_gnu+:} false; then : 3472 $as_echo_n "(cached) " >&6 3473else 3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3475/* end confdefs.h. */ 3476 3477int 3478main () 3479{ 3480#ifndef __GNUC__ 3481 choke me 3482#endif 3483 3484 ; 3485 return 0; 3486} 3487_ACEOF 3488if ac_fn_c_try_compile "$LINENO"; then : 3489 ac_compiler_gnu=yes 3490else 3491 ac_compiler_gnu=no 3492fi 3493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3494ac_cv_c_compiler_gnu=$ac_compiler_gnu 3495 3496fi 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3498$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3499if test $ac_compiler_gnu = yes; then 3500 GCC=yes 3501else 3502 GCC= 3503fi 3504ac_test_CFLAGS=${CFLAGS+set} 3505ac_save_CFLAGS=$CFLAGS 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3507$as_echo_n "checking whether $CC accepts -g... " >&6; } 3508if ${ac_cv_prog_cc_g+:} false; then : 3509 $as_echo_n "(cached) " >&6 3510else 3511 ac_save_c_werror_flag=$ac_c_werror_flag 3512 ac_c_werror_flag=yes 3513 ac_cv_prog_cc_g=no 3514 CFLAGS="-g" 3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517 3518int 3519main () 3520{ 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526if ac_fn_c_try_compile "$LINENO"; then : 3527 ac_cv_prog_cc_g=yes 3528else 3529 CFLAGS="" 3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3531/* end confdefs.h. */ 3532 3533int 3534main () 3535{ 3536 3537 ; 3538 return 0; 3539} 3540_ACEOF 3541if ac_fn_c_try_compile "$LINENO"; then : 3542 3543else 3544 ac_c_werror_flag=$ac_save_c_werror_flag 3545 CFLAGS="-g" 3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3547/* end confdefs.h. */ 3548 3549int 3550main () 3551{ 3552 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557if ac_fn_c_try_compile "$LINENO"; then : 3558 ac_cv_prog_cc_g=yes 3559fi 3560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3561fi 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3563fi 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565 ac_c_werror_flag=$ac_save_c_werror_flag 3566fi 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3568$as_echo "$ac_cv_prog_cc_g" >&6; } 3569if test "$ac_test_CFLAGS" = set; then 3570 CFLAGS=$ac_save_CFLAGS 3571elif test $ac_cv_prog_cc_g = yes; then 3572 if test "$GCC" = yes; then 3573 CFLAGS="-g -O2" 3574 else 3575 CFLAGS="-g" 3576 fi 3577else 3578 if test "$GCC" = yes; then 3579 CFLAGS="-O2" 3580 else 3581 CFLAGS= 3582 fi 3583fi 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3586if ${ac_cv_prog_cc_c89+:} false; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 ac_cv_prog_cc_c89=no 3590ac_save_CC=$CC 3591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593#include <stdarg.h> 3594#include <stdio.h> 3595struct stat; 3596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3597struct buf { int x; }; 3598FILE * (*rcsopen) (struct buf *, struct stat *, int); 3599static char *e (p, i) 3600 char **p; 3601 int i; 3602{ 3603 return p[i]; 3604} 3605static char *f (char * (*g) (char **, int), char **p, ...) 3606{ 3607 char *s; 3608 va_list v; 3609 va_start (v,p); 3610 s = g (p, va_arg (v,int)); 3611 va_end (v); 3612 return s; 3613} 3614 3615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3616 function prototypes and stuff, but not '\xHH' hex character constants. 3617 These don't provoke an error unfortunately, instead are silently treated 3618 as 'x'. The following induces an error, until -std is added to get 3619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3620 array size at least. It's necessary to write '\x00'==0 to get something 3621 that's true only with -std. */ 3622int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3623 3624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3625 inside strings and character constants. */ 3626#define FOO(x) 'x' 3627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3628 3629int test (int i, double x); 3630struct s1 {int (*f) (int a);}; 3631struct s2 {int (*f) (double a);}; 3632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3633int argc; 3634char **argv; 3635int 3636main () 3637{ 3638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3639 ; 3640 return 0; 3641} 3642_ACEOF 3643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3645do 3646 CC="$ac_save_CC $ac_arg" 3647 if ac_fn_c_try_compile "$LINENO"; then : 3648 ac_cv_prog_cc_c89=$ac_arg 3649fi 3650rm -f core conftest.err conftest.$ac_objext 3651 test "x$ac_cv_prog_cc_c89" != "xno" && break 3652done 3653rm -f conftest.$ac_ext 3654CC=$ac_save_CC 3655 3656fi 3657# AC_CACHE_VAL 3658case "x$ac_cv_prog_cc_c89" in 3659 x) 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3661$as_echo "none needed" >&6; } ;; 3662 xno) 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3664$as_echo "unsupported" >&6; } ;; 3665 *) 3666 CC="$CC $ac_cv_prog_cc_c89" 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3669esac 3670if test "x$ac_cv_prog_cc_c89" != xno; then : 3671 3672fi 3673 3674ac_ext=c 3675ac_cpp='$CPP $CPPFLAGS' 3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3678ac_compiler_gnu=$ac_cv_c_compiler_gnu 3679 3680ac_ext=c 3681ac_cpp='$CPP $CPPFLAGS' 3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3684ac_compiler_gnu=$ac_cv_c_compiler_gnu 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3686$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3687if ${am_cv_prog_cc_c_o+:} false; then : 3688 $as_echo_n "(cached) " >&6 3689else 3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3691/* end confdefs.h. */ 3692 3693int 3694main () 3695{ 3696 3697 ; 3698 return 0; 3699} 3700_ACEOF 3701 # Make sure it works both with $CC and with simple cc. 3702 # Following AC_PROG_CC_C_O, we do the test twice because some 3703 # compilers refuse to overwrite an existing .o file with -o, 3704 # though they will create one. 3705 am_cv_prog_cc_c_o=yes 3706 for am_i in 1 2; do 3707 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3708 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3709 ac_status=$? 3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3711 (exit $ac_status); } \ 3712 && test -f conftest2.$ac_objext; then 3713 : OK 3714 else 3715 am_cv_prog_cc_c_o=no 3716 break 3717 fi 3718 done 3719 rm -f core conftest* 3720 unset am_i 3721fi 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3723$as_echo "$am_cv_prog_cc_c_o" >&6; } 3724if test "$am_cv_prog_cc_c_o" != yes; then 3725 # Losing compiler, so override with the script. 3726 # FIXME: It is wrong to rewrite CC. 3727 # But if we don't then we get into trouble of one sort or another. 3728 # A longer-term fix would be to have automake use am__CC in this case, 3729 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3730 CC="$am_aux_dir/compile $CC" 3731fi 3732ac_ext=c 3733ac_cpp='$CPP $CPPFLAGS' 3734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3736ac_compiler_gnu=$ac_cv_c_compiler_gnu 3737 3738 3739depcc="$CC" am_compiler_list= 3740 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3742$as_echo_n "checking dependency style of $depcc... " >&6; } 3743if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3744 $as_echo_n "(cached) " >&6 3745else 3746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3747 # We make a subdir and do the tests there. Otherwise we can end up 3748 # making bogus files that we don't know about and never remove. For 3749 # instance it was reported that on HP-UX the gcc test will end up 3750 # making a dummy file named 'D' -- because '-MD' means "put the output 3751 # in D". 3752 rm -rf conftest.dir 3753 mkdir conftest.dir 3754 # Copy depcomp to subdir because otherwise we won't find it if we're 3755 # using a relative directory. 3756 cp "$am_depcomp" conftest.dir 3757 cd conftest.dir 3758 # We will build objects and dependencies in a subdirectory because 3759 # it helps to detect inapplicable dependency modes. For instance 3760 # both Tru64's cc and ICC support -MD to output dependencies as a 3761 # side effect of compilation, but ICC will put the dependencies in 3762 # the current directory while Tru64 will put them in the object 3763 # directory. 3764 mkdir sub 3765 3766 am_cv_CC_dependencies_compiler_type=none 3767 if test "$am_compiler_list" = ""; then 3768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3769 fi 3770 am__universal=false 3771 case " $depcc " in #( 3772 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3773 esac 3774 3775 for depmode in $am_compiler_list; do 3776 # Setup a source with many dependencies, because some compilers 3777 # like to wrap large dependency lists on column 80 (with \), and 3778 # we should not choose a depcomp mode which is confused by this. 3779 # 3780 # We need to recreate these files for each test, as the compiler may 3781 # overwrite some of them when testing with obscure command lines. 3782 # This happens at least with the AIX C compiler. 3783 : > sub/conftest.c 3784 for i in 1 2 3 4 5 6; do 3785 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3786 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3787 # Solaris 10 /bin/sh. 3788 echo '/* dummy */' > sub/conftst$i.h 3789 done 3790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3791 3792 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3793 # mode. It turns out that the SunPro C++ compiler does not properly 3794 # handle '-M -o', and we need to detect this. Also, some Intel 3795 # versions had trouble with output in subdirs. 3796 am__obj=sub/conftest.${OBJEXT-o} 3797 am__minus_obj="-o $am__obj" 3798 case $depmode in 3799 gcc) 3800 # This depmode causes a compiler race in universal mode. 3801 test "$am__universal" = false || continue 3802 ;; 3803 nosideeffect) 3804 # After this tag, mechanisms are not by side-effect, so they'll 3805 # only be used when explicitly requested. 3806 if test "x$enable_dependency_tracking" = xyes; then 3807 continue 3808 else 3809 break 3810 fi 3811 ;; 3812 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3813 # This compiler won't grok '-c -o', but also, the minuso test has 3814 # not run yet. These depmodes are late enough in the game, and 3815 # so weak that their functioning should not be impacted. 3816 am__obj=conftest.${OBJEXT-o} 3817 am__minus_obj= 3818 ;; 3819 none) break ;; 3820 esac 3821 if depmode=$depmode \ 3822 source=sub/conftest.c object=$am__obj \ 3823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3825 >/dev/null 2>conftest.err && 3826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3830 # icc doesn't choke on unknown options, it will just issue warnings 3831 # or remarks (even with -Werror). So we grep stderr for any message 3832 # that says an option was ignored or not supported. 3833 # When given -MP, icc 7.0 and 7.1 complain thusly: 3834 # icc: Command line warning: ignoring option '-M'; no argument required 3835 # The diagnosis changed in icc 8.0: 3836 # icc: Command line remark: option '-MP' not supported 3837 if (grep 'ignoring option' conftest.err || 3838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3839 am_cv_CC_dependencies_compiler_type=$depmode 3840 break 3841 fi 3842 fi 3843 done 3844 3845 cd .. 3846 rm -rf conftest.dir 3847else 3848 am_cv_CC_dependencies_compiler_type=none 3849fi 3850 3851fi 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3853$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3854CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3855 3856 if 3857 test "x$enable_dependency_tracking" != xno \ 3858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3859 am__fastdepCC_TRUE= 3860 am__fastdepCC_FALSE='#' 3861else 3862 am__fastdepCC_TRUE='#' 3863 am__fastdepCC_FALSE= 3864fi 3865 3866 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3868$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3869if ${ac_cv_prog_cc_c99+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 ac_cv_prog_cc_c99=no 3873ac_save_CC=$CC 3874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876#include <stdarg.h> 3877#include <stdbool.h> 3878#include <stdlib.h> 3879#include <wchar.h> 3880#include <stdio.h> 3881 3882// Check varargs macros. These examples are taken from C99 6.10.3.5. 3883#define debug(...) fprintf (stderr, __VA_ARGS__) 3884#define showlist(...) puts (#__VA_ARGS__) 3885#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3886static void 3887test_varargs_macros (void) 3888{ 3889 int x = 1234; 3890 int y = 5678; 3891 debug ("Flag"); 3892 debug ("X = %d\n", x); 3893 showlist (The first, second, and third items.); 3894 report (x>y, "x is %d but y is %d", x, y); 3895} 3896 3897// Check long long types. 3898#define BIG64 18446744073709551615ull 3899#define BIG32 4294967295ul 3900#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3901#if !BIG_OK 3902 your preprocessor is broken; 3903#endif 3904#if BIG_OK 3905#else 3906 your preprocessor is broken; 3907#endif 3908static long long int bignum = -9223372036854775807LL; 3909static unsigned long long int ubignum = BIG64; 3910 3911struct incomplete_array 3912{ 3913 int datasize; 3914 double data[]; 3915}; 3916 3917struct named_init { 3918 int number; 3919 const wchar_t *name; 3920 double average; 3921}; 3922 3923typedef const char *ccp; 3924 3925static inline int 3926test_restrict (ccp restrict text) 3927{ 3928 // See if C++-style comments work. 3929 // Iterate through items via the restricted pointer. 3930 // Also check for declarations in for loops. 3931 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3932 continue; 3933 return 0; 3934} 3935 3936// Check varargs and va_copy. 3937static void 3938test_varargs (const char *format, ...) 3939{ 3940 va_list args; 3941 va_start (args, format); 3942 va_list args_copy; 3943 va_copy (args_copy, args); 3944 3945 const char *str; 3946 int number; 3947 float fnumber; 3948 3949 while (*format) 3950 { 3951 switch (*format++) 3952 { 3953 case 's': // string 3954 str = va_arg (args_copy, const char *); 3955 break; 3956 case 'd': // int 3957 number = va_arg (args_copy, int); 3958 break; 3959 case 'f': // float 3960 fnumber = va_arg (args_copy, double); 3961 break; 3962 default: 3963 break; 3964 } 3965 } 3966 va_end (args_copy); 3967 va_end (args); 3968} 3969 3970int 3971main () 3972{ 3973 3974 // Check bool. 3975 _Bool success = false; 3976 3977 // Check restrict. 3978 if (test_restrict ("String literal") == 0) 3979 success = true; 3980 char *restrict newvar = "Another string"; 3981 3982 // Check varargs. 3983 test_varargs ("s, d' f .", "string", 65, 34.234); 3984 test_varargs_macros (); 3985 3986 // Check flexible array members. 3987 struct incomplete_array *ia = 3988 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3989 ia->datasize = 10; 3990 for (int i = 0; i < ia->datasize; ++i) 3991 ia->data[i] = i * 1.234; 3992 3993 // Check named initializers. 3994 struct named_init ni = { 3995 .number = 34, 3996 .name = L"Test wide string", 3997 .average = 543.34343, 3998 }; 3999 4000 ni.number = 58; 4001 4002 int dynamic_array[ni.number]; 4003 dynamic_array[ni.number - 1] = 543; 4004 4005 // work around unused variable warnings 4006 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4007 || dynamic_array[ni.number - 1] != 543); 4008 4009 ; 4010 return 0; 4011} 4012_ACEOF 4013for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4014do 4015 CC="$ac_save_CC $ac_arg" 4016 if ac_fn_c_try_compile "$LINENO"; then : 4017 ac_cv_prog_cc_c99=$ac_arg 4018fi 4019rm -f core conftest.err conftest.$ac_objext 4020 test "x$ac_cv_prog_cc_c99" != "xno" && break 4021done 4022rm -f conftest.$ac_ext 4023CC=$ac_save_CC 4024 4025fi 4026# AC_CACHE_VAL 4027case "x$ac_cv_prog_cc_c99" in 4028 x) 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4030$as_echo "none needed" >&6; } ;; 4031 xno) 4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4033$as_echo "unsupported" >&6; } ;; 4034 *) 4035 CC="$CC $ac_cv_prog_cc_c99" 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4037$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4038esac 4039if test "x$ac_cv_prog_cc_c99" != xno; then : 4040 4041fi 4042 4043 4044 4045ac_ext=c 4046ac_cpp='$CPP $CPPFLAGS' 4047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4049ac_compiler_gnu=$ac_cv_c_compiler_gnu 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4051$as_echo_n "checking how to run the C preprocessor... " >&6; } 4052# On Suns, sometimes $CPP names a directory. 4053if test -n "$CPP" && test -d "$CPP"; then 4054 CPP= 4055fi 4056if test -z "$CPP"; then 4057 if ${ac_cv_prog_CPP+:} false; then : 4058 $as_echo_n "(cached) " >&6 4059else 4060 # Double quotes because CPP needs to be expanded 4061 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4062 do 4063 ac_preproc_ok=false 4064for ac_c_preproc_warn_flag in '' yes 4065do 4066 # Use a header file that comes with gcc, so configuring glibc 4067 # with a fresh cross-compiler works. 4068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4069 # <limits.h> exists even on freestanding compilers. 4070 # On the NeXT, cc -E runs the code through the compiler's parser, 4071 # not just through cpp. "Syntax error" is here to catch this case. 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074#ifdef __STDC__ 4075# include <limits.h> 4076#else 4077# include <assert.h> 4078#endif 4079 Syntax error 4080_ACEOF 4081if ac_fn_c_try_cpp "$LINENO"; then : 4082 4083else 4084 # Broken: fails on valid input. 4085continue 4086fi 4087rm -f conftest.err conftest.i conftest.$ac_ext 4088 4089 # OK, works on sane cases. Now check whether nonexistent headers 4090 # can be detected and how. 4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4092/* end confdefs.h. */ 4093#include <ac_nonexistent.h> 4094_ACEOF 4095if ac_fn_c_try_cpp "$LINENO"; then : 4096 # Broken: success on invalid input. 4097continue 4098else 4099 # Passes both tests. 4100ac_preproc_ok=: 4101break 4102fi 4103rm -f conftest.err conftest.i conftest.$ac_ext 4104 4105done 4106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4107rm -f conftest.i conftest.err conftest.$ac_ext 4108if $ac_preproc_ok; then : 4109 break 4110fi 4111 4112 done 4113 ac_cv_prog_CPP=$CPP 4114 4115fi 4116 CPP=$ac_cv_prog_CPP 4117else 4118 ac_cv_prog_CPP=$CPP 4119fi 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4121$as_echo "$CPP" >&6; } 4122ac_preproc_ok=false 4123for ac_c_preproc_warn_flag in '' yes 4124do 4125 # Use a header file that comes with gcc, so configuring glibc 4126 # with a fresh cross-compiler works. 4127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4128 # <limits.h> exists even on freestanding compilers. 4129 # On the NeXT, cc -E runs the code through the compiler's parser, 4130 # not just through cpp. "Syntax error" is here to catch this case. 4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4132/* end confdefs.h. */ 4133#ifdef __STDC__ 4134# include <limits.h> 4135#else 4136# include <assert.h> 4137#endif 4138 Syntax error 4139_ACEOF 4140if ac_fn_c_try_cpp "$LINENO"; then : 4141 4142else 4143 # Broken: fails on valid input. 4144continue 4145fi 4146rm -f conftest.err conftest.i conftest.$ac_ext 4147 4148 # OK, works on sane cases. Now check whether nonexistent headers 4149 # can be detected and how. 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152#include <ac_nonexistent.h> 4153_ACEOF 4154if ac_fn_c_try_cpp "$LINENO"; then : 4155 # Broken: success on invalid input. 4156continue 4157else 4158 # Passes both tests. 4159ac_preproc_ok=: 4160break 4161fi 4162rm -f conftest.err conftest.i conftest.$ac_ext 4163 4164done 4165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4166rm -f conftest.i conftest.err conftest.$ac_ext 4167if $ac_preproc_ok; then : 4168 4169else 4170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4172as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4173See \`config.log' for more details" "$LINENO" 5; } 4174fi 4175 4176ac_ext=c 4177ac_cpp='$CPP $CPPFLAGS' 4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4180ac_compiler_gnu=$ac_cv_c_compiler_gnu 4181 4182 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4184$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4185if ${ac_cv_path_GREP+:} false; then : 4186 $as_echo_n "(cached) " >&6 4187else 4188 if test -z "$GREP"; then 4189 ac_path_GREP_found=false 4190 # Loop through the user's path and test for each of PROGNAME-LIST 4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4192for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4193do 4194 IFS=$as_save_IFS 4195 test -z "$as_dir" && as_dir=. 4196 for ac_prog in grep ggrep; do 4197 for ac_exec_ext in '' $ac_executable_extensions; do 4198 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4199 as_fn_executable_p "$ac_path_GREP" || continue 4200# Check for GNU ac_path_GREP and select it if it is found. 4201 # Check for GNU $ac_path_GREP 4202case `"$ac_path_GREP" --version 2>&1` in 4203*GNU*) 4204 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4205*) 4206 ac_count=0 4207 $as_echo_n 0123456789 >"conftest.in" 4208 while : 4209 do 4210 cat "conftest.in" "conftest.in" >"conftest.tmp" 4211 mv "conftest.tmp" "conftest.in" 4212 cp "conftest.in" "conftest.nl" 4213 $as_echo 'GREP' >> "conftest.nl" 4214 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4216 as_fn_arith $ac_count + 1 && ac_count=$as_val 4217 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4218 # Best one so far, save it but keep looking for a better one 4219 ac_cv_path_GREP="$ac_path_GREP" 4220 ac_path_GREP_max=$ac_count 4221 fi 4222 # 10*(2^10) chars as input seems more than enough 4223 test $ac_count -gt 10 && break 4224 done 4225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4226esac 4227 4228 $ac_path_GREP_found && break 3 4229 done 4230 done 4231 done 4232IFS=$as_save_IFS 4233 if test -z "$ac_cv_path_GREP"; then 4234 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4235 fi 4236else 4237 ac_cv_path_GREP=$GREP 4238fi 4239 4240fi 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4242$as_echo "$ac_cv_path_GREP" >&6; } 4243 GREP="$ac_cv_path_GREP" 4244 4245 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4247$as_echo_n "checking for egrep... " >&6; } 4248if ${ac_cv_path_EGREP+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4252 then ac_cv_path_EGREP="$GREP -E" 4253 else 4254 if test -z "$EGREP"; then 4255 ac_path_EGREP_found=false 4256 # Loop through the user's path and test for each of PROGNAME-LIST 4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4259do 4260 IFS=$as_save_IFS 4261 test -z "$as_dir" && as_dir=. 4262 for ac_prog in egrep; do 4263 for ac_exec_ext in '' $ac_executable_extensions; do 4264 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4265 as_fn_executable_p "$ac_path_EGREP" || continue 4266# Check for GNU ac_path_EGREP and select it if it is found. 4267 # Check for GNU $ac_path_EGREP 4268case `"$ac_path_EGREP" --version 2>&1` in 4269*GNU*) 4270 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4271*) 4272 ac_count=0 4273 $as_echo_n 0123456789 >"conftest.in" 4274 while : 4275 do 4276 cat "conftest.in" "conftest.in" >"conftest.tmp" 4277 mv "conftest.tmp" "conftest.in" 4278 cp "conftest.in" "conftest.nl" 4279 $as_echo 'EGREP' >> "conftest.nl" 4280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4282 as_fn_arith $ac_count + 1 && ac_count=$as_val 4283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4284 # Best one so far, save it but keep looking for a better one 4285 ac_cv_path_EGREP="$ac_path_EGREP" 4286 ac_path_EGREP_max=$ac_count 4287 fi 4288 # 10*(2^10) chars as input seems more than enough 4289 test $ac_count -gt 10 && break 4290 done 4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4292esac 4293 4294 $ac_path_EGREP_found && break 3 4295 done 4296 done 4297 done 4298IFS=$as_save_IFS 4299 if test -z "$ac_cv_path_EGREP"; then 4300 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4301 fi 4302else 4303 ac_cv_path_EGREP=$EGREP 4304fi 4305 4306 fi 4307fi 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4309$as_echo "$ac_cv_path_EGREP" >&6; } 4310 EGREP="$ac_cv_path_EGREP" 4311 4312 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4314$as_echo_n "checking for ANSI C header files... " >&6; } 4315if ${ac_cv_header_stdc+:} false; then : 4316 $as_echo_n "(cached) " >&6 4317else 4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4319/* end confdefs.h. */ 4320#include <stdlib.h> 4321#include <stdarg.h> 4322#include <string.h> 4323#include <float.h> 4324 4325int 4326main () 4327{ 4328 4329 ; 4330 return 0; 4331} 4332_ACEOF 4333if ac_fn_c_try_compile "$LINENO"; then : 4334 ac_cv_header_stdc=yes 4335else 4336 ac_cv_header_stdc=no 4337fi 4338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4339 4340if test $ac_cv_header_stdc = yes; then 4341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4343/* end confdefs.h. */ 4344#include <string.h> 4345 4346_ACEOF 4347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4348 $EGREP "memchr" >/dev/null 2>&1; then : 4349 4350else 4351 ac_cv_header_stdc=no 4352fi 4353rm -f conftest* 4354 4355fi 4356 4357if test $ac_cv_header_stdc = yes; then 4358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4360/* end confdefs.h. */ 4361#include <stdlib.h> 4362 4363_ACEOF 4364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4365 $EGREP "free" >/dev/null 2>&1; then : 4366 4367else 4368 ac_cv_header_stdc=no 4369fi 4370rm -f conftest* 4371 4372fi 4373 4374if test $ac_cv_header_stdc = yes; then 4375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4376 if test "$cross_compiling" = yes; then : 4377 : 4378else 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381#include <ctype.h> 4382#include <stdlib.h> 4383#if ((' ' & 0x0FF) == 0x020) 4384# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4385# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4386#else 4387# define ISLOWER(c) \ 4388 (('a' <= (c) && (c) <= 'i') \ 4389 || ('j' <= (c) && (c) <= 'r') \ 4390 || ('s' <= (c) && (c) <= 'z')) 4391# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4392#endif 4393 4394#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4395int 4396main () 4397{ 4398 int i; 4399 for (i = 0; i < 256; i++) 4400 if (XOR (islower (i), ISLOWER (i)) 4401 || toupper (i) != TOUPPER (i)) 4402 return 2; 4403 return 0; 4404} 4405_ACEOF 4406if ac_fn_c_try_run "$LINENO"; then : 4407 4408else 4409 ac_cv_header_stdc=no 4410fi 4411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4412 conftest.$ac_objext conftest.beam conftest.$ac_ext 4413fi 4414 4415fi 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4418$as_echo "$ac_cv_header_stdc" >&6; } 4419if test $ac_cv_header_stdc = yes; then 4420 4421$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4422 4423fi 4424 4425# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4427 inttypes.h stdint.h unistd.h 4428do : 4429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4430ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4431" 4432if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4433 cat >>confdefs.h <<_ACEOF 4434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4435_ACEOF 4436 4437fi 4438 4439done 4440 4441 4442 4443 4444 4445 4446ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4447if test "x$ac_cv_have_decl___clang__" = xyes; then : 4448 CLANGCC="yes" 4449else 4450 CLANGCC="no" 4451fi 4452 4453ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4454if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4455 INTELCC="yes" 4456else 4457 INTELCC="no" 4458fi 4459 4460ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4461if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4462 SUNCC="yes" 4463else 4464 SUNCC="no" 4465fi 4466 4467 4468 4469 4470if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4471 if test -n "$ac_tool_prefix"; then 4472 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4473set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4475$as_echo_n "checking for $ac_word... " >&6; } 4476if ${ac_cv_path_PKG_CONFIG+:} false; then : 4477 $as_echo_n "(cached) " >&6 4478else 4479 case $PKG_CONFIG in 4480 [\\/]* | ?:[\\/]*) 4481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4482 ;; 4483 *) 4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4485for as_dir in $PATH 4486do 4487 IFS=$as_save_IFS 4488 test -z "$as_dir" && as_dir=. 4489 for ac_exec_ext in '' $ac_executable_extensions; do 4490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4493 break 2 4494 fi 4495done 4496 done 4497IFS=$as_save_IFS 4498 4499 ;; 4500esac 4501fi 4502PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4503if test -n "$PKG_CONFIG"; then 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4505$as_echo "$PKG_CONFIG" >&6; } 4506else 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4508$as_echo "no" >&6; } 4509fi 4510 4511 4512fi 4513if test -z "$ac_cv_path_PKG_CONFIG"; then 4514 ac_pt_PKG_CONFIG=$PKG_CONFIG 4515 # Extract the first word of "pkg-config", so it can be a program name with args. 4516set dummy pkg-config; ac_word=$2 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4518$as_echo_n "checking for $ac_word... " >&6; } 4519if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521else 4522 case $ac_pt_PKG_CONFIG in 4523 [\\/]* | ?:[\\/]*) 4524 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4525 ;; 4526 *) 4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH 4529do 4530 IFS=$as_save_IFS 4531 test -z "$as_dir" && as_dir=. 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4534 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4536 break 2 4537 fi 4538done 4539 done 4540IFS=$as_save_IFS 4541 4542 ;; 4543esac 4544fi 4545ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4546if test -n "$ac_pt_PKG_CONFIG"; then 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4548$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4549else 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4551$as_echo "no" >&6; } 4552fi 4553 4554 if test "x$ac_pt_PKG_CONFIG" = x; then 4555 PKG_CONFIG="" 4556 else 4557 case $cross_compiling:$ac_tool_warned in 4558yes:) 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4561ac_tool_warned=yes ;; 4562esac 4563 PKG_CONFIG=$ac_pt_PKG_CONFIG 4564 fi 4565else 4566 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4567fi 4568 4569fi 4570if test -n "$PKG_CONFIG"; then 4571 _pkg_min_version=0.9.0 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4573$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4574 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4576$as_echo "yes" >&6; } 4577 else 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4579$as_echo "no" >&6; } 4580 PKG_CONFIG="" 4581 fi 4582 4583fi 4584# Make sure we can run config.sub. 4585$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4586 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4589$as_echo_n "checking build system type... " >&6; } 4590if ${ac_cv_build+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 ac_build_alias=$build_alias 4594test "x$ac_build_alias" = x && 4595 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4596test "x$ac_build_alias" = x && 4597 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4598ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4600 4601fi 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4603$as_echo "$ac_cv_build" >&6; } 4604case $ac_cv_build in 4605*-*-*) ;; 4606*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4607esac 4608build=$ac_cv_build 4609ac_save_IFS=$IFS; IFS='-' 4610set x $ac_cv_build 4611shift 4612build_cpu=$1 4613build_vendor=$2 4614shift; shift 4615# Remember, the first character of IFS is used to create $*, 4616# except with old shells: 4617build_os=$* 4618IFS=$ac_save_IFS 4619case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4620 4621 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4623$as_echo_n "checking host system type... " >&6; } 4624if ${ac_cv_host+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626else 4627 if test "x$host_alias" = x; then 4628 ac_cv_host=$ac_cv_build 4629else 4630 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4631 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4632fi 4633 4634fi 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4636$as_echo "$ac_cv_host" >&6; } 4637case $ac_cv_host in 4638*-*-*) ;; 4639*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4640esac 4641host=$ac_cv_host 4642ac_save_IFS=$IFS; IFS='-' 4643set x $ac_cv_host 4644shift 4645host_cpu=$1 4646host_vendor=$2 4647shift; shift 4648# Remember, the first character of IFS is used to create $*, 4649# except with old shells: 4650host_os=$* 4651IFS=$ac_save_IFS 4652case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4653 4654 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4656$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4657if ${ac_cv_path_SED+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4661 for ac_i in 1 2 3 4 5 6 7; do 4662 ac_script="$ac_script$as_nl$ac_script" 4663 done 4664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4665 { ac_script=; unset ac_script;} 4666 if test -z "$SED"; then 4667 ac_path_SED_found=false 4668 # Loop through the user's path and test for each of PROGNAME-LIST 4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4670for as_dir in $PATH 4671do 4672 IFS=$as_save_IFS 4673 test -z "$as_dir" && as_dir=. 4674 for ac_prog in sed gsed; do 4675 for ac_exec_ext in '' $ac_executable_extensions; do 4676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4677 as_fn_executable_p "$ac_path_SED" || continue 4678# Check for GNU ac_path_SED and select it if it is found. 4679 # Check for GNU $ac_path_SED 4680case `"$ac_path_SED" --version 2>&1` in 4681*GNU*) 4682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4683*) 4684 ac_count=0 4685 $as_echo_n 0123456789 >"conftest.in" 4686 while : 4687 do 4688 cat "conftest.in" "conftest.in" >"conftest.tmp" 4689 mv "conftest.tmp" "conftest.in" 4690 cp "conftest.in" "conftest.nl" 4691 $as_echo '' >> "conftest.nl" 4692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4694 as_fn_arith $ac_count + 1 && ac_count=$as_val 4695 if test $ac_count -gt ${ac_path_SED_max-0}; then 4696 # Best one so far, save it but keep looking for a better one 4697 ac_cv_path_SED="$ac_path_SED" 4698 ac_path_SED_max=$ac_count 4699 fi 4700 # 10*(2^10) chars as input seems more than enough 4701 test $ac_count -gt 10 && break 4702 done 4703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4704esac 4705 4706 $ac_path_SED_found && break 3 4707 done 4708 done 4709 done 4710IFS=$as_save_IFS 4711 if test -z "$ac_cv_path_SED"; then 4712 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4713 fi 4714else 4715 ac_cv_path_SED=$SED 4716fi 4717 4718fi 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4720$as_echo "$ac_cv_path_SED" >&6; } 4721 SED="$ac_cv_path_SED" 4722 rm -f conftest.sed 4723 4724 4725 4726 4727 4728 4729# Check whether --enable-selective-werror was given. 4730if test "${enable_selective_werror+set}" = set; then : 4731 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4732else 4733 SELECTIVE_WERROR=yes 4734fi 4735 4736 4737 4738 4739 4740# -v is too short to test reliably with XORG_TESTSET_CFLAG 4741if test "x$SUNCC" = "xyes"; then 4742 BASE_CFLAGS="-v" 4743else 4744 BASE_CFLAGS="" 4745fi 4746 4747# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761xorg_testset_save_CFLAGS="$CFLAGS" 4762 4763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4768 $as_echo_n "(cached) " >&6 4769else 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4771/* end confdefs.h. */ 4772int i; 4773_ACEOF 4774if ac_fn_c_try_compile "$LINENO"; then : 4775 xorg_cv_cc_flag_unknown_warning_option=yes 4776else 4777 xorg_cv_cc_flag_unknown_warning_option=no 4778fi 4779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4780fi 4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4784 CFLAGS="$xorg_testset_save_CFLAGS" 4785fi 4786 4787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4790 fi 4791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4795 $as_echo_n "(cached) " >&6 4796else 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798/* end confdefs.h. */ 4799int i; 4800_ACEOF 4801if ac_fn_c_try_compile "$LINENO"; then : 4802 xorg_cv_cc_flag_unused_command_line_argument=yes 4803else 4804 xorg_cv_cc_flag_unused_command_line_argument=no 4805fi 4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4807fi 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4811 CFLAGS="$xorg_testset_save_CFLAGS" 4812fi 4813 4814found="no" 4815 4816 if test $found = "no" ; then 4817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4819 fi 4820 4821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4823 fi 4824 4825 CFLAGS="$CFLAGS -Wall" 4826 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4828$as_echo_n "checking if $CC supports -Wall... " >&6; } 4829 cacheid=xorg_cv_cc_flag__Wall 4830 if eval \${$cacheid+:} false; then : 4831 $as_echo_n "(cached) " >&6 4832else 4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4834/* end confdefs.h. */ 4835int i; 4836int 4837main () 4838{ 4839 4840 ; 4841 return 0; 4842} 4843_ACEOF 4844if ac_fn_c_try_link "$LINENO"; then : 4845 eval $cacheid=yes 4846else 4847 eval $cacheid=no 4848fi 4849rm -f core conftest.err conftest.$ac_objext \ 4850 conftest$ac_exeext conftest.$ac_ext 4851fi 4852 4853 4854 CFLAGS="$xorg_testset_save_CFLAGS" 4855 4856 eval supported=\$$cacheid 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4858$as_echo "$supported" >&6; } 4859 if test "$supported" = "yes" ; then 4860 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4861 found="yes" 4862 fi 4863 fi 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879xorg_testset_save_CFLAGS="$CFLAGS" 4880 4881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4889/* end confdefs.h. */ 4890int i; 4891_ACEOF 4892if ac_fn_c_try_compile "$LINENO"; then : 4893 xorg_cv_cc_flag_unknown_warning_option=yes 4894else 4895 xorg_cv_cc_flag_unknown_warning_option=no 4896fi 4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4898fi 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4902 CFLAGS="$xorg_testset_save_CFLAGS" 4903fi 4904 4905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4908 fi 4909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4916/* end confdefs.h. */ 4917int i; 4918_ACEOF 4919if ac_fn_c_try_compile "$LINENO"; then : 4920 xorg_cv_cc_flag_unused_command_line_argument=yes 4921else 4922 xorg_cv_cc_flag_unused_command_line_argument=no 4923fi 4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4925fi 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4929 CFLAGS="$xorg_testset_save_CFLAGS" 4930fi 4931 4932found="no" 4933 4934 if test $found = "no" ; then 4935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4937 fi 4938 4939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4941 fi 4942 4943 CFLAGS="$CFLAGS -Wpointer-arith" 4944 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4946$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4947 cacheid=xorg_cv_cc_flag__Wpointer_arith 4948 if eval \${$cacheid+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952/* end confdefs.h. */ 4953int i; 4954int 4955main () 4956{ 4957 4958 ; 4959 return 0; 4960} 4961_ACEOF 4962if ac_fn_c_try_link "$LINENO"; then : 4963 eval $cacheid=yes 4964else 4965 eval $cacheid=no 4966fi 4967rm -f core conftest.err conftest.$ac_objext \ 4968 conftest$ac_exeext conftest.$ac_ext 4969fi 4970 4971 4972 CFLAGS="$xorg_testset_save_CFLAGS" 4973 4974 eval supported=\$$cacheid 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4976$as_echo "$supported" >&6; } 4977 if test "$supported" = "yes" ; then 4978 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4979 found="yes" 4980 fi 4981 fi 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997xorg_testset_save_CFLAGS="$CFLAGS" 4998 4999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007/* end confdefs.h. */ 5008int i; 5009_ACEOF 5010if ac_fn_c_try_compile "$LINENO"; then : 5011 xorg_cv_cc_flag_unknown_warning_option=yes 5012else 5013 xorg_cv_cc_flag_unknown_warning_option=no 5014fi 5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5016fi 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5020 CFLAGS="$xorg_testset_save_CFLAGS" 5021fi 5022 5023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5026 fi 5027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035int i; 5036_ACEOF 5037if ac_fn_c_try_compile "$LINENO"; then : 5038 xorg_cv_cc_flag_unused_command_line_argument=yes 5039else 5040 xorg_cv_cc_flag_unused_command_line_argument=no 5041fi 5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043fi 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5047 CFLAGS="$xorg_testset_save_CFLAGS" 5048fi 5049 5050found="no" 5051 5052 if test $found = "no" ; then 5053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5055 fi 5056 5057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 fi 5060 5061 CFLAGS="$CFLAGS -Wmissing-declarations" 5062 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5064$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5065 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5066 if eval \${$cacheid+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070/* end confdefs.h. */ 5071int i; 5072int 5073main () 5074{ 5075 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080if ac_fn_c_try_link "$LINENO"; then : 5081 eval $cacheid=yes 5082else 5083 eval $cacheid=no 5084fi 5085rm -f core conftest.err conftest.$ac_objext \ 5086 conftest$ac_exeext conftest.$ac_ext 5087fi 5088 5089 5090 CFLAGS="$xorg_testset_save_CFLAGS" 5091 5092 eval supported=\$$cacheid 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5094$as_echo "$supported" >&6; } 5095 if test "$supported" = "yes" ; then 5096 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5097 found="yes" 5098 fi 5099 fi 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115xorg_testset_save_CFLAGS="$CFLAGS" 5116 5117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5125/* end confdefs.h. */ 5126int i; 5127_ACEOF 5128if ac_fn_c_try_compile "$LINENO"; then : 5129 xorg_cv_cc_flag_unknown_warning_option=yes 5130else 5131 xorg_cv_cc_flag_unknown_warning_option=no 5132fi 5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5138 CFLAGS="$xorg_testset_save_CFLAGS" 5139fi 5140 5141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5144 fi 5145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153int i; 5154_ACEOF 5155if ac_fn_c_try_compile "$LINENO"; then : 5156 xorg_cv_cc_flag_unused_command_line_argument=yes 5157else 5158 xorg_cv_cc_flag_unused_command_line_argument=no 5159fi 5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161fi 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5165 CFLAGS="$xorg_testset_save_CFLAGS" 5166fi 5167 5168found="no" 5169 5170 if test $found = "no" ; then 5171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5173 fi 5174 5175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 fi 5178 5179 CFLAGS="$CFLAGS -Wformat=2" 5180 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5182$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5183 cacheid=xorg_cv_cc_flag__Wformat_2 5184 if eval \${$cacheid+:} false; then : 5185 $as_echo_n "(cached) " >&6 5186else 5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188/* end confdefs.h. */ 5189int i; 5190int 5191main () 5192{ 5193 5194 ; 5195 return 0; 5196} 5197_ACEOF 5198if ac_fn_c_try_link "$LINENO"; then : 5199 eval $cacheid=yes 5200else 5201 eval $cacheid=no 5202fi 5203rm -f core conftest.err conftest.$ac_objext \ 5204 conftest$ac_exeext conftest.$ac_ext 5205fi 5206 5207 5208 CFLAGS="$xorg_testset_save_CFLAGS" 5209 5210 eval supported=\$$cacheid 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5212$as_echo "$supported" >&6; } 5213 if test "$supported" = "yes" ; then 5214 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5215 found="yes" 5216 fi 5217 fi 5218 5219 if test $found = "no" ; then 5220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5222 fi 5223 5224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5226 fi 5227 5228 CFLAGS="$CFLAGS -Wformat" 5229 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5231$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5232 cacheid=xorg_cv_cc_flag__Wformat 5233 if eval \${$cacheid+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235else 5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5237/* end confdefs.h. */ 5238int i; 5239int 5240main () 5241{ 5242 5243 ; 5244 return 0; 5245} 5246_ACEOF 5247if ac_fn_c_try_link "$LINENO"; then : 5248 eval $cacheid=yes 5249else 5250 eval $cacheid=no 5251fi 5252rm -f core conftest.err conftest.$ac_objext \ 5253 conftest$ac_exeext conftest.$ac_ext 5254fi 5255 5256 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258 5259 eval supported=\$$cacheid 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5261$as_echo "$supported" >&6; } 5262 if test "$supported" = "yes" ; then 5263 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5264 found="yes" 5265 fi 5266 fi 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284xorg_testset_save_CFLAGS="$CFLAGS" 5285 5286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294/* end confdefs.h. */ 5295int i; 5296_ACEOF 5297if ac_fn_c_try_compile "$LINENO"; then : 5298 xorg_cv_cc_flag_unknown_warning_option=yes 5299else 5300 xorg_cv_cc_flag_unknown_warning_option=no 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5303fi 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308fi 5309 5310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 fi 5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5318 $as_echo_n "(cached) " >&6 5319else 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322int i; 5323_ACEOF 5324if ac_fn_c_try_compile "$LINENO"; then : 5325 xorg_cv_cc_flag_unused_command_line_argument=yes 5326else 5327 xorg_cv_cc_flag_unused_command_line_argument=no 5328fi 5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5330fi 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5334 CFLAGS="$xorg_testset_save_CFLAGS" 5335fi 5336 5337found="no" 5338 5339 if test $found = "no" ; then 5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5342 fi 5343 5344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5346 fi 5347 5348 CFLAGS="$CFLAGS -Wstrict-prototypes" 5349 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5351$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5352 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5353 if eval \${$cacheid+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358int i; 5359int 5360main () 5361{ 5362 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367if ac_fn_c_try_link "$LINENO"; then : 5368 eval $cacheid=yes 5369else 5370 eval $cacheid=no 5371fi 5372rm -f core conftest.err conftest.$ac_objext \ 5373 conftest$ac_exeext conftest.$ac_ext 5374fi 5375 5376 5377 CFLAGS="$xorg_testset_save_CFLAGS" 5378 5379 eval supported=\$$cacheid 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5381$as_echo "$supported" >&6; } 5382 if test "$supported" = "yes" ; then 5383 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5384 found="yes" 5385 fi 5386 fi 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402xorg_testset_save_CFLAGS="$CFLAGS" 5403 5404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413int i; 5414_ACEOF 5415if ac_fn_c_try_compile "$LINENO"; then : 5416 xorg_cv_cc_flag_unknown_warning_option=yes 5417else 5418 xorg_cv_cc_flag_unknown_warning_option=no 5419fi 5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5421fi 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5425 CFLAGS="$xorg_testset_save_CFLAGS" 5426fi 5427 5428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5431 fi 5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439/* end confdefs.h. */ 5440int i; 5441_ACEOF 5442if ac_fn_c_try_compile "$LINENO"; then : 5443 xorg_cv_cc_flag_unused_command_line_argument=yes 5444else 5445 xorg_cv_cc_flag_unused_command_line_argument=no 5446fi 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448fi 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5452 CFLAGS="$xorg_testset_save_CFLAGS" 5453fi 5454 5455found="no" 5456 5457 if test $found = "no" ; then 5458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5460 fi 5461 5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 fi 5465 5466 CFLAGS="$CFLAGS -Wmissing-prototypes" 5467 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5469$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5470 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5471 if eval \${$cacheid+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476int i; 5477int 5478main () 5479{ 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485if ac_fn_c_try_link "$LINENO"; then : 5486 eval $cacheid=yes 5487else 5488 eval $cacheid=no 5489fi 5490rm -f core conftest.err conftest.$ac_objext \ 5491 conftest$ac_exeext conftest.$ac_ext 5492fi 5493 5494 5495 CFLAGS="$xorg_testset_save_CFLAGS" 5496 5497 eval supported=\$$cacheid 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5499$as_echo "$supported" >&6; } 5500 if test "$supported" = "yes" ; then 5501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5502 found="yes" 5503 fi 5504 fi 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520xorg_testset_save_CFLAGS="$CFLAGS" 5521 5522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531int i; 5532_ACEOF 5533if ac_fn_c_try_compile "$LINENO"; then : 5534 xorg_cv_cc_flag_unknown_warning_option=yes 5535else 5536 xorg_cv_cc_flag_unknown_warning_option=no 5537fi 5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5539fi 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5543 CFLAGS="$xorg_testset_save_CFLAGS" 5544fi 5545 5546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5549 fi 5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558int i; 5559_ACEOF 5560if ac_fn_c_try_compile "$LINENO"; then : 5561 xorg_cv_cc_flag_unused_command_line_argument=yes 5562else 5563 xorg_cv_cc_flag_unused_command_line_argument=no 5564fi 5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5566fi 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5570 CFLAGS="$xorg_testset_save_CFLAGS" 5571fi 5572 5573found="no" 5574 5575 if test $found = "no" ; then 5576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5578 fi 5579 5580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582 fi 5583 5584 CFLAGS="$CFLAGS -Wnested-externs" 5585 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5587$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5588 cacheid=xorg_cv_cc_flag__Wnested_externs 5589 if eval \${$cacheid+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594int i; 5595int 5596main () 5597{ 5598 5599 ; 5600 return 0; 5601} 5602_ACEOF 5603if ac_fn_c_try_link "$LINENO"; then : 5604 eval $cacheid=yes 5605else 5606 eval $cacheid=no 5607fi 5608rm -f core conftest.err conftest.$ac_objext \ 5609 conftest$ac_exeext conftest.$ac_ext 5610fi 5611 5612 5613 CFLAGS="$xorg_testset_save_CFLAGS" 5614 5615 eval supported=\$$cacheid 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5617$as_echo "$supported" >&6; } 5618 if test "$supported" = "yes" ; then 5619 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5620 found="yes" 5621 fi 5622 fi 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638xorg_testset_save_CFLAGS="$CFLAGS" 5639 5640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648/* end confdefs.h. */ 5649int i; 5650_ACEOF 5651if ac_fn_c_try_compile "$LINENO"; then : 5652 xorg_cv_cc_flag_unknown_warning_option=yes 5653else 5654 xorg_cv_cc_flag_unknown_warning_option=no 5655fi 5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5657fi 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5661 CFLAGS="$xorg_testset_save_CFLAGS" 5662fi 5663 5664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5667 fi 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5675/* end confdefs.h. */ 5676int i; 5677_ACEOF 5678if ac_fn_c_try_compile "$LINENO"; then : 5679 xorg_cv_cc_flag_unused_command_line_argument=yes 5680else 5681 xorg_cv_cc_flag_unused_command_line_argument=no 5682fi 5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5684fi 5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5688 CFLAGS="$xorg_testset_save_CFLAGS" 5689fi 5690 5691found="no" 5692 5693 if test $found = "no" ; then 5694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5696 fi 5697 5698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5700 fi 5701 5702 CFLAGS="$CFLAGS -Wbad-function-cast" 5703 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5705$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5706 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5707 if eval \${$cacheid+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5711/* end confdefs.h. */ 5712int i; 5713int 5714main () 5715{ 5716 5717 ; 5718 return 0; 5719} 5720_ACEOF 5721if ac_fn_c_try_link "$LINENO"; then : 5722 eval $cacheid=yes 5723else 5724 eval $cacheid=no 5725fi 5726rm -f core conftest.err conftest.$ac_objext \ 5727 conftest$ac_exeext conftest.$ac_ext 5728fi 5729 5730 5731 CFLAGS="$xorg_testset_save_CFLAGS" 5732 5733 eval supported=\$$cacheid 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5735$as_echo "$supported" >&6; } 5736 if test "$supported" = "yes" ; then 5737 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5738 found="yes" 5739 fi 5740 fi 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756xorg_testset_save_CFLAGS="$CFLAGS" 5757 5758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766/* end confdefs.h. */ 5767int i; 5768_ACEOF 5769if ac_fn_c_try_compile "$LINENO"; then : 5770 xorg_cv_cc_flag_unknown_warning_option=yes 5771else 5772 xorg_cv_cc_flag_unknown_warning_option=no 5773fi 5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5775fi 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5779 CFLAGS="$xorg_testset_save_CFLAGS" 5780fi 5781 5782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5785 fi 5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793/* end confdefs.h. */ 5794int i; 5795_ACEOF 5796if ac_fn_c_try_compile "$LINENO"; then : 5797 xorg_cv_cc_flag_unused_command_line_argument=yes 5798else 5799 xorg_cv_cc_flag_unused_command_line_argument=no 5800fi 5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5802fi 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5806 CFLAGS="$xorg_testset_save_CFLAGS" 5807fi 5808 5809found="no" 5810 5811 if test $found = "no" ; then 5812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5814 fi 5815 5816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5818 fi 5819 5820 CFLAGS="$CFLAGS -Wold-style-definition" 5821 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5823$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5824 cacheid=xorg_cv_cc_flag__Wold_style_definition 5825 if eval \${$cacheid+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830int i; 5831int 5832main () 5833{ 5834 5835 ; 5836 return 0; 5837} 5838_ACEOF 5839if ac_fn_c_try_link "$LINENO"; then : 5840 eval $cacheid=yes 5841else 5842 eval $cacheid=no 5843fi 5844rm -f core conftest.err conftest.$ac_objext \ 5845 conftest$ac_exeext conftest.$ac_ext 5846fi 5847 5848 5849 CFLAGS="$xorg_testset_save_CFLAGS" 5850 5851 eval supported=\$$cacheid 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5853$as_echo "$supported" >&6; } 5854 if test "$supported" = "yes" ; then 5855 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5856 found="yes" 5857 fi 5858 fi 5859 5860 if test $found = "no" ; then 5861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5863 fi 5864 5865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5867 fi 5868 5869 CFLAGS="$CFLAGS -fd" 5870 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5872$as_echo_n "checking if $CC supports -fd... " >&6; } 5873 cacheid=xorg_cv_cc_flag__fd 5874 if eval \${$cacheid+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5878/* end confdefs.h. */ 5879int i; 5880int 5881main () 5882{ 5883 5884 ; 5885 return 0; 5886} 5887_ACEOF 5888if ac_fn_c_try_link "$LINENO"; then : 5889 eval $cacheid=yes 5890else 5891 eval $cacheid=no 5892fi 5893rm -f core conftest.err conftest.$ac_objext \ 5894 conftest$ac_exeext conftest.$ac_ext 5895fi 5896 5897 5898 CFLAGS="$xorg_testset_save_CFLAGS" 5899 5900 eval supported=\$$cacheid 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5902$as_echo "$supported" >&6; } 5903 if test "$supported" = "yes" ; then 5904 BASE_CFLAGS="$BASE_CFLAGS -fd" 5905 found="yes" 5906 fi 5907 fi 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923xorg_testset_save_CFLAGS="$CFLAGS" 5924 5925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934int i; 5935_ACEOF 5936if ac_fn_c_try_compile "$LINENO"; then : 5937 xorg_cv_cc_flag_unknown_warning_option=yes 5938else 5939 xorg_cv_cc_flag_unknown_warning_option=no 5940fi 5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5942fi 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5946 CFLAGS="$xorg_testset_save_CFLAGS" 5947fi 5948 5949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5952 fi 5953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5960/* end confdefs.h. */ 5961int i; 5962_ACEOF 5963if ac_fn_c_try_compile "$LINENO"; then : 5964 xorg_cv_cc_flag_unused_command_line_argument=yes 5965else 5966 xorg_cv_cc_flag_unused_command_line_argument=no 5967fi 5968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5969fi 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5973 CFLAGS="$xorg_testset_save_CFLAGS" 5974fi 5975 5976found="no" 5977 5978 if test $found = "no" ; then 5979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5981 fi 5982 5983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5985 fi 5986 5987 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5988 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5990$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5991 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5992 if eval \${$cacheid+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997int i; 5998int 5999main () 6000{ 6001 6002 ; 6003 return 0; 6004} 6005_ACEOF 6006if ac_fn_c_try_link "$LINENO"; then : 6007 eval $cacheid=yes 6008else 6009 eval $cacheid=no 6010fi 6011rm -f core conftest.err conftest.$ac_objext \ 6012 conftest$ac_exeext conftest.$ac_ext 6013fi 6014 6015 6016 CFLAGS="$xorg_testset_save_CFLAGS" 6017 6018 eval supported=\$$cacheid 6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6020$as_echo "$supported" >&6; } 6021 if test "$supported" = "yes" ; then 6022 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6023 found="yes" 6024 fi 6025 fi 6026 6027 6028 6029 6030 6031# This chunk adds additional warnings that could catch undesired effects. 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045xorg_testset_save_CFLAGS="$CFLAGS" 6046 6047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056int i; 6057_ACEOF 6058if ac_fn_c_try_compile "$LINENO"; then : 6059 xorg_cv_cc_flag_unknown_warning_option=yes 6060else 6061 xorg_cv_cc_flag_unknown_warning_option=no 6062fi 6063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6064fi 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6068 CFLAGS="$xorg_testset_save_CFLAGS" 6069fi 6070 6071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6074 fi 6075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083int i; 6084_ACEOF 6085if ac_fn_c_try_compile "$LINENO"; then : 6086 xorg_cv_cc_flag_unused_command_line_argument=yes 6087else 6088 xorg_cv_cc_flag_unused_command_line_argument=no 6089fi 6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6091fi 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6095 CFLAGS="$xorg_testset_save_CFLAGS" 6096fi 6097 6098found="no" 6099 6100 if test $found = "no" ; then 6101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6103 fi 6104 6105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 fi 6108 6109 CFLAGS="$CFLAGS -Wunused" 6110 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6112$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6113 cacheid=xorg_cv_cc_flag__Wunused 6114 if eval \${$cacheid+:} false; then : 6115 $as_echo_n "(cached) " >&6 6116else 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118/* end confdefs.h. */ 6119int i; 6120int 6121main () 6122{ 6123 6124 ; 6125 return 0; 6126} 6127_ACEOF 6128if ac_fn_c_try_link "$LINENO"; then : 6129 eval $cacheid=yes 6130else 6131 eval $cacheid=no 6132fi 6133rm -f core conftest.err conftest.$ac_objext \ 6134 conftest$ac_exeext conftest.$ac_ext 6135fi 6136 6137 6138 CFLAGS="$xorg_testset_save_CFLAGS" 6139 6140 eval supported=\$$cacheid 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6142$as_echo "$supported" >&6; } 6143 if test "$supported" = "yes" ; then 6144 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6145 found="yes" 6146 fi 6147 fi 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163xorg_testset_save_CFLAGS="$CFLAGS" 6164 6165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6170 $as_echo_n "(cached) " >&6 6171else 6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6173/* end confdefs.h. */ 6174int i; 6175_ACEOF 6176if ac_fn_c_try_compile "$LINENO"; then : 6177 xorg_cv_cc_flag_unknown_warning_option=yes 6178else 6179 xorg_cv_cc_flag_unknown_warning_option=no 6180fi 6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6182fi 6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6186 CFLAGS="$xorg_testset_save_CFLAGS" 6187fi 6188 6189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6192 fi 6193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6200/* end confdefs.h. */ 6201int i; 6202_ACEOF 6203if ac_fn_c_try_compile "$LINENO"; then : 6204 xorg_cv_cc_flag_unused_command_line_argument=yes 6205else 6206 xorg_cv_cc_flag_unused_command_line_argument=no 6207fi 6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6209fi 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6213 CFLAGS="$xorg_testset_save_CFLAGS" 6214fi 6215 6216found="no" 6217 6218 if test $found = "no" ; then 6219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6221 fi 6222 6223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6225 fi 6226 6227 CFLAGS="$CFLAGS -Wuninitialized" 6228 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6230$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6231 cacheid=xorg_cv_cc_flag__Wuninitialized 6232 if eval \${$cacheid+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234else 6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236/* end confdefs.h. */ 6237int i; 6238int 6239main () 6240{ 6241 6242 ; 6243 return 0; 6244} 6245_ACEOF 6246if ac_fn_c_try_link "$LINENO"; then : 6247 eval $cacheid=yes 6248else 6249 eval $cacheid=no 6250fi 6251rm -f core conftest.err conftest.$ac_objext \ 6252 conftest$ac_exeext conftest.$ac_ext 6253fi 6254 6255 6256 CFLAGS="$xorg_testset_save_CFLAGS" 6257 6258 eval supported=\$$cacheid 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6260$as_echo "$supported" >&6; } 6261 if test "$supported" = "yes" ; then 6262 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6263 found="yes" 6264 fi 6265 fi 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281xorg_testset_save_CFLAGS="$CFLAGS" 6282 6283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6288 $as_echo_n "(cached) " >&6 6289else 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291/* end confdefs.h. */ 6292int i; 6293_ACEOF 6294if ac_fn_c_try_compile "$LINENO"; then : 6295 xorg_cv_cc_flag_unknown_warning_option=yes 6296else 6297 xorg_cv_cc_flag_unknown_warning_option=no 6298fi 6299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6300fi 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6304 CFLAGS="$xorg_testset_save_CFLAGS" 6305fi 6306 6307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6310 fi 6311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6318/* end confdefs.h. */ 6319int i; 6320_ACEOF 6321if ac_fn_c_try_compile "$LINENO"; then : 6322 xorg_cv_cc_flag_unused_command_line_argument=yes 6323else 6324 xorg_cv_cc_flag_unused_command_line_argument=no 6325fi 6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6327fi 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6331 CFLAGS="$xorg_testset_save_CFLAGS" 6332fi 6333 6334found="no" 6335 6336 if test $found = "no" ; then 6337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6339 fi 6340 6341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343 fi 6344 6345 CFLAGS="$CFLAGS -Wshadow" 6346 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6348$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6349 cacheid=xorg_cv_cc_flag__Wshadow 6350 if eval \${$cacheid+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355int i; 6356int 6357main () 6358{ 6359 6360 ; 6361 return 0; 6362} 6363_ACEOF 6364if ac_fn_c_try_link "$LINENO"; then : 6365 eval $cacheid=yes 6366else 6367 eval $cacheid=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext \ 6370 conftest$ac_exeext conftest.$ac_ext 6371fi 6372 6373 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375 6376 eval supported=\$$cacheid 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6378$as_echo "$supported" >&6; } 6379 if test "$supported" = "yes" ; then 6380 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6381 found="yes" 6382 fi 6383 fi 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399xorg_testset_save_CFLAGS="$CFLAGS" 6400 6401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410int i; 6411_ACEOF 6412if ac_fn_c_try_compile "$LINENO"; then : 6413 xorg_cv_cc_flag_unknown_warning_option=yes 6414else 6415 xorg_cv_cc_flag_unknown_warning_option=no 6416fi 6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6418fi 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6422 CFLAGS="$xorg_testset_save_CFLAGS" 6423fi 6424 6425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6428 fi 6429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438_ACEOF 6439if ac_fn_c_try_compile "$LINENO"; then : 6440 xorg_cv_cc_flag_unused_command_line_argument=yes 6441else 6442 xorg_cv_cc_flag_unused_command_line_argument=no 6443fi 6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6445fi 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6449 CFLAGS="$xorg_testset_save_CFLAGS" 6450fi 6451 6452found="no" 6453 6454 if test $found = "no" ; then 6455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6457 fi 6458 6459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6461 fi 6462 6463 CFLAGS="$CFLAGS -Wmissing-noreturn" 6464 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6466$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6467 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6468 if eval \${$cacheid+:} false; then : 6469 $as_echo_n "(cached) " >&6 6470else 6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473int i; 6474int 6475main () 6476{ 6477 6478 ; 6479 return 0; 6480} 6481_ACEOF 6482if ac_fn_c_try_link "$LINENO"; then : 6483 eval $cacheid=yes 6484else 6485 eval $cacheid=no 6486fi 6487rm -f core conftest.err conftest.$ac_objext \ 6488 conftest$ac_exeext conftest.$ac_ext 6489fi 6490 6491 6492 CFLAGS="$xorg_testset_save_CFLAGS" 6493 6494 eval supported=\$$cacheid 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6496$as_echo "$supported" >&6; } 6497 if test "$supported" = "yes" ; then 6498 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6499 found="yes" 6500 fi 6501 fi 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517xorg_testset_save_CFLAGS="$CFLAGS" 6518 6519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6524 $as_echo_n "(cached) " >&6 6525else 6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6527/* end confdefs.h. */ 6528int i; 6529_ACEOF 6530if ac_fn_c_try_compile "$LINENO"; then : 6531 xorg_cv_cc_flag_unknown_warning_option=yes 6532else 6533 xorg_cv_cc_flag_unknown_warning_option=no 6534fi 6535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6540 CFLAGS="$xorg_testset_save_CFLAGS" 6541fi 6542 6543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6546 fi 6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555int i; 6556_ACEOF 6557if ac_fn_c_try_compile "$LINENO"; then : 6558 xorg_cv_cc_flag_unused_command_line_argument=yes 6559else 6560 xorg_cv_cc_flag_unused_command_line_argument=no 6561fi 6562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6563fi 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6567 CFLAGS="$xorg_testset_save_CFLAGS" 6568fi 6569 6570found="no" 6571 6572 if test $found = "no" ; then 6573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6575 fi 6576 6577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6579 fi 6580 6581 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6582 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6584$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6585 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6586 if eval \${$cacheid+:} false; then : 6587 $as_echo_n "(cached) " >&6 6588else 6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590/* end confdefs.h. */ 6591int i; 6592int 6593main () 6594{ 6595 6596 ; 6597 return 0; 6598} 6599_ACEOF 6600if ac_fn_c_try_link "$LINENO"; then : 6601 eval $cacheid=yes 6602else 6603 eval $cacheid=no 6604fi 6605rm -f core conftest.err conftest.$ac_objext \ 6606 conftest$ac_exeext conftest.$ac_ext 6607fi 6608 6609 6610 CFLAGS="$xorg_testset_save_CFLAGS" 6611 6612 eval supported=\$$cacheid 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6614$as_echo "$supported" >&6; } 6615 if test "$supported" = "yes" ; then 6616 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6617 found="yes" 6618 fi 6619 fi 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635xorg_testset_save_CFLAGS="$CFLAGS" 6636 6637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645/* end confdefs.h. */ 6646int i; 6647_ACEOF 6648if ac_fn_c_try_compile "$LINENO"; then : 6649 xorg_cv_cc_flag_unknown_warning_option=yes 6650else 6651 xorg_cv_cc_flag_unknown_warning_option=no 6652fi 6653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6654fi 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6659fi 6660 6661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6664 fi 6665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674_ACEOF 6675if ac_fn_c_try_compile "$LINENO"; then : 6676 xorg_cv_cc_flag_unused_command_line_argument=yes 6677else 6678 xorg_cv_cc_flag_unused_command_line_argument=no 6679fi 6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6681fi 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6685 CFLAGS="$xorg_testset_save_CFLAGS" 6686fi 6687 6688found="no" 6689 6690 if test $found = "no" ; then 6691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6693 fi 6694 6695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 fi 6698 6699 CFLAGS="$CFLAGS -Wredundant-decls" 6700 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6702$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6703 cacheid=xorg_cv_cc_flag__Wredundant_decls 6704 if eval \${$cacheid+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709int i; 6710int 6711main () 6712{ 6713 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_link "$LINENO"; then : 6719 eval $cacheid=yes 6720else 6721 eval $cacheid=no 6722fi 6723rm -f core conftest.err conftest.$ac_objext \ 6724 conftest$ac_exeext conftest.$ac_ext 6725fi 6726 6727 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729 6730 eval supported=\$$cacheid 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6732$as_echo "$supported" >&6; } 6733 if test "$supported" = "yes" ; then 6734 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6735 found="yes" 6736 fi 6737 fi 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753xorg_testset_save_CFLAGS="$CFLAGS" 6754 6755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763/* end confdefs.h. */ 6764int i; 6765_ACEOF 6766if ac_fn_c_try_compile "$LINENO"; then : 6767 xorg_cv_cc_flag_unknown_warning_option=yes 6768else 6769 xorg_cv_cc_flag_unknown_warning_option=no 6770fi 6771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6772fi 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6776 CFLAGS="$xorg_testset_save_CFLAGS" 6777fi 6778 6779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 fi 6783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791int i; 6792_ACEOF 6793if ac_fn_c_try_compile "$LINENO"; then : 6794 xorg_cv_cc_flag_unused_command_line_argument=yes 6795else 6796 xorg_cv_cc_flag_unused_command_line_argument=no 6797fi 6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6799fi 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6803 CFLAGS="$xorg_testset_save_CFLAGS" 6804fi 6805 6806found="no" 6807 6808 if test $found = "no" ; then 6809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 fi 6812 6813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6815 fi 6816 6817 CFLAGS="$CFLAGS -Wlogical-op" 6818 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6820$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6821 cacheid=xorg_cv_cc_flag__Wlogical_op 6822 if eval \${$cacheid+:} false; then : 6823 $as_echo_n "(cached) " >&6 6824else 6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6826/* end confdefs.h. */ 6827int i; 6828int 6829main () 6830{ 6831 6832 ; 6833 return 0; 6834} 6835_ACEOF 6836if ac_fn_c_try_link "$LINENO"; then : 6837 eval $cacheid=yes 6838else 6839 eval $cacheid=no 6840fi 6841rm -f core conftest.err conftest.$ac_objext \ 6842 conftest$ac_exeext conftest.$ac_ext 6843fi 6844 6845 6846 CFLAGS="$xorg_testset_save_CFLAGS" 6847 6848 eval supported=\$$cacheid 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6850$as_echo "$supported" >&6; } 6851 if test "$supported" = "yes" ; then 6852 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6853 found="yes" 6854 fi 6855 fi 6856 6857 6858 6859# These are currently disabled because they are noisy. They will be enabled 6860# in the future once the codebase is sufficiently modernized to silence 6861# them. For now, I don't want them to drown out the other warnings. 6862# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6863# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6864# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6865 6866# Turn some warnings into errors, so we don't accidently get successful builds 6867# when there are problems that should be fixed. 6868 6869if test "x$SELECTIVE_WERROR" = "xyes" ; then 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883xorg_testset_save_CFLAGS="$CFLAGS" 6884 6885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6890 $as_echo_n "(cached) " >&6 6891else 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895_ACEOF 6896if ac_fn_c_try_compile "$LINENO"; then : 6897 xorg_cv_cc_flag_unknown_warning_option=yes 6898else 6899 xorg_cv_cc_flag_unknown_warning_option=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902fi 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907fi 6908 6909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912 fi 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921int i; 6922_ACEOF 6923if ac_fn_c_try_compile "$LINENO"; then : 6924 xorg_cv_cc_flag_unused_command_line_argument=yes 6925else 6926 xorg_cv_cc_flag_unused_command_line_argument=no 6927fi 6928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6933 CFLAGS="$xorg_testset_save_CFLAGS" 6934fi 6935 6936found="no" 6937 6938 if test $found = "no" ; then 6939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 fi 6942 6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6945 fi 6946 6947 CFLAGS="$CFLAGS -Werror=implicit" 6948 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6950$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6951 cacheid=xorg_cv_cc_flag__Werror_implicit 6952 if eval \${$cacheid+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958int 6959main () 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_c_try_link "$LINENO"; then : 6967 eval $cacheid=yes 6968else 6969 eval $cacheid=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext \ 6972 conftest$ac_exeext conftest.$ac_ext 6973fi 6974 6975 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977 6978 eval supported=\$$cacheid 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6980$as_echo "$supported" >&6; } 6981 if test "$supported" = "yes" ; then 6982 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6983 found="yes" 6984 fi 6985 fi 6986 6987 if test $found = "no" ; then 6988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6990 fi 6991 6992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6994 fi 6995 6996 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6997 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6999$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7000 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7001 if eval \${$cacheid+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005/* end confdefs.h. */ 7006int i; 7007int 7008main () 7009{ 7010 7011 ; 7012 return 0; 7013} 7014_ACEOF 7015if ac_fn_c_try_link "$LINENO"; then : 7016 eval $cacheid=yes 7017else 7018 eval $cacheid=no 7019fi 7020rm -f core conftest.err conftest.$ac_objext \ 7021 conftest$ac_exeext conftest.$ac_ext 7022fi 7023 7024 7025 CFLAGS="$xorg_testset_save_CFLAGS" 7026 7027 eval supported=\$$cacheid 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7029$as_echo "$supported" >&6; } 7030 if test "$supported" = "yes" ; then 7031 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7032 found="yes" 7033 fi 7034 fi 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050xorg_testset_save_CFLAGS="$CFLAGS" 7051 7052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060/* end confdefs.h. */ 7061int i; 7062_ACEOF 7063if ac_fn_c_try_compile "$LINENO"; then : 7064 xorg_cv_cc_flag_unknown_warning_option=yes 7065else 7066 xorg_cv_cc_flag_unknown_warning_option=no 7067fi 7068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7069fi 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7073 CFLAGS="$xorg_testset_save_CFLAGS" 7074fi 7075 7076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 fi 7080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087/* end confdefs.h. */ 7088int i; 7089_ACEOF 7090if ac_fn_c_try_compile "$LINENO"; then : 7091 xorg_cv_cc_flag_unused_command_line_argument=yes 7092else 7093 xorg_cv_cc_flag_unused_command_line_argument=no 7094fi 7095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7096fi 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7100 CFLAGS="$xorg_testset_save_CFLAGS" 7101fi 7102 7103found="no" 7104 7105 if test $found = "no" ; then 7106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7108 fi 7109 7110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7112 fi 7113 7114 CFLAGS="$CFLAGS -Werror=nonnull" 7115 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7117$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7118 cacheid=xorg_cv_cc_flag__Werror_nonnull 7119 if eval \${$cacheid+:} false; then : 7120 $as_echo_n "(cached) " >&6 7121else 7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7123/* end confdefs.h. */ 7124int i; 7125int 7126main () 7127{ 7128 7129 ; 7130 return 0; 7131} 7132_ACEOF 7133if ac_fn_c_try_link "$LINENO"; then : 7134 eval $cacheid=yes 7135else 7136 eval $cacheid=no 7137fi 7138rm -f core conftest.err conftest.$ac_objext \ 7139 conftest$ac_exeext conftest.$ac_ext 7140fi 7141 7142 7143 CFLAGS="$xorg_testset_save_CFLAGS" 7144 7145 eval supported=\$$cacheid 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7147$as_echo "$supported" >&6; } 7148 if test "$supported" = "yes" ; then 7149 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7150 found="yes" 7151 fi 7152 fi 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168xorg_testset_save_CFLAGS="$CFLAGS" 7169 7170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178/* end confdefs.h. */ 7179int i; 7180_ACEOF 7181if ac_fn_c_try_compile "$LINENO"; then : 7182 xorg_cv_cc_flag_unknown_warning_option=yes 7183else 7184 xorg_cv_cc_flag_unknown_warning_option=no 7185fi 7186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7187fi 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7191 CFLAGS="$xorg_testset_save_CFLAGS" 7192fi 7193 7194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7197 fi 7198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207_ACEOF 7208if ac_fn_c_try_compile "$LINENO"; then : 7209 xorg_cv_cc_flag_unused_command_line_argument=yes 7210else 7211 xorg_cv_cc_flag_unused_command_line_argument=no 7212fi 7213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7214fi 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7218 CFLAGS="$xorg_testset_save_CFLAGS" 7219fi 7220 7221found="no" 7222 7223 if test $found = "no" ; then 7224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7226 fi 7227 7228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230 fi 7231 7232 CFLAGS="$CFLAGS -Werror=init-self" 7233 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7235$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7236 cacheid=xorg_cv_cc_flag__Werror_init_self 7237 if eval \${$cacheid+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241/* end confdefs.h. */ 7242int i; 7243int 7244main () 7245{ 7246 7247 ; 7248 return 0; 7249} 7250_ACEOF 7251if ac_fn_c_try_link "$LINENO"; then : 7252 eval $cacheid=yes 7253else 7254 eval $cacheid=no 7255fi 7256rm -f core conftest.err conftest.$ac_objext \ 7257 conftest$ac_exeext conftest.$ac_ext 7258fi 7259 7260 7261 CFLAGS="$xorg_testset_save_CFLAGS" 7262 7263 eval supported=\$$cacheid 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7265$as_echo "$supported" >&6; } 7266 if test "$supported" = "yes" ; then 7267 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7268 found="yes" 7269 fi 7270 fi 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286xorg_testset_save_CFLAGS="$CFLAGS" 7287 7288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296/* end confdefs.h. */ 7297int i; 7298_ACEOF 7299if ac_fn_c_try_compile "$LINENO"; then : 7300 xorg_cv_cc_flag_unknown_warning_option=yes 7301else 7302 xorg_cv_cc_flag_unknown_warning_option=no 7303fi 7304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7305fi 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7309 CFLAGS="$xorg_testset_save_CFLAGS" 7310fi 7311 7312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 fi 7316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7323/* end confdefs.h. */ 7324int i; 7325_ACEOF 7326if ac_fn_c_try_compile "$LINENO"; then : 7327 xorg_cv_cc_flag_unused_command_line_argument=yes 7328else 7329 xorg_cv_cc_flag_unused_command_line_argument=no 7330fi 7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7332fi 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7336 CFLAGS="$xorg_testset_save_CFLAGS" 7337fi 7338 7339found="no" 7340 7341 if test $found = "no" ; then 7342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7344 fi 7345 7346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7348 fi 7349 7350 CFLAGS="$CFLAGS -Werror=main" 7351 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7353$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7354 cacheid=xorg_cv_cc_flag__Werror_main 7355 if eval \${$cacheid+:} false; then : 7356 $as_echo_n "(cached) " >&6 7357else 7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359/* end confdefs.h. */ 7360int i; 7361int 7362main () 7363{ 7364 7365 ; 7366 return 0; 7367} 7368_ACEOF 7369if ac_fn_c_try_link "$LINENO"; then : 7370 eval $cacheid=yes 7371else 7372 eval $cacheid=no 7373fi 7374rm -f core conftest.err conftest.$ac_objext \ 7375 conftest$ac_exeext conftest.$ac_ext 7376fi 7377 7378 7379 CFLAGS="$xorg_testset_save_CFLAGS" 7380 7381 eval supported=\$$cacheid 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7383$as_echo "$supported" >&6; } 7384 if test "$supported" = "yes" ; then 7385 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7386 found="yes" 7387 fi 7388 fi 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404xorg_testset_save_CFLAGS="$CFLAGS" 7405 7406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7411 $as_echo_n "(cached) " >&6 7412else 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415int i; 7416_ACEOF 7417if ac_fn_c_try_compile "$LINENO"; then : 7418 xorg_cv_cc_flag_unknown_warning_option=yes 7419else 7420 xorg_cv_cc_flag_unknown_warning_option=no 7421fi 7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7423fi 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7427 CFLAGS="$xorg_testset_save_CFLAGS" 7428fi 7429 7430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7433 fi 7434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441/* end confdefs.h. */ 7442int i; 7443_ACEOF 7444if ac_fn_c_try_compile "$LINENO"; then : 7445 xorg_cv_cc_flag_unused_command_line_argument=yes 7446else 7447 xorg_cv_cc_flag_unused_command_line_argument=no 7448fi 7449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7450fi 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7454 CFLAGS="$xorg_testset_save_CFLAGS" 7455fi 7456 7457found="no" 7458 7459 if test $found = "no" ; then 7460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7462 fi 7463 7464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7466 fi 7467 7468 CFLAGS="$CFLAGS -Werror=missing-braces" 7469 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7471$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7472 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7473 if eval \${$cacheid+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479int 7480main () 7481{ 7482 7483 ; 7484 return 0; 7485} 7486_ACEOF 7487if ac_fn_c_try_link "$LINENO"; then : 7488 eval $cacheid=yes 7489else 7490 eval $cacheid=no 7491fi 7492rm -f core conftest.err conftest.$ac_objext \ 7493 conftest$ac_exeext conftest.$ac_ext 7494fi 7495 7496 7497 CFLAGS="$xorg_testset_save_CFLAGS" 7498 7499 eval supported=\$$cacheid 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7501$as_echo "$supported" >&6; } 7502 if test "$supported" = "yes" ; then 7503 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7504 found="yes" 7505 fi 7506 fi 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522xorg_testset_save_CFLAGS="$CFLAGS" 7523 7524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7529 $as_echo_n "(cached) " >&6 7530else 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533int i; 7534_ACEOF 7535if ac_fn_c_try_compile "$LINENO"; then : 7536 xorg_cv_cc_flag_unknown_warning_option=yes 7537else 7538 xorg_cv_cc_flag_unknown_warning_option=no 7539fi 7540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7541fi 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7545 CFLAGS="$xorg_testset_save_CFLAGS" 7546fi 7547 7548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7551 fi 7552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560int i; 7561_ACEOF 7562if ac_fn_c_try_compile "$LINENO"; then : 7563 xorg_cv_cc_flag_unused_command_line_argument=yes 7564else 7565 xorg_cv_cc_flag_unused_command_line_argument=no 7566fi 7567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7568fi 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7572 CFLAGS="$xorg_testset_save_CFLAGS" 7573fi 7574 7575found="no" 7576 7577 if test $found = "no" ; then 7578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7580 fi 7581 7582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7584 fi 7585 7586 CFLAGS="$CFLAGS -Werror=sequence-point" 7587 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7589$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7590 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7591 if eval \${$cacheid+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596int i; 7597int 7598main () 7599{ 7600 7601 ; 7602 return 0; 7603} 7604_ACEOF 7605if ac_fn_c_try_link "$LINENO"; then : 7606 eval $cacheid=yes 7607else 7608 eval $cacheid=no 7609fi 7610rm -f core conftest.err conftest.$ac_objext \ 7611 conftest$ac_exeext conftest.$ac_ext 7612fi 7613 7614 7615 CFLAGS="$xorg_testset_save_CFLAGS" 7616 7617 eval supported=\$$cacheid 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7619$as_echo "$supported" >&6; } 7620 if test "$supported" = "yes" ; then 7621 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7622 found="yes" 7623 fi 7624 fi 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640xorg_testset_save_CFLAGS="$CFLAGS" 7641 7642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648else 7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7650/* end confdefs.h. */ 7651int i; 7652_ACEOF 7653if ac_fn_c_try_compile "$LINENO"; then : 7654 xorg_cv_cc_flag_unknown_warning_option=yes 7655else 7656 xorg_cv_cc_flag_unknown_warning_option=no 7657fi 7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7659fi 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7663 CFLAGS="$xorg_testset_save_CFLAGS" 7664fi 7665 7666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7669 fi 7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678int i; 7679_ACEOF 7680if ac_fn_c_try_compile "$LINENO"; then : 7681 xorg_cv_cc_flag_unused_command_line_argument=yes 7682else 7683 xorg_cv_cc_flag_unused_command_line_argument=no 7684fi 7685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7686fi 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7690 CFLAGS="$xorg_testset_save_CFLAGS" 7691fi 7692 7693found="no" 7694 7695 if test $found = "no" ; then 7696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7698 fi 7699 7700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7702 fi 7703 7704 CFLAGS="$CFLAGS -Werror=return-type" 7705 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7707$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7708 cacheid=xorg_cv_cc_flag__Werror_return_type 7709 if eval \${$cacheid+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711else 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714int i; 7715int 7716main () 7717{ 7718 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723if ac_fn_c_try_link "$LINENO"; then : 7724 eval $cacheid=yes 7725else 7726 eval $cacheid=no 7727fi 7728rm -f core conftest.err conftest.$ac_objext \ 7729 conftest$ac_exeext conftest.$ac_ext 7730fi 7731 7732 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734 7735 eval supported=\$$cacheid 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7737$as_echo "$supported" >&6; } 7738 if test "$supported" = "yes" ; then 7739 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7740 found="yes" 7741 fi 7742 fi 7743 7744 if test $found = "no" ; then 7745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7747 fi 7748 7749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7751 fi 7752 7753 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7754 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7756$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7757 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7758 if eval \${$cacheid+:} false; then : 7759 $as_echo_n "(cached) " >&6 7760else 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763int i; 7764int 7765main () 7766{ 7767 7768 ; 7769 return 0; 7770} 7771_ACEOF 7772if ac_fn_c_try_link "$LINENO"; then : 7773 eval $cacheid=yes 7774else 7775 eval $cacheid=no 7776fi 7777rm -f core conftest.err conftest.$ac_objext \ 7778 conftest$ac_exeext conftest.$ac_ext 7779fi 7780 7781 7782 CFLAGS="$xorg_testset_save_CFLAGS" 7783 7784 eval supported=\$$cacheid 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7786$as_echo "$supported" >&6; } 7787 if test "$supported" = "yes" ; then 7788 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7789 found="yes" 7790 fi 7791 fi 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807xorg_testset_save_CFLAGS="$CFLAGS" 7808 7809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7817/* end confdefs.h. */ 7818int i; 7819_ACEOF 7820if ac_fn_c_try_compile "$LINENO"; then : 7821 xorg_cv_cc_flag_unknown_warning_option=yes 7822else 7823 xorg_cv_cc_flag_unknown_warning_option=no 7824fi 7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7826fi 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7830 CFLAGS="$xorg_testset_save_CFLAGS" 7831fi 7832 7833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7836 fi 7837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845int i; 7846_ACEOF 7847if ac_fn_c_try_compile "$LINENO"; then : 7848 xorg_cv_cc_flag_unused_command_line_argument=yes 7849else 7850 xorg_cv_cc_flag_unused_command_line_argument=no 7851fi 7852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7853fi 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858fi 7859 7860found="no" 7861 7862 if test $found = "no" ; then 7863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7865 fi 7866 7867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 fi 7870 7871 CFLAGS="$CFLAGS -Werror=trigraphs" 7872 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7874$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7875 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7876 if eval \${$cacheid+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878else 7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7880/* end confdefs.h. */ 7881int i; 7882int 7883main () 7884{ 7885 7886 ; 7887 return 0; 7888} 7889_ACEOF 7890if ac_fn_c_try_link "$LINENO"; then : 7891 eval $cacheid=yes 7892else 7893 eval $cacheid=no 7894fi 7895rm -f core conftest.err conftest.$ac_objext \ 7896 conftest$ac_exeext conftest.$ac_ext 7897fi 7898 7899 7900 CFLAGS="$xorg_testset_save_CFLAGS" 7901 7902 eval supported=\$$cacheid 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7904$as_echo "$supported" >&6; } 7905 if test "$supported" = "yes" ; then 7906 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7907 found="yes" 7908 fi 7909 fi 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925xorg_testset_save_CFLAGS="$CFLAGS" 7926 7927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7932 $as_echo_n "(cached) " >&6 7933else 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936int i; 7937_ACEOF 7938if ac_fn_c_try_compile "$LINENO"; then : 7939 xorg_cv_cc_flag_unknown_warning_option=yes 7940else 7941 xorg_cv_cc_flag_unknown_warning_option=no 7942fi 7943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7944fi 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7948 CFLAGS="$xorg_testset_save_CFLAGS" 7949fi 7950 7951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7954 fi 7955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963int i; 7964_ACEOF 7965if ac_fn_c_try_compile "$LINENO"; then : 7966 xorg_cv_cc_flag_unused_command_line_argument=yes 7967else 7968 xorg_cv_cc_flag_unused_command_line_argument=no 7969fi 7970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7971fi 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7975 CFLAGS="$xorg_testset_save_CFLAGS" 7976fi 7977 7978found="no" 7979 7980 if test $found = "no" ; then 7981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7983 fi 7984 7985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987 fi 7988 7989 CFLAGS="$CFLAGS -Werror=array-bounds" 7990 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7992$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7993 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7994 if eval \${$cacheid+:} false; then : 7995 $as_echo_n "(cached) " >&6 7996else 7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998/* end confdefs.h. */ 7999int i; 8000int 8001main () 8002{ 8003 8004 ; 8005 return 0; 8006} 8007_ACEOF 8008if ac_fn_c_try_link "$LINENO"; then : 8009 eval $cacheid=yes 8010else 8011 eval $cacheid=no 8012fi 8013rm -f core conftest.err conftest.$ac_objext \ 8014 conftest$ac_exeext conftest.$ac_ext 8015fi 8016 8017 8018 CFLAGS="$xorg_testset_save_CFLAGS" 8019 8020 eval supported=\$$cacheid 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8022$as_echo "$supported" >&6; } 8023 if test "$supported" = "yes" ; then 8024 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8025 found="yes" 8026 fi 8027 fi 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043xorg_testset_save_CFLAGS="$CFLAGS" 8044 8045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8050 $as_echo_n "(cached) " >&6 8051else 8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053/* end confdefs.h. */ 8054int i; 8055_ACEOF 8056if ac_fn_c_try_compile "$LINENO"; then : 8057 xorg_cv_cc_flag_unknown_warning_option=yes 8058else 8059 xorg_cv_cc_flag_unknown_warning_option=no 8060fi 8061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8062fi 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8066 CFLAGS="$xorg_testset_save_CFLAGS" 8067fi 8068 8069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8072 fi 8073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8077 $as_echo_n "(cached) " >&6 8078else 8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080/* end confdefs.h. */ 8081int i; 8082_ACEOF 8083if ac_fn_c_try_compile "$LINENO"; then : 8084 xorg_cv_cc_flag_unused_command_line_argument=yes 8085else 8086 xorg_cv_cc_flag_unused_command_line_argument=no 8087fi 8088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8089fi 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8093 CFLAGS="$xorg_testset_save_CFLAGS" 8094fi 8095 8096found="no" 8097 8098 if test $found = "no" ; then 8099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8101 fi 8102 8103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8105 fi 8106 8107 CFLAGS="$CFLAGS -Werror=write-strings" 8108 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8110$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8111 cacheid=xorg_cv_cc_flag__Werror_write_strings 8112 if eval \${$cacheid+:} false; then : 8113 $as_echo_n "(cached) " >&6 8114else 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117int i; 8118int 8119main () 8120{ 8121 8122 ; 8123 return 0; 8124} 8125_ACEOF 8126if ac_fn_c_try_link "$LINENO"; then : 8127 eval $cacheid=yes 8128else 8129 eval $cacheid=no 8130fi 8131rm -f core conftest.err conftest.$ac_objext \ 8132 conftest$ac_exeext conftest.$ac_ext 8133fi 8134 8135 8136 CFLAGS="$xorg_testset_save_CFLAGS" 8137 8138 eval supported=\$$cacheid 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8140$as_echo "$supported" >&6; } 8141 if test "$supported" = "yes" ; then 8142 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8143 found="yes" 8144 fi 8145 fi 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161xorg_testset_save_CFLAGS="$CFLAGS" 8162 8163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8168 $as_echo_n "(cached) " >&6 8169else 8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8171/* end confdefs.h. */ 8172int i; 8173_ACEOF 8174if ac_fn_c_try_compile "$LINENO"; then : 8175 xorg_cv_cc_flag_unknown_warning_option=yes 8176else 8177 xorg_cv_cc_flag_unknown_warning_option=no 8178fi 8179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8180fi 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8184 CFLAGS="$xorg_testset_save_CFLAGS" 8185fi 8186 8187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8190 fi 8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8195 $as_echo_n "(cached) " >&6 8196else 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199int i; 8200_ACEOF 8201if ac_fn_c_try_compile "$LINENO"; then : 8202 xorg_cv_cc_flag_unused_command_line_argument=yes 8203else 8204 xorg_cv_cc_flag_unused_command_line_argument=no 8205fi 8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8207fi 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8211 CFLAGS="$xorg_testset_save_CFLAGS" 8212fi 8213 8214found="no" 8215 8216 if test $found = "no" ; then 8217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8219 fi 8220 8221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223 fi 8224 8225 CFLAGS="$CFLAGS -Werror=address" 8226 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8228$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8229 cacheid=xorg_cv_cc_flag__Werror_address 8230 if eval \${$cacheid+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234/* end confdefs.h. */ 8235int i; 8236int 8237main () 8238{ 8239 8240 ; 8241 return 0; 8242} 8243_ACEOF 8244if ac_fn_c_try_link "$LINENO"; then : 8245 eval $cacheid=yes 8246else 8247 eval $cacheid=no 8248fi 8249rm -f core conftest.err conftest.$ac_objext \ 8250 conftest$ac_exeext conftest.$ac_ext 8251fi 8252 8253 8254 CFLAGS="$xorg_testset_save_CFLAGS" 8255 8256 eval supported=\$$cacheid 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8258$as_echo "$supported" >&6; } 8259 if test "$supported" = "yes" ; then 8260 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8261 found="yes" 8262 fi 8263 fi 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279xorg_testset_save_CFLAGS="$CFLAGS" 8280 8281if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8284$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8285if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8289/* end confdefs.h. */ 8290int i; 8291_ACEOF 8292if ac_fn_c_try_compile "$LINENO"; then : 8293 xorg_cv_cc_flag_unknown_warning_option=yes 8294else 8295 xorg_cv_cc_flag_unknown_warning_option=no 8296fi 8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8298fi 8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8300$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8302 CFLAGS="$xorg_testset_save_CFLAGS" 8303fi 8304 8305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8308 fi 8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8311$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8312if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317int i; 8318_ACEOF 8319if ac_fn_c_try_compile "$LINENO"; then : 8320 xorg_cv_cc_flag_unused_command_line_argument=yes 8321else 8322 xorg_cv_cc_flag_unused_command_line_argument=no 8323fi 8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8325fi 8326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8327$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8329 CFLAGS="$xorg_testset_save_CFLAGS" 8330fi 8331 8332found="no" 8333 8334 if test $found = "no" ; then 8335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8337 fi 8338 8339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 fi 8342 8343 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8344 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8346$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8347 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8348 if eval \${$cacheid+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353int i; 8354int 8355main () 8356{ 8357 8358 ; 8359 return 0; 8360} 8361_ACEOF 8362if ac_fn_c_try_link "$LINENO"; then : 8363 eval $cacheid=yes 8364else 8365 eval $cacheid=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext \ 8368 conftest$ac_exeext conftest.$ac_ext 8369fi 8370 8371 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373 8374 eval supported=\$$cacheid 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8376$as_echo "$supported" >&6; } 8377 if test "$supported" = "yes" ; then 8378 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8379 found="yes" 8380 fi 8381 fi 8382 8383 if test $found = "no" ; then 8384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8386 fi 8387 8388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8390 fi 8391 8392 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8393 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8395$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8396 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8397 if eval \${$cacheid+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8401/* end confdefs.h. */ 8402int i; 8403int 8404main () 8405{ 8406 8407 ; 8408 return 0; 8409} 8410_ACEOF 8411if ac_fn_c_try_link "$LINENO"; then : 8412 eval $cacheid=yes 8413else 8414 eval $cacheid=no 8415fi 8416rm -f core conftest.err conftest.$ac_objext \ 8417 conftest$ac_exeext conftest.$ac_ext 8418fi 8419 8420 8421 CFLAGS="$xorg_testset_save_CFLAGS" 8422 8423 eval supported=\$$cacheid 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8425$as_echo "$supported" >&6; } 8426 if test "$supported" = "yes" ; then 8427 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8428 found="yes" 8429 fi 8430 fi 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446xorg_testset_save_CFLAGS="$CFLAGS" 8447 8448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8456/* end confdefs.h. */ 8457int i; 8458_ACEOF 8459if ac_fn_c_try_compile "$LINENO"; then : 8460 xorg_cv_cc_flag_unknown_warning_option=yes 8461else 8462 xorg_cv_cc_flag_unknown_warning_option=no 8463fi 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8465fi 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8469 CFLAGS="$xorg_testset_save_CFLAGS" 8470fi 8471 8472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 fi 8476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8483/* end confdefs.h. */ 8484int i; 8485_ACEOF 8486if ac_fn_c_try_compile "$LINENO"; then : 8487 xorg_cv_cc_flag_unused_command_line_argument=yes 8488else 8489 xorg_cv_cc_flag_unused_command_line_argument=no 8490fi 8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8492fi 8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497fi 8498 8499found="no" 8500 8501 if test $found = "no" ; then 8502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8504 fi 8505 8506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 fi 8509 8510 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8511 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8513$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8514 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8515 if eval \${$cacheid+:} false; then : 8516 $as_echo_n "(cached) " >&6 8517else 8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8519/* end confdefs.h. */ 8520int i; 8521int 8522main () 8523{ 8524 8525 ; 8526 return 0; 8527} 8528_ACEOF 8529if ac_fn_c_try_link "$LINENO"; then : 8530 eval $cacheid=yes 8531else 8532 eval $cacheid=no 8533fi 8534rm -f core conftest.err conftest.$ac_objext \ 8535 conftest$ac_exeext conftest.$ac_ext 8536fi 8537 8538 8539 CFLAGS="$xorg_testset_save_CFLAGS" 8540 8541 eval supported=\$$cacheid 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8543$as_echo "$supported" >&6; } 8544 if test "$supported" = "yes" ; then 8545 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8546 found="yes" 8547 fi 8548 fi 8549 8550 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8551else 8552{ $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 8553$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;} 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567xorg_testset_save_CFLAGS="$CFLAGS" 8568 8569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578int i; 8579_ACEOF 8580if ac_fn_c_try_compile "$LINENO"; then : 8581 xorg_cv_cc_flag_unknown_warning_option=yes 8582else 8583 xorg_cv_cc_flag_unknown_warning_option=no 8584fi 8585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8586fi 8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591fi 8592 8593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8596 fi 8597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8604/* end confdefs.h. */ 8605int i; 8606_ACEOF 8607if ac_fn_c_try_compile "$LINENO"; then : 8608 xorg_cv_cc_flag_unused_command_line_argument=yes 8609else 8610 xorg_cv_cc_flag_unused_command_line_argument=no 8611fi 8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8613fi 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8617 CFLAGS="$xorg_testset_save_CFLAGS" 8618fi 8619 8620found="no" 8621 8622 if test $found = "no" ; then 8623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8625 fi 8626 8627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8629 fi 8630 8631 CFLAGS="$CFLAGS -Wimplicit" 8632 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8634$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8635 cacheid=xorg_cv_cc_flag__Wimplicit 8636 if eval \${$cacheid+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640/* end confdefs.h. */ 8641int i; 8642int 8643main () 8644{ 8645 8646 ; 8647 return 0; 8648} 8649_ACEOF 8650if ac_fn_c_try_link "$LINENO"; then : 8651 eval $cacheid=yes 8652else 8653 eval $cacheid=no 8654fi 8655rm -f core conftest.err conftest.$ac_objext \ 8656 conftest$ac_exeext conftest.$ac_ext 8657fi 8658 8659 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661 8662 eval supported=\$$cacheid 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8664$as_echo "$supported" >&6; } 8665 if test "$supported" = "yes" ; then 8666 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8667 found="yes" 8668 fi 8669 fi 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685xorg_testset_save_CFLAGS="$CFLAGS" 8686 8687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8692 $as_echo_n "(cached) " >&6 8693else 8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8695/* end confdefs.h. */ 8696int i; 8697_ACEOF 8698if ac_fn_c_try_compile "$LINENO"; then : 8699 xorg_cv_cc_flag_unknown_warning_option=yes 8700else 8701 xorg_cv_cc_flag_unknown_warning_option=no 8702fi 8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8704fi 8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8708 CFLAGS="$xorg_testset_save_CFLAGS" 8709fi 8710 8711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8714 fi 8715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8719 $as_echo_n "(cached) " >&6 8720else 8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723int i; 8724_ACEOF 8725if ac_fn_c_try_compile "$LINENO"; then : 8726 xorg_cv_cc_flag_unused_command_line_argument=yes 8727else 8728 xorg_cv_cc_flag_unused_command_line_argument=no 8729fi 8730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8731fi 8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8735 CFLAGS="$xorg_testset_save_CFLAGS" 8736fi 8737 8738found="no" 8739 8740 if test $found = "no" ; then 8741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8743 fi 8744 8745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8747 fi 8748 8749 CFLAGS="$CFLAGS -Wnonnull" 8750 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8752$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8753 cacheid=xorg_cv_cc_flag__Wnonnull 8754 if eval \${$cacheid+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756else 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758/* end confdefs.h. */ 8759int i; 8760int 8761main () 8762{ 8763 8764 ; 8765 return 0; 8766} 8767_ACEOF 8768if ac_fn_c_try_link "$LINENO"; then : 8769 eval $cacheid=yes 8770else 8771 eval $cacheid=no 8772fi 8773rm -f core conftest.err conftest.$ac_objext \ 8774 conftest$ac_exeext conftest.$ac_ext 8775fi 8776 8777 8778 CFLAGS="$xorg_testset_save_CFLAGS" 8779 8780 eval supported=\$$cacheid 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8782$as_echo "$supported" >&6; } 8783 if test "$supported" = "yes" ; then 8784 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8785 found="yes" 8786 fi 8787 fi 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803xorg_testset_save_CFLAGS="$CFLAGS" 8804 8805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811else 8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813/* end confdefs.h. */ 8814int i; 8815_ACEOF 8816if ac_fn_c_try_compile "$LINENO"; then : 8817 xorg_cv_cc_flag_unknown_warning_option=yes 8818else 8819 xorg_cv_cc_flag_unknown_warning_option=no 8820fi 8821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8822fi 8823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8826 CFLAGS="$xorg_testset_save_CFLAGS" 8827fi 8828 8829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8832 fi 8833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8837 $as_echo_n "(cached) " >&6 8838else 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840/* end confdefs.h. */ 8841int i; 8842_ACEOF 8843if ac_fn_c_try_compile "$LINENO"; then : 8844 xorg_cv_cc_flag_unused_command_line_argument=yes 8845else 8846 xorg_cv_cc_flag_unused_command_line_argument=no 8847fi 8848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8849fi 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8853 CFLAGS="$xorg_testset_save_CFLAGS" 8854fi 8855 8856found="no" 8857 8858 if test $found = "no" ; then 8859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8861 fi 8862 8863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8865 fi 8866 8867 CFLAGS="$CFLAGS -Winit-self" 8868 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8870$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8871 cacheid=xorg_cv_cc_flag__Winit_self 8872 if eval \${$cacheid+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874else 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877int i; 8878int 8879main () 8880{ 8881 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886if ac_fn_c_try_link "$LINENO"; then : 8887 eval $cacheid=yes 8888else 8889 eval $cacheid=no 8890fi 8891rm -f core conftest.err conftest.$ac_objext \ 8892 conftest$ac_exeext conftest.$ac_ext 8893fi 8894 8895 8896 CFLAGS="$xorg_testset_save_CFLAGS" 8897 8898 eval supported=\$$cacheid 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8900$as_echo "$supported" >&6; } 8901 if test "$supported" = "yes" ; then 8902 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8903 found="yes" 8904 fi 8905 fi 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921xorg_testset_save_CFLAGS="$CFLAGS" 8922 8923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8928 $as_echo_n "(cached) " >&6 8929else 8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8931/* end confdefs.h. */ 8932int i; 8933_ACEOF 8934if ac_fn_c_try_compile "$LINENO"; then : 8935 xorg_cv_cc_flag_unknown_warning_option=yes 8936else 8937 xorg_cv_cc_flag_unknown_warning_option=no 8938fi 8939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8940fi 8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8944 CFLAGS="$xorg_testset_save_CFLAGS" 8945fi 8946 8947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8950 fi 8951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8955 $as_echo_n "(cached) " >&6 8956else 8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958/* end confdefs.h. */ 8959int i; 8960_ACEOF 8961if ac_fn_c_try_compile "$LINENO"; then : 8962 xorg_cv_cc_flag_unused_command_line_argument=yes 8963else 8964 xorg_cv_cc_flag_unused_command_line_argument=no 8965fi 8966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8967fi 8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8971 CFLAGS="$xorg_testset_save_CFLAGS" 8972fi 8973 8974found="no" 8975 8976 if test $found = "no" ; then 8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979 fi 8980 8981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8983 fi 8984 8985 CFLAGS="$CFLAGS -Wmain" 8986 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8988$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8989 cacheid=xorg_cv_cc_flag__Wmain 8990 if eval \${$cacheid+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992else 8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8994/* end confdefs.h. */ 8995int i; 8996int 8997main () 8998{ 8999 9000 ; 9001 return 0; 9002} 9003_ACEOF 9004if ac_fn_c_try_link "$LINENO"; then : 9005 eval $cacheid=yes 9006else 9007 eval $cacheid=no 9008fi 9009rm -f core conftest.err conftest.$ac_objext \ 9010 conftest$ac_exeext conftest.$ac_ext 9011fi 9012 9013 9014 CFLAGS="$xorg_testset_save_CFLAGS" 9015 9016 eval supported=\$$cacheid 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9018$as_echo "$supported" >&6; } 9019 if test "$supported" = "yes" ; then 9020 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9021 found="yes" 9022 fi 9023 fi 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039xorg_testset_save_CFLAGS="$CFLAGS" 9040 9041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9046 $as_echo_n "(cached) " >&6 9047else 9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9049/* end confdefs.h. */ 9050int i; 9051_ACEOF 9052if ac_fn_c_try_compile "$LINENO"; then : 9053 xorg_cv_cc_flag_unknown_warning_option=yes 9054else 9055 xorg_cv_cc_flag_unknown_warning_option=no 9056fi 9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9058fi 9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9062 CFLAGS="$xorg_testset_save_CFLAGS" 9063fi 9064 9065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9068 fi 9069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9073 $as_echo_n "(cached) " >&6 9074else 9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9076/* end confdefs.h. */ 9077int i; 9078_ACEOF 9079if ac_fn_c_try_compile "$LINENO"; then : 9080 xorg_cv_cc_flag_unused_command_line_argument=yes 9081else 9082 xorg_cv_cc_flag_unused_command_line_argument=no 9083fi 9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9085fi 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9089 CFLAGS="$xorg_testset_save_CFLAGS" 9090fi 9091 9092found="no" 9093 9094 if test $found = "no" ; then 9095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9097 fi 9098 9099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9101 fi 9102 9103 CFLAGS="$CFLAGS -Wmissing-braces" 9104 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9106$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9107 cacheid=xorg_cv_cc_flag__Wmissing_braces 9108 if eval \${$cacheid+:} false; then : 9109 $as_echo_n "(cached) " >&6 9110else 9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112/* end confdefs.h. */ 9113int i; 9114int 9115main () 9116{ 9117 9118 ; 9119 return 0; 9120} 9121_ACEOF 9122if ac_fn_c_try_link "$LINENO"; then : 9123 eval $cacheid=yes 9124else 9125 eval $cacheid=no 9126fi 9127rm -f core conftest.err conftest.$ac_objext \ 9128 conftest$ac_exeext conftest.$ac_ext 9129fi 9130 9131 9132 CFLAGS="$xorg_testset_save_CFLAGS" 9133 9134 eval supported=\$$cacheid 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9136$as_echo "$supported" >&6; } 9137 if test "$supported" = "yes" ; then 9138 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9139 found="yes" 9140 fi 9141 fi 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157xorg_testset_save_CFLAGS="$CFLAGS" 9158 9159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9164 $as_echo_n "(cached) " >&6 9165else 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167/* end confdefs.h. */ 9168int i; 9169_ACEOF 9170if ac_fn_c_try_compile "$LINENO"; then : 9171 xorg_cv_cc_flag_unknown_warning_option=yes 9172else 9173 xorg_cv_cc_flag_unknown_warning_option=no 9174fi 9175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9176fi 9177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9180 CFLAGS="$xorg_testset_save_CFLAGS" 9181fi 9182 9183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9186 fi 9187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196_ACEOF 9197if ac_fn_c_try_compile "$LINENO"; then : 9198 xorg_cv_cc_flag_unused_command_line_argument=yes 9199else 9200 xorg_cv_cc_flag_unused_command_line_argument=no 9201fi 9202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9203fi 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9207 CFLAGS="$xorg_testset_save_CFLAGS" 9208fi 9209 9210found="no" 9211 9212 if test $found = "no" ; then 9213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9215 fi 9216 9217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9219 fi 9220 9221 CFLAGS="$CFLAGS -Wsequence-point" 9222 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9224$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9225 cacheid=xorg_cv_cc_flag__Wsequence_point 9226 if eval \${$cacheid+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9230/* end confdefs.h. */ 9231int i; 9232int 9233main () 9234{ 9235 9236 ; 9237 return 0; 9238} 9239_ACEOF 9240if ac_fn_c_try_link "$LINENO"; then : 9241 eval $cacheid=yes 9242else 9243 eval $cacheid=no 9244fi 9245rm -f core conftest.err conftest.$ac_objext \ 9246 conftest$ac_exeext conftest.$ac_ext 9247fi 9248 9249 9250 CFLAGS="$xorg_testset_save_CFLAGS" 9251 9252 eval supported=\$$cacheid 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9254$as_echo "$supported" >&6; } 9255 if test "$supported" = "yes" ; then 9256 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9257 found="yes" 9258 fi 9259 fi 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275xorg_testset_save_CFLAGS="$CFLAGS" 9276 9277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9282 $as_echo_n "(cached) " >&6 9283else 9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285/* end confdefs.h. */ 9286int i; 9287_ACEOF 9288if ac_fn_c_try_compile "$LINENO"; then : 9289 xorg_cv_cc_flag_unknown_warning_option=yes 9290else 9291 xorg_cv_cc_flag_unknown_warning_option=no 9292fi 9293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9294fi 9295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9298 CFLAGS="$xorg_testset_save_CFLAGS" 9299fi 9300 9301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304 fi 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9309 $as_echo_n "(cached) " >&6 9310else 9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9312/* end confdefs.h. */ 9313int i; 9314_ACEOF 9315if ac_fn_c_try_compile "$LINENO"; then : 9316 xorg_cv_cc_flag_unused_command_line_argument=yes 9317else 9318 xorg_cv_cc_flag_unused_command_line_argument=no 9319fi 9320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9321fi 9322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9325 CFLAGS="$xorg_testset_save_CFLAGS" 9326fi 9327 9328found="no" 9329 9330 if test $found = "no" ; then 9331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9333 fi 9334 9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337 fi 9338 9339 CFLAGS="$CFLAGS -Wreturn-type" 9340 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9342$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9343 cacheid=xorg_cv_cc_flag__Wreturn_type 9344 if eval \${$cacheid+:} false; then : 9345 $as_echo_n "(cached) " >&6 9346else 9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348/* end confdefs.h. */ 9349int i; 9350int 9351main () 9352{ 9353 9354 ; 9355 return 0; 9356} 9357_ACEOF 9358if ac_fn_c_try_link "$LINENO"; then : 9359 eval $cacheid=yes 9360else 9361 eval $cacheid=no 9362fi 9363rm -f core conftest.err conftest.$ac_objext \ 9364 conftest$ac_exeext conftest.$ac_ext 9365fi 9366 9367 9368 CFLAGS="$xorg_testset_save_CFLAGS" 9369 9370 eval supported=\$$cacheid 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9372$as_echo "$supported" >&6; } 9373 if test "$supported" = "yes" ; then 9374 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9375 found="yes" 9376 fi 9377 fi 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393xorg_testset_save_CFLAGS="$CFLAGS" 9394 9395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9400 $as_echo_n "(cached) " >&6 9401else 9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404int i; 9405_ACEOF 9406if ac_fn_c_try_compile "$LINENO"; then : 9407 xorg_cv_cc_flag_unknown_warning_option=yes 9408else 9409 xorg_cv_cc_flag_unknown_warning_option=no 9410fi 9411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9412fi 9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9415 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9416 CFLAGS="$xorg_testset_save_CFLAGS" 9417fi 9418 9419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9422 fi 9423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9430/* end confdefs.h. */ 9431int i; 9432_ACEOF 9433if ac_fn_c_try_compile "$LINENO"; then : 9434 xorg_cv_cc_flag_unused_command_line_argument=yes 9435else 9436 xorg_cv_cc_flag_unused_command_line_argument=no 9437fi 9438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9439fi 9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9443 CFLAGS="$xorg_testset_save_CFLAGS" 9444fi 9445 9446found="no" 9447 9448 if test $found = "no" ; then 9449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9451 fi 9452 9453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455 fi 9456 9457 CFLAGS="$CFLAGS -Wtrigraphs" 9458 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9460$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9461 cacheid=xorg_cv_cc_flag__Wtrigraphs 9462 if eval \${$cacheid+:} false; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466/* end confdefs.h. */ 9467int i; 9468int 9469main () 9470{ 9471 9472 ; 9473 return 0; 9474} 9475_ACEOF 9476if ac_fn_c_try_link "$LINENO"; then : 9477 eval $cacheid=yes 9478else 9479 eval $cacheid=no 9480fi 9481rm -f core conftest.err conftest.$ac_objext \ 9482 conftest$ac_exeext conftest.$ac_ext 9483fi 9484 9485 9486 CFLAGS="$xorg_testset_save_CFLAGS" 9487 9488 eval supported=\$$cacheid 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9490$as_echo "$supported" >&6; } 9491 if test "$supported" = "yes" ; then 9492 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9493 found="yes" 9494 fi 9495 fi 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511xorg_testset_save_CFLAGS="$CFLAGS" 9512 9513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9518 $as_echo_n "(cached) " >&6 9519else 9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9521/* end confdefs.h. */ 9522int i; 9523_ACEOF 9524if ac_fn_c_try_compile "$LINENO"; then : 9525 xorg_cv_cc_flag_unknown_warning_option=yes 9526else 9527 xorg_cv_cc_flag_unknown_warning_option=no 9528fi 9529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9530fi 9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535fi 9536 9537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9540 fi 9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548/* end confdefs.h. */ 9549int i; 9550_ACEOF 9551if ac_fn_c_try_compile "$LINENO"; then : 9552 xorg_cv_cc_flag_unused_command_line_argument=yes 9553else 9554 xorg_cv_cc_flag_unused_command_line_argument=no 9555fi 9556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9557fi 9558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9561 CFLAGS="$xorg_testset_save_CFLAGS" 9562fi 9563 9564found="no" 9565 9566 if test $found = "no" ; then 9567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9569 fi 9570 9571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9573 fi 9574 9575 CFLAGS="$CFLAGS -Warray-bounds" 9576 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9578$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9579 cacheid=xorg_cv_cc_flag__Warray_bounds 9580 if eval \${$cacheid+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9584/* end confdefs.h. */ 9585int i; 9586int 9587main () 9588{ 9589 9590 ; 9591 return 0; 9592} 9593_ACEOF 9594if ac_fn_c_try_link "$LINENO"; then : 9595 eval $cacheid=yes 9596else 9597 eval $cacheid=no 9598fi 9599rm -f core conftest.err conftest.$ac_objext \ 9600 conftest$ac_exeext conftest.$ac_ext 9601fi 9602 9603 9604 CFLAGS="$xorg_testset_save_CFLAGS" 9605 9606 eval supported=\$$cacheid 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9608$as_echo "$supported" >&6; } 9609 if test "$supported" = "yes" ; then 9610 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9611 found="yes" 9612 fi 9613 fi 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629xorg_testset_save_CFLAGS="$CFLAGS" 9630 9631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9636 $as_echo_n "(cached) " >&6 9637else 9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9639/* end confdefs.h. */ 9640int i; 9641_ACEOF 9642if ac_fn_c_try_compile "$LINENO"; then : 9643 xorg_cv_cc_flag_unknown_warning_option=yes 9644else 9645 xorg_cv_cc_flag_unknown_warning_option=no 9646fi 9647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9648fi 9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653fi 9654 9655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9658 fi 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664else 9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666/* end confdefs.h. */ 9667int i; 9668_ACEOF 9669if ac_fn_c_try_compile "$LINENO"; then : 9670 xorg_cv_cc_flag_unused_command_line_argument=yes 9671else 9672 xorg_cv_cc_flag_unused_command_line_argument=no 9673fi 9674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9675fi 9676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9679 CFLAGS="$xorg_testset_save_CFLAGS" 9680fi 9681 9682found="no" 9683 9684 if test $found = "no" ; then 9685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9687 fi 9688 9689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9691 fi 9692 9693 CFLAGS="$CFLAGS -Wwrite-strings" 9694 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9696$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9697 cacheid=xorg_cv_cc_flag__Wwrite_strings 9698 if eval \${$cacheid+:} false; then : 9699 $as_echo_n "(cached) " >&6 9700else 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702/* end confdefs.h. */ 9703int i; 9704int 9705main () 9706{ 9707 9708 ; 9709 return 0; 9710} 9711_ACEOF 9712if ac_fn_c_try_link "$LINENO"; then : 9713 eval $cacheid=yes 9714else 9715 eval $cacheid=no 9716fi 9717rm -f core conftest.err conftest.$ac_objext \ 9718 conftest$ac_exeext conftest.$ac_ext 9719fi 9720 9721 9722 CFLAGS="$xorg_testset_save_CFLAGS" 9723 9724 eval supported=\$$cacheid 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9726$as_echo "$supported" >&6; } 9727 if test "$supported" = "yes" ; then 9728 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9729 found="yes" 9730 fi 9731 fi 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747xorg_testset_save_CFLAGS="$CFLAGS" 9748 9749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9754 $as_echo_n "(cached) " >&6 9755else 9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9757/* end confdefs.h. */ 9758int i; 9759_ACEOF 9760if ac_fn_c_try_compile "$LINENO"; then : 9761 xorg_cv_cc_flag_unknown_warning_option=yes 9762else 9763 xorg_cv_cc_flag_unknown_warning_option=no 9764fi 9765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9766fi 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9770 CFLAGS="$xorg_testset_save_CFLAGS" 9771fi 9772 9773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9776 fi 9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784/* end confdefs.h. */ 9785int i; 9786_ACEOF 9787if ac_fn_c_try_compile "$LINENO"; then : 9788 xorg_cv_cc_flag_unused_command_line_argument=yes 9789else 9790 xorg_cv_cc_flag_unused_command_line_argument=no 9791fi 9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9793fi 9794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9797 CFLAGS="$xorg_testset_save_CFLAGS" 9798fi 9799 9800found="no" 9801 9802 if test $found = "no" ; then 9803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9805 fi 9806 9807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809 fi 9810 9811 CFLAGS="$CFLAGS -Waddress" 9812 9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9814$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9815 cacheid=xorg_cv_cc_flag__Waddress 9816 if eval \${$cacheid+:} false; then : 9817 $as_echo_n "(cached) " >&6 9818else 9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9820/* end confdefs.h. */ 9821int i; 9822int 9823main () 9824{ 9825 9826 ; 9827 return 0; 9828} 9829_ACEOF 9830if ac_fn_c_try_link "$LINENO"; then : 9831 eval $cacheid=yes 9832else 9833 eval $cacheid=no 9834fi 9835rm -f core conftest.err conftest.$ac_objext \ 9836 conftest$ac_exeext conftest.$ac_ext 9837fi 9838 9839 9840 CFLAGS="$xorg_testset_save_CFLAGS" 9841 9842 eval supported=\$$cacheid 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9844$as_echo "$supported" >&6; } 9845 if test "$supported" = "yes" ; then 9846 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9847 found="yes" 9848 fi 9849 fi 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865xorg_testset_save_CFLAGS="$CFLAGS" 9866 9867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9872 $as_echo_n "(cached) " >&6 9873else 9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875/* end confdefs.h. */ 9876int i; 9877_ACEOF 9878if ac_fn_c_try_compile "$LINENO"; then : 9879 xorg_cv_cc_flag_unknown_warning_option=yes 9880else 9881 xorg_cv_cc_flag_unknown_warning_option=no 9882fi 9883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9884fi 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9888 CFLAGS="$xorg_testset_save_CFLAGS" 9889fi 9890 9891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9894 fi 9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903int i; 9904_ACEOF 9905if ac_fn_c_try_compile "$LINENO"; then : 9906 xorg_cv_cc_flag_unused_command_line_argument=yes 9907else 9908 xorg_cv_cc_flag_unused_command_line_argument=no 9909fi 9910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9911fi 9912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9915 CFLAGS="$xorg_testset_save_CFLAGS" 9916fi 9917 9918found="no" 9919 9920 if test $found = "no" ; then 9921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9923 fi 9924 9925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9927 fi 9928 9929 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9930 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9932$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9933 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9934 if eval \${$cacheid+:} false; then : 9935 $as_echo_n "(cached) " >&6 9936else 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939int i; 9940int 9941main () 9942{ 9943 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948if ac_fn_c_try_link "$LINENO"; then : 9949 eval $cacheid=yes 9950else 9951 eval $cacheid=no 9952fi 9953rm -f core conftest.err conftest.$ac_objext \ 9954 conftest$ac_exeext conftest.$ac_ext 9955fi 9956 9957 9958 CFLAGS="$xorg_testset_save_CFLAGS" 9959 9960 eval supported=\$$cacheid 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9962$as_echo "$supported" >&6; } 9963 if test "$supported" = "yes" ; then 9964 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9965 found="yes" 9966 fi 9967 fi 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983xorg_testset_save_CFLAGS="$CFLAGS" 9984 9985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9993/* end confdefs.h. */ 9994int i; 9995_ACEOF 9996if ac_fn_c_try_compile "$LINENO"; then : 9997 xorg_cv_cc_flag_unknown_warning_option=yes 9998else 9999 xorg_cv_cc_flag_unknown_warning_option=no 10000fi 10001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10002fi 10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10006 CFLAGS="$xorg_testset_save_CFLAGS" 10007fi 10008 10009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10012 fi 10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018else 10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021int i; 10022_ACEOF 10023if ac_fn_c_try_compile "$LINENO"; then : 10024 xorg_cv_cc_flag_unused_command_line_argument=yes 10025else 10026 xorg_cv_cc_flag_unused_command_line_argument=no 10027fi 10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10029fi 10030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10033 CFLAGS="$xorg_testset_save_CFLAGS" 10034fi 10035 10036found="no" 10037 10038 if test $found = "no" ; then 10039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10041 fi 10042 10043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10045 fi 10046 10047 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10048 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10050$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10051 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10052 if eval \${$cacheid+:} false; then : 10053 $as_echo_n "(cached) " >&6 10054else 10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056/* end confdefs.h. */ 10057int i; 10058int 10059main () 10060{ 10061 10062 ; 10063 return 0; 10064} 10065_ACEOF 10066if ac_fn_c_try_link "$LINENO"; then : 10067 eval $cacheid=yes 10068else 10069 eval $cacheid=no 10070fi 10071rm -f core conftest.err conftest.$ac_objext \ 10072 conftest$ac_exeext conftest.$ac_ext 10073fi 10074 10075 10076 CFLAGS="$xorg_testset_save_CFLAGS" 10077 10078 eval supported=\$$cacheid 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10080$as_echo "$supported" >&6; } 10081 if test "$supported" = "yes" ; then 10082 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10083 found="yes" 10084 fi 10085 fi 10086 10087 10088fi 10089 10090 10091 10092 10093 10094 10095 10096 CWARNFLAGS="$BASE_CFLAGS" 10097 if test "x$GCC" = xyes ; then 10098 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10099 fi 10100 10101 10102 10103 10104 10105 10106 10107 10108# Check whether --enable-strict-compilation was given. 10109if test "${enable_strict_compilation+set}" = set; then : 10110 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10111else 10112 STRICT_COMPILE=no 10113fi 10114 10115 10116 10117 10118 10119 10120STRICT_CFLAGS="" 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134xorg_testset_save_CFLAGS="$CFLAGS" 10135 10136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10141 $as_echo_n "(cached) " >&6 10142else 10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10144/* end confdefs.h. */ 10145int i; 10146_ACEOF 10147if ac_fn_c_try_compile "$LINENO"; then : 10148 xorg_cv_cc_flag_unknown_warning_option=yes 10149else 10150 xorg_cv_cc_flag_unknown_warning_option=no 10151fi 10152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10153fi 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10157 CFLAGS="$xorg_testset_save_CFLAGS" 10158fi 10159 10160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10163 fi 10164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10168 $as_echo_n "(cached) " >&6 10169else 10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171/* end confdefs.h. */ 10172int i; 10173_ACEOF 10174if ac_fn_c_try_compile "$LINENO"; then : 10175 xorg_cv_cc_flag_unused_command_line_argument=yes 10176else 10177 xorg_cv_cc_flag_unused_command_line_argument=no 10178fi 10179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10180fi 10181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10184 CFLAGS="$xorg_testset_save_CFLAGS" 10185fi 10186 10187found="no" 10188 10189 if test $found = "no" ; then 10190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10192 fi 10193 10194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10196 fi 10197 10198 CFLAGS="$CFLAGS -pedantic" 10199 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10201$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10202 cacheid=xorg_cv_cc_flag__pedantic 10203 if eval \${$cacheid+:} false; then : 10204 $as_echo_n "(cached) " >&6 10205else 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208int i; 10209int 10210main () 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217if ac_fn_c_try_link "$LINENO"; then : 10218 eval $cacheid=yes 10219else 10220 eval $cacheid=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext \ 10223 conftest$ac_exeext conftest.$ac_ext 10224fi 10225 10226 10227 CFLAGS="$xorg_testset_save_CFLAGS" 10228 10229 eval supported=\$$cacheid 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10231$as_echo "$supported" >&6; } 10232 if test "$supported" = "yes" ; then 10233 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10234 found="yes" 10235 fi 10236 fi 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252xorg_testset_save_CFLAGS="$CFLAGS" 10253 10254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10259 $as_echo_n "(cached) " >&6 10260else 10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10262/* end confdefs.h. */ 10263int i; 10264_ACEOF 10265if ac_fn_c_try_compile "$LINENO"; then : 10266 xorg_cv_cc_flag_unknown_warning_option=yes 10267else 10268 xorg_cv_cc_flag_unknown_warning_option=no 10269fi 10270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10271fi 10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10275 CFLAGS="$xorg_testset_save_CFLAGS" 10276fi 10277 10278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 fi 10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287else 10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290int i; 10291_ACEOF 10292if ac_fn_c_try_compile "$LINENO"; then : 10293 xorg_cv_cc_flag_unused_command_line_argument=yes 10294else 10295 xorg_cv_cc_flag_unused_command_line_argument=no 10296fi 10297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10298fi 10299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10302 CFLAGS="$xorg_testset_save_CFLAGS" 10303fi 10304 10305found="no" 10306 10307 if test $found = "no" ; then 10308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10310 fi 10311 10312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10314 fi 10315 10316 CFLAGS="$CFLAGS -Werror" 10317 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10319$as_echo_n "checking if $CC supports -Werror... " >&6; } 10320 cacheid=xorg_cv_cc_flag__Werror 10321 if eval \${$cacheid+:} false; then : 10322 $as_echo_n "(cached) " >&6 10323else 10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10325/* end confdefs.h. */ 10326int i; 10327int 10328main () 10329{ 10330 10331 ; 10332 return 0; 10333} 10334_ACEOF 10335if ac_fn_c_try_link "$LINENO"; then : 10336 eval $cacheid=yes 10337else 10338 eval $cacheid=no 10339fi 10340rm -f core conftest.err conftest.$ac_objext \ 10341 conftest$ac_exeext conftest.$ac_ext 10342fi 10343 10344 10345 CFLAGS="$xorg_testset_save_CFLAGS" 10346 10347 eval supported=\$$cacheid 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10349$as_echo "$supported" >&6; } 10350 if test "$supported" = "yes" ; then 10351 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10352 found="yes" 10353 fi 10354 fi 10355 10356 if test $found = "no" ; then 10357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10359 fi 10360 10361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10363 fi 10364 10365 CFLAGS="$CFLAGS -errwarn" 10366 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10368$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10369 cacheid=xorg_cv_cc_flag__errwarn 10370 if eval \${$cacheid+:} false; then : 10371 $as_echo_n "(cached) " >&6 10372else 10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10374/* end confdefs.h. */ 10375int i; 10376int 10377main () 10378{ 10379 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384if ac_fn_c_try_link "$LINENO"; then : 10385 eval $cacheid=yes 10386else 10387 eval $cacheid=no 10388fi 10389rm -f core conftest.err conftest.$ac_objext \ 10390 conftest$ac_exeext conftest.$ac_ext 10391fi 10392 10393 10394 CFLAGS="$xorg_testset_save_CFLAGS" 10395 10396 eval supported=\$$cacheid 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10398$as_echo "$supported" >&6; } 10399 if test "$supported" = "yes" ; then 10400 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10401 found="yes" 10402 fi 10403 fi 10404 10405 10406 10407# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10408# activate it with -Werror, so we add it here explicitly. 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422xorg_testset_save_CFLAGS="$CFLAGS" 10423 10424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10429 $as_echo_n "(cached) " >&6 10430else 10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10432/* end confdefs.h. */ 10433int i; 10434_ACEOF 10435if ac_fn_c_try_compile "$LINENO"; then : 10436 xorg_cv_cc_flag_unknown_warning_option=yes 10437else 10438 xorg_cv_cc_flag_unknown_warning_option=no 10439fi 10440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10441fi 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10445 CFLAGS="$xorg_testset_save_CFLAGS" 10446fi 10447 10448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10451 fi 10452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10456 $as_echo_n "(cached) " >&6 10457else 10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10459/* end confdefs.h. */ 10460int i; 10461_ACEOF 10462if ac_fn_c_try_compile "$LINENO"; then : 10463 xorg_cv_cc_flag_unused_command_line_argument=yes 10464else 10465 xorg_cv_cc_flag_unused_command_line_argument=no 10466fi 10467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10468fi 10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10472 CFLAGS="$xorg_testset_save_CFLAGS" 10473fi 10474 10475found="no" 10476 10477 if test $found = "no" ; then 10478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10480 fi 10481 10482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10484 fi 10485 10486 CFLAGS="$CFLAGS -Werror=attributes" 10487 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10489$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10490 cacheid=xorg_cv_cc_flag__Werror_attributes 10491 if eval \${$cacheid+:} false; then : 10492 $as_echo_n "(cached) " >&6 10493else 10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10495/* end confdefs.h. */ 10496int i; 10497int 10498main () 10499{ 10500 10501 ; 10502 return 0; 10503} 10504_ACEOF 10505if ac_fn_c_try_link "$LINENO"; then : 10506 eval $cacheid=yes 10507else 10508 eval $cacheid=no 10509fi 10510rm -f core conftest.err conftest.$ac_objext \ 10511 conftest$ac_exeext conftest.$ac_ext 10512fi 10513 10514 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516 10517 eval supported=\$$cacheid 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10519$as_echo "$supported" >&6; } 10520 if test "$supported" = "yes" ; then 10521 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10522 found="yes" 10523 fi 10524 fi 10525 10526 10527 10528if test "x$STRICT_COMPILE" = "xyes"; then 10529 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10530 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10531fi 10532 10533 10534 10535 10536 10537 10538cat >>confdefs.h <<_ACEOF 10539#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10540_ACEOF 10541 10542 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10543 if test "x$PVM" = "x"; then 10544 PVM="0" 10545 fi 10546 10547cat >>confdefs.h <<_ACEOF 10548#define PACKAGE_VERSION_MINOR $PVM 10549_ACEOF 10550 10551 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10552 if test "x$PVP" = "x"; then 10553 PVP="0" 10554 fi 10555 10556cat >>confdefs.h <<_ACEOF 10557#define PACKAGE_VERSION_PATCHLEVEL $PVP 10558_ACEOF 10559 10560 10561 10562CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10563mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10564|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10565echo 'git directory not found: installing possibly empty changelog.' >&2)" 10566 10567 10568 10569 10570macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10571INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10572mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10573|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10574echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10575 10576 10577 10578 10579 10580 10581if test x$APP_MAN_SUFFIX = x ; then 10582 APP_MAN_SUFFIX=1 10583fi 10584if test x$APP_MAN_DIR = x ; then 10585 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10586fi 10587 10588if test x$LIB_MAN_SUFFIX = x ; then 10589 LIB_MAN_SUFFIX=3 10590fi 10591if test x$LIB_MAN_DIR = x ; then 10592 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10593fi 10594 10595if test x$FILE_MAN_SUFFIX = x ; then 10596 case $host_os in 10597 solaris*) FILE_MAN_SUFFIX=4 ;; 10598 *) FILE_MAN_SUFFIX=5 ;; 10599 esac 10600fi 10601if test x$FILE_MAN_DIR = x ; then 10602 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10603fi 10604 10605if test x$MISC_MAN_SUFFIX = x ; then 10606 case $host_os in 10607 solaris*) MISC_MAN_SUFFIX=5 ;; 10608 *) MISC_MAN_SUFFIX=7 ;; 10609 esac 10610fi 10611if test x$MISC_MAN_DIR = x ; then 10612 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10613fi 10614 10615if test x$DRIVER_MAN_SUFFIX = x ; then 10616 case $host_os in 10617 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10618 *) DRIVER_MAN_SUFFIX=4 ;; 10619 esac 10620fi 10621if test x$DRIVER_MAN_DIR = x ; then 10622 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10623fi 10624 10625if test x$ADMIN_MAN_SUFFIX = x ; then 10626 case $host_os in 10627 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10628 *) ADMIN_MAN_SUFFIX=8 ;; 10629 esac 10630fi 10631if test x$ADMIN_MAN_DIR = x ; then 10632 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10633fi 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649XORG_MAN_PAGE="X Version 11" 10650 10651MAN_SUBSTS="\ 10652 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10653 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10654 -e 's|__xservername__|Xorg|g' \ 10655 -e 's|__xconfigfile__|xorg.conf|g' \ 10656 -e 's|__projectroot__|\$(prefix)|g' \ 10657 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10658 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10659 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10660 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10661 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10662 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10663 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10664 10665 10666 10667# Check whether --enable-silent-rules was given. 10668if test "${enable_silent_rules+set}" = set; then : 10669 enableval=$enable_silent_rules; 10670fi 10671 10672case $enable_silent_rules in # ((( 10673 yes) AM_DEFAULT_VERBOSITY=0;; 10674 no) AM_DEFAULT_VERBOSITY=1;; 10675 *) AM_DEFAULT_VERBOSITY=0;; 10676esac 10677am_make=${MAKE-make} 10678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10679$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10680if ${am_cv_make_support_nested_variables+:} false; then : 10681 $as_echo_n "(cached) " >&6 10682else 10683 if $as_echo 'TRUE=$(BAR$(V)) 10684BAR0=false 10685BAR1=true 10686V=1 10687am__doit: 10688 @$(TRUE) 10689.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10690 am_cv_make_support_nested_variables=yes 10691else 10692 am_cv_make_support_nested_variables=no 10693fi 10694fi 10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10696$as_echo "$am_cv_make_support_nested_variables" >&6; } 10697if test $am_cv_make_support_nested_variables = yes; then 10698 AM_V='$(V)' 10699 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10700else 10701 AM_V=$AM_DEFAULT_VERBOSITY 10702 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10703fi 10704AM_BACKSLASH='\' 10705 10706 10707 10708# Checks for pkg-config packages 10709 10710pkg_failed=no 10711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPYINFO" >&5 10712$as_echo_n "checking for XDPYINFO... " >&6; } 10713 10714if test -n "$XDPYINFO_CFLAGS"; then 10715 pkg_cv_XDPYINFO_CFLAGS="$XDPYINFO_CFLAGS" 10716 elif test -n "$PKG_CONFIG"; then 10717 if test -n "$PKG_CONFIG" && \ 10718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5 10719 ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5 10720 ac_status=$? 10721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10722 test $ac_status = 0; }; then 10723 pkg_cv_XDPYINFO_CFLAGS=`$PKG_CONFIG --cflags "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null` 10724else 10725 pkg_failed=yes 10726fi 10727 else 10728 pkg_failed=untried 10729fi 10730if test -n "$XDPYINFO_LIBS"; then 10731 pkg_cv_XDPYINFO_LIBS="$XDPYINFO_LIBS" 10732 elif test -n "$PKG_CONFIG"; then 10733 if test -n "$PKG_CONFIG" && \ 10734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext x11 xtst x11-xcb xcb xproto >= 7.0.22\""; } >&5 10735 ($PKG_CONFIG --exists --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22") 2>&5 10736 ac_status=$? 10737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10738 test $ac_status = 0; }; then 10739 pkg_cv_XDPYINFO_LIBS=`$PKG_CONFIG --libs "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>/dev/null` 10740else 10741 pkg_failed=yes 10742fi 10743 else 10744 pkg_failed=untried 10745fi 10746 10747 10748 10749if test $pkg_failed = yes; then 10750 10751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10752 _pkg_short_errors_supported=yes 10753else 10754 _pkg_short_errors_supported=no 10755fi 10756 if test $_pkg_short_errors_supported = yes; then 10757 XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1` 10758 else 10759 XDPYINFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext x11 xtst x11-xcb xcb xproto >= 7.0.22" 2>&1` 10760 fi 10761 # Put the nasty error message in config.log where it belongs 10762 echo "$XDPYINFO_PKG_ERRORS" >&5 10763 10764 as_fn_error $? "Package requirements (xext x11 xtst x11-xcb xcb xproto >= 7.0.22) were not met: 10765 10766$XDPYINFO_PKG_ERRORS 10767 10768Consider adjusting the PKG_CONFIG_PATH environment variable if you 10769installed software in a non-standard prefix. 10770 10771Alternatively, you may set the environment variables XDPYINFO_CFLAGS 10772and XDPYINFO_LIBS to avoid the need to call pkg-config. 10773See the pkg-config man page for more details. 10774" "$LINENO" 5 10775elif test $pkg_failed = untried; then 10776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10778as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10779is in your PATH or set the PKG_CONFIG environment variable to the full 10780path to pkg-config. 10781 10782Alternatively, you may set the environment variables XDPYINFO_CFLAGS 10783and XDPYINFO_LIBS to avoid the need to call pkg-config. 10784See the pkg-config man page for more details. 10785 10786To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10787See \`config.log' for more details" "$LINENO" 5; } 10788else 10789 XDPYINFO_CFLAGS=$pkg_cv_XDPYINFO_CFLAGS 10790 XDPYINFO_LIBS=$pkg_cv_XDPYINFO_LIBS 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10792$as_echo "yes" >&6; } 10793 : 10794fi 10795 10796# This is used below to allow <X11/Xlib.h> to be found 10797 10798pkg_failed=no 10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_X11" >&5 10800$as_echo_n "checking for DPY_X11... " >&6; } 10801 10802if test -n "$DPY_X11_CFLAGS"; then 10803 pkg_cv_DPY_X11_CFLAGS="$DPY_X11_CFLAGS" 10804 elif test -n "$PKG_CONFIG"; then 10805 if test -n "$PKG_CONFIG" && \ 10806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10807 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10808 ac_status=$? 10809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10810 test $ac_status = 0; }; then 10811 pkg_cv_DPY_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 10812else 10813 pkg_failed=yes 10814fi 10815 else 10816 pkg_failed=untried 10817fi 10818if test -n "$DPY_X11_LIBS"; then 10819 pkg_cv_DPY_X11_LIBS="$DPY_X11_LIBS" 10820 elif test -n "$PKG_CONFIG"; then 10821 if test -n "$PKG_CONFIG" && \ 10822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10823 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10824 ac_status=$? 10825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10826 test $ac_status = 0; }; then 10827 pkg_cv_DPY_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 10828else 10829 pkg_failed=yes 10830fi 10831 else 10832 pkg_failed=untried 10833fi 10834 10835 10836 10837if test $pkg_failed = yes; then 10838 10839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10840 _pkg_short_errors_supported=yes 10841else 10842 _pkg_short_errors_supported=no 10843fi 10844 if test $_pkg_short_errors_supported = yes; then 10845 DPY_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 10846 else 10847 DPY_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 10848 fi 10849 # Put the nasty error message in config.log where it belongs 10850 echo "$DPY_X11_PKG_ERRORS" >&5 10851 10852 as_fn_error $? "Package requirements (x11) were not met: 10853 10854$DPY_X11_PKG_ERRORS 10855 10856Consider adjusting the PKG_CONFIG_PATH environment variable if you 10857installed software in a non-standard prefix. 10858 10859Alternatively, you may set the environment variables DPY_X11_CFLAGS 10860and DPY_X11_LIBS to avoid the need to call pkg-config. 10861See the pkg-config man page for more details. 10862" "$LINENO" 5 10863elif test $pkg_failed = untried; then 10864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10866as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10867is in your PATH or set the PKG_CONFIG environment variable to the full 10868path to pkg-config. 10869 10870Alternatively, you may set the environment variables DPY_X11_CFLAGS 10871and DPY_X11_LIBS to avoid the need to call pkg-config. 10872See the pkg-config man page for more details. 10873 10874To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10875See \`config.log' for more details" "$LINENO" 5; } 10876else 10877 DPY_X11_CFLAGS=$pkg_cv_DPY_X11_CFLAGS 10878 DPY_X11_LIBS=$pkg_cv_DPY_X11_LIBS 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10880$as_echo "yes" >&6; } 10881 : 10882fi 10883 10884 10885pkg_failed=no 10886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XEXT" >&5 10887$as_echo_n "checking for DPY_XEXT... " >&6; } 10888 10889if test -n "$DPY_XEXT_CFLAGS"; then 10890 pkg_cv_DPY_XEXT_CFLAGS="$DPY_XEXT_CFLAGS" 10891 elif test -n "$PKG_CONFIG"; then 10892 if test -n "$PKG_CONFIG" && \ 10893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 10894 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 10895 ac_status=$? 10896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10897 test $ac_status = 0; }; then 10898 pkg_cv_DPY_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null` 10899else 10900 pkg_failed=yes 10901fi 10902 else 10903 pkg_failed=untried 10904fi 10905if test -n "$DPY_XEXT_LIBS"; then 10906 pkg_cv_DPY_XEXT_LIBS="$DPY_XEXT_LIBS" 10907 elif test -n "$PKG_CONFIG"; then 10908 if test -n "$PKG_CONFIG" && \ 10909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5 10910 ($PKG_CONFIG --exists --print-errors "xext") 2>&5 10911 ac_status=$? 10912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10913 test $ac_status = 0; }; then 10914 pkg_cv_DPY_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null` 10915else 10916 pkg_failed=yes 10917fi 10918 else 10919 pkg_failed=untried 10920fi 10921 10922 10923 10924if test $pkg_failed = yes; then 10925 10926if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10927 _pkg_short_errors_supported=yes 10928else 10929 _pkg_short_errors_supported=no 10930fi 10931 if test $_pkg_short_errors_supported = yes; then 10932 DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1` 10933 else 10934 DPY_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1` 10935 fi 10936 # Put the nasty error message in config.log where it belongs 10937 echo "$DPY_XEXT_PKG_ERRORS" >&5 10938 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10940$as_echo "no" >&6; } 10941 echo "not found" 10942elif test $pkg_failed = untried; then 10943 echo "not found" 10944else 10945 DPY_XEXT_CFLAGS=$pkg_cv_DPY_XEXT_CFLAGS 10946 DPY_XEXT_LIBS=$pkg_cv_DPY_XEXT_LIBS 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10948$as_echo "yes" >&6; } 10949 SAVE_CPPFLAGS="$CPPFLAGS" 10950 CPPFLAGS="$CPPFLAGS $DPY_XEXT_CFLAGS $DPY_X11_CFLAGS" 10951 for ac_header in X11/extensions/multibuf.h X11/extensions/XShm.h 10952do : 10953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10954ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 10955" 10956if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10957 cat >>confdefs.h <<_ACEOF 10958#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10959_ACEOF 10960 10961fi 10962 10963done 10964 10965 CPPFLAGS="$SAVE_CPPFLAGS" 10966fi 10967 10968 10969pkg_failed=no 10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XKB" >&5 10971$as_echo_n "checking for DPY_XKB... " >&6; } 10972 10973if test -n "$DPY_XKB_CFLAGS"; then 10974 pkg_cv_DPY_XKB_CFLAGS="$DPY_XKB_CFLAGS" 10975 elif test -n "$PKG_CONFIG"; then 10976 if test -n "$PKG_CONFIG" && \ 10977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10978 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10979 ac_status=$? 10980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10981 test $ac_status = 0; }; then 10982 pkg_cv_DPY_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 10983else 10984 pkg_failed=yes 10985fi 10986 else 10987 pkg_failed=untried 10988fi 10989if test -n "$DPY_XKB_LIBS"; then 10990 pkg_cv_DPY_XKB_LIBS="$DPY_XKB_LIBS" 10991 elif test -n "$PKG_CONFIG"; then 10992 if test -n "$PKG_CONFIG" && \ 10993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 10994 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 10995 ac_status=$? 10996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10997 test $ac_status = 0; }; then 10998 pkg_cv_DPY_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 10999else 11000 pkg_failed=yes 11001fi 11002 else 11003 pkg_failed=untried 11004fi 11005 11006 11007 11008if test $pkg_failed = yes; then 11009 11010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11011 _pkg_short_errors_supported=yes 11012else 11013 _pkg_short_errors_supported=no 11014fi 11015 if test $_pkg_short_errors_supported = yes; then 11016 DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1` 11017 else 11018 DPY_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1` 11019 fi 11020 # Put the nasty error message in config.log where it belongs 11021 echo "$DPY_XKB_PKG_ERRORS" >&5 11022 11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11024$as_echo "no" >&6; } 11025 echo "not found" 11026elif test $pkg_failed = untried; then 11027 echo "not found" 11028else 11029 DPY_XKB_CFLAGS=$pkg_cv_DPY_XKB_CFLAGS 11030 DPY_XKB_LIBS=$pkg_cv_DPY_XKB_LIBS 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11032$as_echo "yes" >&6; } 11033 SAVE_CPPFLAGS="$CPPFLAGS" 11034 CPPFLAGS="$CPPFLAGS $DPY_XKB_CFLAGS $DPY_X11_CFLAGS" 11035 for ac_header in X11/extensions/XKB.h X11/XKBlib.h 11036do : 11037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11038ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 11039" 11040if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11041 cat >>confdefs.h <<_ACEOF 11042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11043_ACEOF 11044 11045fi 11046 11047done 11048 11049 CPPFLAGS="$SAVE_CPPFLAGS" 11050fi 11051 11052 11053pkg_failed=no 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86VIDMODE" >&5 11055$as_echo_n "checking for DPY_XF86VIDMODE... " >&6; } 11056 11057if test -n "$DPY_XF86VIDMODE_CFLAGS"; then 11058 pkg_cv_DPY_XF86VIDMODE_CFLAGS="$DPY_XF86VIDMODE_CFLAGS" 11059 elif test -n "$PKG_CONFIG"; then 11060 if test -n "$PKG_CONFIG" && \ 11061 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5 11062 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5 11063 ac_status=$? 11064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11065 test $ac_status = 0; }; then 11066 pkg_cv_DPY_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null` 11067else 11068 pkg_failed=yes 11069fi 11070 else 11071 pkg_failed=untried 11072fi 11073if test -n "$DPY_XF86VIDMODE_LIBS"; then 11074 pkg_cv_DPY_XF86VIDMODE_LIBS="$DPY_XF86VIDMODE_LIBS" 11075 elif test -n "$PKG_CONFIG"; then 11076 if test -n "$PKG_CONFIG" && \ 11077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5 11078 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5 11079 ac_status=$? 11080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11081 test $ac_status = 0; }; then 11082 pkg_cv_DPY_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null` 11083else 11084 pkg_failed=yes 11085fi 11086 else 11087 pkg_failed=untried 11088fi 11089 11090 11091 11092if test $pkg_failed = yes; then 11093 11094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11095 _pkg_short_errors_supported=yes 11096else 11097 _pkg_short_errors_supported=no 11098fi 11099 if test $_pkg_short_errors_supported = yes; then 11100 DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86vm" 2>&1` 11101 else 11102 DPY_XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86vm" 2>&1` 11103 fi 11104 # Put the nasty error message in config.log where it belongs 11105 echo "$DPY_XF86VIDMODE_PKG_ERRORS" >&5 11106 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11108$as_echo "no" >&6; } 11109 echo "not found" 11110elif test $pkg_failed = untried; then 11111 echo "not found" 11112else 11113 DPY_XF86VIDMODE_CFLAGS=$pkg_cv_DPY_XF86VIDMODE_CFLAGS 11114 DPY_XF86VIDMODE_LIBS=$pkg_cv_DPY_XF86VIDMODE_LIBS 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11116$as_echo "yes" >&6; } 11117 SAVE_CPPFLAGS="$CPPFLAGS" 11118 CPPFLAGS="$CPPFLAGS $DPY_XF86VIDMODE_CFLAGS $DPY_X11_CFLAGS" 11119 for ac_header in X11/extensions/xf86vmode.h X11/extensions/xf86vmstr.h X11/extensions/xf86vmproto.h 11120do : 11121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11122ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 11123" 11124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11125 cat >>confdefs.h <<_ACEOF 11126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11127_ACEOF 11128 11129fi 11130 11131done 11132 11133 CPPFLAGS="$SAVE_CPPFLAGS" 11134fi 11135 11136 11137# Check whether --with-dga was given. 11138if test "${with_dga+set}" = set; then : 11139 withval=$with_dga; USE_DGA="$withval" 11140else 11141 USE_DGA="yes" 11142fi 11143 11144if test "x$USE_DGA" != "xno" ; then 11145 11146pkg_failed=no 11147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86DGA" >&5 11148$as_echo_n "checking for DPY_XF86DGA... " >&6; } 11149 11150if test -n "$DPY_XF86DGA_CFLAGS"; then 11151 pkg_cv_DPY_XF86DGA_CFLAGS="$DPY_XF86DGA_CFLAGS" 11152 elif test -n "$PKG_CONFIG"; then 11153 if test -n "$PKG_CONFIG" && \ 11154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5 11155 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5 11156 ac_status=$? 11157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11158 test $ac_status = 0; }; then 11159 pkg_cv_DPY_XF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xxf86dga" 2>/dev/null` 11160else 11161 pkg_failed=yes 11162fi 11163 else 11164 pkg_failed=untried 11165fi 11166if test -n "$DPY_XF86DGA_LIBS"; then 11167 pkg_cv_DPY_XF86DGA_LIBS="$DPY_XF86DGA_LIBS" 11168 elif test -n "$PKG_CONFIG"; then 11169 if test -n "$PKG_CONFIG" && \ 11170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86dga\""; } >&5 11171 ($PKG_CONFIG --exists --print-errors "xxf86dga") 2>&5 11172 ac_status=$? 11173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11174 test $ac_status = 0; }; then 11175 pkg_cv_DPY_XF86DGA_LIBS=`$PKG_CONFIG --libs "xxf86dga" 2>/dev/null` 11176else 11177 pkg_failed=yes 11178fi 11179 else 11180 pkg_failed=untried 11181fi 11182 11183 11184 11185if test $pkg_failed = yes; then 11186 11187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11188 _pkg_short_errors_supported=yes 11189else 11190 _pkg_short_errors_supported=no 11191fi 11192 if test $_pkg_short_errors_supported = yes; then 11193 DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86dga" 2>&1` 11194 else 11195 DPY_XF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86dga" 2>&1` 11196 fi 11197 # Put the nasty error message in config.log where it belongs 11198 echo "$DPY_XF86DGA_PKG_ERRORS" >&5 11199 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11201$as_echo "no" >&6; } 11202 echo "not found" 11203elif test $pkg_failed = untried; then 11204 echo "not found" 11205else 11206 DPY_XF86DGA_CFLAGS=$pkg_cv_DPY_XF86DGA_CFLAGS 11207 DPY_XF86DGA_LIBS=$pkg_cv_DPY_XF86DGA_LIBS 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11209$as_echo "yes" >&6; } 11210 SAVE_CPPFLAGS="$CPPFLAGS" 11211 CPPFLAGS="$CPPFLAGS $DPY_XF86DGA_CFLAGS $DPY_X11_CFLAGS" 11212 for ac_header in X11/extensions/Xxf86dga.h X11/extensions/xf86dgaproto.h X11/extensions/xf86dga.h X11/extensions/xf86dgastr.h 11213do : 11214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11215ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 11216#include <X11/Xproto.h> 11217" 11218if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11219 cat >>confdefs.h <<_ACEOF 11220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11221_ACEOF 11222 11223fi 11224 11225done 11226 11227 CPPFLAGS="$SAVE_CPPFLAGS" 11228fi 11229else 11230 echo "without dga" 11231fi 11232 11233 11234 11235# Check whether --with-xf86misc was given. 11236if test "${with_xf86misc+set}" = set; then : 11237 withval=$with_xf86misc; USE_XF86MISC="$withval" 11238else 11239 USE_XF86MISC="yes" 11240fi 11241 11242if test "x$USE_XF86MISC" != "xno" ; then 11243 11244pkg_failed=no 11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XF86MISC" >&5 11246$as_echo_n "checking for DPY_XF86MISC... " >&6; } 11247 11248if test -n "$DPY_XF86MISC_CFLAGS"; then 11249 pkg_cv_DPY_XF86MISC_CFLAGS="$DPY_XF86MISC_CFLAGS" 11250 elif test -n "$PKG_CONFIG"; then 11251 if test -n "$PKG_CONFIG" && \ 11252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11253 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11254 ac_status=$? 11255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11256 test $ac_status = 0; }; then 11257 pkg_cv_DPY_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null` 11258else 11259 pkg_failed=yes 11260fi 11261 else 11262 pkg_failed=untried 11263fi 11264if test -n "$DPY_XF86MISC_LIBS"; then 11265 pkg_cv_DPY_XF86MISC_LIBS="$DPY_XF86MISC_LIBS" 11266 elif test -n "$PKG_CONFIG"; then 11267 if test -n "$PKG_CONFIG" && \ 11268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5 11269 ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5 11270 ac_status=$? 11271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11272 test $ac_status = 0; }; then 11273 pkg_cv_DPY_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null` 11274else 11275 pkg_failed=yes 11276fi 11277 else 11278 pkg_failed=untried 11279fi 11280 11281 11282 11283if test $pkg_failed = yes; then 11284 11285if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11286 _pkg_short_errors_supported=yes 11287else 11288 _pkg_short_errors_supported=no 11289fi 11290 if test $_pkg_short_errors_supported = yes; then 11291 DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1` 11292 else 11293 DPY_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1` 11294 fi 11295 # Put the nasty error message in config.log where it belongs 11296 echo "$DPY_XF86MISC_PKG_ERRORS" >&5 11297 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11299$as_echo "no" >&6; } 11300 echo "not found" 11301elif test $pkg_failed = untried; then 11302 echo "not found" 11303else 11304 DPY_XF86MISC_CFLAGS=$pkg_cv_DPY_XF86MISC_CFLAGS 11305 DPY_XF86MISC_LIBS=$pkg_cv_DPY_XF86MISC_LIBS 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11307$as_echo "yes" >&6; } 11308 SAVE_CPPFLAGS="$CPPFLAGS" 11309 CPPFLAGS="$CPPFLAGS $DPY_XF86MISC_CFLAGS $DPY_X11_CFLAGS" 11310 for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h 11311do : 11312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11313ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h> 11314#include <X11/Xproto.h> 11315" 11316if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11317 cat >>confdefs.h <<_ACEOF 11318#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11319_ACEOF 11320 11321fi 11322 11323done 11324 11325 CPPFLAGS="$SAVE_CPPFLAGS" 11326fi 11327else 11328 echo "without xf86misc" 11329fi 11330 11331 11332pkg_failed=no 11333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINPUT" >&5 11334$as_echo_n "checking for DPY_XINPUT... " >&6; } 11335 11336if test -n "$DPY_XINPUT_CFLAGS"; then 11337 pkg_cv_DPY_XINPUT_CFLAGS="$DPY_XINPUT_CFLAGS" 11338 elif test -n "$PKG_CONFIG"; then 11339 if test -n "$PKG_CONFIG" && \ 11340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5 11341 ($PKG_CONFIG --exists --print-errors "xi") 2>&5 11342 ac_status=$? 11343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11344 test $ac_status = 0; }; then 11345 pkg_cv_DPY_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "xi" 2>/dev/null` 11346else 11347 pkg_failed=yes 11348fi 11349 else 11350 pkg_failed=untried 11351fi 11352if test -n "$DPY_XINPUT_LIBS"; then 11353 pkg_cv_DPY_XINPUT_LIBS="$DPY_XINPUT_LIBS" 11354 elif test -n "$PKG_CONFIG"; then 11355 if test -n "$PKG_CONFIG" && \ 11356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi\""; } >&5 11357 ($PKG_CONFIG --exists --print-errors "xi") 2>&5 11358 ac_status=$? 11359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11360 test $ac_status = 0; }; then 11361 pkg_cv_DPY_XINPUT_LIBS=`$PKG_CONFIG --libs "xi" 2>/dev/null` 11362else 11363 pkg_failed=yes 11364fi 11365 else 11366 pkg_failed=untried 11367fi 11368 11369 11370 11371if test $pkg_failed = yes; then 11372 11373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11374 _pkg_short_errors_supported=yes 11375else 11376 _pkg_short_errors_supported=no 11377fi 11378 if test $_pkg_short_errors_supported = yes; then 11379 DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xi" 2>&1` 11380 else 11381 DPY_XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xi" 2>&1` 11382 fi 11383 # Put the nasty error message in config.log where it belongs 11384 echo "$DPY_XINPUT_PKG_ERRORS" >&5 11385 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387$as_echo "no" >&6; } 11388 echo "not found" 11389elif test $pkg_failed = untried; then 11390 echo "not found" 11391else 11392 DPY_XINPUT_CFLAGS=$pkg_cv_DPY_XINPUT_CFLAGS 11393 DPY_XINPUT_LIBS=$pkg_cv_DPY_XINPUT_LIBS 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11395$as_echo "yes" >&6; } 11396 SAVE_CPPFLAGS="$CPPFLAGS" 11397 CPPFLAGS="$CPPFLAGS $DPY_XINPUT_CFLAGS $DPY_X11_CFLAGS" 11398 for ac_header in X11/extensions/XInput.h 11399do : 11400 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "#include <X11/Xlib.h> 11401" 11402if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then : 11403 cat >>confdefs.h <<_ACEOF 11404#define HAVE_X11_EXTENSIONS_XINPUT_H 1 11405_ACEOF 11406 11407fi 11408 11409done 11410 11411 CPPFLAGS="$SAVE_CPPFLAGS" 11412fi 11413 11414 11415pkg_failed=no 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XRENDER" >&5 11417$as_echo_n "checking for DPY_XRENDER... " >&6; } 11418 11419if test -n "$DPY_XRENDER_CFLAGS"; then 11420 pkg_cv_DPY_XRENDER_CFLAGS="$DPY_XRENDER_CFLAGS" 11421 elif test -n "$PKG_CONFIG"; then 11422 if test -n "$PKG_CONFIG" && \ 11423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 11424 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 11425 ac_status=$? 11426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11427 test $ac_status = 0; }; then 11428 pkg_cv_DPY_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender" 2>/dev/null` 11429else 11430 pkg_failed=yes 11431fi 11432 else 11433 pkg_failed=untried 11434fi 11435if test -n "$DPY_XRENDER_LIBS"; then 11436 pkg_cv_DPY_XRENDER_LIBS="$DPY_XRENDER_LIBS" 11437 elif test -n "$PKG_CONFIG"; then 11438 if test -n "$PKG_CONFIG" && \ 11439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender\""; } >&5 11440 ($PKG_CONFIG --exists --print-errors "xrender") 2>&5 11441 ac_status=$? 11442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11443 test $ac_status = 0; }; then 11444 pkg_cv_DPY_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender" 2>/dev/null` 11445else 11446 pkg_failed=yes 11447fi 11448 else 11449 pkg_failed=untried 11450fi 11451 11452 11453 11454if test $pkg_failed = yes; then 11455 11456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11457 _pkg_short_errors_supported=yes 11458else 11459 _pkg_short_errors_supported=no 11460fi 11461 if test $_pkg_short_errors_supported = yes; then 11462 DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender" 2>&1` 11463 else 11464 DPY_XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender" 2>&1` 11465 fi 11466 # Put the nasty error message in config.log where it belongs 11467 echo "$DPY_XRENDER_PKG_ERRORS" >&5 11468 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11470$as_echo "no" >&6; } 11471 echo "not found" 11472elif test $pkg_failed = untried; then 11473 echo "not found" 11474else 11475 DPY_XRENDER_CFLAGS=$pkg_cv_DPY_XRENDER_CFLAGS 11476 DPY_XRENDER_LIBS=$pkg_cv_DPY_XRENDER_LIBS 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11478$as_echo "yes" >&6; } 11479 SAVE_CPPFLAGS="$CPPFLAGS" 11480 CPPFLAGS="$CPPFLAGS $DPY_XRENDER_CFLAGS $DPY_X11_CFLAGS" 11481 for ac_header in X11/extensions/Xrender.h 11482do : 11483 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "#include <X11/Xlib.h> 11484" 11485if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then : 11486 cat >>confdefs.h <<_ACEOF 11487#define HAVE_X11_EXTENSIONS_XRENDER_H 1 11488_ACEOF 11489 11490fi 11491 11492done 11493 11494 CPPFLAGS="$SAVE_CPPFLAGS" 11495fi 11496 11497 11498pkg_failed=no 11499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XCOMPOSITE" >&5 11500$as_echo_n "checking for DPY_XCOMPOSITE... " >&6; } 11501 11502if test -n "$DPY_XCOMPOSITE_CFLAGS"; then 11503 pkg_cv_DPY_XCOMPOSITE_CFLAGS="$DPY_XCOMPOSITE_CFLAGS" 11504 elif test -n "$PKG_CONFIG"; then 11505 if test -n "$PKG_CONFIG" && \ 11506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5 11507 ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5 11508 ac_status=$? 11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11510 test $ac_status = 0; }; then 11511 pkg_cv_DPY_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "xcomposite" 2>/dev/null` 11512else 11513 pkg_failed=yes 11514fi 11515 else 11516 pkg_failed=untried 11517fi 11518if test -n "$DPY_XCOMPOSITE_LIBS"; then 11519 pkg_cv_DPY_XCOMPOSITE_LIBS="$DPY_XCOMPOSITE_LIBS" 11520 elif test -n "$PKG_CONFIG"; then 11521 if test -n "$PKG_CONFIG" && \ 11522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcomposite\""; } >&5 11523 ($PKG_CONFIG --exists --print-errors "xcomposite") 2>&5 11524 ac_status=$? 11525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11526 test $ac_status = 0; }; then 11527 pkg_cv_DPY_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "xcomposite" 2>/dev/null` 11528else 11529 pkg_failed=yes 11530fi 11531 else 11532 pkg_failed=untried 11533fi 11534 11535 11536 11537if test $pkg_failed = yes; then 11538 11539if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11540 _pkg_short_errors_supported=yes 11541else 11542 _pkg_short_errors_supported=no 11543fi 11544 if test $_pkg_short_errors_supported = yes; then 11545 DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcomposite" 2>&1` 11546 else 11547 DPY_XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcomposite" 2>&1` 11548 fi 11549 # Put the nasty error message in config.log where it belongs 11550 echo "$DPY_XCOMPOSITE_PKG_ERRORS" >&5 11551 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11553$as_echo "no" >&6; } 11554 echo "not found" 11555elif test $pkg_failed = untried; then 11556 echo "not found" 11557else 11558 DPY_XCOMPOSITE_CFLAGS=$pkg_cv_DPY_XCOMPOSITE_CFLAGS 11559 DPY_XCOMPOSITE_LIBS=$pkg_cv_DPY_XCOMPOSITE_LIBS 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11561$as_echo "yes" >&6; } 11562 SAVE_CPPFLAGS="$CPPFLAGS" 11563 CPPFLAGS="$CPPFLAGS $DPY_XCOMPOSITE_CFLAGS $DPY_X11_CFLAGS" 11564 for ac_header in X11/extensions/Xcomposite.h 11565do : 11566 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "#include <X11/Xlib.h> 11567" 11568if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes; then : 11569 cat >>confdefs.h <<_ACEOF 11570#define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1 11571_ACEOF 11572 11573fi 11574 11575done 11576 11577 CPPFLAGS="$SAVE_CPPFLAGS" 11578fi 11579 11580 11581# Check whether --with-xinerama was given. 11582if test "${with_xinerama+set}" = set; then : 11583 withval=$with_xinerama; USE_XINERAMA="$withval" 11584else 11585 USE_XINERAMA="yes" 11586fi 11587 11588if test "x$USE_XINERAMA" != "xno" ; then 11589 11590pkg_failed=no 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XINERAMA" >&5 11592$as_echo_n "checking for DPY_XINERAMA... " >&6; } 11593 11594if test -n "$DPY_XINERAMA_CFLAGS"; then 11595 pkg_cv_DPY_XINERAMA_CFLAGS="$DPY_XINERAMA_CFLAGS" 11596 elif test -n "$PKG_CONFIG"; then 11597 if test -n "$PKG_CONFIG" && \ 11598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 11599 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 11600 ac_status=$? 11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11602 test $ac_status = 0; }; then 11603 pkg_cv_DPY_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "xinerama" 2>/dev/null` 11604else 11605 pkg_failed=yes 11606fi 11607 else 11608 pkg_failed=untried 11609fi 11610if test -n "$DPY_XINERAMA_LIBS"; then 11611 pkg_cv_DPY_XINERAMA_LIBS="$DPY_XINERAMA_LIBS" 11612 elif test -n "$PKG_CONFIG"; then 11613 if test -n "$PKG_CONFIG" && \ 11614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xinerama\""; } >&5 11615 ($PKG_CONFIG --exists --print-errors "xinerama") 2>&5 11616 ac_status=$? 11617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11618 test $ac_status = 0; }; then 11619 pkg_cv_DPY_XINERAMA_LIBS=`$PKG_CONFIG --libs "xinerama" 2>/dev/null` 11620else 11621 pkg_failed=yes 11622fi 11623 else 11624 pkg_failed=untried 11625fi 11626 11627 11628 11629if test $pkg_failed = yes; then 11630 11631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11632 _pkg_short_errors_supported=yes 11633else 11634 _pkg_short_errors_supported=no 11635fi 11636 if test $_pkg_short_errors_supported = yes; then 11637 DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xinerama" 2>&1` 11638 else 11639 DPY_XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xinerama" 2>&1` 11640 fi 11641 # Put the nasty error message in config.log where it belongs 11642 echo "$DPY_XINERAMA_PKG_ERRORS" >&5 11643 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11645$as_echo "no" >&6; } 11646 echo "not found" 11647elif test $pkg_failed = untried; then 11648 echo "not found" 11649else 11650 DPY_XINERAMA_CFLAGS=$pkg_cv_DPY_XINERAMA_CFLAGS 11651 DPY_XINERAMA_LIBS=$pkg_cv_DPY_XINERAMA_LIBS 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11653$as_echo "yes" >&6; } 11654 SAVE_CPPFLAGS="$CPPFLAGS" 11655 CPPFLAGS="$CPPFLAGS $DPY_XINERAMA_CFLAGS $DPY_X11_CFLAGS" 11656 for ac_header in X11/extensions/Xinerama.h 11657do : 11658 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h> 11659" 11660if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then : 11661 cat >>confdefs.h <<_ACEOF 11662#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 11663_ACEOF 11664 11665fi 11666 11667done 11668 11669 CPPFLAGS="$SAVE_CPPFLAGS" 11670fi 11671else 11672 echo "without xinerama" 11673fi 11674 11675 11676# Check whether --with-dmx was given. 11677if test "${with_dmx+set}" = set; then : 11678 withval=$with_dmx; USE_DMX="$withval" 11679else 11680 USE_DMX="yes" 11681fi 11682 11683if test "x$USE_DMX" != "xno" ; then 11684 11685pkg_failed=no 11686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_DMX" >&5 11687$as_echo_n "checking for DPY_DMX... " >&6; } 11688 11689if test -n "$DPY_DMX_CFLAGS"; then 11690 pkg_cv_DPY_DMX_CFLAGS="$DPY_DMX_CFLAGS" 11691 elif test -n "$PKG_CONFIG"; then 11692 if test -n "$PKG_CONFIG" && \ 11693 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5 11694 ($PKG_CONFIG --exists --print-errors "dmx") 2>&5 11695 ac_status=$? 11696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11697 test $ac_status = 0; }; then 11698 pkg_cv_DPY_DMX_CFLAGS=`$PKG_CONFIG --cflags "dmx" 2>/dev/null` 11699else 11700 pkg_failed=yes 11701fi 11702 else 11703 pkg_failed=untried 11704fi 11705if test -n "$DPY_DMX_LIBS"; then 11706 pkg_cv_DPY_DMX_LIBS="$DPY_DMX_LIBS" 11707 elif test -n "$PKG_CONFIG"; then 11708 if test -n "$PKG_CONFIG" && \ 11709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dmx\""; } >&5 11710 ($PKG_CONFIG --exists --print-errors "dmx") 2>&5 11711 ac_status=$? 11712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11713 test $ac_status = 0; }; then 11714 pkg_cv_DPY_DMX_LIBS=`$PKG_CONFIG --libs "dmx" 2>/dev/null` 11715else 11716 pkg_failed=yes 11717fi 11718 else 11719 pkg_failed=untried 11720fi 11721 11722 11723 11724if test $pkg_failed = yes; then 11725 11726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11727 _pkg_short_errors_supported=yes 11728else 11729 _pkg_short_errors_supported=no 11730fi 11731 if test $_pkg_short_errors_supported = yes; then 11732 DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dmx" 2>&1` 11733 else 11734 DPY_DMX_PKG_ERRORS=`$PKG_CONFIG --print-errors "dmx" 2>&1` 11735 fi 11736 # Put the nasty error message in config.log where it belongs 11737 echo "$DPY_DMX_PKG_ERRORS" >&5 11738 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11740$as_echo "no" >&6; } 11741 echo "not found" 11742elif test $pkg_failed = untried; then 11743 echo "not found" 11744else 11745 DPY_DMX_CFLAGS=$pkg_cv_DPY_DMX_CFLAGS 11746 DPY_DMX_LIBS=$pkg_cv_DPY_DMX_LIBS 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11748$as_echo "yes" >&6; } 11749 SAVE_CPPFLAGS="$CPPFLAGS" 11750 CPPFLAGS="$CPPFLAGS $DPY_DMX_CFLAGS $DPY_X11_CFLAGS" 11751 for ac_header in X11/extensions/dmxext.h 11752do : 11753 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/dmxext.h" "ac_cv_header_X11_extensions_dmxext_h" "#include <X11/Xlib.h> 11754" 11755if test "x$ac_cv_header_X11_extensions_dmxext_h" = xyes; then : 11756 cat >>confdefs.h <<_ACEOF 11757#define HAVE_X11_EXTENSIONS_DMXEXT_H 1 11758_ACEOF 11759 11760fi 11761 11762done 11763 11764 CPPFLAGS="$SAVE_CPPFLAGS" 11765fi 11766else 11767 echo "without dmx" 11768fi 11769 11770 11771pkg_failed=no 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPY_XTST" >&5 11773$as_echo_n "checking for DPY_XTST... " >&6; } 11774 11775if test -n "$DPY_XTST_CFLAGS"; then 11776 pkg_cv_DPY_XTST_CFLAGS="$DPY_XTST_CFLAGS" 11777 elif test -n "$PKG_CONFIG"; then 11778 if test -n "$PKG_CONFIG" && \ 11779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5 11780 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5 11781 ac_status=$? 11782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11783 test $ac_status = 0; }; then 11784 pkg_cv_DPY_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst" 2>/dev/null` 11785else 11786 pkg_failed=yes 11787fi 11788 else 11789 pkg_failed=untried 11790fi 11791if test -n "$DPY_XTST_LIBS"; then 11792 pkg_cv_DPY_XTST_LIBS="$DPY_XTST_LIBS" 11793 elif test -n "$PKG_CONFIG"; then 11794 if test -n "$PKG_CONFIG" && \ 11795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst\""; } >&5 11796 ($PKG_CONFIG --exists --print-errors "xtst") 2>&5 11797 ac_status=$? 11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11799 test $ac_status = 0; }; then 11800 pkg_cv_DPY_XTST_LIBS=`$PKG_CONFIG --libs "xtst" 2>/dev/null` 11801else 11802 pkg_failed=yes 11803fi 11804 else 11805 pkg_failed=untried 11806fi 11807 11808 11809 11810if test $pkg_failed = yes; then 11811 11812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11813 _pkg_short_errors_supported=yes 11814else 11815 _pkg_short_errors_supported=no 11816fi 11817 if test $_pkg_short_errors_supported = yes; then 11818 DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xtst" 2>&1` 11819 else 11820 DPY_XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "xtst" 2>&1` 11821 fi 11822 # Put the nasty error message in config.log where it belongs 11823 echo "$DPY_XTST_PKG_ERRORS" >&5 11824 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11826$as_echo "no" >&6; } 11827 echo "not found" 11828elif test $pkg_failed = untried; then 11829 echo "not found" 11830else 11831 DPY_XTST_CFLAGS=$pkg_cv_DPY_XTST_CFLAGS 11832 DPY_XTST_LIBS=$pkg_cv_DPY_XTST_LIBS 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11834$as_echo "yes" >&6; } 11835 SAVE_CPPFLAGS="$CPPFLAGS" 11836 CPPFLAGS="$CPPFLAGS $DPY_XTST_CFLAGS $DPY_X11_CFLAGS" 11837 for ac_header in X11/extensions/record.h 11838do : 11839 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h> 11840" 11841if test "x$ac_cv_header_X11_extensions_record_h" = xyes; then : 11842 cat >>confdefs.h <<_ACEOF 11843#define HAVE_X11_EXTENSIONS_RECORD_H 1 11844_ACEOF 11845 11846fi 11847 11848done 11849 11850 CPPFLAGS="$SAVE_CPPFLAGS" 11851fi 11852 11853 11854 11855 11856 11857 11858# Check whether --with-lint was given. 11859if test "${with_lint+set}" = set; then : 11860 withval=$with_lint; use_lint=$withval 11861else 11862 use_lint=no 11863fi 11864 11865 11866# Obtain platform specific info like program name and options 11867# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11868case $host_os in 11869 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11870 lint_name=splint 11871 lint_options="-badflag" 11872 ;; 11873 *freebsd* | *netbsd*) 11874 lint_name=lint 11875 lint_options="-u -b" 11876 ;; 11877 *solaris*) 11878 lint_name=lint 11879 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11880 ;; 11881esac 11882 11883# Test for the presence of the program (either guessed by the code or spelled out by the user) 11884if test "x$use_lint" = x"yes" ; then 11885 # Extract the first word of "$lint_name", so it can be a program name with args. 11886set dummy $lint_name; ac_word=$2 11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11888$as_echo_n "checking for $ac_word... " >&6; } 11889if ${ac_cv_path_LINT+:} false; then : 11890 $as_echo_n "(cached) " >&6 11891else 11892 case $LINT in 11893 [\\/]* | ?:[\\/]*) 11894 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11895 ;; 11896 *) 11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11898for as_dir in $PATH 11899do 11900 IFS=$as_save_IFS 11901 test -z "$as_dir" && as_dir=. 11902 for ac_exec_ext in '' $ac_executable_extensions; do 11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11904 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11906 break 2 11907 fi 11908done 11909 done 11910IFS=$as_save_IFS 11911 11912 ;; 11913esac 11914fi 11915LINT=$ac_cv_path_LINT 11916if test -n "$LINT"; then 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11918$as_echo "$LINT" >&6; } 11919else 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11921$as_echo "no" >&6; } 11922fi 11923 11924 11925 if test "x$LINT" = "x"; then 11926 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11927 fi 11928elif test "x$use_lint" = x"no" ; then 11929 if test "x$LINT" != "x"; then 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11931$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11932 fi 11933else 11934 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11935fi 11936 11937# User supplied flags override default flags 11938if test "x$LINT_FLAGS" != "x"; then 11939 lint_options=$LINT_FLAGS 11940fi 11941 11942LINT_FLAGS=$lint_options 11943 11944 if test "x$LINT" != x; then 11945 LINT_TRUE= 11946 LINT_FALSE='#' 11947else 11948 LINT_TRUE='#' 11949 LINT_FALSE= 11950fi 11951 11952 11953 11954 11955ac_config_files="$ac_config_files Makefile man/Makefile" 11956 11957cat >confcache <<\_ACEOF 11958# This file is a shell script that caches the results of configure 11959# tests run on this system so they can be shared between configure 11960# scripts and configure runs, see configure's option --config-cache. 11961# It is not useful on other systems. If it contains results you don't 11962# want to keep, you may remove or edit it. 11963# 11964# config.status only pays attention to the cache file if you give it 11965# the --recheck option to rerun configure. 11966# 11967# `ac_cv_env_foo' variables (set or unset) will be overridden when 11968# loading this file, other *unset* `ac_cv_foo' will be assigned the 11969# following values. 11970 11971_ACEOF 11972 11973# The following way of writing the cache mishandles newlines in values, 11974# but we know of no workaround that is simple, portable, and efficient. 11975# So, we kill variables containing newlines. 11976# Ultrix sh set writes to stderr and can't be redirected directly, 11977# and sets the high bit in the cache file unless we assign to the vars. 11978( 11979 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11980 eval ac_val=\$$ac_var 11981 case $ac_val in #( 11982 *${as_nl}*) 11983 case $ac_var in #( 11984 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11985$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11986 esac 11987 case $ac_var in #( 11988 _ | IFS | as_nl) ;; #( 11989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11990 *) { eval $ac_var=; unset $ac_var;} ;; 11991 esac ;; 11992 esac 11993 done 11994 11995 (set) 2>&1 | 11996 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11997 *${as_nl}ac_space=\ *) 11998 # `set' does not quote correctly, so add quotes: double-quote 11999 # substitution turns \\\\ into \\, and sed turns \\ into \. 12000 sed -n \ 12001 "s/'/'\\\\''/g; 12002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12003 ;; #( 12004 *) 12005 # `set' quotes correctly as required by POSIX, so do not add quotes. 12006 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12007 ;; 12008 esac | 12009 sort 12010) | 12011 sed ' 12012 /^ac_cv_env_/b end 12013 t clear 12014 :clear 12015 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12016 t end 12017 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12018 :end' >>confcache 12019if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12020 if test -w "$cache_file"; then 12021 if test "x$cache_file" != "x/dev/null"; then 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12023$as_echo "$as_me: updating cache $cache_file" >&6;} 12024 if test ! -f "$cache_file" || test -h "$cache_file"; then 12025 cat confcache >"$cache_file" 12026 else 12027 case $cache_file in #( 12028 */* | ?:*) 12029 mv -f confcache "$cache_file"$$ && 12030 mv -f "$cache_file"$$ "$cache_file" ;; #( 12031 *) 12032 mv -f confcache "$cache_file" ;; 12033 esac 12034 fi 12035 fi 12036 else 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12038$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12039 fi 12040fi 12041rm -f confcache 12042 12043test "x$prefix" = xNONE && prefix=$ac_default_prefix 12044# Let make expand exec_prefix. 12045test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12046 12047DEFS=-DHAVE_CONFIG_H 12048 12049ac_libobjs= 12050ac_ltlibobjs= 12051U= 12052for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12053 # 1. Remove the extension, and $U if already installed. 12054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12055 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12057 # will be set to the directory where LIBOBJS objects are built. 12058 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12059 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12060done 12061LIBOBJS=$ac_libobjs 12062 12063LTLIBOBJS=$ac_ltlibobjs 12064 12065 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12067$as_echo_n "checking that generated files are newer than configure... " >&6; } 12068 if test -n "$am_sleep_pid"; then 12069 # Hide warnings about reused PIDs. 12070 wait $am_sleep_pid 2>/dev/null 12071 fi 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12073$as_echo "done" >&6; } 12074 if test -n "$EXEEXT"; then 12075 am__EXEEXT_TRUE= 12076 am__EXEEXT_FALSE='#' 12077else 12078 am__EXEEXT_TRUE='#' 12079 am__EXEEXT_FALSE= 12080fi 12081 12082if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12083 as_fn_error $? "conditional \"AMDEP\" was never defined. 12084Usually this means the macro was only invoked conditionally." "$LINENO" 5 12085fi 12086if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12087 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12088Usually this means the macro was only invoked conditionally." "$LINENO" 5 12089fi 12090if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12091 as_fn_error $? "conditional \"LINT\" was never defined. 12092Usually this means the macro was only invoked conditionally." "$LINENO" 5 12093fi 12094 12095: "${CONFIG_STATUS=./config.status}" 12096ac_write_fail=0 12097ac_clean_files_save=$ac_clean_files 12098ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12099{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12100$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12101as_write_fail=0 12102cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12103#! $SHELL 12104# Generated by $as_me. 12105# Run this file to recreate the current configuration. 12106# Compiler output produced by configure, useful for debugging 12107# configure, is in config.log if it exists. 12108 12109debug=false 12110ac_cs_recheck=false 12111ac_cs_silent=false 12112 12113SHELL=\${CONFIG_SHELL-$SHELL} 12114export SHELL 12115_ASEOF 12116cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12117## -------------------- ## 12118## M4sh Initialization. ## 12119## -------------------- ## 12120 12121# Be more Bourne compatible 12122DUALCASE=1; export DUALCASE # for MKS sh 12123if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12124 emulate sh 12125 NULLCMD=: 12126 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12127 # is contrary to our usage. Disable this feature. 12128 alias -g '${1+"$@"}'='"$@"' 12129 setopt NO_GLOB_SUBST 12130else 12131 case `(set -o) 2>/dev/null` in #( 12132 *posix*) : 12133 set -o posix ;; #( 12134 *) : 12135 ;; 12136esac 12137fi 12138 12139 12140as_nl=' 12141' 12142export as_nl 12143# Printing a long string crashes Solaris 7 /usr/bin/printf. 12144as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12146as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12147# Prefer a ksh shell builtin over an external printf program on Solaris, 12148# but without wasting forks for bash or zsh. 12149if test -z "$BASH_VERSION$ZSH_VERSION" \ 12150 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12151 as_echo='print -r --' 12152 as_echo_n='print -rn --' 12153elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12154 as_echo='printf %s\n' 12155 as_echo_n='printf %s' 12156else 12157 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12158 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12159 as_echo_n='/usr/ucb/echo -n' 12160 else 12161 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12162 as_echo_n_body='eval 12163 arg=$1; 12164 case $arg in #( 12165 *"$as_nl"*) 12166 expr "X$arg" : "X\\(.*\\)$as_nl"; 12167 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12168 esac; 12169 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12170 ' 12171 export as_echo_n_body 12172 as_echo_n='sh -c $as_echo_n_body as_echo' 12173 fi 12174 export as_echo_body 12175 as_echo='sh -c $as_echo_body as_echo' 12176fi 12177 12178# The user is always right. 12179if test "${PATH_SEPARATOR+set}" != set; then 12180 PATH_SEPARATOR=: 12181 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12182 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12183 PATH_SEPARATOR=';' 12184 } 12185fi 12186 12187 12188# IFS 12189# We need space, tab and new line, in precisely that order. Quoting is 12190# there to prevent editors from complaining about space-tab. 12191# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12192# splitting by setting IFS to empty value.) 12193IFS=" "" $as_nl" 12194 12195# Find who we are. Look in the path if we contain no directory separator. 12196as_myself= 12197case $0 in #(( 12198 *[\\/]* ) as_myself=$0 ;; 12199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12200for as_dir in $PATH 12201do 12202 IFS=$as_save_IFS 12203 test -z "$as_dir" && as_dir=. 12204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12205 done 12206IFS=$as_save_IFS 12207 12208 ;; 12209esac 12210# We did not find ourselves, most probably we were run as `sh COMMAND' 12211# in which case we are not to be found in the path. 12212if test "x$as_myself" = x; then 12213 as_myself=$0 12214fi 12215if test ! -f "$as_myself"; then 12216 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12217 exit 1 12218fi 12219 12220# Unset variables that we do not need and which cause bugs (e.g. in 12221# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12222# suppresses any "Segmentation fault" message there. '((' could 12223# trigger a bug in pdksh 5.2.14. 12224for as_var in BASH_ENV ENV MAIL MAILPATH 12225do eval test x\${$as_var+set} = xset \ 12226 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12227done 12228PS1='$ ' 12229PS2='> ' 12230PS4='+ ' 12231 12232# NLS nuisances. 12233LC_ALL=C 12234export LC_ALL 12235LANGUAGE=C 12236export LANGUAGE 12237 12238# CDPATH. 12239(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12240 12241 12242# as_fn_error STATUS ERROR [LINENO LOG_FD] 12243# ---------------------------------------- 12244# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12245# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12246# script with STATUS, using 1 if that was 0. 12247as_fn_error () 12248{ 12249 as_status=$1; test $as_status -eq 0 && as_status=1 12250 if test "$4"; then 12251 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12252 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12253 fi 12254 $as_echo "$as_me: error: $2" >&2 12255 as_fn_exit $as_status 12256} # as_fn_error 12257 12258 12259# as_fn_set_status STATUS 12260# ----------------------- 12261# Set $? to STATUS, without forking. 12262as_fn_set_status () 12263{ 12264 return $1 12265} # as_fn_set_status 12266 12267# as_fn_exit STATUS 12268# ----------------- 12269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12270as_fn_exit () 12271{ 12272 set +e 12273 as_fn_set_status $1 12274 exit $1 12275} # as_fn_exit 12276 12277# as_fn_unset VAR 12278# --------------- 12279# Portably unset VAR. 12280as_fn_unset () 12281{ 12282 { eval $1=; unset $1;} 12283} 12284as_unset=as_fn_unset 12285# as_fn_append VAR VALUE 12286# ---------------------- 12287# Append the text in VALUE to the end of the definition contained in VAR. Take 12288# advantage of any shell optimizations that allow amortized linear growth over 12289# repeated appends, instead of the typical quadratic growth present in naive 12290# implementations. 12291if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12292 eval 'as_fn_append () 12293 { 12294 eval $1+=\$2 12295 }' 12296else 12297 as_fn_append () 12298 { 12299 eval $1=\$$1\$2 12300 } 12301fi # as_fn_append 12302 12303# as_fn_arith ARG... 12304# ------------------ 12305# Perform arithmetic evaluation on the ARGs, and store the result in the 12306# global $as_val. Take advantage of shells that can avoid forks. The arguments 12307# must be portable across $(()) and expr. 12308if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12309 eval 'as_fn_arith () 12310 { 12311 as_val=$(( $* )) 12312 }' 12313else 12314 as_fn_arith () 12315 { 12316 as_val=`expr "$@" || test $? -eq 1` 12317 } 12318fi # as_fn_arith 12319 12320 12321if expr a : '\(a\)' >/dev/null 2>&1 && 12322 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12323 as_expr=expr 12324else 12325 as_expr=false 12326fi 12327 12328if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12329 as_basename=basename 12330else 12331 as_basename=false 12332fi 12333 12334if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12335 as_dirname=dirname 12336else 12337 as_dirname=false 12338fi 12339 12340as_me=`$as_basename -- "$0" || 12341$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12342 X"$0" : 'X\(//\)$' \| \ 12343 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12344$as_echo X/"$0" | 12345 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12346 s//\1/ 12347 q 12348 } 12349 /^X\/\(\/\/\)$/{ 12350 s//\1/ 12351 q 12352 } 12353 /^X\/\(\/\).*/{ 12354 s//\1/ 12355 q 12356 } 12357 s/.*/./; q'` 12358 12359# Avoid depending upon Character Ranges. 12360as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12361as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12362as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12363as_cr_digits='0123456789' 12364as_cr_alnum=$as_cr_Letters$as_cr_digits 12365 12366ECHO_C= ECHO_N= ECHO_T= 12367case `echo -n x` in #((((( 12368-n*) 12369 case `echo 'xy\c'` in 12370 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12371 xy) ECHO_C='\c';; 12372 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12373 ECHO_T=' ';; 12374 esac;; 12375*) 12376 ECHO_N='-n';; 12377esac 12378 12379rm -f conf$$ conf$$.exe conf$$.file 12380if test -d conf$$.dir; then 12381 rm -f conf$$.dir/conf$$.file 12382else 12383 rm -f conf$$.dir 12384 mkdir conf$$.dir 2>/dev/null 12385fi 12386if (echo >conf$$.file) 2>/dev/null; then 12387 if ln -s conf$$.file conf$$ 2>/dev/null; then 12388 as_ln_s='ln -s' 12389 # ... but there are two gotchas: 12390 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12391 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12392 # In both cases, we have to default to `cp -pR'. 12393 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12394 as_ln_s='cp -pR' 12395 elif ln conf$$.file conf$$ 2>/dev/null; then 12396 as_ln_s=ln 12397 else 12398 as_ln_s='cp -pR' 12399 fi 12400else 12401 as_ln_s='cp -pR' 12402fi 12403rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12404rmdir conf$$.dir 2>/dev/null 12405 12406 12407# as_fn_mkdir_p 12408# ------------- 12409# Create "$as_dir" as a directory, including parents if necessary. 12410as_fn_mkdir_p () 12411{ 12412 12413 case $as_dir in #( 12414 -*) as_dir=./$as_dir;; 12415 esac 12416 test -d "$as_dir" || eval $as_mkdir_p || { 12417 as_dirs= 12418 while :; do 12419 case $as_dir in #( 12420 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12421 *) as_qdir=$as_dir;; 12422 esac 12423 as_dirs="'$as_qdir' $as_dirs" 12424 as_dir=`$as_dirname -- "$as_dir" || 12425$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12426 X"$as_dir" : 'X\(//\)[^/]' \| \ 12427 X"$as_dir" : 'X\(//\)$' \| \ 12428 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12429$as_echo X"$as_dir" | 12430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12431 s//\1/ 12432 q 12433 } 12434 /^X\(\/\/\)[^/].*/{ 12435 s//\1/ 12436 q 12437 } 12438 /^X\(\/\/\)$/{ 12439 s//\1/ 12440 q 12441 } 12442 /^X\(\/\).*/{ 12443 s//\1/ 12444 q 12445 } 12446 s/.*/./; q'` 12447 test -d "$as_dir" && break 12448 done 12449 test -z "$as_dirs" || eval "mkdir $as_dirs" 12450 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12451 12452 12453} # as_fn_mkdir_p 12454if mkdir -p . 2>/dev/null; then 12455 as_mkdir_p='mkdir -p "$as_dir"' 12456else 12457 test -d ./-p && rmdir ./-p 12458 as_mkdir_p=false 12459fi 12460 12461 12462# as_fn_executable_p FILE 12463# ----------------------- 12464# Test if FILE is an executable regular file. 12465as_fn_executable_p () 12466{ 12467 test -f "$1" && test -x "$1" 12468} # as_fn_executable_p 12469as_test_x='test -x' 12470as_executable_p=as_fn_executable_p 12471 12472# Sed expression to map a string onto a valid CPP name. 12473as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12474 12475# Sed expression to map a string onto a valid variable name. 12476as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12477 12478 12479exec 6>&1 12480## ----------------------------------- ## 12481## Main body of $CONFIG_STATUS script. ## 12482## ----------------------------------- ## 12483_ASEOF 12484test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12485 12486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12487# Save the log message, to keep $0 and so on meaningful, and to 12488# report actual input values of CONFIG_FILES etc. instead of their 12489# values after options handling. 12490ac_log=" 12491This file was extended by xdpyinfo $as_me 1.3.2, which was 12492generated by GNU Autoconf 2.69. Invocation command line was 12493 12494 CONFIG_FILES = $CONFIG_FILES 12495 CONFIG_HEADERS = $CONFIG_HEADERS 12496 CONFIG_LINKS = $CONFIG_LINKS 12497 CONFIG_COMMANDS = $CONFIG_COMMANDS 12498 $ $0 $@ 12499 12500on `(hostname || uname -n) 2>/dev/null | sed 1q` 12501" 12502 12503_ACEOF 12504 12505case $ac_config_files in *" 12506"*) set x $ac_config_files; shift; ac_config_files=$*;; 12507esac 12508 12509case $ac_config_headers in *" 12510"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12511esac 12512 12513 12514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12515# Files that config.status was made for. 12516config_files="$ac_config_files" 12517config_headers="$ac_config_headers" 12518config_commands="$ac_config_commands" 12519 12520_ACEOF 12521 12522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12523ac_cs_usage="\ 12524\`$as_me' instantiates files and other configuration actions 12525from templates according to the current configuration. Unless the files 12526and actions are specified as TAGs, all are instantiated by default. 12527 12528Usage: $0 [OPTION]... [TAG]... 12529 12530 -h, --help print this help, then exit 12531 -V, --version print version number and configuration settings, then exit 12532 --config print configuration, then exit 12533 -q, --quiet, --silent 12534 do not print progress messages 12535 -d, --debug don't remove temporary files 12536 --recheck update $as_me by reconfiguring in the same conditions 12537 --file=FILE[:TEMPLATE] 12538 instantiate the configuration file FILE 12539 --header=FILE[:TEMPLATE] 12540 instantiate the configuration header FILE 12541 12542Configuration files: 12543$config_files 12544 12545Configuration headers: 12546$config_headers 12547 12548Configuration commands: 12549$config_commands 12550 12551Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12552 12553_ACEOF 12554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12555ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12556ac_cs_version="\\ 12557xdpyinfo config.status 1.3.2 12558configured by $0, generated by GNU Autoconf 2.69, 12559 with options \\"\$ac_cs_config\\" 12560 12561Copyright (C) 2012 Free Software Foundation, Inc. 12562This config.status script is free software; the Free Software Foundation 12563gives unlimited permission to copy, distribute and modify it." 12564 12565ac_pwd='$ac_pwd' 12566srcdir='$srcdir' 12567INSTALL='$INSTALL' 12568MKDIR_P='$MKDIR_P' 12569AWK='$AWK' 12570test -n "\$AWK" || AWK=awk 12571_ACEOF 12572 12573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12574# The default lists apply if the user does not specify any file. 12575ac_need_defaults=: 12576while test $# != 0 12577do 12578 case $1 in 12579 --*=?*) 12580 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12581 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12582 ac_shift=: 12583 ;; 12584 --*=) 12585 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12586 ac_optarg= 12587 ac_shift=: 12588 ;; 12589 *) 12590 ac_option=$1 12591 ac_optarg=$2 12592 ac_shift=shift 12593 ;; 12594 esac 12595 12596 case $ac_option in 12597 # Handling of the options. 12598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12599 ac_cs_recheck=: ;; 12600 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12601 $as_echo "$ac_cs_version"; exit ;; 12602 --config | --confi | --conf | --con | --co | --c ) 12603 $as_echo "$ac_cs_config"; exit ;; 12604 --debug | --debu | --deb | --de | --d | -d ) 12605 debug=: ;; 12606 --file | --fil | --fi | --f ) 12607 $ac_shift 12608 case $ac_optarg in 12609 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12610 '') as_fn_error $? "missing file argument" ;; 12611 esac 12612 as_fn_append CONFIG_FILES " '$ac_optarg'" 12613 ac_need_defaults=false;; 12614 --header | --heade | --head | --hea ) 12615 $ac_shift 12616 case $ac_optarg in 12617 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12618 esac 12619 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12620 ac_need_defaults=false;; 12621 --he | --h) 12622 # Conflict between --help and --header 12623 as_fn_error $? "ambiguous option: \`$1' 12624Try \`$0 --help' for more information.";; 12625 --help | --hel | -h ) 12626 $as_echo "$ac_cs_usage"; exit ;; 12627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12628 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12629 ac_cs_silent=: ;; 12630 12631 # This is an error. 12632 -*) as_fn_error $? "unrecognized option: \`$1' 12633Try \`$0 --help' for more information." ;; 12634 12635 *) as_fn_append ac_config_targets " $1" 12636 ac_need_defaults=false ;; 12637 12638 esac 12639 shift 12640done 12641 12642ac_configure_extra_args= 12643 12644if $ac_cs_silent; then 12645 exec 6>/dev/null 12646 ac_configure_extra_args="$ac_configure_extra_args --silent" 12647fi 12648 12649_ACEOF 12650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12651if \$ac_cs_recheck; then 12652 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12653 shift 12654 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12655 CONFIG_SHELL='$SHELL' 12656 export CONFIG_SHELL 12657 exec "\$@" 12658fi 12659 12660_ACEOF 12661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12662exec 5>>config.log 12663{ 12664 echo 12665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12666## Running $as_me. ## 12667_ASBOX 12668 $as_echo "$ac_log" 12669} >&5 12670 12671_ACEOF 12672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12673# 12674# INIT-COMMANDS 12675# 12676AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12677 12678_ACEOF 12679 12680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12681 12682# Handling of arguments. 12683for ac_config_target in $ac_config_targets 12684do 12685 case $ac_config_target in 12686 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12687 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12688 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12689 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12690 12691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12692 esac 12693done 12694 12695 12696# If the user did not use the arguments to specify the items to instantiate, 12697# then the envvar interface is used. Set only those that are not. 12698# We use the long form for the default assignment because of an extremely 12699# bizarre bug on SunOS 4.1.3. 12700if $ac_need_defaults; then 12701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12704fi 12705 12706# Have a temporary directory for convenience. Make it in the build tree 12707# simply because there is no reason against having it here, and in addition, 12708# creating and moving files from /tmp can sometimes cause problems. 12709# Hook for its removal unless debugging. 12710# Note that there is a small window in which the directory will not be cleaned: 12711# after its creation but before its name has been assigned to `$tmp'. 12712$debug || 12713{ 12714 tmp= ac_tmp= 12715 trap 'exit_status=$? 12716 : "${ac_tmp:=$tmp}" 12717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12718' 0 12719 trap 'as_fn_exit 1' 1 2 13 15 12720} 12721# Create a (secure) tmp directory for tmp files. 12722 12723{ 12724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12725 test -d "$tmp" 12726} || 12727{ 12728 tmp=./conf$$-$RANDOM 12729 (umask 077 && mkdir "$tmp") 12730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12731ac_tmp=$tmp 12732 12733# Set up the scripts for CONFIG_FILES section. 12734# No need to generate them if there are no CONFIG_FILES. 12735# This happens for instance with `./config.status config.h'. 12736if test -n "$CONFIG_FILES"; then 12737 12738 12739ac_cr=`echo X | tr X '\015'` 12740# On cygwin, bash can eat \r inside `` if the user requested igncr. 12741# But we know of no other shell where ac_cr would be empty at this 12742# point, so we can use a bashism as a fallback. 12743if test "x$ac_cr" = x; then 12744 eval ac_cr=\$\'\\r\' 12745fi 12746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12748 ac_cs_awk_cr='\\r' 12749else 12750 ac_cs_awk_cr=$ac_cr 12751fi 12752 12753echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12754_ACEOF 12755 12756 12757{ 12758 echo "cat >conf$$subs.awk <<_ACEOF" && 12759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12760 echo "_ACEOF" 12761} >conf$$subs.sh || 12762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12764ac_delim='%!_!# ' 12765for ac_last_try in false false false false false :; do 12766 . ./conf$$subs.sh || 12767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12768 12769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12770 if test $ac_delim_n = $ac_delim_num; then 12771 break 12772 elif $ac_last_try; then 12773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12774 else 12775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12776 fi 12777done 12778rm -f conf$$subs.sh 12779 12780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12782_ACEOF 12783sed -n ' 12784h 12785s/^/S["/; s/!.*/"]=/ 12786p 12787g 12788s/^[^!]*!// 12789:repl 12790t repl 12791s/'"$ac_delim"'$// 12792t delim 12793:nl 12794h 12795s/\(.\{148\}\)..*/\1/ 12796t more1 12797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12798p 12799n 12800b repl 12801:more1 12802s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12803p 12804g 12805s/.\{148\}// 12806t nl 12807:delim 12808h 12809s/\(.\{148\}\)..*/\1/ 12810t more2 12811s/["\\]/\\&/g; s/^/"/; s/$/"/ 12812p 12813b 12814:more2 12815s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12816p 12817g 12818s/.\{148\}// 12819t delim 12820' <conf$$subs.awk | sed ' 12821/^[^""]/{ 12822 N 12823 s/\n// 12824} 12825' >>$CONFIG_STATUS || ac_write_fail=1 12826rm -f conf$$subs.awk 12827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12828_ACAWK 12829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12830 for (key in S) S_is_set[key] = 1 12831 FS = "" 12832 12833} 12834{ 12835 line = $ 0 12836 nfields = split(line, field, "@") 12837 substed = 0 12838 len = length(field[1]) 12839 for (i = 2; i < nfields; i++) { 12840 key = field[i] 12841 keylen = length(key) 12842 if (S_is_set[key]) { 12843 value = S[key] 12844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12845 len += length(value) + length(field[++i]) 12846 substed = 1 12847 } else 12848 len += 1 + keylen 12849 } 12850 12851 print line 12852} 12853 12854_ACAWK 12855_ACEOF 12856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12859else 12860 cat 12861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12863_ACEOF 12864 12865# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12867# trailing colons and then remove the whole line if VPATH becomes empty 12868# (actually we leave an empty line to preserve line numbers). 12869if test "x$srcdir" = x.; then 12870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12871h 12872s/// 12873s/^/:/ 12874s/[ ]*$/:/ 12875s/:\$(srcdir):/:/g 12876s/:\${srcdir}:/:/g 12877s/:@srcdir@:/:/g 12878s/^:*// 12879s/:*$// 12880x 12881s/\(=[ ]*\).*/\1/ 12882G 12883s/\n// 12884s/^[^=]*=[ ]*$// 12885}' 12886fi 12887 12888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12889fi # test -n "$CONFIG_FILES" 12890 12891# Set up the scripts for CONFIG_HEADERS section. 12892# No need to generate them if there are no CONFIG_HEADERS. 12893# This happens for instance with `./config.status Makefile'. 12894if test -n "$CONFIG_HEADERS"; then 12895cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12896BEGIN { 12897_ACEOF 12898 12899# Transform confdefs.h into an awk script `defines.awk', embedded as 12900# here-document in config.status, that substitutes the proper values into 12901# config.h.in to produce config.h. 12902 12903# Create a delimiter string that does not exist in confdefs.h, to ease 12904# handling of long lines. 12905ac_delim='%!_!# ' 12906for ac_last_try in false false :; do 12907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12908 if test -z "$ac_tt"; then 12909 break 12910 elif $ac_last_try; then 12911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12912 else 12913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12914 fi 12915done 12916 12917# For the awk script, D is an array of macro values keyed by name, 12918# likewise P contains macro parameters if any. Preserve backslash 12919# newline sequences. 12920 12921ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12922sed -n ' 12923s/.\{148\}/&'"$ac_delim"'/g 12924t rset 12925:rset 12926s/^[ ]*#[ ]*define[ ][ ]*/ / 12927t def 12928d 12929:def 12930s/\\$// 12931t bsnl 12932s/["\\]/\\&/g 12933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12934D["\1"]=" \3"/p 12935s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12936d 12937:bsnl 12938s/["\\]/\\&/g 12939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12940D["\1"]=" \3\\\\\\n"\\/p 12941t cont 12942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12943t cont 12944d 12945:cont 12946n 12947s/.\{148\}/&'"$ac_delim"'/g 12948t clear 12949:clear 12950s/\\$// 12951t bsnlc 12952s/["\\]/\\&/g; s/^/"/; s/$/"/p 12953d 12954:bsnlc 12955s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12956b cont 12957' <confdefs.h | sed ' 12958s/'"$ac_delim"'/"\\\ 12959"/g' >>$CONFIG_STATUS || ac_write_fail=1 12960 12961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12962 for (key in D) D_is_set[key] = 1 12963 FS = "" 12964} 12965/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12966 line = \$ 0 12967 split(line, arg, " ") 12968 if (arg[1] == "#") { 12969 defundef = arg[2] 12970 mac1 = arg[3] 12971 } else { 12972 defundef = substr(arg[1], 2) 12973 mac1 = arg[2] 12974 } 12975 split(mac1, mac2, "(") #) 12976 macro = mac2[1] 12977 prefix = substr(line, 1, index(line, defundef) - 1) 12978 if (D_is_set[macro]) { 12979 # Preserve the white space surrounding the "#". 12980 print prefix "define", macro P[macro] D[macro] 12981 next 12982 } else { 12983 # Replace #undef with comments. This is necessary, for example, 12984 # in the case of _POSIX_SOURCE, which is predefined and required 12985 # on some systems where configure will not decide to define it. 12986 if (defundef == "undef") { 12987 print "/*", prefix defundef, macro, "*/" 12988 next 12989 } 12990 } 12991} 12992{ print } 12993_ACAWK 12994_ACEOF 12995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12997fi # test -n "$CONFIG_HEADERS" 12998 12999 13000eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13001shift 13002for ac_tag 13003do 13004 case $ac_tag in 13005 :[FHLC]) ac_mode=$ac_tag; continue;; 13006 esac 13007 case $ac_mode$ac_tag in 13008 :[FHL]*:*);; 13009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13010 :[FH]-) ac_tag=-:-;; 13011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13012 esac 13013 ac_save_IFS=$IFS 13014 IFS=: 13015 set x $ac_tag 13016 IFS=$ac_save_IFS 13017 shift 13018 ac_file=$1 13019 shift 13020 13021 case $ac_mode in 13022 :L) ac_source=$1;; 13023 :[FH]) 13024 ac_file_inputs= 13025 for ac_f 13026 do 13027 case $ac_f in 13028 -) ac_f="$ac_tmp/stdin";; 13029 *) # Look for the file first in the build tree, then in the source tree 13030 # (if the path is not absolute). The absolute path cannot be DOS-style, 13031 # because $ac_f cannot contain `:'. 13032 test -f "$ac_f" || 13033 case $ac_f in 13034 [\\/$]*) false;; 13035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13036 esac || 13037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13038 esac 13039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13040 as_fn_append ac_file_inputs " '$ac_f'" 13041 done 13042 13043 # Let's still pretend it is `configure' which instantiates (i.e., don't 13044 # use $as_me), people would be surprised to read: 13045 # /* config.h. Generated by config.status. */ 13046 configure_input='Generated from '` 13047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13048 `' by configure.' 13049 if test x"$ac_file" != x-; then 13050 configure_input="$ac_file. $configure_input" 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13052$as_echo "$as_me: creating $ac_file" >&6;} 13053 fi 13054 # Neutralize special characters interpreted by sed in replacement strings. 13055 case $configure_input in #( 13056 *\&* | *\|* | *\\* ) 13057 ac_sed_conf_input=`$as_echo "$configure_input" | 13058 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13059 *) ac_sed_conf_input=$configure_input;; 13060 esac 13061 13062 case $ac_tag in 13063 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13065 esac 13066 ;; 13067 esac 13068 13069 ac_dir=`$as_dirname -- "$ac_file" || 13070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13071 X"$ac_file" : 'X\(//\)[^/]' \| \ 13072 X"$ac_file" : 'X\(//\)$' \| \ 13073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13074$as_echo X"$ac_file" | 13075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13076 s//\1/ 13077 q 13078 } 13079 /^X\(\/\/\)[^/].*/{ 13080 s//\1/ 13081 q 13082 } 13083 /^X\(\/\/\)$/{ 13084 s//\1/ 13085 q 13086 } 13087 /^X\(\/\).*/{ 13088 s//\1/ 13089 q 13090 } 13091 s/.*/./; q'` 13092 as_dir="$ac_dir"; as_fn_mkdir_p 13093 ac_builddir=. 13094 13095case "$ac_dir" in 13096.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13097*) 13098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13099 # A ".." for each directory in $ac_dir_suffix. 13100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13101 case $ac_top_builddir_sub in 13102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13104 esac ;; 13105esac 13106ac_abs_top_builddir=$ac_pwd 13107ac_abs_builddir=$ac_pwd$ac_dir_suffix 13108# for backward compatibility: 13109ac_top_builddir=$ac_top_build_prefix 13110 13111case $srcdir in 13112 .) # We are building in place. 13113 ac_srcdir=. 13114 ac_top_srcdir=$ac_top_builddir_sub 13115 ac_abs_top_srcdir=$ac_pwd ;; 13116 [\\/]* | ?:[\\/]* ) # Absolute name. 13117 ac_srcdir=$srcdir$ac_dir_suffix; 13118 ac_top_srcdir=$srcdir 13119 ac_abs_top_srcdir=$srcdir ;; 13120 *) # Relative name. 13121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13122 ac_top_srcdir=$ac_top_build_prefix$srcdir 13123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13124esac 13125ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13126 13127 13128 case $ac_mode in 13129 :F) 13130 # 13131 # CONFIG_FILE 13132 # 13133 13134 case $INSTALL in 13135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13137 esac 13138 ac_MKDIR_P=$MKDIR_P 13139 case $MKDIR_P in 13140 [\\/$]* | ?:[\\/]* ) ;; 13141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13142 esac 13143_ACEOF 13144 13145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13146# If the template does not know about datarootdir, expand it. 13147# FIXME: This hack should be removed a few years after 2.60. 13148ac_datarootdir_hack=; ac_datarootdir_seen= 13149ac_sed_dataroot=' 13150/datarootdir/ { 13151 p 13152 q 13153} 13154/@datadir@/p 13155/@docdir@/p 13156/@infodir@/p 13157/@localedir@/p 13158/@mandir@/p' 13159case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13160*datarootdir*) ac_datarootdir_seen=yes;; 13161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13163$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13164_ACEOF 13165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13166 ac_datarootdir_hack=' 13167 s&@datadir@&$datadir&g 13168 s&@docdir@&$docdir&g 13169 s&@infodir@&$infodir&g 13170 s&@localedir@&$localedir&g 13171 s&@mandir@&$mandir&g 13172 s&\\\${datarootdir}&$datarootdir&g' ;; 13173esac 13174_ACEOF 13175 13176# Neutralize VPATH when `$srcdir' = `.'. 13177# Shell code in configure.ac might set extrasub. 13178# FIXME: do we really want to maintain this feature? 13179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13180ac_sed_extra="$ac_vpsub 13181$extrasub 13182_ACEOF 13183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13184:t 13185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13186s|@configure_input@|$ac_sed_conf_input|;t t 13187s&@top_builddir@&$ac_top_builddir_sub&;t t 13188s&@top_build_prefix@&$ac_top_build_prefix&;t t 13189s&@srcdir@&$ac_srcdir&;t t 13190s&@abs_srcdir@&$ac_abs_srcdir&;t t 13191s&@top_srcdir@&$ac_top_srcdir&;t t 13192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13193s&@builddir@&$ac_builddir&;t t 13194s&@abs_builddir@&$ac_abs_builddir&;t t 13195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13196s&@INSTALL@&$ac_INSTALL&;t t 13197s&@MKDIR_P@&$ac_MKDIR_P&;t t 13198$ac_datarootdir_hack 13199" 13200eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13202 13203test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13206 "$ac_tmp/out"`; test -z "$ac_out"; } && 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13208which seems to be undefined. Please make sure it is defined" >&5 13209$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13210which seems to be undefined. Please make sure it is defined" >&2;} 13211 13212 rm -f "$ac_tmp/stdin" 13213 case $ac_file in 13214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13216 esac \ 13217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13218 ;; 13219 :H) 13220 # 13221 # CONFIG_HEADER 13222 # 13223 if test x"$ac_file" != x-; then 13224 { 13225 $as_echo "/* $configure_input */" \ 13226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13227 } >"$ac_tmp/config.h" \ 13228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13231$as_echo "$as_me: $ac_file is unchanged" >&6;} 13232 else 13233 rm -f "$ac_file" 13234 mv "$ac_tmp/config.h" "$ac_file" \ 13235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13236 fi 13237 else 13238 $as_echo "/* $configure_input */" \ 13239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13240 || as_fn_error $? "could not create -" "$LINENO" 5 13241 fi 13242# Compute "$ac_file"'s index in $config_headers. 13243_am_arg="$ac_file" 13244_am_stamp_count=1 13245for _am_header in $config_headers :; do 13246 case $_am_header in 13247 $_am_arg | $_am_arg:* ) 13248 break ;; 13249 * ) 13250 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13251 esac 13252done 13253echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13254$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13255 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13256 X"$_am_arg" : 'X\(//\)$' \| \ 13257 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13258$as_echo X"$_am_arg" | 13259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13260 s//\1/ 13261 q 13262 } 13263 /^X\(\/\/\)[^/].*/{ 13264 s//\1/ 13265 q 13266 } 13267 /^X\(\/\/\)$/{ 13268 s//\1/ 13269 q 13270 } 13271 /^X\(\/\).*/{ 13272 s//\1/ 13273 q 13274 } 13275 s/.*/./; q'`/stamp-h$_am_stamp_count 13276 ;; 13277 13278 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13279$as_echo "$as_me: executing $ac_file commands" >&6;} 13280 ;; 13281 esac 13282 13283 13284 case $ac_file$ac_mode in 13285 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13286 # Older Autoconf quotes --file arguments for eval, but not when files 13287 # are listed without --file. Let's play safe and only enable the eval 13288 # if we detect the quoting. 13289 case $CONFIG_FILES in 13290 *\'*) eval set x "$CONFIG_FILES" ;; 13291 *) set x $CONFIG_FILES ;; 13292 esac 13293 shift 13294 for mf 13295 do 13296 # Strip MF so we end up with the name of the file. 13297 mf=`echo "$mf" | sed -e 's/:.*$//'` 13298 # Check whether this is an Automake generated Makefile or not. 13299 # We used to match only the files named 'Makefile.in', but 13300 # some people rename them; so instead we look at the file content. 13301 # Grep'ing the first line is not enough: some people post-process 13302 # each Makefile.in and add a new line on top of each file to say so. 13303 # Grep'ing the whole file is not good either: AIX grep has a line 13304 # limit of 2048, but all sed's we know have understand at least 4000. 13305 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13306 dirpart=`$as_dirname -- "$mf" || 13307$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13308 X"$mf" : 'X\(//\)[^/]' \| \ 13309 X"$mf" : 'X\(//\)$' \| \ 13310 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13311$as_echo X"$mf" | 13312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13313 s//\1/ 13314 q 13315 } 13316 /^X\(\/\/\)[^/].*/{ 13317 s//\1/ 13318 q 13319 } 13320 /^X\(\/\/\)$/{ 13321 s//\1/ 13322 q 13323 } 13324 /^X\(\/\).*/{ 13325 s//\1/ 13326 q 13327 } 13328 s/.*/./; q'` 13329 else 13330 continue 13331 fi 13332 # Extract the definition of DEPDIR, am__include, and am__quote 13333 # from the Makefile without running 'make'. 13334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13335 test -z "$DEPDIR" && continue 13336 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13337 test -z "$am__include" && continue 13338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13339 # Find all dependency output files, they are included files with 13340 # $(DEPDIR) in their names. We invoke sed twice because it is the 13341 # simplest approach to changing $(DEPDIR) to its actual value in the 13342 # expansion. 13343 for file in `sed -n " 13344 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13345 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 13346 # Make sure the directory exists. 13347 test -f "$dirpart/$file" && continue 13348 fdir=`$as_dirname -- "$file" || 13349$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13350 X"$file" : 'X\(//\)[^/]' \| \ 13351 X"$file" : 'X\(//\)$' \| \ 13352 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13353$as_echo X"$file" | 13354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13355 s//\1/ 13356 q 13357 } 13358 /^X\(\/\/\)[^/].*/{ 13359 s//\1/ 13360 q 13361 } 13362 /^X\(\/\/\)$/{ 13363 s//\1/ 13364 q 13365 } 13366 /^X\(\/\).*/{ 13367 s//\1/ 13368 q 13369 } 13370 s/.*/./; q'` 13371 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13372 # echo "creating $dirpart/$file" 13373 echo '# dummy' > "$dirpart/$file" 13374 done 13375 done 13376} 13377 ;; 13378 13379 esac 13380done # for ac_tag 13381 13382 13383as_fn_exit 0 13384_ACEOF 13385ac_clean_files=$ac_clean_files_save 13386 13387test $ac_write_fail = 0 || 13388 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13389 13390 13391# configure is writing to config.log, and then calls config.status. 13392# config.status does its own redirection, appending to config.log. 13393# Unfortunately, on DOS this fails, as config.log is still kept open 13394# by configure, so config.status won't be able to write to it; its 13395# output is simply discarded. So we exec the FD to /dev/null, 13396# effectively closing config.log, so it can be properly (re)opened and 13397# appended to by config.status. When coming back to configure, we 13398# need to make the FD available again. 13399if test "$no_create" != yes; then 13400 ac_cs_success=: 13401 ac_config_status_args= 13402 test "$silent" = yes && 13403 ac_config_status_args="$ac_config_status_args --quiet" 13404 exec 5>/dev/null 13405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13406 exec 5>>config.log 13407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13408 # would make configure fail if this is the last instruction. 13409 $ac_cs_success || as_fn_exit 1 13410fi 13411if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13413$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13414fi 13415 13416